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 courierlogger 0.10. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
6 | # | |
b0322a85 CE |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
d9898ee8 | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
b0322a85 CE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
d9898ee8 | 16 | |
dd184caf | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
d9898ee8 | 20 | emulate sh |
21 | NULLCMD=: | |
8d138742 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 25 | setopt NO_GLOB_SUBST |
26 | else | |
b0322a85 CE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
dd184caf | 32 | esac |
dd184caf | 33 | fi |
34 | ||
35 | ||
8d138742 CE |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
b0322a85 | 60 | case $arg in #( |
8d138742 CE |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
dd184caf | 74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
8d138742 CE |
76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
d9898ee8 | 83 | |
dd184caf | 84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
dd184caf | 89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b0322a85 CE |
92 | as_myself= |
93 | case $0 in #(( | |
dd184caf | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
dd184caf | 102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
8d138742 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b0322a85 | 113 | exit 1 |
dd184caf | 114 | fi |
115 | ||
b0322a85 CE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
dd184caf | 123 | done |
d9898ee8 | 124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8d138742 CE |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
d9898ee8 | 133 | |
dd184caf | 134 | # CDPATH. |
b0322a85 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
d9898ee8 | 136 | |
b0322a85 CE |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
dd184caf | 162 | if test "x$CONFIG_SHELL" = x; then |
b0322a85 CE |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
dd184caf | 170 | else |
b0322a85 CE |
171 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
d9898ee8 | 177 | fi |
b0322a85 CE |
178 | " |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
d9898ee8 | 184 | |
dd184caf | 185 | exitcode=0 |
b0322a85 CE |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | ||
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | PATH=/empty FPATH=/empty; export PATH FPATH | |
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
209 | test \$(( 1 + 1 )) = 2 || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
dd184caf | 212 | else |
b0322a85 | 213 | as_have_required=no |
dd184caf | 214 | fi |
b0322a85 | 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
dd184caf | 216 | |
dd184caf | 217 | else |
b0322a85 CE |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 | as_found=false | |
d9898ee8 | 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
224 | as_found=: |
225 | case $as_dir in #( | |
d9898ee8 | 226 | /*) |
dd184caf | 227 | for as_base in sh bash ksh sh5; do |
b0322a85 CE |
228 | # Try only shells that exist, to save several forks. |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
dd184caf | 237 | done;; |
238 | esac | |
b0322a85 | 239 | as_found=false |
dd184caf | 240 | done |
b0322a85 CE |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
dd184caf | 245 | IFS=$as_save_IFS |
246 | ||
247 | ||
b0322a85 CE |
248 | if test "x$CONFIG_SHELL" != x; then : |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
dd184caf | 262 | esac |
b0322a85 CE |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
dd184caf | 284 | fi |
dd184caf | 285 | fi |
dd184caf | 286 | fi |
b0322a85 CE |
287 | SHELL=${CONFIG_SHELL-/bin/sh} |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
dd184caf | 292 | |
b0322a85 CE |
293 | ## --------------------- ## |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
dd184caf | 304 | |
b0322a85 CE |
305 | # as_fn_set_status STATUS |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
dd184caf | 312 | |
b0322a85 CE |
313 | # as_fn_exit STATUS |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
dd184caf | 328 | |
b0322a85 CE |
329 | case $as_dir in #( |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 367 | |
dd184caf | 368 | |
b0322a85 | 369 | } # as_fn_mkdir_p |
dd184caf | 370 | |
b0322a85 CE |
371 | # as_fn_executable_p FILE |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
dd184caf | 412 | |
413 | ||
b0322a85 CE |
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
dd184caf | 429 | |
b0322a85 CE |
430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 | as_expr=expr | |
dd184caf | 433 | else |
b0322a85 | 434 | as_expr=false |
dd184caf | 435 | fi |
436 | ||
b0322a85 CE |
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
438 | as_basename=basename | |
dd184caf | 439 | else |
b0322a85 | 440 | as_basename=false |
dd184caf | 441 | fi |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
dd184caf | 445 | else |
b0322a85 | 446 | as_dirname=false |
dd184caf | 447 | fi |
448 | ||
b0322a85 CE |
449 | as_me=`$as_basename -- "$0" || |
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 | X"$0" : 'X\(//\)$' \| \ | |
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 | $as_echo X/"$0" | | |
454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
dd184caf | 467 | |
b0322a85 CE |
468 | # Avoid depending upon Character Ranges. |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
dd184caf | 474 | |
d9898ee8 | 475 | |
b0322a85 CE |
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
dd184caf | 481 | sed -n ' |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
d9898ee8 | 485 | sed ' |
dd184caf | 486 | s/[$]LINENO.*/&-/ |
487 | t lineno | |
488 | b | |
489 | :lineno | |
d9898ee8 | 490 | N |
dd184caf | 491 | :loop |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 493 | t loop |
dd184caf | 494 | s/-\n.*// |
d9898ee8 | 495 | ' >$as_me.lineno && |
dd184caf | 496 | chmod +x "$as_me.lineno" || |
b0322a85 | 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
d9898ee8 | 498 | |
b0322a85 CE |
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
d9898ee8 | 503 | # Don't try to exec as it changes $[0], causing all sort of problems |
504 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 505 | # original and so on. Autoconf is especially sensitive to this). |
506 | . "./$as_me.lineno" | |
d9898ee8 | 507 | # Exit status is that of the last command. |
508 | exit | |
509 | } | |
510 | ||
dd184caf | 511 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 512 | case `echo -n x` in #((((( |
dd184caf | 513 | -n*) |
b0322a85 | 514 | case `echo 'xy\c'` in |
dd184caf | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
516 | xy) ECHO_C='\c';; |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
dd184caf | 519 | esac;; |
520 | *) | |
521 | ECHO_N='-n';; | |
d9898ee8 | 522 | esac |
d9898ee8 | 523 | |
524 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 525 | if test -d conf$$.dir; then |
526 | rm -f conf$$.dir/conf$$.file | |
527 | else | |
528 | rm -f conf$$.dir | |
8d138742 CE |
529 | mkdir conf$$.dir 2>/dev/null |
530 | fi | |
531 | if (echo >conf$$.file) 2>/dev/null; then | |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b0322a85 | 537 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 539 | as_ln_s='cp -pR' |
8d138742 CE |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
541 | as_ln_s=ln | |
542 | else | |
b0322a85 | 543 | as_ln_s='cp -pR' |
8d138742 | 544 | fi |
d9898ee8 | 545 | else |
b0322a85 | 546 | as_ln_s='cp -pR' |
d9898ee8 | 547 | fi |
dd184caf | 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 550 | |
551 | if mkdir -p . 2>/dev/null; then | |
b0322a85 | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
d9898ee8 | 553 | else |
554 | test -d ./-p && rmdir ./-p | |
555 | as_mkdir_p=false | |
556 | fi | |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 560 | |
561 | # Sed expression to map a string onto a valid CPP name. | |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | # Sed expression to map a string onto a valid variable name. | |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
566 | ||
d9898ee8 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
568 | ||
d9898ee8 | 569 | |
b0322a85 CE |
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
571 | exec 6>&1 | |
dd184caf | 572 | |
d9898ee8 | 573 | # Name of the host. |
b0322a85 | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 575 | # so uname gets run too. |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
577 | ||
d9898ee8 | 578 | # |
579 | # Initializations. | |
580 | # | |
581 | ac_default_prefix=/usr/local | |
dd184caf | 582 | ac_clean_files= |
d9898ee8 | 583 | ac_config_libobj_dir=. |
dd184caf | 584 | LIBOBJS= |
d9898ee8 | 585 | cross_compiling=no |
586 | subdirs= | |
587 | MFLAGS= | |
588 | MAKEFLAGS= | |
d9898ee8 | 589 | |
d9898ee8 | 590 | # Identity of this package. |
591 | PACKAGE_NAME='courierlogger' | |
592 | PACKAGE_TARNAME='courierlogger' | |
593 | PACKAGE_VERSION='0.10' | |
594 | PACKAGE_STRING='courierlogger 0.10' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="logger.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 | |
dd184caf | 641 | CPP |
8d138742 CE |
642 | OTOOL64 |
643 | OTOOL | |
644 | LIPO | |
645 | NMEDIT | |
646 | DSYMUTIL | |
b0322a85 | 647 | MANIFEST_TOOL |
8d138742 | 648 | RANLIB |
b0322a85 | 649 | ac_ct_AR |
8d138742 | 650 | AR |
b0322a85 | 651 | DLLTOOL |
8d138742 CE |
652 | OBJDUMP |
653 | NM | |
654 | ac_ct_DUMPBIN | |
655 | DUMPBIN | |
656 | LD | |
657 | FGREP | |
658 | EGREP | |
659 | GREP | |
660 | SED | |
661 | host_os | |
662 | host_vendor | |
663 | host_cpu | |
664 | host | |
665 | build_os | |
666 | build_vendor | |
667 | build_cpu | |
668 | build | |
dd184caf | 669 | LIBTOOL |
8d138742 CE |
670 | LN_S |
671 | am__fastdepCC_FALSE | |
672 | am__fastdepCC_TRUE | |
673 | CCDEPMODE | |
b0322a85 | 674 | am__nodep |
8d138742 CE |
675 | AMDEPBACKSLASH |
676 | AMDEP_FALSE | |
677 | AMDEP_TRUE | |
678 | am__quote | |
679 | am__include | |
680 | DEPDIR | |
681 | OBJEXT | |
682 | EXEEXT | |
683 | ac_ct_CC | |
684 | CPPFLAGS | |
685 | LDFLAGS | |
686 | CFLAGS | |
687 | CC | |
b0322a85 CE |
688 | AM_BACKSLASH |
689 | AM_DEFAULT_VERBOSITY | |
690 | AM_DEFAULT_V | |
691 | AM_V | |
8d138742 CE |
692 | am__untar |
693 | am__tar | |
694 | AMTAR | |
695 | am__leading_dot | |
696 | SET_MAKE | |
697 | AWK | |
698 | mkdir_p | |
699 | MKDIR_P | |
700 | INSTALL_STRIP_PROGRAM | |
701 | STRIP | |
702 | install_sh | |
703 | MAKEINFO | |
704 | AUTOHEADER | |
705 | AUTOMAKE | |
706 | AUTOCONF | |
707 | ACLOCAL | |
708 | VERSION | |
709 | PACKAGE | |
710 | CYGPATH_W | |
711 | am__isrc | |
712 | INSTALL_DATA | |
713 | INSTALL_SCRIPT | |
714 | INSTALL_PROGRAM | |
715 | target_alias | |
716 | host_alias | |
717 | build_alias | |
718 | LIBS | |
719 | ECHO_T | |
720 | ECHO_N | |
721 | ECHO_C | |
722 | DEFS | |
723 | mandir | |
724 | localedir | |
725 | libdir | |
726 | psdir | |
727 | pdfdir | |
728 | dvidir | |
729 | htmldir | |
730 | infodir | |
731 | docdir | |
732 | oldincludedir | |
733 | includedir | |
734 | localstatedir | |
735 | sharedstatedir | |
736 | sysconfdir | |
737 | datadir | |
738 | datarootdir | |
739 | libexecdir | |
740 | sbindir | |
741 | bindir | |
742 | program_transform_name | |
743 | prefix | |
744 | exec_prefix | |
b0322a85 | 745 | PACKAGE_URL |
8d138742 CE |
746 | PACKAGE_BUGREPORT |
747 | PACKAGE_STRING | |
748 | PACKAGE_VERSION | |
749 | PACKAGE_TARNAME | |
750 | PACKAGE_NAME | |
751 | PATH_SEPARATOR | |
752 | SHELL' | |
d9898ee8 | 753 | ac_subst_files='' |
8d138742 CE |
754 | ac_user_opts=' |
755 | enable_option_checking | |
b0322a85 | 756 | enable_silent_rules |
8d138742 CE |
757 | enable_dependency_tracking |
758 | enable_shared | |
759 | enable_static | |
760 | with_pic | |
761 | enable_fast_install | |
762 | with_gnu_ld | |
b0322a85 | 763 | with_sysroot |
8d138742 | 764 | enable_libtool_lock |
b0322a85 | 765 | enable_largefile |
8d138742 CE |
766 | with_syslog |
767 | ' | |
dd184caf | 768 | ac_precious_vars='build_alias |
769 | host_alias | |
770 | target_alias | |
771 | CC | |
772 | CFLAGS | |
773 | LDFLAGS | |
774 | LIBS | |
775 | CPPFLAGS | |
8d138742 | 776 | CPP' |
dd184caf | 777 | |
d9898ee8 | 778 | |
779 | # Initialize some variables set by options. | |
780 | ac_init_help= | |
781 | ac_init_version=false | |
8d138742 CE |
782 | ac_unrecognized_opts= |
783 | ac_unrecognized_sep= | |
d9898ee8 | 784 | # The variables have the same names as the options, with |
785 | # dashes changed to underlines. | |
786 | cache_file=/dev/null | |
787 | exec_prefix=NONE | |
788 | no_create= | |
789 | no_recursion= | |
790 | prefix=NONE | |
791 | program_prefix=NONE | |
792 | program_suffix=NONE | |
793 | program_transform_name=s,x,x, | |
794 | silent= | |
795 | site= | |
796 | srcdir= | |
797 | verbose= | |
798 | x_includes=NONE | |
799 | x_libraries=NONE | |
800 | ||
801 | # Installation directory options. | |
802 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
803 | # and all the variables that are supposed to be based on exec_prefix | |
804 | # by default will actually change. | |
805 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 806 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 807 | bindir='${exec_prefix}/bin' |
808 | sbindir='${exec_prefix}/sbin' | |
809 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 810 | datarootdir='${prefix}/share' |
811 | datadir='${datarootdir}' | |
d9898ee8 | 812 | sysconfdir='${prefix}/etc' |
813 | sharedstatedir='${prefix}/com' | |
814 | localstatedir='${prefix}/var' | |
d9898ee8 | 815 | includedir='${prefix}/include' |
816 | oldincludedir='/usr/include' | |
dd184caf | 817 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
818 | infodir='${datarootdir}/info' | |
819 | htmldir='${docdir}' | |
820 | dvidir='${docdir}' | |
821 | pdfdir='${docdir}' | |
822 | psdir='${docdir}' | |
823 | libdir='${exec_prefix}/lib' | |
824 | localedir='${datarootdir}/locale' | |
825 | mandir='${datarootdir}/man' | |
d9898ee8 | 826 | |
827 | ac_prev= | |
dd184caf | 828 | ac_dashdash= |
d9898ee8 | 829 | for ac_option |
830 | do | |
831 | # If the previous option needs an argument, assign it. | |
832 | if test -n "$ac_prev"; then | |
dd184caf | 833 | eval $ac_prev=\$ac_option |
d9898ee8 | 834 | ac_prev= |
835 | continue | |
836 | fi | |
837 | ||
dd184caf | 838 | case $ac_option in |
b0322a85 CE |
839 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
840 | *=) ac_optarg= ;; | |
841 | *) ac_optarg=yes ;; | |
dd184caf | 842 | esac |
d9898ee8 | 843 | |
844 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
845 | ||
dd184caf | 846 | case $ac_dashdash$ac_option in |
847 | --) | |
848 | ac_dashdash=yes ;; | |
d9898ee8 | 849 | |
850 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
851 | ac_prev=bindir ;; | |
852 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
853 | bindir=$ac_optarg ;; | |
854 | ||
855 | -build | --build | --buil | --bui | --bu) | |
856 | ac_prev=build_alias ;; | |
857 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
858 | build_alias=$ac_optarg ;; | |
859 | ||
860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
862 | ac_prev=cache_file ;; | |
863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
865 | cache_file=$ac_optarg ;; | |
866 | ||
867 | --config-cache | -C) | |
868 | cache_file=config.cache ;; | |
869 | ||
dd184caf | 870 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 871 | ac_prev=datadir ;; |
dd184caf | 872 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 873 | datadir=$ac_optarg ;; |
874 | ||
dd184caf | 875 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
876 | | --dataroo | --dataro | --datar) | |
877 | ac_prev=datarootdir ;; | |
878 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
879 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
880 | datarootdir=$ac_optarg ;; | |
881 | ||
d9898ee8 | 882 | -disable-* | --disable-*) |
8d138742 | 883 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 884 | # Reject names that are not valid shell variable names. |
8d138742 | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 886 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
887 | ac_useropt_orig=$ac_useropt |
888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
889 | case $ac_user_opts in | |
890 | *" | |
891 | "enable_$ac_useropt" | |
892 | "*) ;; | |
893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
894 | ac_unrecognized_sep=', ';; | |
895 | esac | |
896 | eval enable_$ac_useropt=no ;; | |
dd184caf | 897 | |
898 | -docdir | --docdir | --docdi | --doc | --do) | |
899 | ac_prev=docdir ;; | |
900 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
901 | docdir=$ac_optarg ;; | |
902 | ||
903 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
904 | ac_prev=dvidir ;; | |
905 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
906 | dvidir=$ac_optarg ;; | |
d9898ee8 | 907 | |
908 | -enable-* | --enable-*) | |
8d138742 | 909 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 910 | # Reject names that are not valid shell variable names. |
8d138742 | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 912 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
913 | ac_useropt_orig=$ac_useropt |
914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
915 | case $ac_user_opts in | |
916 | *" | |
917 | "enable_$ac_useropt" | |
918 | "*) ;; | |
919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
920 | ac_unrecognized_sep=', ';; | |
921 | esac | |
922 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 923 | |
924 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
925 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
926 | | --exec | --exe | --ex) | |
927 | ac_prev=exec_prefix ;; | |
928 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
929 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
930 | | --exec=* | --exe=* | --ex=*) | |
931 | exec_prefix=$ac_optarg ;; | |
932 | ||
933 | -gas | --gas | --ga | --g) | |
934 | # Obsolete; use --with-gas. | |
935 | with_gas=yes ;; | |
936 | ||
937 | -help | --help | --hel | --he | -h) | |
938 | ac_init_help=long ;; | |
939 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
940 | ac_init_help=recursive ;; | |
941 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
942 | ac_init_help=short ;; | |
943 | ||
944 | -host | --host | --hos | --ho) | |
945 | ac_prev=host_alias ;; | |
946 | -host=* | --host=* | --hos=* | --ho=*) | |
947 | host_alias=$ac_optarg ;; | |
948 | ||
dd184caf | 949 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
950 | ac_prev=htmldir ;; | |
951 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
952 | | --ht=*) | |
953 | htmldir=$ac_optarg ;; | |
954 | ||
d9898ee8 | 955 | -includedir | --includedir | --includedi | --included | --include \ |
956 | | --includ | --inclu | --incl | --inc) | |
957 | ac_prev=includedir ;; | |
958 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
959 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
960 | includedir=$ac_optarg ;; | |
961 | ||
962 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
963 | ac_prev=infodir ;; | |
964 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
965 | infodir=$ac_optarg ;; | |
966 | ||
967 | -libdir | --libdir | --libdi | --libd) | |
968 | ac_prev=libdir ;; | |
969 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
970 | libdir=$ac_optarg ;; | |
971 | ||
972 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
973 | | --libexe | --libex | --libe) | |
974 | ac_prev=libexecdir ;; | |
975 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
976 | | --libexe=* | --libex=* | --libe=*) | |
977 | libexecdir=$ac_optarg ;; | |
978 | ||
dd184caf | 979 | -localedir | --localedir | --localedi | --localed | --locale) |
980 | ac_prev=localedir ;; | |
981 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
982 | localedir=$ac_optarg ;; | |
983 | ||
d9898ee8 | 984 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 985 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 986 | ac_prev=localstatedir ;; |
987 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 988 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 989 | localstatedir=$ac_optarg ;; |
990 | ||
991 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
992 | ac_prev=mandir ;; | |
993 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
994 | mandir=$ac_optarg ;; | |
995 | ||
996 | -nfp | --nfp | --nf) | |
997 | # Obsolete; use --without-fp. | |
998 | with_fp=no ;; | |
999 | ||
1000 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1001 | | --no-cr | --no-c | -n) | |
1002 | no_create=yes ;; | |
1003 | ||
1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1006 | no_recursion=yes ;; | |
1007 | ||
1008 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1009 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1010 | | --oldin | --oldi | --old | --ol | --o) | |
1011 | ac_prev=oldincludedir ;; | |
1012 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1013 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1014 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1015 | oldincludedir=$ac_optarg ;; | |
1016 | ||
1017 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1018 | ac_prev=prefix ;; | |
1019 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1020 | prefix=$ac_optarg ;; | |
1021 | ||
1022 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1023 | | --program-pre | --program-pr | --program-p) | |
1024 | ac_prev=program_prefix ;; | |
1025 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1026 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1027 | program_prefix=$ac_optarg ;; | |
1028 | ||
1029 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1030 | | --program-suf | --program-su | --program-s) | |
1031 | ac_prev=program_suffix ;; | |
1032 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1033 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1034 | program_suffix=$ac_optarg ;; | |
1035 | ||
1036 | -program-transform-name | --program-transform-name \ | |
1037 | | --program-transform-nam | --program-transform-na \ | |
1038 | | --program-transform-n | --program-transform- \ | |
1039 | | --program-transform | --program-transfor \ | |
1040 | | --program-transfo | --program-transf \ | |
1041 | | --program-trans | --program-tran \ | |
1042 | | --progr-tra | --program-tr | --program-t) | |
1043 | ac_prev=program_transform_name ;; | |
1044 | -program-transform-name=* | --program-transform-name=* \ | |
1045 | | --program-transform-nam=* | --program-transform-na=* \ | |
1046 | | --program-transform-n=* | --program-transform-=* \ | |
1047 | | --program-transform=* | --program-transfor=* \ | |
1048 | | --program-transfo=* | --program-transf=* \ | |
1049 | | --program-trans=* | --program-tran=* \ | |
1050 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1051 | program_transform_name=$ac_optarg ;; | |
1052 | ||
dd184caf | 1053 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1054 | ac_prev=pdfdir ;; | |
1055 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1056 | pdfdir=$ac_optarg ;; | |
1057 | ||
1058 | -psdir | --psdir | --psdi | --psd | --ps) | |
1059 | ac_prev=psdir ;; | |
1060 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1061 | psdir=$ac_optarg ;; | |
1062 | ||
d9898ee8 | 1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | silent=yes ;; | |
1066 | ||
1067 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1068 | ac_prev=sbindir ;; | |
1069 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1070 | | --sbi=* | --sb=*) | |
1071 | sbindir=$ac_optarg ;; | |
1072 | ||
1073 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1074 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1075 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1076 | | --sha | --sh) | |
1077 | ac_prev=sharedstatedir ;; | |
1078 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1079 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1080 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1081 | | --sha=* | --sh=*) | |
1082 | sharedstatedir=$ac_optarg ;; | |
1083 | ||
1084 | -site | --site | --sit) | |
1085 | ac_prev=site ;; | |
1086 | -site=* | --site=* | --sit=*) | |
1087 | site=$ac_optarg ;; | |
1088 | ||
1089 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1090 | ac_prev=srcdir ;; | |
1091 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1092 | srcdir=$ac_optarg ;; | |
1093 | ||
1094 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1095 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1096 | ac_prev=sysconfdir ;; | |
1097 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1098 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1099 | sysconfdir=$ac_optarg ;; | |
1100 | ||
1101 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1102 | ac_prev=target_alias ;; | |
1103 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1104 | target_alias=$ac_optarg ;; | |
1105 | ||
1106 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1107 | verbose=yes ;; | |
1108 | ||
1109 | -version | --version | --versio | --versi | --vers | -V) | |
1110 | ac_init_version=: ;; | |
1111 | ||
1112 | -with-* | --with-*) | |
8d138742 | 1113 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1114 | # Reject names that are not valid shell variable names. |
8d138742 | 1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1116 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1117 | ac_useropt_orig=$ac_useropt |
1118 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1119 | case $ac_user_opts in | |
1120 | *" | |
1121 | "with_$ac_useropt" | |
1122 | "*) ;; | |
1123 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1124 | ac_unrecognized_sep=', ';; | |
1125 | esac | |
1126 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1127 | |
1128 | -without-* | --without-*) | |
8d138742 | 1129 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1130 | # Reject names that are not valid shell variable names. |
8d138742 | 1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1132 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1133 | ac_useropt_orig=$ac_useropt |
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 | case $ac_user_opts in | |
1136 | *" | |
1137 | "with_$ac_useropt" | |
1138 | "*) ;; | |
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1143 | |
1144 | --x) | |
1145 | # Obsolete; use --with-x. | |
1146 | with_x=yes ;; | |
1147 | ||
1148 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1149 | | --x-incl | --x-inc | --x-in | --x-i) | |
1150 | ac_prev=x_includes ;; | |
1151 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1152 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1153 | x_includes=$ac_optarg ;; | |
1154 | ||
1155 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1156 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1157 | ac_prev=x_libraries ;; | |
1158 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1159 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1160 | x_libraries=$ac_optarg ;; | |
1161 | ||
b0322a85 CE |
1162 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1163 | Try \`$0 --help' for more information" | |
d9898ee8 | 1164 | ;; |
1165 | ||
1166 | *=*) | |
1167 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1168 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1169 | case $ac_envvar in #( |
1170 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1171 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1172 | esac | |
dd184caf | 1173 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1174 | export $ac_envvar ;; |
1175 | ||
1176 | *) | |
1177 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1178 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1179 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1180 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1181 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1182 | ;; |
1183 | ||
1184 | esac | |
1185 | done | |
1186 | ||
1187 | if test -n "$ac_prev"; then | |
1188 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1189 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1190 | fi |
1191 | ||
8d138742 CE |
1192 | if test -n "$ac_unrecognized_opts"; then |
1193 | case $enable_option_checking in | |
1194 | no) ;; | |
b0322a85 | 1195 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1196 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1197 | esac | |
1198 | fi | |
1199 | ||
1200 | # Check all directory arguments for consistency. | |
dd184caf | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1204 | libdir localedir mandir | |
d9898ee8 | 1205 | do |
dd184caf | 1206 | eval ac_val=\$$ac_var |
8d138742 CE |
1207 | # Remove trailing slashes. |
1208 | case $ac_val in | |
1209 | */ ) | |
1210 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1211 | eval $ac_var=\$ac_val;; | |
1212 | esac | |
1213 | # Be sure to have absolute directory names. | |
d9898ee8 | 1214 | case $ac_val in |
dd184caf | 1215 | [\\/$]* | ?:[\\/]* ) continue;; |
1216 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1217 | esac |
b0322a85 | 1218 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1219 | done |
1220 | ||
1221 | # There might be people who depend on the old broken behavior: `$host' | |
1222 | # used to hold the argument of --host etc. | |
1223 | # FIXME: To remove some day. | |
1224 | build=$build_alias | |
1225 | host=$host_alias | |
1226 | target=$target_alias | |
1227 | ||
1228 | # FIXME: To remove some day. | |
1229 | if test "x$host_alias" != x; then | |
1230 | if test "x$build_alias" = x; then | |
1231 | cross_compiling=maybe | |
d9898ee8 | 1232 | elif test "x$build_alias" != "x$host_alias"; then |
1233 | cross_compiling=yes | |
1234 | fi | |
1235 | fi | |
1236 | ||
1237 | ac_tool_prefix= | |
1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1239 | ||
1240 | test "$silent" = yes && exec 6>/dev/null | |
1241 | ||
1242 | ||
dd184caf | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1244 | ac_ls_di=`ls -di .` && | |
1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1246 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1247 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1248 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1249 | |
1250 | ||
d9898ee8 | 1251 | # Find the source files, if location was not specified. |
1252 | if test -z "$srcdir"; then | |
1253 | ac_srcdir_defaulted=yes | |
dd184caf | 1254 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1255 | ac_confdir=`$as_dirname -- "$as_myself" || |
1256 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1257 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1258 | X"$as_myself" : 'X\(//\)$' \| \ | |
1259 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1260 | $as_echo X"$as_myself" | | |
dd184caf | 1261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1262 | s//\1/ | |
1263 | q | |
1264 | } | |
1265 | /^X\(\/\/\)[^/].*/{ | |
1266 | s//\1/ | |
1267 | q | |
1268 | } | |
1269 | /^X\(\/\/\)$/{ | |
1270 | s//\1/ | |
1271 | q | |
1272 | } | |
1273 | /^X\(\/\).*/{ | |
1274 | s//\1/ | |
1275 | q | |
1276 | } | |
1277 | s/.*/./; q'` | |
d9898ee8 | 1278 | srcdir=$ac_confdir |
dd184caf | 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1280 | srcdir=.. |
1281 | fi | |
1282 | else | |
1283 | ac_srcdir_defaulted=no | |
1284 | fi | |
dd184caf | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
1286 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1287 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1288 | fi |
dd184caf | 1289 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1290 | ac_abs_confdir=`( | |
b0322a85 | 1291 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1292 | pwd)` |
1293 | # When building in place, set srcdir=. | |
1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1295 | srcdir=. | |
1296 | fi | |
1297 | # Remove unnecessary trailing slashes from srcdir. | |
1298 | # Double slashes in file names in object file debugging info | |
1299 | # mess up M-x gdb in Emacs. | |
1300 | case $srcdir in | |
1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1302 | esac | |
1303 | for ac_var in $ac_precious_vars; do | |
1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1305 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1308 | done | |
d9898ee8 | 1309 | |
1310 | # | |
1311 | # Report the --help message. | |
1312 | # | |
1313 | if test "$ac_init_help" = "long"; then | |
1314 | # Omit some internal or obsolete options to make the list less imposing. | |
1315 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1316 | cat <<_ACEOF | |
1317 | \`configure' configures courierlogger 0.10 to adapt to many kinds of systems. | |
1318 | ||
1319 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1320 | ||
1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1322 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1323 | ||
1324 | Defaults for the options are specified in brackets. | |
1325 | ||
1326 | Configuration: | |
1327 | -h, --help display this help and exit | |
1328 | --help=short display options specific to this package | |
1329 | --help=recursive display the short help of all the included packages | |
1330 | -V, --version display version information and exit | |
b0322a85 | 1331 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1332 | --cache-file=FILE cache test results in FILE [disabled] |
1333 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1334 | -n, --no-create do not create output files | |
1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1336 | ||
d9898ee8 | 1337 | Installation directories: |
1338 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1339 | [$ac_default_prefix] |
d9898ee8 | 1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1341 | [PREFIX] |
d9898ee8 | 1342 | |
1343 | By default, \`make install' will install all the files in | |
1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1346 | for instance \`--prefix=\$HOME'. | |
1347 | ||
1348 | For better control, use the options below. | |
1349 | ||
1350 | Fine tuning of the installation directories: | |
8d138742 CE |
1351 | --bindir=DIR user executables [EPREFIX/bin] |
1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1353 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1357 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1358 | --includedir=DIR C header files [PREFIX/include] | |
1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1362 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1364 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger] | |
1366 | --htmldir=DIR html documentation [DOCDIR] | |
1367 | --dvidir=DIR dvi documentation [DOCDIR] | |
1368 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1369 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1370 | _ACEOF |
1371 | ||
1372 | cat <<\_ACEOF | |
1373 | ||
1374 | Program names: | |
1375 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1376 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1377 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1378 | ||
1379 | System types: | |
1380 | --build=BUILD configure for building on BUILD [guessed] | |
1381 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1382 | _ACEOF | |
1383 | fi | |
1384 | ||
1385 | if test -n "$ac_init_help"; then | |
1386 | case $ac_init_help in | |
1387 | short | recursive ) echo "Configuration of courierlogger 0.10:";; | |
1388 | esac | |
1389 | cat <<\_ACEOF | |
1390 | ||
1391 | Optional Features: | |
8d138742 | 1392 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1393 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1394 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1395 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1396 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1397 | --enable-dependency-tracking | |
1398 | do not reject slow dependency extractors | |
1399 | --disable-dependency-tracking | |
1400 | speeds up one-time build | |
dd184caf | 1401 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1402 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1403 | --enable-fast-install[=PKGS] |
1404 | optimize for fast installation [default=yes] | |
1405 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1406 | --disable-largefile omit support for large files |
d9898ee8 | 1407 | |
1408 | Optional Packages: | |
1409 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1410 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1411 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1412 | both] |
8d138742 | 1413 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b0322a85 CE |
1414 | --with-sysroot=DIR Search for dependent libraries within DIR |
1415 | (or the compiler's sysroot if not specified). | |
1416 | --with-syslog=XXX syslog facility [[MAIL]] | |
1417 | ||
1418 | Some influential environment variables: | |
1419 | CC C compiler command | |
1420 | CFLAGS C compiler flags | |
1421 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1422 | nonstandard directory <lib dir> | |
1423 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1424 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1425 | you have headers in a nonstandard directory <include dir> | |
1426 | CPP C preprocessor | |
1427 | ||
1428 | Use these variables to override the choices made by `configure' or to help | |
1429 | it to find libraries and programs with nonstandard names/locations. | |
1430 | ||
1431 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1432 | _ACEOF | |
1433 | ac_status=$? | |
1434 | fi | |
1435 | ||
1436 | if test "$ac_init_help" = "recursive"; then | |
1437 | # If there are subdirs, report their specific --help. | |
1438 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1439 | test -d "$ac_dir" || | |
1440 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1441 | continue | |
1442 | ac_builddir=. | |
1443 | ||
1444 | case "$ac_dir" in | |
1445 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1446 | *) | |
1447 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1448 | # A ".." for each directory in $ac_dir_suffix. | |
1449 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1450 | case $ac_top_builddir_sub in | |
1451 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1452 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1453 | esac ;; | |
1454 | esac | |
1455 | ac_abs_top_builddir=$ac_pwd | |
1456 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1457 | # for backward compatibility: | |
1458 | ac_top_builddir=$ac_top_build_prefix | |
1459 | ||
1460 | case $srcdir in | |
1461 | .) # We are building in place. | |
1462 | ac_srcdir=. | |
1463 | ac_top_srcdir=$ac_top_builddir_sub | |
1464 | ac_abs_top_srcdir=$ac_pwd ;; | |
1465 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1466 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1467 | ac_top_srcdir=$srcdir | |
1468 | ac_abs_top_srcdir=$srcdir ;; | |
1469 | *) # Relative name. | |
1470 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1471 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1472 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1473 | esac | |
1474 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1475 | ||
1476 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1477 | # Check for guested configure. | |
1478 | if test -f "$ac_srcdir/configure.gnu"; then | |
1479 | echo && | |
1480 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1481 | elif test -f "$ac_srcdir/configure"; then | |
1482 | echo && | |
1483 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1484 | else | |
1485 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1486 | fi || ac_status=$? | |
1487 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1488 | done | |
1489 | fi | |
1490 | ||
1491 | test -n "$ac_init_help" && exit $ac_status | |
1492 | if $ac_init_version; then | |
1493 | cat <<\_ACEOF | |
1494 | courierlogger configure 0.10 | |
1495 | generated by GNU Autoconf 2.69 | |
1496 | ||
1497 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1498 | This configure script is free software; the Free Software Foundation | |
1499 | gives unlimited permission to copy, distribute and modify it. | |
1500 | _ACEOF | |
1501 | exit | |
1502 | fi | |
1503 | ||
1504 | ## ------------------------ ## | |
1505 | ## Autoconf initialization. ## | |
1506 | ## ------------------------ ## | |
1507 | ||
1508 | # ac_fn_c_try_compile LINENO | |
1509 | # -------------------------- | |
1510 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1511 | ac_fn_c_try_compile () | |
1512 | { | |
1513 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1514 | rm -f conftest.$ac_objext | |
1515 | if { { ac_try="$ac_compile" | |
1516 | case "(($ac_try" in | |
1517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1518 | *) ac_try_echo=$ac_try;; | |
1519 | esac | |
1520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1521 | $as_echo "$ac_try_echo"; } >&5 | |
1522 | (eval "$ac_compile") 2>conftest.err | |
1523 | ac_status=$? | |
1524 | if test -s conftest.err; then | |
1525 | grep -v '^ *+' conftest.err >conftest.er1 | |
1526 | cat conftest.er1 >&5 | |
1527 | mv -f conftest.er1 conftest.err | |
1528 | fi | |
1529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1530 | test $ac_status = 0; } && { | |
1531 | test -z "$ac_c_werror_flag" || | |
1532 | test ! -s conftest.err | |
1533 | } && test -s conftest.$ac_objext; then : | |
1534 | ac_retval=0 | |
1535 | else | |
1536 | $as_echo "$as_me: failed program was:" >&5 | |
1537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1538 | ||
1539 | ac_retval=1 | |
1540 | fi | |
1541 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1542 | as_fn_set_status $ac_retval | |
1543 | ||
1544 | } # ac_fn_c_try_compile | |
1545 | ||
1546 | # ac_fn_c_try_link LINENO | |
1547 | # ----------------------- | |
1548 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1549 | ac_fn_c_try_link () | |
1550 | { | |
1551 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1553 | if { { ac_try="$ac_link" | |
1554 | case "(($ac_try" in | |
1555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1556 | *) ac_try_echo=$ac_try;; | |
1557 | esac | |
1558 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1559 | $as_echo "$ac_try_echo"; } >&5 | |
1560 | (eval "$ac_link") 2>conftest.err | |
1561 | ac_status=$? | |
1562 | if test -s conftest.err; then | |
1563 | grep -v '^ *+' conftest.err >conftest.er1 | |
1564 | cat conftest.er1 >&5 | |
1565 | mv -f conftest.er1 conftest.err | |
1566 | fi | |
1567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1568 | test $ac_status = 0; } && { | |
1569 | test -z "$ac_c_werror_flag" || | |
1570 | test ! -s conftest.err | |
1571 | } && test -s conftest$ac_exeext && { | |
1572 | test "$cross_compiling" = yes || | |
1573 | test -x conftest$ac_exeext | |
1574 | }; then : | |
1575 | ac_retval=0 | |
1576 | else | |
1577 | $as_echo "$as_me: failed program was:" >&5 | |
1578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1579 | ||
1580 | ac_retval=1 | |
1581 | fi | |
1582 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1583 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1584 | # interfere with the next link command; also delete a directory that is | |
1585 | # left behind by Apple's compiler. We do this before executing the actions. | |
1586 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1587 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1588 | as_fn_set_status $ac_retval | |
1589 | ||
1590 | } # ac_fn_c_try_link | |
1591 | ||
1592 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1593 | # ------------------------------------------------------- | |
1594 | # Tests whether HEADER exists and can be compiled using the include files in | |
1595 | # INCLUDES, setting the cache variable VAR accordingly. | |
1596 | ac_fn_c_check_header_compile () | |
1597 | { | |
1598 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1600 | $as_echo_n "checking for $2... " >&6; } | |
1601 | if eval \${$3+:} false; then : | |
1602 | $as_echo_n "(cached) " >&6 | |
1603 | else | |
1604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1605 | /* end confdefs.h. */ | |
1606 | $4 | |
1607 | #include <$2> | |
1608 | _ACEOF | |
1609 | if ac_fn_c_try_compile "$LINENO"; then : | |
1610 | eval "$3=yes" | |
1611 | else | |
1612 | eval "$3=no" | |
1613 | fi | |
1614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1615 | fi | |
1616 | eval ac_res=\$$3 | |
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1618 | $as_echo "$ac_res" >&6; } | |
1619 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1620 | ||
1621 | } # ac_fn_c_check_header_compile | |
1622 | ||
1623 | # ac_fn_c_try_cpp LINENO | |
1624 | # ---------------------- | |
1625 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1626 | ac_fn_c_try_cpp () | |
1627 | { | |
1628 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1629 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1630 | case "(($ac_try" in | |
1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1632 | *) ac_try_echo=$ac_try;; | |
1633 | esac | |
1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1635 | $as_echo "$ac_try_echo"; } >&5 | |
1636 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1637 | ac_status=$? | |
1638 | if test -s conftest.err; then | |
1639 | grep -v '^ *+' conftest.err >conftest.er1 | |
1640 | cat conftest.er1 >&5 | |
1641 | mv -f conftest.er1 conftest.err | |
1642 | fi | |
1643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1644 | test $ac_status = 0; } > conftest.i && { | |
1645 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1646 | test ! -s conftest.err | |
1647 | }; then : | |
1648 | ac_retval=0 | |
1649 | else | |
1650 | $as_echo "$as_me: failed program was:" >&5 | |
1651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1652 | ||
1653 | ac_retval=1 | |
1654 | fi | |
1655 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1656 | as_fn_set_status $ac_retval | |
1657 | ||
1658 | } # ac_fn_c_try_cpp | |
1659 | ||
1660 | # ac_fn_c_try_run LINENO | |
1661 | # ---------------------- | |
1662 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1663 | # that executables *can* be run. | |
1664 | ac_fn_c_try_run () | |
1665 | { | |
1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1667 | if { { ac_try="$ac_link" | |
1668 | case "(($ac_try" in | |
1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1670 | *) ac_try_echo=$ac_try;; | |
1671 | esac | |
1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1673 | $as_echo "$ac_try_echo"; } >&5 | |
1674 | (eval "$ac_link") 2>&5 | |
1675 | ac_status=$? | |
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1677 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1678 | { { case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | $as_echo "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_try") 2>&5 | |
1685 | ac_status=$? | |
1686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1687 | test $ac_status = 0; }; }; then : | |
1688 | ac_retval=0 | |
1689 | else | |
1690 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1691 | $as_echo "$as_me: failed program was:" >&5 | |
1692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1693 | ||
1694 | ac_retval=$ac_status | |
1695 | fi | |
1696 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1698 | as_fn_set_status $ac_retval | |
1699 | ||
1700 | } # ac_fn_c_try_run | |
1701 | ||
1702 | # ac_fn_c_check_func LINENO FUNC VAR | |
1703 | # ---------------------------------- | |
1704 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1705 | ac_fn_c_check_func () | |
1706 | { | |
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1709 | $as_echo_n "checking for $2... " >&6; } | |
1710 | if eval \${$3+:} false; then : | |
1711 | $as_echo_n "(cached) " >&6 | |
1712 | else | |
1713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1714 | /* end confdefs.h. */ | |
1715 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1717 | #define $2 innocuous_$2 | |
1718 | ||
1719 | /* System header to define __stub macros and hopefully few prototypes, | |
1720 | which can conflict with char $2 (); below. | |
1721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1722 | <limits.h> exists even on freestanding compilers. */ | |
1723 | ||
1724 | #ifdef __STDC__ | |
1725 | # include <limits.h> | |
1726 | #else | |
1727 | # include <assert.h> | |
1728 | #endif | |
d9898ee8 | 1729 | |
b0322a85 | 1730 | #undef $2 |
d9898ee8 | 1731 | |
b0322a85 CE |
1732 | /* Override any GCC internal prototype to avoid an error. |
1733 | Use char because int might match the return type of a GCC | |
1734 | builtin and then its argument prototype would still apply. */ | |
1735 | #ifdef __cplusplus | |
1736 | extern "C" | |
1737 | #endif | |
1738 | char $2 (); | |
1739 | /* The GNU C library defines this for functions which it implements | |
1740 | to always fail with ENOSYS. Some functions are actually named | |
1741 | something starting with __ and the normal name is an alias. */ | |
1742 | #if defined __stub_$2 || defined __stub___$2 | |
1743 | choke me | |
1744 | #endif | |
d9898ee8 | 1745 | |
b0322a85 CE |
1746 | int |
1747 | main () | |
1748 | { | |
1749 | return $2 (); | |
1750 | ; | |
1751 | return 0; | |
1752 | } | |
d9898ee8 | 1753 | _ACEOF |
b0322a85 CE |
1754 | if ac_fn_c_try_link "$LINENO"; then : |
1755 | eval "$3=yes" | |
1756 | else | |
1757 | eval "$3=no" | |
d9898ee8 | 1758 | fi |
b0322a85 CE |
1759 | rm -f core conftest.err conftest.$ac_objext \ |
1760 | conftest$ac_exeext conftest.$ac_ext | |
1761 | fi | |
1762 | eval ac_res=\$$3 | |
1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1764 | $as_echo "$ac_res" >&6; } | |
1765 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1766 | |
b0322a85 | 1767 | } # ac_fn_c_check_func |
dd184caf | 1768 | |
b0322a85 CE |
1769 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1770 | # ------------------------------------------------------- | |
1771 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1772 | # the include files in INCLUDES and setting the cache variable VAR | |
1773 | # accordingly. | |
1774 | ac_fn_c_check_header_mongrel () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | if eval \${$3+:} false; then : | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1779 | $as_echo_n "checking for $2... " >&6; } | |
1780 | if eval \${$3+:} false; then : | |
1781 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 1782 | fi |
b0322a85 CE |
1783 | eval ac_res=\$$3 |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1785 | $as_echo "$ac_res" >&6; } | |
1786 | else | |
1787 | # Is the header compilable? | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1789 | $as_echo_n "checking $2 usability... " >&6; } | |
1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1791 | /* end confdefs.h. */ | |
1792 | $4 | |
1793 | #include <$2> | |
1794 | _ACEOF | |
1795 | if ac_fn_c_try_compile "$LINENO"; then : | |
1796 | ac_header_compiler=yes | |
1797 | else | |
1798 | ac_header_compiler=no | |
1799 | fi | |
1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1802 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 1803 | |
b0322a85 CE |
1804 | # Is the header present? |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1806 | $as_echo_n "checking $2 presence... " >&6; } | |
1807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1808 | /* end confdefs.h. */ | |
1809 | #include <$2> | |
d9898ee8 | 1810 | _ACEOF |
b0322a85 CE |
1811 | if ac_fn_c_try_cpp "$LINENO"; then : |
1812 | ac_header_preproc=yes | |
1813 | else | |
1814 | ac_header_preproc=no | |
d9898ee8 | 1815 | fi |
b0322a85 CE |
1816 | rm -f conftest.err conftest.i conftest.$ac_ext |
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1818 | $as_echo "$ac_header_preproc" >&6; } | |
1819 | ||
1820 | # So? What about this header? | |
1821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1822 | yes:no: ) | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1824 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1826 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1827 | ;; | |
1828 | no:yes:* ) | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1830 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1832 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1834 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1836 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1838 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1839 | ( $as_echo "## -------------------------------------------------- ## | |
1840 | ## Report this to courier-users@lists.sourceforge.net ## | |
1841 | ## -------------------------------------------------- ##" | |
1842 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1843 | ;; | |
1844 | esac | |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1846 | $as_echo_n "checking for $2... " >&6; } | |
1847 | if eval \${$3+:} false; then : | |
1848 | $as_echo_n "(cached) " >&6 | |
1849 | else | |
1850 | eval "$3=\$ac_header_compiler" | |
1851 | fi | |
1852 | eval ac_res=\$$3 | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1854 | $as_echo "$ac_res" >&6; } | |
1855 | fi | |
1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1857 | ||
1858 | } # ac_fn_c_check_header_mongrel | |
dd184caf | 1859 | cat >config.log <<_ACEOF |
d9898ee8 | 1860 | This file contains any messages produced by compilers while |
1861 | running configure, to aid debugging if configure makes a mistake. | |
1862 | ||
1863 | It was created by courierlogger $as_me 0.10, which was | |
b0322a85 | 1864 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1865 | |
1866 | $ $0 $@ | |
1867 | ||
1868 | _ACEOF | |
dd184caf | 1869 | exec 5>>config.log |
d9898ee8 | 1870 | { |
1871 | cat <<_ASUNAME | |
1872 | ## --------- ## | |
1873 | ## Platform. ## | |
1874 | ## --------- ## | |
1875 | ||
1876 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1877 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1878 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1879 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1880 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1881 | ||
1882 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1883 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1884 | ||
1885 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1886 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1887 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1888 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1889 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1890 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1891 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1892 | ||
1893 | _ASUNAME | |
1894 | ||
1895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1896 | for as_dir in $PATH | |
1897 | do | |
1898 | IFS=$as_save_IFS | |
1899 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1900 | $as_echo "PATH: $as_dir" |
1901 | done | |
dd184caf | 1902 | IFS=$as_save_IFS |
d9898ee8 | 1903 | |
1904 | } >&5 | |
1905 | ||
1906 | cat >&5 <<_ACEOF | |
1907 | ||
1908 | ||
1909 | ## ----------- ## | |
1910 | ## Core tests. ## | |
1911 | ## ----------- ## | |
1912 | ||
1913 | _ACEOF | |
1914 | ||
1915 | ||
1916 | # Keep a trace of the command line. | |
1917 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1918 | # Strip out --silent because we don't want to record it for future runs. | |
1919 | # Also quote any args containing shell meta-characters. | |
1920 | # Make two passes to allow for proper duplicate-argument suppression. | |
1921 | ac_configure_args= | |
1922 | ac_configure_args0= | |
1923 | ac_configure_args1= | |
d9898ee8 | 1924 | ac_must_keep_next=false |
1925 | for ac_pass in 1 2 | |
1926 | do | |
1927 | for ac_arg | |
1928 | do | |
1929 | case $ac_arg in | |
1930 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1931 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1932 | | -silent | --silent | --silen | --sile | --sil) | |
1933 | continue ;; | |
dd184caf | 1934 | *\'*) |
8d138742 | 1935 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1936 | esac |
1937 | case $ac_pass in | |
b0322a85 | 1938 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 1939 | 2) |
b0322a85 | 1940 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 1941 | if test $ac_must_keep_next = true; then |
1942 | ac_must_keep_next=false # Got value, back to normal. | |
1943 | else | |
1944 | case $ac_arg in | |
1945 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1946 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1947 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1948 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1949 | case "$ac_configure_args0 " in | |
1950 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1951 | esac | |
1952 | ;; | |
1953 | -* ) ac_must_keep_next=true ;; | |
1954 | esac | |
1955 | fi | |
b0322a85 | 1956 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 1957 | ;; |
1958 | esac | |
1959 | done | |
1960 | done | |
b0322a85 CE |
1961 | { ac_configure_args0=; unset ac_configure_args0;} |
1962 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 1963 | |
1964 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1965 | # config.log. We remove comments because anyway the quotes in there | |
1966 | # would cause problems or look ugly. | |
dd184caf | 1967 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1968 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1969 | trap 'exit_status=$? |
1970 | # Save into config.log some information that might help in debugging. | |
1971 | { | |
1972 | echo | |
1973 | ||
b0322a85 | 1974 | $as_echo "## ---------------- ## |
d9898ee8 | 1975 | ## Cache variables. ## |
b0322a85 | 1976 | ## ---------------- ##" |
d9898ee8 | 1977 | echo |
1978 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1979 | ( |
1980 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1981 | eval ac_val=\$$ac_var | |
1982 | case $ac_val in #( | |
1983 | *${as_nl}*) | |
1984 | case $ac_var in #( | |
b0322a85 | 1985 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 1986 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 1987 | esac |
1988 | case $ac_var in #( | |
1989 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1990 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 1991 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 1992 | esac ;; |
1993 | esac | |
1994 | done | |
d9898ee8 | 1995 | (set) 2>&1 | |
dd184caf | 1996 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1997 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1998 | sed -n \ |
dd184caf | 1999 | "s/'\''/'\''\\\\'\'''\''/g; |
2000 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2001 | ;; #( | |
d9898ee8 | 2002 | *) |
dd184caf | 2003 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2004 | ;; |
dd184caf | 2005 | esac | |
2006 | sort | |
2007 | ) | |
d9898ee8 | 2008 | echo |
2009 | ||
b0322a85 | 2010 | $as_echo "## ----------------- ## |
d9898ee8 | 2011 | ## Output variables. ## |
b0322a85 | 2012 | ## ----------------- ##" |
d9898ee8 | 2013 | echo |
2014 | for ac_var in $ac_subst_vars | |
2015 | do | |
dd184caf | 2016 | eval ac_val=\$$ac_var |
2017 | case $ac_val in | |
8d138742 | 2018 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2019 | esac |
8d138742 | 2020 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2021 | done | sort |
2022 | echo | |
2023 | ||
2024 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2025 | $as_echo "## ------------------- ## |
dd184caf | 2026 | ## File substitutions. ## |
b0322a85 | 2027 | ## ------------------- ##" |
d9898ee8 | 2028 | echo |
2029 | for ac_var in $ac_subst_files | |
2030 | do | |
dd184caf | 2031 | eval ac_val=\$$ac_var |
2032 | case $ac_val in | |
8d138742 | 2033 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2034 | esac |
8d138742 | 2035 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2036 | done | sort |
2037 | echo | |
2038 | fi | |
2039 | ||
2040 | if test -s confdefs.h; then | |
b0322a85 | 2041 | $as_echo "## ----------- ## |
d9898ee8 | 2042 | ## confdefs.h. ## |
b0322a85 | 2043 | ## ----------- ##" |
d9898ee8 | 2044 | echo |
dd184caf | 2045 | cat confdefs.h |
d9898ee8 | 2046 | echo |
2047 | fi | |
2048 | test "$ac_signal" != 0 && | |
8d138742 CE |
2049 | $as_echo "$as_me: caught signal $ac_signal" |
2050 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2051 | } >&5 |
dd184caf | 2052 | rm -f core *.core core.conftest.* && |
2053 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2054 | exit $exit_status |
dd184caf | 2055 | ' 0 |
d9898ee8 | 2056 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2057 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2058 | done |
2059 | ac_signal=0 | |
2060 | ||
2061 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2062 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2063 | |
b0322a85 CE |
2064 | $as_echo "/* confdefs.h */" > confdefs.h |
2065 | ||
d9898ee8 | 2066 | # Predefined preprocessor variables. |
2067 | ||
2068 | cat >>confdefs.h <<_ACEOF | |
2069 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2070 | _ACEOF | |
2071 | ||
d9898ee8 | 2072 | cat >>confdefs.h <<_ACEOF |
2073 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2074 | _ACEOF | |
2075 | ||
d9898ee8 | 2076 | cat >>confdefs.h <<_ACEOF |
2077 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2078 | _ACEOF | |
2079 | ||
d9898ee8 | 2080 | cat >>confdefs.h <<_ACEOF |
2081 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2082 | _ACEOF | |
2083 | ||
d9898ee8 | 2084 | cat >>confdefs.h <<_ACEOF |
2085 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2086 | _ACEOF | |
2087 | ||
b0322a85 CE |
2088 | cat >>confdefs.h <<_ACEOF |
2089 | #define PACKAGE_URL "$PACKAGE_URL" | |
2090 | _ACEOF | |
2091 | ||
d9898ee8 | 2092 | |
2093 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2094 | # Prefer an explicitly selected file to automatically selected ones. |
2095 | ac_site_file1=NONE | |
2096 | ac_site_file2=NONE | |
dd184caf | 2097 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2098 | # We do not want a PATH search for config.site. |
2099 | case $CONFIG_SITE in #(( | |
2100 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2101 | */*) ac_site_file1=$CONFIG_SITE;; | |
2102 | *) ac_site_file1=./$CONFIG_SITE;; | |
2103 | esac | |
dd184caf | 2104 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2105 | ac_site_file1=$prefix/share/config.site |
2106 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2107 | else |
8d138742 CE |
2108 | ac_site_file1=$ac_default_prefix/share/config.site |
2109 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2110 | fi |
8d138742 | 2111 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2112 | do |
8d138742 | 2113 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2114 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2115 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2116 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2117 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2118 | . "$ac_site_file" \ |
2119 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2120 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2121 | as_fn_error $? "failed to load site script $ac_site_file | |
2122 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2123 | fi |
2124 | done | |
2125 | ||
2126 | if test -r "$cache_file"; then | |
b0322a85 CE |
2127 | # Some versions of bash will fail to source /dev/null (special files |
2128 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2129 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2131 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2132 | case $cache_file in |
dd184caf | 2133 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2134 | *) . "./$cache_file";; | |
d9898ee8 | 2135 | esac |
2136 | fi | |
2137 | else | |
b0322a85 | 2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2139 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2140 | >$cache_file |
2141 | fi | |
2142 | ||
2143 | # Check that the precious variables saved in the cache have kept the same | |
2144 | # value. | |
2145 | ac_cache_corrupted=false | |
dd184caf | 2146 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2147 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2148 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2149 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2150 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2151 | case $ac_old_set,$ac_new_set in |
2152 | set,) | |
b0322a85 | 2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2154 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2155 | ac_cache_corrupted=: ;; |
2156 | ,set) | |
b0322a85 | 2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2158 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2159 | ac_cache_corrupted=: ;; |
2160 | ,);; | |
2161 | *) | |
2162 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2163 | # differences in whitespace do not lead to failure. |
2164 | ac_old_val_w=`echo x $ac_old_val` | |
2165 | ac_new_val_w=`echo x $ac_new_val` | |
2166 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2168 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2169 | ac_cache_corrupted=: | |
2170 | else | |
b0322a85 | 2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2172 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2173 | eval $ac_var=\$ac_old_val | |
2174 | fi | |
b0322a85 | 2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2176 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2178 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2179 | fi;; |
2180 | esac | |
2181 | # Pass precious variables to config.status. | |
2182 | if test "$ac_new_set" = set; then | |
2183 | case $ac_new_val in | |
8d138742 | 2184 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2185 | *) ac_arg=$ac_var=$ac_new_val ;; |
2186 | esac | |
2187 | case " $ac_configure_args " in | |
2188 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2189 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2190 | esac |
2191 | fi | |
2192 | done | |
2193 | if $ac_cache_corrupted; then | |
b0322a85 | 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2197 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2198 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2199 | fi |
b0322a85 CE |
2200 | ## -------------------- ## |
2201 | ## Main body of script. ## | |
2202 | ## -------------------- ## | |
d9898ee8 | 2203 | |
dd184caf | 2204 | ac_ext=c |
2205 | ac_cpp='$CPP $CPPFLAGS' | |
2206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2209 | |
2210 | ||
2211 | ||
2212 | >confdefs.h # Kill PACKAGE_ macros. | |
2213 | LPATH="$PATH:/usr/local/bin" | |
2214 | ||
d9898ee8 | 2215 | ac_aux_dir= |
b0322a85 | 2216 | for ac_dir in .. "$srcdir"/..; do |
dd184caf | 2217 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2218 | ac_aux_dir=$ac_dir |
2219 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2220 | break | |
dd184caf | 2221 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2222 | ac_aux_dir=$ac_dir |
2223 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2224 | break | |
dd184caf | 2225 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2226 | ac_aux_dir=$ac_dir |
2227 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2228 | break | |
2229 | fi | |
2230 | done | |
2231 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2232 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
d9898ee8 | 2233 | fi |
dd184caf | 2234 | |
2235 | # These three variables are undocumented and unsupported, | |
2236 | # and are intended to be withdrawn in a future Autoconf release. | |
2237 | # They can cause serious problems if a builder's source tree is in a directory | |
2238 | # whose full name contains unusual characters. | |
2239 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2240 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2241 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2242 | ||
d9898ee8 | 2243 | |
b0322a85 CE |
2244 | am__api_version='1.13' |
2245 | ||
d9898ee8 | 2246 | # Find a good install program. We prefer a C program (faster), |
2247 | # so one script is as good as another. But avoid the broken or | |
2248 | # incompatible versions: | |
2249 | # SysV /etc/install, /usr/sbin/install | |
2250 | # SunOS /usr/etc/install | |
2251 | # IRIX /sbin/install | |
2252 | # AIX /bin/install | |
2253 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2254 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2255 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2256 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2257 | # OS/2's system install, which has a completely different semantic | |
2258 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2259 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2261 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2262 | if test -z "$INSTALL"; then |
b0322a85 | 2263 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2264 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2265 | else |
2266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2267 | for as_dir in $PATH | |
2268 | do | |
2269 | IFS=$as_save_IFS | |
2270 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2271 | # Account for people who put trailing slashes in PATH elements. |
2272 | case $as_dir/ in #(( | |
2273 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2274 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2275 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2276 | /usr/ucb/* ) ;; |
2277 | *) | |
2278 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2279 | # Don't use installbsd from OSF since it installs stuff as root | |
2280 | # by default. | |
2281 | for ac_prog in ginstall scoinst install; do | |
2282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2283 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2284 | if test $ac_prog = install && |
2285 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2286 | # AIX install. It has an incompatible calling convention. | |
2287 | : | |
2288 | elif test $ac_prog = install && | |
2289 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2290 | # program-specific install script used by HP pwplus--don't use. | |
2291 | : | |
2292 | else | |
8d138742 CE |
2293 | rm -rf conftest.one conftest.two conftest.dir |
2294 | echo one > conftest.one | |
2295 | echo two > conftest.two | |
2296 | mkdir conftest.dir | |
2297 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2298 | test -s conftest.one && test -s conftest.two && | |
2299 | test -s conftest.dir/conftest.one && | |
2300 | test -s conftest.dir/conftest.two | |
2301 | then | |
2302 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2303 | break 3 | |
2304 | fi | |
d9898ee8 | 2305 | fi |
2306 | fi | |
2307 | done | |
2308 | done | |
2309 | ;; | |
2310 | esac | |
8d138742 | 2311 | |
b0322a85 | 2312 | done |
dd184caf | 2313 | IFS=$as_save_IFS |
d9898ee8 | 2314 | |
8d138742 | 2315 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2316 | |
2317 | fi | |
2318 | if test "${ac_cv_path_install+set}" = set; then | |
2319 | INSTALL=$ac_cv_path_install | |
2320 | else | |
dd184caf | 2321 | # As a last resort, use the slow shell script. Don't cache a |
2322 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2323 | # break other packages using the cache if that directory is |
dd184caf | 2324 | # removed, or if the value is a relative name. |
d9898ee8 | 2325 | INSTALL=$ac_install_sh |
2326 | fi | |
2327 | fi | |
b0322a85 | 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2329 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2330 | |
2331 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2332 | # It thinks the first close brace ends the variable substitution. | |
2333 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2334 | ||
2335 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2336 | ||
2337 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2338 | ||
b0322a85 | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2340 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2341 | # Reject unsafe characters in $srcdir or the absolute working directory |
2342 | # name. Accept space and tab only in the latter. | |
2343 | am_lf=' | |
2344 | ' | |
2345 | case `pwd` in | |
2346 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2347 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2348 | esac |
2349 | case $srcdir in | |
2350 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2351 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2352 | esac |
2353 | ||
b0322a85 | 2354 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2355 | # arguments. Must try -L first in case configure is actually a |
2356 | # symlink; some systems play weird games with the mod time of symlinks | |
2357 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2358 | # directory). | |
2359 | if ( | |
b0322a85 CE |
2360 | am_has_slept=no |
2361 | for am_try in 1 2; do | |
2362 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2363 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2364 | if test "$*" = "X"; then | |
2365 | # -L didn't work. | |
2366 | set X `ls -t "$srcdir/configure" conftest.file` | |
2367 | fi | |
2368 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2369 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2370 | ||
2371 | # If neither matched, then we have a broken ls. This can happen | |
2372 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2373 | # broken ls alias from the environment. This has actually | |
2374 | # happened. Such a system could not be considered "sane". | |
2375 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2376 | alias in your environment" "$LINENO" 5 | |
2377 | fi | |
2378 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2379 | break | |
2380 | fi | |
2381 | # Just in case. | |
2382 | sleep 1 | |
2383 | am_has_slept=yes | |
2384 | done | |
d9898ee8 | 2385 | test "$2" = conftest.file |
2386 | ) | |
2387 | then | |
2388 | # Ok. | |
2389 | : | |
2390 | else | |
b0322a85 CE |
2391 | as_fn_error $? "newly created file is older than distributed files! |
2392 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2393 | fi |
b0322a85 | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2395 | $as_echo "yes" >&6; } |
b0322a85 CE |
2396 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2397 | # generated files are strictly newer. | |
2398 | am_sleep_pid= | |
2399 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2400 | ( sleep 1 ) & | |
2401 | am_sleep_pid=$! | |
2402 | fi | |
2403 | ||
2404 | rm -f conftest.file | |
2405 | ||
d9898ee8 | 2406 | test "$program_prefix" != NONE && |
dd184caf | 2407 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2408 | # Use a double $ so make ignores it. |
2409 | test "$program_suffix" != NONE && | |
dd184caf | 2410 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2411 | # Double any \ or $. |
d9898ee8 | 2412 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2413 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2414 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2415 | |
2416 | # expand $ac_aux_dir to an absolute path | |
2417 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2418 | ||
8d138742 CE |
2419 | if test x"${MISSING+set}" != xset; then |
2420 | case $am_aux_dir in | |
2421 | *\ * | *\ *) | |
2422 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2423 | *) | |
2424 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2425 | esac | |
2426 | fi | |
d9898ee8 | 2427 | # Use eval to expand $SHELL |
b0322a85 CE |
2428 | if eval "$MISSING --is-lightweight"; then |
2429 | am_missing_run="$MISSING " | |
d9898ee8 | 2430 | else |
2431 | am_missing_run= | |
b0322a85 CE |
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2433 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2434 | fi |
2435 | ||
2436 | if test x"${install_sh}" != xset; then | |
2437 | case $am_aux_dir in | |
2438 | *\ * | *\ *) | |
2439 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2440 | *) | |
2441 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2442 | esac | |
2443 | fi | |
2444 | ||
b0322a85 CE |
2445 | # Installed binaries are usually stripped using 'strip' when the user |
2446 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2447 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2448 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2449 | if test "$cross_compiling" != no; then |
2450 | if test -n "$ac_tool_prefix"; then | |
2451 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2452 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2454 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2455 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2456 | $as_echo_n "(cached) " >&6 |
2457 | else | |
2458 | if test -n "$STRIP"; then | |
2459 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2460 | else | |
2461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2462 | for as_dir in $PATH | |
2463 | do | |
2464 | IFS=$as_save_IFS | |
2465 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2466 | for ac_exec_ext in '' $ac_executable_extensions; do |
2467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2468 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2470 | break 2 |
2471 | fi | |
2472 | done | |
b0322a85 | 2473 | done |
8d138742 CE |
2474 | IFS=$as_save_IFS |
2475 | ||
2476 | fi | |
2477 | fi | |
2478 | STRIP=$ac_cv_prog_STRIP | |
2479 | if test -n "$STRIP"; then | |
b0322a85 | 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2481 | $as_echo "$STRIP" >&6; } |
2482 | else | |
b0322a85 | 2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2484 | $as_echo "no" >&6; } |
d9898ee8 | 2485 | fi |
2486 | ||
8d138742 CE |
2487 | |
2488 | fi | |
2489 | if test -z "$ac_cv_prog_STRIP"; then | |
2490 | ac_ct_STRIP=$STRIP | |
2491 | # Extract the first word of "strip", so it can be a program name with args. | |
2492 | set dummy strip; ac_word=$2 | |
b0322a85 | 2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2494 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2495 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2496 | $as_echo_n "(cached) " >&6 |
2497 | else | |
2498 | if test -n "$ac_ct_STRIP"; then | |
2499 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2500 | else | |
2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2502 | for as_dir in $PATH | |
2503 | do | |
2504 | IFS=$as_save_IFS | |
2505 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2506 | for ac_exec_ext in '' $ac_executable_extensions; do |
2507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2508 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2510 | break 2 |
2511 | fi | |
2512 | done | |
b0322a85 | 2513 | done |
8d138742 CE |
2514 | IFS=$as_save_IFS |
2515 | ||
2516 | fi | |
2517 | fi | |
2518 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2519 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2521 | $as_echo "$ac_ct_STRIP" >&6; } |
2522 | else | |
b0322a85 | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2524 | $as_echo "no" >&6; } |
2525 | fi | |
2526 | ||
2527 | if test "x$ac_ct_STRIP" = x; then | |
2528 | STRIP=":" | |
2529 | else | |
2530 | case $cross_compiling:$ac_tool_warned in | |
2531 | yes:) | |
b0322a85 | 2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2533 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2534 | ac_tool_warned=yes ;; | |
2535 | esac | |
2536 | STRIP=$ac_ct_STRIP | |
2537 | fi | |
2538 | else | |
2539 | STRIP="$ac_cv_prog_STRIP" | |
2540 | fi | |
2541 | ||
2542 | fi | |
2543 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2544 | ||
b0322a85 | 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2546 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2547 | if test -z "$MKDIR_P"; then |
b0322a85 | 2548 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2549 | $as_echo_n "(cached) " >&6 |
dd184caf | 2550 | else |
2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2552 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2553 | do | |
2554 | IFS=$as_save_IFS | |
2555 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2556 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2557 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2558 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2559 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2560 | 'mkdir (GNU coreutils) '* | \ | |
2561 | 'mkdir (coreutils) '* | \ | |
2562 | 'mkdir (fileutils) '4.1*) | |
2563 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2564 | break 3;; | |
2565 | esac | |
2566 | done | |
2567 | done | |
b0322a85 | 2568 | done |
dd184caf | 2569 | IFS=$as_save_IFS |
2570 | ||
2571 | fi | |
2572 | ||
b0322a85 | 2573 | test -d ./--version && rmdir ./--version |
dd184caf | 2574 | if test "${ac_cv_path_mkdir+set}" = set; then |
2575 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2576 | else |
dd184caf | 2577 | # As a last resort, use the slow shell script. Don't cache a |
2578 | # value for MKDIR_P within a source directory, because that will | |
2579 | # break other packages using the cache if that directory is | |
2580 | # removed, or if the value is a relative name. | |
dd184caf | 2581 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2582 | fi |
2583 | fi | |
b0322a85 | 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2585 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2586 | |
d9898ee8 | 2587 | for ac_prog in gawk mawk nawk awk |
2588 | do | |
2589 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2590 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2592 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2593 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2594 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2595 | else |
2596 | if test -n "$AWK"; then | |
2597 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2598 | else | |
2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2600 | for as_dir in $PATH | |
2601 | do | |
2602 | IFS=$as_save_IFS | |
2603 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2604 | for ac_exec_ext in '' $ac_executable_extensions; do |
2605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2606 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2608 | break 2 |
2609 | fi | |
2610 | done | |
b0322a85 | 2611 | done |
dd184caf | 2612 | IFS=$as_save_IFS |
d9898ee8 | 2613 | |
2614 | fi | |
2615 | fi | |
2616 | AWK=$ac_cv_prog_AWK | |
2617 | if test -n "$AWK"; then | |
b0322a85 | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2619 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2620 | else |
b0322a85 | 2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2622 | $as_echo "no" >&6; } |
d9898ee8 | 2623 | fi |
2624 | ||
dd184caf | 2625 | |
d9898ee8 | 2626 | test -n "$AWK" && break |
2627 | done | |
2628 | ||
b0322a85 | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2630 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2631 | set x ${MAKE-make} | |
2632 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2633 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2634 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2635 | else |
2636 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2637 | SHELL = /bin/sh |
d9898ee8 | 2638 | all: |
dd184caf | 2639 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2640 | _ACEOF |
b0322a85 | 2641 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2642 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2643 | *@@@%%%=?*=@@@%%%*) | |
2644 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2645 | *) | |
2646 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2647 | esac | |
d9898ee8 | 2648 | rm -f conftest.make |
2649 | fi | |
dd184caf | 2650 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2652 | $as_echo "yes" >&6; } |
d9898ee8 | 2653 | SET_MAKE= |
2654 | else | |
b0322a85 | 2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2656 | $as_echo "no" >&6; } |
d9898ee8 | 2657 | SET_MAKE="MAKE=${MAKE-make}" |
2658 | fi | |
2659 | ||
2660 | rm -rf .tst 2>/dev/null | |
2661 | mkdir .tst 2>/dev/null | |
2662 | if test -d .tst; then | |
2663 | am__leading_dot=. | |
2664 | else | |
2665 | am__leading_dot=_ | |
2666 | fi | |
2667 | rmdir .tst 2>/dev/null | |
2668 | ||
b0322a85 CE |
2669 | # Check whether --enable-silent-rules was given. |
2670 | if test "${enable_silent_rules+set}" = set; then : | |
2671 | enableval=$enable_silent_rules; | |
2672 | fi | |
2673 | ||
2674 | case $enable_silent_rules in # ((( | |
2675 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2676 | no) AM_DEFAULT_VERBOSITY=1;; | |
2677 | *) AM_DEFAULT_VERBOSITY=1;; | |
2678 | esac | |
2679 | am_make=${MAKE-make} | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2681 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2682 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2683 | $as_echo_n "(cached) " >&6 | |
2684 | else | |
2685 | if $as_echo 'TRUE=$(BAR$(V)) | |
2686 | BAR0=false | |
2687 | BAR1=true | |
2688 | V=1 | |
2689 | am__doit: | |
2690 | @$(TRUE) | |
2691 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2692 | am_cv_make_support_nested_variables=yes | |
2693 | else | |
2694 | am_cv_make_support_nested_variables=no | |
2695 | fi | |
2696 | fi | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2698 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2699 | if test $am_cv_make_support_nested_variables = yes; then | |
2700 | AM_V='$(V)' | |
2701 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2702 | else | |
2703 | AM_V=$AM_DEFAULT_VERBOSITY | |
2704 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2705 | fi | |
2706 | AM_BACKSLASH='\' | |
2707 | ||
dd184caf | 2708 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2709 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2710 | # is not polluted with repeated "-I." | |
2711 | am__isrc=' -I$(srcdir)' | |
2712 | # test to see if srcdir already configured | |
2713 | if test -f $srcdir/config.status; then | |
b0322a85 | 2714 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2715 | fi |
d9898ee8 | 2716 | fi |
2717 | ||
2718 | # test whether we have cygpath | |
2719 | if test -z "$CYGPATH_W"; then | |
2720 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2721 | CYGPATH_W='cygpath -w' | |
2722 | else | |
2723 | CYGPATH_W=echo | |
2724 | fi | |
2725 | fi | |
2726 | ||
2727 | ||
2728 | # Define the identity of the package. | |
2729 | PACKAGE='courierlogger' | |
2730 | VERSION='0.10' | |
2731 | ||
2732 | ||
2733 | # Some tools Automake needs. | |
2734 | ||
2735 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2736 | ||
2737 | ||
2738 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2739 | ||
2740 | ||
2741 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2742 | ||
2743 | ||
2744 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2745 | ||
2746 | ||
2747 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2748 | ||
b0322a85 CE |
2749 | # For better backward compatibility. To be removed once Automake 1.9.x |
2750 | # dies out for good. For more background, see: | |
2751 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2752 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2753 | mkdir_p='$(MKDIR_P)' | |
2754 | ||
d9898ee8 | 2755 | # We need awk for the "check" target. The system "awk" is bad on |
2756 | # some platforms. | |
b0322a85 CE |
2757 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2758 | # in the wild :-( We should find a proper way to deprecate it ... | |
2759 | AMTAR='$${TAR-tar}' | |
2760 | ||
d9898ee8 | 2761 | |
b0322a85 CE |
2762 | # We'll loop over all known methods to create a tar archive until one works. |
2763 | _am_tools='gnutar pax cpio none' | |
2764 | ||
2765 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2766 | |
d9898ee8 | 2767 | |
2768 | ||
2769 | ||
2770 | ||
2771 | ||
dd184caf | 2772 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2773 | |
2774 | ||
2775 | ac_ext=c | |
2776 | ac_cpp='$CPP $CPPFLAGS' | |
2777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2780 | if test -n "$ac_tool_prefix"; then | |
2781 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2782 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2784 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2785 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2786 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2787 | else |
2788 | if test -n "$CC"; then | |
2789 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2790 | else | |
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2792 | for as_dir in $PATH | |
2793 | do | |
2794 | IFS=$as_save_IFS | |
2795 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2796 | for ac_exec_ext in '' $ac_executable_extensions; do |
2797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2798 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2800 | break 2 |
2801 | fi | |
2802 | done | |
b0322a85 | 2803 | done |
dd184caf | 2804 | IFS=$as_save_IFS |
d9898ee8 | 2805 | |
2806 | fi | |
2807 | fi | |
2808 | CC=$ac_cv_prog_CC | |
2809 | if test -n "$CC"; then | |
b0322a85 | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2811 | $as_echo "$CC" >&6; } |
d9898ee8 | 2812 | else |
b0322a85 | 2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2814 | $as_echo "no" >&6; } |
d9898ee8 | 2815 | fi |
2816 | ||
dd184caf | 2817 | |
d9898ee8 | 2818 | fi |
2819 | if test -z "$ac_cv_prog_CC"; then | |
2820 | ac_ct_CC=$CC | |
2821 | # Extract the first word of "gcc", so it can be a program name with args. | |
2822 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2824 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2825 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2826 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2827 | else |
2828 | if test -n "$ac_ct_CC"; then | |
2829 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2830 | else | |
2831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2832 | for as_dir in $PATH | |
2833 | do | |
2834 | IFS=$as_save_IFS | |
2835 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2836 | for ac_exec_ext in '' $ac_executable_extensions; do |
2837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2838 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 2839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2840 | break 2 |
2841 | fi | |
2842 | done | |
b0322a85 | 2843 | done |
dd184caf | 2844 | IFS=$as_save_IFS |
d9898ee8 | 2845 | |
2846 | fi | |
2847 | fi | |
2848 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2849 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 2851 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 2852 | else |
b0322a85 | 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2854 | $as_echo "no" >&6; } |
d9898ee8 | 2855 | fi |
2856 | ||
dd184caf | 2857 | if test "x$ac_ct_CC" = x; then |
2858 | CC="" | |
2859 | else | |
2860 | case $cross_compiling:$ac_tool_warned in | |
2861 | yes:) | |
b0322a85 | 2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 2863 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 2864 | ac_tool_warned=yes ;; |
2865 | esac | |
2866 | CC=$ac_ct_CC | |
2867 | fi | |
d9898ee8 | 2868 | else |
2869 | CC="$ac_cv_prog_CC" | |
2870 | fi | |
2871 | ||
2872 | if test -z "$CC"; then | |
dd184caf | 2873 | if test -n "$ac_tool_prefix"; then |
2874 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2875 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2877 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2878 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2879 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2880 | else |
2881 | if test -n "$CC"; then | |
2882 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2883 | else | |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do |
2890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2891 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 2892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2893 | break 2 |
2894 | fi | |
2895 | done | |
b0322a85 | 2896 | done |
dd184caf | 2897 | IFS=$as_save_IFS |
d9898ee8 | 2898 | |
2899 | fi | |
2900 | fi | |
2901 | CC=$ac_cv_prog_CC | |
2902 | if test -n "$CC"; then | |
b0322a85 | 2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2904 | $as_echo "$CC" >&6; } |
d9898ee8 | 2905 | else |
b0322a85 | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2907 | $as_echo "no" >&6; } |
d9898ee8 | 2908 | fi |
2909 | ||
d9898ee8 | 2910 | |
dd184caf | 2911 | fi |
d9898ee8 | 2912 | fi |
2913 | if test -z "$CC"; then | |
2914 | # Extract the first word of "cc", so it can be a program name with args. | |
2915 | set dummy cc; ac_word=$2 | |
b0322a85 | 2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2917 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2918 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2919 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2920 | else |
2921 | if test -n "$CC"; then | |
2922 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2923 | else | |
2924 | ac_prog_rejected=no | |
2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2926 | for as_dir in $PATH | |
2927 | do | |
2928 | IFS=$as_save_IFS | |
2929 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2930 | for ac_exec_ext in '' $ac_executable_extensions; do |
2931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2932 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2933 | ac_prog_rejected=yes | |
2934 | continue | |
2935 | fi | |
2936 | ac_cv_prog_CC="cc" | |
b0322a85 | 2937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2938 | break 2 |
2939 | fi | |
2940 | done | |
b0322a85 | 2941 | done |
dd184caf | 2942 | IFS=$as_save_IFS |
d9898ee8 | 2943 | |
2944 | if test $ac_prog_rejected = yes; then | |
2945 | # We found a bogon in the path, so make sure we never use it. | |
2946 | set dummy $ac_cv_prog_CC | |
2947 | shift | |
2948 | if test $# != 0; then | |
2949 | # We chose a different compiler from the bogus one. | |
2950 | # However, it has the same basename, so the bogon will be chosen | |
2951 | # first if we set CC to just the basename; use the full file name. | |
2952 | shift | |
2953 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2954 | fi | |
2955 | fi | |
2956 | fi | |
2957 | fi | |
2958 | CC=$ac_cv_prog_CC | |
2959 | if test -n "$CC"; then | |
b0322a85 | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2961 | $as_echo "$CC" >&6; } |
d9898ee8 | 2962 | else |
b0322a85 | 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2964 | $as_echo "no" >&6; } |
d9898ee8 | 2965 | fi |
2966 | ||
dd184caf | 2967 | |
d9898ee8 | 2968 | fi |
2969 | if test -z "$CC"; then | |
2970 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2971 | for ac_prog in cl.exe |
d9898ee8 | 2972 | do |
2973 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2974 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2976 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2977 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2978 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2979 | else |
2980 | if test -n "$CC"; then | |
2981 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2982 | else | |
2983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2984 | for as_dir in $PATH | |
2985 | do | |
2986 | IFS=$as_save_IFS | |
2987 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2988 | for ac_exec_ext in '' $ac_executable_extensions; do |
2989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2990 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 2991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2992 | break 2 |
2993 | fi | |
2994 | done | |
b0322a85 | 2995 | done |
dd184caf | 2996 | IFS=$as_save_IFS |
d9898ee8 | 2997 | |
2998 | fi | |
2999 | fi | |
3000 | CC=$ac_cv_prog_CC | |
3001 | if test -n "$CC"; then | |
b0322a85 | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3003 | $as_echo "$CC" >&6; } |
d9898ee8 | 3004 | else |
b0322a85 | 3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3006 | $as_echo "no" >&6; } |
d9898ee8 | 3007 | fi |
3008 | ||
dd184caf | 3009 | |
d9898ee8 | 3010 | test -n "$CC" && break |
3011 | done | |
3012 | fi | |
3013 | if test -z "$CC"; then | |
3014 | ac_ct_CC=$CC | |
dd184caf | 3015 | for ac_prog in cl.exe |
d9898ee8 | 3016 | do |
3017 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3018 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3020 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3021 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3022 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3023 | else |
3024 | if test -n "$ac_ct_CC"; then | |
3025 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3026 | else | |
3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3028 | for as_dir in $PATH | |
3029 | do | |
3030 | IFS=$as_save_IFS | |
3031 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3032 | for ac_exec_ext in '' $ac_executable_extensions; do |
3033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3034 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3036 | break 2 |
3037 | fi | |
3038 | done | |
b0322a85 | 3039 | done |
dd184caf | 3040 | IFS=$as_save_IFS |
d9898ee8 | 3041 | |
3042 | fi | |
3043 | fi | |
3044 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3045 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3047 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3048 | else |
b0322a85 | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3050 | $as_echo "no" >&6; } |
d9898ee8 | 3051 | fi |
3052 | ||
dd184caf | 3053 | |
d9898ee8 | 3054 | test -n "$ac_ct_CC" && break |
3055 | done | |
3056 | ||
dd184caf | 3057 | if test "x$ac_ct_CC" = x; then |
3058 | CC="" | |
3059 | else | |
3060 | case $cross_compiling:$ac_tool_warned in | |
3061 | yes:) | |
b0322a85 | 3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3064 | ac_tool_warned=yes ;; |
3065 | esac | |
3066 | CC=$ac_ct_CC | |
3067 | fi | |
d9898ee8 | 3068 | fi |
3069 | ||
3070 | fi | |
3071 | ||
3072 | ||
b0322a85 | 3073 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3074 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3075 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3076 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3077 | |
3078 | # Provide some information about the compiler. | |
b0322a85 | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3080 | set X $ac_compile |
3081 | ac_compiler=$2 | |
b0322a85 CE |
3082 | for ac_option in --version -v -V -qversion; do |
3083 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3084 | case "(($ac_try" in |
3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3086 | *) ac_try_echo=$ac_try;; | |
3087 | esac | |
b0322a85 CE |
3088 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3089 | $as_echo "$ac_try_echo"; } >&5 | |
3090 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3091 | ac_status=$? |
b0322a85 CE |
3092 | if test -s conftest.err; then |
3093 | sed '10a\ | |
3094 | ... rest of stderr output deleted ... | |
3095 | 10q' conftest.err >conftest.er1 | |
3096 | cat conftest.er1 >&5 | |
3097 | fi | |
3098 | rm -f conftest.er1 conftest.err | |
3099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3100 | test $ac_status = 0; } | |
3101 | done | |
d9898ee8 | 3102 | |
b0322a85 | 3103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3104 | /* end confdefs.h. */ |
3105 | ||
3106 | int | |
3107 | main () | |
3108 | { | |
3109 | ||
3110 | ; | |
3111 | return 0; | |
3112 | } | |
3113 | _ACEOF | |
3114 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3115 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3116 | # Try to create an executable without -o first, disregard a.out. |
3117 | # It will help us diagnose broken compilers, and finding out an intuition | |
3118 | # of exeext. | |
b0322a85 CE |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3120 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3121 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3122 | ||
3123 | # The possible output files: | |
3124 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3125 | ||
dd184caf | 3126 | ac_rmfiles= |
3127 | for ac_file in $ac_files | |
3128 | do | |
3129 | case $ac_file in | |
8d138742 | 3130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3131 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3132 | esac | |
3133 | done | |
3134 | rm -f $ac_rmfiles | |
3135 | ||
b0322a85 | 3136 | if { { ac_try="$ac_link_default" |
dd184caf | 3137 | case "(($ac_try" in |
3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3139 | *) ac_try_echo=$ac_try;; | |
3140 | esac | |
b0322a85 CE |
3141 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3142 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3143 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3144 | ac_status=$? |
b0322a85 CE |
3145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3146 | test $ac_status = 0; }; then : | |
dd184caf | 3147 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3148 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3149 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3150 | # so that the user can short-circuit this test for compilers unknown to | |
3151 | # Autoconf. | |
3152 | for ac_file in $ac_files '' | |
d9898ee8 | 3153 | do |
3154 | test -f "$ac_file" || continue | |
3155 | case $ac_file in | |
8d138742 | 3156 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3157 | ;; |
3158 | [ab].out ) | |
3159 | # We found the default executable, but exeext='' is most | |
3160 | # certainly right. | |
3161 | break;; | |
3162 | *.* ) | |
b0322a85 | 3163 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3164 | then :; else |
3165 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3166 | fi | |
3167 | # We set ac_cv_exeext here because the later test for it is not | |
3168 | # safe: cross compilers may not add the suffix if given an `-o' | |
3169 | # argument, so we may need to know it at that point already. | |
3170 | # Even if this section looks crufty: it has the advantage of | |
3171 | # actually working. | |
d9898ee8 | 3172 | break;; |
3173 | * ) | |
3174 | break;; | |
3175 | esac | |
3176 | done | |
dd184caf | 3177 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3178 | ||
d9898ee8 | 3179 | else |
dd184caf | 3180 | ac_file='' |
3181 | fi | |
b0322a85 CE |
3182 | if test -z "$ac_file"; then : |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3184 | $as_echo "no" >&6; } | |
3185 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3186 | sed 's/^/| /' conftest.$ac_ext >&5 |
3187 | ||
b0322a85 | 3188 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3189 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3190 | as_fn_error 77 "C compiler cannot create executables |
3191 | See \`config.log' for more details" "$LINENO" 5; } | |
3192 | else | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8d138742 | 3194 | $as_echo "yes" >&6; } |
b0322a85 CE |
3195 | fi |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3197 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3199 | $as_echo "$ac_file" >&6; } | |
3200 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3201 | |
8d138742 | 3202 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3203 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3205 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3206 | if { { ac_try="$ac_link" |
dd184caf | 3207 | case "(($ac_try" in |
3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3209 | *) ac_try_echo=$ac_try;; | |
3210 | esac | |
b0322a85 CE |
3211 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3212 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3213 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3214 | ac_status=$? |
b0322a85 CE |
3215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3216 | test $ac_status = 0; }; then : | |
d9898ee8 | 3217 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3218 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3219 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3220 | # `rm'. | |
3221 | for ac_file in conftest.exe conftest conftest.*; do | |
3222 | test -f "$ac_file" || continue | |
3223 | case $ac_file in | |
8d138742 | 3224 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3225 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3226 | break;; |
3227 | * ) break;; | |
3228 | esac | |
3229 | done | |
3230 | else | |
b0322a85 | 3231 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3232 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3233 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3234 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3235 | fi |
b0322a85 CE |
3236 | rm -f conftest conftest$ac_cv_exeext |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3238 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3239 | |
3240 | rm -f conftest.$ac_ext | |
3241 | EXEEXT=$ac_cv_exeext | |
3242 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3244 | /* end confdefs.h. */ | |
3245 | #include <stdio.h> | |
3246 | int | |
3247 | main () | |
3248 | { | |
3249 | FILE *f = fopen ("conftest.out", "w"); | |
3250 | return ferror (f) || fclose (f) != 0; | |
3251 | ||
3252 | ; | |
3253 | return 0; | |
3254 | } | |
3255 | _ACEOF | |
3256 | ac_clean_files="$ac_clean_files conftest.out" | |
3257 | # Check that the compiler produces executables we can run. If not, either | |
3258 | # the compiler is broken, or we cross compile. | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3260 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3261 | if test "$cross_compiling" != yes; then | |
3262 | { { ac_try="$ac_link" | |
3263 | case "(($ac_try" in | |
3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3265 | *) ac_try_echo=$ac_try;; | |
3266 | esac | |
3267 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3268 | $as_echo "$ac_try_echo"; } >&5 | |
3269 | (eval "$ac_link") 2>&5 | |
3270 | ac_status=$? | |
3271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3272 | test $ac_status = 0; } | |
3273 | if { ac_try='./conftest$ac_cv_exeext' | |
3274 | { { case "(($ac_try" in | |
3275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3276 | *) ac_try_echo=$ac_try;; | |
3277 | esac | |
3278 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3279 | $as_echo "$ac_try_echo"; } >&5 | |
3280 | (eval "$ac_try") 2>&5 | |
3281 | ac_status=$? | |
3282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3283 | test $ac_status = 0; }; }; then | |
3284 | cross_compiling=no | |
3285 | else | |
3286 | if test "$cross_compiling" = maybe; then | |
3287 | cross_compiling=yes | |
3288 | else | |
3289 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3290 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3291 | as_fn_error $? "cannot run C compiled programs. | |
3292 | If you meant to cross compile, use \`--host'. | |
3293 | See \`config.log' for more details" "$LINENO" 5; } | |
3294 | fi | |
3295 | fi | |
3296 | fi | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3298 | $as_echo "$cross_compiling" >&6; } | |
3299 | ||
3300 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3301 | ac_clean_files=$ac_clean_files_save | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3303 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3304 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3305 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3306 | else |
b0322a85 | 3307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3308 | /* end confdefs.h. */ |
3309 | ||
3310 | int | |
3311 | main () | |
3312 | { | |
3313 | ||
3314 | ; | |
3315 | return 0; | |
3316 | } | |
3317 | _ACEOF | |
3318 | rm -f conftest.o conftest.obj | |
b0322a85 | 3319 | if { { ac_try="$ac_compile" |
dd184caf | 3320 | case "(($ac_try" in |
3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3322 | *) ac_try_echo=$ac_try;; | |
3323 | esac | |
b0322a85 CE |
3324 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3325 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3326 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3327 | ac_status=$? |
b0322a85 CE |
3328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3329 | test $ac_status = 0; }; then : | |
dd184caf | 3330 | for ac_file in conftest.o conftest.obj conftest.*; do |
3331 | test -f "$ac_file" || continue; | |
d9898ee8 | 3332 | case $ac_file in |
8d138742 | 3333 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3334 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3335 | break;; | |
3336 | esac | |
3337 | done | |
3338 | else | |
8d138742 | 3339 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3340 | sed 's/^/| /' conftest.$ac_ext >&5 |
3341 | ||
b0322a85 | 3342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3344 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3345 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3346 | fi |
d9898ee8 | 3347 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3348 | fi | |
b0322a85 | 3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3350 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3351 | OBJEXT=$ac_cv_objext |
3352 | ac_objext=$OBJEXT | |
b0322a85 | 3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3354 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3355 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3356 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3357 | else |
b0322a85 | 3358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3359 | /* end confdefs.h. */ |
3360 | ||
3361 | int | |
3362 | main () | |
3363 | { | |
3364 | #ifndef __GNUC__ | |
3365 | choke me | |
3366 | #endif | |
3367 | ||
3368 | ; | |
3369 | return 0; | |
3370 | } | |
3371 | _ACEOF | |
b0322a85 | 3372 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3373 | ac_compiler_gnu=yes |
3374 | else | |
b0322a85 | 3375 | ac_compiler_gnu=no |
d9898ee8 | 3376 | fi |
dd184caf | 3377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3378 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3379 | ||
3380 | fi | |
b0322a85 | 3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3382 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3383 | if test $ac_compiler_gnu = yes; then | |
3384 | GCC=yes | |
3385 | else | |
3386 | GCC= | |
3387 | fi | |
d9898ee8 | 3388 | ac_test_CFLAGS=${CFLAGS+set} |
3389 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3391 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3392 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3393 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3394 | else |
dd184caf | 3395 | ac_save_c_werror_flag=$ac_c_werror_flag |
3396 | ac_c_werror_flag=yes | |
3397 | ac_cv_prog_cc_g=no | |
3398 | CFLAGS="-g" | |
b0322a85 | 3399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3400 | /* end confdefs.h. */ |
3401 | ||
3402 | int | |
3403 | main () | |
3404 | { | |
3405 | ||
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
b0322a85 | 3410 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3411 | ac_cv_prog_cc_g=yes |
3412 | else | |
b0322a85 CE |
3413 | CFLAGS="" |
3414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3415 | /* end confdefs.h. */ |
3416 | ||
3417 | int | |
3418 | main () | |
3419 | { | |
3420 | ||
3421 | ; | |
3422 | return 0; | |
3423 | } | |
3424 | _ACEOF | |
b0322a85 | 3425 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3426 | |
b0322a85 CE |
3427 | else |
3428 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3429 | CFLAGS="-g" |
b0322a85 | 3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3431 | /* end confdefs.h. */ |
3432 | ||
3433 | int | |
3434 | main () | |
3435 | { | |
3436 | ||
3437 | ; | |
3438 | return 0; | |
3439 | } | |
3440 | _ACEOF | |
b0322a85 | 3441 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3442 | ac_cv_prog_cc_g=yes |
dd184caf | 3443 | fi |
dd184caf | 3444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3445 | fi | |
dd184caf | 3446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3447 | fi |
dd184caf | 3448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3449 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3450 | fi |
b0322a85 | 3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3452 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3453 | if test "$ac_test_CFLAGS" = set; then |
3454 | CFLAGS=$ac_save_CFLAGS | |
3455 | elif test $ac_cv_prog_cc_g = yes; then | |
3456 | if test "$GCC" = yes; then | |
3457 | CFLAGS="-g -O2" | |
3458 | else | |
3459 | CFLAGS="-g" | |
3460 | fi | |
3461 | else | |
3462 | if test "$GCC" = yes; then | |
3463 | CFLAGS="-O2" | |
3464 | else | |
3465 | CFLAGS= | |
3466 | fi | |
3467 | fi | |
b0322a85 | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3469 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3470 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3471 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3472 | else |
dd184caf | 3473 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3474 | ac_save_CC=$CC |
b0322a85 | 3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3476 | /* end confdefs.h. */ |
3477 | #include <stdarg.h> | |
3478 | #include <stdio.h> | |
b0322a85 | 3479 | struct stat; |
d9898ee8 | 3480 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3481 | struct buf { int x; }; | |
3482 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3483 | static char *e (p, i) | |
3484 | char **p; | |
3485 | int i; | |
3486 | { | |
3487 | return p[i]; | |
3488 | } | |
3489 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3490 | { | |
3491 | char *s; | |
3492 | va_list v; | |
3493 | va_start (v,p); | |
3494 | s = g (p, va_arg (v,int)); | |
3495 | va_end (v); | |
3496 | return s; | |
3497 | } | |
3498 | ||
3499 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3500 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3501 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3502 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3503 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3504 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3505 | that's true only with -std. */ |
d9898ee8 | 3506 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3507 | ||
dd184caf | 3508 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3509 | inside strings and character constants. */ | |
3510 | #define FOO(x) 'x' | |
3511 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3512 | ||
d9898ee8 | 3513 | int test (int i, double x); |
3514 | struct s1 {int (*f) (int a);}; | |
3515 | struct s2 {int (*f) (double a);}; | |
3516 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3517 | int argc; | |
3518 | char **argv; | |
3519 | int | |
3520 | main () | |
3521 | { | |
3522 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3523 | ; | |
3524 | return 0; | |
3525 | } | |
3526 | _ACEOF | |
dd184caf | 3527 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3528 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3529 | do |
3530 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3531 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3532 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3533 | fi |
dd184caf | 3534 | rm -f core conftest.err conftest.$ac_objext |
3535 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3536 | done |
dd184caf | 3537 | rm -f conftest.$ac_ext |
d9898ee8 | 3538 | CC=$ac_save_CC |
3539 | ||
3540 | fi | |
dd184caf | 3541 | # AC_CACHE_VAL |
3542 | case "x$ac_cv_prog_cc_c89" in | |
3543 | x) | |
b0322a85 | 3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3545 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3546 | xno) |
b0322a85 | 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3548 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3549 | *) |
dd184caf | 3550 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3552 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3553 | esac |
b0322a85 | 3554 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3555 | |
b0322a85 | 3556 | fi |
d9898ee8 | 3557 | |
d9898ee8 | 3558 | ac_ext=c |
3559 | ac_cpp='$CPP $CPPFLAGS' | |
3560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3563 | DEPDIR="${am__leading_dot}deps" | |
3564 | ||
dd184caf | 3565 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3566 | |
3567 | ||
3568 | am_make=${MAKE-make} | |
3569 | cat > confinc << 'END' | |
3570 | am__doit: | |
8d138742 | 3571 | @echo this is the am__doit target |
d9898ee8 | 3572 | .PHONY: am__doit |
3573 | END | |
3574 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3576 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3577 | am__include="#" |
3578 | am__quote= | |
3579 | _am_result=none | |
3580 | # First try GNU make style include. | |
3581 | echo "include confinc" > confmf | |
b0322a85 | 3582 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3583 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3584 | *the\ am__doit\ target*) | |
3585 | am__include=include | |
3586 | am__quote= | |
3587 | _am_result=GNU | |
3588 | ;; | |
3589 | esac | |
d9898ee8 | 3590 | # Now try BSD make style include. |
3591 | if test "$am__include" = "#"; then | |
3592 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3593 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3594 | *the\ am__doit\ target*) | |
3595 | am__include=.include | |
3596 | am__quote="\"" | |
3597 | _am_result=BSD | |
3598 | ;; | |
3599 | esac | |
d9898ee8 | 3600 | fi |
3601 | ||
3602 | ||
b0322a85 | 3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3604 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3605 | rm -f confinc confmf |
3606 | ||
dd184caf | 3607 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3608 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3609 | enableval=$enable_dependency_tracking; |
3610 | fi | |
d9898ee8 | 3611 | |
d9898ee8 | 3612 | if test "x$enable_dependency_tracking" != xno; then |
3613 | am_depcomp="$ac_aux_dir/depcomp" | |
3614 | AMDEPBACKSLASH='\' | |
b0322a85 | 3615 | am__nodep='_no' |
d9898ee8 | 3616 | fi |
dd184caf | 3617 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3618 | AMDEP_TRUE= |
3619 | AMDEP_FALSE='#' | |
3620 | else | |
3621 | AMDEP_TRUE='#' | |
3622 | AMDEP_FALSE= | |
3623 | fi | |
3624 | ||
3625 | ||
3626 | ||
d9898ee8 | 3627 | depcc="$CC" am_compiler_list= |
3628 | ||
b0322a85 | 3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3630 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3631 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3632 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3633 | else |
3634 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3635 | # We make a subdir and do the tests there. Otherwise we can end up | |
3636 | # making bogus files that we don't know about and never remove. For | |
3637 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3638 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3639 | # in D". | |
3640 | rm -rf conftest.dir | |
d9898ee8 | 3641 | mkdir conftest.dir |
3642 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3643 | # using a relative directory. | |
3644 | cp "$am_depcomp" conftest.dir | |
3645 | cd conftest.dir | |
3646 | # We will build objects and dependencies in a subdirectory because | |
3647 | # it helps to detect inapplicable dependency modes. For instance | |
3648 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3649 | # side effect of compilation, but ICC will put the dependencies in | |
3650 | # the current directory while Tru64 will put them in the object | |
3651 | # directory. | |
3652 | mkdir sub | |
3653 | ||
3654 | am_cv_CC_dependencies_compiler_type=none | |
3655 | if test "$am_compiler_list" = ""; then | |
3656 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3657 | fi | |
8d138742 CE |
3658 | am__universal=false |
3659 | case " $depcc " in #( | |
3660 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3661 | esac | |
3662 | ||
d9898ee8 | 3663 | for depmode in $am_compiler_list; do |
3664 | # Setup a source with many dependencies, because some compilers | |
3665 | # like to wrap large dependency lists on column 80 (with \), and | |
3666 | # we should not choose a depcomp mode which is confused by this. | |
3667 | # | |
3668 | # We need to recreate these files for each test, as the compiler may | |
3669 | # overwrite some of them when testing with obscure command lines. | |
3670 | # This happens at least with the AIX C compiler. | |
3671 | : > sub/conftest.c | |
3672 | for i in 1 2 3 4 5 6; do | |
3673 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3674 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3675 | # Solaris 10 /bin/sh. | |
3676 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3677 | done |
3678 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3679 | ||
b0322a85 | 3680 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3681 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3682 | # handle '-M -o', and we need to detect this. Also, some Intel |
3683 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3684 | am__obj=sub/conftest.${OBJEXT-o} |
3685 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3686 | case $depmode in |
8d138742 CE |
3687 | gcc) |
3688 | # This depmode causes a compiler race in universal mode. | |
3689 | test "$am__universal" = false || continue | |
3690 | ;; | |
d9898ee8 | 3691 | nosideeffect) |
b0322a85 CE |
3692 | # After this tag, mechanisms are not by side-effect, so they'll |
3693 | # only be used when explicitly requested. | |
d9898ee8 | 3694 | if test "x$enable_dependency_tracking" = xyes; then |
3695 | continue | |
3696 | else | |
3697 | break | |
3698 | fi | |
3699 | ;; | |
b0322a85 CE |
3700 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3701 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3702 | # not run yet. These depmodes are late enough in the game, and |
3703 | # so weak that their functioning should not be impacted. | |
3704 | am__obj=conftest.${OBJEXT-o} | |
3705 | am__minus_obj= | |
3706 | ;; | |
d9898ee8 | 3707 | none) break ;; |
3708 | esac | |
d9898ee8 | 3709 | if depmode=$depmode \ |
8d138742 | 3710 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3711 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3712 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3713 | >/dev/null 2>conftest.err && |
dd184caf | 3714 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3715 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3716 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3717 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3718 | # icc doesn't choke on unknown options, it will just issue warnings | |
3719 | # or remarks (even with -Werror). So we grep stderr for any message | |
3720 | # that says an option was ignored or not supported. | |
3721 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3722 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3723 | # The diagnosis changed in icc 8.0: | |
3724 | # icc: Command line remark: option '-MP' not supported | |
3725 | if (grep 'ignoring option' conftest.err || | |
3726 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3727 | am_cv_CC_dependencies_compiler_type=$depmode | |
3728 | break | |
3729 | fi | |
3730 | fi | |
3731 | done | |
3732 | ||
3733 | cd .. | |
3734 | rm -rf conftest.dir | |
3735 | else | |
3736 | am_cv_CC_dependencies_compiler_type=none | |
3737 | fi | |
3738 | ||
3739 | fi | |
b0322a85 | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3741 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3742 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3743 | ||
dd184caf | 3744 | if |
d9898ee8 | 3745 | test "x$enable_dependency_tracking" != xno \ |
3746 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3747 | am__fastdepCC_TRUE= | |
3748 | am__fastdepCC_FALSE='#' | |
3749 | else | |
3750 | am__fastdepCC_TRUE='#' | |
3751 | am__fastdepCC_FALSE= | |
3752 | fi | |
3753 | ||
3754 | ||
d9898ee8 | 3755 | |
b0322a85 | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3757 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3758 | LN_S=$as_ln_s |
3759 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3761 | $as_echo "yes" >&6; } |
d9898ee8 | 3762 | else |
b0322a85 | 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3764 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3765 | fi |
3766 | ||
8d138742 CE |
3767 | case `pwd` in |
3768 | *\ * | *\ *) | |
b0322a85 | 3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
3770 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3771 | esac | |
3772 | ||
3773 | ||
3774 | ||
b0322a85 CE |
3775 | macro_version='2.4.2' |
3776 | macro_revision='1.3337' | |
8d138742 CE |
3777 | |
3778 | ||
3779 | ||
3780 | ||
dd184caf | 3781 | |
d9898ee8 | 3782 | |
dd184caf | 3783 | |
d9898ee8 | 3784 | |
dd184caf | 3785 | |
d9898ee8 | 3786 | |
8d138742 CE |
3787 | |
3788 | ||
3789 | ||
3790 | ltmain="$ac_aux_dir/ltmain.sh" | |
3791 | ||
d9898ee8 | 3792 | # Make sure we can run config.sub. |
dd184caf | 3793 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 3794 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 3795 | |
b0322a85 | 3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 3797 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 3798 | if ${ac_cv_build+:} false; then : |
8d138742 | 3799 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3800 | else |
dd184caf | 3801 | ac_build_alias=$build_alias |
3802 | test "x$ac_build_alias" = x && | |
3803 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3804 | test "x$ac_build_alias" = x && | |
b0322a85 | 3805 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 3806 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 3807 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 3808 | |
3809 | fi | |
b0322a85 | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 3811 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 3812 | case $ac_cv_build in |
3813 | *-*-*) ;; | |
b0322a85 | 3814 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 3815 | esac |
d9898ee8 | 3816 | build=$ac_cv_build |
dd184caf | 3817 | ac_save_IFS=$IFS; IFS='-' |
3818 | set x $ac_cv_build | |
3819 | shift | |
3820 | build_cpu=$1 | |
3821 | build_vendor=$2 | |
3822 | shift; shift | |
3823 | # Remember, the first character of IFS is used to create $*, | |
3824 | # except with old shells: | |
3825 | build_os=$* | |
3826 | IFS=$ac_save_IFS | |
3827 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3828 | ||
3829 | ||
b0322a85 | 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 3831 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 3832 | if ${ac_cv_host+:} false; then : |
8d138742 | 3833 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3834 | else |
dd184caf | 3835 | if test "x$host_alias" = x; then |
3836 | ac_cv_host=$ac_cv_build | |
3837 | else | |
3838 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 3839 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 3840 | fi |
d9898ee8 | 3841 | |
3842 | fi | |
b0322a85 | 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 3844 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 3845 | case $ac_cv_host in |
3846 | *-*-*) ;; | |
b0322a85 | 3847 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 3848 | esac |
d9898ee8 | 3849 | host=$ac_cv_host |
dd184caf | 3850 | ac_save_IFS=$IFS; IFS='-' |
3851 | set x $ac_cv_host | |
3852 | shift | |
3853 | host_cpu=$1 | |
3854 | host_vendor=$2 | |
3855 | shift; shift | |
3856 | # Remember, the first character of IFS is used to create $*, | |
3857 | # except with old shells: | |
3858 | host_os=$* | |
3859 | IFS=$ac_save_IFS | |
3860 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3861 | ||
3862 | ||
b0322a85 CE |
3863 | # Backslashify metacharacters that are still active within |
3864 | # double-quoted strings. | |
3865 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
3866 | ||
3867 | # Same as above, but do not quote variable references. | |
3868 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
3869 | ||
3870 | # Sed substitution to delay expansion of an escaped shell variable in a | |
3871 | # double_quote_subst'ed string. | |
3872 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
3873 | ||
3874 | # Sed substitution to delay expansion of an escaped single quote. | |
3875 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
3876 | ||
3877 | # Sed substitution to avoid accidental globbing in evaled expressions | |
3878 | no_glob_subst='s/\*/\\\*/g' | |
3879 | ||
3880 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3881 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
3882 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
3883 | ||
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
3885 | $as_echo_n "checking how to print strings... " >&6; } | |
3886 | # Test print first, because it will be a builtin if present. | |
3887 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
3888 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
3889 | ECHO='print -r --' | |
3890 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
3891 | ECHO='printf %s\n' | |
3892 | else | |
3893 | # Use this function as a fallback that always works. | |
3894 | func_fallback_echo () | |
3895 | { | |
3896 | eval 'cat <<_LTECHO_EOF | |
3897 | $1 | |
3898 | _LTECHO_EOF' | |
3899 | } | |
3900 | ECHO='func_fallback_echo' | |
3901 | fi | |
3902 | ||
3903 | # func_echo_all arg... | |
3904 | # Invoke $ECHO with all args, space-separated. | |
3905 | func_echo_all () | |
3906 | { | |
3907 | $ECHO "" | |
3908 | } | |
3909 | ||
3910 | case "$ECHO" in | |
3911 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
3912 | $as_echo "printf" >&6; } ;; | |
3913 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
3914 | $as_echo "print -r" >&6; } ;; | |
3915 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
3916 | $as_echo "cat" >&6; } ;; | |
3917 | esac | |
3918 | ||
3919 | ||
3920 | ||
3921 | ||
3922 | ||
3923 | ||
3924 | ||
3925 | ||
3926 | ||
3927 | ||
3928 | ||
3929 | ||
3930 | ||
3931 | ||
3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 3933 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 3934 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
3935 | $as_echo_n "(cached) " >&6 |
3936 | else | |
3937 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3938 | for ac_i in 1 2 3 4 5 6 7; do | |
3939 | ac_script="$ac_script$as_nl$ac_script" | |
3940 | done | |
3941 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 3942 | { ac_script=; unset ac_script;} |
8d138742 CE |
3943 | if test -z "$SED"; then |
3944 | ac_path_SED_found=false | |
3945 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 3947 | for as_dir in $PATH |
3948 | do | |
3949 | IFS=$as_save_IFS | |
3950 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 3951 | for ac_prog in sed gsed; do |
d9898ee8 | 3952 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 3953 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 3954 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
3955 | # Check for GNU ac_path_SED and select it if it is found. |
3956 | # Check for GNU $ac_path_SED | |
3957 | case `"$ac_path_SED" --version 2>&1` in | |
3958 | *GNU*) | |
3959 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3960 | *) | |
3961 | ac_count=0 | |
3962 | $as_echo_n 0123456789 >"conftest.in" | |
3963 | while : | |
3964 | do | |
3965 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3966 | mv "conftest.tmp" "conftest.in" | |
3967 | cp "conftest.in" "conftest.nl" | |
3968 | $as_echo '' >> "conftest.nl" | |
3969 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3970 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 3971 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
3972 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
3973 | # Best one so far, save it but keep looking for a better one | |
3974 | ac_cv_path_SED="$ac_path_SED" | |
3975 | ac_path_SED_max=$ac_count | |
3976 | fi | |
3977 | # 10*(2^10) chars as input seems more than enough | |
3978 | test $ac_count -gt 10 && break | |
3979 | done | |
3980 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3981 | esac | |
3982 | ||
3983 | $ac_path_SED_found && break 3 | |
d9898ee8 | 3984 | done |
3985 | done | |
b0322a85 | 3986 | done |
d9898ee8 | 3987 | IFS=$as_save_IFS |
8d138742 | 3988 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 3989 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 3990 | fi |
8d138742 CE |
3991 | else |
3992 | ac_cv_path_SED=$SED | |
3993 | fi | |
d9898ee8 | 3994 | |
3995 | fi | |
b0322a85 | 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
3997 | $as_echo "$ac_cv_path_SED" >&6; } |
3998 | SED="$ac_cv_path_SED" | |
3999 | rm -f conftest.sed | |
4000 | ||
4001 | test -z "$SED" && SED=sed | |
4002 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4003 | |
d9898ee8 | 4004 | |
dd184caf | 4005 | |
8d138742 CE |
4006 | |
4007 | ||
4008 | ||
4009 | ||
4010 | ||
4011 | ||
4012 | ||
4013 | ||
b0322a85 | 4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4015 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4016 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4017 | $as_echo_n "(cached) " >&6 |
dd184caf | 4018 | else |
8d138742 | 4019 | if test -z "$GREP"; then |
dd184caf | 4020 | ac_path_GREP_found=false |
8d138742 CE |
4021 | # Loop through the user's path and test for each of PROGNAME-LIST |
4022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4023 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4024 | do | |
4025 | IFS=$as_save_IFS | |
4026 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4027 | for ac_prog in grep ggrep; do |
8d138742 CE |
4028 | for ac_exec_ext in '' $ac_executable_extensions; do |
4029 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4030 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4031 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4032 | # Check for GNU $ac_path_GREP |
4033 | case `"$ac_path_GREP" --version 2>&1` in | |
4034 | *GNU*) | |
4035 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4036 | *) | |
4037 | ac_count=0 | |
8d138742 | 4038 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4039 | while : |
4040 | do | |
4041 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4042 | mv "conftest.tmp" "conftest.in" | |
4043 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4044 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4045 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4046 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4047 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4048 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4049 | # Best one so far, save it but keep looking for a better one | |
4050 | ac_cv_path_GREP="$ac_path_GREP" | |
4051 | ac_path_GREP_max=$ac_count | |
4052 | fi | |
4053 | # 10*(2^10) chars as input seems more than enough | |
4054 | test $ac_count -gt 10 && break | |
4055 | done | |
4056 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4057 | esac | |
4058 | ||
8d138742 CE |
4059 | $ac_path_GREP_found && break 3 |
4060 | done | |
dd184caf | 4061 | done |
b0322a85 | 4062 | done |
dd184caf | 4063 | IFS=$as_save_IFS |
8d138742 | 4064 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4065 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4066 | fi |
dd184caf | 4067 | else |
4068 | ac_cv_path_GREP=$GREP | |
4069 | fi | |
4070 | ||
dd184caf | 4071 | fi |
b0322a85 | 4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4073 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4074 | GREP="$ac_cv_path_GREP" |
4075 | ||
d9898ee8 | 4076 | |
b0322a85 | 4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4078 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4079 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4080 | $as_echo_n "(cached) " >&6 |
dd184caf | 4081 | else |
4082 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4083 | then ac_cv_path_EGREP="$GREP -E" | |
4084 | else | |
8d138742 | 4085 | if test -z "$EGREP"; then |
dd184caf | 4086 | ac_path_EGREP_found=false |
8d138742 CE |
4087 | # Loop through the user's path and test for each of PROGNAME-LIST |
4088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4089 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4090 | do | |
4091 | IFS=$as_save_IFS | |
4092 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4093 | for ac_prog in egrep; do |
8d138742 CE |
4094 | for ac_exec_ext in '' $ac_executable_extensions; do |
4095 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4096 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4097 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4098 | # Check for GNU $ac_path_EGREP |
4099 | case `"$ac_path_EGREP" --version 2>&1` in | |
4100 | *GNU*) | |
4101 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4102 | *) | |
4103 | ac_count=0 | |
8d138742 | 4104 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4105 | while : |
4106 | do | |
4107 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4108 | mv "conftest.tmp" "conftest.in" | |
4109 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4110 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4111 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4112 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4113 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4114 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4115 | # Best one so far, save it but keep looking for a better one | |
4116 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4117 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4118 | fi |
dd184caf | 4119 | # 10*(2^10) chars as input seems more than enough |
4120 | test $ac_count -gt 10 && break | |
4121 | done | |
4122 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4123 | esac | |
4124 | ||
8d138742 CE |
4125 | $ac_path_EGREP_found && break 3 |
4126 | done | |
dd184caf | 4127 | done |
b0322a85 | 4128 | done |
dd184caf | 4129 | IFS=$as_save_IFS |
8d138742 | 4130 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4131 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4132 | fi |
4133 | else | |
4134 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4135 | fi |
4136 | ||
8d138742 | 4137 | fi |
dd184caf | 4138 | fi |
b0322a85 | 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4140 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4141 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4142 | |
8d138742 | 4143 | |
b0322a85 | 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4145 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4146 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4147 | $as_echo_n "(cached) " >&6 |
dd184caf | 4148 | else |
8d138742 CE |
4149 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4150 | then ac_cv_path_FGREP="$GREP -F" | |
4151 | else | |
4152 | if test -z "$FGREP"; then | |
4153 | ac_path_FGREP_found=false | |
4154 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4156 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4157 | do | |
4158 | IFS=$as_save_IFS | |
4159 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4160 | for ac_prog in fgrep; do |
8d138742 CE |
4161 | for ac_exec_ext in '' $ac_executable_extensions; do |
4162 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4163 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4164 | # Check for GNU ac_path_FGREP and select it if it is found. |
4165 | # Check for GNU $ac_path_FGREP | |
4166 | case `"$ac_path_FGREP" --version 2>&1` in | |
4167 | *GNU*) | |
4168 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4169 | *) | |
4170 | ac_count=0 | |
4171 | $as_echo_n 0123456789 >"conftest.in" | |
4172 | while : | |
4173 | do | |
4174 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4175 | mv "conftest.tmp" "conftest.in" | |
4176 | cp "conftest.in" "conftest.nl" | |
4177 | $as_echo 'FGREP' >> "conftest.nl" | |
4178 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4179 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4180 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4181 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4182 | # Best one so far, save it but keep looking for a better one | |
4183 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4184 | ac_path_FGREP_max=$ac_count | |
4185 | fi | |
4186 | # 10*(2^10) chars as input seems more than enough | |
4187 | test $ac_count -gt 10 && break | |
4188 | done | |
4189 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4190 | esac | |
dd184caf | 4191 | |
8d138742 CE |
4192 | $ac_path_FGREP_found && break 3 |
4193 | done | |
4194 | done | |
b0322a85 | 4195 | done |
8d138742 CE |
4196 | IFS=$as_save_IFS |
4197 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4198 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4199 | fi |
4200 | else | |
4201 | ac_cv_path_FGREP=$FGREP | |
4202 | fi | |
dd184caf | 4203 | |
4204 | fi | |
4205 | fi | |
b0322a85 | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4207 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4208 | FGREP="$ac_cv_path_FGREP" | |
4209 | ||
4210 | ||
4211 | test -z "$GREP" && GREP=grep | |
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | ||
4218 | ||
4219 | ||
4220 | ||
4221 | ||
4222 | ||
4223 | ||
4224 | ||
4225 | ||
4226 | ||
4227 | ||
d9898ee8 | 4228 | |
4229 | ||
4230 | ||
dd184caf | 4231 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4232 | if test "${with_gnu_ld+set}" = set; then : |
dd184caf | 4233 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4234 | else |
4235 | with_gnu_ld=no | |
dd184caf | 4236 | fi |
4237 | ||
d9898ee8 | 4238 | ac_prog=ld |
4239 | if test "$GCC" = yes; then | |
4240 | # Check if gcc -print-prog-name=ld gives a path. | |
b0322a85 | 4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4242 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4243 | case $host in |
4244 | *-*-mingw*) | |
4245 | # gcc leaves a trailing carriage return which upsets mingw | |
4246 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4247 | *) | |
4248 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4249 | esac | |
4250 | case $ac_prog in | |
4251 | # Accept absolute paths. | |
4252 | [\\/]* | ?:[\\/]*) | |
4253 | re_direlt='/[^/][^/]*/\.\./' | |
4254 | # Canonicalize the pathname of ld | |
8d138742 CE |
4255 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4256 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4257 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4258 | done |
4259 | test -z "$LD" && LD="$ac_prog" | |
4260 | ;; | |
4261 | "") | |
4262 | # If it fails, then pretend we aren't using GCC. | |
4263 | ac_prog=ld | |
4264 | ;; | |
4265 | *) | |
4266 | # If it is relative, then search for the first ld in PATH. | |
4267 | with_gnu_ld=unknown | |
4268 | ;; | |
4269 | esac | |
4270 | elif test "$with_gnu_ld" = yes; then | |
b0322a85 | 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4272 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4273 | else |
b0322a85 | 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4275 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4276 | fi |
b0322a85 | 4277 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4278 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4279 | else |
4280 | if test -z "$LD"; then | |
4281 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4282 | for ac_dir in $PATH; do | |
4283 | IFS="$lt_save_ifs" | |
4284 | test -z "$ac_dir" && ac_dir=. | |
4285 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4286 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4287 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4288 | # but apparently some variants of GNU ld only accept -v. | |
4289 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4290 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4291 | *GNU* | *'with BFD'*) | |
4292 | test "$with_gnu_ld" != no && break | |
4293 | ;; | |
4294 | *) | |
4295 | test "$with_gnu_ld" != yes && break | |
4296 | ;; | |
4297 | esac | |
4298 | fi | |
4299 | done | |
4300 | IFS="$lt_save_ifs" | |
4301 | else | |
4302 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4303 | fi | |
4304 | fi | |
4305 | ||
4306 | LD="$lt_cv_path_LD" | |
4307 | if test -n "$LD"; then | |
b0322a85 | 4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4309 | $as_echo "$LD" >&6; } |
d9898ee8 | 4310 | else |
b0322a85 | 4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4312 | $as_echo "no" >&6; } |
d9898ee8 | 4313 | fi |
b0322a85 CE |
4314 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4316 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4317 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4318 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4319 | else |
4320 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4321 | case `$LD -v 2>&1 </dev/null` in | |
4322 | *GNU* | *'with BFD'*) | |
4323 | lt_cv_prog_gnu_ld=yes | |
4324 | ;; | |
4325 | *) | |
4326 | lt_cv_prog_gnu_ld=no | |
4327 | ;; | |
4328 | esac | |
4329 | fi | |
b0322a85 | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4331 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4332 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4333 | ||
4334 | ||
d9898ee8 | 4335 | |
8d138742 CE |
4336 | |
4337 | ||
4338 | ||
4339 | ||
4340 | ||
4341 | ||
b0322a85 | 4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4343 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4344 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4345 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4346 | else |
4347 | if test -n "$NM"; then | |
4348 | # Let the user override the test. | |
4349 | lt_cv_path_NM="$NM" | |
4350 | else | |
4351 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4352 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4353 | lt_nm_to_check="$lt_nm_to_check nm" | |
4354 | fi | |
4355 | for lt_tmp_nm in $lt_nm_to_check; do | |
4356 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4357 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4358 | IFS="$lt_save_ifs" | |
4359 | test -z "$ac_dir" && ac_dir=. | |
4360 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4361 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4362 | # Check to see if the nm accepts a BSD-compat flag. | |
4363 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4364 | # nm: unknown option "B" ignored | |
4365 | # Tru64's nm complains that /dev/null is an invalid object file | |
4366 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4367 | */dev/null* | *'Invalid file or object type'*) | |
4368 | lt_cv_path_NM="$tmp_nm -B" | |
4369 | break | |
4370 | ;; | |
4371 | *) | |
4372 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4373 | */dev/null*) | |
4374 | lt_cv_path_NM="$tmp_nm -p" | |
4375 | break | |
4376 | ;; | |
4377 | *) | |
4378 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4379 | continue # so that we can try to find one that supports BSD flags | |
4380 | ;; | |
4381 | esac | |
4382 | ;; | |
4383 | esac | |
4384 | fi | |
4385 | done | |
4386 | IFS="$lt_save_ifs" | |
4387 | done | |
8d138742 | 4388 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4389 | fi |
4390 | fi | |
b0322a85 | 4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 CE |
4392 | $as_echo "$lt_cv_path_NM" >&6; } |
4393 | if test "$lt_cv_path_NM" != "no"; then | |
4394 | NM="$lt_cv_path_NM" | |
d9898ee8 | 4395 | else |
8d138742 | 4396 | # Didn't find any BSD compatible name lister, look for dumpbin. |
b0322a85 CE |
4397 | if test -n "$DUMPBIN"; then : |
4398 | # Let the user override the test. | |
4399 | else | |
4400 | if test -n "$ac_tool_prefix"; then | |
4401 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4402 | do |
4403 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4404 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4406 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4407 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4408 | $as_echo_n "(cached) " >&6 |
4409 | else | |
4410 | if test -n "$DUMPBIN"; then | |
4411 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4412 | else | |
4413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4414 | for as_dir in $PATH | |
4415 | do | |
4416 | IFS=$as_save_IFS | |
4417 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4418 | for ac_exec_ext in '' $ac_executable_extensions; do |
4419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4420 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4422 | break 2 |
4423 | fi | |
4424 | done | |
b0322a85 | 4425 | done |
8d138742 | 4426 | IFS=$as_save_IFS |
d9898ee8 | 4427 | |
8d138742 CE |
4428 | fi |
4429 | fi | |
4430 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4431 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
4433 | $as_echo "$DUMPBIN" >&6; } |
4434 | else | |
b0322a85 | 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4436 | $as_echo "no" >&6; } |
4437 | fi | |
d9898ee8 | 4438 | |
d9898ee8 | 4439 | |
8d138742 CE |
4440 | test -n "$DUMPBIN" && break |
4441 | done | |
4442 | fi | |
4443 | if test -z "$DUMPBIN"; then | |
4444 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4445 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4446 | do |
4447 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4448 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4450 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4451 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4452 | $as_echo_n "(cached) " >&6 |
4453 | else | |
4454 | if test -n "$ac_ct_DUMPBIN"; then | |
4455 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4456 | else | |
4457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4458 | for as_dir in $PATH | |
4459 | do | |
4460 | IFS=$as_save_IFS | |
4461 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4462 | for ac_exec_ext in '' $ac_executable_extensions; do |
4463 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4464 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 4466 | break 2 |
ac40fd9e | 4467 | fi |
8d138742 | 4468 | done |
b0322a85 | 4469 | done |
8d138742 | 4470 | IFS=$as_save_IFS |
d9898ee8 | 4471 | |
8d138742 CE |
4472 | fi |
4473 | fi | |
4474 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4475 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4477 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4478 | else | |
b0322a85 | 4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4480 | $as_echo "no" >&6; } |
4481 | fi | |
d9898ee8 | 4482 | |
8d138742 CE |
4483 | |
4484 | test -n "$ac_ct_DUMPBIN" && break | |
4485 | done | |
4486 | ||
4487 | if test "x$ac_ct_DUMPBIN" = x; then | |
4488 | DUMPBIN=":" | |
d9898ee8 | 4489 | else |
8d138742 CE |
4490 | case $cross_compiling:$ac_tool_warned in |
4491 | yes:) | |
b0322a85 | 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4493 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4494 | ac_tool_warned=yes ;; | |
4495 | esac | |
4496 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4497 | fi |
8d138742 | 4498 | fi |
d9898ee8 | 4499 | |
b0322a85 CE |
4500 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
4501 | *COFF*) | |
4502 | DUMPBIN="$DUMPBIN -symbols" | |
4503 | ;; | |
4504 | *) | |
4505 | DUMPBIN=: | |
4506 | ;; | |
4507 | esac | |
4508 | fi | |
d9898ee8 | 4509 | |
8d138742 CE |
4510 | if test "$DUMPBIN" != ":"; then |
4511 | NM="$DUMPBIN" | |
4512 | fi | |
4513 | fi | |
4514 | test -z "$NM" && NM=nm | |
d9898ee8 | 4515 | |
d9898ee8 | 4516 | |
d9898ee8 | 4517 | |
d9898ee8 | 4518 | |
d9898ee8 | 4519 | |
d9898ee8 | 4520 | |
b0322a85 | 4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4522 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4523 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4524 | $as_echo_n "(cached) " >&6 |
4525 | else | |
4526 | lt_cv_nm_interface="BSD nm" | |
4527 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4528 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4529 | (eval "$ac_compile" 2>conftest.err) |
4530 | cat conftest.err >&5 | |
b0322a85 | 4531 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4532 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4533 | cat conftest.err >&5 | |
b0322a85 | 4534 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4535 | cat conftest.out >&5 |
4536 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4537 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4538 | fi |
8d138742 CE |
4539 | rm -f conftest* |
4540 | fi | |
b0322a85 | 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4542 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4543 | |
8d138742 | 4544 | # find the maximum length of command line arguments |
b0322a85 | 4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4546 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4547 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4548 | $as_echo_n "(cached) " >&6 |
4549 | else | |
4550 | i=0 | |
4551 | teststring="ABCD" | |
d9898ee8 | 4552 | |
8d138742 CE |
4553 | case $build_os in |
4554 | msdosdjgpp*) | |
4555 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4556 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4557 | # during glob expansion). Even if it were fixed, the result of this | |
4558 | # check would be larger than it should be. | |
4559 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4560 | ;; | |
ac40fd9e | 4561 | |
8d138742 CE |
4562 | gnu*) |
4563 | # Under GNU Hurd, this test is not required because there is | |
4564 | # no limit to the length of command line arguments. | |
4565 | # Libtool will interpret -1 as no limit whatsoever | |
4566 | lt_cv_sys_max_cmd_len=-1; | |
4567 | ;; | |
d9898ee8 | 4568 | |
8d138742 CE |
4569 | cygwin* | mingw* | cegcc*) |
4570 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4571 | # about 5 minutes as the teststring grows exponentially. | |
4572 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4573 | # you end up with a "frozen" computer, even though with patience | |
4574 | # the test eventually succeeds (with a max line length of 256k). | |
4575 | # Instead, let's just punt: use the minimum linelength reported by | |
4576 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4577 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4578 | ;; |
8d138742 | 4579 | |
b0322a85 CE |
4580 | mint*) |
4581 | # On MiNT this can take a long time and run out of memory. | |
4582 | lt_cv_sys_max_cmd_len=8192; | |
4583 | ;; | |
4584 | ||
8d138742 CE |
4585 | amigaos*) |
4586 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4587 | # So we just punt and use a minimum line length of 8192. | |
4588 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4589 | ;; |
8d138742 CE |
4590 | |
4591 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4592 | # This has been around since 386BSD, at least. Likely further. | |
4593 | if test -x /sbin/sysctl; then | |
4594 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4595 | elif test -x /usr/sbin/sysctl; then | |
4596 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4597 | else | |
4598 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4599 | fi | |
4600 | # And add a safety zone | |
4601 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4602 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4603 | ;; |
8d138742 CE |
4604 | |
4605 | interix*) | |
4606 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4607 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4608 | ;; |
8d138742 | 4609 | |
b0322a85 CE |
4610 | os2*) |
4611 | # The test takes a long time on OS/2. | |
4612 | lt_cv_sys_max_cmd_len=8192 | |
4613 | ;; | |
4614 | ||
8d138742 CE |
4615 | osf*) |
4616 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4617 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4618 | # nice to cause kernel panics so lets avoid the loop below. | |
4619 | # First set a reasonable default. | |
4620 | lt_cv_sys_max_cmd_len=16384 | |
4621 | # | |
4622 | if test -x /sbin/sysconfig; then | |
4623 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4624 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4625 | esac | |
4626 | fi | |
d9898ee8 | 4627 | ;; |
8d138742 CE |
4628 | sco3.2v5*) |
4629 | lt_cv_sys_max_cmd_len=102400 | |
4630 | ;; | |
4631 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4632 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4633 | if test -n "$kargmax"; then | |
4634 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4635 | else | |
4636 | lt_cv_sys_max_cmd_len=32768 | |
4637 | fi | |
4638 | ;; | |
4639 | *) | |
4640 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4641 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4642 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4643 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4644 | else | |
4645 | # Make teststring a little bigger before we do anything with it. | |
4646 | # a 1K string should be a reasonable start. | |
4647 | for i in 1 2 3 4 5 6 7 8 ; do | |
4648 | teststring=$teststring$teststring | |
4649 | done | |
4650 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4651 | # If test is not a shell built-in, we'll probably end up computing a | |
4652 | # maximum length that is only half of the actual maximum length, but | |
4653 | # we can't tell. | |
b0322a85 CE |
4654 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
4655 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
8d138742 CE |
4656 | test $i != 17 # 1/2 MB should be enough |
4657 | do | |
4658 | i=`expr $i + 1` | |
4659 | teststring=$teststring$teststring | |
4660 | done | |
4661 | # Only check the string length outside the loop. | |
4662 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4663 | teststring= | |
4664 | # Add a significant safety factor because C++ compilers can tack on | |
4665 | # massive amounts of additional arguments before passing them to the | |
4666 | # linker. It appears as though 1/2 is a usable value. | |
4667 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4668 | fi | |
d9898ee8 | 4669 | ;; |
4670 | esac | |
d9898ee8 | 4671 | |
8d138742 | 4672 | fi |
d9898ee8 | 4673 | |
8d138742 | 4674 | if test -n $lt_cv_sys_max_cmd_len ; then |
b0322a85 | 4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4676 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4677 | else | |
b0322a85 | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 4679 | $as_echo "none" >&6; } |
d9898ee8 | 4680 | fi |
8d138742 | 4681 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4682 | |
4683 | ||
4684 | ||
4685 | ||
d9898ee8 | 4686 | |
d9898ee8 | 4687 | |
8d138742 CE |
4688 | : ${CP="cp -f"} |
4689 | : ${MV="mv -f"} | |
4690 | : ${RM="rm -f"} | |
d9898ee8 | 4691 | |
b0322a85 | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
8d138742 CE |
4693 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
4694 | # Try some XSI features | |
4695 | xsi_shell=no | |
4696 | ( _lt_dummy="a/b/c" | |
b0322a85 CE |
4697 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
4698 | = c,a/b,b/c, \ | |
8d138742 CE |
4699 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
4700 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4701 | && xsi_shell=yes | |
b0322a85 | 4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
8d138742 | 4703 | $as_echo "$xsi_shell" >&6; } |
d9898ee8 | 4704 | |
d9898ee8 | 4705 | |
b0322a85 | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
8d138742 CE |
4707 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
4708 | lt_shell_append=no | |
4709 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4710 | >/dev/null 2>&1 \ | |
4711 | && lt_shell_append=yes | |
b0322a85 | 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
8d138742 | 4713 | $as_echo "$lt_shell_append" >&6; } |
d9898ee8 | 4714 | |
d9898ee8 | 4715 | |
8d138742 CE |
4716 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4717 | lt_unset=unset | |
d9898ee8 | 4718 | else |
8d138742 CE |
4719 | lt_unset=false |
4720 | fi | |
d9898ee8 | 4721 | |
d9898ee8 | 4722 | |
d9898ee8 | 4723 | |
dd184caf | 4724 | |
d9898ee8 | 4725 | |
8d138742 CE |
4726 | # test EBCDIC or ASCII |
4727 | case `echo X|tr X '\101'` in | |
4728 | A) # ASCII based system | |
4729 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4730 | lt_SP2NL='tr \040 \012' | |
4731 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4732 | ;; |
8d138742 CE |
4733 | *) # EBCDIC based system |
4734 | lt_SP2NL='tr \100 \n' | |
4735 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4736 | ;; |
8d138742 | 4737 | esac |
d9898ee8 | 4738 | |
4739 | ||
d9898ee8 | 4740 | |
d9898ee8 | 4741 | |
4742 | ||
8d138742 CE |
4743 | |
4744 | ||
4745 | ||
4746 | ||
b0322a85 CE |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4748 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4749 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4750 | $as_echo_n "(cached) " >&6 | |
4751 | else | |
4752 | case $host in | |
4753 | *-*-mingw* ) | |
4754 | case $build in | |
4755 | *-*-mingw* ) # actually msys | |
4756 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4757 | ;; | |
4758 | *-*-cygwin* ) | |
4759 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4760 | ;; | |
4761 | * ) # otherwise, assume *nix | |
4762 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4763 | ;; | |
4764 | esac | |
4765 | ;; | |
4766 | *-*-cygwin* ) | |
4767 | case $build in | |
4768 | *-*-mingw* ) # actually msys | |
4769 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4770 | ;; | |
4771 | *-*-cygwin* ) | |
4772 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4773 | ;; | |
4774 | * ) # otherwise, assume *nix | |
4775 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4776 | ;; | |
4777 | esac | |
4778 | ;; | |
4779 | * ) # unhandled hosts (and "normal" native builds) | |
4780 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4781 | ;; | |
4782 | esac | |
4783 | ||
4784 | fi | |
4785 | ||
4786 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4788 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4789 | ||
4790 | ||
4791 | ||
4792 | ||
4793 | ||
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4795 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4796 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4797 | $as_echo_n "(cached) " >&6 | |
4798 | else | |
4799 | #assume ordinary cross tools, or native build. | |
4800 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4801 | case $host in | |
4802 | *-*-mingw* ) | |
4803 | case $build in | |
4804 | *-*-mingw* ) # actually msys | |
4805 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
4806 | ;; | |
4807 | esac | |
4808 | ;; | |
4809 | esac | |
4810 | ||
4811 | fi | |
4812 | ||
4813 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
4815 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
4816 | ||
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 4822 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 4823 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 4824 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4825 | else |
8d138742 CE |
4826 | lt_cv_ld_reload_flag='-r' |
4827 | fi | |
b0322a85 | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
4829 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
4830 | reload_flag=$lt_cv_ld_reload_flag | |
4831 | case $reload_flag in | |
4832 | "" | " "*) ;; | |
4833 | *) reload_flag=" $reload_flag" ;; | |
4834 | esac | |
4835 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4836 | case $host_os in | |
b0322a85 CE |
4837 | cygwin* | mingw* | pw32* | cegcc*) |
4838 | if test "$GCC" != yes; then | |
4839 | reload_cmds=false | |
4840 | fi | |
4841 | ;; | |
8d138742 CE |
4842 | darwin*) |
4843 | if test "$GCC" = yes; then | |
4844 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4845 | else | |
4846 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4847 | fi | |
4848 | ;; | |
dd184caf | 4849 | esac |
d9898ee8 | 4850 | |
dd184caf | 4851 | |
d9898ee8 | 4852 | |
d9898ee8 | 4853 | |
dd184caf | 4854 | |
d9898ee8 | 4855 | |
d9898ee8 | 4856 | |
d9898ee8 | 4857 | |
8d138742 CE |
4858 | |
4859 | if test -n "$ac_tool_prefix"; then | |
4860 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4861 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4863 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4864 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 4865 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4866 | else |
8d138742 CE |
4867 | if test -n "$OBJDUMP"; then |
4868 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 4869 | else |
8d138742 CE |
4870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4871 | for as_dir in $PATH | |
4872 | do | |
4873 | IFS=$as_save_IFS | |
4874 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4875 | for ac_exec_ext in '' $ac_executable_extensions; do |
4876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4877 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 4878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4879 | break 2 |
4880 | fi | |
4881 | done | |
b0322a85 | 4882 | done |
8d138742 | 4883 | IFS=$as_save_IFS |
d9898ee8 | 4884 | |
8d138742 CE |
4885 | fi |
4886 | fi | |
4887 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4888 | if test -n "$OBJDUMP"; then | |
b0322a85 | 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
4890 | $as_echo "$OBJDUMP" >&6; } |
4891 | else | |
b0322a85 | 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4893 | $as_echo "no" >&6; } |
d9898ee8 | 4894 | fi |
dd184caf | 4895 | |
d9898ee8 | 4896 | |
8d138742 CE |
4897 | fi |
4898 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4899 | ac_ct_OBJDUMP=$OBJDUMP | |
4900 | # Extract the first word of "objdump", so it can be a program name with args. | |
4901 | set dummy objdump; ac_word=$2 | |
b0322a85 | 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4903 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4904 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 4905 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4906 | else |
8d138742 CE |
4907 | if test -n "$ac_ct_OBJDUMP"; then |
4908 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4909 | else | |
4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4911 | for as_dir in $PATH | |
4912 | do | |
4913 | IFS=$as_save_IFS | |
4914 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4915 | for ac_exec_ext in '' $ac_executable_extensions; do |
4916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4917 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 4918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4919 | break 2 |
4920 | fi | |
4921 | done | |
b0322a85 | 4922 | done |
8d138742 | 4923 | IFS=$as_save_IFS |
d9898ee8 | 4924 | |
8d138742 CE |
4925 | fi |
4926 | fi | |
4927 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4928 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 CE |
4930 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
4931 | else | |
b0322a85 | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4933 | $as_echo "no" >&6; } |
d9898ee8 | 4934 | fi |
dd184caf | 4935 | |
8d138742 CE |
4936 | if test "x$ac_ct_OBJDUMP" = x; then |
4937 | OBJDUMP="false" | |
4938 | else | |
4939 | case $cross_compiling:$ac_tool_warned in | |
4940 | yes:) | |
b0322a85 | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4943 | ac_tool_warned=yes ;; | |
4944 | esac | |
4945 | OBJDUMP=$ac_ct_OBJDUMP | |
4946 | fi | |
d9898ee8 | 4947 | else |
8d138742 | 4948 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 4949 | fi |
4950 | ||
8d138742 | 4951 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 4952 | |
4953 | ||
d9898ee8 | 4954 | |
d9898ee8 | 4955 | |
d9898ee8 | 4956 | |
dd184caf | 4957 | |
d9898ee8 | 4958 | |
d9898ee8 | 4959 | |
8d138742 | 4960 | |
b0322a85 | 4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 4962 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 4963 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 4964 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4965 | else |
8d138742 CE |
4966 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4967 | lt_cv_file_magic_test_file= | |
4968 | lt_cv_deplibs_check_method='unknown' | |
4969 | # Need to set the preceding variable on all platforms that support | |
4970 | # interlibrary dependencies. | |
4971 | # 'none' -- dependencies not supported. | |
4972 | # `unknown' -- same as none, but documents that we really don't know. | |
4973 | # 'pass_all' -- all dependencies passed with no checks. | |
4974 | # 'test_compile' -- check by making test program. | |
4975 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4976 | # which responds to the $file_magic_cmd with a given extended regex. | |
4977 | # If you have `file' or equivalent on your system and you're not sure | |
4978 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 4979 | |
8d138742 CE |
4980 | case $host_os in |
4981 | aix[4-9]*) | |
4982 | lt_cv_deplibs_check_method=pass_all | |
4983 | ;; | |
d9898ee8 | 4984 | |
8d138742 CE |
4985 | beos*) |
4986 | lt_cv_deplibs_check_method=pass_all | |
4987 | ;; | |
d9898ee8 | 4988 | |
8d138742 CE |
4989 | bsdi[45]*) |
4990 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4991 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4992 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4993 | ;; | |
d9898ee8 | 4994 | |
8d138742 CE |
4995 | cygwin*) |
4996 | # func_win32_libid is a shell function defined in ltmain.sh | |
4997 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4998 | lt_cv_file_magic_cmd='func_win32_libid' | |
4999 | ;; | |
d9898ee8 | 5000 | |
8d138742 CE |
5001 | mingw* | pw32*) |
5002 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5003 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5004 | # unless we find 'file', for example because we are cross-compiling. | |
b0322a85 CE |
5005 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5006 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
8d138742 CE |
5007 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5008 | lt_cv_file_magic_cmd='func_win32_libid' | |
5009 | else | |
b0322a85 CE |
5010 | # Keep this pattern in sync with the one in func_win32_libid. |
5011 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5012 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5013 | fi | |
5014 | ;; | |
d9898ee8 | 5015 | |
b0322a85 | 5016 | cegcc*) |
8d138742 CE |
5017 | # use the weaker test based on 'objdump'. See mingw*. |
5018 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5019 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5020 | ;; | |
d9898ee8 | 5021 | |
8d138742 CE |
5022 | darwin* | rhapsody*) |
5023 | lt_cv_deplibs_check_method=pass_all | |
5024 | ;; | |
5025 | ||
5026 | freebsd* | dragonfly*) | |
5027 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5028 | case $host_cpu in | |
5029 | i*86 ) | |
5030 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5031 | # Let's accept both of them until this is cleared up. | |
5032 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5033 | lt_cv_file_magic_cmd=/usr/bin/file | |
5034 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5035 | ;; | |
5036 | esac | |
5037 | else | |
5038 | lt_cv_deplibs_check_method=pass_all | |
5039 | fi | |
5040 | ;; | |
dd184caf | 5041 | |
8d138742 CE |
5042 | gnu*) |
5043 | lt_cv_deplibs_check_method=pass_all | |
5044 | ;; | |
dd184caf | 5045 | |
b0322a85 CE |
5046 | haiku*) |
5047 | lt_cv_deplibs_check_method=pass_all | |
5048 | ;; | |
5049 | ||
8d138742 CE |
5050 | hpux10.20* | hpux11*) |
5051 | lt_cv_file_magic_cmd=/usr/bin/file | |
5052 | case $host_cpu in | |
5053 | ia64*) | |
5054 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5055 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5056 | ;; | |
5057 | hppa*64*) | |
b0322a85 | 5058 | 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 |
5059 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5060 | ;; | |
5061 | *) | |
b0322a85 | 5062 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5063 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5064 | ;; | |
5065 | esac | |
5066 | ;; | |
d9898ee8 | 5067 | |
8d138742 CE |
5068 | interix[3-9]*) |
5069 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5070 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5071 | ;; | |
d9898ee8 | 5072 | |
8d138742 CE |
5073 | irix5* | irix6* | nonstopux*) |
5074 | case $LD in | |
5075 | *-32|*"-32 ") libmagic=32-bit;; | |
5076 | *-n32|*"-n32 ") libmagic=N32;; | |
5077 | *-64|*"-64 ") libmagic=64-bit;; | |
5078 | *) libmagic=never-match;; | |
5079 | esac | |
5080 | lt_cv_deplibs_check_method=pass_all | |
5081 | ;; | |
d9898ee8 | 5082 | |
b0322a85 CE |
5083 | # This must be glibc/ELF. |
5084 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5085 | lt_cv_deplibs_check_method=pass_all | |
5086 | ;; | |
5087 | ||
5088 | netbsd*) | |
5089 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5090 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5091 | else | |
5092 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5093 | fi | |
5094 | ;; | |
5095 | ||
5096 | newos6*) | |
5097 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5098 | lt_cv_file_magic_cmd=/usr/bin/file | |
5099 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5100 | ;; | |
5101 | ||
5102 | *nto* | *qnx*) | |
5103 | lt_cv_deplibs_check_method=pass_all | |
5104 | ;; | |
5105 | ||
5106 | openbsd*) | |
5107 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5108 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5109 | else | |
5110 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5111 | fi | |
5112 | ;; | |
5113 | ||
5114 | osf3* | osf4* | osf5*) | |
5115 | lt_cv_deplibs_check_method=pass_all | |
5116 | ;; | |
5117 | ||
5118 | rdos*) | |
5119 | lt_cv_deplibs_check_method=pass_all | |
5120 | ;; | |
5121 | ||
5122 | solaris*) | |
5123 | lt_cv_deplibs_check_method=pass_all | |
5124 | ;; | |
5125 | ||
5126 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5127 | lt_cv_deplibs_check_method=pass_all | |
5128 | ;; | |
5129 | ||
5130 | sysv4 | sysv4.3*) | |
5131 | case $host_vendor in | |
5132 | motorola) | |
5133 | 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]' | |
5134 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5135 | ;; | |
5136 | ncr) | |
5137 | lt_cv_deplibs_check_method=pass_all | |
5138 | ;; | |
5139 | sequent) | |
5140 | lt_cv_file_magic_cmd='/bin/file' | |
5141 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5142 | ;; | |
5143 | sni) | |
5144 | lt_cv_file_magic_cmd='/bin/file' | |
5145 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5146 | lt_cv_file_magic_test_file=/lib/libc.so | |
5147 | ;; | |
5148 | siemens) | |
5149 | lt_cv_deplibs_check_method=pass_all | |
5150 | ;; | |
5151 | pc) | |
5152 | lt_cv_deplibs_check_method=pass_all | |
5153 | ;; | |
5154 | esac | |
5155 | ;; | |
5156 | ||
5157 | tpf*) | |
5158 | lt_cv_deplibs_check_method=pass_all | |
5159 | ;; | |
5160 | esac | |
5161 | ||
5162 | fi | |
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5164 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5165 | ||
5166 | file_magic_glob= | |
5167 | want_nocaseglob=no | |
5168 | if test "$build" = "$host"; then | |
5169 | case $host_os in | |
5170 | mingw* | pw32*) | |
5171 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5172 | want_nocaseglob=yes | |
5173 | else | |
5174 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5175 | fi | |
5176 | ;; | |
5177 | esac | |
5178 | fi | |
5179 | ||
5180 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5181 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5182 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | ||
5200 | ||
5201 | ||
5202 | ||
5203 | ||
5204 | ||
5205 | if test -n "$ac_tool_prefix"; then | |
5206 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5207 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5209 | $as_echo_n "checking for $ac_word... " >&6; } | |
5210 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5211 | $as_echo_n "(cached) " >&6 | |
5212 | else | |
5213 | if test -n "$DLLTOOL"; then | |
5214 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5215 | else | |
5216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5217 | for as_dir in $PATH | |
5218 | do | |
5219 | IFS=$as_save_IFS | |
5220 | test -z "$as_dir" && as_dir=. | |
5221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5223 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5225 | break 2 | |
5226 | fi | |
5227 | done | |
5228 | done | |
5229 | IFS=$as_save_IFS | |
5230 | ||
5231 | fi | |
5232 | fi | |
5233 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5234 | if test -n "$DLLTOOL"; then | |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5236 | $as_echo "$DLLTOOL" >&6; } | |
5237 | else | |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5239 | $as_echo "no" >&6; } | |
5240 | fi | |
5241 | ||
5242 | ||
5243 | fi | |
5244 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5245 | ac_ct_DLLTOOL=$DLLTOOL | |
5246 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5247 | set dummy dlltool; ac_word=$2 | |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5249 | $as_echo_n "checking for $ac_word... " >&6; } | |
5250 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5252 | else | |
5253 | if test -n "$ac_ct_DLLTOOL"; then | |
5254 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5255 | else | |
5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5257 | for as_dir in $PATH | |
5258 | do | |
5259 | IFS=$as_save_IFS | |
5260 | test -z "$as_dir" && as_dir=. | |
5261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5263 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5265 | break 2 | |
5266 | fi | |
5267 | done | |
5268 | done | |
5269 | IFS=$as_save_IFS | |
5270 | ||
5271 | fi | |
5272 | fi | |
5273 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5274 | if test -n "$ac_ct_DLLTOOL"; then | |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5276 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5277 | else | |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5279 | $as_echo "no" >&6; } | |
5280 | fi | |
5281 | ||
5282 | if test "x$ac_ct_DLLTOOL" = x; then | |
5283 | DLLTOOL="false" | |
5284 | else | |
5285 | case $cross_compiling:$ac_tool_warned in | |
5286 | yes:) | |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5288 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5289 | ac_tool_warned=yes ;; | |
5290 | esac | |
5291 | DLLTOOL=$ac_ct_DLLTOOL | |
5292 | fi | |
5293 | else | |
5294 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5295 | fi | |
5296 | ||
5297 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
d9898ee8 | 5298 | |
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | ||
5306 | ||
b0322a85 CE |
5307 | |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5309 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5310 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5311 | $as_echo_n "(cached) " >&6 | |
5312 | else | |
5313 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5314 | ||
5315 | case $host_os in | |
5316 | cygwin* | mingw* | pw32* | cegcc*) | |
5317 | # two different shell functions defined in ltmain.sh | |
5318 | # decide which to use based on capabilities of $DLLTOOL | |
5319 | case `$DLLTOOL --help 2>&1` in | |
5320 | *--identify-strict*) | |
5321 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
8d138742 | 5322 | ;; |
b0322a85 CE |
5323 | *) |
5324 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
8d138742 CE |
5325 | ;; |
5326 | esac | |
5327 | ;; | |
b0322a85 CE |
5328 | *) |
5329 | # fallback: assume linklib IS sharedlib | |
5330 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
8d138742 | 5331 | ;; |
dd184caf | 5332 | esac |
d9898ee8 | 5333 | |
d9898ee8 | 5334 | fi |
b0322a85 CE |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5336 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5337 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5338 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
d9898ee8 | 5339 | |
5340 | ||
d9898ee8 | 5341 | |
dd184caf | 5342 | |
d9898ee8 | 5343 | |
8d138742 CE |
5344 | |
5345 | ||
5346 | ||
5347 | if test -n "$ac_tool_prefix"; then | |
b0322a85 CE |
5348 | for ac_prog in ar |
5349 | do | |
5350 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5351 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5353 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5354 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5355 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5356 | else |
8d138742 CE |
5357 | if test -n "$AR"; then |
5358 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5359 | else | |
5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5361 | for as_dir in $PATH | |
5362 | do | |
5363 | IFS=$as_save_IFS | |
5364 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5365 | for ac_exec_ext in '' $ac_executable_extensions; do |
5366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5367 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5369 | break 2 |
5370 | fi | |
5371 | done | |
b0322a85 | 5372 | done |
8d138742 | 5373 | IFS=$as_save_IFS |
d9898ee8 | 5374 | |
8d138742 CE |
5375 | fi |
5376 | fi | |
5377 | AR=$ac_cv_prog_AR | |
5378 | if test -n "$AR"; then | |
b0322a85 | 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 CE |
5380 | $as_echo "$AR" >&6; } |
5381 | else | |
b0322a85 | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5383 | $as_echo "no" >&6; } |
d9898ee8 | 5384 | fi |
dd184caf | 5385 | |
d9898ee8 | 5386 | |
b0322a85 CE |
5387 | test -n "$AR" && break |
5388 | done | |
d9898ee8 | 5389 | fi |
b0322a85 | 5390 | if test -z "$AR"; then |
8d138742 | 5391 | ac_ct_AR=$AR |
b0322a85 CE |
5392 | for ac_prog in ar |
5393 | do | |
5394 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5395 | set dummy $ac_prog; ac_word=$2 | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5397 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5398 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 CE |
5399 | $as_echo_n "(cached) " >&6 |
5400 | else | |
5401 | if test -n "$ac_ct_AR"; then | |
5402 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5403 | else | |
5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5405 | for as_dir in $PATH | |
5406 | do | |
5407 | IFS=$as_save_IFS | |
5408 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5409 | for ac_exec_ext in '' $ac_executable_extensions; do |
5410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5411 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5413 | break 2 |
5414 | fi | |
5415 | done | |
b0322a85 | 5416 | done |
8d138742 | 5417 | IFS=$as_save_IFS |
d9898ee8 | 5418 | |
5419 | fi | |
8d138742 CE |
5420 | fi |
5421 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5422 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 CE |
5424 | $as_echo "$ac_ct_AR" >&6; } |
5425 | else | |
b0322a85 | 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5427 | $as_echo "no" >&6; } |
5428 | fi | |
d9898ee8 | 5429 | |
b0322a85 CE |
5430 | |
5431 | test -n "$ac_ct_AR" && break | |
5432 | done | |
5433 | ||
8d138742 CE |
5434 | if test "x$ac_ct_AR" = x; then |
5435 | AR="false" | |
5436 | else | |
5437 | case $cross_compiling:$ac_tool_warned in | |
5438 | yes:) | |
b0322a85 | 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5440 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5441 | ac_tool_warned=yes ;; | |
5442 | esac | |
5443 | AR=$ac_ct_AR | |
5444 | fi | |
d9898ee8 | 5445 | fi |
5446 | ||
b0322a85 CE |
5447 | : ${AR=ar} |
5448 | : ${AR_FLAGS=cru} | |
5449 | ||
d9898ee8 | 5450 | |
8d138742 CE |
5451 | |
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
b0322a85 CE |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5461 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5462 | if ${lt_cv_ar_at_file+:} false; then : | |
5463 | $as_echo_n "(cached) " >&6 | |
5464 | else | |
5465 | lt_cv_ar_at_file=no | |
5466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5467 | /* end confdefs.h. */ | |
5468 | ||
5469 | int | |
5470 | main () | |
5471 | { | |
5472 | ||
5473 | ; | |
5474 | return 0; | |
5475 | } | |
5476 | _ACEOF | |
5477 | if ac_fn_c_try_compile "$LINENO"; then : | |
5478 | echo conftest.$ac_objext > conftest.lst | |
5479 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5480 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5481 | (eval $lt_ar_try) 2>&5 | |
5482 | ac_status=$? | |
5483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5484 | test $ac_status = 0; } | |
5485 | if test "$ac_status" -eq 0; then | |
5486 | # Ensure the archiver fails upon bogus file names. | |
5487 | rm -f conftest.$ac_objext libconftest.a | |
5488 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5489 | (eval $lt_ar_try) 2>&5 | |
5490 | ac_status=$? | |
5491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5492 | test $ac_status = 0; } | |
5493 | if test "$ac_status" -ne 0; then | |
5494 | lt_cv_ar_at_file=@ | |
5495 | fi | |
5496 | fi | |
5497 | rm -f conftest.* libconftest.a | |
5498 | ||
5499 | fi | |
5500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5501 | ||
5502 | fi | |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5504 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5505 | ||
5506 | if test "x$lt_cv_ar_at_file" = xno; then | |
5507 | archiver_list_spec= | |
5508 | else | |
5509 | archiver_list_spec=$lt_cv_ar_at_file | |
5510 | fi | |
5511 | ||
5512 | ||
5513 | ||
5514 | ||
5515 | ||
5516 | ||
8d138742 CE |
5517 | |
5518 | if test -n "$ac_tool_prefix"; then | |
5519 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5520 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5522 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5523 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 5524 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5525 | else |
8d138742 CE |
5526 | if test -n "$STRIP"; then |
5527 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5528 | else |
5529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5530 | for as_dir in $PATH | |
5531 | do | |
5532 | IFS=$as_save_IFS | |
5533 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5534 | for ac_exec_ext in '' $ac_executable_extensions; do |
5535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5536 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 5537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5538 | break 2 |
5539 | fi | |
5540 | done | |
b0322a85 | 5541 | done |
dd184caf | 5542 | IFS=$as_save_IFS |
d9898ee8 | 5543 | |
5544 | fi | |
5545 | fi | |
8d138742 CE |
5546 | STRIP=$ac_cv_prog_STRIP |
5547 | if test -n "$STRIP"; then | |
b0322a85 | 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 | 5549 | $as_echo "$STRIP" >&6; } |
d9898ee8 | 5550 | else |
b0322a85 | 5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5552 | $as_echo "no" >&6; } |
d9898ee8 | 5553 | fi |
5554 | ||
dd184caf | 5555 | |
d9898ee8 | 5556 | fi |
8d138742 CE |
5557 | if test -z "$ac_cv_prog_STRIP"; then |
5558 | ac_ct_STRIP=$STRIP | |
5559 | # Extract the first word of "strip", so it can be a program name with args. | |
5560 | set dummy strip; ac_word=$2 | |
b0322a85 | 5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5562 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5563 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 | 5564 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5565 | else |
8d138742 CE |
5566 | if test -n "$ac_ct_STRIP"; then |
5567 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5568 | else |
5569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5570 | for as_dir in $PATH | |
5571 | do | |
5572 | IFS=$as_save_IFS | |
5573 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5574 | for ac_exec_ext in '' $ac_executable_extensions; do |
5575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5576 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5578 | break 2 |
5579 | fi | |
5580 | done | |
b0322a85 | 5581 | done |
dd184caf | 5582 | IFS=$as_save_IFS |
d9898ee8 | 5583 | |
5584 | fi | |
5585 | fi | |
8d138742 CE |
5586 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5587 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5589 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5590 | else |
b0322a85 | 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5592 | $as_echo "no" >&6; } |
d9898ee8 | 5593 | fi |
5594 | ||
8d138742 CE |
5595 | if test "x$ac_ct_STRIP" = x; then |
5596 | STRIP=":" | |
dd184caf | 5597 | else |
5598 | case $cross_compiling:$ac_tool_warned in | |
5599 | yes:) | |
b0322a85 | 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5601 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5602 | ac_tool_warned=yes ;; |
5603 | esac | |
8d138742 | 5604 | STRIP=$ac_ct_STRIP |
dd184caf | 5605 | fi |
8d138742 CE |
5606 | else |
5607 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 5608 | fi |
5609 | ||
8d138742 | 5610 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5611 | |
d9898ee8 | 5612 | |
d9898ee8 | 5613 | |
8d138742 CE |
5614 | |
5615 | ||
5616 | ||
5617 | if test -n "$ac_tool_prefix"; then | |
5618 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5619 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5621 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5622 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5623 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5624 | else |
8d138742 CE |
5625 | if test -n "$RANLIB"; then |
5626 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5627 | else | |
5628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5629 | for as_dir in $PATH | |
5630 | do | |
5631 | IFS=$as_save_IFS | |
5632 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5633 | for ac_exec_ext in '' $ac_executable_extensions; do |
5634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5635 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5637 | break 2 |
5638 | fi | |
5639 | done | |
b0322a85 | 5640 | done |
8d138742 | 5641 | IFS=$as_save_IFS |
d9898ee8 | 5642 | |
8d138742 CE |
5643 | fi |
5644 | fi | |
5645 | RANLIB=$ac_cv_prog_RANLIB | |
5646 | if test -n "$RANLIB"; then | |
b0322a85 | 5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
5648 | $as_echo "$RANLIB" >&6; } |
5649 | else | |
b0322a85 | 5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5651 | $as_echo "no" >&6; } |
d9898ee8 | 5652 | fi |
dd184caf | 5653 | |
d9898ee8 | 5654 | |
8d138742 CE |
5655 | fi |
5656 | if test -z "$ac_cv_prog_RANLIB"; then | |
5657 | ac_ct_RANLIB=$RANLIB | |
5658 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5659 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5661 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5662 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5663 | $as_echo_n "(cached) " >&6 |
5664 | else | |
5665 | if test -n "$ac_ct_RANLIB"; then | |
5666 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5667 | else | |
5668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5669 | for as_dir in $PATH | |
5670 | do | |
5671 | IFS=$as_save_IFS | |
5672 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5673 | for ac_exec_ext in '' $ac_executable_extensions; do |
5674 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5675 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5677 | break 2 |
5678 | fi | |
5679 | done | |
b0322a85 | 5680 | done |
8d138742 | 5681 | IFS=$as_save_IFS |
d9898ee8 | 5682 | |
8d138742 CE |
5683 | fi |
5684 | fi | |
5685 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5686 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
5688 | $as_echo "$ac_ct_RANLIB" >&6; } |
5689 | else | |
b0322a85 | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5691 | $as_echo "no" >&6; } |
5692 | fi | |
5693 | ||
5694 | if test "x$ac_ct_RANLIB" = x; then | |
5695 | RANLIB=":" | |
5696 | else | |
5697 | case $cross_compiling:$ac_tool_warned in | |
5698 | yes:) | |
b0322a85 | 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5700 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5701 | ac_tool_warned=yes ;; | |
dd184caf | 5702 | esac |
8d138742 CE |
5703 | RANLIB=$ac_ct_RANLIB |
5704 | fi | |
d9898ee8 | 5705 | else |
8d138742 CE |
5706 | RANLIB="$ac_cv_prog_RANLIB" |
5707 | fi | |
d9898ee8 | 5708 | |
8d138742 | 5709 | test -z "$RANLIB" && RANLIB=: |
dd184caf | 5710 | |
dd184caf | 5711 | |
d9898ee8 | 5712 | |
dd184caf | 5713 | |
dd184caf | 5714 | |
d9898ee8 | 5715 | |
8d138742 CE |
5716 | # Determine commands to create old-style static archives. |
5717 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5718 | old_postinstall_cmds='chmod 644 $oldlib' | |
5719 | old_postuninstall_cmds= | |
dd184caf | 5720 | |
8d138742 CE |
5721 | if test -n "$RANLIB"; then |
5722 | case $host_os in | |
5723 | openbsd*) | |
b0322a85 | 5724 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5725 | ;; |
5726 | *) | |
b0322a85 | 5727 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5728 | ;; |
5729 | esac | |
b0322a85 | 5730 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 5731 | fi |
dd184caf | 5732 | |
b0322a85 CE |
5733 | case $host_os in |
5734 | darwin*) | |
5735 | lock_old_archive_extraction=yes ;; | |
5736 | *) | |
5737 | lock_old_archive_extraction=no ;; | |
5738 | esac | |
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
dd184caf | 5745 | |
d9898ee8 | 5746 | |
d9898ee8 | 5747 | |
d9898ee8 | 5748 | |
d9898ee8 | 5749 | |
d9898ee8 | 5750 | |
d9898ee8 | 5751 | |
d9898ee8 | 5752 | |
d9898ee8 | 5753 | |
d9898ee8 | 5754 | |
5755 | ||
5756 | ||
5757 | ||
d9898ee8 | 5758 | |
dd184caf | 5759 | |
d9898ee8 | 5760 | |
d9898ee8 | 5761 | |
dd184caf | 5762 | |
d9898ee8 | 5763 | |
d9898ee8 | 5764 | |
d9898ee8 | 5765 | |
d9898ee8 | 5766 | |
dd184caf | 5767 | |
d9898ee8 | 5768 | |
d9898ee8 | 5769 | |
dd184caf | 5770 | |
d9898ee8 | 5771 | |
d9898ee8 | 5772 | |
d9898ee8 | 5773 | |
d9898ee8 | 5774 | |
5775 | ||
d9898ee8 | 5776 | |
d9898ee8 | 5777 | |
8d138742 CE |
5778 | # If no C compiler was specified, use CC. |
5779 | LTCC=${LTCC-"$CC"} | |
dd184caf | 5780 | |
8d138742 CE |
5781 | # If no C compiler flags were specified, use CFLAGS. |
5782 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5783 | |
8d138742 CE |
5784 | # Allow CC to be a program name with arguments. |
5785 | compiler=$CC | |
5786 | ||
5787 | ||
5788 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
b0322a85 | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 5790 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 5791 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 5792 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5793 | else |
d9898ee8 | 5794 | |
8d138742 CE |
5795 | # These are sane defaults that work on at least a few old systems. |
5796 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
dd184caf | 5797 | |
8d138742 CE |
5798 | # Character class describing NM global symbol codes. |
5799 | symcode='[BCDEGRST]' | |
d9898ee8 | 5800 | |
8d138742 CE |
5801 | # Regexp to match symbols that can be accessed directly from C. |
5802 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5803 | ||
5804 | # Define system-specific variables. | |
5805 | case $host_os in | |
5806 | aix*) | |
5807 | symcode='[BCDT]' | |
5808 | ;; | |
5809 | cygwin* | mingw* | pw32* | cegcc*) | |
5810 | symcode='[ABCDGISTW]' | |
5811 | ;; | |
5812 | hpux*) | |
5813 | if test "$host_cpu" = ia64; then | |
5814 | symcode='[ABCDEGRST]' | |
dd184caf | 5815 | fi |
8d138742 CE |
5816 | ;; |
5817 | irix* | nonstopux*) | |
5818 | symcode='[BCDEGRST]' | |
5819 | ;; | |
5820 | osf*) | |
5821 | symcode='[BCDEGQRST]' | |
5822 | ;; | |
5823 | solaris*) | |
5824 | symcode='[BDRT]' | |
5825 | ;; | |
5826 | sco3.2v5*) | |
5827 | symcode='[DT]' | |
5828 | ;; | |
5829 | sysv4.2uw2*) | |
5830 | symcode='[DT]' | |
5831 | ;; | |
5832 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5833 | symcode='[ABDT]' | |
5834 | ;; | |
5835 | sysv4) | |
5836 | symcode='[DFNSTU]' | |
5837 | ;; | |
5838 | esac | |
5839 | ||
5840 | # If we're using GNU nm, then use its standard symbol codes. | |
5841 | case `$NM -V 2>&1` in | |
5842 | *GNU* | *'with BFD'*) | |
5843 | symcode='[ABCDGIRSTW]' ;; | |
5844 | esac | |
d9898ee8 | 5845 | |
8d138742 CE |
5846 | # Transform an extracted symbol line into a proper C declaration. |
5847 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5848 | # so use this general approach. | |
5849 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 5850 | |
8d138742 | 5851 | # Transform an extracted symbol line into symbol name and symbol address |
b0322a85 CE |
5852 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
5853 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
8d138742 CE |
5854 | |
5855 | # Handle CRLF in mingw tool chain | |
5856 | opt_cr= | |
5857 | case $build_os in | |
5858 | mingw*) | |
5859 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5860 | ;; | |
dd184caf | 5861 | esac |
8d138742 CE |
5862 | |
5863 | # Try without a prefix underscore, then with it. | |
5864 | for ac_symprfx in "" "_"; do | |
5865 | ||
5866 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5867 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5868 | ||
5869 | # Write the raw and C identifiers. | |
5870 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5871 | # Fake it for dumpbin and say T for any non-static function | |
5872 | # and D for any global variable. | |
5873 | # Also find C++ and __fastcall symbols from MSVC++, | |
5874 | # which start with @ or ?. | |
5875 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5876 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 5877 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 CE |
5878 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
5879 | " \$ 0!~/External *\|/{next};"\ | |
5880 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5881 | " {if(hide[section]) next};"\ | |
5882 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5883 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5884 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5885 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5886 | " ' prfx=^$ac_symprfx" | |
5887 | else | |
5888 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5889 | fi | |
b0322a85 | 5890 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
8d138742 CE |
5891 | |
5892 | # Check to see that the pipe works correctly. | |
5893 | pipe_works=no | |
5894 | ||
5895 | rm -f conftest* | |
5896 | cat > conftest.$ac_ext <<_LT_EOF | |
5897 | #ifdef __cplusplus | |
5898 | extern "C" { | |
5899 | #endif | |
5900 | char nm_test_var; | |
5901 | void nm_test_func(void); | |
5902 | void nm_test_func(void){} | |
5903 | #ifdef __cplusplus | |
5904 | } | |
5905 | #endif | |
5906 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5907 | _LT_EOF | |
5908 | ||
b0322a85 | 5909 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 | 5910 | (eval $ac_compile) 2>&5 |
d9898ee8 | 5911 | ac_status=$? |
b0322a85 CE |
5912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5913 | test $ac_status = 0; }; then | |
8d138742 CE |
5914 | # Now try to grab the symbols. |
5915 | nlist=conftest.nm | |
b0322a85 CE |
5916 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
5917 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 5918 | ac_status=$? |
b0322a85 CE |
5919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5920 | test $ac_status = 0; } && test -s "$nlist"; then | |
8d138742 CE |
5921 | # Try sorting and uniquifying the output. |
5922 | if sort "$nlist" | uniq > "$nlist"T; then | |
5923 | mv -f "$nlist"T "$nlist" | |
5924 | else | |
5925 | rm -f "$nlist"T | |
5926 | fi | |
d9898ee8 | 5927 | |
8d138742 CE |
5928 | # Make sure that we snagged all the symbols we need. |
5929 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5930 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5931 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 CE |
5932 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
5933 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
5934 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
5935 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
5936 | # define LT_DLSYM_CONST | |
5937 | #elif defined(__osf__) | |
5938 | /* This system does not cope well with relocations in const data. */ | |
5939 | # define LT_DLSYM_CONST | |
5940 | #else | |
5941 | # define LT_DLSYM_CONST const | |
5942 | #endif | |
5943 | ||
8d138742 CE |
5944 | #ifdef __cplusplus |
5945 | extern "C" { | |
d9898ee8 | 5946 | #endif |
5947 | ||
8d138742 CE |
5948 | _LT_EOF |
5949 | # Now generate the symbol file. | |
5950 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 5951 | |
8d138742 | 5952 | cat <<_LT_EOF >> conftest.$ac_ext |
dd184caf | 5953 | |
8d138742 | 5954 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 5955 | LT_DLSYM_CONST struct { |
8d138742 CE |
5956 | const char *name; |
5957 | void *address; | |
5958 | } | |
5959 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5960 | { | |
5961 | { "@PROGRAM@", (void *) 0 }, | |
5962 | _LT_EOF | |
5963 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5964 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5965 | {0, (void *) 0} | |
5966 | }; | |
d9898ee8 | 5967 | |
8d138742 CE |
5968 | /* This works around a problem in FreeBSD linker */ |
5969 | #ifdef FREEBSD_WORKAROUND | |
5970 | static const void *lt_preloaded_setup() { | |
5971 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5972 | } | |
5973 | #endif | |
d9898ee8 | 5974 | |
8d138742 CE |
5975 | #ifdef __cplusplus |
5976 | } | |
5977 | #endif | |
5978 | _LT_EOF | |
5979 | # Now try linking the two files. | |
5980 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
5981 | lt_globsym_save_LIBS=$LIBS |
5982 | lt_globsym_save_CFLAGS=$CFLAGS | |
8d138742 CE |
5983 | LIBS="conftstm.$ac_objext" |
5984 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
b0322a85 | 5985 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 | 5986 | (eval $ac_link) 2>&5 |
d9898ee8 | 5987 | ac_status=$? |
b0322a85 CE |
5988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5989 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
8d138742 CE |
5990 | pipe_works=yes |
5991 | fi | |
b0322a85 CE |
5992 | LIBS=$lt_globsym_save_LIBS |
5993 | CFLAGS=$lt_globsym_save_CFLAGS | |
8d138742 CE |
5994 | else |
5995 | echo "cannot find nm_test_func in $nlist" >&5 | |
5996 | fi | |
5997 | else | |
5998 | echo "cannot find nm_test_var in $nlist" >&5 | |
5999 | fi | |
6000 | else | |
6001 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6002 | fi | |
6003 | else | |
6004 | echo "$progname: failed program was:" >&5 | |
6005 | cat conftest.$ac_ext >&5 | |
6006 | fi | |
6007 | rm -rf conftest* conftst* | |
d9898ee8 | 6008 | |
8d138742 CE |
6009 | # Do not use the global_symbol_pipe unless it works. |
6010 | if test "$pipe_works" = yes; then | |
6011 | break | |
6012 | else | |
6013 | lt_cv_sys_global_symbol_pipe= | |
6014 | fi | |
6015 | done | |
dd184caf | 6016 | |
8d138742 | 6017 | fi |
d9898ee8 | 6018 | |
8d138742 CE |
6019 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6020 | lt_cv_sys_global_symbol_to_cdecl= | |
d9898ee8 | 6021 | fi |
8d138742 | 6022 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
b0322a85 | 6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6024 | $as_echo "failed" >&6; } |
d9898ee8 | 6025 | else |
b0322a85 | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6027 | $as_echo "ok" >&6; } |
d9898ee8 | 6028 | fi |
6029 | ||
b0322a85 CE |
6030 | # Response file support. |
6031 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6032 | nm_file_list_spec='@' | |
6033 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6034 | nm_file_list_spec='@' | |
6035 | fi | |
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | ||
6042 | ||
6043 | ||
d9898ee8 | 6044 | |
6045 | ||
6046 | ||
d9898ee8 | 6047 | |
d9898ee8 | 6048 | |
d9898ee8 | 6049 | |
d9898ee8 | 6050 | |
d9898ee8 | 6051 | |
d9898ee8 | 6052 | |
d9898ee8 | 6053 | |
d9898ee8 | 6054 | |
d9898ee8 | 6055 | |
d9898ee8 | 6056 | |
d9898ee8 | 6057 | |
6058 | ||
6059 | ||
6060 | ||
b0322a85 CE |
6061 | |
6062 | ||
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6064 | $as_echo_n "checking for sysroot... " >&6; } | |
6065 | ||
6066 | # Check whether --with-sysroot was given. | |
6067 | if test "${with_sysroot+set}" = set; then : | |
6068 | withval=$with_sysroot; | |
6069 | else | |
6070 | with_sysroot=no | |
6071 | fi | |
6072 | ||
6073 | ||
6074 | lt_sysroot= | |
6075 | case ${with_sysroot} in #( | |
6076 | yes) | |
6077 | if test "$GCC" = yes; then | |
6078 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6079 | fi | |
6080 | ;; #( | |
6081 | /*) | |
6082 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6083 | ;; #( | |
6084 | no|'') | |
6085 | ;; #( | |
6086 | *) | |
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6088 | $as_echo "${with_sysroot}" >&6; } | |
6089 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6090 | ;; | |
6091 | esac | |
6092 | ||
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6094 | $as_echo "${lt_sysroot:-no}" >&6; } | |
ac40fd9e | 6095 | |
d9898ee8 | 6096 | |
d9898ee8 | 6097 | |
d9898ee8 | 6098 | |
d9898ee8 | 6099 | |
8d138742 | 6100 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6101 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 CE |
6102 | enableval=$enable_libtool_lock; |
6103 | fi | |
d9898ee8 | 6104 | |
8d138742 | 6105 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
d9898ee8 | 6106 | |
8d138742 CE |
6107 | # Some flags need to be propagated to the compiler or linker for good |
6108 | # libtool support. | |
6109 | case $host in | |
6110 | ia64-*-hpux*) | |
6111 | # Find out which ABI we are using. | |
6112 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6114 | (eval $ac_compile) 2>&5 |
6115 | ac_status=$? | |
b0322a85 CE |
6116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6117 | test $ac_status = 0; }; then | |
8d138742 CE |
6118 | case `/usr/bin/file conftest.$ac_objext` in |
6119 | *ELF-32*) | |
6120 | HPUX_IA64_MODE="32" | |
6121 | ;; | |
6122 | *ELF-64*) | |
6123 | HPUX_IA64_MODE="64" | |
6124 | ;; | |
6125 | esac | |
d9898ee8 | 6126 | fi |
8d138742 | 6127 | rm -rf conftest* |
d9898ee8 | 6128 | ;; |
8d138742 CE |
6129 | *-*-irix6*) |
6130 | # Find out which ABI we are using. | |
b0322a85 CE |
6131 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6132 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6133 | (eval $ac_compile) 2>&5 |
6134 | ac_status=$? | |
b0322a85 CE |
6135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6136 | test $ac_status = 0; }; then | |
8d138742 CE |
6137 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6138 | case `/usr/bin/file conftest.$ac_objext` in | |
6139 | *32-bit*) | |
6140 | LD="${LD-ld} -melf32bsmip" | |
6141 | ;; | |
6142 | *N32*) | |
6143 | LD="${LD-ld} -melf32bmipn32" | |
6144 | ;; | |
6145 | *64-bit*) | |
6146 | LD="${LD-ld} -melf64bmip" | |
6147 | ;; | |
6148 | esac | |
6149 | else | |
6150 | case `/usr/bin/file conftest.$ac_objext` in | |
6151 | *32-bit*) | |
6152 | LD="${LD-ld} -32" | |
6153 | ;; | |
6154 | *N32*) | |
6155 | LD="${LD-ld} -n32" | |
6156 | ;; | |
6157 | *64-bit*) | |
6158 | LD="${LD-ld} -64" | |
6159 | ;; | |
6160 | esac | |
6161 | fi | |
d9898ee8 | 6162 | fi |
8d138742 | 6163 | rm -rf conftest* |
d9898ee8 | 6164 | ;; |
d9898ee8 | 6165 | |
8d138742 CE |
6166 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6167 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6168 | # Find out which ABI we are using. | |
6169 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6170 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6171 | (eval $ac_compile) 2>&5 |
6172 | ac_status=$? | |
b0322a85 CE |
6173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6174 | test $ac_status = 0; }; then | |
8d138742 CE |
6175 | case `/usr/bin/file conftest.o` in |
6176 | *32-bit*) | |
6177 | case $host in | |
6178 | x86_64-*kfreebsd*-gnu) | |
6179 | LD="${LD-ld} -m elf_i386_fbsd" | |
6180 | ;; | |
6181 | x86_64-*linux*) | |
6182 | LD="${LD-ld} -m elf_i386" | |
6183 | ;; | |
6184 | ppc64-*linux*|powerpc64-*linux*) | |
6185 | LD="${LD-ld} -m elf32ppclinux" | |
6186 | ;; | |
6187 | s390x-*linux*) | |
6188 | LD="${LD-ld} -m elf_s390" | |
6189 | ;; | |
6190 | sparc64-*linux*) | |
6191 | LD="${LD-ld} -m elf32_sparc" | |
6192 | ;; | |
6193 | esac | |
6194 | ;; | |
6195 | *64-bit*) | |
6196 | case $host in | |
6197 | x86_64-*kfreebsd*-gnu) | |
6198 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6199 | ;; | |
6200 | x86_64-*linux*) | |
6201 | LD="${LD-ld} -m elf_x86_64" | |
6202 | ;; | |
6203 | ppc*-*linux*|powerpc*-*linux*) | |
6204 | LD="${LD-ld} -m elf64ppc" | |
6205 | ;; | |
6206 | s390*-*linux*|s390*-*tpf*) | |
6207 | LD="${LD-ld} -m elf64_s390" | |
6208 | ;; | |
6209 | sparc*-*linux*) | |
6210 | LD="${LD-ld} -m elf64_sparc" | |
6211 | ;; | |
6212 | esac | |
6213 | ;; | |
6214 | esac | |
6215 | fi | |
6216 | rm -rf conftest* | |
d9898ee8 | 6217 | ;; |
d9898ee8 | 6218 | |
8d138742 CE |
6219 | *-*-sco3.2v5*) |
6220 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6221 | SAVE_CFLAGS="$CFLAGS" | |
6222 | CFLAGS="$CFLAGS -belf" | |
b0322a85 | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6224 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6225 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
6226 | $as_echo_n "(cached) " >&6 |
6227 | else | |
6228 | ac_ext=c | |
6229 | ac_cpp='$CPP $CPPFLAGS' | |
6230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6233 | |
b0322a85 | 6234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 6235 | /* end confdefs.h. */ |
d9898ee8 | 6236 | |
8d138742 CE |
6237 | int |
6238 | main () | |
6239 | { | |
d9898ee8 | 6240 | |
8d138742 CE |
6241 | ; |
6242 | return 0; | |
6243 | } | |
6244 | _ACEOF | |
b0322a85 CE |
6245 | if ac_fn_c_try_link "$LINENO"; then : |
6246 | lt_cv_cc_needs_belf=yes | |
6247 | else | |
6248 | lt_cv_cc_needs_belf=no | |
6249 | fi | |
6250 | rm -f core conftest.err conftest.$ac_objext \ | |
6251 | conftest$ac_exeext conftest.$ac_ext | |
6252 | ac_ext=c | |
6253 | ac_cpp='$CPP $CPPFLAGS' | |
6254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6257 | ||
6258 | fi | |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6260 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6261 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6262 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6263 | CFLAGS="$SAVE_CFLAGS" | |
6264 | fi | |
6265 | ;; | |
6266 | *-*solaris*) | |
6267 | # Find out which ABI we are using. | |
6268 | echo 'int i;' > conftest.$ac_ext | |
6269 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6270 | (eval $ac_compile) 2>&5 | |
6271 | ac_status=$? | |
6272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6273 | test $ac_status = 0; }; then | |
6274 | case `/usr/bin/file conftest.o` in | |
6275 | *64-bit*) | |
6276 | case $lt_cv_prog_gnu_ld in | |
6277 | yes*) | |
6278 | case $host in | |
6279 | i?86-*-solaris*) | |
6280 | LD="${LD-ld} -m elf_x86_64" | |
6281 | ;; | |
6282 | sparc*-*-solaris*) | |
6283 | LD="${LD-ld} -m elf64_sparc" | |
6284 | ;; | |
6285 | esac | |
6286 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6287 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6288 | LD="${LD-ld}_sol2" | |
6289 | fi | |
6290 | ;; | |
6291 | *) | |
6292 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6293 | LD="${LD-ld} -64" | |
6294 | fi | |
6295 | ;; | |
6296 | esac | |
6297 | ;; | |
6298 | esac | |
6299 | fi | |
6300 | rm -rf conftest* | |
6301 | ;; | |
6302 | esac | |
6303 | ||
6304 | need_locks="$enable_libtool_lock" | |
6305 | ||
6306 | if test -n "$ac_tool_prefix"; then | |
6307 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6308 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6310 | $as_echo_n "checking for $ac_word... " >&6; } | |
6311 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6312 | $as_echo_n "(cached) " >&6 | |
6313 | else | |
6314 | if test -n "$MANIFEST_TOOL"; then | |
6315 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6316 | else | |
6317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6318 | for as_dir in $PATH | |
6319 | do | |
6320 | IFS=$as_save_IFS | |
6321 | test -z "$as_dir" && as_dir=. | |
6322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6324 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6326 | break 2 | |
6327 | fi | |
6328 | done | |
6329 | done | |
6330 | IFS=$as_save_IFS | |
6331 | ||
6332 | fi | |
6333 | fi | |
6334 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6335 | if test -n "$MANIFEST_TOOL"; then | |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6337 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6338 | else | |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6340 | $as_echo "no" >&6; } | |
6341 | fi | |
6342 | ||
6343 | ||
6344 | fi | |
6345 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6346 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6347 | # Extract the first word of "mt", so it can be a program name with args. | |
6348 | set dummy mt; ac_word=$2 | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6350 | $as_echo_n "checking for $ac_word... " >&6; } | |
6351 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6352 | $as_echo_n "(cached) " >&6 | |
6353 | else | |
6354 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6355 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6356 | else | |
6357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6358 | for as_dir in $PATH | |
6359 | do | |
6360 | IFS=$as_save_IFS | |
6361 | test -z "$as_dir" && as_dir=. | |
6362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6364 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6366 | break 2 | |
6367 | fi | |
6368 | done | |
6369 | done | |
6370 | IFS=$as_save_IFS | |
6371 | ||
6372 | fi | |
6373 | fi | |
6374 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6375 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6377 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6378 | else | |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6380 | $as_echo "no" >&6; } | |
6381 | fi | |
6382 | ||
6383 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6384 | MANIFEST_TOOL=":" | |
6385 | else | |
6386 | case $cross_compiling:$ac_tool_warned in | |
6387 | yes:) | |
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6389 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6390 | ac_tool_warned=yes ;; | |
8d138742 | 6391 | esac |
b0322a85 CE |
6392 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6393 | fi | |
8d138742 | 6394 | else |
b0322a85 CE |
6395 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
6396 | fi | |
d9898ee8 | 6397 | |
b0322a85 CE |
6398 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6400 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6401 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6402 | $as_echo_n "(cached) " >&6 | |
6403 | else | |
6404 | lt_cv_path_mainfest_tool=no | |
6405 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6406 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6407 | cat conftest.err >&5 | |
6408 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6409 | lt_cv_path_mainfest_tool=yes | |
6410 | fi | |
6411 | rm -f conftest* | |
6412 | fi | |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6414 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6415 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6416 | MANIFEST_TOOL=: | |
8d138742 | 6417 | fi |
d9898ee8 | 6418 | |
d9898ee8 | 6419 | |
d9898ee8 | 6420 | |
b0322a85 | 6421 | |
d9898ee8 | 6422 | |
d9898ee8 | 6423 | |
8d138742 CE |
6424 | case $host_os in |
6425 | rhapsody* | darwin*) | |
6426 | if test -n "$ac_tool_prefix"; then | |
6427 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6428 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6430 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6431 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6432 | $as_echo_n "(cached) " >&6 |
6433 | else | |
6434 | if test -n "$DSYMUTIL"; then | |
6435 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6436 | else | |
6437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6438 | for as_dir in $PATH | |
6439 | do | |
6440 | IFS=$as_save_IFS | |
6441 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6442 | for ac_exec_ext in '' $ac_executable_extensions; do |
6443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6444 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6446 | break 2 |
6447 | fi | |
6448 | done | |
b0322a85 | 6449 | done |
8d138742 | 6450 | IFS=$as_save_IFS |
d9898ee8 | 6451 | |
8d138742 CE |
6452 | fi |
6453 | fi | |
6454 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6455 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 CE |
6457 | $as_echo "$DSYMUTIL" >&6; } |
6458 | else | |
b0322a85 | 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6460 | $as_echo "no" >&6; } |
6461 | fi | |
d9898ee8 | 6462 | |
d9898ee8 | 6463 | |
8d138742 CE |
6464 | fi |
6465 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6466 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6467 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6468 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6470 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6471 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6472 | $as_echo_n "(cached) " >&6 |
6473 | else | |
6474 | if test -n "$ac_ct_DSYMUTIL"; then | |
6475 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6476 | else | |
6477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6478 | for as_dir in $PATH | |
6479 | do | |
6480 | IFS=$as_save_IFS | |
6481 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6482 | for ac_exec_ext in '' $ac_executable_extensions; do |
6483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6484 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 6486 | break 2 |
d9898ee8 | 6487 | fi |
6488 | done | |
b0322a85 | 6489 | done |
8d138742 | 6490 | IFS=$as_save_IFS |
d9898ee8 | 6491 | |
6492 | fi | |
d9898ee8 | 6493 | fi |
8d138742 CE |
6494 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6495 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 | 6497 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
d9898ee8 | 6498 | else |
b0322a85 | 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6500 | $as_echo "no" >&6; } |
d9898ee8 | 6501 | fi |
6502 | ||
8d138742 CE |
6503 | if test "x$ac_ct_DSYMUTIL" = x; then |
6504 | DSYMUTIL=":" | |
6505 | else | |
6506 | case $cross_compiling:$ac_tool_warned in | |
6507 | yes:) | |
b0322a85 | 6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6509 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6510 | ac_tool_warned=yes ;; | |
6511 | esac | |
6512 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6513 | fi | |
d9898ee8 | 6514 | else |
8d138742 | 6515 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6516 | fi |
d9898ee8 | 6517 | |
8d138742 CE |
6518 | if test -n "$ac_tool_prefix"; then |
6519 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6520 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6522 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6523 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 CE |
6524 | $as_echo_n "(cached) " >&6 |
6525 | else | |
6526 | if test -n "$NMEDIT"; then | |
6527 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6528 | else | |
6529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6530 | for as_dir in $PATH | |
6531 | do | |
6532 | IFS=$as_save_IFS | |
6533 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6534 | for ac_exec_ext in '' $ac_executable_extensions; do |
6535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6536 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 6538 | break 2 |
d9898ee8 | 6539 | fi |
8d138742 | 6540 | done |
b0322a85 | 6541 | done |
8d138742 | 6542 | IFS=$as_save_IFS |
d9898ee8 | 6543 | |
8d138742 CE |
6544 | fi |
6545 | fi | |
6546 | NMEDIT=$ac_cv_prog_NMEDIT | |
6547 | if test -n "$NMEDIT"; then | |
b0322a85 | 6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 CE |
6549 | $as_echo "$NMEDIT" >&6; } |
6550 | else | |
b0322a85 | 6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6552 | $as_echo "no" >&6; } |
6553 | fi | |
d9898ee8 | 6554 | |
d9898ee8 | 6555 | |
8d138742 CE |
6556 | fi |
6557 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6558 | ac_ct_NMEDIT=$NMEDIT | |
6559 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6560 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6562 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6563 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 CE |
6564 | $as_echo_n "(cached) " >&6 |
6565 | else | |
6566 | if test -n "$ac_ct_NMEDIT"; then | |
6567 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6568 | else | |
6569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6570 | for as_dir in $PATH | |
6571 | do | |
6572 | IFS=$as_save_IFS | |
6573 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6574 | for ac_exec_ext in '' $ac_executable_extensions; do |
6575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6576 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6578 | break 2 |
6579 | fi | |
6580 | done | |
b0322a85 | 6581 | done |
8d138742 | 6582 | IFS=$as_save_IFS |
d9898ee8 | 6583 | |
8d138742 CE |
6584 | fi |
6585 | fi | |
6586 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6587 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 CE |
6589 | $as_echo "$ac_ct_NMEDIT" >&6; } |
6590 | else | |
b0322a85 | 6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6592 | $as_echo "no" >&6; } |
6593 | fi | |
d9898ee8 | 6594 | |
8d138742 CE |
6595 | if test "x$ac_ct_NMEDIT" = x; then |
6596 | NMEDIT=":" | |
6597 | else | |
6598 | case $cross_compiling:$ac_tool_warned in | |
6599 | yes:) | |
b0322a85 | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6601 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6602 | ac_tool_warned=yes ;; | |
6603 | esac | |
6604 | NMEDIT=$ac_ct_NMEDIT | |
6605 | fi | |
6606 | else | |
6607 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6608 | fi | |
d9898ee8 | 6609 | |
8d138742 CE |
6610 | if test -n "$ac_tool_prefix"; then |
6611 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6612 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6614 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6615 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 | 6616 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6617 | else |
8d138742 CE |
6618 | if test -n "$LIPO"; then |
6619 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6620 | else |
6621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6622 | for as_dir in $PATH | |
6623 | do | |
6624 | IFS=$as_save_IFS | |
6625 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6626 | for ac_exec_ext in '' $ac_executable_extensions; do |
6627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6628 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 6629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6630 | break 2 |
6631 | fi | |
6632 | done | |
b0322a85 | 6633 | done |
dd184caf | 6634 | IFS=$as_save_IFS |
d9898ee8 | 6635 | |
6636 | fi | |
6637 | fi | |
8d138742 CE |
6638 | LIPO=$ac_cv_prog_LIPO |
6639 | if test -n "$LIPO"; then | |
b0322a85 | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 | 6641 | $as_echo "$LIPO" >&6; } |
d9898ee8 | 6642 | else |
b0322a85 | 6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6644 | $as_echo "no" >&6; } |
d9898ee8 | 6645 | fi |
6646 | ||
dd184caf | 6647 | |
d9898ee8 | 6648 | fi |
8d138742 CE |
6649 | if test -z "$ac_cv_prog_LIPO"; then |
6650 | ac_ct_LIPO=$LIPO | |
6651 | # Extract the first word of "lipo", so it can be a program name with args. | |
6652 | set dummy lipo; ac_word=$2 | |
b0322a85 | 6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6654 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6655 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 | 6656 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6657 | else |
8d138742 CE |
6658 | if test -n "$ac_ct_LIPO"; then |
6659 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 6660 | else |
6661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6662 | for as_dir in $PATH | |
6663 | do | |
6664 | IFS=$as_save_IFS | |
6665 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6666 | for ac_exec_ext in '' $ac_executable_extensions; do |
6667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6668 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 6669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6670 | break 2 |
6671 | fi | |
6672 | done | |
b0322a85 | 6673 | done |
dd184caf | 6674 | IFS=$as_save_IFS |
d9898ee8 | 6675 | |
d9898ee8 | 6676 | fi |
6677 | fi | |
8d138742 CE |
6678 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6679 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 6681 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 6682 | else |
b0322a85 | 6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6684 | $as_echo "no" >&6; } |
d9898ee8 | 6685 | fi |
6686 | ||
8d138742 CE |
6687 | if test "x$ac_ct_LIPO" = x; then |
6688 | LIPO=":" | |
dd184caf | 6689 | else |
6690 | case $cross_compiling:$ac_tool_warned in | |
6691 | yes:) | |
b0322a85 | 6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6693 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6694 | ac_tool_warned=yes ;; |
6695 | esac | |
8d138742 | 6696 | LIPO=$ac_ct_LIPO |
dd184caf | 6697 | fi |
d9898ee8 | 6698 | else |
8d138742 | 6699 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 6700 | fi |
6701 | ||
8d138742 CE |
6702 | if test -n "$ac_tool_prefix"; then |
6703 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6704 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 6705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6706 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6707 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 6708 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6709 | else |
8d138742 CE |
6710 | if test -n "$OTOOL"; then |
6711 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
d9898ee8 | 6712 | else |
6713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6714 | for as_dir in $PATH | |
6715 | do | |
6716 | IFS=$as_save_IFS | |
6717 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6718 | for ac_exec_ext in '' $ac_executable_extensions; do |
6719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6720 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 6721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6722 | break 2 |
6723 | fi | |
6724 | done | |
b0322a85 | 6725 | done |
dd184caf | 6726 | IFS=$as_save_IFS |
d9898ee8 | 6727 | |
6728 | fi | |
6729 | fi | |
8d138742 CE |
6730 | OTOOL=$ac_cv_prog_OTOOL |
6731 | if test -n "$OTOOL"; then | |
b0322a85 | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 6733 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 6734 | else |
b0322a85 | 6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6736 | $as_echo "no" >&6; } |
d9898ee8 | 6737 | fi |
6738 | ||
dd184caf | 6739 | |
d9898ee8 | 6740 | fi |
8d138742 CE |
6741 | if test -z "$ac_cv_prog_OTOOL"; then |
6742 | ac_ct_OTOOL=$OTOOL | |
6743 | # Extract the first word of "otool", so it can be a program name with args. | |
6744 | set dummy otool; ac_word=$2 | |
b0322a85 | 6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6746 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6747 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 | 6748 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6749 | else |
8d138742 CE |
6750 | if test -n "$ac_ct_OTOOL"; then |
6751 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
d9898ee8 | 6752 | else |
6753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6754 | for as_dir in $PATH | |
6755 | do | |
6756 | IFS=$as_save_IFS | |
6757 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6758 | for ac_exec_ext in '' $ac_executable_extensions; do |
6759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6760 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 6761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6762 | break 2 |
6763 | fi | |
6764 | done | |
b0322a85 | 6765 | done |
dd184caf | 6766 | IFS=$as_save_IFS |
d9898ee8 | 6767 | |
d9898ee8 | 6768 | fi |
6769 | fi | |
8d138742 CE |
6770 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
6771 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 6773 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 6774 | else |
b0322a85 | 6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6776 | $as_echo "no" >&6; } |
d9898ee8 | 6777 | fi |
6778 | ||
8d138742 CE |
6779 | if test "x$ac_ct_OTOOL" = x; then |
6780 | OTOOL=":" | |
dd184caf | 6781 | else |
6782 | case $cross_compiling:$ac_tool_warned in | |
6783 | yes:) | |
b0322a85 | 6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6785 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6786 | ac_tool_warned=yes ;; |
6787 | esac | |
8d138742 | 6788 | OTOOL=$ac_ct_OTOOL |
dd184caf | 6789 | fi |
d9898ee8 | 6790 | else |
8d138742 | 6791 | OTOOL="$ac_cv_prog_OTOOL" |
d9898ee8 | 6792 | fi |
6793 | ||
8d138742 CE |
6794 | if test -n "$ac_tool_prefix"; then |
6795 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6796 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6798 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6799 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 | 6800 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6801 | else |
8d138742 CE |
6802 | if test -n "$OTOOL64"; then |
6803 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
d9898ee8 | 6804 | else |
6805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6806 | for as_dir in $PATH | |
6807 | do | |
6808 | IFS=$as_save_IFS | |
6809 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6810 | for ac_exec_ext in '' $ac_executable_extensions; do |
6811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6812 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 6813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6814 | break 2 |
6815 | fi | |
6816 | done | |
b0322a85 | 6817 | done |
dd184caf | 6818 | IFS=$as_save_IFS |
d9898ee8 | 6819 | |
6820 | fi | |
6821 | fi | |
8d138742 CE |
6822 | OTOOL64=$ac_cv_prog_OTOOL64 |
6823 | if test -n "$OTOOL64"; then | |
b0322a85 | 6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 | 6825 | $as_echo "$OTOOL64" >&6; } |
d9898ee8 | 6826 | else |
b0322a85 | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6828 | $as_echo "no" >&6; } |
d9898ee8 | 6829 | fi |
6830 | ||
dd184caf | 6831 | |
d9898ee8 | 6832 | fi |
8d138742 CE |
6833 | if test -z "$ac_cv_prog_OTOOL64"; then |
6834 | ac_ct_OTOOL64=$OTOOL64 | |
6835 | # Extract the first word of "otool64", so it can be a program name with args. | |
6836 | set dummy otool64; ac_word=$2 | |
b0322a85 | 6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6838 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6839 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 | 6840 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6841 | else |
8d138742 CE |
6842 | if test -n "$ac_ct_OTOOL64"; then |
6843 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
d9898ee8 | 6844 | else |
6845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6846 | for as_dir in $PATH | |
6847 | do | |
6848 | IFS=$as_save_IFS | |
6849 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6850 | for ac_exec_ext in '' $ac_executable_extensions; do |
6851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6852 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 6853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6854 | break 2 |
6855 | fi | |
6856 | done | |
b0322a85 | 6857 | done |
dd184caf | 6858 | IFS=$as_save_IFS |
d9898ee8 | 6859 | |
d9898ee8 | 6860 | fi |
6861 | fi | |
8d138742 CE |
6862 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
6863 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 6865 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 6866 | else |
b0322a85 | 6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6868 | $as_echo "no" >&6; } |
d9898ee8 | 6869 | fi |
6870 | ||
8d138742 CE |
6871 | if test "x$ac_ct_OTOOL64" = x; then |
6872 | OTOOL64=":" | |
dd184caf | 6873 | else |
6874 | case $cross_compiling:$ac_tool_warned in | |
6875 | yes:) | |
b0322a85 | 6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6878 | ac_tool_warned=yes ;; |
6879 | esac | |
8d138742 | 6880 | OTOOL64=$ac_ct_OTOOL64 |
dd184caf | 6881 | fi |
d9898ee8 | 6882 | else |
8d138742 | 6883 | OTOOL64="$ac_cv_prog_OTOOL64" |
d9898ee8 | 6884 | fi |
6885 | ||
6886 | ||
d9898ee8 | 6887 | |
d9898ee8 | 6888 | |
d9898ee8 | 6889 | |
d9898ee8 | 6890 | |
d9898ee8 | 6891 | |
6892 | ||
dd184caf | 6893 | |
d9898ee8 | 6894 | |
6895 | ||
d9898ee8 | 6896 | |
d9898ee8 | 6897 | |
d9898ee8 | 6898 | |
d9898ee8 | 6899 | |
6900 | ||
d9898ee8 | 6901 | |
d9898ee8 | 6902 | |
d9898ee8 | 6903 | |
6904 | ||
d9898ee8 | 6905 | |
d9898ee8 | 6906 | |
6907 | ||
6908 | ||
d9898ee8 | 6909 | |
d9898ee8 | 6910 | |
6911 | ||
b0322a85 | 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 6913 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 6914 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 | 6915 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6916 | else |
8d138742 CE |
6917 | lt_cv_apple_cc_single_mod=no |
6918 | if test -z "${LT_MULTI_MODULE}"; then | |
6919 | # By default we will add the -single_module flag. You can override | |
6920 | # by either setting the environment variable LT_MULTI_MODULE | |
6921 | # non-empty at configure time, or by adding -multi_module to the | |
6922 | # link flags. | |
6923 | rm -rf libconftest.dylib* | |
6924 | echo "int foo(void){return 1;}" > conftest.c | |
6925 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6926 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6927 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6928 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6929 | _lt_result=$? | |
b0322a85 CE |
6930 | # If there is a non-empty error log, and "single_module" |
6931 | # appears in it, assume the flag caused a linker warning | |
6932 | if test -s conftest.err && $GREP single_module conftest.err; then | |
6933 | cat conftest.err >&5 | |
6934 | # Otherwise, if the output was created with a 0 exit code from | |
6935 | # the compiler, it worked. | |
6936 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8d138742 CE |
6937 | lt_cv_apple_cc_single_mod=yes |
6938 | else | |
6939 | cat conftest.err >&5 | |
6940 | fi | |
6941 | rm -rf libconftest.dylib* | |
6942 | rm -f conftest.* | |
6943 | fi | |
d9898ee8 | 6944 | fi |
b0322a85 | 6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 6946 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
6947 | |
6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 6949 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 6950 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
6951 | $as_echo_n "(cached) " >&6 |
6952 | else | |
6953 | lt_cv_ld_exported_symbols_list=no | |
6954 | save_LDFLAGS=$LDFLAGS | |
6955 | echo "_main" > conftest.sym | |
6956 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 6957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 6958 | /* end confdefs.h. */ |
d9898ee8 | 6959 | |
8d138742 CE |
6960 | int |
6961 | main () | |
6962 | { | |
6963 | ||
6964 | ; | |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
b0322a85 | 6968 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 6969 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 6970 | else |
b0322a85 | 6971 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 6972 | fi |
b0322a85 CE |
6973 | rm -f core conftest.err conftest.$ac_objext \ |
6974 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 6975 | LDFLAGS="$save_LDFLAGS" |
d9898ee8 | 6976 | |
8d138742 | 6977 | fi |
b0322a85 | 6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 6979 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
6980 | |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
6982 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
6983 | if ${lt_cv_ld_force_load+:} false; then : | |
6984 | $as_echo_n "(cached) " >&6 | |
6985 | else | |
6986 | lt_cv_ld_force_load=no | |
6987 | cat > conftest.c << _LT_EOF | |
6988 | int forced_loaded() { return 2;} | |
6989 | _LT_EOF | |
6990 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
6991 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
6992 | echo "$AR cru libconftest.a conftest.o" >&5 | |
6993 | $AR cru libconftest.a conftest.o 2>&5 | |
6994 | echo "$RANLIB libconftest.a" >&5 | |
6995 | $RANLIB libconftest.a 2>&5 | |
6996 | cat > conftest.c << _LT_EOF | |
6997 | int main() { return 0;} | |
6998 | _LT_EOF | |
6999 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7000 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7001 | _lt_result=$? | |
7002 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7003 | cat conftest.err >&5 | |
7004 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
7005 | lt_cv_ld_force_load=yes | |
7006 | else | |
7007 | cat conftest.err >&5 | |
7008 | fi | |
7009 | rm -f conftest.err libconftest.a conftest conftest.c | |
7010 | rm -rf conftest.dSYM | |
7011 | ||
7012 | fi | |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7014 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
d9898ee8 | 7015 | case $host_os in |
8d138742 CE |
7016 | rhapsody* | darwin1.[012]) |
7017 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7018 | darwin1.*) | |
7019 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7020 | darwin*) # darwin 5.x on | |
7021 | # if running on 10.5 or later, the deployment target defaults | |
7022 | # to the OS version, if on x86, and 10.4, the deployment | |
7023 | # target defaults to 10.4. Don't you love it? | |
7024 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7025 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7026 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7027 | 10.[012]*) | |
7028 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7029 | 10.*) | |
7030 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7031 | esac | |
7032 | ;; | |
7033 | esac | |
7034 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7035 | _lt_dar_single_mod='$single_module' | |
7036 | fi | |
7037 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7038 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7039 | else | |
7040 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7041 | fi | |
b0322a85 | 7042 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
8d138742 CE |
7043 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7044 | else | |
7045 | _lt_dsymutil= | |
7046 | fi | |
7047 | ;; | |
7048 | esac | |
d9898ee8 | 7049 | |
8d138742 CE |
7050 | ac_ext=c |
7051 | ac_cpp='$CPP $CPPFLAGS' | |
7052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7056 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7057 | # On Suns, sometimes $CPP names a directory. | |
7058 | if test -n "$CPP" && test -d "$CPP"; then | |
7059 | CPP= | |
7060 | fi | |
7061 | if test -z "$CPP"; then | |
b0322a85 | 7062 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 CE |
7063 | $as_echo_n "(cached) " >&6 |
7064 | else | |
7065 | # Double quotes because CPP needs to be expanded | |
7066 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7067 | do | |
7068 | ac_preproc_ok=false | |
7069 | for ac_c_preproc_warn_flag in '' yes | |
7070 | do | |
7071 | # Use a header file that comes with gcc, so configuring glibc | |
7072 | # with a fresh cross-compiler works. | |
7073 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7074 | # <limits.h> exists even on freestanding compilers. | |
7075 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7076 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7078 | /* end confdefs.h. */ |
7079 | #ifdef __STDC__ | |
7080 | # include <limits.h> | |
7081 | #else | |
7082 | # include <assert.h> | |
7083 | #endif | |
7084 | Syntax error | |
7085 | _ACEOF | |
b0322a85 | 7086 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7087 | |
b0322a85 | 7088 | else |
8d138742 CE |
7089 | # Broken: fails on valid input. |
7090 | continue | |
d9898ee8 | 7091 | fi |
b0322a85 | 7092 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7093 | |
8d138742 CE |
7094 | # OK, works on sane cases. Now check whether nonexistent headers |
7095 | # can be detected and how. | |
b0322a85 | 7096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7097 | /* end confdefs.h. */ |
7098 | #include <ac_nonexistent.h> | |
7099 | _ACEOF | |
b0322a85 | 7100 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7101 | # Broken: success on invalid input. |
7102 | continue | |
d9898ee8 | 7103 | else |
8d138742 CE |
7104 | # Passes both tests. |
7105 | ac_preproc_ok=: | |
7106 | break | |
d9898ee8 | 7107 | fi |
b0322a85 | 7108 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7109 | |
8d138742 CE |
7110 | done |
7111 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7112 | rm -f conftest.i conftest.err conftest.$ac_ext |
7113 | if $ac_preproc_ok; then : | |
8d138742 CE |
7114 | break |
7115 | fi | |
d9898ee8 | 7116 | |
8d138742 CE |
7117 | done |
7118 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 7119 | |
8d138742 CE |
7120 | fi |
7121 | CPP=$ac_cv_prog_CPP | |
7122 | else | |
7123 | ac_cv_prog_CPP=$CPP | |
7124 | fi | |
b0322a85 | 7125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7126 | $as_echo "$CPP" >&6; } |
7127 | ac_preproc_ok=false | |
7128 | for ac_c_preproc_warn_flag in '' yes | |
7129 | do | |
7130 | # Use a header file that comes with gcc, so configuring glibc | |
7131 | # with a fresh cross-compiler works. | |
7132 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7133 | # <limits.h> exists even on freestanding compilers. | |
7134 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7135 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7137 | /* end confdefs.h. */ |
7138 | #ifdef __STDC__ | |
7139 | # include <limits.h> | |
7140 | #else | |
7141 | # include <assert.h> | |
7142 | #endif | |
7143 | Syntax error | |
7144 | _ACEOF | |
b0322a85 | 7145 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7146 | |
b0322a85 | 7147 | else |
8d138742 CE |
7148 | # Broken: fails on valid input. |
7149 | continue | |
7150 | fi | |
b0322a85 | 7151 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7152 | |
8d138742 CE |
7153 | # OK, works on sane cases. Now check whether nonexistent headers |
7154 | # can be detected and how. | |
b0322a85 | 7155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7156 | /* end confdefs.h. */ |
7157 | #include <ac_nonexistent.h> | |
7158 | _ACEOF | |
b0322a85 | 7159 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7160 | # Broken: success on invalid input. |
7161 | continue | |
7162 | else | |
8d138742 CE |
7163 | # Passes both tests. |
7164 | ac_preproc_ok=: | |
7165 | break | |
7166 | fi | |
b0322a85 | 7167 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7168 | |
8d138742 CE |
7169 | done |
7170 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7171 | rm -f conftest.i conftest.err conftest.$ac_ext |
7172 | if $ac_preproc_ok; then : | |
7173 | ||
8d138742 | 7174 | else |
b0322a85 | 7175 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7176 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7177 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7178 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7179 | fi |
d9898ee8 | 7180 | |
8d138742 CE |
7181 | ac_ext=c |
7182 | ac_cpp='$CPP $CPPFLAGS' | |
7183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7186 | |
d9898ee8 | 7187 | |
b0322a85 | 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7189 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7190 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7191 | $as_echo_n "(cached) " >&6 |
7192 | else | |
b0322a85 | 7193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7194 | /* end confdefs.h. */ |
7195 | #include <stdlib.h> | |
7196 | #include <stdarg.h> | |
7197 | #include <string.h> | |
7198 | #include <float.h> | |
d9898ee8 | 7199 | |
8d138742 CE |
7200 | int |
7201 | main () | |
7202 | { | |
d9898ee8 | 7203 | |
8d138742 CE |
7204 | ; |
7205 | return 0; | |
7206 | } | |
7207 | _ACEOF | |
b0322a85 | 7208 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7209 | ac_cv_header_stdc=yes |
7210 | else | |
b0322a85 | 7211 | ac_cv_header_stdc=no |
8d138742 | 7212 | fi |
8d138742 | 7213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7214 | |
8d138742 CE |
7215 | if test $ac_cv_header_stdc = yes; then |
7216 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7218 | /* end confdefs.h. */ |
7219 | #include <string.h> | |
d9898ee8 | 7220 | |
8d138742 CE |
7221 | _ACEOF |
7222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7223 | $EGREP "memchr" >/dev/null 2>&1; then : |
7224 | ||
8d138742 CE |
7225 | else |
7226 | ac_cv_header_stdc=no | |
7227 | fi | |
7228 | rm -f conftest* | |
d9898ee8 | 7229 | |
8d138742 | 7230 | fi |
d9898ee8 | 7231 | |
8d138742 CE |
7232 | if test $ac_cv_header_stdc = yes; then |
7233 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7235 | /* end confdefs.h. */ |
7236 | #include <stdlib.h> | |
d9898ee8 | 7237 | |
8d138742 CE |
7238 | _ACEOF |
7239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7240 | $EGREP "free" >/dev/null 2>&1; then : |
7241 | ||
8d138742 CE |
7242 | else |
7243 | ac_cv_header_stdc=no | |
7244 | fi | |
7245 | rm -f conftest* | |
d9898ee8 | 7246 | |
8d138742 | 7247 | fi |
d9898ee8 | 7248 | |
8d138742 CE |
7249 | if test $ac_cv_header_stdc = yes; then |
7250 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7251 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7252 | : |
7253 | else | |
b0322a85 | 7254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7255 | /* end confdefs.h. */ |
7256 | #include <ctype.h> | |
7257 | #include <stdlib.h> | |
7258 | #if ((' ' & 0x0FF) == 0x020) | |
7259 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7260 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7261 | #else | |
7262 | # define ISLOWER(c) \ | |
7263 | (('a' <= (c) && (c) <= 'i') \ | |
7264 | || ('j' <= (c) && (c) <= 'r') \ | |
7265 | || ('s' <= (c) && (c) <= 'z')) | |
7266 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7267 | #endif | |
d9898ee8 | 7268 | |
8d138742 CE |
7269 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7270 | int | |
7271 | main () | |
7272 | { | |
7273 | int i; | |
7274 | for (i = 0; i < 256; i++) | |
7275 | if (XOR (islower (i), ISLOWER (i)) | |
7276 | || toupper (i) != TOUPPER (i)) | |
7277 | return 2; | |
b0322a85 CE |
7278 | return 0; |
7279 | } | |
7280 | _ACEOF | |
7281 | if ac_fn_c_try_run "$LINENO"; then : | |
7282 | ||
8d138742 | 7283 | else |
b0322a85 CE |
7284 | ac_cv_header_stdc=no |
7285 | fi | |
7286 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7287 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7288 | fi | |
d9898ee8 | 7289 | |
8d138742 | 7290 | fi |
b0322a85 CE |
7291 | fi |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7293 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7294 | if test $ac_cv_header_stdc = yes; then | |
7295 | ||
7296 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
ac40fd9e | 7297 | |
8d138742 | 7298 | fi |
b0322a85 CE |
7299 | |
7300 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7301 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7302 | inttypes.h stdint.h unistd.h | |
7303 | do : | |
7304 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7305 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7306 | " | |
7307 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7308 | cat >>confdefs.h <<_ACEOF |
7309 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7310 | _ACEOF | |
d9898ee8 | 7311 | |
8d138742 | 7312 | fi |
d9898ee8 | 7313 | |
8d138742 | 7314 | done |
d9898ee8 | 7315 | |
d9898ee8 | 7316 | |
8d138742 | 7317 | for ac_header in dlfcn.h |
b0322a85 CE |
7318 | do : |
7319 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7320 | " | |
7321 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7322 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7323 | #define HAVE_DLFCN_H 1 |
8d138742 | 7324 | _ACEOF |
d9898ee8 | 7325 | |
8d138742 | 7326 | fi |
d9898ee8 | 7327 | |
8d138742 | 7328 | done |
d9898ee8 | 7329 | |
d9898ee8 | 7330 | |
ac40fd9e | 7331 | |
b0322a85 CE |
7332 | |
7333 | ||
8d138742 | 7334 | # Set options |
d9898ee8 | 7335 | |
d9898ee8 | 7336 | |
d9898ee8 | 7337 | |
8d138742 | 7338 | enable_dlopen=no |
d9898ee8 | 7339 | |
d9898ee8 | 7340 | |
8d138742 | 7341 | enable_win32_dll=no |
d9898ee8 | 7342 | |
d9898ee8 | 7343 | |
8d138742 | 7344 | # Check whether --enable-shared was given. |
b0322a85 | 7345 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7346 | enableval=$enable_shared; p=${PACKAGE-default} |
7347 | case $enableval in | |
7348 | yes) enable_shared=yes ;; | |
7349 | no) enable_shared=no ;; | |
d9898ee8 | 7350 | *) |
8d138742 CE |
7351 | enable_shared=no |
7352 | # Look at the argument we got. We use all the common list separators. | |
7353 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7354 | for pkg in $enableval; do | |
7355 | IFS="$lt_save_ifs" | |
7356 | if test "X$pkg" = "X$p"; then | |
7357 | enable_shared=yes | |
7358 | fi | |
7359 | done | |
7360 | IFS="$lt_save_ifs" | |
7361 | ;; | |
7362 | esac | |
7363 | else | |
7364 | enable_shared=yes | |
7365 | fi | |
d9898ee8 | 7366 | |
d9898ee8 | 7367 | |
d9898ee8 | 7368 | |
d9898ee8 | 7369 | |
d9898ee8 | 7370 | |
d9898ee8 | 7371 | |
d9898ee8 | 7372 | |
d9898ee8 | 7373 | |
d9898ee8 | 7374 | |
8d138742 | 7375 | # Check whether --enable-static was given. |
b0322a85 | 7376 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7377 | enableval=$enable_static; p=${PACKAGE-default} |
7378 | case $enableval in | |
7379 | yes) enable_static=yes ;; | |
7380 | no) enable_static=no ;; | |
7381 | *) | |
7382 | enable_static=no | |
7383 | # Look at the argument we got. We use all the common list separators. | |
7384 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7385 | for pkg in $enableval; do | |
7386 | IFS="$lt_save_ifs" | |
7387 | if test "X$pkg" = "X$p"; then | |
7388 | enable_static=yes | |
7389 | fi | |
7390 | done | |
7391 | IFS="$lt_save_ifs" | |
7392 | ;; | |
7393 | esac | |
7394 | else | |
7395 | enable_static=yes | |
7396 | fi | |
ac40fd9e | 7397 | |
d9898ee8 | 7398 | |
d9898ee8 | 7399 | |
d9898ee8 | 7400 | |
d9898ee8 | 7401 | |
d9898ee8 | 7402 | |
d9898ee8 | 7403 | |
d9898ee8 | 7404 | |
d9898ee8 | 7405 | |
d9898ee8 | 7406 | |
8d138742 | 7407 | # Check whether --with-pic was given. |
b0322a85 CE |
7408 | if test "${with_pic+set}" = set; then : |
7409 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7410 | case $withval in | |
7411 | yes|no) pic_mode=$withval ;; | |
7412 | *) | |
7413 | pic_mode=default | |
7414 | # Look at the argument we got. We use all the common list separators. | |
7415 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7416 | for lt_pkg in $withval; do | |
7417 | IFS="$lt_save_ifs" | |
7418 | if test "X$lt_pkg" = "X$lt_p"; then | |
7419 | pic_mode=yes | |
7420 | fi | |
7421 | done | |
7422 | IFS="$lt_save_ifs" | |
7423 | ;; | |
7424 | esac | |
d9898ee8 | 7425 | else |
8d138742 | 7426 | pic_mode=default |
d9898ee8 | 7427 | fi |
d9898ee8 | 7428 | |
8d138742 CE |
7429 | |
7430 | test -z "$pic_mode" && pic_mode=default | |
d9898ee8 | 7431 | |
7432 | ||
8d138742 CE |
7433 | |
7434 | ||
7435 | ||
7436 | ||
7437 | ||
7438 | # Check whether --enable-fast-install was given. | |
b0322a85 | 7439 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7440 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7441 | case $enableval in | |
7442 | yes) enable_fast_install=yes ;; | |
7443 | no) enable_fast_install=no ;; | |
d9898ee8 | 7444 | *) |
8d138742 CE |
7445 | enable_fast_install=no |
7446 | # Look at the argument we got. We use all the common list separators. | |
7447 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7448 | for pkg in $enableval; do | |
7449 | IFS="$lt_save_ifs" | |
7450 | if test "X$pkg" = "X$p"; then | |
7451 | enable_fast_install=yes | |
7452 | fi | |
7453 | done | |
7454 | IFS="$lt_save_ifs" | |
d9898ee8 | 7455 | ;; |
7456 | esac | |
8d138742 CE |
7457 | else |
7458 | enable_fast_install=yes | |
7459 | fi | |
7460 | ||
7461 | ||
d9898ee8 | 7462 | |
d9898ee8 | 7463 | |
d9898ee8 | 7464 | |
d9898ee8 | 7465 | |
d9898ee8 | 7466 | |
d9898ee8 | 7467 | |
d9898ee8 | 7468 | |
d9898ee8 | 7469 | |
d9898ee8 | 7470 | |
8d138742 CE |
7471 | # This can be used to rebuild libtool when needed |
7472 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7473 | |
8d138742 CE |
7474 | # Always use our own libtool. |
7475 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7476 | |
d9898ee8 | 7477 | |
d9898ee8 | 7478 | |
d9898ee8 | 7479 | |
d9898ee8 | 7480 | |
d9898ee8 | 7481 | |
d9898ee8 | 7482 | |
d9898ee8 | 7483 | |
d9898ee8 | 7484 | |
d9898ee8 | 7485 | |
d9898ee8 | 7486 | |
d9898ee8 | 7487 | |
d9898ee8 | 7488 | |
d9898ee8 | 7489 | |
d9898ee8 | 7490 | |
d9898ee8 | 7491 | |
d9898ee8 | 7492 | |
d9898ee8 | 7493 | |
d9898ee8 | 7494 | |
b0322a85 CE |
7495 | |
7496 | ||
7497 | ||
7498 | ||
7499 | ||
d9898ee8 | 7500 | |
d9898ee8 | 7501 | |
d9898ee8 | 7502 | |
d9898ee8 | 7503 | |
d9898ee8 | 7504 | |
d9898ee8 | 7505 | |
8d138742 | 7506 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7507 | |
d9898ee8 | 7508 | |
d9898ee8 | 7509 | |
d9898ee8 | 7510 | |
d9898ee8 | 7511 | |
d9898ee8 | 7512 | |
d9898ee8 | 7513 | |
d9898ee8 | 7514 | |
d9898ee8 | 7515 | |
d9898ee8 | 7516 | |
d9898ee8 | 7517 | |
d9898ee8 | 7518 | |
d9898ee8 | 7519 | |
d9898ee8 | 7520 | |
8d138742 CE |
7521 | if test -n "${ZSH_VERSION+set}" ; then |
7522 | setopt NO_GLOB_SUBST | |
7523 | fi | |
d9898ee8 | 7524 | |
b0322a85 | 7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7526 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7527 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
7528 | $as_echo_n "(cached) " >&6 |
7529 | else | |
7530 | rm -f .libs 2>/dev/null | |
7531 | mkdir .libs 2>/dev/null | |
7532 | if test -d .libs; then | |
7533 | lt_cv_objdir=.libs | |
7534 | else | |
7535 | # MS-DOS does not allow filenames that begin with a dot. | |
7536 | lt_cv_objdir=_libs | |
7537 | fi | |
7538 | rmdir .libs 2>/dev/null | |
7539 | fi | |
b0322a85 | 7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7541 | $as_echo "$lt_cv_objdir" >&6; } |
7542 | objdir=$lt_cv_objdir | |
d9898ee8 | 7543 | |
d9898ee8 | 7544 | |
d9898ee8 | 7545 | |
d9898ee8 | 7546 | |
d9898ee8 | 7547 | |
8d138742 CE |
7548 | cat >>confdefs.h <<_ACEOF |
7549 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7550 | _ACEOF | |
d9898ee8 | 7551 | |
d9898ee8 | 7552 | |
d9898ee8 | 7553 | |
d9898ee8 | 7554 | |
8d138742 CE |
7555 | case $host_os in |
7556 | aix3*) | |
7557 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7558 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7559 | # vanish in a puff of smoke. | |
7560 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7561 | COLLECT_NAMES= | |
7562 | export COLLECT_NAMES | |
7563 | fi | |
7564 | ;; | |
7565 | esac | |
d9898ee8 | 7566 | |
8d138742 CE |
7567 | # Global variables: |
7568 | ofile=libtool | |
7569 | can_build_shared=yes | |
d9898ee8 | 7570 | |
8d138742 CE |
7571 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7572 | # which needs '.lib'). | |
7573 | libext=a | |
d9898ee8 | 7574 | |
8d138742 | 7575 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 7576 | |
8d138742 CE |
7577 | old_CC="$CC" |
7578 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 7579 | |
8d138742 CE |
7580 | # Set sane defaults for various variables |
7581 | test -z "$CC" && CC=cc | |
7582 | test -z "$LTCC" && LTCC=$CC | |
7583 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7584 | test -z "$LD" && LD=ld | |
7585 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 7586 | |
8d138742 CE |
7587 | for cc_temp in $compiler""; do |
7588 | case $cc_temp in | |
7589 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7590 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7591 | \-*) ;; | |
7592 | *) break;; | |
7593 | esac | |
7594 | done | |
b0322a85 | 7595 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d9898ee8 | 7596 | |
d9898ee8 | 7597 | |
8d138742 CE |
7598 | # Only perform the check for file, if the check method requires it |
7599 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7600 | case $deplibs_check_method in | |
7601 | file_magic*) | |
7602 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 7604 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 7605 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
7606 | $as_echo_n "(cached) " >&6 |
7607 | else | |
7608 | case $MAGIC_CMD in | |
7609 | [\\/*] | ?:[\\/]*) | |
7610 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7611 | ;; | |
7612 | *) | |
7613 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7614 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7615 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7616 | for ac_dir in $ac_dummy; do | |
7617 | IFS="$lt_save_ifs" | |
7618 | test -z "$ac_dir" && ac_dir=. | |
7619 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7620 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7621 | if test -n "$file_magic_test_file"; then | |
7622 | case $deplibs_check_method in | |
7623 | "file_magic "*) | |
7624 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7625 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7626 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7627 | $EGREP "$file_magic_regex" > /dev/null; then | |
7628 | : | |
7629 | else | |
7630 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7631 | |
8d138742 CE |
7632 | *** Warning: the command libtool uses to detect shared libraries, |
7633 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7634 | *** The result is that libtool may fail to recognize shared libraries | |
7635 | *** as such. This will affect the creation of libtool libraries that | |
7636 | *** depend on shared libraries, but programs linked with such libtool | |
7637 | *** libraries will work regardless of this problem. Nevertheless, you | |
7638 | *** may want to report the problem to your system manager and/or to | |
7639 | *** bug-libtool@gnu.org | |
d9898ee8 | 7640 | |
8d138742 CE |
7641 | _LT_EOF |
7642 | fi ;; | |
7643 | esac | |
7644 | fi | |
7645 | break | |
7646 | fi | |
7647 | done | |
7648 | IFS="$lt_save_ifs" | |
7649 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7650 | ;; | |
7651 | esac | |
7652 | fi | |
d9898ee8 | 7653 | |
8d138742 CE |
7654 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7655 | if test -n "$MAGIC_CMD"; then | |
b0322a85 | 7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
7657 | $as_echo "$MAGIC_CMD" >&6; } |
7658 | else | |
b0322a85 | 7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7660 | $as_echo "no" >&6; } |
7661 | fi | |
d9898ee8 | 7662 | |
d9898ee8 | 7663 | |
d9898ee8 | 7664 | |
d9898ee8 | 7665 | |
d9898ee8 | 7666 | |
8d138742 CE |
7667 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7668 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 7670 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 7671 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
7672 | $as_echo_n "(cached) " >&6 |
7673 | else | |
7674 | case $MAGIC_CMD in | |
7675 | [\\/*] | ?:[\\/]*) | |
7676 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7677 | ;; | |
7678 | *) | |
7679 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7680 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7681 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7682 | for ac_dir in $ac_dummy; do | |
7683 | IFS="$lt_save_ifs" | |
7684 | test -z "$ac_dir" && ac_dir=. | |
7685 | if test -f $ac_dir/file; then | |
7686 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7687 | if test -n "$file_magic_test_file"; then | |
7688 | case $deplibs_check_method in | |
7689 | "file_magic "*) | |
7690 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7691 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7692 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7693 | $EGREP "$file_magic_regex" > /dev/null; then | |
7694 | : | |
7695 | else | |
7696 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7697 | |
8d138742 CE |
7698 | *** Warning: the command libtool uses to detect shared libraries, |
7699 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7700 | *** The result is that libtool may fail to recognize shared libraries | |
7701 | *** as such. This will affect the creation of libtool libraries that | |
7702 | *** depend on shared libraries, but programs linked with such libtool | |
7703 | *** libraries will work regardless of this problem. Nevertheless, you | |
7704 | *** may want to report the problem to your system manager and/or to | |
7705 | *** bug-libtool@gnu.org | |
d9898ee8 | 7706 | |
8d138742 CE |
7707 | _LT_EOF |
7708 | fi ;; | |
7709 | esac | |
7710 | fi | |
7711 | break | |
7712 | fi | |
7713 | done | |
7714 | IFS="$lt_save_ifs" | |
7715 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7716 | ;; | |
7717 | esac | |
7718 | fi | |
d9898ee8 | 7719 | |
8d138742 CE |
7720 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7721 | if test -n "$MAGIC_CMD"; then | |
b0322a85 | 7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
7723 | $as_echo "$MAGIC_CMD" >&6; } |
7724 | else | |
b0322a85 | 7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7726 | $as_echo "no" >&6; } |
7727 | fi | |
d9898ee8 | 7728 | |
7729 | ||
8d138742 CE |
7730 | else |
7731 | MAGIC_CMD=: | |
d9898ee8 | 7732 | fi |
7733 | fi | |
7734 | ||
8d138742 CE |
7735 | fi |
7736 | ;; | |
7737 | esac | |
7738 | ||
7739 | # Use C for the default configuration in the libtool script | |
d9898ee8 | 7740 | |
8d138742 | 7741 | lt_save_CC="$CC" |
d9898ee8 | 7742 | ac_ext=c |
7743 | ac_cpp='$CPP $CPPFLAGS' | |
7744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7747 | ||
d9898ee8 | 7748 | |
8d138742 CE |
7749 | # Source file extension for C test sources. |
7750 | ac_ext=c | |
d9898ee8 | 7751 | |
8d138742 | 7752 | # Object file extension for compiled C test sources. |
d9898ee8 | 7753 | objext=o |
8d138742 | 7754 | objext=$objext |
d9898ee8 | 7755 | |
7756 | # Code to be used in simple compile tests | |
8d138742 | 7757 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 | 7758 | |
7759 | # Code to be used in simple link tests | |
8d138742 CE |
7760 | lt_simple_link_test_code='int main(){return(0);}' |
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | ||
d9898ee8 | 7766 | |
d9898ee8 | 7767 | |
7768 | # If no C compiler was specified, use CC. | |
7769 | LTCC=${LTCC-"$CC"} | |
7770 | ||
7771 | # If no C compiler flags were specified, use CFLAGS. | |
7772 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7773 | ||
7774 | # Allow CC to be a program name with arguments. | |
7775 | compiler=$CC | |
7776 | ||
8d138742 CE |
7777 | # Save the default compiler, since it gets overwritten when the other |
7778 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7779 | compiler_DEFAULT=$CC | |
d9898ee8 | 7780 | |
7781 | # save warnings/boilerplate of simple test code | |
7782 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 7783 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 | 7784 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7785 | _lt_compiler_boilerplate=`cat conftest.err` | |
8d138742 | 7786 | $RM conftest* |
d9898ee8 | 7787 | |
7788 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 7789 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 | 7790 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7791 | _lt_linker_boilerplate=`cat conftest.err` | |
8d138742 | 7792 | $RM -r conftest* |
d9898ee8 | 7793 | |
7794 | ||
8d138742 | 7795 | if test -n "$compiler"; then |
d9898ee8 | 7796 | |
8d138742 | 7797 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 7798 | |
7799 | if test "$GCC" = yes; then | |
b0322a85 CE |
7800 | case $cc_basename in |
7801 | nvcc*) | |
7802 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7803 | *) | |
7804 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7805 | esac | |
d9898ee8 | 7806 | |
b0322a85 | 7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 7808 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 7809 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 | 7810 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7811 | else |
7812 | lt_cv_prog_compiler_rtti_exceptions=no | |
8d138742 | 7813 | ac_outfile=conftest.$ac_objext |
ac40fd9e | 7814 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 7815 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7816 | # Insert the option either (1) after the last *FLAGS variable, or | |
7817 | # (2) before a word containing "conftest.", or (3) at the end. | |
7818 | # Note that $ac_compile itself does not contain backslashes and begins | |
7819 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7820 | # The option is referenced via a variable to avoid confusing sed. | |
7821 | lt_compile=`echo "$ac_compile" | $SED \ | |
7822 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7823 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7824 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 7825 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d9898ee8 | 7826 | (eval "$lt_compile" 2>conftest.err) |
7827 | ac_status=$? | |
7828 | cat conftest.err >&5 | |
b0322a85 | 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 7830 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7831 | # The compiler can only warn and ignore the option if not recognized | |
7832 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 7833 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d9898ee8 | 7834 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7835 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7836 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7837 | fi | |
7838 | fi | |
8d138742 | 7839 | $RM conftest* |
d9898ee8 | 7840 | |
7841 | fi | |
b0322a85 | 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 7843 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 7844 | |
7845 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8d138742 | 7846 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
d9898ee8 | 7847 | else |
7848 | : | |
7849 | fi | |
7850 | ||
7851 | fi | |
7852 | ||
d9898ee8 | 7853 | |
8d138742 CE |
7854 | |
7855 | ||
7856 | ||
7857 | ||
7858 | lt_prog_compiler_wl= | |
7859 | lt_prog_compiler_pic= | |
7860 | lt_prog_compiler_static= | |
7861 | ||
d9898ee8 | 7862 | |
7863 | if test "$GCC" = yes; then | |
8d138742 CE |
7864 | lt_prog_compiler_wl='-Wl,' |
7865 | lt_prog_compiler_static='-static' | |
d9898ee8 | 7866 | |
7867 | case $host_os in | |
7868 | aix*) | |
7869 | # All AIX code is PIC. | |
7870 | if test "$host_cpu" = ia64; then | |
7871 | # AIX 5 now supports IA64 processor | |
8d138742 | 7872 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 7873 | fi |
7874 | ;; | |
7875 | ||
7876 | amigaos*) | |
8d138742 CE |
7877 | case $host_cpu in |
7878 | powerpc) | |
7879 | # see comment about AmigaOS4 .so support | |
7880 | lt_prog_compiler_pic='-fPIC' | |
7881 | ;; | |
7882 | m68k) | |
7883 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7884 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7885 | # like `-m68040'. | |
7886 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7887 | ;; | |
7888 | esac | |
d9898ee8 | 7889 | ;; |
7890 | ||
ac40fd9e | 7891 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 | 7892 | # PIC is the default for these OSes. |
7893 | ;; | |
7894 | ||
8d138742 | 7895 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d9898ee8 | 7896 | # This hack is so that the source file can tell whether it is being |
7897 | # built for inclusion in a dll (and should export symbols for example). | |
ac40fd9e | 7898 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7899 | # (--disable-auto-import) libraries | |
8d138742 | 7900 | lt_prog_compiler_pic='-DDLL_EXPORT' |
d9898ee8 | 7901 | ;; |
7902 | ||
7903 | darwin* | rhapsody*) | |
7904 | # PIC is the default on this platform | |
7905 | # Common symbols not allowed in MH_DYLIB files | |
8d138742 CE |
7906 | lt_prog_compiler_pic='-fno-common' |
7907 | ;; | |
7908 | ||
b0322a85 CE |
7909 | haiku*) |
7910 | # PIC is the default for Haiku. | |
7911 | # The "-static" flag exists, but is broken. | |
7912 | lt_prog_compiler_static= | |
7913 | ;; | |
7914 | ||
8d138742 CE |
7915 | hpux*) |
7916 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7917 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7918 | # sets the default TLS model and affects inlining. | |
7919 | case $host_cpu in | |
7920 | hppa*64*) | |
7921 | # +Z the default | |
7922 | ;; | |
7923 | *) | |
7924 | lt_prog_compiler_pic='-fPIC' | |
7925 | ;; | |
7926 | esac | |
d9898ee8 | 7927 | ;; |
7928 | ||
ac40fd9e | 7929 | interix[3-9]*) |
d9898ee8 | 7930 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7931 | # Instead, we relocate shared libraries at runtime. | |
7932 | ;; | |
7933 | ||
7934 | msdosdjgpp*) | |
7935 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7936 | # on systems that don't support them. | |
8d138742 | 7937 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 7938 | enable_shared=no |
7939 | ;; | |
7940 | ||
8d138742 CE |
7941 | *nto* | *qnx*) |
7942 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7943 | # it will coredump. | |
7944 | lt_prog_compiler_pic='-fPIC -shared' | |
7945 | ;; | |
7946 | ||
d9898ee8 | 7947 | sysv4*MP*) |
7948 | if test -d /usr/nec; then | |
8d138742 | 7949 | lt_prog_compiler_pic=-Kconform_pic |
d9898ee8 | 7950 | fi |
7951 | ;; | |
7952 | ||
d9898ee8 | 7953 | *) |
8d138742 | 7954 | lt_prog_compiler_pic='-fPIC' |
d9898ee8 | 7955 | ;; |
7956 | esac | |
b0322a85 CE |
7957 | |
7958 | case $cc_basename in | |
7959 | nvcc*) # Cuda Compiler Driver 2.2 | |
7960 | lt_prog_compiler_wl='-Xlinker ' | |
7961 | if test -n "$lt_prog_compiler_pic"; then | |
7962 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
7963 | fi | |
7964 | ;; | |
7965 | esac | |
d9898ee8 | 7966 | else |
7967 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7968 | case $host_os in | |
7969 | aix*) | |
8d138742 | 7970 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7971 | if test "$host_cpu" = ia64; then |
7972 | # AIX 5 now supports IA64 processor | |
8d138742 | 7973 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 7974 | else |
8d138742 | 7975 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 7976 | fi |
7977 | ;; | |
d9898ee8 | 7978 | |
8d138742 | 7979 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d9898ee8 | 7980 | # This hack is so that the source file can tell whether it is being |
7981 | # built for inclusion in a dll (and should export symbols for example). | |
8d138742 | 7982 | lt_prog_compiler_pic='-DDLL_EXPORT' |
d9898ee8 | 7983 | ;; |
7984 | ||
7985 | hpux9* | hpux10* | hpux11*) | |
8d138742 | 7986 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7987 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7988 | # not for PA HP-UX. | |
7989 | case $host_cpu in | |
7990 | hppa*64*|ia64*) | |
7991 | # +Z the default | |
7992 | ;; | |
7993 | *) | |
8d138742 | 7994 | lt_prog_compiler_pic='+Z' |
d9898ee8 | 7995 | ;; |
7996 | esac | |
7997 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8d138742 | 7998 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
d9898ee8 | 7999 | ;; |
8000 | ||
8001 | irix5* | irix6* | nonstopux*) | |
8d138742 | 8002 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8003 | # PIC (with -KPIC) is the default. |
8d138742 | 8004 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 8005 | ;; |
8006 | ||
b0322a85 | 8007 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d9898ee8 | 8008 | case $cc_basename in |
8d138742 CE |
8009 | # old Intel for x86_64 which still supported -KPIC. |
8010 | ecc*) | |
8011 | lt_prog_compiler_wl='-Wl,' | |
8012 | lt_prog_compiler_pic='-KPIC' | |
8013 | lt_prog_compiler_static='-static' | |
8014 | ;; | |
8015 | # icc used to be incompatible with GCC. | |
8016 | # ICC 10 doesn't accept -KPIC any more. | |
8017 | icc* | ifort*) | |
8018 | lt_prog_compiler_wl='-Wl,' | |
8019 | lt_prog_compiler_pic='-fPIC' | |
8020 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8021 | ;; |
8d138742 CE |
8022 | # Lahey Fortran 8.1. |
8023 | lf95*) | |
8024 | lt_prog_compiler_wl='-Wl,' | |
8025 | lt_prog_compiler_pic='--shared' | |
8026 | lt_prog_compiler_static='--static' | |
8027 | ;; | |
b0322a85 CE |
8028 | nagfor*) |
8029 | # NAG Fortran compiler | |
8030 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8031 | lt_prog_compiler_pic='-PIC' | |
8032 | lt_prog_compiler_static='-Bstatic' | |
8033 | ;; | |
8034 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
d9898ee8 | 8035 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8036 | # which looks to be a dead project) | |
8d138742 CE |
8037 | lt_prog_compiler_wl='-Wl,' |
8038 | lt_prog_compiler_pic='-fpic' | |
8039 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8040 | ;; |
8041 | ccc*) | |
8d138742 | 8042 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8043 | # All Alpha code is PIC. |
8d138742 | 8044 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 8045 | ;; |
b0322a85 CE |
8046 | xl* | bgxl* | bgf* | mpixl*) |
8047 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8048 | lt_prog_compiler_wl='-Wl,' |
8049 | lt_prog_compiler_pic='-qpic' | |
8050 | lt_prog_compiler_static='-qstaticlink' | |
8051 | ;; | |
ac40fd9e | 8052 | *) |
8d138742 | 8053 | case `$CC -V 2>&1 | sed 5q` in |
b0322a85 CE |
8054 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8055 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8056 | lt_prog_compiler_pic='-KPIC' | |
8057 | lt_prog_compiler_static='-Bstatic' | |
8058 | lt_prog_compiler_wl='' | |
8059 | ;; | |
8060 | *Sun\ F* | *Sun*Fortran*) | |
8061 | lt_prog_compiler_pic='-KPIC' | |
8062 | lt_prog_compiler_static='-Bstatic' | |
8063 | lt_prog_compiler_wl='-Qoption ld ' | |
8064 | ;; | |
ac40fd9e | 8065 | *Sun\ C*) |
8066 | # Sun C 5.9 | |
8d138742 CE |
8067 | lt_prog_compiler_pic='-KPIC' |
8068 | lt_prog_compiler_static='-Bstatic' | |
8069 | lt_prog_compiler_wl='-Wl,' | |
ac40fd9e | 8070 | ;; |
b0322a85 CE |
8071 | *Intel*\ [CF]*Compiler*) |
8072 | lt_prog_compiler_wl='-Wl,' | |
8073 | lt_prog_compiler_pic='-fPIC' | |
8074 | lt_prog_compiler_static='-static' | |
8075 | ;; | |
8076 | *Portland\ Group*) | |
8077 | lt_prog_compiler_wl='-Wl,' | |
8078 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8079 | lt_prog_compiler_static='-Bstatic' |
ac40fd9e | 8080 | ;; |
8081 | esac | |
8082 | ;; | |
d9898ee8 | 8083 | esac |
8084 | ;; | |
8085 | ||
8d138742 CE |
8086 | newsos6) |
8087 | lt_prog_compiler_pic='-KPIC' | |
8088 | lt_prog_compiler_static='-Bstatic' | |
8089 | ;; | |
8090 | ||
8091 | *nto* | *qnx*) | |
8092 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8093 | # it will coredump. | |
8094 | lt_prog_compiler_pic='-fPIC -shared' | |
8095 | ;; | |
8096 | ||
d9898ee8 | 8097 | osf3* | osf4* | osf5*) |
8d138742 | 8098 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8099 | # All OSF/1 code is PIC. |
8d138742 | 8100 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 8101 | ;; |
8102 | ||
ac40fd9e | 8103 | rdos*) |
8d138742 | 8104 | lt_prog_compiler_static='-non_shared' |
ac40fd9e | 8105 | ;; |
8106 | ||
d9898ee8 | 8107 | solaris*) |
8d138742 CE |
8108 | lt_prog_compiler_pic='-KPIC' |
8109 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8110 | case $cc_basename in |
b0322a85 | 8111 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 | 8112 | lt_prog_compiler_wl='-Qoption ld ';; |
d9898ee8 | 8113 | *) |
8d138742 | 8114 | lt_prog_compiler_wl='-Wl,';; |
d9898ee8 | 8115 | esac |
8116 | ;; | |
8117 | ||
8118 | sunos4*) | |
8d138742 CE |
8119 | lt_prog_compiler_wl='-Qoption ld ' |
8120 | lt_prog_compiler_pic='-PIC' | |
8121 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8122 | ;; |
8123 | ||
8124 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8d138742 CE |
8125 | lt_prog_compiler_wl='-Wl,' |
8126 | lt_prog_compiler_pic='-KPIC' | |
8127 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8128 | ;; |
8129 | ||
8130 | sysv4*MP*) | |
8131 | if test -d /usr/nec ;then | |
8d138742 CE |
8132 | lt_prog_compiler_pic='-Kconform_pic' |
8133 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8134 | fi |
8135 | ;; | |
8136 | ||
8137 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8d138742 CE |
8138 | lt_prog_compiler_wl='-Wl,' |
8139 | lt_prog_compiler_pic='-KPIC' | |
8140 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8141 | ;; |
8142 | ||
8143 | unicos*) | |
8d138742 CE |
8144 | lt_prog_compiler_wl='-Wl,' |
8145 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8146 | ;; |
8147 | ||
8148 | uts4*) | |
8d138742 CE |
8149 | lt_prog_compiler_pic='-pic' |
8150 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8151 | ;; |
8152 | ||
8153 | *) | |
8d138742 | 8154 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 8155 | ;; |
8156 | esac | |
8157 | fi | |
8158 | ||
8d138742 CE |
8159 | case $host_os in |
8160 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8161 | *djgpp*) | |
8162 | lt_prog_compiler_pic= | |
8163 | ;; | |
8164 | *) | |
8165 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8166 | ;; | |
8167 | esac | |
8d138742 | 8168 | |
b0322a85 CE |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8170 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8171 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8172 | $as_echo_n "(cached) " >&6 | |
8173 | else | |
8174 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8175 | fi | |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8177 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8178 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8179 | |
8180 | # | |
8181 | # Check to make sure the PIC flag actually works. | |
8182 | # | |
8d138742 | 8183 | if test -n "$lt_prog_compiler_pic"; then |
b0322a85 | 8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8185 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8186 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 | 8187 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8188 | else |
8d138742 CE |
8189 | lt_cv_prog_compiler_pic_works=no |
8190 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 8191 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8d138742 | 8192 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
d9898ee8 | 8193 | # Insert the option either (1) after the last *FLAGS variable, or |
8194 | # (2) before a word containing "conftest.", or (3) at the end. | |
8195 | # Note that $ac_compile itself does not contain backslashes and begins | |
8196 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8197 | # The option is referenced via a variable to avoid confusing sed. | |
8198 | lt_compile=`echo "$ac_compile" | $SED \ | |
8199 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8200 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8201 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8202 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d9898ee8 | 8203 | (eval "$lt_compile" 2>conftest.err) |
8204 | ac_status=$? | |
8205 | cat conftest.err >&5 | |
b0322a85 | 8206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 8207 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8208 | # The compiler can only warn and ignore the option if not recognized | |
8209 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8210 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d9898ee8 | 8211 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8212 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 8213 | lt_cv_prog_compiler_pic_works=yes |
d9898ee8 | 8214 | fi |
8215 | fi | |
8d138742 | 8216 | $RM conftest* |
d9898ee8 | 8217 | |
8218 | fi | |
b0322a85 | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8220 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8221 | |
8d138742 CE |
8222 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8223 | case $lt_prog_compiler_pic in | |
d9898ee8 | 8224 | "" | " "*) ;; |
8d138742 | 8225 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
d9898ee8 | 8226 | esac |
8227 | else | |
8d138742 CE |
8228 | lt_prog_compiler_pic= |
8229 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8230 | fi |
8231 | ||
8232 | fi | |
8d138742 CE |
8233 | |
8234 | ||
8235 | ||
8236 | ||
8237 | ||
d9898ee8 | 8238 | |
b0322a85 CE |
8239 | |
8240 | ||
8241 | ||
8242 | ||
8243 | ||
d9898ee8 | 8244 | # |
8245 | # Check to make sure the static flag actually works. | |
8246 | # | |
8d138742 | 8247 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
b0322a85 | 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8249 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8250 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 | 8251 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8252 | else |
8d138742 | 8253 | lt_cv_prog_compiler_static_works=no |
d9898ee8 | 8254 | save_LDFLAGS="$LDFLAGS" |
8255 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
ac40fd9e | 8256 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 | 8257 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8258 | # The linker can only warn and ignore the option if not recognized | |
8259 | # So say no if there are warnings | |
8260 | if test -s conftest.err; then | |
8261 | # Append any errors to the config.log. | |
8262 | cat conftest.err 1>&5 | |
b0322a85 | 8263 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
d9898ee8 | 8264 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8265 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 8266 | lt_cv_prog_compiler_static_works=yes |
d9898ee8 | 8267 | fi |
8268 | else | |
8d138742 | 8269 | lt_cv_prog_compiler_static_works=yes |
d9898ee8 | 8270 | fi |
8271 | fi | |
8d138742 | 8272 | $RM -r conftest* |
d9898ee8 | 8273 | LDFLAGS="$save_LDFLAGS" |
8274 | ||
8d138742 | 8275 | fi |
b0322a85 | 8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 CE |
8277 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8278 | ||
8279 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8280 | : | |
8281 | else | |
8282 | lt_prog_compiler_static= | |
8283 | fi | |
8284 | ||
8285 | ||
8286 | ||
8287 | ||
8288 | ||
8289 | ||
8290 | ||
b0322a85 | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8292 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8293 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8294 | $as_echo_n "(cached) " >&6 |
8295 | else | |
8296 | lt_cv_prog_compiler_c_o=no | |
8297 | $RM -r conftest 2>/dev/null | |
8298 | mkdir conftest | |
8299 | cd conftest | |
8300 | mkdir out | |
8301 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8302 | ||
8303 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8304 | # Insert the option either (1) after the last *FLAGS variable, or | |
8305 | # (2) before a word containing "conftest.", or (3) at the end. | |
8306 | # Note that $ac_compile itself does not contain backslashes and begins | |
8307 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8308 | lt_compile=`echo "$ac_compile" | $SED \ | |
8309 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8310 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8311 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8312 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8313 | (eval "$lt_compile" 2>out/conftest.err) |
8314 | ac_status=$? | |
8315 | cat out/conftest.err >&5 | |
b0322a85 | 8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8317 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8318 | then | |
8319 | # The compiler can only warn and ignore the option if not recognized | |
8320 | # So say no if there are warnings | |
b0322a85 | 8321 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8322 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8323 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8324 | lt_cv_prog_compiler_c_o=yes | |
8325 | fi | |
8326 | fi | |
8327 | chmod u+w . 2>&5 | |
8328 | $RM conftest* | |
8329 | # SGI C++ compiler will create directory out/ii_files/ for | |
8330 | # template instantiation | |
8331 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8332 | $RM out/* && rmdir out | |
8333 | cd .. | |
8334 | $RM -r conftest | |
8335 | $RM conftest* | |
8336 | ||
8337 | fi | |
b0322a85 | 8338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 CE |
8339 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8340 | ||
8341 | ||
8342 | ||
d9898ee8 | 8343 | |
d9898ee8 | 8344 | |
8345 | ||
b0322a85 | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8347 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8348 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 8349 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8350 | else |
8d138742 CE |
8351 | lt_cv_prog_compiler_c_o=no |
8352 | $RM -r conftest 2>/dev/null | |
d9898ee8 | 8353 | mkdir conftest |
8354 | cd conftest | |
8355 | mkdir out | |
ac40fd9e | 8356 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 8357 | |
8358 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8359 | # Insert the option either (1) after the last *FLAGS variable, or | |
8360 | # (2) before a word containing "conftest.", or (3) at the end. | |
8361 | # Note that $ac_compile itself does not contain backslashes and begins | |
8362 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8363 | lt_compile=`echo "$ac_compile" | $SED \ | |
8364 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8365 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8366 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8367 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d9898ee8 | 8368 | (eval "$lt_compile" 2>out/conftest.err) |
8369 | ac_status=$? | |
8370 | cat out/conftest.err >&5 | |
b0322a85 | 8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 8372 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8373 | then | |
8374 | # The compiler can only warn and ignore the option if not recognized | |
8375 | # So say no if there are warnings | |
b0322a85 | 8376 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
d9898ee8 | 8377 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8378 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8d138742 | 8379 | lt_cv_prog_compiler_c_o=yes |
d9898ee8 | 8380 | fi |
8381 | fi | |
8382 | chmod u+w . 2>&5 | |
8d138742 | 8383 | $RM conftest* |
d9898ee8 | 8384 | # SGI C++ compiler will create directory out/ii_files/ for |
8385 | # template instantiation | |
8d138742 CE |
8386 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8387 | $RM out/* && rmdir out | |
d9898ee8 | 8388 | cd .. |
8d138742 CE |
8389 | $RM -r conftest |
8390 | $RM conftest* | |
d9898ee8 | 8391 | |
8392 | fi | |
b0322a85 | 8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 CE |
8394 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8395 | ||
8396 | ||
d9898ee8 | 8397 | |
8398 | ||
8399 | hard_links="nottested" | |
8d138742 | 8400 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
d9898ee8 | 8401 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 | 8403 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
d9898ee8 | 8404 | hard_links=yes |
8d138742 | 8405 | $RM conftest* |
d9898ee8 | 8406 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8407 | touch conftest.a | |
8408 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8409 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 8411 | $as_echo "$hard_links" >&6; } |
d9898ee8 | 8412 | if test "$hard_links" = no; then |
b0322a85 | 8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8d138742 | 8414 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
d9898ee8 | 8415 | need_locks=warn |
8416 | fi | |
8417 | else | |
8418 | need_locks=no | |
8419 | fi | |
8420 | ||
8d138742 CE |
8421 | |
8422 | ||
8423 | ||
8424 | ||
8425 | ||
b0322a85 | 8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8427 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8428 | |
8429 | runpath_var= | |
8d138742 CE |
8430 | allow_undefined_flag= |
8431 | always_export_symbols=no | |
8432 | archive_cmds= | |
8433 | archive_expsym_cmds= | |
8434 | compiler_needs_object=no | |
8435 | enable_shared_with_static_runtimes=no | |
8436 | export_dynamic_flag_spec= | |
8437 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8438 | hardcode_automatic=no | |
8439 | hardcode_direct=no | |
8440 | hardcode_direct_absolute=no | |
8441 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8442 | hardcode_libdir_separator= |
8443 | hardcode_minus_L=no | |
8444 | hardcode_shlibpath_var=unsupported | |
8445 | inherit_rpath=no | |
8446 | link_all_deplibs=unknown | |
8447 | module_cmds= | |
8448 | module_expsym_cmds= | |
8449 | old_archive_from_new_cmds= | |
8450 | old_archive_from_expsyms_cmds= | |
8451 | thread_safe_flag_spec= | |
8452 | whole_archive_flag_spec= | |
d9898ee8 | 8453 | # include_expsyms should be a list of space-separated symbols to be *always* |
8454 | # included in the symbol list | |
8d138742 | 8455 | include_expsyms= |
d9898ee8 | 8456 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8457 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8458 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8459 | # as well as any symbol that contains `d'. | |
8d138742 | 8460 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d9898ee8 | 8461 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8462 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8463 | # the symbol is explicitly referenced. Since portable code cannot | |
8464 | # rely on this symbol name, it's probably fine to never include it in | |
8465 | # preloaded symbol tables. | |
8d138742 | 8466 | # Exclude shared library initialization/finalization symbols. |
d9898ee8 | 8467 | extract_expsyms_cmds= |
d9898ee8 | 8468 | |
8469 | case $host_os in | |
8d138742 | 8470 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 8471 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8472 | # When not using gcc, we currently assume that we are using | |
8473 | # Microsoft Visual C++. | |
8474 | if test "$GCC" != yes; then | |
8475 | with_gnu_ld=no | |
8476 | fi | |
8477 | ;; | |
8478 | interix*) | |
8479 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8480 | with_gnu_ld=yes | |
8481 | ;; | |
8482 | openbsd*) | |
8483 | with_gnu_ld=no | |
8484 | ;; | |
8485 | esac | |
8486 | ||
8d138742 | 8487 | ld_shlibs=yes |
b0322a85 CE |
8488 | |
8489 | # On some targets, GNU ld is compatible enough with the native linker | |
8490 | # that we're better off using the native interface for both. | |
8491 | lt_use_gnu_ld_interface=no | |
d9898ee8 | 8492 | if test "$with_gnu_ld" = yes; then |
b0322a85 CE |
8493 | case $host_os in |
8494 | aix*) | |
8495 | # The AIX port of GNU ld has always aspired to compatibility | |
8496 | # with the native linker. However, as the warning in the GNU ld | |
8497 | # block says, versions before 2.19.5* couldn't really create working | |
8498 | # shared libraries, regardless of the interface used. | |
8499 | case `$LD -v 2>&1` in | |
8500 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8501 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8502 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8503 | *) | |
8504 | lt_use_gnu_ld_interface=yes | |
8505 | ;; | |
8506 | esac | |
8507 | ;; | |
8508 | *) | |
8509 | lt_use_gnu_ld_interface=yes | |
8510 | ;; | |
8511 | esac | |
8512 | fi | |
8513 | ||
8514 | if test "$lt_use_gnu_ld_interface" = yes; then | |
d9898ee8 | 8515 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8516 | wlarc='${wl}' | |
8517 | ||
8518 | # Set some defaults for GNU ld with shared library support. These | |
8519 | # are reset later if shared libraries are not supported. Putting them | |
8520 | # here allows them to be overridden if necessary. | |
8521 | runpath_var=LD_RUN_PATH | |
8d138742 CE |
8522 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8523 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
d9898ee8 | 8524 | # ancient GNU ld didn't support --whole-archive et. al. |
8d138742 CE |
8525 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
8526 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8527 | else | |
8528 | whole_archive_flag_spec= | |
d9898ee8 | 8529 | fi |
8530 | supports_anon_versioning=no | |
8d138742 | 8531 | case `$LD -v 2>&1` in |
b0322a85 | 8532 | *GNU\ gold*) supports_anon_versioning=yes ;; |
d9898ee8 | 8533 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8534 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8535 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8536 | *\ 2.11.*) ;; # other 2.11 versions | |
8537 | *) supports_anon_versioning=yes ;; | |
8538 | esac | |
8539 | ||
8540 | # See if GNU ld supports shared libraries. | |
8541 | case $host_os in | |
8d138742 | 8542 | aix[3-9]*) |
d9898ee8 | 8543 | # On AIX/PPC, the GNU linker is very broken |
8544 | if test "$host_cpu" != ia64; then | |
8d138742 CE |
8545 | ld_shlibs=no |
8546 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8547 | |
b0322a85 | 8548 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
d9898ee8 | 8549 | *** to be unable to reliably create shared libraries on AIX. |
8550 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
8551 | *** really care for shared libraries, you may want to install binutils |
8552 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8553 | *** You will then need to restart the configuration process. | |
d9898ee8 | 8554 | |
8d138742 | 8555 | _LT_EOF |
d9898ee8 | 8556 | fi |
8557 | ;; | |
8558 | ||
8559 | amigaos*) | |
8d138742 CE |
8560 | case $host_cpu in |
8561 | powerpc) | |
8562 | # see comment about AmigaOS4 .so support | |
8563 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8564 | archive_expsym_cmds='' | |
8565 | ;; | |
8566 | m68k) | |
8567 | 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)' | |
8568 | hardcode_libdir_flag_spec='-L$libdir' | |
8569 | hardcode_minus_L=yes | |
8570 | ;; | |
8571 | esac | |
d9898ee8 | 8572 | ;; |
8573 | ||
8574 | beos*) | |
8d138742 CE |
8575 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8576 | allow_undefined_flag=unsupported | |
d9898ee8 | 8577 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8578 | # support --undefined. This deserves some investigation. FIXME | |
8d138742 | 8579 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 | 8580 | else |
8d138742 | 8581 | ld_shlibs=no |
d9898ee8 | 8582 | fi |
8583 | ;; | |
8584 | ||
8d138742 CE |
8585 | cygwin* | mingw* | pw32* | cegcc*) |
8586 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
d9898ee8 | 8587 | # as there is no search path for DLLs. |
8d138742 | 8588 | hardcode_libdir_flag_spec='-L$libdir' |
b0322a85 | 8589 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
8d138742 CE |
8590 | allow_undefined_flag=unsupported |
8591 | always_export_symbols=no | |
8592 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
8593 | 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' |
8594 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8d138742 CE |
8595 | |
8596 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8597 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
d9898ee8 | 8598 | # If the export-symbols file already is a .def file (1st line |
8599 | # is EXPORTS), use it as is; otherwise, prepend... | |
8d138742 | 8600 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
d9898ee8 | 8601 | cp $export_symbols $output_objdir/$soname.def; |
8602 | else | |
8603 | echo EXPORTS > $output_objdir/$soname.def; | |
8604 | cat $export_symbols >> $output_objdir/$soname.def; | |
8605 | fi~ | |
8606 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8607 | else | |
8d138742 | 8608 | ld_shlibs=no |
d9898ee8 | 8609 | fi |
8610 | ;; | |
8611 | ||
b0322a85 CE |
8612 | haiku*) |
8613 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8614 | link_all_deplibs=yes | |
8615 | ;; | |
8616 | ||
ac40fd9e | 8617 | interix[3-9]*) |
8d138742 CE |
8618 | hardcode_direct=no |
8619 | hardcode_shlibpath_var=no | |
8620 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8621 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8622 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8623 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8624 | # default) and relocated if they conflict, which is a slow very memory | |
8625 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8626 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8627 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8d138742 CE |
8628 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8629 | 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' | |
d9898ee8 | 8630 | ;; |
8631 | ||
b0322a85 | 8632 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
8633 | tmp_diet=no |
8634 | if test "$host_os" = linux-dietlibc; then | |
8635 | case $cc_basename in | |
8636 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8637 | esac | |
8638 | fi | |
8639 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8640 | && test "$tmp_diet" = no | |
8641 | then | |
b0322a85 | 8642 | tmp_addflag=' $pic_flag' |
8d138742 | 8643 | tmp_sharedflag='-shared' |
d9898ee8 | 8644 | case $cc_basename,$host_cpu in |
8d138742 | 8645 | pgcc*) # Portland Group C compiler |
b0322a85 | 8646 | 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' |
d9898ee8 | 8647 | tmp_addflag=' $pic_flag' |
8648 | ;; | |
b0322a85 CE |
8649 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8650 | # Portland Group f77 and f90 compilers | |
8651 | 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' | |
d9898ee8 | 8652 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8d138742 | 8653 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
d9898ee8 | 8654 | tmp_addflag=' -i_dynamic' ;; |
8655 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8656 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8657 | ifc* | ifort*) # Intel Fortran compiler | |
8658 | tmp_addflag=' -nofor_main' ;; | |
8d138742 CE |
8659 | lf95*) # Lahey Fortran 8.1 |
8660 | whole_archive_flag_spec= | |
8661 | tmp_sharedflag='--shared' ;; | |
b0322a85 | 8662 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
8663 | tmp_sharedflag='-qmkshrobj' |
8664 | tmp_addflag= ;; | |
b0322a85 CE |
8665 | nvcc*) # Cuda Compiler Driver 2.2 |
8666 | 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' | |
8667 | compiler_needs_object=yes | |
8668 | ;; | |
d9898ee8 | 8669 | esac |
ac40fd9e | 8670 | case `$CC -V 2>&1 | sed 5q` in |
8671 | *Sun\ C*) # Sun C 5.9 | |
b0322a85 | 8672 | 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 | 8673 | compiler_needs_object=yes |
ac40fd9e | 8674 | tmp_sharedflag='-G' ;; |
8675 | *Sun\ F*) # Sun Fortran 8.3 | |
8676 | tmp_sharedflag='-G' ;; | |
ac40fd9e | 8677 | esac |
8d138742 | 8678 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 | 8679 | |
8d138742 CE |
8680 | if test "x$supports_anon_versioning" = xyes; then |
8681 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8682 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8683 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8684 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8685 | fi | |
8686 | ||
8687 | case $cc_basename in | |
b0322a85 | 8688 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
8689 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8690 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
b0322a85 CE |
8691 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8692 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
8d138742 CE |
8693 | if test "x$supports_anon_versioning" = xyes; then |
8694 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8695 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8696 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
b0322a85 | 8697 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
8d138742 CE |
8698 | fi |
8699 | ;; | |
8700 | esac | |
d9898ee8 | 8701 | else |
8d138742 | 8702 | ld_shlibs=no |
d9898ee8 | 8703 | fi |
8704 | ;; | |
8705 | ||
8706 | netbsd*) | |
8d138742 CE |
8707 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8708 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
d9898ee8 | 8709 | wlarc= |
8710 | else | |
b0322a85 CE |
8711 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8712 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8713 | fi |
8714 | ;; | |
8715 | ||
8716 | solaris*) | |
8d138742 CE |
8717 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
8718 | ld_shlibs=no | |
8719 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8720 | |
8721 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8722 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8723 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8724 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8725 | *** your PATH or compiler configuration so that the native linker is | |
8726 | *** used, and then restart. | |
8727 | ||
8d138742 CE |
8728 | _LT_EOF |
8729 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b0322a85 CE |
8730 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8731 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8732 | else |
8d138742 | 8733 | ld_shlibs=no |
d9898ee8 | 8734 | fi |
8735 | ;; | |
8736 | ||
8737 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8738 | case `$LD -v 2>&1` in | |
8739 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8d138742 | 8740 | ld_shlibs=no |
d9898ee8 | 8741 | cat <<_LT_EOF 1>&2 |
8742 | ||
8743 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8744 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8745 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8746 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8747 | *** your PATH or compiler configuration so that the native linker is | |
8748 | *** used, and then restart. | |
8749 | ||
8750 | _LT_EOF | |
8751 | ;; | |
8752 | *) | |
8d138742 CE |
8753 | # For security reasons, it is highly recommended that you always |
8754 | # use absolute paths for naming shared libraries, and exclude the | |
8755 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8756 | # requires that you compile everything twice, which is a pain. | |
8757 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8758 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8759 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8760 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8761 | else |
8d138742 | 8762 | ld_shlibs=no |
d9898ee8 | 8763 | fi |
8764 | ;; | |
8765 | esac | |
8766 | ;; | |
8767 | ||
8768 | sunos4*) | |
8d138742 | 8769 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 8770 | wlarc= |
8d138742 CE |
8771 | hardcode_direct=yes |
8772 | hardcode_shlibpath_var=no | |
d9898ee8 | 8773 | ;; |
8774 | ||
8775 | *) | |
8d138742 | 8776 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
b0322a85 CE |
8777 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8778 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8779 | else |
8d138742 | 8780 | ld_shlibs=no |
d9898ee8 | 8781 | fi |
8782 | ;; | |
8783 | esac | |
8784 | ||
8d138742 | 8785 | if test "$ld_shlibs" = no; then |
d9898ee8 | 8786 | runpath_var= |
8d138742 CE |
8787 | hardcode_libdir_flag_spec= |
8788 | export_dynamic_flag_spec= | |
8789 | whole_archive_flag_spec= | |
d9898ee8 | 8790 | fi |
8791 | else | |
8792 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8793 | case $host_os in | |
8794 | aix3*) | |
8d138742 CE |
8795 | allow_undefined_flag=unsupported |
8796 | always_export_symbols=yes | |
8797 | 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' | |
d9898ee8 | 8798 | # Note: this linker hardcodes the directories in LIBPATH if there |
8799 | # are no directories specified by -L. | |
8d138742 | 8800 | hardcode_minus_L=yes |
d9898ee8 | 8801 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8802 | # Neither direct hardcoding nor static linking is supported with a | |
8803 | # broken collect2. | |
8d138742 | 8804 | hardcode_direct=unsupported |
d9898ee8 | 8805 | fi |
8806 | ;; | |
8807 | ||
8d138742 | 8808 | aix[4-9]*) |
d9898ee8 | 8809 | if test "$host_cpu" = ia64; then |
8810 | # On IA64, the linker does run time linking by default, so we don't | |
8811 | # have to do anything special. | |
8812 | aix_use_runtimelinking=no | |
8813 | exp_sym_flag='-Bexport' | |
8814 | no_entry_flag="" | |
8815 | else | |
8816 | # If we're using GNU nm, then we don't want the "-C" option. | |
8817 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
b0322a85 CE |
8818 | # Also, AIX nm treats weak defined symbols like other global |
8819 | # defined symbols, whereas GNU nm marks them as "W". | |
8d138742 | 8820 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
b0322a85 | 8821 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
d9898ee8 | 8822 | else |
8d138742 | 8823 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
d9898ee8 | 8824 | fi |
8825 | aix_use_runtimelinking=no | |
8826 | ||
8827 | # Test if we are trying to use run time linking or normal | |
8828 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8829 | # need to do runtime linking. | |
8d138742 | 8830 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d9898ee8 | 8831 | for ld_flag in $LDFLAGS; do |
8d138742 CE |
8832 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8833 | aix_use_runtimelinking=yes | |
8834 | break | |
8835 | fi | |
d9898ee8 | 8836 | done |
8837 | ;; | |
8838 | esac | |
8839 | ||
8840 | exp_sym_flag='-bexport' | |
8841 | no_entry_flag='-bnoentry' | |
8842 | fi | |
8843 | ||
8844 | # When large executables or shared objects are built, AIX ld can | |
8845 | # have problems creating the table of contents. If linking a library | |
8846 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8847 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8848 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8849 | ||
8d138742 CE |
8850 | archive_cmds='' |
8851 | hardcode_direct=yes | |
8852 | hardcode_direct_absolute=yes | |
8853 | hardcode_libdir_separator=':' | |
8854 | link_all_deplibs=yes | |
8855 | file_list_spec='${wl}-f,' | |
d9898ee8 | 8856 | |
8857 | if test "$GCC" = yes; then | |
8858 | case $host_os in aix4.[012]|aix4.[012].*) | |
8859 | # We only want to do this on AIX 4.2 and lower, the check | |
8860 | # below for broken collect2 doesn't work under 4.3+ | |
8861 | collect2name=`${CC} -print-prog-name=collect2` | |
8d138742 CE |
8862 | if test -f "$collect2name" && |
8863 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
d9898ee8 | 8864 | then |
8d138742 CE |
8865 | # We have reworked collect2 |
8866 | : | |
d9898ee8 | 8867 | else |
8d138742 CE |
8868 | # We have old collect2 |
8869 | hardcode_direct=unsupported | |
8870 | # It fails to find uninstalled libraries when the uninstalled | |
8871 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8872 | # to unsupported forces relinking | |
8873 | hardcode_minus_L=yes | |
8874 | hardcode_libdir_flag_spec='-L$libdir' | |
8875 | hardcode_libdir_separator= | |
d9898ee8 | 8876 | fi |
8877 | ;; | |
8878 | esac | |
8879 | shared_flag='-shared' | |
8880 | if test "$aix_use_runtimelinking" = yes; then | |
8881 | shared_flag="$shared_flag "'${wl}-G' | |
8882 | fi | |
8883 | else | |
8884 | # not using gcc | |
8885 | if test "$host_cpu" = ia64; then | |
8d138742 CE |
8886 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8887 | # chokes on -Wl,-G. The following line is correct: | |
d9898ee8 | 8888 | shared_flag='-G' |
8889 | else | |
8890 | if test "$aix_use_runtimelinking" = yes; then | |
8891 | shared_flag='${wl}-G' | |
8892 | else | |
8893 | shared_flag='${wl}-bM:SRE' | |
8894 | fi | |
8895 | fi | |
8896 | fi | |
8897 | ||
8d138742 | 8898 | export_dynamic_flag_spec='${wl}-bexpall' |
d9898ee8 | 8899 | # It seems that -bexpall does not export symbols beginning with |
8900 | # underscore (_), so it is better to generate a list of symbols to export. | |
8d138742 | 8901 | always_export_symbols=yes |
d9898ee8 | 8902 | if test "$aix_use_runtimelinking" = yes; then |
8903 | # Warning - without using the other runtime loading flags (-brtl), | |
8904 | # -berok will link without error, but may produce a broken library. | |
8d138742 CE |
8905 | allow_undefined_flag='-berok' |
8906 | # Determine the default libpath from the value encoded in an | |
8907 | # empty executable. | |
b0322a85 CE |
8908 | if test "${lt_cv_aix_libpath+set}" = set; then |
8909 | aix_libpath=$lt_cv_aix_libpath | |
8910 | else | |
8911 | if ${lt_cv_aix_libpath_+:} false; then : | |
8912 | $as_echo_n "(cached) " >&6 | |
8913 | else | |
8914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 8915 | /* end confdefs.h. */ |
8916 | ||
8917 | int | |
8918 | main () | |
8919 | { | |
8920 | ||
8921 | ; | |
8922 | return 0; | |
8923 | } | |
8924 | _ACEOF | |
b0322a85 | 8925 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 8926 | |
b0322a85 CE |
8927 | lt_aix_libpath_sed=' |
8928 | /Import File Strings/,/^$/ { | |
8929 | /^0/ { | |
8930 | s/^0 *\([^ ]*\) *$/\1/ | |
8931 | p | |
8932 | } | |
8933 | }' | |
8934 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8935 | # Check for a 64-bit object if we didn't find anything. | |
8936 | if test -z "$lt_cv_aix_libpath_"; then | |
8937 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8938 | fi | |
8939 | fi | |
8940 | rm -f core conftest.err conftest.$ac_objext \ | |
8941 | conftest$ac_exeext conftest.$ac_ext | |
8942 | if test -z "$lt_cv_aix_libpath_"; then | |
8943 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
8944 | fi | |
dd184caf | 8945 | |
d9898ee8 | 8946 | fi |
dd184caf | 8947 | |
b0322a85 CE |
8948 | aix_libpath=$lt_cv_aix_libpath_ |
8949 | fi | |
d9898ee8 | 8950 | |
8d138742 | 8951 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
b0322a85 | 8952 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
8d138742 | 8953 | else |
d9898ee8 | 8954 | if test "$host_cpu" = ia64; then |
8d138742 CE |
8955 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8956 | allow_undefined_flag="-z nodefs" | |
8957 | 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" | |
d9898ee8 | 8958 | else |
8d138742 CE |
8959 | # Determine the default libpath from the value encoded in an |
8960 | # empty executable. | |
b0322a85 CE |
8961 | if test "${lt_cv_aix_libpath+set}" = set; then |
8962 | aix_libpath=$lt_cv_aix_libpath | |
8963 | else | |
8964 | if ${lt_cv_aix_libpath_+:} false; then : | |
8965 | $as_echo_n "(cached) " >&6 | |
8966 | else | |
8967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 8968 | /* end confdefs.h. */ |
8969 | ||
8970 | int | |
8971 | main () | |
8972 | { | |
8973 | ||
8974 | ; | |
8975 | return 0; | |
8976 | } | |
8977 | _ACEOF | |
b0322a85 | 8978 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 8979 | |
b0322a85 CE |
8980 | lt_aix_libpath_sed=' |
8981 | /Import File Strings/,/^$/ { | |
8982 | /^0/ { | |
8983 | s/^0 *\([^ ]*\) *$/\1/ | |
8984 | p | |
8985 | } | |
8986 | }' | |
8987 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8988 | # Check for a 64-bit object if we didn't find anything. | |
8989 | if test -z "$lt_cv_aix_libpath_"; then | |
8990 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8991 | fi | |
8992 | fi | |
8993 | rm -f core conftest.err conftest.$ac_objext \ | |
8994 | conftest$ac_exeext conftest.$ac_ext | |
8995 | if test -z "$lt_cv_aix_libpath_"; then | |
8996 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
8997 | fi | |
dd184caf | 8998 | |
d9898ee8 | 8999 | fi |
dd184caf | 9000 | |
b0322a85 CE |
9001 | aix_libpath=$lt_cv_aix_libpath_ |
9002 | fi | |
d9898ee8 | 9003 | |
8d138742 | 9004 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
d9898ee8 | 9005 | # Warning - without using the other run time loading flags, |
9006 | # -berok will link without error, but may produce a broken library. | |
8d138742 CE |
9007 | no_undefined_flag=' ${wl}-bernotok' |
9008 | allow_undefined_flag=' ${wl}-berok' | |
b0322a85 CE |
9009 | if test "$with_gnu_ld" = yes; then |
9010 | # We only use this code for GNU lds that support --whole-archive. | |
9011 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9012 | else | |
9013 | # Exported symbols can be pulled into shared objects from archives | |
9014 | whole_archive_flag_spec='$convenience' | |
9015 | fi | |
8d138742 | 9016 | archive_cmds_need_lc=yes |
d9898ee8 | 9017 | # This is similar to how AIX traditionally builds its shared libraries. |
8d138742 | 9018 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
d9898ee8 | 9019 | fi |
9020 | fi | |
9021 | ;; | |
9022 | ||
9023 | amigaos*) | |
8d138742 CE |
9024 | case $host_cpu in |
9025 | powerpc) | |
9026 | # see comment about AmigaOS4 .so support | |
9027 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9028 | archive_expsym_cmds='' | |
9029 | ;; | |
9030 | m68k) | |
9031 | 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)' | |
9032 | hardcode_libdir_flag_spec='-L$libdir' | |
9033 | hardcode_minus_L=yes | |
9034 | ;; | |
9035 | esac | |
d9898ee8 | 9036 | ;; |
9037 | ||
9038 | bsdi[45]*) | |
8d138742 | 9039 | export_dynamic_flag_spec=-rdynamic |
d9898ee8 | 9040 | ;; |
9041 | ||
8d138742 | 9042 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9043 | # When not using gcc, we currently assume that we are using |
9044 | # Microsoft Visual C++. | |
9045 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9046 | # no search path for DLLs. | |
b0322a85 CE |
9047 | case $cc_basename in |
9048 | cl*) | |
9049 | # Native MSVC | |
9050 | hardcode_libdir_flag_spec=' ' | |
9051 | allow_undefined_flag=unsupported | |
9052 | always_export_symbols=yes | |
9053 | file_list_spec='@' | |
9054 | # Tell ltmain to make .lib files, not .a files. | |
9055 | libext=lib | |
9056 | # Tell ltmain to make .dll files, not .so files. | |
9057 | shrext_cmds=".dll" | |
9058 | # FIXME: Setting linknames here is a bad hack. | |
9059 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9060 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9061 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9062 | else | |
9063 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9064 | fi~ | |
9065 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9066 | linknames=' | |
9067 | # The linker will not automatically build a static lib if we build a DLL. | |
9068 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9069 | enable_shared_with_static_runtimes=yes | |
9070 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9071 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9072 | # Don't use ranlib | |
9073 | old_postinstall_cmds='chmod 644 $oldlib' | |
9074 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9075 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9076 | case $lt_outputfile in | |
9077 | *.exe|*.EXE) ;; | |
9078 | *) | |
9079 | lt_outputfile="$lt_outputfile.exe" | |
9080 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9081 | ;; | |
9082 | esac~ | |
9083 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9084 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9085 | $RM "$lt_outputfile.manifest"; | |
9086 | fi' | |
9087 | ;; | |
9088 | *) | |
9089 | # Assume MSVC wrapper | |
9090 | hardcode_libdir_flag_spec=' ' | |
9091 | allow_undefined_flag=unsupported | |
9092 | # Tell ltmain to make .lib files, not .a files. | |
9093 | libext=lib | |
9094 | # Tell ltmain to make .dll files, not .so files. | |
9095 | shrext_cmds=".dll" | |
9096 | # FIXME: Setting linknames here is a bad hack. | |
9097 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9098 | # The linker will automatically build a .lib file if we build a DLL. | |
9099 | old_archive_from_new_cmds='true' | |
9100 | # FIXME: Should let the user specify the lib program. | |
9101 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9102 | enable_shared_with_static_runtimes=yes | |
9103 | ;; | |
9104 | esac | |
d9898ee8 | 9105 | ;; |
9106 | ||
9107 | darwin* | rhapsody*) | |
8d138742 CE |
9108 | |
9109 | ||
9110 | archive_cmds_need_lc=no | |
9111 | hardcode_direct=no | |
9112 | hardcode_automatic=yes | |
9113 | hardcode_shlibpath_var=unsupported | |
b0322a85 CE |
9114 | if test "$lt_cv_ld_force_load" = "yes"; then |
9115 | 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\"`' | |
9116 | ||
9117 | else | |
9118 | whole_archive_flag_spec='' | |
9119 | fi | |
8d138742 CE |
9120 | link_all_deplibs=yes |
9121 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9122 | case $cc_basename in | |
9123 | ifort*) _lt_dar_can_shared=yes ;; | |
9124 | *) _lt_dar_can_shared=$GCC ;; | |
9125 | esac | |
9126 | if test "$_lt_dar_can_shared" = "yes"; then | |
b0322a85 | 9127 | output_verbose_link_cmd=func_echo_all |
8d138742 CE |
9128 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9129 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9130 | 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}" | |
9131 | 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}" | |
9132 | ||
9133 | else | |
9134 | ld_shlibs=no | |
9135 | fi | |
9136 | ||
d9898ee8 | 9137 | ;; |
9138 | ||
9139 | dgux*) | |
8d138742 CE |
9140 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9141 | hardcode_libdir_flag_spec='-L$libdir' | |
9142 | hardcode_shlibpath_var=no | |
d9898ee8 | 9143 | ;; |
9144 | ||
d9898ee8 | 9145 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9146 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9147 | # does not break anything, and helps significantly (at the cost of a little | |
9148 | # extra space). | |
9149 | freebsd2.2*) | |
8d138742 CE |
9150 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9151 | hardcode_libdir_flag_spec='-R$libdir' | |
9152 | hardcode_direct=yes | |
9153 | hardcode_shlibpath_var=no | |
d9898ee8 | 9154 | ;; |
9155 | ||
9156 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
b0322a85 | 9157 | freebsd2.*) |
8d138742 CE |
9158 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9159 | hardcode_direct=yes | |
9160 | hardcode_minus_L=yes | |
9161 | hardcode_shlibpath_var=no | |
d9898ee8 | 9162 | ;; |
9163 | ||
9164 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
ac40fd9e | 9165 | freebsd* | dragonfly*) |
b0322a85 | 9166 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9167 | hardcode_libdir_flag_spec='-R$libdir' |
9168 | hardcode_direct=yes | |
9169 | hardcode_shlibpath_var=no | |
d9898ee8 | 9170 | ;; |
9171 | ||
9172 | hpux9*) | |
9173 | if test "$GCC" = yes; then | |
b0322a85 | 9174 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
d9898ee8 | 9175 | else |
8d138742 | 9176 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
d9898ee8 | 9177 | fi |
8d138742 CE |
9178 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9179 | hardcode_libdir_separator=: | |
9180 | hardcode_direct=yes | |
d9898ee8 | 9181 | |
9182 | # hardcode_minus_L: Not really in the search PATH, | |
9183 | # but as the default location of the library. | |
8d138742 CE |
9184 | hardcode_minus_L=yes |
9185 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 9186 | ;; |
9187 | ||
9188 | hpux10*) | |
b0322a85 CE |
9189 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9190 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9191 | else |
8d138742 | 9192 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 9193 | fi |
9194 | if test "$with_gnu_ld" = no; then | |
8d138742 | 9195 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8d138742 CE |
9196 | hardcode_libdir_separator=: |
9197 | hardcode_direct=yes | |
9198 | hardcode_direct_absolute=yes | |
9199 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 9200 | # hardcode_minus_L: Not really in the search PATH, |
9201 | # but as the default location of the library. | |
8d138742 | 9202 | hardcode_minus_L=yes |
d9898ee8 | 9203 | fi |
9204 | ;; | |
9205 | ||
b0322a85 CE |
9206 | hpux11*) |
9207 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9208 | case $host_cpu in | |
9209 | hppa*64*) | |
9210 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9211 | ;; | |
9212 | ia64*) | |
9213 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9214 | ;; | |
9215 | *) | |
9216 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9217 | ;; | |
9218 | esac | |
9219 | else | |
9220 | case $host_cpu in | |
9221 | hppa*64*) | |
9222 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9223 | ;; | |
9224 | ia64*) | |
9225 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9226 | ;; | |
9227 | *) | |
9228 | ||
9229 | # Older versions of the 11.00 compiler do not understand -b yet | |
9230 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9232 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9233 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9234 | $as_echo_n "(cached) " >&6 | |
9235 | else | |
9236 | lt_cv_prog_compiler__b=no | |
9237 | save_LDFLAGS="$LDFLAGS" | |
9238 | LDFLAGS="$LDFLAGS -b" | |
9239 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9240 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9241 | # The linker can only warn and ignore the option if not recognized | |
9242 | # So say no if there are warnings | |
9243 | if test -s conftest.err; then | |
9244 | # Append any errors to the config.log. | |
9245 | cat conftest.err 1>&5 | |
9246 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9247 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9248 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9249 | lt_cv_prog_compiler__b=yes | |
9250 | fi | |
9251 | else | |
9252 | lt_cv_prog_compiler__b=yes | |
9253 | fi | |
9254 | fi | |
9255 | $RM -r conftest* | |
9256 | LDFLAGS="$save_LDFLAGS" | |
9257 | ||
9258 | fi | |
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9260 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9261 | ||
9262 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9263 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9264 | else | |
9265 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9266 | fi | |
9267 | ||
d9898ee8 | 9268 | ;; |
9269 | esac | |
9270 | fi | |
9271 | if test "$with_gnu_ld" = no; then | |
8d138742 CE |
9272 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9273 | hardcode_libdir_separator=: | |
d9898ee8 | 9274 | |
9275 | case $host_cpu in | |
9276 | hppa*64*|ia64*) | |
8d138742 CE |
9277 | hardcode_direct=no |
9278 | hardcode_shlibpath_var=no | |
d9898ee8 | 9279 | ;; |
9280 | *) | |
8d138742 CE |
9281 | hardcode_direct=yes |
9282 | hardcode_direct_absolute=yes | |
9283 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 9284 | |
9285 | # hardcode_minus_L: Not really in the search PATH, | |
9286 | # but as the default location of the library. | |
8d138742 | 9287 | hardcode_minus_L=yes |
d9898ee8 | 9288 | ;; |
9289 | esac | |
9290 | fi | |
9291 | ;; | |
9292 | ||
9293 | irix5* | irix6* | nonstopux*) | |
9294 | if test "$GCC" = yes; then | |
b0322a85 | 9295 | 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 |
9296 | # Try to use the -exported_symbol ld option, if it does not |
9297 | # work, assume that -exports_file does not work either and | |
9298 | # implicitly export all symbols. | |
b0322a85 CE |
9299 | # This should be the same for all languages, so no per-tag cache variable. |
9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9301 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9302 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9303 | $as_echo_n "(cached) " >&6 | |
9304 | else | |
9305 | save_LDFLAGS="$LDFLAGS" | |
9306 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9308 | /* end confdefs.h. */ | |
9309 | int foo (void) { return 0; } | |
8d138742 | 9310 | _ACEOF |
b0322a85 CE |
9311 | if ac_fn_c_try_link "$LINENO"; then : |
9312 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 9313 | else |
b0322a85 | 9314 | lt_cv_irix_exported_symbol=no |
8d138742 | 9315 | fi |
b0322a85 CE |
9316 | rm -f core conftest.err conftest.$ac_objext \ |
9317 | conftest$ac_exeext conftest.$ac_ext | |
9318 | LDFLAGS="$save_LDFLAGS" | |
9319 | fi | |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9321 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9322 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
9323 | 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' | |
9324 | fi | |
d9898ee8 | 9325 | else |
b0322a85 CE |
9326 | 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' |
9327 | 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' | |
d9898ee8 | 9328 | fi |
8d138742 CE |
9329 | archive_cmds_need_lc='no' |
9330 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9331 | hardcode_libdir_separator=: | |
9332 | inherit_rpath=yes | |
9333 | link_all_deplibs=yes | |
d9898ee8 | 9334 | ;; |
9335 | ||
9336 | netbsd*) | |
8d138742 CE |
9337 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9338 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
d9898ee8 | 9339 | else |
8d138742 | 9340 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
d9898ee8 | 9341 | fi |
8d138742 CE |
9342 | hardcode_libdir_flag_spec='-R$libdir' |
9343 | hardcode_direct=yes | |
9344 | hardcode_shlibpath_var=no | |
d9898ee8 | 9345 | ;; |
9346 | ||
9347 | newsos6) | |
8d138742 CE |
9348 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9349 | hardcode_direct=yes | |
9350 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9351 | hardcode_libdir_separator=: | |
9352 | hardcode_shlibpath_var=no | |
9353 | ;; | |
9354 | ||
9355 | *nto* | *qnx*) | |
d9898ee8 | 9356 | ;; |
9357 | ||
9358 | openbsd*) | |
ac40fd9e | 9359 | if test -f /usr/libexec/ld.so; then |
8d138742 CE |
9360 | hardcode_direct=yes |
9361 | hardcode_shlibpath_var=no | |
9362 | hardcode_direct_absolute=yes | |
9363 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9364 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9365 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9366 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9367 | export_dynamic_flag_spec='${wl}-E' | |
ac40fd9e | 9368 | else |
9369 | case $host_os in | |
9370 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8d138742 CE |
9371 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9372 | hardcode_libdir_flag_spec='-R$libdir' | |
ac40fd9e | 9373 | ;; |
9374 | *) | |
8d138742 CE |
9375 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9376 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
ac40fd9e | 9377 | ;; |
9378 | esac | |
8d138742 | 9379 | fi |
d9898ee8 | 9380 | else |
8d138742 | 9381 | ld_shlibs=no |
d9898ee8 | 9382 | fi |
9383 | ;; | |
9384 | ||
9385 | os2*) | |
8d138742 CE |
9386 | hardcode_libdir_flag_spec='-L$libdir' |
9387 | hardcode_minus_L=yes | |
9388 | allow_undefined_flag=unsupported | |
b0322a85 | 9389 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
8d138742 | 9390 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
d9898ee8 | 9391 | ;; |
9392 | ||
9393 | osf3*) | |
9394 | if test "$GCC" = yes; then | |
8d138742 | 9395 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
b0322a85 | 9396 | 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' |
d9898ee8 | 9397 | else |
8d138742 | 9398 | allow_undefined_flag=' -expect_unresolved \*' |
b0322a85 | 9399 | 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' |
d9898ee8 | 9400 | fi |
8d138742 CE |
9401 | archive_cmds_need_lc='no' |
9402 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9403 | hardcode_libdir_separator=: | |
d9898ee8 | 9404 | ;; |
9405 | ||
9406 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9407 | if test "$GCC" = yes; then | |
8d138742 | 9408 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
b0322a85 | 9409 | 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' |
8d138742 | 9410 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
d9898ee8 | 9411 | else |
8d138742 | 9412 | allow_undefined_flag=' -expect_unresolved \*' |
b0322a85 | 9413 | 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 | 9414 | 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~ |
b0322a85 | 9415 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
d9898ee8 | 9416 | |
9417 | # Both c and cxx compiler support -rpath directly | |
8d138742 | 9418 | hardcode_libdir_flag_spec='-rpath $libdir' |
d9898ee8 | 9419 | fi |
8d138742 CE |
9420 | archive_cmds_need_lc='no' |
9421 | hardcode_libdir_separator=: | |
d9898ee8 | 9422 | ;; |
9423 | ||
9424 | solaris*) | |
8d138742 | 9425 | no_undefined_flag=' -z defs' |
d9898ee8 | 9426 | if test "$GCC" = yes; then |
9427 | wlarc='${wl}' | |
b0322a85 | 9428 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 | 9429 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
b0322a85 | 9430 | $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 | 9431 | else |
8d138742 CE |
9432 | case `$CC -V 2>&1` in |
9433 | *"Compilers 5.0"*) | |
9434 | wlarc='' | |
9435 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9436 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9437 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9438 | ;; | |
9439 | *) | |
9440 | wlarc='${wl}' | |
9441 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9442 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9443 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9444 | ;; | |
9445 | esac | |
d9898ee8 | 9446 | fi |
8d138742 CE |
9447 | hardcode_libdir_flag_spec='-R$libdir' |
9448 | hardcode_shlibpath_var=no | |
d9898ee8 | 9449 | case $host_os in |
9450 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9451 | *) | |
ac40fd9e | 9452 | # The compiler driver will combine and reorder linker options, |
9453 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9454 | # but is careful enough not to reorder. | |
8d138742 | 9455 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e | 9456 | if test "$GCC" = yes; then |
8d138742 | 9457 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
ac40fd9e | 9458 | else |
8d138742 | 9459 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
ac40fd9e | 9460 | fi |
9461 | ;; | |
d9898ee8 | 9462 | esac |
8d138742 | 9463 | link_all_deplibs=yes |
d9898ee8 | 9464 | ;; |
9465 | ||
9466 | sunos4*) | |
9467 | if test "x$host_vendor" = xsequent; then | |
9468 | # Use $CC to link under sequent, because it throws in some extra .o | |
9469 | # files that make .init and .fini sections work. | |
8d138742 | 9470 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9471 | else |
8d138742 | 9472 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 9473 | fi |
8d138742 CE |
9474 | hardcode_libdir_flag_spec='-L$libdir' |
9475 | hardcode_direct=yes | |
9476 | hardcode_minus_L=yes | |
9477 | hardcode_shlibpath_var=no | |
d9898ee8 | 9478 | ;; |
9479 | ||
9480 | sysv4) | |
9481 | case $host_vendor in | |
9482 | sni) | |
8d138742 CE |
9483 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9484 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 9485 | ;; |
9486 | siemens) | |
9487 | ## LD is ld it makes a PLAMLIB | |
9488 | ## CC just makes a GrossModule. | |
8d138742 CE |
9489 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
9490 | reload_cmds='$CC -r -o $output$reload_objs' | |
9491 | hardcode_direct=no | |
d9898ee8 | 9492 | ;; |
9493 | motorola) | |
8d138742 CE |
9494 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9495 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
d9898ee8 | 9496 | ;; |
9497 | esac | |
9498 | runpath_var='LD_RUN_PATH' | |
8d138742 | 9499 | hardcode_shlibpath_var=no |
d9898ee8 | 9500 | ;; |
9501 | ||
9502 | sysv4.3*) | |
8d138742 CE |
9503 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9504 | hardcode_shlibpath_var=no | |
9505 | export_dynamic_flag_spec='-Bexport' | |
d9898ee8 | 9506 | ;; |
9507 | ||
9508 | sysv4*MP*) | |
9509 | if test -d /usr/nec; then | |
8d138742 CE |
9510 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9511 | hardcode_shlibpath_var=no | |
d9898ee8 | 9512 | runpath_var=LD_RUN_PATH |
9513 | hardcode_runpath_var=yes | |
8d138742 | 9514 | ld_shlibs=yes |
d9898ee8 | 9515 | fi |
9516 | ;; | |
9517 | ||
ac40fd9e | 9518 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8d138742 CE |
9519 | no_undefined_flag='${wl}-z,text' |
9520 | archive_cmds_need_lc=no | |
9521 | hardcode_shlibpath_var=no | |
d9898ee8 | 9522 | runpath_var='LD_RUN_PATH' |
9523 | ||
9524 | if test "$GCC" = yes; then | |
8d138742 CE |
9525 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9526 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9527 | else |
8d138742 CE |
9528 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9529 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9530 | fi |
9531 | ;; | |
9532 | ||
9533 | sysv5* | sco3.2v5* | sco5v6*) | |
9534 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9535 | # link with -lc, and that would cause any symbols used from libc to | |
9536 | # always be unresolved, which means just about no library would | |
9537 | # ever link correctly. If we're not using GNU ld we use -z text | |
9538 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9539 | # as -z defs. | |
8d138742 CE |
9540 | no_undefined_flag='${wl}-z,text' |
9541 | allow_undefined_flag='${wl}-z,nodefs' | |
9542 | archive_cmds_need_lc=no | |
9543 | hardcode_shlibpath_var=no | |
9544 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9545 | hardcode_libdir_separator=':' | |
9546 | link_all_deplibs=yes | |
9547 | export_dynamic_flag_spec='${wl}-Bexport' | |
d9898ee8 | 9548 | runpath_var='LD_RUN_PATH' |
9549 | ||
9550 | if test "$GCC" = yes; then | |
8d138742 CE |
9551 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9552 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9553 | else |
8d138742 CE |
9554 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9555 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9556 | fi |
9557 | ;; | |
9558 | ||
9559 | uts4*) | |
8d138742 CE |
9560 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9561 | hardcode_libdir_flag_spec='-L$libdir' | |
9562 | hardcode_shlibpath_var=no | |
d9898ee8 | 9563 | ;; |
9564 | ||
9565 | *) | |
8d138742 | 9566 | ld_shlibs=no |
d9898ee8 | 9567 | ;; |
9568 | esac | |
8d138742 CE |
9569 | |
9570 | if test x$host_vendor = xsni; then | |
9571 | case $host in | |
9572 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9573 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9574 | ;; | |
9575 | esac | |
9576 | fi | |
d9898ee8 | 9577 | fi |
9578 | ||
b0322a85 | 9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 CE |
9580 | $as_echo "$ld_shlibs" >&6; } |
9581 | test "$ld_shlibs" = no && can_build_shared=no | |
9582 | ||
9583 | with_gnu_ld=$with_gnu_ld | |
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
d9898ee8 | 9598 | |
9599 | # | |
9600 | # Do we need to explicitly link libc? | |
9601 | # | |
8d138742 | 9602 | case "x$archive_cmds_need_lc" in |
d9898ee8 | 9603 | x|xyes) |
9604 | # Assume -lc should be added | |
8d138742 | 9605 | archive_cmds_need_lc=yes |
d9898ee8 | 9606 | |
9607 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8d138742 | 9608 | case $archive_cmds in |
d9898ee8 | 9609 | *'~'*) |
9610 | # FIXME: we may have to deal with multi-command sequences. | |
9611 | ;; | |
9612 | '$CC '*) | |
9613 | # Test whether the compiler implicitly links with -lc since on some | |
9614 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9615 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 9616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 9617 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
9618 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
9619 | $as_echo_n "(cached) " >&6 | |
9620 | else | |
9621 | $RM conftest* | |
9622 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9623 | |
b0322a85 | 9624 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 9625 | (eval $ac_compile) 2>&5 |
9626 | ac_status=$? | |
b0322a85 CE |
9627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9628 | test $ac_status = 0; } 2>conftest.err; then | |
9629 | soname=conftest | |
9630 | lib=conftest | |
9631 | libobjs=conftest.$ac_objext | |
9632 | deplibs= | |
9633 | wl=$lt_prog_compiler_wl | |
9634 | pic_flag=$lt_prog_compiler_pic | |
9635 | compiler_flags=-v | |
9636 | linker_flags=-v | |
9637 | verstring= | |
9638 | output_objdir=. | |
9639 | libname=conftest | |
9640 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9641 | allow_undefined_flag= | |
9642 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 | 9643 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
d9898ee8 | 9644 | ac_status=$? |
b0322a85 CE |
9645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9646 | test $ac_status = 0; } | |
9647 | then | |
9648 | lt_cv_archive_cmds_need_lc=no | |
9649 | else | |
9650 | lt_cv_archive_cmds_need_lc=yes | |
9651 | fi | |
9652 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9653 | else | |
9654 | cat conftest.err 1>&5 | |
9655 | fi | |
9656 | $RM conftest* | |
9657 | ||
9658 | fi | |
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9660 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9661 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
d9898ee8 | 9662 | ;; |
9663 | esac | |
9664 | fi | |
9665 | ;; | |
9666 | esac | |
9667 | ||
8d138742 CE |
9668 | |
9669 | ||
9670 | ||
9671 | ||
9672 | ||
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | ||
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
9817 | ||
9818 | ||
b0322a85 | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
9820 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
9821 | ||
9822 | if test "$GCC" = yes; then | |
9823 | case $host_os in | |
9824 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9825 | *) lt_awk_arg="/^libraries:/" ;; | |
9826 | esac | |
b0322a85 CE |
9827 | case $host_os in |
9828 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9829 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9830 | esac | |
9831 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9832 | case $lt_search_path_spec in | |
9833 | *\;*) | |
8d138742 CE |
9834 | # if the path contains ";" then we assume it to be the separator |
9835 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9836 | # assumed that no part of a normal pathname contains ";" but that should | |
9837 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
9838 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9839 | ;; | |
9840 | *) | |
9841 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9842 | ;; | |
9843 | esac | |
8d138742 CE |
9844 | # Ok, now we have the path, separated by spaces, we can step through it |
9845 | # and add multilib dir if necessary. | |
9846 | lt_tmp_lt_search_path_spec= | |
9847 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9848 | for lt_sys_path in $lt_search_path_spec; do | |
9849 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9850 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9851 | else | |
9852 | test -d "$lt_sys_path" && \ | |
9853 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9854 | fi | |
9855 | done | |
b0322a85 | 9856 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
8d138742 CE |
9857 | BEGIN {RS=" "; FS="/|\n";} { |
9858 | lt_foo=""; | |
9859 | lt_count=0; | |
9860 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9861 | if ($lt_i != "" && $lt_i != ".") { | |
9862 | if ($lt_i == "..") { | |
9863 | lt_count++; | |
9864 | } else { | |
9865 | if (lt_count == 0) { | |
9866 | lt_foo="/" $lt_i lt_foo; | |
9867 | } else { | |
9868 | lt_count--; | |
9869 | } | |
9870 | } | |
9871 | } | |
9872 | } | |
9873 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9874 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9875 | }'` | |
b0322a85 CE |
9876 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9877 | # for these hosts. | |
9878 | case $host_os in | |
9879 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9880 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9881 | esac | |
9882 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
9883 | else |
9884 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9885 | fi | |
d9898ee8 | 9886 | library_names_spec= |
9887 | libname_spec='lib$name' | |
9888 | soname_spec= | |
9889 | shrext_cmds=".so" | |
9890 | postinstall_cmds= | |
9891 | postuninstall_cmds= | |
9892 | finish_cmds= | |
9893 | finish_eval= | |
9894 | shlibpath_var= | |
9895 | shlibpath_overrides_runpath=unknown | |
9896 | version_type=none | |
9897 | dynamic_linker="$host_os ld.so" | |
9898 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 9899 | need_lib_prefix=unknown |
9900 | hardcode_into_libs=no | |
9901 | ||
9902 | # when you set need_version to no, make sure it does not cause -set_version | |
9903 | # flags to be left without arguments | |
9904 | need_version=unknown | |
9905 | ||
9906 | case $host_os in | |
9907 | aix3*) | |
b0322a85 | 9908 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 9909 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
9910 | shlibpath_var=LIBPATH | |
9911 | ||
9912 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9913 | soname_spec='${libname}${release}${shared_ext}$major' | |
9914 | ;; | |
9915 | ||
8d138742 | 9916 | aix[4-9]*) |
b0322a85 | 9917 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 9918 | need_lib_prefix=no |
9919 | need_version=no | |
9920 | hardcode_into_libs=yes | |
9921 | if test "$host_cpu" = ia64; then | |
9922 | # AIX 5 supports IA64 | |
9923 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9924 | shlibpath_var=LD_LIBRARY_PATH | |
9925 | else | |
9926 | # With GCC up to 2.95.x, collect2 would create an import file | |
9927 | # for dependence libraries. The import file would start with | |
9928 | # the line `#! .'. This would cause the generated library to | |
9929 | # depend on `.', always an invalid library. This was fixed in | |
9930 | # development snapshots of GCC prior to 3.0. | |
9931 | case $host_os in | |
9932 | aix4 | aix4.[01] | aix4.[01].*) | |
9933 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9934 | echo ' yes ' | |
8d138742 | 9935 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
d9898ee8 | 9936 | : |
9937 | else | |
9938 | can_build_shared=no | |
9939 | fi | |
9940 | ;; | |
9941 | esac | |
9942 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9943 | # soname into executable. Probably we can add versioning support to | |
9944 | # collect2, so additional links can be useful in future. | |
9945 | if test "$aix_use_runtimelinking" = yes; then | |
9946 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9947 | # instead of lib<name>.a to let people know that these are not | |
9948 | # typical AIX shared libraries. | |
9949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9950 | else | |
9951 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9952 | # and later when we are not doing run time linking. | |
9953 | library_names_spec='${libname}${release}.a $libname.a' | |
9954 | soname_spec='${libname}${release}${shared_ext}$major' | |
9955 | fi | |
9956 | shlibpath_var=LIBPATH | |
9957 | fi | |
9958 | ;; | |
9959 | ||
9960 | amigaos*) | |
8d138742 CE |
9961 | case $host_cpu in |
9962 | powerpc) | |
9963 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9964 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9966 | ;; | |
9967 | m68k) | |
9968 | library_names_spec='$libname.ixlibrary $libname.a' | |
9969 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
b0322a85 | 9970 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
8d138742 CE |
9971 | ;; |
9972 | esac | |
d9898ee8 | 9973 | ;; |
9974 | ||
9975 | beos*) | |
9976 | library_names_spec='${libname}${shared_ext}' | |
9977 | dynamic_linker="$host_os ld.so" | |
9978 | shlibpath_var=LIBRARY_PATH | |
9979 | ;; | |
9980 | ||
9981 | bsdi[45]*) | |
b0322a85 | 9982 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 9983 | need_version=no |
9984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9985 | soname_spec='${libname}${release}${shared_ext}$major' | |
9986 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9987 | shlibpath_var=LD_LIBRARY_PATH | |
9988 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9989 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9990 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9991 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9992 | # libtool to hard-code these into programs | |
9993 | ;; | |
9994 | ||
8d138742 | 9995 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9996 | version_type=windows |
9997 | shrext_cmds=".dll" | |
9998 | need_version=no | |
9999 | need_lib_prefix=no | |
10000 | ||
b0322a85 CE |
10001 | case $GCC,$cc_basename in |
10002 | yes,*) | |
10003 | # gcc | |
d9898ee8 | 10004 | library_names_spec='$libname.dll.a' |
10005 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10006 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 10007 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 10008 | dldir=$destdir/`dirname \$dlpath`~ |
10009 | test -d \$dldir || mkdir -p \$dldir~ | |
10010 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10011 | chmod a+x \$dldir/$dlname~ |
10012 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10013 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10014 | fi' | |
d9898ee8 | 10015 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10016 | dlpath=$dir/\$dldll~ | |
8d138742 | 10017 | $RM \$dlpath' |
d9898ee8 | 10018 | shlibpath_overrides_runpath=yes |
10019 | ||
10020 | case $host_os in | |
10021 | cygwin*) | |
10022 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10023 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
b0322a85 CE |
10024 | |
10025 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10026 | ;; |
8d138742 | 10027 | mingw* | cegcc*) |
d9898ee8 | 10028 | # MinGW DLLs use traditional 'lib' prefix |
10029 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
d9898ee8 | 10030 | ;; |
10031 | pw32*) | |
10032 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10033 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10034 | ;; | |
10035 | esac | |
b0322a85 CE |
10036 | dynamic_linker='Win32 ld.exe' |
10037 | ;; | |
10038 | ||
10039 | *,cl*) | |
10040 | # Native MSVC | |
10041 | libname_spec='$name' | |
10042 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10043 | library_names_spec='${libname}.dll.lib' | |
10044 | ||
10045 | case $build_os in | |
10046 | mingw*) | |
10047 | sys_lib_search_path_spec= | |
10048 | lt_save_ifs=$IFS | |
10049 | IFS=';' | |
10050 | for lt_path in $LIB | |
10051 | do | |
10052 | IFS=$lt_save_ifs | |
10053 | # Let DOS variable expansion print the short 8.3 style file name. | |
10054 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10055 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10056 | done | |
10057 | IFS=$lt_save_ifs | |
10058 | # Convert to MSYS style. | |
10059 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10060 | ;; | |
10061 | cygwin*) | |
10062 | # Convert to unix form, then to dos form, then back to unix form | |
10063 | # but this time dos style (no spaces!) so that the unix form looks | |
10064 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10065 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10066 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10067 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10068 | ;; | |
10069 | *) | |
10070 | sys_lib_search_path_spec="$LIB" | |
10071 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10072 | # It is most probably a Windows format PATH. | |
10073 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10074 | else | |
10075 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10076 | fi | |
10077 | # FIXME: find the short name or the path components, as spaces are | |
10078 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10079 | ;; | |
10080 | esac | |
10081 | ||
10082 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10083 | postinstall_cmds='base_file=`basename \${file}`~ | |
10084 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10085 | dldir=$destdir/`dirname \$dlpath`~ | |
10086 | test -d \$dldir || mkdir -p \$dldir~ | |
10087 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10088 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10089 | dlpath=$dir/\$dldll~ | |
10090 | $RM \$dlpath' | |
10091 | shlibpath_overrides_runpath=yes | |
10092 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10093 | ;; |
10094 | ||
10095 | *) | |
b0322a85 | 10096 | # Assume MSVC wrapper |
d9898ee8 | 10097 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
b0322a85 | 10098 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10099 | ;; |
10100 | esac | |
d9898ee8 | 10101 | # FIXME: first we should search . and the directory the executable is in |
10102 | shlibpath_var=PATH | |
10103 | ;; | |
10104 | ||
10105 | darwin* | rhapsody*) | |
10106 | dynamic_linker="$host_os dyld" | |
10107 | version_type=darwin | |
10108 | need_lib_prefix=no | |
10109 | need_version=no | |
8d138742 | 10110 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 10111 | soname_spec='${libname}${release}${major}$shared_ext' |
10112 | shlibpath_overrides_runpath=yes | |
10113 | shlibpath_var=DYLD_LIBRARY_PATH | |
10114 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10115 | |
8d138742 | 10116 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10117 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10118 | ;; | |
10119 | ||
10120 | dgux*) | |
b0322a85 | 10121 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10122 | need_lib_prefix=no |
10123 | need_version=no | |
10124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10125 | soname_spec='${libname}${release}${shared_ext}$major' | |
10126 | shlibpath_var=LD_LIBRARY_PATH | |
10127 | ;; | |
10128 | ||
d9898ee8 | 10129 | freebsd* | dragonfly*) |
10130 | # DragonFly does not have aout. When/if they implement a new | |
10131 | # versioning mechanism, adjust this. | |
10132 | if test -x /usr/bin/objformat; then | |
10133 | objformat=`/usr/bin/objformat` | |
10134 | else | |
10135 | case $host_os in | |
b0322a85 | 10136 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10137 | *) objformat=elf ;; |
10138 | esac | |
10139 | fi | |
10140 | version_type=freebsd-$objformat | |
10141 | case $version_type in | |
10142 | freebsd-elf*) | |
10143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10144 | need_version=no | |
10145 | need_lib_prefix=no | |
10146 | ;; | |
10147 | freebsd-*) | |
10148 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10149 | need_version=yes | |
10150 | ;; | |
10151 | esac | |
10152 | shlibpath_var=LD_LIBRARY_PATH | |
10153 | case $host_os in | |
b0322a85 | 10154 | freebsd2.*) |
d9898ee8 | 10155 | shlibpath_overrides_runpath=yes |
10156 | ;; | |
10157 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10158 | shlibpath_overrides_runpath=yes | |
10159 | hardcode_into_libs=yes | |
10160 | ;; | |
10161 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10162 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10163 | shlibpath_overrides_runpath=no | |
10164 | hardcode_into_libs=yes | |
10165 | ;; | |
ac40fd9e | 10166 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10167 | shlibpath_overrides_runpath=yes |
10168 | hardcode_into_libs=yes | |
10169 | ;; | |
10170 | esac | |
10171 | ;; | |
10172 | ||
10173 | gnu*) | |
b0322a85 | 10174 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10175 | need_lib_prefix=no |
10176 | need_version=no | |
10177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10178 | soname_spec='${libname}${release}${shared_ext}$major' | |
10179 | shlibpath_var=LD_LIBRARY_PATH | |
b0322a85 CE |
10180 | shlibpath_overrides_runpath=no |
10181 | hardcode_into_libs=yes | |
10182 | ;; | |
10183 | ||
10184 | haiku*) | |
10185 | version_type=linux # correct to gnu/linux during the next big refactor | |
10186 | need_lib_prefix=no | |
10187 | need_version=no | |
10188 | dynamic_linker="$host_os runtime_loader" | |
10189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10190 | soname_spec='${libname}${release}${shared_ext}$major' | |
10191 | shlibpath_var=LIBRARY_PATH | |
10192 | shlibpath_overrides_runpath=yes | |
10193 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
d9898ee8 | 10194 | hardcode_into_libs=yes |
10195 | ;; | |
10196 | ||
10197 | hpux9* | hpux10* | hpux11*) | |
10198 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10199 | # link against other versions. | |
10200 | version_type=sunos | |
10201 | need_lib_prefix=no | |
10202 | need_version=no | |
10203 | case $host_cpu in | |
10204 | ia64*) | |
10205 | shrext_cmds='.so' | |
10206 | hardcode_into_libs=yes | |
10207 | dynamic_linker="$host_os dld.so" | |
10208 | shlibpath_var=LD_LIBRARY_PATH | |
10209 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10211 | soname_spec='${libname}${release}${shared_ext}$major' | |
10212 | if test "X$HPUX_IA64_MODE" = X32; then | |
10213 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10214 | else | |
10215 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10216 | fi | |
10217 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10218 | ;; | |
8d138742 CE |
10219 | hppa*64*) |
10220 | shrext_cmds='.sl' | |
10221 | hardcode_into_libs=yes | |
10222 | dynamic_linker="$host_os dld.sl" | |
10223 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10224 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10226 | soname_spec='${libname}${release}${shared_ext}$major' | |
10227 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10228 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10229 | ;; | |
10230 | *) | |
d9898ee8 | 10231 | shrext_cmds='.sl' |
10232 | dynamic_linker="$host_os dld.sl" | |
10233 | shlibpath_var=SHLIB_PATH | |
10234 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10236 | soname_spec='${libname}${release}${shared_ext}$major' | |
10237 | ;; | |
10238 | esac | |
b0322a85 | 10239 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10240 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10241 | # or fails outright, so override atomically: |
10242 | install_override_mode=555 | |
d9898ee8 | 10243 | ;; |
10244 | ||
ac40fd9e | 10245 | interix[3-9]*) |
b0322a85 | 10246 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10247 | need_lib_prefix=no |
10248 | need_version=no | |
10249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10250 | soname_spec='${libname}${release}${shared_ext}$major' | |
10251 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10252 | shlibpath_var=LD_LIBRARY_PATH | |
10253 | shlibpath_overrides_runpath=no | |
10254 | hardcode_into_libs=yes | |
10255 | ;; | |
10256 | ||
10257 | irix5* | irix6* | nonstopux*) | |
10258 | case $host_os in | |
10259 | nonstopux*) version_type=nonstopux ;; | |
10260 | *) | |
10261 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
b0322a85 | 10262 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10263 | else |
10264 | version_type=irix | |
10265 | fi ;; | |
10266 | esac | |
10267 | need_lib_prefix=no | |
10268 | need_version=no | |
10269 | soname_spec='${libname}${release}${shared_ext}$major' | |
10270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10271 | case $host_os in | |
10272 | irix5* | nonstopux*) | |
10273 | libsuff= shlibsuff= | |
10274 | ;; | |
10275 | *) | |
10276 | case $LD in # libtool.m4 will add one of these switches to LD | |
10277 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10278 | libsuff= shlibsuff= libmagic=32-bit;; | |
10279 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10280 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10281 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10282 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10283 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10284 | esac | |
10285 | ;; | |
10286 | esac | |
10287 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10288 | shlibpath_overrides_runpath=no | |
10289 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10290 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10291 | hardcode_into_libs=yes | |
10292 | ;; | |
10293 | ||
10294 | # No shared lib support for Linux oldld, aout, or coff. | |
10295 | linux*oldld* | linux*aout* | linux*coff*) | |
10296 | dynamic_linker=no | |
10297 | ;; | |
10298 | ||
b0322a85 CE |
10299 | # This must be glibc/ELF. |
10300 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10301 | version_type=linux # correct to gnu/linux during the next big refactor | |
d9898ee8 | 10302 | need_lib_prefix=no |
10303 | need_version=no | |
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10305 | soname_spec='${libname}${release}${shared_ext}$major' | |
10306 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10307 | shlibpath_var=LD_LIBRARY_PATH | |
10308 | shlibpath_overrides_runpath=no | |
b0322a85 | 10309 | |
8d138742 | 10310 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10311 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10312 | $as_echo_n "(cached) " >&6 | |
10313 | else | |
10314 | lt_cv_shlibpath_overrides_runpath=no | |
10315 | save_LDFLAGS=$LDFLAGS | |
10316 | save_libdir=$libdir | |
10317 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10318 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10320 | /* end confdefs.h. */ |
10321 | ||
10322 | int | |
10323 | main () | |
10324 | { | |
10325 | ||
10326 | ; | |
10327 | return 0; | |
10328 | } | |
10329 | _ACEOF | |
b0322a85 CE |
10330 | if ac_fn_c_try_link "$LINENO"; then : |
10331 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10332 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 10333 | fi |
b0322a85 CE |
10334 | fi |
10335 | rm -f core conftest.err conftest.$ac_objext \ | |
10336 | conftest$ac_exeext conftest.$ac_ext | |
10337 | LDFLAGS=$save_LDFLAGS | |
10338 | libdir=$save_libdir | |
8d138742 CE |
10339 | |
10340 | fi | |
10341 | ||
b0322a85 | 10342 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 10343 | |
d9898ee8 | 10344 | # This implies no fast_install, which is unacceptable. |
10345 | # Some rework will be needed to allow for fast_install | |
10346 | # before this can be enabled. | |
10347 | hardcode_into_libs=yes | |
8d138742 CE |
10348 | |
10349 | # Add ABI-specific directories to the system library path. | |
10350 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 10351 | |
10352 | # Append ld.so.conf contents to the search path | |
10353 | if test -f /etc/ld.so.conf; then | |
b0322a85 | 10354 | 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' ' '` |
ac40fd9e | 10355 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
b0322a85 | 10356 | |
d9898ee8 | 10357 | fi |
10358 | ||
10359 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10360 | # powerpc, because MkLinux only supported shared libraries with the | |
10361 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10362 | # most powerpc-linux boxes support dynamic linking these days and | |
10363 | # people can always --disable-shared, the test was removed, and we | |
10364 | # assume the GNU/Linux dynamic linker is in use. | |
10365 | dynamic_linker='GNU/Linux ld.so' | |
10366 | ;; | |
10367 | ||
d9898ee8 | 10368 | netbsd*) |
10369 | version_type=sunos | |
10370 | need_lib_prefix=no | |
10371 | need_version=no | |
8d138742 | 10372 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 10373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10374 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10375 | dynamic_linker='NetBSD (a.out) ld.so' | |
10376 | else | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10378 | soname_spec='${libname}${release}${shared_ext}$major' | |
10379 | dynamic_linker='NetBSD ld.elf_so' | |
10380 | fi | |
10381 | shlibpath_var=LD_LIBRARY_PATH | |
10382 | shlibpath_overrides_runpath=yes | |
10383 | hardcode_into_libs=yes | |
10384 | ;; | |
10385 | ||
10386 | newsos6) | |
b0322a85 | 10387 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10389 | shlibpath_var=LD_LIBRARY_PATH | |
10390 | shlibpath_overrides_runpath=yes | |
10391 | ;; | |
10392 | ||
8d138742 CE |
10393 | *nto* | *qnx*) |
10394 | version_type=qnx | |
d9898ee8 | 10395 | need_lib_prefix=no |
10396 | need_version=no | |
10397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10398 | soname_spec='${libname}${release}${shared_ext}$major' | |
10399 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
10400 | shlibpath_overrides_runpath=no |
10401 | hardcode_into_libs=yes | |
10402 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 10403 | ;; |
10404 | ||
10405 | openbsd*) | |
10406 | version_type=sunos | |
10407 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10408 | need_lib_prefix=no | |
10409 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10410 | case $host_os in | |
8d138742 CE |
10411 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10412 | *) need_version=no ;; | |
d9898ee8 | 10413 | esac |
10414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10415 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10416 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10417 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 10418 | case $host_os in |
10419 | openbsd2.[89] | openbsd2.[89].*) | |
10420 | shlibpath_overrides_runpath=no | |
10421 | ;; | |
10422 | *) | |
10423 | shlibpath_overrides_runpath=yes | |
10424 | ;; | |
10425 | esac | |
10426 | else | |
10427 | shlibpath_overrides_runpath=yes | |
10428 | fi | |
10429 | ;; | |
10430 | ||
10431 | os2*) | |
10432 | libname_spec='$name' | |
10433 | shrext_cmds=".dll" | |
10434 | need_lib_prefix=no | |
10435 | library_names_spec='$libname${shared_ext} $libname.a' | |
10436 | dynamic_linker='OS/2 ld.exe' | |
10437 | shlibpath_var=LIBPATH | |
10438 | ;; | |
10439 | ||
10440 | osf3* | osf4* | osf5*) | |
10441 | version_type=osf | |
10442 | need_lib_prefix=no | |
10443 | need_version=no | |
10444 | soname_spec='${libname}${release}${shared_ext}$major' | |
10445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10446 | shlibpath_var=LD_LIBRARY_PATH | |
10447 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10448 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10449 | ;; | |
10450 | ||
ac40fd9e | 10451 | rdos*) |
10452 | dynamic_linker=no | |
10453 | ;; | |
10454 | ||
d9898ee8 | 10455 | solaris*) |
b0322a85 | 10456 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10457 | need_lib_prefix=no |
10458 | need_version=no | |
10459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10460 | soname_spec='${libname}${release}${shared_ext}$major' | |
10461 | shlibpath_var=LD_LIBRARY_PATH | |
10462 | shlibpath_overrides_runpath=yes | |
10463 | hardcode_into_libs=yes | |
10464 | # ldd complains unless libraries are executable | |
10465 | postinstall_cmds='chmod +x $lib' | |
10466 | ;; | |
10467 | ||
10468 | sunos4*) | |
10469 | version_type=sunos | |
10470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10471 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10472 | shlibpath_var=LD_LIBRARY_PATH | |
10473 | shlibpath_overrides_runpath=yes | |
10474 | if test "$with_gnu_ld" = yes; then | |
10475 | need_lib_prefix=no | |
10476 | fi | |
10477 | need_version=yes | |
10478 | ;; | |
10479 | ||
10480 | sysv4 | sysv4.3*) | |
b0322a85 | 10481 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10483 | soname_spec='${libname}${release}${shared_ext}$major' | |
10484 | shlibpath_var=LD_LIBRARY_PATH | |
10485 | case $host_vendor in | |
10486 | sni) | |
10487 | shlibpath_overrides_runpath=no | |
10488 | need_lib_prefix=no | |
d9898ee8 | 10489 | runpath_var=LD_RUN_PATH |
10490 | ;; | |
10491 | siemens) | |
10492 | need_lib_prefix=no | |
10493 | ;; | |
10494 | motorola) | |
10495 | need_lib_prefix=no | |
10496 | need_version=no | |
10497 | shlibpath_overrides_runpath=no | |
10498 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10499 | ;; | |
10500 | esac | |
10501 | ;; | |
10502 | ||
8d138742 CE |
10503 | sysv4*MP*) |
10504 | if test -d /usr/nec ;then | |
b0322a85 | 10505 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10506 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
10507 | soname_spec='$libname${shared_ext}.$major' | |
10508 | shlibpath_var=LD_LIBRARY_PATH | |
10509 | fi | |
10510 | ;; | |
10511 | ||
10512 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10513 | version_type=freebsd-elf | |
10514 | need_lib_prefix=no | |
10515 | need_version=no | |
10516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10517 | soname_spec='${libname}${release}${shared_ext}$major' | |
10518 | shlibpath_var=LD_LIBRARY_PATH | |
10519 | shlibpath_overrides_runpath=yes | |
10520 | hardcode_into_libs=yes | |
10521 | if test "$with_gnu_ld" = yes; then | |
10522 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10523 | else | |
10524 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10525 | case $host_os in | |
10526 | sco3.2v5*) | |
10527 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10528 | ;; | |
10529 | esac | |
10530 | fi | |
10531 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10532 | ;; | |
10533 | ||
10534 | tpf*) | |
10535 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 10536 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10537 | need_lib_prefix=no |
10538 | need_version=no | |
10539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10540 | shlibpath_var=LD_LIBRARY_PATH | |
10541 | shlibpath_overrides_runpath=no | |
10542 | hardcode_into_libs=yes | |
10543 | ;; | |
10544 | ||
10545 | uts4*) | |
b0322a85 | 10546 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10548 | soname_spec='${libname}${release}${shared_ext}$major' | |
10549 | shlibpath_var=LD_LIBRARY_PATH | |
10550 | ;; | |
10551 | ||
10552 | *) | |
10553 | dynamic_linker=no | |
10554 | ;; | |
10555 | esac | |
b0322a85 | 10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 CE |
10557 | $as_echo "$dynamic_linker" >&6; } |
10558 | test "$dynamic_linker" = no && can_build_shared=no | |
10559 | ||
10560 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10561 | if test "$GCC" = yes; then | |
10562 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10563 | fi | |
10564 | ||
10565 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10566 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10567 | fi | |
10568 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10569 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10570 | fi | |
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | ||
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | ||
10651 | ||
10652 | ||
d9898ee8 | 10653 | |
d9898ee8 | 10654 | |
d9898ee8 | 10655 | |
d9898ee8 | 10656 | |
d9898ee8 | 10657 | |
b0322a85 CE |
10658 | |
10659 | ||
10660 | ||
10661 | ||
10662 | ||
10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
10664 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
10665 | hardcode_action= | |
10666 | if test -n "$hardcode_libdir_flag_spec" || | |
10667 | test -n "$runpath_var" || | |
10668 | test "X$hardcode_automatic" = "Xyes" ; then | |
d9898ee8 | 10669 | |
8d138742 CE |
10670 | # We can hardcode non-existent directories. |
10671 | if test "$hardcode_direct" != no && | |
d9898ee8 | 10672 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
10673 | # have to relink, otherwise we might link with an installed library | |
10674 | # when we should be linking with a yet-to-be-installed one | |
8d138742 CE |
10675 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
10676 | test "$hardcode_minus_L" != no; then | |
d9898ee8 | 10677 | # Linking always hardcodes the temporary library directory. |
8d138742 | 10678 | hardcode_action=relink |
d9898ee8 | 10679 | else |
10680 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8d138742 | 10681 | hardcode_action=immediate |
d9898ee8 | 10682 | fi |
10683 | else | |
10684 | # We cannot hardcode anything, or else we can only hardcode existing | |
10685 | # directories. | |
8d138742 | 10686 | hardcode_action=unsupported |
d9898ee8 | 10687 | fi |
b0322a85 | 10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 10689 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 10690 | |
8d138742 CE |
10691 | if test "$hardcode_action" = relink || |
10692 | test "$inherit_rpath" = yes; then | |
d9898ee8 | 10693 | # Fast installation is not supported |
10694 | enable_fast_install=no | |
10695 | elif test "$shlibpath_overrides_runpath" = yes || | |
10696 | test "$enable_shared" = no; then | |
10697 | # Fast installation is not necessary | |
10698 | enable_fast_install=needless | |
10699 | fi | |
10700 | ||
10701 | ||
d9898ee8 | 10702 | |
d9898ee8 | 10703 | |
d9898ee8 | 10704 | |
d9898ee8 | 10705 | |
8d138742 CE |
10706 | if test "x$enable_dlopen" != xyes; then |
10707 | enable_dlopen=unknown | |
10708 | enable_dlopen_self=unknown | |
10709 | enable_dlopen_self_static=unknown | |
10710 | else | |
10711 | lt_cv_dlopen=no | |
10712 | lt_cv_dlopen_libs= | |
d9898ee8 | 10713 | |
8d138742 CE |
10714 | case $host_os in |
10715 | beos*) | |
10716 | lt_cv_dlopen="load_add_on" | |
10717 | lt_cv_dlopen_libs= | |
10718 | lt_cv_dlopen_self=yes | |
10719 | ;; | |
d9898ee8 | 10720 | |
8d138742 CE |
10721 | mingw* | pw32* | cegcc*) |
10722 | lt_cv_dlopen="LoadLibrary" | |
10723 | lt_cv_dlopen_libs= | |
10724 | ;; | |
d9898ee8 | 10725 | |
8d138742 CE |
10726 | cygwin*) |
10727 | lt_cv_dlopen="dlopen" | |
10728 | lt_cv_dlopen_libs= | |
10729 | ;; | |
d9898ee8 | 10730 | |
8d138742 CE |
10731 | darwin*) |
10732 | # if libdl is installed we need to link against it | |
b0322a85 | 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 10734 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 10735 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
10736 | $as_echo_n "(cached) " >&6 |
10737 | else | |
10738 | ac_check_lib_save_LIBS=$LIBS | |
10739 | LIBS="-ldl $LIBS" | |
b0322a85 | 10740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 10741 | /* end confdefs.h. */ |
d9898ee8 | 10742 | |
8d138742 CE |
10743 | /* Override any GCC internal prototype to avoid an error. |
10744 | Use char because int might match the return type of a GCC | |
10745 | builtin and then its argument prototype would still apply. */ | |
10746 | #ifdef __cplusplus | |
10747 | extern "C" | |
10748 | #endif | |
10749 | char dlopen (); | |
10750 | int | |
10751 | main () | |
10752 | { | |
10753 | return dlopen (); | |
10754 | ; | |
10755 | return 0; | |
10756 | } | |
10757 | _ACEOF | |
b0322a85 | 10758 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
10759 | ac_cv_lib_dl_dlopen=yes |
10760 | else | |
b0322a85 | 10761 | ac_cv_lib_dl_dlopen=no |
8d138742 | 10762 | fi |
b0322a85 CE |
10763 | rm -f core conftest.err conftest.$ac_objext \ |
10764 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
10765 | LIBS=$ac_check_lib_save_LIBS |
10766 | fi | |
b0322a85 | 10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 10768 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 10769 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
8d138742 CE |
10770 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10771 | else | |
d9898ee8 | 10772 | |
8d138742 CE |
10773 | lt_cv_dlopen="dyld" |
10774 | lt_cv_dlopen_libs= | |
b0322a85 | 10775 | lt_cv_dlopen_self=yes |
d9898ee8 | 10776 | |
8d138742 | 10777 | fi |
d9898ee8 | 10778 | |
b0322a85 CE |
10779 | ;; |
10780 | ||
10781 | *) | |
10782 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10783 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
10784 | lt_cv_dlopen="shl_load" | |
8d138742 | 10785 | else |
b0322a85 CE |
10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10787 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10788 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
8d138742 CE |
10789 | $as_echo_n "(cached) " >&6 |
10790 | else | |
b0322a85 CE |
10791 | ac_check_lib_save_LIBS=$LIBS |
10792 | LIBS="-ldld $LIBS" | |
10793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 10794 | /* end confdefs.h. */ |
d9898ee8 | 10795 | |
8d138742 CE |
10796 | /* Override any GCC internal prototype to avoid an error. |
10797 | Use char because int might match the return type of a GCC | |
10798 | builtin and then its argument prototype would still apply. */ | |
10799 | #ifdef __cplusplus | |
10800 | extern "C" | |
10801 | #endif | |
b0322a85 | 10802 | char shl_load (); |
8d138742 CE |
10803 | int |
10804 | main () | |
10805 | { | |
b0322a85 | 10806 | return shl_load (); |
8d138742 CE |
10807 | ; |
10808 | return 0; | |
10809 | } | |
10810 | _ACEOF | |
b0322a85 CE |
10811 | if ac_fn_c_try_link "$LINENO"; then : |
10812 | ac_cv_lib_dld_shl_load=yes | |
8d138742 | 10813 | else |
b0322a85 | 10814 | ac_cv_lib_dld_shl_load=no |
8d138742 | 10815 | fi |
b0322a85 CE |
10816 | rm -f core conftest.err conftest.$ac_objext \ |
10817 | conftest$ac_exeext conftest.$ac_ext | |
10818 | LIBS=$ac_check_lib_save_LIBS | |
8d138742 | 10819 | fi |
b0322a85 CE |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10821 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10822 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
10823 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10824 | else | |
10825 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10826 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
8d138742 CE |
10827 | lt_cv_dlopen="dlopen" |
10828 | else | |
b0322a85 | 10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 10830 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 10831 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
10832 | $as_echo_n "(cached) " >&6 |
10833 | else | |
10834 | ac_check_lib_save_LIBS=$LIBS | |
10835 | LIBS="-ldl $LIBS" | |
b0322a85 | 10836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 10837 | /* end confdefs.h. */ |
d9898ee8 | 10838 | |
8d138742 CE |
10839 | /* Override any GCC internal prototype to avoid an error. |
10840 | Use char because int might match the return type of a GCC | |
10841 | builtin and then its argument prototype would still apply. */ | |
10842 | #ifdef __cplusplus | |
10843 | extern "C" | |
10844 | #endif | |
10845 | char dlopen (); | |
10846 | int | |
10847 | main () | |
10848 | { | |
10849 | return dlopen (); | |
10850 | ; | |
10851 | return 0; | |
10852 | } | |
10853 | _ACEOF | |
b0322a85 | 10854 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
10855 | ac_cv_lib_dl_dlopen=yes |
10856 | else | |
b0322a85 | 10857 | ac_cv_lib_dl_dlopen=no |
8d138742 | 10858 | fi |
b0322a85 CE |
10859 | rm -f core conftest.err conftest.$ac_objext \ |
10860 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
10861 | LIBS=$ac_check_lib_save_LIBS |
10862 | fi | |
b0322a85 | 10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 10864 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 10865 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
8d138742 CE |
10866 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10867 | else | |
b0322a85 | 10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 10869 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 10870 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
10871 | $as_echo_n "(cached) " >&6 |
10872 | else | |
10873 | ac_check_lib_save_LIBS=$LIBS | |
10874 | LIBS="-lsvld $LIBS" | |
b0322a85 | 10875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 10876 | /* end confdefs.h. */ |
d9898ee8 | 10877 | |
8d138742 CE |
10878 | /* Override any GCC internal prototype to avoid an error. |
10879 | Use char because int might match the return type of a GCC | |
10880 | builtin and then its argument prototype would still apply. */ | |
10881 | #ifdef __cplusplus | |
10882 | extern "C" | |
10883 | #endif | |
10884 | char dlopen (); | |
10885 | int | |
10886 | main () | |
10887 | { | |
10888 | return dlopen (); | |
10889 | ; | |
10890 | return 0; | |
10891 | } | |
10892 | _ACEOF | |
b0322a85 | 10893 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
10894 | ac_cv_lib_svld_dlopen=yes |
10895 | else | |
b0322a85 | 10896 | ac_cv_lib_svld_dlopen=no |
8d138742 | 10897 | fi |
b0322a85 CE |
10898 | rm -f core conftest.err conftest.$ac_objext \ |
10899 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
10900 | LIBS=$ac_check_lib_save_LIBS |
10901 | fi | |
b0322a85 | 10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 10903 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 10904 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
8d138742 CE |
10905 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10906 | else | |
b0322a85 | 10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 10908 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 10909 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
10910 | $as_echo_n "(cached) " >&6 |
10911 | else | |
10912 | ac_check_lib_save_LIBS=$LIBS | |
10913 | LIBS="-ldld $LIBS" | |
b0322a85 | 10914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 10915 | /* end confdefs.h. */ |
d9898ee8 | 10916 | |
8d138742 CE |
10917 | /* Override any GCC internal prototype to avoid an error. |
10918 | Use char because int might match the return type of a GCC | |
10919 | builtin and then its argument prototype would still apply. */ | |
10920 | #ifdef __cplusplus | |
10921 | extern "C" | |
10922 | #endif | |
10923 | char dld_link (); | |
10924 | int | |
10925 | main () | |
10926 | { | |
10927 | return dld_link (); | |
10928 | ; | |
10929 | return 0; | |
10930 | } | |
10931 | _ACEOF | |
b0322a85 | 10932 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
10933 | ac_cv_lib_dld_dld_link=yes |
10934 | else | |
b0322a85 | 10935 | ac_cv_lib_dld_dld_link=no |
8d138742 | 10936 | fi |
b0322a85 CE |
10937 | rm -f core conftest.err conftest.$ac_objext \ |
10938 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
10939 | LIBS=$ac_check_lib_save_LIBS |
10940 | fi | |
b0322a85 | 10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 10942 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 10943 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
8d138742 CE |
10944 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
10945 | fi | |
d9898ee8 | 10946 | |
d9898ee8 | 10947 | |
8d138742 | 10948 | fi |
d9898ee8 | 10949 | |
d9898ee8 | 10950 | |
8d138742 | 10951 | fi |
d9898ee8 | 10952 | |
d9898ee8 | 10953 | |
8d138742 | 10954 | fi |
d9898ee8 | 10955 | |
d9898ee8 | 10956 | |
8d138742 | 10957 | fi |
d9898ee8 | 10958 | |
d9898ee8 | 10959 | |
8d138742 | 10960 | fi |
d9898ee8 | 10961 | |
8d138742 CE |
10962 | ;; |
10963 | esac | |
d9898ee8 | 10964 | |
8d138742 CE |
10965 | if test "x$lt_cv_dlopen" != xno; then |
10966 | enable_dlopen=yes | |
10967 | else | |
10968 | enable_dlopen=no | |
10969 | fi | |
d9898ee8 | 10970 | |
8d138742 CE |
10971 | case $lt_cv_dlopen in |
10972 | dlopen) | |
10973 | save_CPPFLAGS="$CPPFLAGS" | |
10974 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 10975 | |
8d138742 CE |
10976 | save_LDFLAGS="$LDFLAGS" |
10977 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 10978 | |
8d138742 CE |
10979 | save_LIBS="$LIBS" |
10980 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 10981 | |
b0322a85 | 10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 10983 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 10984 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
10985 | $as_echo_n "(cached) " >&6 |
10986 | else | |
10987 | if test "$cross_compiling" = yes; then : | |
10988 | lt_cv_dlopen_self=cross | |
10989 | else | |
10990 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10991 | lt_status=$lt_dlunknown | |
10992 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 10993 | #line $LINENO "configure" |
8d138742 | 10994 | #include "confdefs.h" |
d9898ee8 | 10995 | |
8d138742 CE |
10996 | #if HAVE_DLFCN_H |
10997 | #include <dlfcn.h> | |
10998 | #endif | |
d9898ee8 | 10999 | |
8d138742 | 11000 | #include <stdio.h> |
d9898ee8 | 11001 | |
8d138742 CE |
11002 | #ifdef RTLD_GLOBAL |
11003 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11004 | #else | |
11005 | # ifdef DL_GLOBAL | |
11006 | # define LT_DLGLOBAL DL_GLOBAL | |
11007 | # else | |
11008 | # define LT_DLGLOBAL 0 | |
11009 | # endif | |
11010 | #endif | |
d9898ee8 | 11011 | |
8d138742 CE |
11012 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11013 | find out it does not work in some platform. */ | |
11014 | #ifndef LT_DLLAZY_OR_NOW | |
11015 | # ifdef RTLD_LAZY | |
11016 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11017 | # else | |
11018 | # ifdef DL_LAZY | |
11019 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11020 | # else | |
11021 | # ifdef RTLD_NOW | |
11022 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11023 | # else | |
11024 | # ifdef DL_NOW | |
11025 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11026 | # else | |
11027 | # define LT_DLLAZY_OR_NOW 0 | |
11028 | # endif | |
11029 | # endif | |
11030 | # endif | |
11031 | # endif | |
11032 | #endif | |
d9898ee8 | 11033 | |
b0322a85 CE |
11034 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11035 | correspondingly for the symbols needed. */ | |
11036 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11037 | int fnord () __attribute__((visibility("default"))); | |
11038 | #endif | |
11039 | ||
11040 | int fnord () { return 42; } | |
8d138742 CE |
11041 | int main () |
11042 | { | |
11043 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11044 | int status = $lt_dlunknown; | |
d9898ee8 | 11045 | |
8d138742 CE |
11046 | if (self) |
11047 | { | |
11048 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11049 | else |
11050 | { | |
11051 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11052 | else puts (dlerror ()); | |
11053 | } | |
8d138742 CE |
11054 | /* dlclose (self); */ |
11055 | } | |
11056 | else | |
11057 | puts (dlerror ()); | |
d9898ee8 | 11058 | |
8d138742 CE |
11059 | return status; |
11060 | } | |
11061 | _LT_EOF | |
b0322a85 | 11062 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11063 | (eval $ac_link) 2>&5 |
11064 | ac_status=$? | |
b0322a85 CE |
11065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11066 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8d138742 CE |
11067 | (./conftest; exit; ) >&5 2>/dev/null |
11068 | lt_status=$? | |
11069 | case x$lt_status in | |
11070 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11071 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11072 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11073 | esac | |
11074 | else : | |
11075 | # compilation failed | |
11076 | lt_cv_dlopen_self=no | |
11077 | fi | |
11078 | fi | |
11079 | rm -fr conftest* | |
d9898ee8 | 11080 | |
d9898ee8 | 11081 | |
8d138742 | 11082 | fi |
b0322a85 | 11083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11084 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11085 | |
8d138742 CE |
11086 | if test "x$lt_cv_dlopen_self" = xyes; then |
11087 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
b0322a85 | 11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11089 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11090 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 CE |
11091 | $as_echo_n "(cached) " >&6 |
11092 | else | |
11093 | if test "$cross_compiling" = yes; then : | |
11094 | lt_cv_dlopen_self_static=cross | |
11095 | else | |
11096 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11097 | lt_status=$lt_dlunknown | |
11098 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11099 | #line $LINENO "configure" |
8d138742 | 11100 | #include "confdefs.h" |
d9898ee8 | 11101 | |
8d138742 CE |
11102 | #if HAVE_DLFCN_H |
11103 | #include <dlfcn.h> | |
11104 | #endif | |
d9898ee8 | 11105 | |
8d138742 | 11106 | #include <stdio.h> |
d9898ee8 | 11107 | |
8d138742 CE |
11108 | #ifdef RTLD_GLOBAL |
11109 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11110 | #else | |
11111 | # ifdef DL_GLOBAL | |
11112 | # define LT_DLGLOBAL DL_GLOBAL | |
11113 | # else | |
11114 | # define LT_DLGLOBAL 0 | |
11115 | # endif | |
11116 | #endif | |
d9898ee8 | 11117 | |
8d138742 CE |
11118 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11119 | find out it does not work in some platform. */ | |
11120 | #ifndef LT_DLLAZY_OR_NOW | |
11121 | # ifdef RTLD_LAZY | |
11122 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11123 | # else | |
11124 | # ifdef DL_LAZY | |
11125 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11126 | # else | |
11127 | # ifdef RTLD_NOW | |
11128 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11129 | # else | |
11130 | # ifdef DL_NOW | |
11131 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11132 | # else | |
11133 | # define LT_DLLAZY_OR_NOW 0 | |
11134 | # endif | |
11135 | # endif | |
11136 | # endif | |
11137 | # endif | |
11138 | #endif | |
d9898ee8 | 11139 | |
b0322a85 CE |
11140 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11141 | correspondingly for the symbols needed. */ | |
11142 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11143 | int fnord () __attribute__((visibility("default"))); | |
11144 | #endif | |
11145 | ||
11146 | int fnord () { return 42; } | |
8d138742 CE |
11147 | int main () |
11148 | { | |
11149 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11150 | int status = $lt_dlunknown; | |
d9898ee8 | 11151 | |
8d138742 CE |
11152 | if (self) |
11153 | { | |
11154 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11155 | else |
11156 | { | |
11157 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11158 | else puts (dlerror ()); | |
11159 | } | |
8d138742 CE |
11160 | /* dlclose (self); */ |
11161 | } | |
11162 | else | |
11163 | puts (dlerror ()); | |
d9898ee8 | 11164 | |
8d138742 CE |
11165 | return status; |
11166 | } | |
11167 | _LT_EOF | |
b0322a85 | 11168 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11169 | (eval $ac_link) 2>&5 |
11170 | ac_status=$? | |
b0322a85 CE |
11171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11172 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8d138742 CE |
11173 | (./conftest; exit; ) >&5 2>/dev/null |
11174 | lt_status=$? | |
11175 | case x$lt_status in | |
11176 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11177 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11178 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11179 | esac | |
11180 | else : | |
11181 | # compilation failed | |
11182 | lt_cv_dlopen_self_static=no | |
11183 | fi | |
11184 | fi | |
11185 | rm -fr conftest* | |
d9898ee8 | 11186 | |
d9898ee8 | 11187 | |
8d138742 | 11188 | fi |
b0322a85 | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11190 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11191 | fi | |
d9898ee8 | 11192 | |
8d138742 CE |
11193 | CPPFLAGS="$save_CPPFLAGS" |
11194 | LDFLAGS="$save_LDFLAGS" | |
11195 | LIBS="$save_LIBS" | |
11196 | ;; | |
11197 | esac | |
d9898ee8 | 11198 | |
8d138742 CE |
11199 | case $lt_cv_dlopen_self in |
11200 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11201 | *) enable_dlopen_self=unknown ;; | |
11202 | esac | |
d9898ee8 | 11203 | |
8d138742 CE |
11204 | case $lt_cv_dlopen_self_static in |
11205 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11206 | *) enable_dlopen_self_static=unknown ;; | |
11207 | esac | |
11208 | fi | |
d9898ee8 | 11209 | |
d9898ee8 | 11210 | |
d9898ee8 | 11211 | |
d9898ee8 | 11212 | |
d9898ee8 | 11213 | |
d9898ee8 | 11214 | |
d9898ee8 | 11215 | |
d9898ee8 | 11216 | |
d9898ee8 | 11217 | |
d9898ee8 | 11218 | |
d9898ee8 | 11219 | |
11220 | ||
d9898ee8 | 11221 | |
11222 | ||
d9898ee8 | 11223 | |
d9898ee8 | 11224 | |
d9898ee8 | 11225 | |
8d138742 CE |
11226 | striplib= |
11227 | old_striplib= | |
b0322a85 | 11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11229 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11230 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11231 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11232 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11234 | $as_echo "yes" >&6; } |
11235 | else | |
11236 | # FIXME - insert some real tests, host_os isn't really good enough | |
11237 | case $host_os in | |
11238 | darwin*) | |
11239 | if test -n "$STRIP" ; then | |
11240 | striplib="$STRIP -x" | |
11241 | old_striplib="$STRIP -S" | |
b0322a85 | 11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11243 | $as_echo "yes" >&6; } |
11244 | else | |
b0322a85 | 11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11246 | $as_echo "no" >&6; } |
11247 | fi | |
11248 | ;; | |
11249 | *) | |
b0322a85 | 11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11251 | $as_echo "no" >&6; } |
11252 | ;; | |
11253 | esac | |
11254 | fi | |
d9898ee8 | 11255 | |
11256 | ||
d9898ee8 | 11257 | |
d9898ee8 | 11258 | |
d9898ee8 | 11259 | |
d9898ee8 | 11260 | |
d9898ee8 | 11261 | |
d9898ee8 | 11262 | |
d9898ee8 | 11263 | |
d9898ee8 | 11264 | |
11265 | ||
d9898ee8 | 11266 | |
8d138742 | 11267 | # Report which library types will actually be built |
b0322a85 | 11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11269 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 11271 | $as_echo "$can_build_shared" >&6; } |
d9898ee8 | 11272 | |
b0322a85 | 11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 CE |
11274 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
11275 | test "$can_build_shared" = "no" && enable_shared=no | |
d9898ee8 | 11276 | |
8d138742 CE |
11277 | # On AIX, shared libraries and static libraries use the same namespace, and |
11278 | # are all built from PIC. | |
11279 | case $host_os in | |
11280 | aix3*) | |
11281 | test "$enable_shared" = yes && enable_static=no | |
11282 | if test -n "$RANLIB"; then | |
11283 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11284 | postinstall_cmds='$RANLIB $lib' | |
11285 | fi | |
11286 | ;; | |
d9898ee8 | 11287 | |
8d138742 CE |
11288 | aix[4-9]*) |
11289 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11290 | test "$enable_shared" = yes && enable_static=no | |
11291 | fi | |
d9898ee8 | 11292 | ;; |
11293 | esac | |
b0322a85 | 11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 11295 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 11296 | |
b0322a85 | 11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
11298 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11299 | # Make sure either enable_shared or enable_static is yes. | |
11300 | test "$enable_shared" = yes || enable_static=yes | |
b0322a85 | 11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 11302 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 11303 | |
d9898ee8 | 11304 | |
d9898ee8 | 11305 | |
d9898ee8 | 11306 | |
8d138742 CE |
11307 | fi |
11308 | ac_ext=c | |
11309 | ac_cpp='$CPP $CPPFLAGS' | |
11310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 11313 | |
8d138742 | 11314 | CC="$lt_save_CC" |
d9898ee8 | 11315 | |
d9898ee8 | 11316 | |
d9898ee8 | 11317 | |
d9898ee8 | 11318 | |
d9898ee8 | 11319 | |
d9898ee8 | 11320 | |
d9898ee8 | 11321 | |
d9898ee8 | 11322 | |
d9898ee8 | 11323 | |
d9898ee8 | 11324 | |
d9898ee8 | 11325 | |
d9898ee8 | 11326 | |
d9898ee8 | 11327 | |
b0322a85 CE |
11328 | |
11329 | ||
8d138742 | 11330 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11331 | |
d9898ee8 | 11332 | |
d9898ee8 | 11333 | |
d9898ee8 | 11334 | |
8d138742 | 11335 | # Only expand once: |
d9898ee8 | 11336 | |
d9898ee8 | 11337 | |
d9898ee8 | 11338 | |
8d138742 CE |
11339 | if test x$GCC = xyes |
11340 | then | |
11341 | CFLAGS="-Wall $CFLAGS" | |
11342 | fi | |
11343 | if test x$GXX = xyes | |
11344 | then | |
11345 | CXXFLAGS="-Wall $CXXFLAGS" | |
11346 | fi | |
d9898ee8 | 11347 | |
b0322a85 CE |
11348 | CFLAGS="-I../libs -I$srcdir/../libs $CFLAGS" |
11349 | CXXFLAGS="-I../libs -I$srcdir/../libs $CXXFLAGS" | |
11350 | ||
11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
8d138742 | 11352 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 11353 | if ${ac_cv_c_const+:} false; then : |
8d138742 CE |
11354 | $as_echo_n "(cached) " >&6 |
11355 | else | |
b0322a85 | 11356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11357 | /* end confdefs.h. */ |
d9898ee8 | 11358 | |
8d138742 CE |
11359 | int |
11360 | main () | |
11361 | { | |
b0322a85 | 11362 | |
8d138742 | 11363 | #ifndef __cplusplus |
b0322a85 | 11364 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 11365 | typedef int charset[2]; |
b0322a85 | 11366 | const charset cs = { 0, 0 }; |
8d138742 CE |
11367 | /* SunOS 4.1.1 cc rejects this. */ |
11368 | char const *const *pcpcc; | |
11369 | char **ppc; | |
11370 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11371 | struct point {int x, y;}; | |
11372 | static struct point const zero = {0,0}; | |
11373 | /* AIX XL C 1.02.0.0 rejects this. | |
11374 | It does not let you subtract one const X* pointer from another in | |
11375 | an arm of an if-expression whose if-part is not a constant | |
11376 | expression */ | |
11377 | const char *g = "string"; | |
11378 | pcpcc = &g + (g ? g-g : 0); | |
11379 | /* HPUX 7.0 cc rejects these. */ | |
11380 | ++pcpcc; | |
11381 | ppc = (char**) pcpcc; | |
11382 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
11383 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
11384 | char tx; | |
11385 | char *t = &tx; | |
8d138742 | 11386 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
d9898ee8 | 11387 | |
8d138742 CE |
11388 | *t++ = 0; |
11389 | if (s) return 0; | |
11390 | } | |
11391 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11392 | int x[] = {25, 17}; | |
11393 | const int *foo = &x[0]; | |
11394 | ++foo; | |
11395 | } | |
11396 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11397 | typedef const int *iptr; | |
11398 | iptr p = 0; | |
11399 | ++p; | |
11400 | } | |
b0322a85 | 11401 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 11402 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
11403 | struct s { int j; const int *ap[3]; } bx; |
11404 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
11405 | } |
11406 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11407 | const int foo = 10; | |
11408 | if (!foo) return 0; | |
11409 | } | |
11410 | return !cs[0] && !zero.x; | |
11411 | #endif | |
d9898ee8 | 11412 | |
8d138742 CE |
11413 | ; |
11414 | return 0; | |
11415 | } | |
11416 | _ACEOF | |
b0322a85 | 11417 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
11418 | ac_cv_c_const=yes |
11419 | else | |
b0322a85 | 11420 | ac_cv_c_const=no |
8d138742 | 11421 | fi |
8d138742 CE |
11422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11423 | fi | |
b0322a85 | 11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
11425 | $as_echo "$ac_cv_c_const" >&6; } |
11426 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 11427 | |
b0322a85 | 11428 | $as_echo "#define const /**/" >>confdefs.h |
d9898ee8 | 11429 | |
8d138742 CE |
11430 | fi |
11431 | ||
b0322a85 | 11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 11433 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 11434 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
11435 | $as_echo_n "(cached) " >&6 |
11436 | else | |
b0322a85 | 11437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11438 | /* end confdefs.h. */ |
11439 | #include <stdlib.h> | |
11440 | #include <stdarg.h> | |
11441 | #include <string.h> | |
11442 | #include <float.h> | |
11443 | ||
11444 | int | |
11445 | main () | |
11446 | { | |
11447 | ||
11448 | ; | |
11449 | return 0; | |
11450 | } | |
11451 | _ACEOF | |
b0322a85 | 11452 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
11453 | ac_cv_header_stdc=yes |
11454 | else | |
b0322a85 | 11455 | ac_cv_header_stdc=no |
8d138742 | 11456 | fi |
8d138742 | 11457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11458 | |
8d138742 CE |
11459 | if test $ac_cv_header_stdc = yes; then |
11460 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 11461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11462 | /* end confdefs.h. */ |
11463 | #include <string.h> | |
d9898ee8 | 11464 | |
8d138742 CE |
11465 | _ACEOF |
11466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
11467 | $EGREP "memchr" >/dev/null 2>&1; then : |
11468 | ||
8d138742 CE |
11469 | else |
11470 | ac_cv_header_stdc=no | |
11471 | fi | |
11472 | rm -f conftest* | |
d9898ee8 | 11473 | |
8d138742 | 11474 | fi |
d9898ee8 | 11475 | |
8d138742 CE |
11476 | if test $ac_cv_header_stdc = yes; then |
11477 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 11478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11479 | /* end confdefs.h. */ |
11480 | #include <stdlib.h> | |
d9898ee8 | 11481 | |
8d138742 CE |
11482 | _ACEOF |
11483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
11484 | $EGREP "free" >/dev/null 2>&1; then : |
11485 | ||
8d138742 CE |
11486 | else |
11487 | ac_cv_header_stdc=no | |
11488 | fi | |
11489 | rm -f conftest* | |
d9898ee8 | 11490 | |
8d138742 | 11491 | fi |
d9898ee8 | 11492 | |
8d138742 CE |
11493 | if test $ac_cv_header_stdc = yes; then |
11494 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 11495 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
11496 | : |
11497 | else | |
b0322a85 | 11498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11499 | /* end confdefs.h. */ |
11500 | #include <ctype.h> | |
11501 | #include <stdlib.h> | |
11502 | #if ((' ' & 0x0FF) == 0x020) | |
11503 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11504 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11505 | #else | |
11506 | # define ISLOWER(c) \ | |
11507 | (('a' <= (c) && (c) <= 'i') \ | |
11508 | || ('j' <= (c) && (c) <= 'r') \ | |
11509 | || ('s' <= (c) && (c) <= 'z')) | |
11510 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11511 | #endif | |
d9898ee8 | 11512 | |
8d138742 CE |
11513 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
11514 | int | |
11515 | main () | |
11516 | { | |
11517 | int i; | |
11518 | for (i = 0; i < 256; i++) | |
11519 | if (XOR (islower (i), ISLOWER (i)) | |
11520 | || toupper (i) != TOUPPER (i)) | |
11521 | return 2; | |
11522 | return 0; | |
11523 | } | |
11524 | _ACEOF | |
b0322a85 | 11525 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 11526 | |
b0322a85 CE |
11527 | else |
11528 | ac_cv_header_stdc=no | |
8d138742 | 11529 | fi |
b0322a85 CE |
11530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11531 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 11532 | fi |
d9898ee8 | 11533 | |
8d138742 CE |
11534 | fi |
11535 | fi | |
b0322a85 | 11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
11537 | $as_echo "$ac_cv_header_stdc" >&6; } |
11538 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 11539 | |
b0322a85 | 11540 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 11541 | |
8d138742 | 11542 | fi |
d9898ee8 | 11543 | |
b0322a85 CE |
11544 | for ac_header in fcntl.h string.h syslog.h |
11545 | do : | |
11546 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11547 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
11548 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
11549 | cat >>confdefs.h <<_ACEOF | |
11550 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11551 | _ACEOF | |
d9898ee8 | 11552 | |
b0322a85 | 11553 | fi |
d9898ee8 | 11554 | |
b0322a85 | 11555 | done |
d9898ee8 | 11556 | |
b0322a85 CE |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
11558 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
11559 | if ${ac_cv_type_uid_t+:} false; then : | |
8d138742 | 11560 | $as_echo_n "(cached) " >&6 |
8d138742 | 11561 | else |
b0322a85 | 11562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11563 | /* end confdefs.h. */ |
b0322a85 CE |
11564 | #include <sys/types.h> |
11565 | ||
8d138742 | 11566 | _ACEOF |
b0322a85 CE |
11567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11568 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
11569 | ac_cv_type_uid_t=yes | |
8d138742 | 11570 | else |
b0322a85 CE |
11571 | ac_cv_type_uid_t=no |
11572 | fi | |
11573 | rm -f conftest* | |
d9898ee8 | 11574 | |
8d138742 | 11575 | fi |
b0322a85 CE |
11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
11577 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
11578 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 11579 | |
b0322a85 | 11580 | $as_echo "#define uid_t int" >>confdefs.h |
d9898ee8 | 11581 | |
d9898ee8 | 11582 | |
b0322a85 CE |
11583 | $as_echo "#define gid_t int" >>confdefs.h |
11584 | ||
8d138742 | 11585 | fi |
d9898ee8 | 11586 | |
b0322a85 CE |
11587 | # Check whether --enable-largefile was given. |
11588 | if test "${enable_largefile+set}" = set; then : | |
11589 | enableval=$enable_largefile; | |
11590 | fi | |
d9898ee8 | 11591 | |
b0322a85 CE |
11592 | if test "$enable_largefile" != no; then |
11593 | ||
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11595 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
11596 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8d138742 CE |
11597 | $as_echo_n "(cached) " >&6 |
11598 | else | |
b0322a85 CE |
11599 | ac_cv_sys_largefile_CC=no |
11600 | if test "$GCC" != yes; then | |
11601 | ac_save_CC=$CC | |
11602 | while :; do | |
11603 | # IRIX 6.2 and later do not support large files by default, | |
11604 | # so use the C compiler's -n32 option if that helps. | |
11605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11606 | /* end confdefs.h. */ | |
11607 | #include <sys/types.h> | |
11608 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11609 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11610 | since some C++ compilers masquerading as C compilers | |
11611 | incorrectly reject 9223372036854775807. */ | |
11612 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11613 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11614 | && LARGE_OFF_T % 2147483647 == 1) | |
11615 | ? 1 : -1]; | |
11616 | int | |
11617 | main () | |
11618 | { | |
d9898ee8 | 11619 | |
b0322a85 CE |
11620 | ; |
11621 | return 0; | |
11622 | } | |
8d138742 | 11623 | _ACEOF |
b0322a85 CE |
11624 | if ac_fn_c_try_compile "$LINENO"; then : |
11625 | break | |
8d138742 | 11626 | fi |
b0322a85 CE |
11627 | rm -f core conftest.err conftest.$ac_objext |
11628 | CC="$CC -n32" | |
11629 | if ac_fn_c_try_compile "$LINENO"; then : | |
11630 | ac_cv_sys_largefile_CC=' -n32'; break | |
11631 | fi | |
11632 | rm -f core conftest.err conftest.$ac_objext | |
11633 | break | |
11634 | done | |
11635 | CC=$ac_save_CC | |
11636 | rm -f conftest.$ac_ext | |
11637 | fi | |
11638 | fi | |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11640 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11641 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11642 | CC=$CC$ac_cv_sys_largefile_CC | |
11643 | fi | |
d9898ee8 | 11644 | |
b0322a85 CE |
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
11646 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
11647 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8d138742 CE |
11648 | $as_echo_n "(cached) " >&6 |
11649 | else | |
b0322a85 CE |
11650 | while :; do |
11651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
11652 | /* end confdefs.h. */ |
11653 | #include <sys/types.h> | |
b0322a85 CE |
11654 | /* Check that off_t can represent 2**63 - 1 correctly. |
11655 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11656 | since some C++ compilers masquerading as C compilers | |
11657 | incorrectly reject 9223372036854775807. */ | |
11658 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11659 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11660 | && LARGE_OFF_T % 2147483647 == 1) | |
11661 | ? 1 : -1]; | |
11662 | int | |
11663 | main () | |
11664 | { | |
d9898ee8 | 11665 | |
b0322a85 CE |
11666 | ; |
11667 | return 0; | |
11668 | } | |
8d138742 | 11669 | _ACEOF |
b0322a85 CE |
11670 | if ac_fn_c_try_compile "$LINENO"; then : |
11671 | ac_cv_sys_file_offset_bits=no; break | |
8d138742 | 11672 | fi |
b0322a85 CE |
11673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11675 | /* end confdefs.h. */ | |
11676 | #define _FILE_OFFSET_BITS 64 | |
11677 | #include <sys/types.h> | |
11678 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11679 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11680 | since some C++ compilers masquerading as C compilers | |
11681 | incorrectly reject 9223372036854775807. */ | |
11682 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11683 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11684 | && LARGE_OFF_T % 2147483647 == 1) | |
11685 | ? 1 : -1]; | |
11686 | int | |
11687 | main () | |
11688 | { | |
d9898ee8 | 11689 | |
b0322a85 CE |
11690 | ; |
11691 | return 0; | |
11692 | } | |
8d138742 | 11693 | _ACEOF |
b0322a85 CE |
11694 | if ac_fn_c_try_compile "$LINENO"; then : |
11695 | ac_cv_sys_file_offset_bits=64; break | |
8d138742 | 11696 | fi |
b0322a85 CE |
11697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11698 | ac_cv_sys_file_offset_bits=unknown | |
11699 | break | |
11700 | done | |
11701 | fi | |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
11703 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11704 | case $ac_cv_sys_file_offset_bits in #( | |
11705 | no | unknown) ;; | |
11706 | *) | |
11707 | cat >>confdefs.h <<_ACEOF | |
11708 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11709 | _ACEOF | |
11710 | ;; | |
11711 | esac | |
11712 | rm -rf conftest* | |
11713 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11715 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
11716 | if ${ac_cv_sys_large_files+:} false; then : | |
8d138742 CE |
11717 | $as_echo_n "(cached) " >&6 |
11718 | else | |
b0322a85 CE |
11719 | while :; do |
11720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 11721 | /* end confdefs.h. */ |
b0322a85 CE |
11722 | #include <sys/types.h> |
11723 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11724 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11725 | since some C++ compilers masquerading as C compilers | |
11726 | incorrectly reject 9223372036854775807. */ | |
11727 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11728 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11729 | && LARGE_OFF_T % 2147483647 == 1) | |
11730 | ? 1 : -1]; | |
11731 | int | |
11732 | main () | |
11733 | { | |
d9898ee8 | 11734 | |
b0322a85 CE |
11735 | ; |
11736 | return 0; | |
11737 | } | |
11738 | _ACEOF | |
11739 | if ac_fn_c_try_compile "$LINENO"; then : | |
11740 | ac_cv_sys_large_files=no; break | |
11741 | fi | |
11742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11744 | /* end confdefs.h. */ | |
11745 | #define _LARGE_FILES 1 | |
11746 | #include <sys/types.h> | |
11747 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11748 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11749 | since some C++ compilers masquerading as C compilers | |
11750 | incorrectly reject 9223372036854775807. */ | |
11751 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11752 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11753 | && LARGE_OFF_T % 2147483647 == 1) | |
11754 | ? 1 : -1]; | |
8d138742 CE |
11755 | int |
11756 | main () | |
11757 | { | |
b0322a85 | 11758 | |
8d138742 CE |
11759 | ; |
11760 | return 0; | |
11761 | } | |
11762 | _ACEOF | |
b0322a85 CE |
11763 | if ac_fn_c_try_compile "$LINENO"; then : |
11764 | ac_cv_sys_large_files=1; break | |
11765 | fi | |
11766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11767 | ac_cv_sys_large_files=unknown | |
11768 | break | |
11769 | done | |
11770 | fi | |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
11772 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
11773 | case $ac_cv_sys_large_files in #( | |
11774 | no | unknown) ;; | |
11775 | *) | |
11776 | cat >>confdefs.h <<_ACEOF | |
11777 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11778 | _ACEOF | |
11779 | ;; | |
8d138742 | 11780 | esac |
b0322a85 CE |
11781 | rm -rf conftest* |
11782 | fi | |
d9898ee8 | 11783 | |
d9898ee8 | 11784 | |
8d138742 | 11785 | fi |
b0322a85 CE |
11786 | |
11787 | for ac_func in strchr | |
11788 | do : | |
11789 | ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" | |
11790 | if test "x$ac_cv_func_strchr" = xyes; then : | |
8d138742 | 11791 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 11792 | #define HAVE_STRCHR 1 |
8d138742 | 11793 | _ACEOF |
d9898ee8 | 11794 | |
8d138742 CE |
11795 | fi |
11796 | done | |
d9898ee8 | 11797 | |
d9898ee8 | 11798 | |
d9898ee8 | 11799 | |
8d138742 | 11800 | # Check whether --with-syslog was given. |
b0322a85 | 11801 | if test "${with_syslog+set}" = set; then : |
8d138742 CE |
11802 | withval=$with_syslog; logdest="LOG_$withval" |
11803 | else | |
11804 | logdest="LOG_MAIL" | |
11805 | fi | |
d9898ee8 | 11806 | |
d9898ee8 | 11807 | |
d9898ee8 | 11808 | |
8d138742 CE |
11809 | cat >>confdefs.h <<_ACEOF |
11810 | #define LOG_DEST $logdest | |
11811 | _ACEOF | |
d9898ee8 | 11812 | |
b0322a85 | 11813 | if test -d ${srcdir}/../libs/docbook; then |
8d138742 CE |
11814 | HAVE_SGML_TRUE= |
11815 | HAVE_SGML_FALSE='#' | |
11816 | else | |
11817 | HAVE_SGML_TRUE='#' | |
11818 | HAVE_SGML_FALSE= | |
11819 | fi | |
d9898ee8 | 11820 | |
8d138742 | 11821 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 11822 | |
8d138742 CE |
11823 | cat >confcache <<\_ACEOF |
11824 | # This file is a shell script that caches the results of configure | |
11825 | # tests run on this system so they can be shared between configure | |
11826 | # scripts and configure runs, see configure's option --config-cache. | |
11827 | # It is not useful on other systems. If it contains results you don't | |
11828 | # want to keep, you may remove or edit it. | |
11829 | # | |
11830 | # config.status only pays attention to the cache file if you give it | |
11831 | # the --recheck option to rerun configure. | |
11832 | # | |
11833 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11834 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11835 | # following values. | |
d9898ee8 | 11836 | |
8d138742 | 11837 | _ACEOF |
d9898ee8 | 11838 | |
8d138742 CE |
11839 | # The following way of writing the cache mishandles newlines in values, |
11840 | # but we know of no workaround that is simple, portable, and efficient. | |
11841 | # So, we kill variables containing newlines. | |
11842 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11843 | # and sets the high bit in the cache file unless we assign to the vars. | |
11844 | ( | |
11845 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11846 | eval ac_val=\$$ac_var | |
11847 | case $ac_val in #( | |
11848 | *${as_nl}*) | |
11849 | case $ac_var in #( | |
b0322a85 | 11850 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
11851 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
11852 | esac | |
11853 | case $ac_var in #( | |
11854 | _ | IFS | as_nl) ;; #( | |
11855 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 11856 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
11857 | esac ;; |
11858 | esac | |
11859 | done | |
d9898ee8 | 11860 | |
8d138742 CE |
11861 | (set) 2>&1 | |
11862 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11863 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
11864 | # `set' does not quote correctly, so add quotes: double-quote |
11865 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
11866 | sed -n \ |
11867 | "s/'/'\\\\''/g; | |
11868 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11869 | ;; #( | |
11870 | *) | |
11871 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11872 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11873 | ;; | |
11874 | esac | | |
11875 | sort | |
11876 | ) | | |
11877 | sed ' | |
11878 | /^ac_cv_env_/b end | |
11879 | t clear | |
11880 | :clear | |
11881 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11882 | t end | |
11883 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11884 | :end' >>confcache | |
11885 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11886 | if test -w "$cache_file"; then | |
b0322a85 CE |
11887 | if test "x$cache_file" != "x/dev/null"; then |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 11889 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
11890 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
11891 | cat confcache >"$cache_file" | |
11892 | else | |
11893 | case $cache_file in #( | |
11894 | */* | ?:*) | |
11895 | mv -f confcache "$cache_file"$$ && | |
11896 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
11897 | *) | |
11898 | mv -f confcache "$cache_file" ;; | |
11899 | esac | |
11900 | fi | |
11901 | fi | |
8d138742 | 11902 | else |
b0322a85 | 11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
11904 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
11905 | fi | |
11906 | fi | |
11907 | rm -f confcache | |
d9898ee8 | 11908 | |
8d138742 CE |
11909 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11910 | # Let make expand exec_prefix. | |
11911 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 11912 | |
8d138742 | 11913 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 11914 | |
8d138742 CE |
11915 | ac_libobjs= |
11916 | ac_ltlibobjs= | |
11917 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11918 | # 1. Remove the extension, and $U if already installed. | |
11919 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11920 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11921 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11922 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
11923 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
11924 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
11925 | done |
11926 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 11927 | |
8d138742 | 11928 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 11929 | |
11930 | ||
b0322a85 CE |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
11932 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
11933 | if test -n "$am_sleep_pid"; then | |
11934 | # Hide warnings about reused PIDs. | |
11935 | wait $am_sleep_pid 2>/dev/null | |
11936 | fi | |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
11938 | $as_echo "done" >&6; } | |
8d138742 CE |
11939 | if test -n "$EXEEXT"; then |
11940 | am__EXEEXT_TRUE= | |
11941 | am__EXEEXT_FALSE='#' | |
d9898ee8 | 11942 | else |
8d138742 CE |
11943 | am__EXEEXT_TRUE='#' |
11944 | am__EXEEXT_FALSE= | |
d9898ee8 | 11945 | fi |
11946 | ||
8d138742 | 11947 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
11948 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
11949 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
11950 | fi |
11951 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
11952 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
11953 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
11954 | fi |
11955 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
b0322a85 CE |
11956 | as_fn_error $? "conditional \"HAVE_SGML\" was never defined. |
11957 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 | 11958 | fi |
d9898ee8 | 11959 | |
b0322a85 | 11960 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
11961 | ac_write_fail=0 |
11962 | ac_clean_files_save=$ac_clean_files | |
11963 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 11965 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
11966 | as_write_fail=0 |
11967 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
11968 | #! $SHELL |
11969 | # Generated by $as_me. | |
11970 | # Run this file to recreate the current configuration. | |
11971 | # Compiler output produced by configure, useful for debugging | |
11972 | # configure, is in config.log if it exists. | |
d9898ee8 | 11973 | |
8d138742 CE |
11974 | debug=false |
11975 | ac_cs_recheck=false | |
11976 | ac_cs_silent=false | |
d9898ee8 | 11977 | |
b0322a85 CE |
11978 | SHELL=\${CONFIG_SHELL-$SHELL} |
11979 | export SHELL | |
11980 | _ASEOF | |
11981 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11982 | ## -------------------- ## | |
11983 | ## M4sh Initialization. ## | |
11984 | ## -------------------- ## | |
d9898ee8 | 11985 | |
8d138742 CE |
11986 | # Be more Bourne compatible |
11987 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 11988 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
11989 | emulate sh |
11990 | NULLCMD=: | |
11991 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11992 | # is contrary to our usage. Disable this feature. | |
11993 | alias -g '${1+"$@"}'='"$@"' | |
11994 | setopt NO_GLOB_SUBST | |
11995 | else | |
b0322a85 CE |
11996 | case `(set -o) 2>/dev/null` in #( |
11997 | *posix*) : | |
11998 | set -o posix ;; #( | |
11999 | *) : | |
12000 | ;; | |
8d138742 | 12001 | esac |
d9898ee8 | 12002 | fi |
12003 | ||
12004 | ||
8d138742 CE |
12005 | as_nl=' |
12006 | ' | |
12007 | export as_nl | |
12008 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12009 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12010 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12011 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
12012 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12013 | # but without wasting forks for bash or zsh. | |
12014 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12015 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12016 | as_echo='print -r --' | |
12017 | as_echo_n='print -rn --' | |
12018 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
12019 | as_echo='printf %s\n' |
12020 | as_echo_n='printf %s' | |
12021 | else | |
12022 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12023 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12024 | as_echo_n='/usr/ucb/echo -n' | |
12025 | else | |
12026 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12027 | as_echo_n_body='eval | |
12028 | arg=$1; | |
b0322a85 | 12029 | case $arg in #( |
8d138742 CE |
12030 | *"$as_nl"*) |
12031 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12032 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12033 | esac; | |
12034 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12035 | ' | |
12036 | export as_echo_n_body | |
12037 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12038 | fi | |
12039 | export as_echo_body | |
12040 | as_echo='sh -c $as_echo_body as_echo' | |
12041 | fi | |
d9898ee8 | 12042 | |
8d138742 CE |
12043 | # The user is always right. |
12044 | if test "${PATH_SEPARATOR+set}" != set; then | |
12045 | PATH_SEPARATOR=: | |
12046 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12047 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12048 | PATH_SEPARATOR=';' | |
12049 | } | |
12050 | fi | |
d9898ee8 | 12051 | |
d9898ee8 | 12052 | |
8d138742 CE |
12053 | # IFS |
12054 | # We need space, tab and new line, in precisely that order. Quoting is | |
12055 | # there to prevent editors from complaining about space-tab. | |
12056 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12057 | # splitting by setting IFS to empty value.) | |
12058 | IFS=" "" $as_nl" | |
d9898ee8 | 12059 | |
8d138742 | 12060 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
12061 | as_myself= |
12062 | case $0 in #(( | |
8d138742 CE |
12063 | *[\\/]* ) as_myself=$0 ;; |
12064 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12065 | for as_dir in $PATH | |
12066 | do | |
12067 | IFS=$as_save_IFS | |
12068 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12069 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12070 | done | |
8d138742 | 12071 | IFS=$as_save_IFS |
d9898ee8 | 12072 | |
8d138742 CE |
12073 | ;; |
12074 | esac | |
12075 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12076 | # in which case we are not to be found in the path. | |
12077 | if test "x$as_myself" = x; then | |
12078 | as_myself=$0 | |
12079 | fi | |
12080 | if test ! -f "$as_myself"; then | |
12081 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 12082 | exit 1 |
8d138742 | 12083 | fi |
d9898ee8 | 12084 | |
b0322a85 CE |
12085 | # Unset variables that we do not need and which cause bugs (e.g. in |
12086 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12087 | # suppresses any "Segmentation fault" message there. '((' could | |
12088 | # trigger a bug in pdksh 5.2.14. | |
12089 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12090 | do eval test x\${$as_var+set} = xset \ | |
12091 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
12092 | done |
12093 | PS1='$ ' | |
12094 | PS2='> ' | |
12095 | PS4='+ ' | |
d9898ee8 | 12096 | |
8d138742 CE |
12097 | # NLS nuisances. |
12098 | LC_ALL=C | |
12099 | export LC_ALL | |
12100 | LANGUAGE=C | |
12101 | export LANGUAGE | |
d9898ee8 | 12102 | |
b0322a85 CE |
12103 | # CDPATH. |
12104 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12105 | ||
12106 | ||
12107 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12108 | # ---------------------------------------- | |
12109 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12110 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12111 | # script with STATUS, using 1 if that was 0. | |
12112 | as_fn_error () | |
12113 | { | |
12114 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
12115 | if test "$4"; then | |
12116 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12117 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12118 | fi | |
12119 | $as_echo "$as_me: error: $2" >&2 | |
12120 | as_fn_exit $as_status | |
12121 | } # as_fn_error | |
12122 | ||
12123 | ||
12124 | # as_fn_set_status STATUS | |
12125 | # ----------------------- | |
12126 | # Set $? to STATUS, without forking. | |
12127 | as_fn_set_status () | |
12128 | { | |
12129 | return $1 | |
12130 | } # as_fn_set_status | |
12131 | ||
12132 | # as_fn_exit STATUS | |
12133 | # ----------------- | |
12134 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12135 | as_fn_exit () | |
12136 | { | |
12137 | set +e | |
12138 | as_fn_set_status $1 | |
12139 | exit $1 | |
12140 | } # as_fn_exit | |
12141 | ||
12142 | # as_fn_unset VAR | |
12143 | # --------------- | |
12144 | # Portably unset VAR. | |
12145 | as_fn_unset () | |
12146 | { | |
12147 | { eval $1=; unset $1;} | |
12148 | } | |
12149 | as_unset=as_fn_unset | |
12150 | # as_fn_append VAR VALUE | |
12151 | # ---------------------- | |
12152 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12153 | # advantage of any shell optimizations that allow amortized linear growth over | |
12154 | # repeated appends, instead of the typical quadratic growth present in naive | |
12155 | # implementations. | |
12156 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12157 | eval 'as_fn_append () | |
12158 | { | |
12159 | eval $1+=\$2 | |
12160 | }' | |
12161 | else | |
12162 | as_fn_append () | |
12163 | { | |
12164 | eval $1=\$$1\$2 | |
12165 | } | |
12166 | fi # as_fn_append | |
12167 | ||
12168 | # as_fn_arith ARG... | |
12169 | # ------------------ | |
12170 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12171 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12172 | # must be portable across $(()) and expr. | |
12173 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12174 | eval 'as_fn_arith () | |
12175 | { | |
12176 | as_val=$(( $* )) | |
12177 | }' | |
12178 | else | |
12179 | as_fn_arith () | |
12180 | { | |
12181 | as_val=`expr "$@" || test $? -eq 1` | |
12182 | } | |
12183 | fi # as_fn_arith | |
12184 | ||
12185 | ||
8d138742 CE |
12186 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12187 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12188 | as_expr=expr | |
12189 | else | |
12190 | as_expr=false | |
12191 | fi | |
d9898ee8 | 12192 | |
8d138742 CE |
12193 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12194 | as_basename=basename | |
12195 | else | |
12196 | as_basename=false | |
12197 | fi | |
d9898ee8 | 12198 | |
b0322a85 CE |
12199 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12200 | as_dirname=dirname | |
12201 | else | |
12202 | as_dirname=false | |
12203 | fi | |
d9898ee8 | 12204 | |
8d138742 CE |
12205 | as_me=`$as_basename -- "$0" || |
12206 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12207 | X"$0" : 'X\(//\)$' \| \ | |
12208 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12209 | $as_echo X/"$0" | | |
12210 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12211 | s//\1/ | |
12212 | q | |
12213 | } | |
12214 | /^X\/\(\/\/\)$/{ | |
12215 | s//\1/ | |
12216 | q | |
12217 | } | |
12218 | /^X\/\(\/\).*/{ | |
12219 | s//\1/ | |
12220 | q | |
12221 | } | |
12222 | s/.*/./; q'` | |
d9898ee8 | 12223 | |
b0322a85 CE |
12224 | # Avoid depending upon Character Ranges. |
12225 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12226 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12227 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12228 | as_cr_digits='0123456789' | |
12229 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 12230 | |
8d138742 | 12231 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 12232 | case `echo -n x` in #((((( |
8d138742 | 12233 | -n*) |
b0322a85 | 12234 | case `echo 'xy\c'` in |
8d138742 | 12235 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
12236 | xy) ECHO_C='\c';; |
12237 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12238 | ECHO_T=' ';; | |
8d138742 CE |
12239 | esac;; |
12240 | *) | |
12241 | ECHO_N='-n';; | |
12242 | esac | |
b0322a85 CE |
12243 | |
12244 | rm -f conf$$ conf$$.exe conf$$.file | |
12245 | if test -d conf$$.dir; then | |
12246 | rm -f conf$$.dir/conf$$.file | |
d9898ee8 | 12247 | else |
b0322a85 CE |
12248 | rm -f conf$$.dir |
12249 | mkdir conf$$.dir 2>/dev/null | |
12250 | fi | |
12251 | if (echo >conf$$.file) 2>/dev/null; then | |
12252 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12253 | as_ln_s='ln -s' | |
12254 | # ... but there are two gotchas: | |
12255 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12256 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12257 | # In both cases, we have to default to `cp -pR'. | |
12258 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12259 | as_ln_s='cp -pR' | |
12260 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12261 | as_ln_s=ln | |
12262 | else | |
12263 | as_ln_s='cp -pR' | |
12264 | fi | |
12265 | else | |
12266 | as_ln_s='cp -pR' | |
8d138742 | 12267 | fi |
b0322a85 CE |
12268 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12269 | rmdir conf$$.dir 2>/dev/null | |
12270 | ||
12271 | ||
12272 | # as_fn_mkdir_p | |
12273 | # ------------- | |
12274 | # Create "$as_dir" as a directory, including parents if necessary. | |
12275 | as_fn_mkdir_p () | |
12276 | { | |
12277 | ||
12278 | case $as_dir in #( | |
12279 | -*) as_dir=./$as_dir;; | |
12280 | esac | |
12281 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12282 | as_dirs= | |
12283 | while :; do | |
12284 | case $as_dir in #( | |
12285 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12286 | *) as_qdir=$as_dir;; | |
12287 | esac | |
12288 | as_dirs="'$as_qdir' $as_dirs" | |
12289 | as_dir=`$as_dirname -- "$as_dir" || | |
12290 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12291 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12292 | X"$as_dir" : 'X\(//\)$' \| \ | |
12293 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12294 | $as_echo X"$as_dir" | | |
12295 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12296 | s//\1/ | |
12297 | q | |
12298 | } | |
12299 | /^X\(\/\/\)[^/].*/{ | |
12300 | s//\1/ | |
12301 | q | |
12302 | } | |
12303 | /^X\(\/\/\)$/{ | |
12304 | s//\1/ | |
12305 | q | |
12306 | } | |
12307 | /^X\(\/\).*/{ | |
12308 | s//\1/ | |
12309 | q | |
12310 | } | |
12311 | s/.*/./; q'` | |
12312 | test -d "$as_dir" && break | |
12313 | done | |
12314 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12315 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
d9898ee8 | 12316 | |
d9898ee8 | 12317 | |
b0322a85 | 12318 | } # as_fn_mkdir_p |
8d138742 | 12319 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 12320 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
12321 | else |
12322 | test -d ./-p && rmdir ./-p | |
12323 | as_mkdir_p=false | |
d9898ee8 | 12324 | fi |
dd184caf | 12325 | |
b0322a85 CE |
12326 | |
12327 | # as_fn_executable_p FILE | |
12328 | # ----------------------- | |
12329 | # Test if FILE is an executable regular file. | |
12330 | as_fn_executable_p () | |
12331 | { | |
12332 | test -f "$1" && test -x "$1" | |
12333 | } # as_fn_executable_p | |
12334 | as_test_x='test -x' | |
12335 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 12336 | |
8d138742 CE |
12337 | # Sed expression to map a string onto a valid CPP name. |
12338 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12339 | |
8d138742 CE |
12340 | # Sed expression to map a string onto a valid variable name. |
12341 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12342 | |
d9898ee8 | 12343 | |
8d138742 | 12344 | exec 6>&1 |
b0322a85 CE |
12345 | ## ----------------------------------- ## |
12346 | ## Main body of $CONFIG_STATUS script. ## | |
12347 | ## ----------------------------------- ## | |
12348 | _ASEOF | |
12349 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
8d138742 | 12350 | |
b0322a85 CE |
12351 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12352 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
12353 | # report actual input values of CONFIG_FILES etc. instead of their |
12354 | # values after options handling. | |
12355 | ac_log=" | |
12356 | This file was extended by courierlogger $as_me 0.10, which was | |
b0322a85 | 12357 | generated by GNU Autoconf 2.69. Invocation command line was |
8d138742 CE |
12358 | |
12359 | CONFIG_FILES = $CONFIG_FILES | |
12360 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12361 | CONFIG_LINKS = $CONFIG_LINKS | |
12362 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12363 | $ $0 $@ | |
12364 | ||
12365 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12366 | " | |
d9898ee8 | 12367 | |
d9898ee8 | 12368 | _ACEOF |
8d138742 CE |
12369 | |
12370 | case $ac_config_files in *" | |
12371 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 12372 | esac |
d9898ee8 | 12373 | |
8d138742 CE |
12374 | case $ac_config_headers in *" |
12375 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12376 | esac | |
dd184caf | 12377 | |
d9898ee8 | 12378 | |
8d138742 CE |
12379 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12380 | # Files that config.status was made for. | |
12381 | config_files="$ac_config_files" | |
12382 | config_headers="$ac_config_headers" | |
12383 | config_commands="$ac_config_commands" | |
d9898ee8 | 12384 | |
12385 | _ACEOF | |
d9898ee8 | 12386 | |
8d138742 CE |
12387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12388 | ac_cs_usage="\ | |
b0322a85 CE |
12389 | \`$as_me' instantiates files and other configuration actions |
12390 | from templates according to the current configuration. Unless the files | |
12391 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 12392 | |
b0322a85 | 12393 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 12394 | |
8d138742 CE |
12395 | -h, --help print this help, then exit |
12396 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 12397 | --config print configuration, then exit |
8d138742 CE |
12398 | -q, --quiet, --silent |
12399 | do not print progress messages | |
12400 | -d, --debug don't remove temporary files | |
12401 | --recheck update $as_me by reconfiguring in the same conditions | |
12402 | --file=FILE[:TEMPLATE] | |
12403 | instantiate the configuration file FILE | |
12404 | --header=FILE[:TEMPLATE] | |
12405 | instantiate the configuration header FILE | |
d9898ee8 | 12406 | |
8d138742 CE |
12407 | Configuration files: |
12408 | $config_files | |
12409 | ||
12410 | Configuration headers: | |
12411 | $config_headers | |
12412 | ||
12413 | Configuration commands: | |
12414 | $config_commands | |
12415 | ||
b0322a85 | 12416 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 12417 | |
d9898ee8 | 12418 | _ACEOF |
8d138742 | 12419 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0322a85 | 12420 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
12421 | ac_cs_version="\\ |
12422 | courierlogger config.status 0.10 | |
b0322a85 CE |
12423 | configured by $0, generated by GNU Autoconf 2.69, |
12424 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 12425 | |
b0322a85 | 12426 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
12427 | This config.status script is free software; the Free Software Foundation |
12428 | gives unlimited permission to copy, distribute and modify it." | |
12429 | ||
12430 | ac_pwd='$ac_pwd' | |
12431 | srcdir='$srcdir' | |
12432 | INSTALL='$INSTALL' | |
12433 | MKDIR_P='$MKDIR_P' | |
12434 | AWK='$AWK' | |
12435 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 12436 | _ACEOF |
d9898ee8 | 12437 | |
8d138742 CE |
12438 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12439 | # The default lists apply if the user does not specify any file. | |
12440 | ac_need_defaults=: | |
12441 | while test $# != 0 | |
12442 | do | |
12443 | case $1 in | |
b0322a85 | 12444 | --*=?*) |
8d138742 CE |
12445 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12446 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12447 | ac_shift=: | |
12448 | ;; | |
b0322a85 CE |
12449 | --*=) |
12450 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12451 | ac_optarg= | |
12452 | ac_shift=: | |
12453 | ;; | |
8d138742 CE |
12454 | *) |
12455 | ac_option=$1 | |
12456 | ac_optarg=$2 | |
12457 | ac_shift=shift | |
12458 | ;; | |
12459 | esac | |
12460 | ||
12461 | case $ac_option in | |
12462 | # Handling of the options. | |
12463 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12464 | ac_cs_recheck=: ;; | |
12465 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12466 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
12467 | --config | --confi | --conf | --con | --co | --c ) |
12468 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
12469 | --debug | --debu | --deb | --de | --d | -d ) |
12470 | debug=: ;; | |
12471 | --file | --fil | --fi | --f ) | |
12472 | $ac_shift | |
12473 | case $ac_optarg in | |
12474 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 12475 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 12476 | esac |
b0322a85 | 12477 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
12478 | ac_need_defaults=false;; |
12479 | --header | --heade | --head | --hea ) | |
12480 | $ac_shift | |
12481 | case $ac_optarg in | |
12482 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12483 | esac | |
b0322a85 | 12484 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
12485 | ac_need_defaults=false;; |
12486 | --he | --h) | |
12487 | # Conflict between --help and --header | |
b0322a85 CE |
12488 | as_fn_error $? "ambiguous option: \`$1' |
12489 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
12490 | --help | --hel | -h ) |
12491 | $as_echo "$ac_cs_usage"; exit ;; | |
12492 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12493 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12494 | ac_cs_silent=: ;; | |
12495 | ||
12496 | # This is an error. | |
b0322a85 CE |
12497 | -*) as_fn_error $? "unrecognized option: \`$1' |
12498 | Try \`$0 --help' for more information." ;; | |
8d138742 | 12499 | |
b0322a85 | 12500 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 12501 | ac_need_defaults=false ;; |
dd184caf | 12502 | |
8d138742 CE |
12503 | esac |
12504 | shift | |
12505 | done | |
12506 | ||
12507 | ac_configure_extra_args= | |
dd184caf | 12508 | |
8d138742 CE |
12509 | if $ac_cs_silent; then |
12510 | exec 6>/dev/null | |
12511 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 12512 | fi |
8d138742 CE |
12513 | |
12514 | _ACEOF | |
12515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12516 | if \$ac_cs_recheck; then | |
b0322a85 | 12517 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
12518 | shift |
12519 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12520 | CONFIG_SHELL='$SHELL' | |
12521 | export CONFIG_SHELL | |
12522 | exec "\$@" | |
d9898ee8 | 12523 | fi |
d9898ee8 | 12524 | |
d9898ee8 | 12525 | _ACEOF |
8d138742 CE |
12526 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12527 | exec 5>>config.log | |
12528 | { | |
12529 | echo | |
12530 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12531 | ## Running $as_me. ## | |
12532 | _ASBOX | |
12533 | $as_echo "$ac_log" | |
12534 | } >&5 | |
d9898ee8 | 12535 | |
8d138742 CE |
12536 | _ACEOF |
12537 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12538 | # | |
12539 | # INIT-COMMANDS | |
12540 | # | |
12541 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 12542 | |
12543 | ||
8d138742 CE |
12544 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
12545 | # if CDPATH is set. | |
12546 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 12547 | |
8d138742 CE |
12548 | sed_quote_subst='$sed_quote_subst' |
12549 | double_quote_subst='$double_quote_subst' | |
12550 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
12551 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
12552 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
12553 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
12554 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
12555 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
12556 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
12557 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
12558 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
12559 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
12560 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
12561 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
12562 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
12563 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
12564 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
12565 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
12566 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
12567 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
12568 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
12569 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
12570 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
12571 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
12572 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
12573 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
12574 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
12575 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
12576 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
12577 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
12578 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
12579 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
12580 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
12581 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
12582 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
12583 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
12584 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
12585 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
12586 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
12587 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
12588 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
12589 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
12590 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
12591 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
12592 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
12593 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
12594 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
12595 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
12596 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12597 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12598 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12599 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
12600 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
12601 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
12602 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
12603 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
12604 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
12605 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
12606 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
12607 | 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"`' | |
12608 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
12609 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
12610 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
12611 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
12612 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
12613 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
12614 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
12615 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
12616 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
12617 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
12618 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
12619 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
12620 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
12621 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
12622 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
12623 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
12624 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
12625 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
12626 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12627 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
12628 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
12629 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12630 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12631 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
12632 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
12633 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12634 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12635 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12636 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
12637 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12638 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
12639 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12640 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12641 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12642 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
12643 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
12644 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
12645 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
12646 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12647 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
12648 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
12649 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
12650 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
12651 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
12652 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
12653 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
12654 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
12655 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
12656 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
12657 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
12658 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
12659 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
12660 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
12661 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
12662 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12663 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
12664 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
12665 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
12666 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
12667 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
12668 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12669 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12670 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
12671 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
12672 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
12673 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
12674 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
12675 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
12676 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
12677 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
12678 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
12679 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
12680 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
12681 | |
12682 | LTCC='$LTCC' | |
12683 | LTCFLAGS='$LTCFLAGS' | |
12684 | compiler='$compiler_DEFAULT' | |
12685 | ||
b0322a85 CE |
12686 | # A function that is used when there is no print builtin or printf. |
12687 | func_fallback_echo () | |
12688 | { | |
12689 | eval 'cat <<_LTECHO_EOF | |
12690 | \$1 | |
12691 | _LTECHO_EOF' | |
12692 | } | |
12693 | ||
8d138742 | 12694 | # Quote evaled strings. |
b0322a85 CE |
12695 | for var in SHELL \ |
12696 | ECHO \ | |
12697 | PATH_SEPARATOR \ | |
12698 | SED \ | |
8d138742 CE |
12699 | GREP \ |
12700 | EGREP \ | |
12701 | FGREP \ | |
12702 | LD \ | |
12703 | NM \ | |
12704 | LN_S \ | |
12705 | lt_SP2NL \ | |
12706 | lt_NL2SP \ | |
12707 | reload_flag \ | |
12708 | OBJDUMP \ | |
12709 | deplibs_check_method \ | |
12710 | file_magic_cmd \ | |
b0322a85 CE |
12711 | file_magic_glob \ |
12712 | want_nocaseglob \ | |
12713 | DLLTOOL \ | |
12714 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
12715 | AR \ |
12716 | AR_FLAGS \ | |
b0322a85 | 12717 | archiver_list_spec \ |
8d138742 CE |
12718 | STRIP \ |
12719 | RANLIB \ | |
12720 | CC \ | |
12721 | CFLAGS \ | |
12722 | compiler \ | |
12723 | lt_cv_sys_global_symbol_pipe \ | |
12724 | lt_cv_sys_global_symbol_to_cdecl \ | |
12725 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12726 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
b0322a85 | 12727 | nm_file_list_spec \ |
8d138742 | 12728 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 12729 | lt_prog_compiler_pic \ |
b0322a85 | 12730 | lt_prog_compiler_wl \ |
8d138742 CE |
12731 | lt_prog_compiler_static \ |
12732 | lt_cv_prog_compiler_c_o \ | |
12733 | need_locks \ | |
b0322a85 | 12734 | MANIFEST_TOOL \ |
8d138742 CE |
12735 | DSYMUTIL \ |
12736 | NMEDIT \ | |
12737 | LIPO \ | |
12738 | OTOOL \ | |
12739 | OTOOL64 \ | |
12740 | shrext_cmds \ | |
12741 | export_dynamic_flag_spec \ | |
12742 | whole_archive_flag_spec \ | |
12743 | compiler_needs_object \ | |
12744 | with_gnu_ld \ | |
12745 | allow_undefined_flag \ | |
12746 | no_undefined_flag \ | |
12747 | hardcode_libdir_flag_spec \ | |
8d138742 | 12748 | hardcode_libdir_separator \ |
8d138742 CE |
12749 | exclude_expsyms \ |
12750 | include_expsyms \ | |
12751 | file_list_spec \ | |
12752 | variables_saved_for_relink \ | |
12753 | libname_spec \ | |
12754 | library_names_spec \ | |
12755 | soname_spec \ | |
b0322a85 | 12756 | install_override_mode \ |
8d138742 CE |
12757 | finish_eval \ |
12758 | old_striplib \ | |
12759 | striplib; do | |
b0322a85 | 12760 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 12761 | *[\\\\\\\`\\"\\\$]*) |
b0322a85 | 12762 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
8d138742 CE |
12763 | ;; |
12764 | *) | |
12765 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12766 | ;; | |
12767 | esac | |
12768 | done | |
d9898ee8 | 12769 | |
8d138742 CE |
12770 | # Double-quote double-evaled strings. |
12771 | for var in reload_cmds \ | |
12772 | old_postinstall_cmds \ | |
12773 | old_postuninstall_cmds \ | |
12774 | old_archive_cmds \ | |
12775 | extract_expsyms_cmds \ | |
12776 | old_archive_from_new_cmds \ | |
12777 | old_archive_from_expsyms_cmds \ | |
12778 | archive_cmds \ | |
12779 | archive_expsym_cmds \ | |
12780 | module_cmds \ | |
12781 | module_expsym_cmds \ | |
12782 | export_symbols_cmds \ | |
12783 | prelink_cmds \ | |
b0322a85 | 12784 | postlink_cmds \ |
8d138742 CE |
12785 | postinstall_cmds \ |
12786 | postuninstall_cmds \ | |
12787 | finish_cmds \ | |
12788 | sys_lib_search_path_spec \ | |
12789 | sys_lib_dlsearch_path_spec; do | |
b0322a85 | 12790 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 12791 | *[\\\\\\\`\\"\\\$]*) |
b0322a85 | 12792 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
8d138742 CE |
12793 | ;; |
12794 | *) | |
12795 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12796 | ;; | |
12797 | esac | |
12798 | done | |
12799 | ||
8d138742 CE |
12800 | ac_aux_dir='$ac_aux_dir' |
12801 | xsi_shell='$xsi_shell' | |
12802 | lt_shell_append='$lt_shell_append' | |
12803 | ||
12804 | # See if we are running on zsh, and set the options which allow our | |
12805 | # commands through without removal of \ escapes INIT. | |
12806 | if test -n "\${ZSH_VERSION+set}" ; then | |
12807 | setopt NO_GLOB_SUBST | |
d9898ee8 | 12808 | fi |
dd184caf | 12809 | |
d9898ee8 | 12810 | |
8d138742 CE |
12811 | PACKAGE='$PACKAGE' |
12812 | VERSION='$VERSION' | |
12813 | TIMESTAMP='$TIMESTAMP' | |
12814 | RM='$RM' | |
12815 | ofile='$ofile' | |
12816 | ||
12817 | ||
12818 | ||
12819 | ||
d9898ee8 | 12820 | _ACEOF |
d9898ee8 | 12821 | |
8d138742 CE |
12822 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12823 | ||
12824 | # Handling of arguments. | |
12825 | for ac_config_target in $ac_config_targets | |
12826 | do | |
12827 | case $ac_config_target in | |
12828 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
12829 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12830 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12831 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12832 | ||
b0322a85 | 12833 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
12834 | esac |
12835 | done | |
12836 | ||
12837 | ||
12838 | # If the user did not use the arguments to specify the items to instantiate, | |
12839 | # then the envvar interface is used. Set only those that are not. | |
12840 | # We use the long form for the default assignment because of an extremely | |
12841 | # bizarre bug on SunOS 4.1.3. | |
12842 | if $ac_need_defaults; then | |
12843 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12844 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12845 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
d9898ee8 | 12846 | fi |
dd184caf | 12847 | |
8d138742 CE |
12848 | # Have a temporary directory for convenience. Make it in the build tree |
12849 | # simply because there is no reason against having it here, and in addition, | |
12850 | # creating and moving files from /tmp can sometimes cause problems. | |
12851 | # Hook for its removal unless debugging. | |
12852 | # Note that there is a small window in which the directory will not be cleaned: | |
12853 | # after its creation but before its name has been assigned to `$tmp'. | |
12854 | $debug || | |
12855 | { | |
b0322a85 | 12856 | tmp= ac_tmp= |
8d138742 | 12857 | trap 'exit_status=$? |
b0322a85 CE |
12858 | : "${ac_tmp:=$tmp}" |
12859 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 12860 | ' 0 |
b0322a85 | 12861 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
12862 | } |
12863 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 12864 | |
8d138742 CE |
12865 | { |
12866 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 12867 | test -d "$tmp" |
8d138742 CE |
12868 | } || |
12869 | { | |
12870 | tmp=./conf$$-$RANDOM | |
12871 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
12872 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
12873 | ac_tmp=$tmp | |
8d138742 CE |
12874 | |
12875 | # Set up the scripts for CONFIG_FILES section. | |
12876 | # No need to generate them if there are no CONFIG_FILES. | |
12877 | # This happens for instance with `./config.status config.h'. | |
12878 | if test -n "$CONFIG_FILES"; then | |
12879 | ||
12880 | ||
b0322a85 CE |
12881 | ac_cr=`echo X | tr X '\015'` |
12882 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12883 | # But we know of no other shell where ac_cr would be empty at this | |
12884 | # point, so we can use a bashism as a fallback. | |
12885 | if test "x$ac_cr" = x; then | |
12886 | eval ac_cr=\$\'\\r\' | |
12887 | fi | |
8d138742 CE |
12888 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
12889 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12890 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 12891 | else |
8d138742 | 12892 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 12893 | fi |
d9898ee8 | 12894 | |
b0322a85 | 12895 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 12896 | _ACEOF |
12897 | ||
d9898ee8 | 12898 | |
8d138742 CE |
12899 | { |
12900 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12901 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12902 | echo "_ACEOF" | |
12903 | } >conf$$subs.sh || | |
b0322a85 CE |
12904 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
12905 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
12906 | ac_delim='%!_!# ' |
12907 | for ac_last_try in false false false false false :; do | |
12908 | . ./conf$$subs.sh || | |
b0322a85 | 12909 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
12910 | |
12911 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12912 | if test $ac_delim_n = $ac_delim_num; then | |
12913 | break | |
12914 | elif $ac_last_try; then | |
b0322a85 | 12915 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
12916 | else |
12917 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12918 | fi | |
d9898ee8 | 12919 | done |
8d138742 CE |
12920 | rm -f conf$$subs.sh |
12921 | ||
12922 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 12923 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
12924 | _ACEOF |
12925 | sed -n ' | |
12926 | h | |
12927 | s/^/S["/; s/!.*/"]=/ | |
12928 | p | |
12929 | g | |
12930 | s/^[^!]*!// | |
12931 | :repl | |
12932 | t repl | |
12933 | s/'"$ac_delim"'$// | |
12934 | t delim | |
12935 | :nl | |
12936 | h | |
b0322a85 | 12937 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
12938 | t more1 |
12939 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12940 | p | |
12941 | n | |
12942 | b repl | |
12943 | :more1 | |
12944 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12945 | p | |
12946 | g | |
12947 | s/.\{148\}// | |
12948 | t nl | |
12949 | :delim | |
12950 | h | |
b0322a85 | 12951 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
12952 | t more2 |
12953 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12954 | p | |
12955 | b | |
12956 | :more2 | |
12957 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12958 | p | |
12959 | g | |
12960 | s/.\{148\}// | |
12961 | t delim | |
12962 | ' <conf$$subs.awk | sed ' | |
12963 | /^[^""]/{ | |
12964 | N | |
12965 | s/\n// | |
12966 | } | |
12967 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12968 | rm -f conf$$subs.awk | |
12969 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12970 | _ACAWK | |
b0322a85 | 12971 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
12972 | for (key in S) S_is_set[key] = 1 |
12973 | FS = "\a" | |
d9898ee8 | 12974 | |
8d138742 CE |
12975 | } |
12976 | { | |
12977 | line = $ 0 | |
12978 | nfields = split(line, field, "@") | |
12979 | substed = 0 | |
12980 | len = length(field[1]) | |
12981 | for (i = 2; i < nfields; i++) { | |
12982 | key = field[i] | |
12983 | keylen = length(key) | |
12984 | if (S_is_set[key]) { | |
12985 | value = S[key] | |
12986 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12987 | len += length(value) + length(field[++i]) | |
12988 | substed = 1 | |
12989 | } else | |
12990 | len += 1 + keylen | |
12991 | } | |
12992 | ||
12993 | print line | |
12994 | } | |
12995 | ||
12996 | _ACAWK | |
12997 | _ACEOF | |
12998 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12999 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13000 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 13001 | else |
8d138742 | 13002 | cat |
b0322a85 CE |
13003 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13004 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
d9898ee8 | 13005 | _ACEOF |
d9898ee8 | 13006 | |
b0322a85 CE |
13007 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13008 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
13009 | # trailing colons and then remove the whole line if VPATH becomes empty |
13010 | # (actually we leave an empty line to preserve line numbers). | |
13011 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
13012 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13013 | h | |
13014 | s/// | |
13015 | s/^/:/ | |
13016 | s/[ ]*$/:/ | |
13017 | s/:\$(srcdir):/:/g | |
13018 | s/:\${srcdir}:/:/g | |
13019 | s/:@srcdir@:/:/g | |
13020 | s/^:*// | |
8d138742 | 13021 | s/:*$// |
b0322a85 CE |
13022 | x |
13023 | s/\(=[ ]*\).*/\1/ | |
13024 | G | |
13025 | s/\n// | |
8d138742 CE |
13026 | s/^[^=]*=[ ]*$// |
13027 | }' | |
13028 | fi | |
13029 | ||
13030 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13031 | fi # test -n "$CONFIG_FILES" | |
13032 | ||
13033 | # Set up the scripts for CONFIG_HEADERS section. | |
13034 | # No need to generate them if there are no CONFIG_HEADERS. | |
13035 | # This happens for instance with `./config.status Makefile'. | |
13036 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 13037 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 CE |
13038 | BEGIN { |
13039 | _ACEOF | |
13040 | ||
13041 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13042 | # here-document in config.status, that substitutes the proper values into | |
13043 | # config.h.in to produce config.h. | |
13044 | ||
13045 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13046 | # handling of long lines. | |
13047 | ac_delim='%!_!# ' | |
13048 | for ac_last_try in false false :; do | |
b0322a85 CE |
13049 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13050 | if test -z "$ac_tt"; then | |
8d138742 CE |
13051 | break |
13052 | elif $ac_last_try; then | |
b0322a85 | 13053 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
13054 | else |
13055 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13056 | fi | |
13057 | done | |
13058 | ||
13059 | # For the awk script, D is an array of macro values keyed by name, | |
13060 | # likewise P contains macro parameters if any. Preserve backslash | |
13061 | # newline sequences. | |
13062 | ||
13063 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13064 | sed -n ' | |
13065 | s/.\{148\}/&'"$ac_delim"'/g | |
13066 | t rset | |
13067 | :rset | |
13068 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13069 | t def | |
13070 | d | |
13071 | :def | |
13072 | s/\\$// | |
13073 | t bsnl | |
13074 | s/["\\]/\\&/g | |
13075 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13076 | D["\1"]=" \3"/p | |
13077 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13078 | d | |
13079 | :bsnl | |
13080 | s/["\\]/\\&/g | |
13081 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13082 | D["\1"]=" \3\\\\\\n"\\/p | |
13083 | t cont | |
13084 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13085 | t cont | |
13086 | d | |
13087 | :cont | |
13088 | n | |
13089 | s/.\{148\}/&'"$ac_delim"'/g | |
13090 | t clear | |
13091 | :clear | |
13092 | s/\\$// | |
13093 | t bsnlc | |
13094 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13095 | d | |
13096 | :bsnlc | |
13097 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13098 | b cont | |
13099 | ' <confdefs.h | sed ' | |
13100 | s/'"$ac_delim"'/"\\\ | |
13101 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13102 | ||
13103 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13104 | for (key in D) D_is_set[key] = 1 | |
13105 | FS = "\a" | |
13106 | } | |
13107 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13108 | line = \$ 0 | |
13109 | split(line, arg, " ") | |
13110 | if (arg[1] == "#") { | |
13111 | defundef = arg[2] | |
13112 | mac1 = arg[3] | |
13113 | } else { | |
13114 | defundef = substr(arg[1], 2) | |
13115 | mac1 = arg[2] | |
13116 | } | |
13117 | split(mac1, mac2, "(") #) | |
13118 | macro = mac2[1] | |
13119 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13120 | if (D_is_set[macro]) { | |
13121 | # Preserve the white space surrounding the "#". | |
13122 | print prefix "define", macro P[macro] D[macro] | |
13123 | next | |
13124 | } else { | |
13125 | # Replace #undef with comments. This is necessary, for example, | |
13126 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13127 | # on some systems where configure will not decide to define it. | |
13128 | if (defundef == "undef") { | |
13129 | print "/*", prefix defundef, macro, "*/" | |
13130 | next | |
13131 | } | |
13132 | } | |
13133 | } | |
13134 | { print } | |
13135 | _ACAWK | |
d9898ee8 | 13136 | _ACEOF |
8d138742 | 13137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0322a85 | 13138 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 13139 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 13140 | |
d9898ee8 | 13141 | |
8d138742 CE |
13142 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
13143 | shift | |
13144 | for ac_tag | |
13145 | do | |
13146 | case $ac_tag in | |
13147 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13148 | esac | |
13149 | case $ac_mode$ac_tag in | |
13150 | :[FHL]*:*);; | |
b0322a85 | 13151 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
13152 | :[FH]-) ac_tag=-:-;; |
13153 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13154 | esac | |
13155 | ac_save_IFS=$IFS | |
13156 | IFS=: | |
13157 | set x $ac_tag | |
13158 | IFS=$ac_save_IFS | |
13159 | shift | |
13160 | ac_file=$1 | |
13161 | shift | |
d9898ee8 | 13162 | |
8d138742 CE |
13163 | case $ac_mode in |
13164 | :L) ac_source=$1;; | |
13165 | :[FH]) | |
13166 | ac_file_inputs= | |
13167 | for ac_f | |
13168 | do | |
13169 | case $ac_f in | |
b0322a85 | 13170 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
13171 | *) # Look for the file first in the build tree, then in the source tree |
13172 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13173 | # because $ac_f cannot contain `:'. | |
13174 | test -f "$ac_f" || | |
13175 | case $ac_f in | |
13176 | [\\/$]*) false;; | |
13177 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13178 | esac || | |
b0322a85 | 13179 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
13180 | esac |
13181 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 13182 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 13183 | done |
d9898ee8 | 13184 | |
8d138742 CE |
13185 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13186 | # use $as_me), people would be surprised to read: | |
13187 | # /* config.h. Generated by config.status. */ | |
13188 | configure_input='Generated from '` | |
13189 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13190 | `' by configure.' | |
13191 | if test x"$ac_file" != x-; then | |
13192 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
13194 | $as_echo "$as_me: creating $ac_file" >&6;} |
13195 | fi | |
13196 | # Neutralize special characters interpreted by sed in replacement strings. | |
13197 | case $configure_input in #( | |
13198 | *\&* | *\|* | *\\* ) | |
13199 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13200 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13201 | *) ac_sed_conf_input=$configure_input;; | |
13202 | esac | |
d9898ee8 | 13203 | |
8d138742 | 13204 | case $ac_tag in |
b0322a85 CE |
13205 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13206 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
13207 | esac |
13208 | ;; | |
13209 | esac | |
d9898ee8 | 13210 | |
8d138742 CE |
13211 | ac_dir=`$as_dirname -- "$ac_file" || |
13212 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13213 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13214 | X"$ac_file" : 'X\(//\)$' \| \ | |
13215 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13216 | $as_echo X"$ac_file" | | |
13217 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13218 | s//\1/ | |
13219 | q | |
13220 | } | |
13221 | /^X\(\/\/\)[^/].*/{ | |
13222 | s//\1/ | |
13223 | q | |
13224 | } | |
13225 | /^X\(\/\/\)$/{ | |
13226 | s//\1/ | |
13227 | q | |
13228 | } | |
13229 | /^X\(\/\).*/{ | |
13230 | s//\1/ | |
13231 | q | |
13232 | } | |
13233 | s/.*/./; q'` | |
b0322a85 | 13234 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 13235 | ac_builddir=. |
d9898ee8 | 13236 | |
8d138742 CE |
13237 | case "$ac_dir" in |
13238 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13239 | *) | |
13240 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13241 | # A ".." for each directory in $ac_dir_suffix. | |
13242 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13243 | case $ac_top_builddir_sub in | |
13244 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13245 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13246 | esac ;; | |
13247 | esac | |
13248 | ac_abs_top_builddir=$ac_pwd | |
13249 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13250 | # for backward compatibility: | |
13251 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 13252 | |
8d138742 CE |
13253 | case $srcdir in |
13254 | .) # We are building in place. | |
13255 | ac_srcdir=. | |
13256 | ac_top_srcdir=$ac_top_builddir_sub | |
13257 | ac_abs_top_srcdir=$ac_pwd ;; | |
13258 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13259 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13260 | ac_top_srcdir=$srcdir | |
13261 | ac_abs_top_srcdir=$srcdir ;; | |
13262 | *) # Relative name. | |
13263 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13264 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13265 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13266 | esac | |
13267 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 13268 | |
d9898ee8 | 13269 | |
8d138742 CE |
13270 | case $ac_mode in |
13271 | :F) | |
13272 | # | |
13273 | # CONFIG_FILE | |
13274 | # | |
d9898ee8 | 13275 | |
8d138742 CE |
13276 | case $INSTALL in |
13277 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13278 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13279 | esac | |
13280 | ac_MKDIR_P=$MKDIR_P | |
13281 | case $MKDIR_P in | |
13282 | [\\/$]* | ?:[\\/]* ) ;; | |
13283 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13284 | esac | |
13285 | _ACEOF | |
d9898ee8 | 13286 | |
8d138742 CE |
13287 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13288 | # If the template does not know about datarootdir, expand it. | |
13289 | # FIXME: This hack should be removed a few years after 2.60. | |
13290 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
13291 | ac_sed_dataroot=' |
13292 | /datarootdir/ { | |
13293 | p | |
13294 | q | |
d9898ee8 | 13295 | } |
8d138742 CE |
13296 | /@datadir@/p |
13297 | /@docdir@/p | |
13298 | /@infodir@/p | |
13299 | /@localedir@/p | |
b0322a85 | 13300 | /@mandir@/p' |
8d138742 CE |
13301 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
13302 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13303 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 | 13305 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 | 13306 | _ACEOF |
8d138742 CE |
13307 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13308 | ac_datarootdir_hack=' | |
13309 | s&@datadir@&$datadir&g | |
13310 | s&@docdir@&$docdir&g | |
13311 | s&@infodir@&$infodir&g | |
13312 | s&@localedir@&$localedir&g | |
13313 | s&@mandir@&$mandir&g | |
b0322a85 | 13314 | s&\\\${datarootdir}&$datarootdir&g' ;; |
dd184caf | 13315 | esac |
d9898ee8 | 13316 | _ACEOF |
13317 | ||
8d138742 CE |
13318 | # Neutralize VPATH when `$srcdir' = `.'. |
13319 | # Shell code in configure.ac might set extrasub. | |
13320 | # FIXME: do we really want to maintain this feature? | |
13321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13322 | ac_sed_extra="$ac_vpsub | |
13323 | $extrasub | |
13324 | _ACEOF | |
13325 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13326 | :t | |
13327 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13328 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13329 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13330 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13331 | s&@srcdir@&$ac_srcdir&;t t | |
13332 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13333 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13334 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13335 | s&@builddir@&$ac_builddir&;t t | |
13336 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13337 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13338 | s&@INSTALL@&$ac_INSTALL&;t t | |
13339 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13340 | $ac_datarootdir_hack | |
13341 | " | |
b0322a85 CE |
13342 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13343 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 13344 | |
8d138742 | 13345 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
13346 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13347 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13348 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13350 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 13351 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 13352 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 13353 | |
b0322a85 | 13354 | rm -f "$ac_tmp/stdin" |
8d138742 | 13355 | case $ac_file in |
b0322a85 CE |
13356 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13357 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 13358 | esac \ |
b0322a85 | 13359 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
13360 | ;; |
13361 | :H) | |
13362 | # | |
13363 | # CONFIG_HEADER | |
13364 | # | |
13365 | if test x"$ac_file" != x-; then | |
13366 | { | |
13367 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13368 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13369 | } >"$ac_tmp/config.h" \ | |
13370 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13371 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
13373 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
13374 | else | |
13375 | rm -f "$ac_file" | |
b0322a85 CE |
13376 | mv "$ac_tmp/config.h" "$ac_file" \ |
13377 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
13378 | fi |
13379 | else | |
13380 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13381 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
13382 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
13383 | fi |
13384 | # Compute "$ac_file"'s index in $config_headers. | |
13385 | _am_arg="$ac_file" | |
13386 | _am_stamp_count=1 | |
13387 | for _am_header in $config_headers :; do | |
13388 | case $_am_header in | |
13389 | $_am_arg | $_am_arg:* ) | |
13390 | break ;; | |
13391 | * ) | |
13392 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13393 | esac | |
13394 | done | |
13395 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13396 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13397 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13398 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13399 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13400 | $as_echo X"$_am_arg" | | |
13401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13402 | s//\1/ | |
13403 | q | |
13404 | } | |
13405 | /^X\(\/\/\)[^/].*/{ | |
13406 | s//\1/ | |
13407 | q | |
13408 | } | |
13409 | /^X\(\/\/\)$/{ | |
13410 | s//\1/ | |
13411 | q | |
13412 | } | |
13413 | /^X\(\/\).*/{ | |
13414 | s//\1/ | |
13415 | q | |
13416 | } | |
13417 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13418 | ;; | |
d9898ee8 | 13419 | |
b0322a85 | 13420 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
13421 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
13422 | ;; | |
13423 | esac | |
dd184caf | 13424 | |
d9898ee8 | 13425 | |
8d138742 CE |
13426 | case $ac_file$ac_mode in |
13427 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 13428 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
13429 | # are listed without --file. Let's play safe and only enable the eval |
13430 | # if we detect the quoting. | |
13431 | case $CONFIG_FILES in | |
13432 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13433 | *) set x $CONFIG_FILES ;; | |
13434 | esac | |
13435 | shift | |
13436 | for mf | |
13437 | do | |
13438 | # Strip MF so we end up with the name of the file. | |
13439 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13440 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 13441 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
13442 | # some people rename them; so instead we look at the file content. |
13443 | # Grep'ing the first line is not enough: some people post-process | |
13444 | # each Makefile.in and add a new line on top of each file to say so. | |
13445 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13446 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13447 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13448 | dirpart=`$as_dirname -- "$mf" || | |
13449 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13450 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13451 | X"$mf" : 'X\(//\)$' \| \ | |
13452 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13453 | $as_echo X"$mf" | | |
13454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13455 | s//\1/ | |
13456 | q | |
13457 | } | |
13458 | /^X\(\/\/\)[^/].*/{ | |
13459 | s//\1/ | |
13460 | q | |
13461 | } | |
13462 | /^X\(\/\/\)$/{ | |
13463 | s//\1/ | |
13464 | q | |
13465 | } | |
13466 | /^X\(\/\).*/{ | |
13467 | s//\1/ | |
13468 | q | |
13469 | } | |
13470 | s/.*/./; q'` | |
13471 | else | |
13472 | continue | |
13473 | fi | |
13474 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 13475 | # from the Makefile without running 'make'. |
8d138742 CE |
13476 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13477 | test -z "$DEPDIR" && continue | |
13478 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 13479 | test -z "$am__include" && continue |
8d138742 | 13480 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
13481 | # Find all dependency output files, they are included files with |
13482 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13483 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13484 | # expansion. | |
13485 | for file in `sed -n " | |
13486 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 13487 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
13488 | # Make sure the directory exists. |
13489 | test -f "$dirpart/$file" && continue | |
13490 | fdir=`$as_dirname -- "$file" || | |
13491 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13492 | X"$file" : 'X\(//\)[^/]' \| \ | |
13493 | X"$file" : 'X\(//\)$' \| \ | |
13494 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13495 | $as_echo X"$file" | | |
13496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13497 | s//\1/ | |
13498 | q | |
13499 | } | |
13500 | /^X\(\/\/\)[^/].*/{ | |
13501 | s//\1/ | |
13502 | q | |
13503 | } | |
13504 | /^X\(\/\/\)$/{ | |
13505 | s//\1/ | |
13506 | q | |
13507 | } | |
13508 | /^X\(\/\).*/{ | |
13509 | s//\1/ | |
13510 | q | |
13511 | } | |
13512 | s/.*/./; q'` | |
b0322a85 | 13513 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
13514 | # echo "creating $dirpart/$file" |
13515 | echo '# dummy' > "$dirpart/$file" | |
13516 | done | |
13517 | done | |
13518 | } | |
13519 | ;; | |
13520 | "libtool":C) | |
d9898ee8 | 13521 | |
8d138742 CE |
13522 | # See if we are running on zsh, and set the options which allow our |
13523 | # commands through without removal of \ escapes. | |
13524 | if test -n "${ZSH_VERSION+set}" ; then | |
13525 | setopt NO_GLOB_SUBST | |
13526 | fi | |
d9898ee8 | 13527 | |
8d138742 CE |
13528 | cfgfile="${ofile}T" |
13529 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13530 | $RM "$cfgfile" | |
d9898ee8 | 13531 | |
8d138742 CE |
13532 | cat <<_LT_EOF >> "$cfgfile" |
13533 | #! $SHELL | |
dd184caf | 13534 | |
8d138742 CE |
13535 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
13536 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13537 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13538 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d9898ee8 | 13539 | # |
8d138742 | 13540 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
b0322a85 CE |
13541 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
13542 | # Foundation, Inc. | |
8d138742 | 13543 | # Written by Gordon Matzigkeit, 1996 |
d9898ee8 | 13544 | # |
8d138742 CE |
13545 | # This file is part of GNU Libtool. |
13546 | # | |
13547 | # GNU Libtool is free software; you can redistribute it and/or | |
13548 | # modify it under the terms of the GNU General Public License as | |
13549 | # published by the Free Software Foundation; either version 2 of | |
13550 | # the License, or (at your option) any later version. | |
13551 | # | |
13552 | # As a special exception to the GNU General Public License, | |
13553 | # if you distribute this file as part of a program or library that | |
13554 | # is built using GNU Libtool, you may include this file under the | |
13555 | # same distribution terms that you use for the rest of that program. | |
13556 | # | |
13557 | # GNU Libtool is distributed in the hope that it will be useful, | |
13558 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13559 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13560 | # GNU General Public License for more details. | |
13561 | # | |
13562 | # You should have received a copy of the GNU General Public License | |
13563 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13564 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13565 | # obtained by writing to the Free Software Foundation, Inc., | |
13566 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 13567 | |
d9898ee8 | 13568 | |
8d138742 CE |
13569 | # The names of the tagged configurations supported by this script. |
13570 | available_tags="" | |
dd184caf | 13571 | |
8d138742 | 13572 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 13573 | |
8d138742 CE |
13574 | # Which release of libtool.m4 was used? |
13575 | macro_version=$macro_version | |
13576 | macro_revision=$macro_revision | |
d9898ee8 | 13577 | |
8d138742 CE |
13578 | # Whether or not to build shared libraries. |
13579 | build_libtool_libs=$enable_shared | |
d9898ee8 | 13580 | |
8d138742 CE |
13581 | # Whether or not to build static libraries. |
13582 | build_old_libs=$enable_static | |
d9898ee8 | 13583 | |
8d138742 CE |
13584 | # What type of objects to build. |
13585 | pic_mode=$pic_mode | |
d9898ee8 | 13586 | |
8d138742 CE |
13587 | # Whether or not to optimize for fast installation. |
13588 | fast_install=$enable_fast_install | |
d9898ee8 | 13589 | |
b0322a85 CE |
13590 | # Shell to use when invoking shell scripts. |
13591 | SHELL=$lt_SHELL | |
13592 | ||
13593 | # An echo program that protects backslashes. | |
13594 | ECHO=$lt_ECHO | |
13595 | ||
13596 | # The PATH separator for the build system. | |
13597 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
13598 | ||
8d138742 CE |
13599 | # The host system. |
13600 | host_alias=$host_alias | |
13601 | host=$host | |
13602 | host_os=$host_os | |
d9898ee8 | 13603 | |
8d138742 CE |
13604 | # The build system. |
13605 | build_alias=$build_alias | |
13606 | build=$build | |
13607 | build_os=$build_os | |
d9898ee8 | 13608 | |
8d138742 CE |
13609 | # A sed program that does not truncate output. |
13610 | SED=$lt_SED | |
d9898ee8 | 13611 | |
8d138742 CE |
13612 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
13613 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 13614 | |
8d138742 CE |
13615 | # A grep program that handles long lines. |
13616 | GREP=$lt_GREP | |
dd184caf | 13617 | |
8d138742 CE |
13618 | # An ERE matcher. |
13619 | EGREP=$lt_EGREP | |
dd184caf | 13620 | |
8d138742 CE |
13621 | # A literal string matcher. |
13622 | FGREP=$lt_FGREP | |
dd184caf | 13623 | |
8d138742 CE |
13624 | # A BSD- or MS-compatible name lister. |
13625 | NM=$lt_NM | |
dd184caf | 13626 | |
8d138742 CE |
13627 | # Whether we need soft or hard links. |
13628 | LN_S=$lt_LN_S | |
dd184caf | 13629 | |
8d138742 CE |
13630 | # What is the maximum length of a command? |
13631 | max_cmd_len=$max_cmd_len | |
dd184caf | 13632 | |
8d138742 CE |
13633 | # Object file suffix (normally "o"). |
13634 | objext=$ac_objext | |
d9898ee8 | 13635 | |
8d138742 CE |
13636 | # Executable file suffix (normally ""). |
13637 | exeext=$exeext | |
d9898ee8 | 13638 | |
8d138742 CE |
13639 | # whether the shell understands "unset". |
13640 | lt_unset=$lt_unset | |
d9898ee8 | 13641 | |
8d138742 CE |
13642 | # turn spaces into newlines. |
13643 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 13644 | |
8d138742 CE |
13645 | # turn newlines into spaces. |
13646 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 13647 | |
b0322a85 CE |
13648 | # convert \$build file names to \$host format. |
13649 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
13650 | ||
13651 | # convert \$build files to toolchain format. | |
13652 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
dd184caf | 13653 | |
8d138742 CE |
13654 | # An object symbol dumper. |
13655 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 13656 | |
8d138742 CE |
13657 | # Method to check whether dependent libraries are shared objects. |
13658 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 13659 | |
b0322a85 | 13660 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 13661 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 13662 | |
b0322a85 CE |
13663 | # How to find potential files when deplibs_check_method = "file_magic". |
13664 | file_magic_glob=$lt_file_magic_glob | |
13665 | ||
13666 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
13667 | want_nocaseglob=$lt_want_nocaseglob | |
13668 | ||
13669 | # DLL creation program. | |
13670 | DLLTOOL=$lt_DLLTOOL | |
13671 | ||
13672 | # Command to associate shared and link libraries. | |
13673 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
13674 | ||
8d138742 CE |
13675 | # The archiver. |
13676 | AR=$lt_AR | |
b0322a85 CE |
13677 | |
13678 | # Flags to create an archive. | |
8d138742 | 13679 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 13680 | |
b0322a85 CE |
13681 | # How to feed a file listing to the archiver. |
13682 | archiver_list_spec=$lt_archiver_list_spec | |
13683 | ||
8d138742 CE |
13684 | # A symbol stripping program. |
13685 | STRIP=$lt_STRIP | |
d9898ee8 | 13686 | |
8d138742 CE |
13687 | # Commands used to install an old-style archive. |
13688 | RANLIB=$lt_RANLIB | |
13689 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13690 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 13691 | |
b0322a85 CE |
13692 | # Whether to use a lock for old archive extraction. |
13693 | lock_old_archive_extraction=$lock_old_archive_extraction | |
13694 | ||
8d138742 CE |
13695 | # A C compiler. |
13696 | LTCC=$lt_CC | |
d9898ee8 | 13697 | |
8d138742 CE |
13698 | # LTCC compiler flags. |
13699 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 13700 | |
8d138742 CE |
13701 | # Take the output of nm and produce a listing of raw symbols and C names. |
13702 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 13703 | |
8d138742 CE |
13704 | # Transform the output of nm in a proper C declaration. |
13705 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 13706 | |
8d138742 CE |
13707 | # Transform the output of nm in a C name address pair. |
13708 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 13709 | |
8d138742 CE |
13710 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
13711 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 13712 | |
b0322a85 CE |
13713 | # Specify filename containing input files for \$NM. |
13714 | nm_file_list_spec=$lt_nm_file_list_spec | |
d9898ee8 | 13715 | |
b0322a85 CE |
13716 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
13717 | lt_sysroot=$lt_sysroot | |
dd184caf | 13718 | |
b0322a85 CE |
13719 | # The name of the directory that contains temporary libtool files. |
13720 | objdir=$objdir | |
d9898ee8 | 13721 | |
8d138742 CE |
13722 | # Used to examine libraries when file_magic_cmd begins with "file". |
13723 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 13724 | |
8d138742 CE |
13725 | # Must we lock files when doing compilation? |
13726 | need_locks=$lt_need_locks | |
d9898ee8 | 13727 | |
b0322a85 CE |
13728 | # Manifest tool. |
13729 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
13730 | ||
8d138742 CE |
13731 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
13732 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 13733 | |
8d138742 CE |
13734 | # Tool to change global to local symbols on Mac OS X. |
13735 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 13736 | |
8d138742 CE |
13737 | # Tool to manipulate fat objects and archives on Mac OS X. |
13738 | LIPO=$lt_LIPO | |
d9898ee8 | 13739 | |
8d138742 CE |
13740 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
13741 | OTOOL=$lt_OTOOL | |
d9898ee8 | 13742 | |
8d138742 CE |
13743 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
13744 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 13745 | |
8d138742 CE |
13746 | # Old archive suffix (normally "a"). |
13747 | libext=$libext | |
d9898ee8 | 13748 | |
8d138742 CE |
13749 | # Shared library suffix (normally ".so"). |
13750 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 13751 | |
8d138742 CE |
13752 | # The commands to extract the exported symbol list from a shared archive. |
13753 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 13754 | |
8d138742 CE |
13755 | # Variables whose values should be saved in libtool wrapper scripts and |
13756 | # restored at link time. | |
13757 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 13758 | |
8d138742 CE |
13759 | # Do we need the "lib" prefix for modules? |
13760 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 13761 | |
8d138742 CE |
13762 | # Do we need a version for libraries? |
13763 | need_version=$need_version | |
d9898ee8 | 13764 | |
8d138742 CE |
13765 | # Library versioning type. |
13766 | version_type=$version_type | |
d9898ee8 | 13767 | |
8d138742 CE |
13768 | # Shared library runtime path variable. |
13769 | runpath_var=$runpath_var | |
d9898ee8 | 13770 | |
8d138742 CE |
13771 | # Shared library path variable. |
13772 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 13773 | |
8d138742 CE |
13774 | # Is shlibpath searched before the hard-coded library search path? |
13775 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 13776 | |
8d138742 CE |
13777 | # Format of library name prefix. |
13778 | libname_spec=$lt_libname_spec | |
d9898ee8 | 13779 | |
8d138742 CE |
13780 | # List of archive names. First name is the real one, the rest are links. |
13781 | # The last name is the one that the linker finds with -lNAME | |
13782 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 13783 | |
8d138742 CE |
13784 | # The coded name of the library, if different from the real name. |
13785 | soname_spec=$lt_soname_spec | |
d9898ee8 | 13786 | |
b0322a85 CE |
13787 | # Permission mode override for installation of shared libraries. |
13788 | install_override_mode=$lt_install_override_mode | |
13789 | ||
8d138742 CE |
13790 | # Command to use after installation of a shared archive. |
13791 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 13792 | |
8d138742 CE |
13793 | # Command to use after uninstallation of a shared archive. |
13794 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 13795 | |
8d138742 CE |
13796 | # Commands used to finish a libtool library installation in a directory. |
13797 | finish_cmds=$lt_finish_cmds | |
dd184caf | 13798 | |
8d138742 CE |
13799 | # As "finish_cmds", except a single script fragment to be evaled but |
13800 | # not shown. | |
13801 | finish_eval=$lt_finish_eval | |
d9898ee8 | 13802 | |
8d138742 CE |
13803 | # Whether we should hardcode library paths into libraries. |
13804 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 13805 | |
8d138742 CE |
13806 | # Compile-time system search path for libraries. |
13807 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 13808 | |
8d138742 CE |
13809 | # Run-time system search path for libraries. |
13810 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 13811 | |
8d138742 CE |
13812 | # Whether dlopen is supported. |
13813 | dlopen_support=$enable_dlopen | |
d9898ee8 | 13814 | |
8d138742 CE |
13815 | # Whether dlopen of programs is supported. |
13816 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 13817 | |
8d138742 CE |
13818 | # Whether dlopen of statically linked programs is supported. |
13819 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 13820 | |
8d138742 CE |
13821 | # Commands to strip libraries. |
13822 | old_striplib=$lt_old_striplib | |
13823 | striplib=$lt_striplib | |
d9898ee8 | 13824 | |
d9898ee8 | 13825 | |
8d138742 CE |
13826 | # The linker used to build libraries. |
13827 | LD=$lt_LD | |
d9898ee8 | 13828 | |
b0322a85 CE |
13829 | # How to create reloadable object files. |
13830 | reload_flag=$lt_reload_flag | |
13831 | reload_cmds=$lt_reload_cmds | |
13832 | ||
8d138742 CE |
13833 | # Commands used to build an old-style archive. |
13834 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 13835 | |
8d138742 CE |
13836 | # A language specific compiler. |
13837 | CC=$lt_compiler | |
d9898ee8 | 13838 | |
8d138742 CE |
13839 | # Is the compiler the GNU compiler? |
13840 | with_gcc=$GCC | |
dd184caf | 13841 | |
8d138742 CE |
13842 | # Compiler flag to turn off builtin functions. |
13843 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 13844 | |
8d138742 CE |
13845 | # Additional compiler flags for building library objects. |
13846 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 13847 | |
b0322a85 CE |
13848 | # How to pass a linker flag through the compiler. |
13849 | wl=$lt_lt_prog_compiler_wl | |
13850 | ||
8d138742 CE |
13851 | # Compiler flag to prevent dynamic linking. |
13852 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 13853 | |
8d138742 CE |
13854 | # Does compiler simultaneously support -c and -o options? |
13855 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13856 | ||
13857 | # Whether or not to add -lc for building shared libraries. | |
13858 | build_libtool_need_lc=$archive_cmds_need_lc | |
13859 | ||
13860 | # Whether or not to disallow shared libs when runtime libs are static. | |
13861 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13862 | ||
13863 | # Compiler flag to allow reflexive dlopens. | |
13864 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 13865 | |
8d138742 CE |
13866 | # Compiler flag to generate shared objects directly from archives. |
13867 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 13868 | |
8d138742 CE |
13869 | # Whether the compiler copes with passing no objects directly. |
13870 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 13871 | |
8d138742 CE |
13872 | # Create an old-style archive from a shared archive. |
13873 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 13874 | |
8d138742 CE |
13875 | # Create a temporary old-style archive to link instead of a shared archive. |
13876 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 13877 | |
8d138742 CE |
13878 | # Commands used to build a shared archive. |
13879 | archive_cmds=$lt_archive_cmds | |
13880 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 13881 | |
8d138742 CE |
13882 | # Commands used to build a loadable module if different from building |
13883 | # a shared archive. | |
13884 | module_cmds=$lt_module_cmds | |
13885 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 13886 | |
8d138742 CE |
13887 | # Whether we are building with GNU ld or not. |
13888 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 13889 | |
8d138742 CE |
13890 | # Flag that allows shared libraries with undefined symbols to be built. |
13891 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 13892 | |
8d138742 CE |
13893 | # Flag that enforces no undefined symbols. |
13894 | no_undefined_flag=$lt_no_undefined_flag | |
d9898ee8 | 13895 | |
8d138742 CE |
13896 | # Flag to hardcode \$libdir into a binary during linking. |
13897 | # This must work even if \$libdir does not exist | |
13898 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 13899 | |
8d138742 CE |
13900 | # Whether we need a single "-rpath" flag with a separated argument. |
13901 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 13902 | |
8d138742 CE |
13903 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
13904 | # DIR into the resulting binary. | |
13905 | hardcode_direct=$hardcode_direct | |
dd184caf | 13906 | |
8d138742 CE |
13907 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
13908 | # DIR into the resulting binary and the resulting library dependency is | |
13909 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13910 | # library is relocated. | |
13911 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 13912 | |
8d138742 CE |
13913 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
13914 | # into the resulting binary. | |
13915 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 13916 | |
8d138742 CE |
13917 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
13918 | # into the resulting binary. | |
13919 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 13920 | |
8d138742 CE |
13921 | # Set to "yes" if building a shared library automatically hardcodes DIR |
13922 | # into the library and all subsequent libraries and executables linked | |
13923 | # against it. | |
13924 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 13925 | |
8d138742 CE |
13926 | # Set to yes if linker adds runtime paths of dependent libraries |
13927 | # to runtime path list. | |
13928 | inherit_rpath=$inherit_rpath | |
dd184caf | 13929 | |
8d138742 CE |
13930 | # Whether libtool must link a program against all its dependency libraries. |
13931 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 13932 | |
8d138742 CE |
13933 | # Set to "yes" if exported symbols are required. |
13934 | always_export_symbols=$always_export_symbols | |
dd184caf | 13935 | |
8d138742 CE |
13936 | # The commands to list exported symbols. |
13937 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 13938 | |
8d138742 CE |
13939 | # Symbols that should not be listed in the preloaded symbols. |
13940 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 13941 | |
8d138742 CE |
13942 | # Symbols that must always be exported. |
13943 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 13944 | |
8d138742 CE |
13945 | # Commands necessary for linking programs (against libraries) with templates. |
13946 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 13947 | |
b0322a85 CE |
13948 | # Commands necessary for finishing linking programs. |
13949 | postlink_cmds=$lt_postlink_cmds | |
13950 | ||
8d138742 CE |
13951 | # Specify filename containing input files. |
13952 | file_list_spec=$lt_file_list_spec | |
13953 | ||
13954 | # How to hardcode a shared library path into an executable. | |
13955 | hardcode_action=$hardcode_action | |
d9898ee8 | 13956 | |
8d138742 | 13957 | # ### END LIBTOOL CONFIG |
d9898ee8 | 13958 | |
8d138742 | 13959 | _LT_EOF |
d9898ee8 | 13960 | |
8d138742 CE |
13961 | case $host_os in |
13962 | aix3*) | |
13963 | cat <<\_LT_EOF >> "$cfgfile" | |
13964 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13965 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13966 | # vanish in a puff of smoke. | |
13967 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13968 | COLLECT_NAMES= | |
13969 | export COLLECT_NAMES | |
13970 | fi | |
13971 | _LT_EOF | |
13972 | ;; | |
d9898ee8 | 13973 | esac |
8d138742 CE |
13974 | |
13975 | ||
13976 | ltmain="$ac_aux_dir/ltmain.sh" | |
13977 | ||
13978 | ||
13979 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13980 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13981 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13982 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
13983 | sed '$q' "$ltmain" >> "$cfgfile" \ |
13984 | || (rm -f "$cfgfile"; exit 1) | |
13985 | ||
13986 | if test x"$xsi_shell" = xyes; then | |
13987 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
13988 | func_dirname ()\ | |
13989 | {\ | |
13990 | \ case ${1} in\ | |
13991 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
13992 | \ * ) func_dirname_result="${3}" ;;\ | |
13993 | \ esac\ | |
13994 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
13995 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13996 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13997 | test 0 -eq $? || _lt_function_replace_fail=: | |
13998 | ||
13999 | ||
14000 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
14001 | func_basename ()\ | |
14002 | {\ | |
14003 | \ func_basename_result="${1##*/}"\ | |
14004 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
14005 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14006 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14007 | test 0 -eq $? || _lt_function_replace_fail=: | |
14008 | ||
14009 | ||
14010 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
14011 | func_dirname_and_basename ()\ | |
14012 | {\ | |
14013 | \ case ${1} in\ | |
14014 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
14015 | \ * ) func_dirname_result="${3}" ;;\ | |
14016 | \ esac\ | |
14017 | \ func_basename_result="${1##*/}"\ | |
14018 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
14019 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14020 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14021 | test 0 -eq $? || _lt_function_replace_fail=: | |
14022 | ||
14023 | ||
14024 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
14025 | func_stripname ()\ | |
14026 | {\ | |
14027 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
14028 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
14029 | \ func_stripname_result=${3}\ | |
14030 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
14031 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
14032 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
14033 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14034 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14035 | test 0 -eq $? || _lt_function_replace_fail=: | |
14036 | ||
14037 | ||
14038 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
14039 | func_split_long_opt ()\ | |
14040 | {\ | |
14041 | \ func_split_long_opt_name=${1%%=*}\ | |
14042 | \ func_split_long_opt_arg=${1#*=}\ | |
14043 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
14044 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14045 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14046 | test 0 -eq $? || _lt_function_replace_fail=: | |
14047 | ||
14048 | ||
14049 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
14050 | func_split_short_opt ()\ | |
14051 | {\ | |
14052 | \ func_split_short_opt_arg=${1#??}\ | |
14053 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
14054 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
14055 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14056 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14057 | test 0 -eq $? || _lt_function_replace_fail=: | |
14058 | ||
14059 | ||
14060 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
14061 | func_lo2o ()\ | |
14062 | {\ | |
14063 | \ case ${1} in\ | |
14064 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
14065 | \ *) func_lo2o_result=${1} ;;\ | |
14066 | \ esac\ | |
14067 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
14068 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14069 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14070 | test 0 -eq $? || _lt_function_replace_fail=: | |
14071 | ||
14072 | ||
14073 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
14074 | func_xform ()\ | |
14075 | {\ | |
14076 | func_xform_result=${1%.*}.lo\ | |
14077 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
14078 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14079 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14080 | test 0 -eq $? || _lt_function_replace_fail=: | |
14081 | ||
14082 | ||
14083 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
14084 | func_arith ()\ | |
14085 | {\ | |
14086 | func_arith_result=$(( $* ))\ | |
14087 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
14088 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14089 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14090 | test 0 -eq $? || _lt_function_replace_fail=: | |
14091 | ||
14092 | ||
14093 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
14094 | func_len ()\ | |
14095 | {\ | |
14096 | func_len_result=${#1}\ | |
14097 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
14098 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14099 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14100 | test 0 -eq $? || _lt_function_replace_fail=: | |
14101 | ||
14102 | fi | |
14103 | ||
14104 | if test x"$lt_shell_append" = xyes; then | |
14105 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
14106 | func_append ()\ | |
14107 | {\ | |
14108 | eval "${1}+=\\${2}"\ | |
14109 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
14110 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14111 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14112 | test 0 -eq $? || _lt_function_replace_fail=: | |
14113 | ||
14114 | ||
14115 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
14116 | func_append_quoted ()\ | |
14117 | {\ | |
14118 | \ func_quote_for_eval "${2}"\ | |
14119 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
14120 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
14121 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14122 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14123 | test 0 -eq $? || _lt_function_replace_fail=: | |
14124 | ||
14125 | ||
14126 | # Save a `func_append' function call where possible by direct use of '+=' | |
14127 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
14128 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14129 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14130 | test 0 -eq $? || _lt_function_replace_fail=: | |
14131 | else | |
14132 | # Save a `func_append' function call even when '+=' is not available | |
14133 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
14134 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14135 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14136 | test 0 -eq $? || _lt_function_replace_fail=: | |
14137 | fi | |
14138 | ||
14139 | if test x"$_lt_function_replace_fail" = x":"; then | |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
14141 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
14142 | fi | |
14143 | ||
14144 | ||
14145 | mv -f "$cfgfile" "$ofile" || | |
8d138742 CE |
14146 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14147 | chmod +x "$ofile" | |
14148 | ||
d9898ee8 | 14149 | ;; |
dd184caf | 14150 | |
d9898ee8 | 14151 | esac |
dd184caf | 14152 | done # for ac_tag |
d9898ee8 | 14153 | |
d9898ee8 | 14154 | |
b0322a85 | 14155 | as_fn_exit 0 |
d9898ee8 | 14156 | _ACEOF |
d9898ee8 | 14157 | ac_clean_files=$ac_clean_files_save |
14158 | ||
8d138742 | 14159 | test $ac_write_fail = 0 || |
b0322a85 | 14160 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 14161 | |
d9898ee8 | 14162 | |
14163 | # configure is writing to config.log, and then calls config.status. | |
14164 | # config.status does its own redirection, appending to config.log. | |
14165 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14166 | # by configure, so config.status won't be able to write to it; its | |
14167 | # output is simply discarded. So we exec the FD to /dev/null, | |
14168 | # effectively closing config.log, so it can be properly (re)opened and | |
14169 | # appended to by config.status. When coming back to configure, we | |
14170 | # need to make the FD available again. | |
14171 | if test "$no_create" != yes; then | |
14172 | ac_cs_success=: | |
14173 | ac_config_status_args= | |
14174 | test "$silent" = yes && | |
14175 | ac_config_status_args="$ac_config_status_args --quiet" | |
14176 | exec 5>/dev/null | |
14177 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14178 | exec 5>>config.log | |
14179 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14180 | # would make configure fail if this is the last instruction. | |
b0322a85 | 14181 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 14182 | fi |
8d138742 | 14183 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
14185 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14186 | fi | |
d9898ee8 | 14187 |