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 libuserdb 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 | |
560 | ||
d9898ee8 | 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='libuserdb' | |
592 | PACKAGE_TARNAME='libuserdb' | |
593 | PACKAGE_VERSION='0.10' | |
594 | PACKAGE_STRING='libuserdb 0.10' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="userdb.c" | |
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
dd184caf | 602 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 603 | # include <sys/types.h> |
604 | #endif | |
dd184caf | 605 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 606 | # include <sys/stat.h> |
607 | #endif | |
dd184caf | 608 | #ifdef STDC_HEADERS |
d9898ee8 | 609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
dd184caf | 612 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
dd184caf | 616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
dd184caf | 622 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 623 | # include <strings.h> |
624 | #endif | |
dd184caf | 625 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 626 | # include <inttypes.h> |
d9898ee8 | 627 | #endif |
dd184caf | 628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
8d138742 CE |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
639 | HAVE_SGML_FALSE | |
640 | HAVE_SGML_TRUE | |
641 | CRYPTLIBS | |
642 | HMACLIB | |
643 | SHA1LIB | |
644 | MD5LIB | |
645 | makedat | |
646 | tmpdir | |
647 | userdbtmpdir | |
648 | USERDB | |
649 | userdb | |
650 | PERL | |
651 | CPP | |
d50284c4 | 652 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
653 | OTOOL64 |
654 | OTOOL | |
655 | LIPO | |
656 | NMEDIT | |
657 | DSYMUTIL | |
b0322a85 | 658 | MANIFEST_TOOL |
8d138742 | 659 | RANLIB |
b0322a85 | 660 | ac_ct_AR |
8d138742 | 661 | AR |
b0322a85 | 662 | DLLTOOL |
8d138742 CE |
663 | OBJDUMP |
664 | NM | |
665 | ac_ct_DUMPBIN | |
666 | DUMPBIN | |
667 | LD | |
668 | FGREP | |
669 | EGREP | |
670 | GREP | |
671 | SED | |
672 | host_os | |
673 | host_vendor | |
674 | host_cpu | |
675 | host | |
676 | build_os | |
677 | build_vendor | |
678 | build_cpu | |
679 | build | |
680 | LIBTOOL | |
681 | LN_S | |
682 | am__fastdepCC_FALSE | |
683 | am__fastdepCC_TRUE | |
684 | CCDEPMODE | |
b0322a85 | 685 | am__nodep |
8d138742 CE |
686 | AMDEPBACKSLASH |
687 | AMDEP_FALSE | |
688 | AMDEP_TRUE | |
689 | am__quote | |
690 | am__include | |
691 | DEPDIR | |
692 | OBJEXT | |
693 | EXEEXT | |
694 | ac_ct_CC | |
695 | CPPFLAGS | |
696 | LDFLAGS | |
697 | CFLAGS | |
698 | CC | |
b0322a85 CE |
699 | AM_BACKSLASH |
700 | AM_DEFAULT_VERBOSITY | |
701 | AM_DEFAULT_V | |
702 | AM_V | |
8d138742 CE |
703 | am__untar |
704 | am__tar | |
705 | AMTAR | |
706 | am__leading_dot | |
707 | SET_MAKE | |
708 | AWK | |
709 | mkdir_p | |
710 | MKDIR_P | |
711 | INSTALL_STRIP_PROGRAM | |
712 | STRIP | |
713 | install_sh | |
714 | MAKEINFO | |
715 | AUTOHEADER | |
716 | AUTOMAKE | |
717 | AUTOCONF | |
718 | ACLOCAL | |
719 | VERSION | |
720 | PACKAGE | |
721 | CYGPATH_W | |
722 | am__isrc | |
723 | INSTALL_DATA | |
724 | INSTALL_SCRIPT | |
725 | INSTALL_PROGRAM | |
726 | target_alias | |
727 | host_alias | |
dd184caf | 728 | build_alias |
8d138742 CE |
729 | LIBS |
730 | ECHO_T | |
731 | ECHO_N | |
732 | ECHO_C | |
733 | DEFS | |
734 | mandir | |
735 | localedir | |
736 | libdir | |
737 | psdir | |
738 | pdfdir | |
739 | dvidir | |
740 | htmldir | |
741 | infodir | |
742 | docdir | |
743 | oldincludedir | |
744 | includedir | |
745 | localstatedir | |
746 | sharedstatedir | |
747 | sysconfdir | |
748 | datadir | |
749 | datarootdir | |
750 | libexecdir | |
751 | sbindir | |
752 | bindir | |
753 | program_transform_name | |
754 | prefix | |
755 | exec_prefix | |
b0322a85 | 756 | PACKAGE_URL |
8d138742 CE |
757 | PACKAGE_BUGREPORT |
758 | PACKAGE_STRING | |
759 | PACKAGE_VERSION | |
760 | PACKAGE_TARNAME | |
761 | PACKAGE_NAME | |
762 | PATH_SEPARATOR | |
763 | SHELL' | |
764 | ac_subst_files='' | |
765 | ac_user_opts=' | |
766 | enable_option_checking | |
b0322a85 | 767 | enable_silent_rules |
8d138742 CE |
768 | enable_dependency_tracking |
769 | enable_shared | |
770 | enable_static | |
771 | with_pic | |
772 | enable_fast_install | |
d50284c4 | 773 | with_aix_soname |
8d138742 | 774 | with_gnu_ld |
b0322a85 | 775 | with_sysroot |
8d138742 CE |
776 | enable_libtool_lock |
777 | with_userdb | |
778 | with_userdbmandir | |
779 | with_userdbtmpdir | |
780 | with_makedatprog | |
b0322a85 | 781 | enable_largefile |
8d138742 CE |
782 | with_random |
783 | ' | |
784 | ac_precious_vars='build_alias | |
dd184caf | 785 | host_alias |
786 | target_alias | |
dd184caf | 787 | CC |
788 | CFLAGS | |
789 | LDFLAGS | |
8d138742 | 790 | LIBS |
dd184caf | 791 | CPPFLAGS |
d50284c4 | 792 | LT_SYS_LIBRARY_PATH |
8d138742 | 793 | CPP' |
dd184caf | 794 | |
d9898ee8 | 795 | |
796 | # Initialize some variables set by options. | |
797 | ac_init_help= | |
798 | ac_init_version=false | |
8d138742 CE |
799 | ac_unrecognized_opts= |
800 | ac_unrecognized_sep= | |
d9898ee8 | 801 | # The variables have the same names as the options, with |
802 | # dashes changed to underlines. | |
803 | cache_file=/dev/null | |
804 | exec_prefix=NONE | |
805 | no_create= | |
806 | no_recursion= | |
807 | prefix=NONE | |
808 | program_prefix=NONE | |
809 | program_suffix=NONE | |
810 | program_transform_name=s,x,x, | |
811 | silent= | |
812 | site= | |
813 | srcdir= | |
814 | verbose= | |
815 | x_includes=NONE | |
816 | x_libraries=NONE | |
817 | ||
818 | # Installation directory options. | |
819 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
820 | # and all the variables that are supposed to be based on exec_prefix | |
821 | # by default will actually change. | |
822 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 823 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 824 | bindir='${exec_prefix}/bin' |
825 | sbindir='${exec_prefix}/sbin' | |
826 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 827 | datarootdir='${prefix}/share' |
828 | datadir='${datarootdir}' | |
d9898ee8 | 829 | sysconfdir='${prefix}/etc' |
830 | sharedstatedir='${prefix}/com' | |
831 | localstatedir='${prefix}/var' | |
d9898ee8 | 832 | includedir='${prefix}/include' |
833 | oldincludedir='/usr/include' | |
dd184caf | 834 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
835 | infodir='${datarootdir}/info' | |
836 | htmldir='${docdir}' | |
837 | dvidir='${docdir}' | |
838 | pdfdir='${docdir}' | |
839 | psdir='${docdir}' | |
840 | libdir='${exec_prefix}/lib' | |
841 | localedir='${datarootdir}/locale' | |
842 | mandir='${datarootdir}/man' | |
d9898ee8 | 843 | |
844 | ac_prev= | |
dd184caf | 845 | ac_dashdash= |
d9898ee8 | 846 | for ac_option |
847 | do | |
848 | # If the previous option needs an argument, assign it. | |
849 | if test -n "$ac_prev"; then | |
dd184caf | 850 | eval $ac_prev=\$ac_option |
d9898ee8 | 851 | ac_prev= |
852 | continue | |
853 | fi | |
854 | ||
dd184caf | 855 | case $ac_option in |
b0322a85 CE |
856 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
857 | *=) ac_optarg= ;; | |
858 | *) ac_optarg=yes ;; | |
dd184caf | 859 | esac |
d9898ee8 | 860 | |
861 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
862 | ||
dd184caf | 863 | case $ac_dashdash$ac_option in |
864 | --) | |
865 | ac_dashdash=yes ;; | |
d9898ee8 | 866 | |
867 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
868 | ac_prev=bindir ;; | |
869 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
870 | bindir=$ac_optarg ;; | |
871 | ||
872 | -build | --build | --buil | --bui | --bu) | |
873 | ac_prev=build_alias ;; | |
874 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
875 | build_alias=$ac_optarg ;; | |
876 | ||
877 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
878 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
879 | ac_prev=cache_file ;; | |
880 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
881 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
882 | cache_file=$ac_optarg ;; | |
883 | ||
884 | --config-cache | -C) | |
885 | cache_file=config.cache ;; | |
886 | ||
dd184caf | 887 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 888 | ac_prev=datadir ;; |
dd184caf | 889 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 890 | datadir=$ac_optarg ;; |
891 | ||
dd184caf | 892 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
893 | | --dataroo | --dataro | --datar) | |
894 | ac_prev=datarootdir ;; | |
895 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
896 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
897 | datarootdir=$ac_optarg ;; | |
898 | ||
d9898ee8 | 899 | -disable-* | --disable-*) |
8d138742 | 900 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 901 | # Reject names that are not valid shell variable names. |
8d138742 | 902 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 903 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
904 | ac_useropt_orig=$ac_useropt |
905 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
906 | case $ac_user_opts in | |
907 | *" | |
908 | "enable_$ac_useropt" | |
909 | "*) ;; | |
910 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
911 | ac_unrecognized_sep=', ';; | |
912 | esac | |
913 | eval enable_$ac_useropt=no ;; | |
dd184caf | 914 | |
915 | -docdir | --docdir | --docdi | --doc | --do) | |
916 | ac_prev=docdir ;; | |
917 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
918 | docdir=$ac_optarg ;; | |
919 | ||
920 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
921 | ac_prev=dvidir ;; | |
922 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
923 | dvidir=$ac_optarg ;; | |
d9898ee8 | 924 | |
925 | -enable-* | --enable-*) | |
8d138742 | 926 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 927 | # Reject names that are not valid shell variable names. |
8d138742 | 928 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 929 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
930 | ac_useropt_orig=$ac_useropt |
931 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
932 | case $ac_user_opts in | |
933 | *" | |
934 | "enable_$ac_useropt" | |
935 | "*) ;; | |
936 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
937 | ac_unrecognized_sep=', ';; | |
938 | esac | |
939 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 940 | |
941 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
942 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
943 | | --exec | --exe | --ex) | |
944 | ac_prev=exec_prefix ;; | |
945 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
946 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
947 | | --exec=* | --exe=* | --ex=*) | |
948 | exec_prefix=$ac_optarg ;; | |
949 | ||
950 | -gas | --gas | --ga | --g) | |
951 | # Obsolete; use --with-gas. | |
952 | with_gas=yes ;; | |
953 | ||
954 | -help | --help | --hel | --he | -h) | |
955 | ac_init_help=long ;; | |
956 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
957 | ac_init_help=recursive ;; | |
958 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
959 | ac_init_help=short ;; | |
960 | ||
961 | -host | --host | --hos | --ho) | |
962 | ac_prev=host_alias ;; | |
963 | -host=* | --host=* | --hos=* | --ho=*) | |
964 | host_alias=$ac_optarg ;; | |
965 | ||
dd184caf | 966 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
967 | ac_prev=htmldir ;; | |
968 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
969 | | --ht=*) | |
970 | htmldir=$ac_optarg ;; | |
971 | ||
d9898ee8 | 972 | -includedir | --includedir | --includedi | --included | --include \ |
973 | | --includ | --inclu | --incl | --inc) | |
974 | ac_prev=includedir ;; | |
975 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
976 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
977 | includedir=$ac_optarg ;; | |
978 | ||
979 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
980 | ac_prev=infodir ;; | |
981 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
982 | infodir=$ac_optarg ;; | |
983 | ||
984 | -libdir | --libdir | --libdi | --libd) | |
985 | ac_prev=libdir ;; | |
986 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
987 | libdir=$ac_optarg ;; | |
988 | ||
989 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
990 | | --libexe | --libex | --libe) | |
991 | ac_prev=libexecdir ;; | |
992 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
993 | | --libexe=* | --libex=* | --libe=*) | |
994 | libexecdir=$ac_optarg ;; | |
995 | ||
dd184caf | 996 | -localedir | --localedir | --localedi | --localed | --locale) |
997 | ac_prev=localedir ;; | |
998 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
999 | localedir=$ac_optarg ;; | |
1000 | ||
d9898ee8 | 1001 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1002 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1003 | ac_prev=localstatedir ;; |
1004 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1005 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1006 | localstatedir=$ac_optarg ;; |
1007 | ||
1008 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1009 | ac_prev=mandir ;; | |
1010 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1011 | mandir=$ac_optarg ;; | |
1012 | ||
1013 | -nfp | --nfp | --nf) | |
1014 | # Obsolete; use --without-fp. | |
1015 | with_fp=no ;; | |
1016 | ||
1017 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1018 | | --no-cr | --no-c | -n) | |
1019 | no_create=yes ;; | |
1020 | ||
1021 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1022 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1023 | no_recursion=yes ;; | |
1024 | ||
1025 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1026 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1027 | | --oldin | --oldi | --old | --ol | --o) | |
1028 | ac_prev=oldincludedir ;; | |
1029 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1030 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1031 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1032 | oldincludedir=$ac_optarg ;; | |
1033 | ||
1034 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1035 | ac_prev=prefix ;; | |
1036 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1037 | prefix=$ac_optarg ;; | |
1038 | ||
1039 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1040 | | --program-pre | --program-pr | --program-p) | |
1041 | ac_prev=program_prefix ;; | |
1042 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1043 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1044 | program_prefix=$ac_optarg ;; | |
1045 | ||
1046 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1047 | | --program-suf | --program-su | --program-s) | |
1048 | ac_prev=program_suffix ;; | |
1049 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1050 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1051 | program_suffix=$ac_optarg ;; | |
1052 | ||
1053 | -program-transform-name | --program-transform-name \ | |
1054 | | --program-transform-nam | --program-transform-na \ | |
1055 | | --program-transform-n | --program-transform- \ | |
1056 | | --program-transform | --program-transfor \ | |
1057 | | --program-transfo | --program-transf \ | |
1058 | | --program-trans | --program-tran \ | |
1059 | | --progr-tra | --program-tr | --program-t) | |
1060 | ac_prev=program_transform_name ;; | |
1061 | -program-transform-name=* | --program-transform-name=* \ | |
1062 | | --program-transform-nam=* | --program-transform-na=* \ | |
1063 | | --program-transform-n=* | --program-transform-=* \ | |
1064 | | --program-transform=* | --program-transfor=* \ | |
1065 | | --program-transfo=* | --program-transf=* \ | |
1066 | | --program-trans=* | --program-tran=* \ | |
1067 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1068 | program_transform_name=$ac_optarg ;; | |
1069 | ||
dd184caf | 1070 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1071 | ac_prev=pdfdir ;; | |
1072 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1073 | pdfdir=$ac_optarg ;; | |
1074 | ||
1075 | -psdir | --psdir | --psdi | --psd | --ps) | |
1076 | ac_prev=psdir ;; | |
1077 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1078 | psdir=$ac_optarg ;; | |
1079 | ||
d9898ee8 | 1080 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1081 | | -silent | --silent | --silen | --sile | --sil) | |
1082 | silent=yes ;; | |
1083 | ||
1084 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1085 | ac_prev=sbindir ;; | |
1086 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1087 | | --sbi=* | --sb=*) | |
1088 | sbindir=$ac_optarg ;; | |
1089 | ||
1090 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1091 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1092 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1093 | | --sha | --sh) | |
1094 | ac_prev=sharedstatedir ;; | |
1095 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1096 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1097 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1098 | | --sha=* | --sh=*) | |
1099 | sharedstatedir=$ac_optarg ;; | |
1100 | ||
1101 | -site | --site | --sit) | |
1102 | ac_prev=site ;; | |
1103 | -site=* | --site=* | --sit=*) | |
1104 | site=$ac_optarg ;; | |
1105 | ||
1106 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1107 | ac_prev=srcdir ;; | |
1108 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1109 | srcdir=$ac_optarg ;; | |
1110 | ||
1111 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1112 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1113 | ac_prev=sysconfdir ;; | |
1114 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1115 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1116 | sysconfdir=$ac_optarg ;; | |
1117 | ||
1118 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1119 | ac_prev=target_alias ;; | |
1120 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1121 | target_alias=$ac_optarg ;; | |
1122 | ||
1123 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1124 | verbose=yes ;; | |
1125 | ||
1126 | -version | --version | --versio | --versi | --vers | -V) | |
1127 | ac_init_version=: ;; | |
1128 | ||
1129 | -with-* | --with-*) | |
8d138742 | 1130 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1131 | # Reject names that are not valid shell variable names. |
8d138742 | 1132 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1133 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1134 | ac_useropt_orig=$ac_useropt |
1135 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1136 | case $ac_user_opts in | |
1137 | *" | |
1138 | "with_$ac_useropt" | |
1139 | "*) ;; | |
1140 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1141 | ac_unrecognized_sep=', ';; | |
1142 | esac | |
1143 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1144 | |
1145 | -without-* | --without-*) | |
8d138742 | 1146 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1147 | # Reject names that are not valid shell variable names. |
8d138742 | 1148 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1149 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1150 | ac_useropt_orig=$ac_useropt |
1151 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1152 | case $ac_user_opts in | |
1153 | *" | |
1154 | "with_$ac_useropt" | |
1155 | "*) ;; | |
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1157 | ac_unrecognized_sep=', ';; | |
1158 | esac | |
1159 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1160 | |
1161 | --x) | |
1162 | # Obsolete; use --with-x. | |
1163 | with_x=yes ;; | |
1164 | ||
1165 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1166 | | --x-incl | --x-inc | --x-in | --x-i) | |
1167 | ac_prev=x_includes ;; | |
1168 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1169 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1170 | x_includes=$ac_optarg ;; | |
1171 | ||
1172 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1173 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1174 | ac_prev=x_libraries ;; | |
1175 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1176 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1177 | x_libraries=$ac_optarg ;; | |
1178 | ||
b0322a85 CE |
1179 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1180 | Try \`$0 --help' for more information" | |
d9898ee8 | 1181 | ;; |
1182 | ||
1183 | *=*) | |
1184 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1185 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1186 | case $ac_envvar in #( |
1187 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1188 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1189 | esac | |
dd184caf | 1190 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1191 | export $ac_envvar ;; |
1192 | ||
1193 | *) | |
1194 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1195 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1196 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1197 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1198 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1199 | ;; |
1200 | ||
1201 | esac | |
1202 | done | |
1203 | ||
1204 | if test -n "$ac_prev"; then | |
1205 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1206 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1207 | fi |
1208 | ||
8d138742 CE |
1209 | if test -n "$ac_unrecognized_opts"; then |
1210 | case $enable_option_checking in | |
1211 | no) ;; | |
b0322a85 | 1212 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1213 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1214 | esac | |
1215 | fi | |
1216 | ||
1217 | # Check all directory arguments for consistency. | |
dd184caf | 1218 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1219 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1220 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1221 | libdir localedir mandir | |
d9898ee8 | 1222 | do |
dd184caf | 1223 | eval ac_val=\$$ac_var |
8d138742 CE |
1224 | # Remove trailing slashes. |
1225 | case $ac_val in | |
1226 | */ ) | |
1227 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1228 | eval $ac_var=\$ac_val;; | |
1229 | esac | |
1230 | # Be sure to have absolute directory names. | |
d9898ee8 | 1231 | case $ac_val in |
dd184caf | 1232 | [\\/$]* | ?:[\\/]* ) continue;; |
1233 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1234 | esac |
b0322a85 | 1235 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1236 | done |
1237 | ||
1238 | # There might be people who depend on the old broken behavior: `$host' | |
1239 | # used to hold the argument of --host etc. | |
1240 | # FIXME: To remove some day. | |
1241 | build=$build_alias | |
1242 | host=$host_alias | |
1243 | target=$target_alias | |
1244 | ||
1245 | # FIXME: To remove some day. | |
1246 | if test "x$host_alias" != x; then | |
1247 | if test "x$build_alias" = x; then | |
1248 | cross_compiling=maybe | |
d9898ee8 | 1249 | elif test "x$build_alias" != "x$host_alias"; then |
1250 | cross_compiling=yes | |
1251 | fi | |
1252 | fi | |
1253 | ||
1254 | ac_tool_prefix= | |
1255 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1256 | ||
1257 | test "$silent" = yes && exec 6>/dev/null | |
1258 | ||
1259 | ||
dd184caf | 1260 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1261 | ac_ls_di=`ls -di .` && | |
1262 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1263 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1264 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1265 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1266 | |
1267 | ||
d9898ee8 | 1268 | # Find the source files, if location was not specified. |
1269 | if test -z "$srcdir"; then | |
1270 | ac_srcdir_defaulted=yes | |
dd184caf | 1271 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1272 | ac_confdir=`$as_dirname -- "$as_myself" || |
1273 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1274 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1275 | X"$as_myself" : 'X\(//\)$' \| \ | |
1276 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1277 | $as_echo X"$as_myself" | | |
dd184caf | 1278 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | /^X\(\/\/\)[^/].*/{ | |
1283 | s//\1/ | |
1284 | q | |
1285 | } | |
1286 | /^X\(\/\/\)$/{ | |
1287 | s//\1/ | |
1288 | q | |
1289 | } | |
1290 | /^X\(\/\).*/{ | |
1291 | s//\1/ | |
1292 | q | |
1293 | } | |
1294 | s/.*/./; q'` | |
d9898ee8 | 1295 | srcdir=$ac_confdir |
dd184caf | 1296 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1297 | srcdir=.. |
1298 | fi | |
1299 | else | |
1300 | ac_srcdir_defaulted=no | |
1301 | fi | |
dd184caf | 1302 | if test ! -r "$srcdir/$ac_unique_file"; then |
1303 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1304 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1305 | fi |
dd184caf | 1306 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1307 | ac_abs_confdir=`( | |
b0322a85 | 1308 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1309 | pwd)` |
1310 | # When building in place, set srcdir=. | |
1311 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1312 | srcdir=. | |
1313 | fi | |
1314 | # Remove unnecessary trailing slashes from srcdir. | |
1315 | # Double slashes in file names in object file debugging info | |
1316 | # mess up M-x gdb in Emacs. | |
1317 | case $srcdir in | |
1318 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1319 | esac | |
1320 | for ac_var in $ac_precious_vars; do | |
1321 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1322 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1323 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1324 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1325 | done | |
d9898ee8 | 1326 | |
1327 | # | |
1328 | # Report the --help message. | |
1329 | # | |
1330 | if test "$ac_init_help" = "long"; then | |
1331 | # Omit some internal or obsolete options to make the list less imposing. | |
1332 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1333 | cat <<_ACEOF | |
1334 | \`configure' configures libuserdb 0.10 to adapt to many kinds of systems. | |
1335 | ||
1336 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1337 | ||
1338 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1339 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1340 | ||
1341 | Defaults for the options are specified in brackets. | |
1342 | ||
1343 | Configuration: | |
1344 | -h, --help display this help and exit | |
1345 | --help=short display options specific to this package | |
1346 | --help=recursive display the short help of all the included packages | |
1347 | -V, --version display version information and exit | |
b0322a85 | 1348 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1349 | --cache-file=FILE cache test results in FILE [disabled] |
1350 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1351 | -n, --no-create do not create output files | |
1352 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1353 | ||
d9898ee8 | 1354 | Installation directories: |
1355 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1356 | [$ac_default_prefix] |
d9898ee8 | 1357 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1358 | [PREFIX] |
d9898ee8 | 1359 | |
1360 | By default, \`make install' will install all the files in | |
1361 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1362 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1363 | for instance \`--prefix=\$HOME'. | |
1364 | ||
1365 | For better control, use the options below. | |
1366 | ||
1367 | Fine tuning of the installation directories: | |
8d138742 CE |
1368 | --bindir=DIR user executables [EPREFIX/bin] |
1369 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1370 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1371 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1372 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1373 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1374 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1375 | --includedir=DIR C header files [PREFIX/include] | |
1376 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1377 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1378 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1379 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1380 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1381 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1382 | --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb] | |
1383 | --htmldir=DIR html documentation [DOCDIR] | |
1384 | --dvidir=DIR dvi documentation [DOCDIR] | |
1385 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1386 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1387 | _ACEOF |
1388 | ||
1389 | cat <<\_ACEOF | |
1390 | ||
1391 | Program names: | |
1392 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1393 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1394 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1395 | ||
1396 | System types: | |
1397 | --build=BUILD configure for building on BUILD [guessed] | |
1398 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1399 | _ACEOF | |
1400 | fi | |
1401 | ||
1402 | if test -n "$ac_init_help"; then | |
1403 | case $ac_init_help in | |
1404 | short | recursive ) echo "Configuration of libuserdb 0.10:";; | |
1405 | esac | |
1406 | cat <<\_ACEOF | |
1407 | ||
1408 | Optional Features: | |
8d138742 | 1409 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1410 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1411 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1412 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1413 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1414 | --enable-dependency-tracking | |
1415 | do not reject slow dependency extractors | |
1416 | --disable-dependency-tracking | |
1417 | speeds up one-time build | |
dd184caf | 1418 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1419 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1420 | --enable-fast-install[=PKGS] |
1421 | optimize for fast installation [default=yes] | |
1422 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1423 | --disable-largefile omit support for large files |
d9898ee8 | 1424 | |
1425 | Optional Packages: | |
1426 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1427 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1428 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1429 | both] |
d50284c4 CE |
1430 | --with-aix-soname=aix|svr4|both |
1431 | shared library versioning (aka "SONAME") variant to | |
1432 | provide on AIX, [default=aix]. | |
8d138742 | 1433 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1434 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1435 | compiler's sysroot if not specified). | |
d9898ee8 | 1436 | |
1437 | --with-random=/dev/urandom - location of the system random file generator | |
1438 | --without-random - there is no system random file generator | |
1439 | ||
1440 | Some influential environment variables: | |
1441 | CC C compiler command | |
1442 | CFLAGS C compiler flags | |
1443 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1444 | nonstandard directory <lib dir> | |
dd184caf | 1445 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1446 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1447 | you have headers in a nonstandard directory <include dir> |
d50284c4 CE |
1448 | LT_SYS_LIBRARY_PATH |
1449 | User-defined run-time library search path. | |
d9898ee8 | 1450 | CPP C preprocessor |
d9898ee8 | 1451 | |
1452 | Use these variables to override the choices made by `configure' or to help | |
1453 | it to find libraries and programs with nonstandard names/locations. | |
1454 | ||
1455 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1456 | _ACEOF | |
dd184caf | 1457 | ac_status=$? |
d9898ee8 | 1458 | fi |
1459 | ||
1460 | if test "$ac_init_help" = "recursive"; then | |
1461 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1462 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1463 | test -d "$ac_dir" || |
1464 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1465 | continue | |
d9898ee8 | 1466 | ac_builddir=. |
1467 | ||
b0322a85 CE |
1468 | case "$ac_dir" in |
1469 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1470 | *) | |
1471 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1472 | # A ".." for each directory in $ac_dir_suffix. | |
1473 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1474 | case $ac_top_builddir_sub in | |
1475 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1476 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1477 | esac ;; | |
1478 | esac | |
1479 | ac_abs_top_builddir=$ac_pwd | |
1480 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1481 | # for backward compatibility: | |
1482 | ac_top_builddir=$ac_top_build_prefix | |
1483 | ||
1484 | case $srcdir in | |
1485 | .) # We are building in place. | |
1486 | ac_srcdir=. | |
1487 | ac_top_srcdir=$ac_top_builddir_sub | |
1488 | ac_abs_top_srcdir=$ac_pwd ;; | |
1489 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1490 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1491 | ac_top_srcdir=$srcdir | |
1492 | ac_abs_top_srcdir=$srcdir ;; | |
1493 | *) # Relative name. | |
1494 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1495 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1496 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1497 | esac | |
1498 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1499 | ||
1500 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1501 | # Check for guested configure. | |
1502 | if test -f "$ac_srcdir/configure.gnu"; then | |
1503 | echo && | |
1504 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1505 | elif test -f "$ac_srcdir/configure"; then | |
1506 | echo && | |
1507 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1508 | else | |
1509 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1510 | fi || ac_status=$? | |
1511 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1512 | done | |
1513 | fi | |
1514 | ||
1515 | test -n "$ac_init_help" && exit $ac_status | |
1516 | if $ac_init_version; then | |
1517 | cat <<\_ACEOF | |
1518 | libuserdb configure 0.10 | |
1519 | generated by GNU Autoconf 2.69 | |
1520 | ||
1521 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1522 | This configure script is free software; the Free Software Foundation | |
1523 | gives unlimited permission to copy, distribute and modify it. | |
1524 | _ACEOF | |
1525 | exit | |
1526 | fi | |
1527 | ||
1528 | ## ------------------------ ## | |
1529 | ## Autoconf initialization. ## | |
1530 | ## ------------------------ ## | |
1531 | ||
1532 | # ac_fn_c_try_compile LINENO | |
1533 | # -------------------------- | |
1534 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1535 | ac_fn_c_try_compile () | |
1536 | { | |
1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1538 | rm -f conftest.$ac_objext | |
1539 | if { { ac_try="$ac_compile" | |
1540 | case "(($ac_try" in | |
1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1542 | *) ac_try_echo=$ac_try;; | |
1543 | esac | |
1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1545 | $as_echo "$ac_try_echo"; } >&5 | |
1546 | (eval "$ac_compile") 2>conftest.err | |
1547 | ac_status=$? | |
1548 | if test -s conftest.err; then | |
1549 | grep -v '^ *+' conftest.err >conftest.er1 | |
1550 | cat conftest.er1 >&5 | |
1551 | mv -f conftest.er1 conftest.err | |
1552 | fi | |
1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1554 | test $ac_status = 0; } && { | |
1555 | test -z "$ac_c_werror_flag" || | |
1556 | test ! -s conftest.err | |
1557 | } && test -s conftest.$ac_objext; then : | |
1558 | ac_retval=0 | |
1559 | else | |
1560 | $as_echo "$as_me: failed program was:" >&5 | |
1561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1562 | ||
1563 | ac_retval=1 | |
1564 | fi | |
1565 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1566 | as_fn_set_status $ac_retval | |
1567 | ||
1568 | } # ac_fn_c_try_compile | |
1569 | ||
1570 | # ac_fn_c_try_link LINENO | |
1571 | # ----------------------- | |
1572 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1573 | ac_fn_c_try_link () | |
1574 | { | |
1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1577 | if { { ac_try="$ac_link" | |
1578 | case "(($ac_try" in | |
1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1580 | *) ac_try_echo=$ac_try;; | |
1581 | esac | |
1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1583 | $as_echo "$ac_try_echo"; } >&5 | |
1584 | (eval "$ac_link") 2>conftest.err | |
1585 | ac_status=$? | |
1586 | if test -s conftest.err; then | |
1587 | grep -v '^ *+' conftest.err >conftest.er1 | |
1588 | cat conftest.er1 >&5 | |
1589 | mv -f conftest.er1 conftest.err | |
1590 | fi | |
1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1592 | test $ac_status = 0; } && { | |
1593 | test -z "$ac_c_werror_flag" || | |
1594 | test ! -s conftest.err | |
1595 | } && test -s conftest$ac_exeext && { | |
1596 | test "$cross_compiling" = yes || | |
1597 | test -x conftest$ac_exeext | |
1598 | }; then : | |
1599 | ac_retval=0 | |
1600 | else | |
1601 | $as_echo "$as_me: failed program was:" >&5 | |
1602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1603 | ||
1604 | ac_retval=1 | |
1605 | fi | |
1606 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1607 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1608 | # interfere with the next link command; also delete a directory that is | |
1609 | # left behind by Apple's compiler. We do this before executing the actions. | |
1610 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1611 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1612 | as_fn_set_status $ac_retval | |
1613 | ||
1614 | } # ac_fn_c_try_link | |
1615 | ||
1616 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1617 | # ------------------------------------------------------- | |
1618 | # Tests whether HEADER exists and can be compiled using the include files in | |
1619 | # INCLUDES, setting the cache variable VAR accordingly. | |
1620 | ac_fn_c_check_header_compile () | |
1621 | { | |
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1624 | $as_echo_n "checking for $2... " >&6; } | |
1625 | if eval \${$3+:} false; then : | |
1626 | $as_echo_n "(cached) " >&6 | |
1627 | else | |
1628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1629 | /* end confdefs.h. */ | |
1630 | $4 | |
1631 | #include <$2> | |
1632 | _ACEOF | |
1633 | if ac_fn_c_try_compile "$LINENO"; then : | |
1634 | eval "$3=yes" | |
1635 | else | |
1636 | eval "$3=no" | |
1637 | fi | |
1638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1639 | fi | |
1640 | eval ac_res=\$$3 | |
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1642 | $as_echo "$ac_res" >&6; } | |
1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1644 | ||
1645 | } # ac_fn_c_check_header_compile | |
1646 | ||
1647 | # ac_fn_c_try_cpp LINENO | |
1648 | # ---------------------- | |
1649 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1650 | ac_fn_c_try_cpp () | |
1651 | { | |
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1653 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1654 | case "(($ac_try" in | |
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 | *) ac_try_echo=$ac_try;; | |
1657 | esac | |
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 | $as_echo "$ac_try_echo"; } >&5 | |
1660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1661 | ac_status=$? | |
1662 | if test -s conftest.err; then | |
1663 | grep -v '^ *+' conftest.err >conftest.er1 | |
1664 | cat conftest.er1 >&5 | |
1665 | mv -f conftest.er1 conftest.err | |
1666 | fi | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 | test $ac_status = 0; } > conftest.i && { | |
1669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1670 | test ! -s conftest.err | |
1671 | }; then : | |
1672 | ac_retval=0 | |
1673 | else | |
1674 | $as_echo "$as_me: failed program was:" >&5 | |
1675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1676 | ||
1677 | ac_retval=1 | |
1678 | fi | |
1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1680 | as_fn_set_status $ac_retval | |
1681 | ||
1682 | } # ac_fn_c_try_cpp | |
1683 | ||
1684 | # ac_fn_c_try_run LINENO | |
1685 | # ---------------------- | |
1686 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1687 | # that executables *can* be run. | |
1688 | ac_fn_c_try_run () | |
1689 | { | |
1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1691 | if { { ac_try="$ac_link" | |
1692 | case "(($ac_try" in | |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1694 | *) ac_try_echo=$ac_try;; | |
1695 | esac | |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1697 | $as_echo "$ac_try_echo"; } >&5 | |
1698 | (eval "$ac_link") 2>&5 | |
1699 | ac_status=$? | |
1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1701 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1702 | { { case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_try") 2>&5 | |
1709 | ac_status=$? | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; }; }; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1715 | $as_echo "$as_me: failed program was:" >&5 | |
1716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1717 | ||
1718 | ac_retval=$ac_status | |
1719 | fi | |
1720 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1721 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1722 | as_fn_set_status $ac_retval | |
1723 | ||
1724 | } # ac_fn_c_try_run | |
1725 | ||
1726 | # ac_fn_c_check_func LINENO FUNC VAR | |
1727 | # ---------------------------------- | |
1728 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1729 | ac_fn_c_check_func () | |
1730 | { | |
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1733 | $as_echo_n "checking for $2... " >&6; } | |
1734 | if eval \${$3+:} false; then : | |
1735 | $as_echo_n "(cached) " >&6 | |
1736 | else | |
1737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1738 | /* end confdefs.h. */ | |
1739 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1741 | #define $2 innocuous_$2 | |
1742 | ||
1743 | /* System header to define __stub macros and hopefully few prototypes, | |
1744 | which can conflict with char $2 (); below. | |
1745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1746 | <limits.h> exists even on freestanding compilers. */ | |
1747 | ||
1748 | #ifdef __STDC__ | |
1749 | # include <limits.h> | |
1750 | #else | |
1751 | # include <assert.h> | |
1752 | #endif | |
1753 | ||
1754 | #undef $2 | |
1755 | ||
1756 | /* Override any GCC internal prototype to avoid an error. | |
1757 | Use char because int might match the return type of a GCC | |
1758 | builtin and then its argument prototype would still apply. */ | |
1759 | #ifdef __cplusplus | |
1760 | extern "C" | |
1761 | #endif | |
1762 | char $2 (); | |
1763 | /* The GNU C library defines this for functions which it implements | |
1764 | to always fail with ENOSYS. Some functions are actually named | |
1765 | something starting with __ and the normal name is an alias. */ | |
1766 | #if defined __stub_$2 || defined __stub___$2 | |
1767 | choke me | |
1768 | #endif | |
1769 | ||
1770 | int | |
1771 | main () | |
1772 | { | |
1773 | return $2 (); | |
1774 | ; | |
1775 | return 0; | |
1776 | } | |
1777 | _ACEOF | |
1778 | if ac_fn_c_try_link "$LINENO"; then : | |
1779 | eval "$3=yes" | |
1780 | else | |
1781 | eval "$3=no" | |
1782 | fi | |
1783 | rm -f core conftest.err conftest.$ac_objext \ | |
1784 | conftest$ac_exeext conftest.$ac_ext | |
1785 | fi | |
1786 | eval ac_res=\$$3 | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1788 | $as_echo "$ac_res" >&6; } | |
1789 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1790 | ||
1791 | } # ac_fn_c_check_func | |
1792 | ||
1793 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1794 | # ------------------------------------------------------- | |
1795 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1796 | # the include files in INCLUDES and setting the cache variable VAR | |
1797 | # accordingly. | |
1798 | ac_fn_c_check_header_mongrel () | |
1799 | { | |
1800 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1801 | if eval \${$3+:} false; then : | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1803 | $as_echo_n "checking for $2... " >&6; } | |
1804 | if eval \${$3+:} false; then : | |
1805 | $as_echo_n "(cached) " >&6 | |
1806 | fi | |
1807 | eval ac_res=\$$3 | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1809 | $as_echo "$ac_res" >&6; } | |
1810 | else | |
1811 | # Is the header compilable? | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1813 | $as_echo_n "checking $2 usability... " >&6; } | |
1814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1815 | /* end confdefs.h. */ | |
1816 | $4 | |
1817 | #include <$2> | |
1818 | _ACEOF | |
1819 | if ac_fn_c_try_compile "$LINENO"; then : | |
1820 | ac_header_compiler=yes | |
1821 | else | |
1822 | ac_header_compiler=no | |
1823 | fi | |
1824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1826 | $as_echo "$ac_header_compiler" >&6; } | |
1827 | ||
1828 | # Is the header present? | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1830 | $as_echo_n "checking $2 presence... " >&6; } | |
1831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1832 | /* end confdefs.h. */ | |
1833 | #include <$2> | |
1834 | _ACEOF | |
1835 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1836 | ac_header_preproc=yes | |
1837 | else | |
1838 | ac_header_preproc=no | |
1839 | fi | |
1840 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1842 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 1843 | |
b0322a85 CE |
1844 | # So? What about this header? |
1845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1846 | yes:no: ) | |
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1848 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1850 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1851 | ;; | |
1852 | no:yes:* ) | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1854 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1856 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1858 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1860 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1862 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1863 | ( $as_echo "## -------------------------------------------------- ## | |
1864 | ## Report this to courier-users@lists.sourceforge.net ## | |
1865 | ## -------------------------------------------------- ##" | |
1866 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1867 | ;; | |
d9898ee8 | 1868 | esac |
b0322a85 CE |
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1870 | $as_echo_n "checking for $2... " >&6; } | |
1871 | if eval \${$3+:} false; then : | |
1872 | $as_echo_n "(cached) " >&6 | |
1873 | else | |
1874 | eval "$3=\$ac_header_compiler" | |
d9898ee8 | 1875 | fi |
b0322a85 CE |
1876 | eval ac_res=\$$3 |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1878 | $as_echo "$ac_res" >&6; } | |
1879 | fi | |
1880 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1881 | |
b0322a85 | 1882 | } # ac_fn_c_check_header_mongrel |
d9898ee8 | 1883 | |
b0322a85 CE |
1884 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1885 | # ------------------------------------------- | |
1886 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1887 | # variable VAR accordingly. | |
1888 | ac_fn_c_check_type () | |
1889 | { | |
1890 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1892 | $as_echo_n "checking for $2... " >&6; } | |
1893 | if eval \${$3+:} false; then : | |
1894 | $as_echo_n "(cached) " >&6 | |
1895 | else | |
1896 | eval "$3=no" | |
1897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1898 | /* end confdefs.h. */ | |
1899 | $4 | |
1900 | int | |
1901 | main () | |
1902 | { | |
1903 | if (sizeof ($2)) | |
1904 | return 0; | |
1905 | ; | |
1906 | return 0; | |
1907 | } | |
d9898ee8 | 1908 | _ACEOF |
b0322a85 CE |
1909 | if ac_fn_c_try_compile "$LINENO"; then : |
1910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1911 | /* end confdefs.h. */ | |
1912 | $4 | |
1913 | int | |
1914 | main () | |
1915 | { | |
1916 | if (sizeof (($2))) | |
1917 | return 0; | |
1918 | ; | |
1919 | return 0; | |
1920 | } | |
1921 | _ACEOF | |
1922 | if ac_fn_c_try_compile "$LINENO"; then : | |
1923 | ||
1924 | else | |
1925 | eval "$3=yes" | |
1926 | fi | |
1927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1928 | fi | |
1929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 1930 | fi |
b0322a85 CE |
1931 | eval ac_res=\$$3 |
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1933 | $as_echo "$ac_res" >&6; } | |
1934 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1935 | ||
1936 | } # ac_fn_c_check_type | |
dd184caf | 1937 | cat >config.log <<_ACEOF |
d9898ee8 | 1938 | This file contains any messages produced by compilers while |
1939 | running configure, to aid debugging if configure makes a mistake. | |
1940 | ||
1941 | It was created by libuserdb $as_me 0.10, which was | |
b0322a85 | 1942 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1943 | |
1944 | $ $0 $@ | |
1945 | ||
1946 | _ACEOF | |
dd184caf | 1947 | exec 5>>config.log |
d9898ee8 | 1948 | { |
1949 | cat <<_ASUNAME | |
1950 | ## --------- ## | |
1951 | ## Platform. ## | |
1952 | ## --------- ## | |
1953 | ||
1954 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1955 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1956 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1957 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1958 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1959 | ||
1960 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1961 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1962 | ||
1963 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1964 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1965 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1966 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1967 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1968 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1969 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1970 | ||
1971 | _ASUNAME | |
1972 | ||
1973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1974 | for as_dir in $PATH | |
1975 | do | |
1976 | IFS=$as_save_IFS | |
1977 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1978 | $as_echo "PATH: $as_dir" |
1979 | done | |
dd184caf | 1980 | IFS=$as_save_IFS |
d9898ee8 | 1981 | |
1982 | } >&5 | |
1983 | ||
1984 | cat >&5 <<_ACEOF | |
1985 | ||
1986 | ||
1987 | ## ----------- ## | |
1988 | ## Core tests. ## | |
1989 | ## ----------- ## | |
1990 | ||
1991 | _ACEOF | |
1992 | ||
1993 | ||
1994 | # Keep a trace of the command line. | |
1995 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1996 | # Strip out --silent because we don't want to record it for future runs. | |
1997 | # Also quote any args containing shell meta-characters. | |
1998 | # Make two passes to allow for proper duplicate-argument suppression. | |
1999 | ac_configure_args= | |
2000 | ac_configure_args0= | |
2001 | ac_configure_args1= | |
d9898ee8 | 2002 | ac_must_keep_next=false |
2003 | for ac_pass in 1 2 | |
2004 | do | |
2005 | for ac_arg | |
2006 | do | |
2007 | case $ac_arg in | |
2008 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2009 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2010 | | -silent | --silent | --silen | --sile | --sil) | |
2011 | continue ;; | |
dd184caf | 2012 | *\'*) |
8d138742 | 2013 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2014 | esac |
2015 | case $ac_pass in | |
b0322a85 | 2016 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 2017 | 2) |
b0322a85 | 2018 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 2019 | if test $ac_must_keep_next = true; then |
2020 | ac_must_keep_next=false # Got value, back to normal. | |
2021 | else | |
2022 | case $ac_arg in | |
2023 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2024 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2025 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2026 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2027 | case "$ac_configure_args0 " in | |
2028 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2029 | esac | |
2030 | ;; | |
2031 | -* ) ac_must_keep_next=true ;; | |
2032 | esac | |
2033 | fi | |
b0322a85 | 2034 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2035 | ;; |
2036 | esac | |
2037 | done | |
2038 | done | |
b0322a85 CE |
2039 | { ac_configure_args0=; unset ac_configure_args0;} |
2040 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2041 | |
2042 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2043 | # config.log. We remove comments because anyway the quotes in there | |
2044 | # would cause problems or look ugly. | |
dd184caf | 2045 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2046 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2047 | trap 'exit_status=$? |
2048 | # Save into config.log some information that might help in debugging. | |
2049 | { | |
2050 | echo | |
2051 | ||
b0322a85 | 2052 | $as_echo "## ---------------- ## |
d9898ee8 | 2053 | ## Cache variables. ## |
b0322a85 | 2054 | ## ---------------- ##" |
d9898ee8 | 2055 | echo |
2056 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2057 | ( |
2058 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2059 | eval ac_val=\$$ac_var | |
2060 | case $ac_val in #( | |
2061 | *${as_nl}*) | |
2062 | case $ac_var in #( | |
b0322a85 | 2063 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2064 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2065 | esac |
2066 | case $ac_var in #( | |
2067 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2068 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2069 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2070 | esac ;; |
2071 | esac | |
2072 | done | |
d9898ee8 | 2073 | (set) 2>&1 | |
dd184caf | 2074 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2075 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2076 | sed -n \ |
dd184caf | 2077 | "s/'\''/'\''\\\\'\'''\''/g; |
2078 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2079 | ;; #( | |
d9898ee8 | 2080 | *) |
dd184caf | 2081 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2082 | ;; |
dd184caf | 2083 | esac | |
2084 | sort | |
2085 | ) | |
d9898ee8 | 2086 | echo |
2087 | ||
b0322a85 | 2088 | $as_echo "## ----------------- ## |
d9898ee8 | 2089 | ## Output variables. ## |
b0322a85 | 2090 | ## ----------------- ##" |
d9898ee8 | 2091 | echo |
2092 | for ac_var in $ac_subst_vars | |
2093 | do | |
dd184caf | 2094 | eval ac_val=\$$ac_var |
2095 | case $ac_val in | |
8d138742 | 2096 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2097 | esac |
8d138742 | 2098 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2099 | done | sort |
2100 | echo | |
2101 | ||
2102 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2103 | $as_echo "## ------------------- ## |
dd184caf | 2104 | ## File substitutions. ## |
b0322a85 | 2105 | ## ------------------- ##" |
d9898ee8 | 2106 | echo |
2107 | for ac_var in $ac_subst_files | |
2108 | do | |
dd184caf | 2109 | eval ac_val=\$$ac_var |
2110 | case $ac_val in | |
8d138742 | 2111 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2112 | esac |
8d138742 | 2113 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2114 | done | sort |
2115 | echo | |
2116 | fi | |
2117 | ||
2118 | if test -s confdefs.h; then | |
b0322a85 | 2119 | $as_echo "## ----------- ## |
d9898ee8 | 2120 | ## confdefs.h. ## |
b0322a85 | 2121 | ## ----------- ##" |
d9898ee8 | 2122 | echo |
dd184caf | 2123 | cat confdefs.h |
d9898ee8 | 2124 | echo |
2125 | fi | |
2126 | test "$ac_signal" != 0 && | |
8d138742 CE |
2127 | $as_echo "$as_me: caught signal $ac_signal" |
2128 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2129 | } >&5 |
dd184caf | 2130 | rm -f core *.core core.conftest.* && |
2131 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2132 | exit $exit_status |
dd184caf | 2133 | ' 0 |
d9898ee8 | 2134 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2135 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2136 | done |
2137 | ac_signal=0 | |
2138 | ||
2139 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2140 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2141 | |
b0322a85 CE |
2142 | $as_echo "/* confdefs.h */" > confdefs.h |
2143 | ||
d9898ee8 | 2144 | # Predefined preprocessor variables. |
2145 | ||
2146 | cat >>confdefs.h <<_ACEOF | |
2147 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2148 | _ACEOF | |
2149 | ||
d9898ee8 | 2150 | cat >>confdefs.h <<_ACEOF |
2151 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2152 | _ACEOF | |
2153 | ||
d9898ee8 | 2154 | cat >>confdefs.h <<_ACEOF |
2155 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2156 | _ACEOF | |
2157 | ||
d9898ee8 | 2158 | cat >>confdefs.h <<_ACEOF |
2159 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2160 | _ACEOF | |
2161 | ||
d9898ee8 | 2162 | cat >>confdefs.h <<_ACEOF |
2163 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2164 | _ACEOF | |
2165 | ||
b0322a85 CE |
2166 | cat >>confdefs.h <<_ACEOF |
2167 | #define PACKAGE_URL "$PACKAGE_URL" | |
2168 | _ACEOF | |
2169 | ||
d9898ee8 | 2170 | |
2171 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2172 | # Prefer an explicitly selected file to automatically selected ones. |
2173 | ac_site_file1=NONE | |
2174 | ac_site_file2=NONE | |
dd184caf | 2175 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2176 | # We do not want a PATH search for config.site. |
2177 | case $CONFIG_SITE in #(( | |
2178 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2179 | */*) ac_site_file1=$CONFIG_SITE;; | |
2180 | *) ac_site_file1=./$CONFIG_SITE;; | |
2181 | esac | |
dd184caf | 2182 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2183 | ac_site_file1=$prefix/share/config.site |
2184 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2185 | else |
8d138742 CE |
2186 | ac_site_file1=$ac_default_prefix/share/config.site |
2187 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2188 | fi |
8d138742 | 2189 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2190 | do |
8d138742 | 2191 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2192 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2194 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2195 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2196 | . "$ac_site_file" \ |
2197 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2199 | as_fn_error $? "failed to load site script $ac_site_file | |
2200 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2201 | fi |
2202 | done | |
2203 | ||
2204 | if test -r "$cache_file"; then | |
b0322a85 CE |
2205 | # Some versions of bash will fail to source /dev/null (special files |
2206 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2207 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2209 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2210 | case $cache_file in |
dd184caf | 2211 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2212 | *) . "./$cache_file";; | |
d9898ee8 | 2213 | esac |
2214 | fi | |
2215 | else | |
b0322a85 | 2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2217 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2218 | >$cache_file |
2219 | fi | |
2220 | ||
2221 | # Check that the precious variables saved in the cache have kept the same | |
2222 | # value. | |
2223 | ac_cache_corrupted=false | |
dd184caf | 2224 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2225 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2226 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2227 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2228 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2229 | case $ac_old_set,$ac_new_set in |
2230 | set,) | |
b0322a85 | 2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2232 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2233 | ac_cache_corrupted=: ;; |
2234 | ,set) | |
b0322a85 | 2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2236 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2237 | ac_cache_corrupted=: ;; |
2238 | ,);; | |
2239 | *) | |
2240 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2241 | # differences in whitespace do not lead to failure. |
2242 | ac_old_val_w=`echo x $ac_old_val` | |
2243 | ac_new_val_w=`echo x $ac_new_val` | |
2244 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2246 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2247 | ac_cache_corrupted=: | |
2248 | else | |
b0322a85 | 2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2250 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2251 | eval $ac_var=\$ac_old_val | |
2252 | fi | |
b0322a85 | 2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2254 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2256 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2257 | fi;; |
2258 | esac | |
2259 | # Pass precious variables to config.status. | |
2260 | if test "$ac_new_set" = set; then | |
2261 | case $ac_new_val in | |
8d138742 | 2262 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2263 | *) ac_arg=$ac_var=$ac_new_val ;; |
2264 | esac | |
2265 | case " $ac_configure_args " in | |
2266 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2267 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2268 | esac |
2269 | fi | |
2270 | done | |
2271 | if $ac_cache_corrupted; then | |
b0322a85 | 2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2275 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2276 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2277 | fi |
b0322a85 CE |
2278 | ## -------------------- ## |
2279 | ## Main body of script. ## | |
2280 | ## -------------------- ## | |
d9898ee8 | 2281 | |
dd184caf | 2282 | ac_ext=c |
2283 | ac_cpp='$CPP $CPPFLAGS' | |
2284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2287 | |
2288 | ||
2289 | ||
2290 | >confdefs.h # Kill PACKAGE_ macros. | |
2291 | ||
2292 | LPATH="$PATH:/usr/local/bin" | |
2293 | ||
2294 | ||
d9898ee8 | 2295 | ac_aux_dir= |
b0322a85 | 2296 | for ac_dir in .. "$srcdir"/..; do |
dd184caf | 2297 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2298 | ac_aux_dir=$ac_dir |
2299 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2300 | break | |
dd184caf | 2301 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2302 | ac_aux_dir=$ac_dir |
2303 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2304 | break | |
dd184caf | 2305 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2306 | ac_aux_dir=$ac_dir |
2307 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2308 | break | |
2309 | fi | |
2310 | done | |
2311 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2312 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
d9898ee8 | 2313 | fi |
dd184caf | 2314 | |
2315 | # These three variables are undocumented and unsupported, | |
2316 | # and are intended to be withdrawn in a future Autoconf release. | |
2317 | # They can cause serious problems if a builder's source tree is in a directory | |
2318 | # whose full name contains unusual characters. | |
2319 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2320 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2321 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2322 | ||
d9898ee8 | 2323 | |
d50284c4 | 2324 | am__api_version='1.15' |
b0322a85 | 2325 | |
d9898ee8 | 2326 | # Find a good install program. We prefer a C program (faster), |
2327 | # so one script is as good as another. But avoid the broken or | |
2328 | # incompatible versions: | |
2329 | # SysV /etc/install, /usr/sbin/install | |
2330 | # SunOS /usr/etc/install | |
2331 | # IRIX /sbin/install | |
2332 | # AIX /bin/install | |
2333 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2334 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2335 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2336 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2337 | # OS/2's system install, which has a completely different semantic | |
2338 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2339 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2341 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2342 | if test -z "$INSTALL"; then |
b0322a85 | 2343 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2344 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2345 | else |
2346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2347 | for as_dir in $PATH | |
2348 | do | |
2349 | IFS=$as_save_IFS | |
2350 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2351 | # Account for people who put trailing slashes in PATH elements. |
2352 | case $as_dir/ in #(( | |
2353 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2354 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2355 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2356 | /usr/ucb/* ) ;; |
2357 | *) | |
2358 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2359 | # Don't use installbsd from OSF since it installs stuff as root | |
2360 | # by default. | |
2361 | for ac_prog in ginstall scoinst install; do | |
2362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2363 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2364 | if test $ac_prog = install && |
2365 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2366 | # AIX install. It has an incompatible calling convention. | |
2367 | : | |
2368 | elif test $ac_prog = install && | |
2369 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2370 | # program-specific install script used by HP pwplus--don't use. | |
2371 | : | |
2372 | else | |
8d138742 CE |
2373 | rm -rf conftest.one conftest.two conftest.dir |
2374 | echo one > conftest.one | |
2375 | echo two > conftest.two | |
2376 | mkdir conftest.dir | |
2377 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2378 | test -s conftest.one && test -s conftest.two && | |
2379 | test -s conftest.dir/conftest.one && | |
2380 | test -s conftest.dir/conftest.two | |
2381 | then | |
2382 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2383 | break 3 | |
2384 | fi | |
d9898ee8 | 2385 | fi |
2386 | fi | |
2387 | done | |
2388 | done | |
2389 | ;; | |
2390 | esac | |
8d138742 | 2391 | |
b0322a85 | 2392 | done |
dd184caf | 2393 | IFS=$as_save_IFS |
d9898ee8 | 2394 | |
8d138742 | 2395 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2396 | |
2397 | fi | |
2398 | if test "${ac_cv_path_install+set}" = set; then | |
2399 | INSTALL=$ac_cv_path_install | |
2400 | else | |
dd184caf | 2401 | # As a last resort, use the slow shell script. Don't cache a |
2402 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2403 | # break other packages using the cache if that directory is |
dd184caf | 2404 | # removed, or if the value is a relative name. |
d9898ee8 | 2405 | INSTALL=$ac_install_sh |
2406 | fi | |
2407 | fi | |
b0322a85 | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2409 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2410 | |
2411 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2412 | # It thinks the first close brace ends the variable substitution. | |
2413 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2414 | ||
2415 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2416 | ||
2417 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2418 | ||
b0322a85 | 2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2420 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2421 | # Reject unsafe characters in $srcdir or the absolute working directory |
2422 | # name. Accept space and tab only in the latter. | |
2423 | am_lf=' | |
2424 | ' | |
2425 | case `pwd` in | |
2426 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2427 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2428 | esac |
2429 | case $srcdir in | |
2430 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2431 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2432 | esac |
2433 | ||
b0322a85 | 2434 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2435 | # arguments. Must try -L first in case configure is actually a |
2436 | # symlink; some systems play weird games with the mod time of symlinks | |
2437 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2438 | # directory). | |
2439 | if ( | |
b0322a85 CE |
2440 | am_has_slept=no |
2441 | for am_try in 1 2; do | |
2442 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2443 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2444 | if test "$*" = "X"; then | |
2445 | # -L didn't work. | |
2446 | set X `ls -t "$srcdir/configure" conftest.file` | |
2447 | fi | |
2448 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2449 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2450 | ||
2451 | # If neither matched, then we have a broken ls. This can happen | |
2452 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2453 | # broken ls alias from the environment. This has actually | |
2454 | # happened. Such a system could not be considered "sane". | |
2455 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2456 | alias in your environment" "$LINENO" 5 | |
2457 | fi | |
2458 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2459 | break | |
2460 | fi | |
2461 | # Just in case. | |
2462 | sleep 1 | |
2463 | am_has_slept=yes | |
2464 | done | |
d9898ee8 | 2465 | test "$2" = conftest.file |
2466 | ) | |
2467 | then | |
2468 | # Ok. | |
2469 | : | |
2470 | else | |
b0322a85 CE |
2471 | as_fn_error $? "newly created file is older than distributed files! |
2472 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2473 | fi |
b0322a85 | 2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2475 | $as_echo "yes" >&6; } |
b0322a85 CE |
2476 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2477 | # generated files are strictly newer. | |
2478 | am_sleep_pid= | |
2479 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2480 | ( sleep 1 ) & | |
2481 | am_sleep_pid=$! | |
2482 | fi | |
2483 | ||
2484 | rm -f conftest.file | |
2485 | ||
d9898ee8 | 2486 | test "$program_prefix" != NONE && |
dd184caf | 2487 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2488 | # Use a double $ so make ignores it. |
2489 | test "$program_suffix" != NONE && | |
dd184caf | 2490 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2491 | # Double any \ or $. |
d9898ee8 | 2492 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2493 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2494 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2495 | |
d50284c4 CE |
2496 | # Expand $ac_aux_dir to an absolute path. |
2497 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2498 | |
8d138742 CE |
2499 | if test x"${MISSING+set}" != xset; then |
2500 | case $am_aux_dir in | |
2501 | *\ * | *\ *) | |
2502 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2503 | *) | |
2504 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2505 | esac | |
2506 | fi | |
d9898ee8 | 2507 | # Use eval to expand $SHELL |
b0322a85 CE |
2508 | if eval "$MISSING --is-lightweight"; then |
2509 | am_missing_run="$MISSING " | |
d9898ee8 | 2510 | else |
2511 | am_missing_run= | |
b0322a85 CE |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2513 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2514 | fi |
2515 | ||
d50284c4 | 2516 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2517 | case $am_aux_dir in |
2518 | *\ * | *\ *) | |
2519 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2520 | *) | |
2521 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2522 | esac | |
2523 | fi | |
2524 | ||
b0322a85 CE |
2525 | # Installed binaries are usually stripped using 'strip' when the user |
2526 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2527 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2528 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2529 | if test "$cross_compiling" != no; then |
2530 | if test -n "$ac_tool_prefix"; then | |
2531 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2532 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2534 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2535 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2536 | $as_echo_n "(cached) " >&6 |
2537 | else | |
2538 | if test -n "$STRIP"; then | |
2539 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2540 | else | |
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2542 | for as_dir in $PATH | |
2543 | do | |
2544 | IFS=$as_save_IFS | |
2545 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
2547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2548 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2550 | break 2 |
2551 | fi | |
2552 | done | |
b0322a85 | 2553 | done |
8d138742 CE |
2554 | IFS=$as_save_IFS |
2555 | ||
2556 | fi | |
2557 | fi | |
2558 | STRIP=$ac_cv_prog_STRIP | |
2559 | if test -n "$STRIP"; then | |
b0322a85 | 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2561 | $as_echo "$STRIP" >&6; } |
2562 | else | |
b0322a85 | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2564 | $as_echo "no" >&6; } |
2565 | fi | |
2566 | ||
2567 | ||
2568 | fi | |
2569 | if test -z "$ac_cv_prog_STRIP"; then | |
2570 | ac_ct_STRIP=$STRIP | |
2571 | # Extract the first word of "strip", so it can be a program name with args. | |
2572 | set dummy strip; ac_word=$2 | |
b0322a85 | 2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2574 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2575 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2576 | $as_echo_n "(cached) " >&6 |
2577 | else | |
2578 | if test -n "$ac_ct_STRIP"; then | |
2579 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2580 | else | |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2582 | for as_dir in $PATH | |
2583 | do | |
2584 | IFS=$as_save_IFS | |
2585 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
2587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2588 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2590 | break 2 |
2591 | fi | |
2592 | done | |
b0322a85 | 2593 | done |
8d138742 CE |
2594 | IFS=$as_save_IFS |
2595 | ||
2596 | fi | |
2597 | fi | |
2598 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2599 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2601 | $as_echo "$ac_ct_STRIP" >&6; } |
2602 | else | |
b0322a85 | 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2604 | $as_echo "no" >&6; } |
2605 | fi | |
2606 | ||
2607 | if test "x$ac_ct_STRIP" = x; then | |
2608 | STRIP=":" | |
2609 | else | |
2610 | case $cross_compiling:$ac_tool_warned in | |
2611 | yes:) | |
b0322a85 | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2613 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2614 | ac_tool_warned=yes ;; | |
2615 | esac | |
2616 | STRIP=$ac_ct_STRIP | |
2617 | fi | |
2618 | else | |
2619 | STRIP="$ac_cv_prog_STRIP" | |
2620 | fi | |
2621 | ||
d9898ee8 | 2622 | fi |
8d138742 | 2623 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2624 | |
b0322a85 | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2626 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2627 | if test -z "$MKDIR_P"; then |
b0322a85 | 2628 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2629 | $as_echo_n "(cached) " >&6 |
dd184caf | 2630 | else |
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2632 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2633 | do | |
2634 | IFS=$as_save_IFS | |
2635 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2636 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2637 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2638 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2639 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2640 | 'mkdir (GNU coreutils) '* | \ | |
2641 | 'mkdir (coreutils) '* | \ | |
2642 | 'mkdir (fileutils) '4.1*) | |
2643 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2644 | break 3;; | |
2645 | esac | |
2646 | done | |
2647 | done | |
b0322a85 | 2648 | done |
dd184caf | 2649 | IFS=$as_save_IFS |
2650 | ||
2651 | fi | |
2652 | ||
b0322a85 | 2653 | test -d ./--version && rmdir ./--version |
dd184caf | 2654 | if test "${ac_cv_path_mkdir+set}" = set; then |
2655 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2656 | else |
dd184caf | 2657 | # As a last resort, use the slow shell script. Don't cache a |
2658 | # value for MKDIR_P within a source directory, because that will | |
2659 | # break other packages using the cache if that directory is | |
2660 | # removed, or if the value is a relative name. | |
dd184caf | 2661 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2662 | fi |
2663 | fi | |
b0322a85 | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2665 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2666 | |
d9898ee8 | 2667 | for ac_prog in gawk mawk nawk awk |
2668 | do | |
2669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2670 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2672 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2673 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2674 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2675 | else |
2676 | if test -n "$AWK"; then | |
2677 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2678 | else | |
2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2680 | for as_dir in $PATH | |
2681 | do | |
2682 | IFS=$as_save_IFS | |
2683 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2684 | for ac_exec_ext in '' $ac_executable_extensions; do |
2685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2686 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2688 | break 2 |
2689 | fi | |
2690 | done | |
b0322a85 | 2691 | done |
dd184caf | 2692 | IFS=$as_save_IFS |
d9898ee8 | 2693 | |
2694 | fi | |
2695 | fi | |
2696 | AWK=$ac_cv_prog_AWK | |
2697 | if test -n "$AWK"; then | |
b0322a85 | 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2699 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2700 | else |
b0322a85 | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2702 | $as_echo "no" >&6; } |
d9898ee8 | 2703 | fi |
2704 | ||
dd184caf | 2705 | |
d9898ee8 | 2706 | test -n "$AWK" && break |
2707 | done | |
2708 | ||
b0322a85 | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2710 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2711 | set x ${MAKE-make} | |
2712 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2713 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2714 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2715 | else |
2716 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2717 | SHELL = /bin/sh |
d9898ee8 | 2718 | all: |
dd184caf | 2719 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2720 | _ACEOF |
b0322a85 | 2721 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2722 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2723 | *@@@%%%=?*=@@@%%%*) | |
2724 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2725 | *) | |
2726 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2727 | esac | |
d9898ee8 | 2728 | rm -f conftest.make |
2729 | fi | |
dd184caf | 2730 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2732 | $as_echo "yes" >&6; } |
d9898ee8 | 2733 | SET_MAKE= |
2734 | else | |
b0322a85 | 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2736 | $as_echo "no" >&6; } |
d9898ee8 | 2737 | SET_MAKE="MAKE=${MAKE-make}" |
2738 | fi | |
2739 | ||
2740 | rm -rf .tst 2>/dev/null | |
2741 | mkdir .tst 2>/dev/null | |
2742 | if test -d .tst; then | |
2743 | am__leading_dot=. | |
2744 | else | |
2745 | am__leading_dot=_ | |
2746 | fi | |
2747 | rmdir .tst 2>/dev/null | |
2748 | ||
b0322a85 CE |
2749 | # Check whether --enable-silent-rules was given. |
2750 | if test "${enable_silent_rules+set}" = set; then : | |
2751 | enableval=$enable_silent_rules; | |
2752 | fi | |
2753 | ||
2754 | case $enable_silent_rules in # ((( | |
2755 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2756 | no) AM_DEFAULT_VERBOSITY=1;; | |
2757 | *) AM_DEFAULT_VERBOSITY=1;; | |
2758 | esac | |
2759 | am_make=${MAKE-make} | |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2761 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2762 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2763 | $as_echo_n "(cached) " >&6 | |
2764 | else | |
2765 | if $as_echo 'TRUE=$(BAR$(V)) | |
2766 | BAR0=false | |
2767 | BAR1=true | |
2768 | V=1 | |
2769 | am__doit: | |
2770 | @$(TRUE) | |
2771 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2772 | am_cv_make_support_nested_variables=yes | |
2773 | else | |
2774 | am_cv_make_support_nested_variables=no | |
2775 | fi | |
2776 | fi | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2778 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2779 | if test $am_cv_make_support_nested_variables = yes; then | |
2780 | AM_V='$(V)' | |
2781 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2782 | else | |
2783 | AM_V=$AM_DEFAULT_VERBOSITY | |
2784 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2785 | fi | |
2786 | AM_BACKSLASH='\' | |
2787 | ||
dd184caf | 2788 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2789 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2790 | # is not polluted with repeated "-I." | |
2791 | am__isrc=' -I$(srcdir)' | |
2792 | # test to see if srcdir already configured | |
2793 | if test -f $srcdir/config.status; then | |
b0322a85 | 2794 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2795 | fi |
d9898ee8 | 2796 | fi |
2797 | ||
2798 | # test whether we have cygpath | |
2799 | if test -z "$CYGPATH_W"; then | |
2800 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2801 | CYGPATH_W='cygpath -w' | |
2802 | else | |
2803 | CYGPATH_W=echo | |
2804 | fi | |
2805 | fi | |
2806 | ||
2807 | ||
2808 | # Define the identity of the package. | |
2809 | PACKAGE='libuserdb' | |
2810 | VERSION='0.10' | |
2811 | ||
2812 | ||
2813 | # Some tools Automake needs. | |
2814 | ||
2815 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2816 | ||
2817 | ||
2818 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2819 | ||
2820 | ||
2821 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2822 | ||
2823 | ||
2824 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2825 | ||
2826 | ||
2827 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2828 | ||
b0322a85 CE |
2829 | # For better backward compatibility. To be removed once Automake 1.9.x |
2830 | # dies out for good. For more background, see: | |
2831 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2832 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2833 | mkdir_p='$(MKDIR_P)' | |
2834 | ||
d50284c4 CE |
2835 | # We need awk for the "check" target (and possibly the TAP driver). The |
2836 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2837 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2838 | # in the wild :-( We should find a proper way to deprecate it ... | |
2839 | AMTAR='$${TAR-tar}' | |
2840 | ||
2841 | ||
2842 | # We'll loop over all known methods to create a tar archive until one works. | |
2843 | _am_tools='gnutar pax cpio none' | |
d9898ee8 | 2844 | |
b0322a85 | 2845 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d9898ee8 | 2846 | |
d9898ee8 | 2847 | |
2848 | ||
2849 | ||
2850 | ||
2851 | ||
d50284c4 CE |
2852 | # POSIX will say in a future version that running "rm -f" with no argument |
2853 | # is OK; and we want to be able to make that assumption in our Makefile | |
2854 | # recipes. So use an aggressive probe to check that the usage we want is | |
2855 | # actually supported "in the wild" to an acceptable degree. | |
2856 | # See automake bug#10828. | |
2857 | # To make any issue more visible, cause the running configure to be aborted | |
2858 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2859 | # user can still override this though. | |
2860 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2861 | cat >&2 <<'END' | |
2862 | Oops! | |
2863 | ||
2864 | Your 'rm' program seems unable to run without file operands specified | |
2865 | on the command line, even when the '-f' option is present. This is contrary | |
2866 | to the behaviour of most rm programs out there, and not conforming with | |
2867 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2868 | ||
2869 | Please tell bug-automake@gnu.org about your system, including the value | |
2870 | of your $PATH and any error possibly output before this message. This | |
2871 | can help us improve future automake versions. | |
2872 | ||
2873 | END | |
2874 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2875 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2876 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2877 | echo >&2 | |
2878 | else | |
2879 | cat >&2 <<'END' | |
2880 | Aborting the configuration process, to ensure you take notice of the issue. | |
2881 | ||
2882 | You can download and install GNU coreutils to get an 'rm' implementation | |
2883 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2884 | ||
2885 | If you want to complete the configuration process using your problematic | |
2886 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2887 | to "yes", and re-run configure. | |
2888 | ||
2889 | END | |
2890 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2891 | fi | |
2892 | fi | |
2893 | ||
b0322a85 CE |
2894 | ac_config_headers="$ac_config_headers config.h" |
2895 | ||
d9898ee8 | 2896 | |
2897 | for ac_prog in gawk mawk nawk awk | |
2898 | do | |
2899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2900 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2902 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2903 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2904 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2905 | else |
2906 | if test -n "$AWK"; then | |
2907 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2908 | else | |
2909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2910 | for as_dir in $PATH | |
2911 | do | |
2912 | IFS=$as_save_IFS | |
2913 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2914 | for ac_exec_ext in '' $ac_executable_extensions; do |
2915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2916 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2918 | break 2 |
2919 | fi | |
2920 | done | |
b0322a85 | 2921 | done |
dd184caf | 2922 | IFS=$as_save_IFS |
d9898ee8 | 2923 | |
2924 | fi | |
2925 | fi | |
2926 | AWK=$ac_cv_prog_AWK | |
2927 | if test -n "$AWK"; then | |
b0322a85 | 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2929 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2930 | else |
b0322a85 | 2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2932 | $as_echo "no" >&6; } |
d9898ee8 | 2933 | fi |
2934 | ||
dd184caf | 2935 | |
d9898ee8 | 2936 | test -n "$AWK" && break |
2937 | done | |
2938 | ||
2939 | ac_ext=c | |
2940 | ac_cpp='$CPP $CPPFLAGS' | |
2941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2944 | if test -n "$ac_tool_prefix"; then | |
2945 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2946 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2948 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2949 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2950 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2951 | else |
2952 | if test -n "$CC"; then | |
2953 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2954 | else | |
2955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2956 | for as_dir in $PATH | |
2957 | do | |
2958 | IFS=$as_save_IFS | |
2959 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2960 | for ac_exec_ext in '' $ac_executable_extensions; do |
2961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2962 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2964 | break 2 |
2965 | fi | |
2966 | done | |
b0322a85 | 2967 | done |
dd184caf | 2968 | IFS=$as_save_IFS |
d9898ee8 | 2969 | |
2970 | fi | |
2971 | fi | |
2972 | CC=$ac_cv_prog_CC | |
2973 | if test -n "$CC"; then | |
b0322a85 | 2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2975 | $as_echo "$CC" >&6; } |
d9898ee8 | 2976 | else |
b0322a85 | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2978 | $as_echo "no" >&6; } |
d9898ee8 | 2979 | fi |
2980 | ||
dd184caf | 2981 | |
d9898ee8 | 2982 | fi |
2983 | if test -z "$ac_cv_prog_CC"; then | |
2984 | ac_ct_CC=$CC | |
2985 | # Extract the first word of "gcc", so it can be a program name with args. | |
2986 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2988 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2989 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2990 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2991 | else |
2992 | if test -n "$ac_ct_CC"; then | |
2993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2994 | else | |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2996 | for as_dir in $PATH | |
2997 | do | |
2998 | IFS=$as_save_IFS | |
2999 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3000 | for ac_exec_ext in '' $ac_executable_extensions; do |
3001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3002 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3004 | break 2 |
3005 | fi | |
3006 | done | |
b0322a85 | 3007 | done |
dd184caf | 3008 | IFS=$as_save_IFS |
d9898ee8 | 3009 | |
3010 | fi | |
3011 | fi | |
3012 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3013 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3015 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3016 | else |
b0322a85 | 3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3018 | $as_echo "no" >&6; } |
d9898ee8 | 3019 | fi |
3020 | ||
dd184caf | 3021 | if test "x$ac_ct_CC" = x; then |
3022 | CC="" | |
3023 | else | |
3024 | case $cross_compiling:$ac_tool_warned in | |
3025 | yes:) | |
b0322a85 | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3027 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3028 | ac_tool_warned=yes ;; |
3029 | esac | |
3030 | CC=$ac_ct_CC | |
3031 | fi | |
d9898ee8 | 3032 | else |
3033 | CC="$ac_cv_prog_CC" | |
3034 | fi | |
3035 | ||
3036 | if test -z "$CC"; then | |
dd184caf | 3037 | if test -n "$ac_tool_prefix"; then |
3038 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3039 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3041 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3042 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3043 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3044 | else |
3045 | if test -n "$CC"; then | |
3046 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3047 | else | |
3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3049 | for as_dir in $PATH | |
3050 | do | |
3051 | IFS=$as_save_IFS | |
3052 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3053 | for ac_exec_ext in '' $ac_executable_extensions; do |
3054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3055 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3057 | break 2 |
3058 | fi | |
3059 | done | |
b0322a85 | 3060 | done |
dd184caf | 3061 | IFS=$as_save_IFS |
d9898ee8 | 3062 | |
3063 | fi | |
3064 | fi | |
3065 | CC=$ac_cv_prog_CC | |
3066 | if test -n "$CC"; then | |
b0322a85 | 3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3068 | $as_echo "$CC" >&6; } |
d9898ee8 | 3069 | else |
b0322a85 | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3071 | $as_echo "no" >&6; } |
d9898ee8 | 3072 | fi |
3073 | ||
d9898ee8 | 3074 | |
dd184caf | 3075 | fi |
d9898ee8 | 3076 | fi |
3077 | if test -z "$CC"; then | |
3078 | # Extract the first word of "cc", so it can be a program name with args. | |
3079 | set dummy cc; ac_word=$2 | |
b0322a85 | 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3081 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3082 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3083 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3084 | else |
3085 | if test -n "$CC"; then | |
3086 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3087 | else | |
3088 | ac_prog_rejected=no | |
3089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3090 | for as_dir in $PATH | |
3091 | do | |
3092 | IFS=$as_save_IFS | |
3093 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3094 | for ac_exec_ext in '' $ac_executable_extensions; do |
3095 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3096 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3097 | ac_prog_rejected=yes | |
3098 | continue | |
3099 | fi | |
3100 | ac_cv_prog_CC="cc" | |
b0322a85 | 3101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3102 | break 2 |
3103 | fi | |
3104 | done | |
b0322a85 | 3105 | done |
dd184caf | 3106 | IFS=$as_save_IFS |
d9898ee8 | 3107 | |
3108 | if test $ac_prog_rejected = yes; then | |
3109 | # We found a bogon in the path, so make sure we never use it. | |
3110 | set dummy $ac_cv_prog_CC | |
3111 | shift | |
3112 | if test $# != 0; then | |
3113 | # We chose a different compiler from the bogus one. | |
3114 | # However, it has the same basename, so the bogon will be chosen | |
3115 | # first if we set CC to just the basename; use the full file name. | |
3116 | shift | |
3117 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3118 | fi | |
3119 | fi | |
3120 | fi | |
3121 | fi | |
3122 | CC=$ac_cv_prog_CC | |
3123 | if test -n "$CC"; then | |
b0322a85 | 3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3125 | $as_echo "$CC" >&6; } |
d9898ee8 | 3126 | else |
b0322a85 | 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3128 | $as_echo "no" >&6; } |
d9898ee8 | 3129 | fi |
3130 | ||
dd184caf | 3131 | |
d9898ee8 | 3132 | fi |
3133 | if test -z "$CC"; then | |
3134 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3135 | for ac_prog in cl.exe |
d9898ee8 | 3136 | do |
3137 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3138 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3140 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3141 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3142 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3143 | else |
3144 | if test -n "$CC"; then | |
3145 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3146 | else | |
3147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3148 | for as_dir in $PATH | |
3149 | do | |
3150 | IFS=$as_save_IFS | |
3151 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3152 | for ac_exec_ext in '' $ac_executable_extensions; do |
3153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3154 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3156 | break 2 |
3157 | fi | |
3158 | done | |
b0322a85 | 3159 | done |
dd184caf | 3160 | IFS=$as_save_IFS |
d9898ee8 | 3161 | |
3162 | fi | |
3163 | fi | |
3164 | CC=$ac_cv_prog_CC | |
3165 | if test -n "$CC"; then | |
b0322a85 | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3167 | $as_echo "$CC" >&6; } |
d9898ee8 | 3168 | else |
b0322a85 | 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3170 | $as_echo "no" >&6; } |
d9898ee8 | 3171 | fi |
3172 | ||
dd184caf | 3173 | |
d9898ee8 | 3174 | test -n "$CC" && break |
3175 | done | |
3176 | fi | |
3177 | if test -z "$CC"; then | |
3178 | ac_ct_CC=$CC | |
dd184caf | 3179 | for ac_prog in cl.exe |
d9898ee8 | 3180 | do |
3181 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3182 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3184 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3185 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3186 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3187 | else |
3188 | if test -n "$ac_ct_CC"; then | |
3189 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3190 | else | |
3191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3192 | for as_dir in $PATH | |
3193 | do | |
3194 | IFS=$as_save_IFS | |
3195 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3196 | for ac_exec_ext in '' $ac_executable_extensions; do |
3197 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3198 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3200 | break 2 |
3201 | fi | |
3202 | done | |
b0322a85 | 3203 | done |
dd184caf | 3204 | IFS=$as_save_IFS |
d9898ee8 | 3205 | |
3206 | fi | |
3207 | fi | |
3208 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3209 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3211 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3212 | else |
b0322a85 | 3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3214 | $as_echo "no" >&6; } |
d9898ee8 | 3215 | fi |
3216 | ||
dd184caf | 3217 | |
d9898ee8 | 3218 | test -n "$ac_ct_CC" && break |
3219 | done | |
3220 | ||
dd184caf | 3221 | if test "x$ac_ct_CC" = x; then |
3222 | CC="" | |
3223 | else | |
3224 | case $cross_compiling:$ac_tool_warned in | |
3225 | yes:) | |
b0322a85 | 3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3227 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3228 | ac_tool_warned=yes ;; |
3229 | esac | |
3230 | CC=$ac_ct_CC | |
3231 | fi | |
d9898ee8 | 3232 | fi |
3233 | ||
3234 | fi | |
3235 | ||
3236 | ||
b0322a85 | 3237 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3239 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3240 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3241 | |
3242 | # Provide some information about the compiler. | |
b0322a85 | 3243 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3244 | set X $ac_compile |
3245 | ac_compiler=$2 | |
b0322a85 CE |
3246 | for ac_option in --version -v -V -qversion; do |
3247 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3248 | case "(($ac_try" in |
3249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3250 | *) ac_try_echo=$ac_try;; | |
3251 | esac | |
b0322a85 CE |
3252 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3253 | $as_echo "$ac_try_echo"; } >&5 | |
3254 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3255 | ac_status=$? |
b0322a85 CE |
3256 | if test -s conftest.err; then |
3257 | sed '10a\ | |
3258 | ... rest of stderr output deleted ... | |
3259 | 10q' conftest.err >conftest.er1 | |
3260 | cat conftest.er1 >&5 | |
3261 | fi | |
3262 | rm -f conftest.er1 conftest.err | |
3263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3264 | test $ac_status = 0; } | |
3265 | done | |
d9898ee8 | 3266 | |
b0322a85 | 3267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3268 | /* end confdefs.h. */ |
3269 | ||
3270 | int | |
3271 | main () | |
3272 | { | |
3273 | ||
3274 | ; | |
3275 | return 0; | |
3276 | } | |
3277 | _ACEOF | |
3278 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3279 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3280 | # Try to create an executable without -o first, disregard a.out. |
3281 | # It will help us diagnose broken compilers, and finding out an intuition | |
3282 | # of exeext. | |
b0322a85 CE |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3284 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3285 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3286 | ||
3287 | # The possible output files: | |
3288 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3289 | ||
dd184caf | 3290 | ac_rmfiles= |
3291 | for ac_file in $ac_files | |
3292 | do | |
3293 | case $ac_file in | |
8d138742 | 3294 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3295 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3296 | esac | |
3297 | done | |
3298 | rm -f $ac_rmfiles | |
3299 | ||
b0322a85 | 3300 | if { { ac_try="$ac_link_default" |
dd184caf | 3301 | case "(($ac_try" in |
3302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3303 | *) ac_try_echo=$ac_try;; | |
3304 | esac | |
b0322a85 CE |
3305 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3306 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3307 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3308 | ac_status=$? |
b0322a85 CE |
3309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3310 | test $ac_status = 0; }; then : | |
dd184caf | 3311 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3312 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3313 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3314 | # so that the user can short-circuit this test for compilers unknown to | |
3315 | # Autoconf. | |
3316 | for ac_file in $ac_files '' | |
d9898ee8 | 3317 | do |
3318 | test -f "$ac_file" || continue | |
3319 | case $ac_file in | |
8d138742 | 3320 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3321 | ;; |
3322 | [ab].out ) | |
3323 | # We found the default executable, but exeext='' is most | |
3324 | # certainly right. | |
3325 | break;; | |
3326 | *.* ) | |
b0322a85 | 3327 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3328 | then :; else |
3329 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3330 | fi | |
3331 | # We set ac_cv_exeext here because the later test for it is not | |
3332 | # safe: cross compilers may not add the suffix if given an `-o' | |
3333 | # argument, so we may need to know it at that point already. | |
3334 | # Even if this section looks crufty: it has the advantage of | |
3335 | # actually working. | |
b0322a85 CE |
3336 | break;; |
3337 | * ) | |
3338 | break;; | |
3339 | esac | |
3340 | done | |
3341 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3342 | ||
3343 | else | |
3344 | ac_file='' | |
d9898ee8 | 3345 | fi |
b0322a85 CE |
3346 | if test -z "$ac_file"; then : |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3348 | $as_echo "no" >&6; } | |
3349 | $as_echo "$as_me: failed program was:" >&5 | |
3350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3351 | ||
3352 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3354 | as_fn_error 77 "C compiler cannot create executables | |
3355 | See \`config.log' for more details" "$LINENO" 5; } | |
3356 | else | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8d138742 | 3358 | $as_echo "yes" >&6; } |
b0322a85 CE |
3359 | fi |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3361 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3363 | $as_echo "$ac_file" >&6; } | |
3364 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3365 | |
8d138742 | 3366 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3367 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3369 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3370 | if { { ac_try="$ac_link" |
dd184caf | 3371 | case "(($ac_try" in |
3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3373 | *) ac_try_echo=$ac_try;; | |
3374 | esac | |
b0322a85 CE |
3375 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3376 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3377 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3378 | ac_status=$? |
b0322a85 CE |
3379 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3380 | test $ac_status = 0; }; then : | |
d9898ee8 | 3381 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3382 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3383 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3384 | # `rm'. | |
3385 | for ac_file in conftest.exe conftest conftest.*; do | |
3386 | test -f "$ac_file" || continue | |
3387 | case $ac_file in | |
8d138742 | 3388 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3389 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3390 | break;; |
3391 | * ) break;; | |
3392 | esac | |
3393 | done | |
3394 | else | |
b0322a85 | 3395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3397 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3398 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3399 | fi |
b0322a85 CE |
3400 | rm -f conftest conftest$ac_cv_exeext |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3402 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3403 | |
3404 | rm -f conftest.$ac_ext | |
3405 | EXEEXT=$ac_cv_exeext | |
3406 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3408 | /* end confdefs.h. */ | |
3409 | #include <stdio.h> | |
3410 | int | |
3411 | main () | |
3412 | { | |
3413 | FILE *f = fopen ("conftest.out", "w"); | |
3414 | return ferror (f) || fclose (f) != 0; | |
3415 | ||
3416 | ; | |
3417 | return 0; | |
3418 | } | |
3419 | _ACEOF | |
3420 | ac_clean_files="$ac_clean_files conftest.out" | |
3421 | # Check that the compiler produces executables we can run. If not, either | |
3422 | # the compiler is broken, or we cross compile. | |
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3424 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3425 | if test "$cross_compiling" != yes; then | |
3426 | { { ac_try="$ac_link" | |
3427 | case "(($ac_try" in | |
3428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3429 | *) ac_try_echo=$ac_try;; | |
3430 | esac | |
3431 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3432 | $as_echo "$ac_try_echo"; } >&5 | |
3433 | (eval "$ac_link") 2>&5 | |
3434 | ac_status=$? | |
3435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3436 | test $ac_status = 0; } | |
3437 | if { ac_try='./conftest$ac_cv_exeext' | |
3438 | { { case "(($ac_try" in | |
3439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3440 | *) ac_try_echo=$ac_try;; | |
3441 | esac | |
3442 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3443 | $as_echo "$ac_try_echo"; } >&5 | |
3444 | (eval "$ac_try") 2>&5 | |
3445 | ac_status=$? | |
3446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3447 | test $ac_status = 0; }; }; then | |
3448 | cross_compiling=no | |
3449 | else | |
3450 | if test "$cross_compiling" = maybe; then | |
3451 | cross_compiling=yes | |
3452 | else | |
3453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3455 | as_fn_error $? "cannot run C compiled programs. | |
3456 | If you meant to cross compile, use \`--host'. | |
3457 | See \`config.log' for more details" "$LINENO" 5; } | |
3458 | fi | |
3459 | fi | |
3460 | fi | |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3462 | $as_echo "$cross_compiling" >&6; } | |
3463 | ||
3464 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3465 | ac_clean_files=$ac_clean_files_save | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3467 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3468 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3469 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3470 | else |
b0322a85 | 3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3472 | /* end confdefs.h. */ |
3473 | ||
3474 | int | |
3475 | main () | |
3476 | { | |
3477 | ||
3478 | ; | |
3479 | return 0; | |
3480 | } | |
3481 | _ACEOF | |
3482 | rm -f conftest.o conftest.obj | |
b0322a85 | 3483 | if { { ac_try="$ac_compile" |
dd184caf | 3484 | case "(($ac_try" in |
3485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3486 | *) ac_try_echo=$ac_try;; | |
3487 | esac | |
b0322a85 CE |
3488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3489 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3490 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3491 | ac_status=$? |
b0322a85 CE |
3492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3493 | test $ac_status = 0; }; then : | |
dd184caf | 3494 | for ac_file in conftest.o conftest.obj conftest.*; do |
3495 | test -f "$ac_file" || continue; | |
d9898ee8 | 3496 | case $ac_file in |
8d138742 | 3497 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3498 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3499 | break;; | |
3500 | esac | |
3501 | done | |
3502 | else | |
8d138742 | 3503 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3504 | sed 's/^/| /' conftest.$ac_ext >&5 |
3505 | ||
b0322a85 | 3506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3508 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3509 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3510 | fi |
d9898ee8 | 3511 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3512 | fi | |
b0322a85 | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3514 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3515 | OBJEXT=$ac_cv_objext |
3516 | ac_objext=$OBJEXT | |
b0322a85 | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3518 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3519 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3520 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3521 | else |
b0322a85 | 3522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3523 | /* end confdefs.h. */ |
3524 | ||
3525 | int | |
3526 | main () | |
3527 | { | |
3528 | #ifndef __GNUC__ | |
3529 | choke me | |
3530 | #endif | |
3531 | ||
3532 | ; | |
3533 | return 0; | |
3534 | } | |
3535 | _ACEOF | |
b0322a85 | 3536 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3537 | ac_compiler_gnu=yes |
3538 | else | |
b0322a85 | 3539 | ac_compiler_gnu=no |
d9898ee8 | 3540 | fi |
dd184caf | 3541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3542 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3543 | ||
3544 | fi | |
b0322a85 | 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3546 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3547 | if test $ac_compiler_gnu = yes; then | |
3548 | GCC=yes | |
3549 | else | |
3550 | GCC= | |
3551 | fi | |
d9898ee8 | 3552 | ac_test_CFLAGS=${CFLAGS+set} |
3553 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3555 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3556 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3557 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3558 | else |
dd184caf | 3559 | ac_save_c_werror_flag=$ac_c_werror_flag |
3560 | ac_c_werror_flag=yes | |
3561 | ac_cv_prog_cc_g=no | |
3562 | CFLAGS="-g" | |
b0322a85 | 3563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3564 | /* end confdefs.h. */ |
3565 | ||
3566 | int | |
3567 | main () | |
3568 | { | |
3569 | ||
3570 | ; | |
3571 | return 0; | |
3572 | } | |
3573 | _ACEOF | |
b0322a85 | 3574 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3575 | ac_cv_prog_cc_g=yes |
3576 | else | |
b0322a85 CE |
3577 | CFLAGS="" |
3578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3579 | /* end confdefs.h. */ |
3580 | ||
3581 | int | |
3582 | main () | |
3583 | { | |
3584 | ||
3585 | ; | |
3586 | return 0; | |
3587 | } | |
3588 | _ACEOF | |
b0322a85 | 3589 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3590 | |
b0322a85 CE |
3591 | else |
3592 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3593 | CFLAGS="-g" |
b0322a85 | 3594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3595 | /* end confdefs.h. */ |
3596 | ||
3597 | int | |
3598 | main () | |
3599 | { | |
3600 | ||
3601 | ; | |
3602 | return 0; | |
3603 | } | |
3604 | _ACEOF | |
b0322a85 | 3605 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3606 | ac_cv_prog_cc_g=yes |
dd184caf | 3607 | fi |
dd184caf | 3608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3609 | fi | |
dd184caf | 3610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3611 | fi |
dd184caf | 3612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3613 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3614 | fi |
b0322a85 | 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3616 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3617 | if test "$ac_test_CFLAGS" = set; then |
3618 | CFLAGS=$ac_save_CFLAGS | |
3619 | elif test $ac_cv_prog_cc_g = yes; then | |
3620 | if test "$GCC" = yes; then | |
3621 | CFLAGS="-g -O2" | |
3622 | else | |
3623 | CFLAGS="-g" | |
3624 | fi | |
3625 | else | |
3626 | if test "$GCC" = yes; then | |
3627 | CFLAGS="-O2" | |
3628 | else | |
3629 | CFLAGS= | |
3630 | fi | |
3631 | fi | |
b0322a85 | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3633 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3634 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3635 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3636 | else |
dd184caf | 3637 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3638 | ac_save_CC=$CC |
b0322a85 | 3639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3640 | /* end confdefs.h. */ |
3641 | #include <stdarg.h> | |
3642 | #include <stdio.h> | |
b0322a85 | 3643 | struct stat; |
d9898ee8 | 3644 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3645 | struct buf { int x; }; | |
3646 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3647 | static char *e (p, i) | |
3648 | char **p; | |
3649 | int i; | |
3650 | { | |
3651 | return p[i]; | |
3652 | } | |
3653 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3654 | { | |
3655 | char *s; | |
3656 | va_list v; | |
3657 | va_start (v,p); | |
3658 | s = g (p, va_arg (v,int)); | |
3659 | va_end (v); | |
3660 | return s; | |
3661 | } | |
3662 | ||
3663 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3664 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3665 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3666 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3667 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3668 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3669 | that's true only with -std. */ |
d9898ee8 | 3670 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3671 | ||
dd184caf | 3672 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3673 | inside strings and character constants. */ | |
3674 | #define FOO(x) 'x' | |
3675 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3676 | ||
d9898ee8 | 3677 | int test (int i, double x); |
3678 | struct s1 {int (*f) (int a);}; | |
3679 | struct s2 {int (*f) (double a);}; | |
3680 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3681 | int argc; | |
3682 | char **argv; | |
3683 | int | |
3684 | main () | |
3685 | { | |
3686 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3687 | ; | |
3688 | return 0; | |
3689 | } | |
3690 | _ACEOF | |
dd184caf | 3691 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3692 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3693 | do |
3694 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3695 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3696 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3697 | fi |
dd184caf | 3698 | rm -f core conftest.err conftest.$ac_objext |
3699 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3700 | done |
dd184caf | 3701 | rm -f conftest.$ac_ext |
d9898ee8 | 3702 | CC=$ac_save_CC |
3703 | ||
3704 | fi | |
dd184caf | 3705 | # AC_CACHE_VAL |
3706 | case "x$ac_cv_prog_cc_c89" in | |
3707 | x) | |
b0322a85 | 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3709 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3710 | xno) |
b0322a85 | 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3712 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3713 | *) |
dd184caf | 3714 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3716 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3717 | esac |
b0322a85 | 3718 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3719 | |
b0322a85 | 3720 | fi |
d9898ee8 | 3721 | |
d9898ee8 | 3722 | ac_ext=c |
3723 | ac_cpp='$CPP $CPPFLAGS' | |
3724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3727 | |
3728 | ac_ext=c | |
3729 | ac_cpp='$CPP $CPPFLAGS' | |
3730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3734 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3735 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3736 | $as_echo_n "(cached) " >&6 | |
3737 | else | |
3738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3739 | /* end confdefs.h. */ | |
3740 | ||
3741 | int | |
3742 | main () | |
3743 | { | |
3744 | ||
3745 | ; | |
3746 | return 0; | |
3747 | } | |
3748 | _ACEOF | |
3749 | # Make sure it works both with $CC and with simple cc. | |
3750 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3751 | # compilers refuse to overwrite an existing .o file with -o, | |
3752 | # though they will create one. | |
3753 | am_cv_prog_cc_c_o=yes | |
3754 | for am_i in 1 2; do | |
3755 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3756 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3757 | ac_status=$? | |
3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3759 | (exit $ac_status); } \ | |
3760 | && test -f conftest2.$ac_objext; then | |
3761 | : OK | |
3762 | else | |
3763 | am_cv_prog_cc_c_o=no | |
3764 | break | |
3765 | fi | |
3766 | done | |
3767 | rm -f core conftest* | |
3768 | unset am_i | |
3769 | fi | |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3771 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3772 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3773 | # Losing compiler, so override with the script. | |
3774 | # FIXME: It is wrong to rewrite CC. | |
3775 | # But if we don't then we get into trouble of one sort or another. | |
3776 | # A longer-term fix would be to have automake use am__CC in this case, | |
3777 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3778 | CC="$am_aux_dir/compile $CC" | |
3779 | fi | |
3780 | ac_ext=c | |
3781 | ac_cpp='$CPP $CPPFLAGS' | |
3782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3785 | ||
d9898ee8 | 3786 | DEPDIR="${am__leading_dot}deps" |
3787 | ||
dd184caf | 3788 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3789 | |
3790 | ||
3791 | am_make=${MAKE-make} | |
3792 | cat > confinc << 'END' | |
3793 | am__doit: | |
8d138742 | 3794 | @echo this is the am__doit target |
d9898ee8 | 3795 | .PHONY: am__doit |
3796 | END | |
3797 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3799 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3800 | am__include="#" |
3801 | am__quote= | |
3802 | _am_result=none | |
3803 | # First try GNU make style include. | |
3804 | echo "include confinc" > confmf | |
b0322a85 | 3805 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3806 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3807 | *the\ am__doit\ target*) | |
3808 | am__include=include | |
3809 | am__quote= | |
3810 | _am_result=GNU | |
3811 | ;; | |
3812 | esac | |
d9898ee8 | 3813 | # Now try BSD make style include. |
3814 | if test "$am__include" = "#"; then | |
3815 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3816 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3817 | *the\ am__doit\ target*) | |
3818 | am__include=.include | |
3819 | am__quote="\"" | |
3820 | _am_result=BSD | |
3821 | ;; | |
3822 | esac | |
d9898ee8 | 3823 | fi |
3824 | ||
3825 | ||
b0322a85 | 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3827 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3828 | rm -f confinc confmf |
3829 | ||
dd184caf | 3830 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3831 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3832 | enableval=$enable_dependency_tracking; |
3833 | fi | |
d9898ee8 | 3834 | |
d9898ee8 | 3835 | if test "x$enable_dependency_tracking" != xno; then |
3836 | am_depcomp="$ac_aux_dir/depcomp" | |
3837 | AMDEPBACKSLASH='\' | |
b0322a85 | 3838 | am__nodep='_no' |
d9898ee8 | 3839 | fi |
dd184caf | 3840 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3841 | AMDEP_TRUE= |
3842 | AMDEP_FALSE='#' | |
3843 | else | |
3844 | AMDEP_TRUE='#' | |
3845 | AMDEP_FALSE= | |
3846 | fi | |
3847 | ||
3848 | ||
3849 | ||
d9898ee8 | 3850 | depcc="$CC" am_compiler_list= |
3851 | ||
b0322a85 | 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3853 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3854 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3855 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3856 | else |
3857 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3858 | # We make a subdir and do the tests there. Otherwise we can end up | |
3859 | # making bogus files that we don't know about and never remove. For | |
3860 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3861 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3862 | # in D". | |
3863 | rm -rf conftest.dir | |
d9898ee8 | 3864 | mkdir conftest.dir |
3865 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3866 | # using a relative directory. | |
3867 | cp "$am_depcomp" conftest.dir | |
3868 | cd conftest.dir | |
3869 | # We will build objects and dependencies in a subdirectory because | |
3870 | # it helps to detect inapplicable dependency modes. For instance | |
3871 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3872 | # side effect of compilation, but ICC will put the dependencies in | |
3873 | # the current directory while Tru64 will put them in the object | |
3874 | # directory. | |
3875 | mkdir sub | |
3876 | ||
3877 | am_cv_CC_dependencies_compiler_type=none | |
3878 | if test "$am_compiler_list" = ""; then | |
3879 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3880 | fi | |
8d138742 CE |
3881 | am__universal=false |
3882 | case " $depcc " in #( | |
3883 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3884 | esac | |
3885 | ||
d9898ee8 | 3886 | for depmode in $am_compiler_list; do |
3887 | # Setup a source with many dependencies, because some compilers | |
3888 | # like to wrap large dependency lists on column 80 (with \), and | |
3889 | # we should not choose a depcomp mode which is confused by this. | |
3890 | # | |
3891 | # We need to recreate these files for each test, as the compiler may | |
3892 | # overwrite some of them when testing with obscure command lines. | |
3893 | # This happens at least with the AIX C compiler. | |
3894 | : > sub/conftest.c | |
3895 | for i in 1 2 3 4 5 6; do | |
3896 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3897 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3898 | # Solaris 10 /bin/sh. | |
3899 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3900 | done |
3901 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3902 | ||
b0322a85 | 3903 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3904 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3905 | # handle '-M -o', and we need to detect this. Also, some Intel |
3906 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3907 | am__obj=sub/conftest.${OBJEXT-o} |
3908 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3909 | case $depmode in |
8d138742 CE |
3910 | gcc) |
3911 | # This depmode causes a compiler race in universal mode. | |
3912 | test "$am__universal" = false || continue | |
3913 | ;; | |
d9898ee8 | 3914 | nosideeffect) |
b0322a85 CE |
3915 | # After this tag, mechanisms are not by side-effect, so they'll |
3916 | # only be used when explicitly requested. | |
d9898ee8 | 3917 | if test "x$enable_dependency_tracking" = xyes; then |
3918 | continue | |
3919 | else | |
3920 | break | |
3921 | fi | |
3922 | ;; | |
b0322a85 CE |
3923 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3924 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3925 | # not run yet. These depmodes are late enough in the game, and |
3926 | # so weak that their functioning should not be impacted. | |
3927 | am__obj=conftest.${OBJEXT-o} | |
3928 | am__minus_obj= | |
3929 | ;; | |
d9898ee8 | 3930 | none) break ;; |
3931 | esac | |
d9898ee8 | 3932 | if depmode=$depmode \ |
8d138742 | 3933 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3934 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3935 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3936 | >/dev/null 2>conftest.err && |
dd184caf | 3937 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3938 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3939 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3940 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3941 | # icc doesn't choke on unknown options, it will just issue warnings | |
3942 | # or remarks (even with -Werror). So we grep stderr for any message | |
3943 | # that says an option was ignored or not supported. | |
3944 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3945 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3946 | # The diagnosis changed in icc 8.0: | |
3947 | # icc: Command line remark: option '-MP' not supported | |
3948 | if (grep 'ignoring option' conftest.err || | |
3949 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3950 | am_cv_CC_dependencies_compiler_type=$depmode | |
3951 | break | |
3952 | fi | |
3953 | fi | |
3954 | done | |
3955 | ||
3956 | cd .. | |
3957 | rm -rf conftest.dir | |
3958 | else | |
3959 | am_cv_CC_dependencies_compiler_type=none | |
3960 | fi | |
3961 | ||
3962 | fi | |
b0322a85 | 3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3964 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3965 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3966 | ||
dd184caf | 3967 | if |
d9898ee8 | 3968 | test "x$enable_dependency_tracking" != xno \ |
3969 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3970 | am__fastdepCC_TRUE= | |
3971 | am__fastdepCC_FALSE='#' | |
3972 | else | |
3973 | am__fastdepCC_TRUE='#' | |
3974 | am__fastdepCC_FALSE= | |
3975 | fi | |
3976 | ||
3977 | ||
d9898ee8 | 3978 | |
b0322a85 | 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3980 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3981 | LN_S=$as_ln_s |
3982 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3984 | $as_echo "yes" >&6; } |
d9898ee8 | 3985 | else |
b0322a85 | 3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3987 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3988 | fi |
3989 | ||
8d138742 CE |
3990 | case `pwd` in |
3991 | *\ * | *\ *) | |
b0322a85 | 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
3993 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3994 | esac | |
3995 | ||
3996 | ||
3997 | ||
d50284c4 CE |
3998 | macro_version='2.4.6' |
3999 | macro_revision='2.4.6' | |
dd184caf | 4000 | |
d9898ee8 | 4001 | |
dd184caf | 4002 | |
d9898ee8 | 4003 | |
dd184caf | 4004 | |
d9898ee8 | 4005 | |
8d138742 CE |
4006 | |
4007 | ||
4008 | ||
4009 | ||
4010 | ||
4011 | ||
4012 | ||
d50284c4 | 4013 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 | 4014 | |
d9898ee8 | 4015 | # Make sure we can run config.sub. |
dd184caf | 4016 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4017 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4018 | |
b0322a85 | 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4020 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4021 | if ${ac_cv_build+:} false; then : |
8d138742 | 4022 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4023 | else |
dd184caf | 4024 | ac_build_alias=$build_alias |
4025 | test "x$ac_build_alias" = x && | |
4026 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4027 | test "x$ac_build_alias" = x && | |
b0322a85 | 4028 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4029 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4030 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4031 | |
4032 | fi | |
b0322a85 | 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4034 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4035 | case $ac_cv_build in |
4036 | *-*-*) ;; | |
b0322a85 | 4037 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4038 | esac |
d9898ee8 | 4039 | build=$ac_cv_build |
dd184caf | 4040 | ac_save_IFS=$IFS; IFS='-' |
4041 | set x $ac_cv_build | |
4042 | shift | |
4043 | build_cpu=$1 | |
4044 | build_vendor=$2 | |
4045 | shift; shift | |
4046 | # Remember, the first character of IFS is used to create $*, | |
4047 | # except with old shells: | |
4048 | build_os=$* | |
4049 | IFS=$ac_save_IFS | |
4050 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4051 | ||
4052 | ||
b0322a85 | 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4054 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4055 | if ${ac_cv_host+:} false; then : |
8d138742 | 4056 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4057 | else |
dd184caf | 4058 | if test "x$host_alias" = x; then |
4059 | ac_cv_host=$ac_cv_build | |
4060 | else | |
4061 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4062 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4063 | fi |
d9898ee8 | 4064 | |
4065 | fi | |
b0322a85 CE |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4067 | $as_echo "$ac_cv_host" >&6; } | |
4068 | case $ac_cv_host in | |
4069 | *-*-*) ;; | |
4070 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4071 | esac | |
4072 | host=$ac_cv_host | |
4073 | ac_save_IFS=$IFS; IFS='-' | |
4074 | set x $ac_cv_host | |
4075 | shift | |
4076 | host_cpu=$1 | |
4077 | host_vendor=$2 | |
4078 | shift; shift | |
4079 | # Remember, the first character of IFS is used to create $*, | |
4080 | # except with old shells: | |
4081 | host_os=$* | |
4082 | IFS=$ac_save_IFS | |
4083 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4084 | ||
4085 | ||
4086 | # Backslashify metacharacters that are still active within | |
4087 | # double-quoted strings. | |
4088 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4089 | ||
4090 | # Same as above, but do not quote variable references. | |
4091 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4092 | ||
4093 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4094 | # double_quote_subst'ed string. | |
4095 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4096 | ||
4097 | # Sed substitution to delay expansion of an escaped single quote. | |
4098 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4099 | ||
4100 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4101 | no_glob_subst='s/\*/\\\*/g' | |
4102 | ||
4103 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4104 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4105 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4106 | ||
4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4108 | $as_echo_n "checking how to print strings... " >&6; } | |
4109 | # Test print first, because it will be a builtin if present. | |
4110 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4111 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4112 | ECHO='print -r --' | |
4113 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4114 | ECHO='printf %s\n' | |
4115 | else | |
4116 | # Use this function as a fallback that always works. | |
4117 | func_fallback_echo () | |
4118 | { | |
4119 | eval 'cat <<_LTECHO_EOF | |
4120 | $1 | |
4121 | _LTECHO_EOF' | |
4122 | } | |
4123 | ECHO='func_fallback_echo' | |
4124 | fi | |
4125 | ||
4126 | # func_echo_all arg... | |
4127 | # Invoke $ECHO with all args, space-separated. | |
4128 | func_echo_all () | |
4129 | { | |
4130 | $ECHO "" | |
4131 | } | |
4132 | ||
d50284c4 | 4133 | case $ECHO in |
b0322a85 CE |
4134 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4135 | $as_echo "printf" >&6; } ;; | |
4136 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4137 | $as_echo "print -r" >&6; } ;; | |
4138 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4139 | $as_echo "cat" >&6; } ;; | |
dd184caf | 4140 | esac |
dd184caf | 4141 | |
4142 | ||
b0322a85 CE |
4143 | |
4144 | ||
4145 | ||
4146 | ||
4147 | ||
4148 | ||
4149 | ||
4150 | ||
4151 | ||
4152 | ||
4153 | ||
4154 | ||
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4156 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4157 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4158 | $as_echo_n "(cached) " >&6 |
4159 | else | |
4160 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4161 | for ac_i in 1 2 3 4 5 6 7; do | |
4162 | ac_script="$ac_script$as_nl$ac_script" | |
4163 | done | |
4164 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4165 | { ac_script=; unset ac_script;} |
8d138742 CE |
4166 | if test -z "$SED"; then |
4167 | ac_path_SED_found=false | |
4168 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4170 | for as_dir in $PATH |
4171 | do | |
4172 | IFS=$as_save_IFS | |
4173 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4174 | for ac_prog in sed gsed; do |
d9898ee8 | 4175 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4176 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4177 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4178 | # Check for GNU ac_path_SED and select it if it is found. |
4179 | # Check for GNU $ac_path_SED | |
4180 | case `"$ac_path_SED" --version 2>&1` in | |
4181 | *GNU*) | |
4182 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4183 | *) | |
4184 | ac_count=0 | |
4185 | $as_echo_n 0123456789 >"conftest.in" | |
4186 | while : | |
4187 | do | |
4188 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4189 | mv "conftest.tmp" "conftest.in" | |
4190 | cp "conftest.in" "conftest.nl" | |
4191 | $as_echo '' >> "conftest.nl" | |
4192 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4193 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4194 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4195 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4196 | # Best one so far, save it but keep looking for a better one | |
4197 | ac_cv_path_SED="$ac_path_SED" | |
4198 | ac_path_SED_max=$ac_count | |
4199 | fi | |
4200 | # 10*(2^10) chars as input seems more than enough | |
4201 | test $ac_count -gt 10 && break | |
4202 | done | |
4203 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4204 | esac | |
4205 | ||
4206 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4207 | done |
4208 | done | |
b0322a85 | 4209 | done |
d9898ee8 | 4210 | IFS=$as_save_IFS |
8d138742 | 4211 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4212 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4213 | fi |
8d138742 CE |
4214 | else |
4215 | ac_cv_path_SED=$SED | |
4216 | fi | |
d9898ee8 | 4217 | |
4218 | fi | |
b0322a85 | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4220 | $as_echo "$ac_cv_path_SED" >&6; } |
4221 | SED="$ac_cv_path_SED" | |
4222 | rm -f conftest.sed | |
4223 | ||
4224 | test -z "$SED" && SED=sed | |
4225 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4226 | |
d9898ee8 | 4227 | |
dd184caf | 4228 | |
8d138742 CE |
4229 | |
4230 | ||
4231 | ||
4232 | ||
4233 | ||
4234 | ||
4235 | ||
4236 | ||
b0322a85 | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4238 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4239 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4240 | $as_echo_n "(cached) " >&6 |
dd184caf | 4241 | else |
8d138742 | 4242 | if test -z "$GREP"; then |
dd184caf | 4243 | ac_path_GREP_found=false |
8d138742 CE |
4244 | # Loop through the user's path and test for each of PROGNAME-LIST |
4245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4246 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4247 | do | |
4248 | IFS=$as_save_IFS | |
4249 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4250 | for ac_prog in grep ggrep; do |
8d138742 CE |
4251 | for ac_exec_ext in '' $ac_executable_extensions; do |
4252 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4253 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4254 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4255 | # Check for GNU $ac_path_GREP |
4256 | case `"$ac_path_GREP" --version 2>&1` in | |
4257 | *GNU*) | |
4258 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4259 | *) | |
4260 | ac_count=0 | |
8d138742 | 4261 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4262 | while : |
4263 | do | |
4264 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4265 | mv "conftest.tmp" "conftest.in" | |
4266 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4267 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4268 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4269 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4270 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4271 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4272 | # Best one so far, save it but keep looking for a better one | |
4273 | ac_cv_path_GREP="$ac_path_GREP" | |
4274 | ac_path_GREP_max=$ac_count | |
4275 | fi | |
4276 | # 10*(2^10) chars as input seems more than enough | |
4277 | test $ac_count -gt 10 && break | |
4278 | done | |
4279 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4280 | esac | |
4281 | ||
8d138742 CE |
4282 | $ac_path_GREP_found && break 3 |
4283 | done | |
dd184caf | 4284 | done |
b0322a85 | 4285 | done |
dd184caf | 4286 | IFS=$as_save_IFS |
8d138742 | 4287 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4288 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4289 | fi |
dd184caf | 4290 | else |
4291 | ac_cv_path_GREP=$GREP | |
4292 | fi | |
4293 | ||
dd184caf | 4294 | fi |
b0322a85 | 4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4296 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4297 | GREP="$ac_cv_path_GREP" |
4298 | ||
4299 | ||
b0322a85 | 4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4301 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4302 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4303 | $as_echo_n "(cached) " >&6 |
dd184caf | 4304 | else |
4305 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4306 | then ac_cv_path_EGREP="$GREP -E" | |
4307 | else | |
8d138742 | 4308 | if test -z "$EGREP"; then |
dd184caf | 4309 | ac_path_EGREP_found=false |
8d138742 CE |
4310 | # Loop through the user's path and test for each of PROGNAME-LIST |
4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4312 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4313 | do | |
4314 | IFS=$as_save_IFS | |
4315 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4316 | for ac_prog in egrep; do |
8d138742 CE |
4317 | for ac_exec_ext in '' $ac_executable_extensions; do |
4318 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4319 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4320 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4321 | # Check for GNU $ac_path_EGREP |
4322 | case `"$ac_path_EGREP" --version 2>&1` in | |
4323 | *GNU*) | |
4324 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4325 | *) | |
4326 | ac_count=0 | |
8d138742 | 4327 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4328 | while : |
4329 | do | |
4330 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4331 | mv "conftest.tmp" "conftest.in" | |
4332 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4333 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4334 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4335 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4336 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4337 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4338 | # Best one so far, save it but keep looking for a better one | |
4339 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4340 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4341 | fi |
dd184caf | 4342 | # 10*(2^10) chars as input seems more than enough |
4343 | test $ac_count -gt 10 && break | |
4344 | done | |
4345 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4346 | esac | |
4347 | ||
8d138742 CE |
4348 | $ac_path_EGREP_found && break 3 |
4349 | done | |
dd184caf | 4350 | done |
b0322a85 | 4351 | done |
dd184caf | 4352 | IFS=$as_save_IFS |
8d138742 | 4353 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4354 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4355 | fi |
4356 | else | |
4357 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4358 | fi |
4359 | ||
8d138742 | 4360 | fi |
dd184caf | 4361 | fi |
b0322a85 | 4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4363 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4364 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4365 | |
8d138742 | 4366 | |
b0322a85 | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4368 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4369 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4370 | $as_echo_n "(cached) " >&6 |
dd184caf | 4371 | else |
8d138742 CE |
4372 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4373 | then ac_cv_path_FGREP="$GREP -F" | |
4374 | else | |
4375 | if test -z "$FGREP"; then | |
4376 | ac_path_FGREP_found=false | |
4377 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4379 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4380 | do | |
4381 | IFS=$as_save_IFS | |
4382 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4383 | for ac_prog in fgrep; do |
8d138742 CE |
4384 | for ac_exec_ext in '' $ac_executable_extensions; do |
4385 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4386 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4387 | # Check for GNU ac_path_FGREP and select it if it is found. |
4388 | # Check for GNU $ac_path_FGREP | |
4389 | case `"$ac_path_FGREP" --version 2>&1` in | |
4390 | *GNU*) | |
4391 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4392 | *) | |
4393 | ac_count=0 | |
4394 | $as_echo_n 0123456789 >"conftest.in" | |
4395 | while : | |
4396 | do | |
4397 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4398 | mv "conftest.tmp" "conftest.in" | |
4399 | cp "conftest.in" "conftest.nl" | |
4400 | $as_echo 'FGREP' >> "conftest.nl" | |
4401 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4402 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4403 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4404 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4405 | # Best one so far, save it but keep looking for a better one | |
4406 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4407 | ac_path_FGREP_max=$ac_count | |
4408 | fi | |
4409 | # 10*(2^10) chars as input seems more than enough | |
4410 | test $ac_count -gt 10 && break | |
4411 | done | |
4412 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4413 | esac | |
dd184caf | 4414 | |
8d138742 CE |
4415 | $ac_path_FGREP_found && break 3 |
4416 | done | |
4417 | done | |
b0322a85 | 4418 | done |
8d138742 CE |
4419 | IFS=$as_save_IFS |
4420 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4421 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4422 | fi |
4423 | else | |
4424 | ac_cv_path_FGREP=$FGREP | |
4425 | fi | |
dd184caf | 4426 | |
4427 | fi | |
d9898ee8 | 4428 | fi |
b0322a85 | 4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4430 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4431 | FGREP="$ac_cv_path_FGREP" | |
4432 | ||
4433 | ||
4434 | test -z "$GREP" && GREP=grep | |
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | ||
4440 | ||
4441 | ||
4442 | ||
4443 | ||
4444 | ||
4445 | ||
4446 | ||
4447 | ||
4448 | ||
4449 | ||
4450 | ||
d9898ee8 | 4451 | |
4452 | ||
4453 | ||
dd184caf | 4454 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4455 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4456 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4457 | else |
4458 | with_gnu_ld=no | |
dd184caf | 4459 | fi |
4460 | ||
d9898ee8 | 4461 | ac_prog=ld |
d50284c4 | 4462 | if test yes = "$GCC"; then |
d9898ee8 | 4463 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4465 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4466 | case $host in |
4467 | *-*-mingw*) | |
d50284c4 | 4468 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4469 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4470 | *) | |
4471 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4472 | esac | |
4473 | case $ac_prog in | |
4474 | # Accept absolute paths. | |
4475 | [\\/]* | ?:[\\/]*) | |
4476 | re_direlt='/[^/][^/]*/\.\./' | |
4477 | # Canonicalize the pathname of ld | |
8d138742 CE |
4478 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4479 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4480 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4481 | done |
d50284c4 | 4482 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4483 | ;; |
4484 | "") | |
4485 | # If it fails, then pretend we aren't using GCC. | |
4486 | ac_prog=ld | |
4487 | ;; | |
4488 | *) | |
4489 | # If it is relative, then search for the first ld in PATH. | |
4490 | with_gnu_ld=unknown | |
4491 | ;; | |
4492 | esac | |
d50284c4 | 4493 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4495 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4496 | else |
b0322a85 | 4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4498 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4499 | fi |
b0322a85 | 4500 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4501 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4502 | else |
4503 | if test -z "$LD"; then | |
d50284c4 | 4504 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4505 | for ac_dir in $PATH; do |
d50284c4 | 4506 | IFS=$lt_save_ifs |
d9898ee8 | 4507 | test -z "$ac_dir" && ac_dir=. |
4508 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4509 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4510 | # Check to see if the program is GNU ld. I'd rather use --version, |
4511 | # but apparently some variants of GNU ld only accept -v. | |
4512 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4513 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4514 | *GNU* | *'with BFD'*) | |
d50284c4 | 4515 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4516 | ;; |
4517 | *) | |
d50284c4 | 4518 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4519 | ;; |
4520 | esac | |
4521 | fi | |
4522 | done | |
d50284c4 | 4523 | IFS=$lt_save_ifs |
d9898ee8 | 4524 | else |
d50284c4 | 4525 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4526 | fi |
4527 | fi | |
4528 | ||
d50284c4 | 4529 | LD=$lt_cv_path_LD |
d9898ee8 | 4530 | if test -n "$LD"; then |
b0322a85 | 4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4532 | $as_echo "$LD" >&6; } |
d9898ee8 | 4533 | else |
b0322a85 | 4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4535 | $as_echo "no" >&6; } |
d9898ee8 | 4536 | fi |
b0322a85 CE |
4537 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4539 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4540 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4541 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4542 | else |
4543 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4544 | case `$LD -v 2>&1 </dev/null` in | |
4545 | *GNU* | *'with BFD'*) | |
4546 | lt_cv_prog_gnu_ld=yes | |
4547 | ;; | |
4548 | *) | |
4549 | lt_cv_prog_gnu_ld=no | |
4550 | ;; | |
4551 | esac | |
4552 | fi | |
b0322a85 | 4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4554 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4555 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4556 | ||
4557 | ||
d9898ee8 | 4558 | |
8d138742 CE |
4559 | |
4560 | ||
4561 | ||
4562 | ||
4563 | ||
4564 | ||
b0322a85 | 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4566 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4567 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4568 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4569 | else |
4570 | if test -n "$NM"; then | |
4571 | # Let the user override the test. | |
d50284c4 | 4572 | lt_cv_path_NM=$NM |
d9898ee8 | 4573 | else |
d50284c4 | 4574 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4575 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4576 | lt_nm_to_check="$lt_nm_to_check nm" | |
4577 | fi | |
4578 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4579 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4580 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4581 | IFS=$lt_save_ifs |
d9898ee8 | 4582 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4583 | tmp_nm=$ac_dir/$lt_tmp_nm |
4584 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4585 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4586 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4587 | # nm: unknown option "B" ignored |
4588 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4589 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4590 | case $build_os in | |
4591 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4592 | *) lt_bad_file=/dev/null ;; | |
4593 | esac | |
4594 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4595 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 4596 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 4597 | break 2 |
d9898ee8 | 4598 | ;; |
4599 | *) | |
4600 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4601 | */dev/null*) | |
4602 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 4603 | break 2 |
d9898ee8 | 4604 | ;; |
4605 | *) | |
4606 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4607 | continue # so that we can try to find one that supports BSD flags | |
4608 | ;; | |
4609 | esac | |
4610 | ;; | |
4611 | esac | |
4612 | fi | |
4613 | done | |
d50284c4 | 4614 | IFS=$lt_save_ifs |
d9898ee8 | 4615 | done |
8d138742 | 4616 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4617 | fi |
4618 | fi | |
b0322a85 | 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 4620 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
4621 | if test no != "$lt_cv_path_NM"; then |
4622 | NM=$lt_cv_path_NM | |
8d138742 CE |
4623 | else |
4624 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b0322a85 CE |
4625 | if test -n "$DUMPBIN"; then : |
4626 | # Let the user override the test. | |
4627 | else | |
4628 | if test -n "$ac_tool_prefix"; then | |
4629 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4630 | do |
4631 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4632 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4634 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4635 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4636 | $as_echo_n "(cached) " >&6 |
4637 | else | |
4638 | if test -n "$DUMPBIN"; then | |
4639 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4640 | else | |
4641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4642 | for as_dir in $PATH | |
4643 | do | |
4644 | IFS=$as_save_IFS | |
4645 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4646 | for ac_exec_ext in '' $ac_executable_extensions; do |
4647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4648 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4650 | break 2 |
4651 | fi | |
4652 | done | |
b0322a85 | 4653 | done |
8d138742 | 4654 | IFS=$as_save_IFS |
d9898ee8 | 4655 | |
8d138742 CE |
4656 | fi |
4657 | fi | |
4658 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4659 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 | 4661 | $as_echo "$DUMPBIN" >&6; } |
d9898ee8 | 4662 | else |
b0322a85 | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4664 | $as_echo "no" >&6; } |
4665 | fi | |
d9898ee8 | 4666 | |
d9898ee8 | 4667 | |
8d138742 CE |
4668 | test -n "$DUMPBIN" && break |
4669 | done | |
4670 | fi | |
4671 | if test -z "$DUMPBIN"; then | |
4672 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4673 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4674 | do |
4675 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4676 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4678 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4679 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4680 | $as_echo_n "(cached) " >&6 |
4681 | else | |
4682 | if test -n "$ac_ct_DUMPBIN"; then | |
4683 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4684 | else | |
4685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4686 | for as_dir in $PATH | |
4687 | do | |
4688 | IFS=$as_save_IFS | |
4689 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4690 | for ac_exec_ext in '' $ac_executable_extensions; do |
4691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4692 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4694 | break 2 |
4695 | fi | |
4696 | done | |
b0322a85 | 4697 | done |
8d138742 | 4698 | IFS=$as_save_IFS |
d9898ee8 | 4699 | |
8d138742 CE |
4700 | fi |
4701 | fi | |
4702 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4703 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4705 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4706 | else | |
b0322a85 | 4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4708 | $as_echo "no" >&6; } |
4709 | fi | |
d9898ee8 | 4710 | |
d9898ee8 | 4711 | |
8d138742 CE |
4712 | test -n "$ac_ct_DUMPBIN" && break |
4713 | done | |
4714 | ||
4715 | if test "x$ac_ct_DUMPBIN" = x; then | |
4716 | DUMPBIN=":" | |
ac40fd9e | 4717 | else |
8d138742 CE |
4718 | case $cross_compiling:$ac_tool_warned in |
4719 | yes:) | |
b0322a85 | 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4721 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4722 | ac_tool_warned=yes ;; | |
4723 | esac | |
4724 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 4725 | fi |
8d138742 | 4726 | fi |
d9898ee8 | 4727 | |
d50284c4 | 4728 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 4729 | *COFF*) |
d50284c4 | 4730 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
4731 | ;; |
4732 | *) | |
4733 | DUMPBIN=: | |
4734 | ;; | |
4735 | esac | |
4736 | fi | |
d9898ee8 | 4737 | |
d50284c4 CE |
4738 | if test : != "$DUMPBIN"; then |
4739 | NM=$DUMPBIN | |
d9898ee8 | 4740 | fi |
8d138742 CE |
4741 | fi |
4742 | test -z "$NM" && NM=nm | |
d9898ee8 | 4743 | |
d9898ee8 | 4744 | |
d9898ee8 | 4745 | |
d9898ee8 | 4746 | |
d9898ee8 | 4747 | |
d9898ee8 | 4748 | |
b0322a85 | 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4750 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4751 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4752 | $as_echo_n "(cached) " >&6 |
4753 | else | |
4754 | lt_cv_nm_interface="BSD nm" | |
4755 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4756 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4757 | (eval "$ac_compile" 2>conftest.err) |
4758 | cat conftest.err >&5 | |
b0322a85 | 4759 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4760 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4761 | cat conftest.err >&5 | |
b0322a85 | 4762 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4763 | cat conftest.out >&5 |
4764 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4765 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4766 | fi |
8d138742 CE |
4767 | rm -f conftest* |
4768 | fi | |
b0322a85 | 4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4770 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4771 | |
8d138742 | 4772 | # find the maximum length of command line arguments |
b0322a85 | 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4774 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4775 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4776 | $as_echo_n "(cached) " >&6 |
4777 | else | |
4778 | i=0 | |
d50284c4 | 4779 | teststring=ABCD |
d9898ee8 | 4780 | |
8d138742 CE |
4781 | case $build_os in |
4782 | msdosdjgpp*) | |
4783 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4784 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4785 | # during glob expansion). Even if it were fixed, the result of this | |
4786 | # check would be larger than it should be. | |
4787 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4788 | ;; | |
d9898ee8 | 4789 | |
8d138742 CE |
4790 | gnu*) |
4791 | # Under GNU Hurd, this test is not required because there is | |
4792 | # no limit to the length of command line arguments. | |
4793 | # Libtool will interpret -1 as no limit whatsoever | |
4794 | lt_cv_sys_max_cmd_len=-1; | |
4795 | ;; | |
d9898ee8 | 4796 | |
8d138742 CE |
4797 | cygwin* | mingw* | cegcc*) |
4798 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4799 | # about 5 minutes as the teststring grows exponentially. | |
4800 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4801 | # you end up with a "frozen" computer, even though with patience | |
4802 | # the test eventually succeeds (with a max line length of 256k). | |
4803 | # Instead, let's just punt: use the minimum linelength reported by | |
4804 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4805 | lt_cv_sys_max_cmd_len=8192; | |
4806 | ;; | |
d9898ee8 | 4807 | |
b0322a85 CE |
4808 | mint*) |
4809 | # On MiNT this can take a long time and run out of memory. | |
4810 | lt_cv_sys_max_cmd_len=8192; | |
4811 | ;; | |
4812 | ||
8d138742 CE |
4813 | amigaos*) |
4814 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4815 | # So we just punt and use a minimum line length of 8192. | |
4816 | lt_cv_sys_max_cmd_len=8192; | |
4817 | ;; | |
ac40fd9e | 4818 | |
d50284c4 | 4819 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
4820 | # This has been around since 386BSD, at least. Likely further. |
4821 | if test -x /sbin/sysctl; then | |
4822 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4823 | elif test -x /usr/sbin/sysctl; then | |
4824 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4825 | else | |
4826 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4827 | fi | |
4828 | # And add a safety zone | |
4829 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4830 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4831 | ;; | |
d9898ee8 | 4832 | |
8d138742 CE |
4833 | interix*) |
4834 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4835 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4836 | ;; |
8d138742 | 4837 | |
b0322a85 CE |
4838 | os2*) |
4839 | # The test takes a long time on OS/2. | |
4840 | lt_cv_sys_max_cmd_len=8192 | |
4841 | ;; | |
4842 | ||
8d138742 CE |
4843 | osf*) |
4844 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4845 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4846 | # nice to cause kernel panics so lets avoid the loop below. | |
4847 | # First set a reasonable default. | |
4848 | lt_cv_sys_max_cmd_len=16384 | |
4849 | # | |
4850 | if test -x /sbin/sysconfig; then | |
4851 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4852 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4853 | esac | |
4854 | fi | |
d9898ee8 | 4855 | ;; |
8d138742 CE |
4856 | sco3.2v5*) |
4857 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 4858 | ;; |
8d138742 CE |
4859 | sysv5* | sco5v6* | sysv4.2uw2*) |
4860 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4861 | if test -n "$kargmax"; then | |
4862 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4863 | else | |
4864 | lt_cv_sys_max_cmd_len=32768 | |
4865 | fi | |
d9898ee8 | 4866 | ;; |
8d138742 CE |
4867 | *) |
4868 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
4869 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
4870 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
4871 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4872 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4873 | else | |
4874 | # Make teststring a little bigger before we do anything with it. | |
4875 | # a 1K string should be a reasonable start. | |
d50284c4 | 4876 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
4877 | teststring=$teststring$teststring |
4878 | done | |
4879 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4880 | # If test is not a shell built-in, we'll probably end up computing a | |
4881 | # maximum length that is only half of the actual maximum length, but | |
4882 | # we can't tell. | |
d50284c4 | 4883 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 4884 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 4885 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
4886 | do |
4887 | i=`expr $i + 1` | |
4888 | teststring=$teststring$teststring | |
4889 | done | |
4890 | # Only check the string length outside the loop. | |
4891 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4892 | teststring= | |
4893 | # Add a significant safety factor because C++ compilers can tack on | |
4894 | # massive amounts of additional arguments before passing them to the | |
4895 | # linker. It appears as though 1/2 is a usable value. | |
4896 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4897 | fi | |
d9898ee8 | 4898 | ;; |
4899 | esac | |
d9898ee8 | 4900 | |
8d138742 | 4901 | fi |
d9898ee8 | 4902 | |
d50284c4 | 4903 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4905 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4906 | else | |
b0322a85 | 4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 4908 | $as_echo "none" >&6; } |
d9898ee8 | 4909 | fi |
8d138742 | 4910 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4911 | |
4912 | ||
4913 | ||
4914 | ||
d9898ee8 | 4915 | |
d9898ee8 | 4916 | |
8d138742 CE |
4917 | : ${CP="cp -f"} |
4918 | : ${MV="mv -f"} | |
4919 | : ${RM="rm -f"} | |
d9898ee8 | 4920 | |
8d138742 CE |
4921 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4922 | lt_unset=unset | |
4923 | else | |
4924 | lt_unset=false | |
dd184caf | 4925 | fi |
d9898ee8 | 4926 | |
d9898ee8 | 4927 | |
8d138742 CE |
4928 | |
4929 | ||
4930 | ||
4931 | # test EBCDIC or ASCII | |
4932 | case `echo X|tr X '\101'` in | |
4933 | A) # ASCII based system | |
4934 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4935 | lt_SP2NL='tr \040 \012' | |
4936 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4937 | ;; |
8d138742 CE |
4938 | *) # EBCDIC based system |
4939 | lt_SP2NL='tr \100 \n' | |
4940 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4941 | ;; |
8d138742 | 4942 | esac |
d9898ee8 | 4943 | |
d9898ee8 | 4944 | |
d9898ee8 | 4945 | |
d9898ee8 | 4946 | |
d9898ee8 | 4947 | |
8d138742 CE |
4948 | |
4949 | ||
4950 | ||
4951 | ||
b0322a85 CE |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4953 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4954 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4955 | $as_echo_n "(cached) " >&6 | |
4956 | else | |
4957 | case $host in | |
4958 | *-*-mingw* ) | |
4959 | case $build in | |
4960 | *-*-mingw* ) # actually msys | |
4961 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4962 | ;; | |
4963 | *-*-cygwin* ) | |
4964 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4965 | ;; | |
4966 | * ) # otherwise, assume *nix | |
4967 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4968 | ;; | |
4969 | esac | |
4970 | ;; | |
4971 | *-*-cygwin* ) | |
4972 | case $build in | |
4973 | *-*-mingw* ) # actually msys | |
4974 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4975 | ;; | |
4976 | *-*-cygwin* ) | |
4977 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4978 | ;; | |
4979 | * ) # otherwise, assume *nix | |
4980 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4981 | ;; | |
4982 | esac | |
4983 | ;; | |
4984 | * ) # unhandled hosts (and "normal" native builds) | |
4985 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4986 | ;; | |
4987 | esac | |
4988 | ||
4989 | fi | |
4990 | ||
4991 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4993 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | ||
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5000 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5001 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5002 | $as_echo_n "(cached) " >&6 | |
5003 | else | |
5004 | #assume ordinary cross tools, or native build. | |
5005 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5006 | case $host in | |
5007 | *-*-mingw* ) | |
5008 | case $build in | |
5009 | *-*-mingw* ) # actually msys | |
5010 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5011 | ;; | |
5012 | esac | |
5013 | ;; | |
5014 | esac | |
5015 | ||
5016 | fi | |
5017 | ||
5018 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5020 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | ||
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5027 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5028 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 CE |
5029 | $as_echo_n "(cached) " >&6 |
5030 | else | |
5031 | lt_cv_ld_reload_flag='-r' | |
5032 | fi | |
b0322a85 | 5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5034 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5035 | reload_flag=$lt_cv_ld_reload_flag | |
5036 | case $reload_flag in | |
5037 | "" | " "*) ;; | |
5038 | *) reload_flag=" $reload_flag" ;; | |
dd184caf | 5039 | esac |
8d138742 CE |
5040 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5041 | case $host_os in | |
b0322a85 | 5042 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 5043 | if test yes != "$GCC"; then |
b0322a85 CE |
5044 | reload_cmds=false |
5045 | fi | |
5046 | ;; | |
8d138742 | 5047 | darwin*) |
d50284c4 CE |
5048 | if test yes = "$GCC"; then |
5049 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
5050 | else |
5051 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5052 | fi | |
5053 | ;; | |
5054 | esac | |
5055 | ||
5056 | ||
5057 | ||
5058 | ||
5059 | ||
5060 | ||
5061 | ||
5062 | ||
5063 | ||
5064 | if test -n "$ac_tool_prefix"; then | |
5065 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5066 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5068 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5069 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5070 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5071 | else |
8d138742 CE |
5072 | if test -n "$OBJDUMP"; then |
5073 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5074 | else | |
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5076 | for as_dir in $PATH | |
5077 | do | |
5078 | IFS=$as_save_IFS | |
5079 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5080 | for ac_exec_ext in '' $ac_executable_extensions; do |
5081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5082 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5084 | break 2 |
5085 | fi | |
5086 | done | |
b0322a85 | 5087 | done |
8d138742 | 5088 | IFS=$as_save_IFS |
d9898ee8 | 5089 | |
8d138742 CE |
5090 | fi |
5091 | fi | |
5092 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5093 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5095 | $as_echo "$OBJDUMP" >&6; } |
5096 | else | |
b0322a85 | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5098 | $as_echo "no" >&6; } |
d9898ee8 | 5099 | fi |
dd184caf | 5100 | |
d9898ee8 | 5101 | |
5102 | fi | |
8d138742 CE |
5103 | if test -z "$ac_cv_prog_OBJDUMP"; then |
5104 | ac_ct_OBJDUMP=$OBJDUMP | |
5105 | # Extract the first word of "objdump", so it can be a program name with args. | |
5106 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5108 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5109 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 CE |
5110 | $as_echo_n "(cached) " >&6 |
5111 | else | |
5112 | if test -n "$ac_ct_OBJDUMP"; then | |
5113 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5114 | else | |
5115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5116 | for as_dir in $PATH | |
5117 | do | |
5118 | IFS=$as_save_IFS | |
5119 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5120 | for ac_exec_ext in '' $ac_executable_extensions; do |
5121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5122 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 5124 | break 2 |
d9898ee8 | 5125 | fi |
8d138742 | 5126 | done |
b0322a85 | 5127 | done |
8d138742 | 5128 | IFS=$as_save_IFS |
d9898ee8 | 5129 | |
8d138742 CE |
5130 | fi |
5131 | fi | |
5132 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5133 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 CE |
5135 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
5136 | else | |
b0322a85 | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5138 | $as_echo "no" >&6; } |
5139 | fi | |
d9898ee8 | 5140 | |
8d138742 CE |
5141 | if test "x$ac_ct_OBJDUMP" = x; then |
5142 | OBJDUMP="false" | |
5143 | else | |
5144 | case $cross_compiling:$ac_tool_warned in | |
5145 | yes:) | |
b0322a85 | 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5147 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5148 | ac_tool_warned=yes ;; | |
d9898ee8 | 5149 | esac |
8d138742 CE |
5150 | OBJDUMP=$ac_ct_OBJDUMP |
5151 | fi | |
5152 | else | |
5153 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5154 | fi | |
d9898ee8 | 5155 | |
8d138742 | 5156 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5157 | |
5158 | ||
8d138742 CE |
5159 | |
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
b0322a85 | 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5167 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5168 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5169 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5170 | else |
8d138742 CE |
5171 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5172 | lt_cv_file_magic_test_file= | |
5173 | lt_cv_deplibs_check_method='unknown' | |
5174 | # Need to set the preceding variable on all platforms that support | |
5175 | # interlibrary dependencies. | |
5176 | # 'none' -- dependencies not supported. | |
d50284c4 | 5177 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5178 | # 'pass_all' -- all dependencies passed with no checks. |
5179 | # 'test_compile' -- check by making test program. | |
5180 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5181 | # that responds to the $file_magic_cmd with a given extended regex. |
5182 | # If you have 'file' or equivalent on your system and you're not sure | |
5183 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5184 | |
8d138742 CE |
5185 | case $host_os in |
5186 | aix[4-9]*) | |
5187 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5188 | ;; |
5189 | ||
8d138742 CE |
5190 | beos*) |
5191 | lt_cv_deplibs_check_method=pass_all | |
5192 | ;; | |
d9898ee8 | 5193 | |
8d138742 CE |
5194 | bsdi[45]*) |
5195 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5196 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5197 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5198 | ;; | |
d9898ee8 | 5199 | |
8d138742 CE |
5200 | cygwin*) |
5201 | # func_win32_libid is a shell function defined in ltmain.sh | |
5202 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5203 | lt_cv_file_magic_cmd='func_win32_libid' | |
d9898ee8 | 5204 | ;; |
5205 | ||
8d138742 CE |
5206 | mingw* | pw32*) |
5207 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5208 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5209 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5210 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5211 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5212 | lt_cv_file_magic_cmd='func_win32_libid' | |
d9898ee8 | 5213 | else |
b0322a85 CE |
5214 | # Keep this pattern in sync with the one in func_win32_libid. |
5215 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 | 5216 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
d9898ee8 | 5217 | fi |
d9898ee8 | 5218 | ;; |
5219 | ||
b0322a85 | 5220 | cegcc*) |
8d138742 CE |
5221 | # use the weaker test based on 'objdump'. See mingw*. |
5222 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5223 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
d9898ee8 | 5224 | ;; |
5225 | ||
8d138742 CE |
5226 | darwin* | rhapsody*) |
5227 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5228 | ;; |
5229 | ||
8d138742 CE |
5230 | freebsd* | dragonfly*) |
5231 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5232 | case $host_cpu in | |
5233 | i*86 ) | |
5234 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5235 | # Let's accept both of them until this is cleared up. | |
5236 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5237 | lt_cv_file_magic_cmd=/usr/bin/file | |
5238 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5239 | ;; | |
5240 | esac | |
d9898ee8 | 5241 | else |
8d138742 | 5242 | lt_cv_deplibs_check_method=pass_all |
d9898ee8 | 5243 | fi |
5244 | ;; | |
5245 | ||
b0322a85 CE |
5246 | haiku*) |
5247 | lt_cv_deplibs_check_method=pass_all | |
5248 | ;; | |
5249 | ||
8d138742 CE |
5250 | hpux10.20* | hpux11*) |
5251 | lt_cv_file_magic_cmd=/usr/bin/file | |
5252 | case $host_cpu in | |
5253 | ia64*) | |
5254 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5255 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5256 | ;; | |
5257 | hppa*64*) | |
b0322a85 | 5258 | 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 |
5259 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5260 | ;; | |
5261 | *) | |
b0322a85 | 5262 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5263 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5264 | ;; | |
5265 | esac | |
d9898ee8 | 5266 | ;; |
5267 | ||
8d138742 CE |
5268 | interix[3-9]*) |
5269 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5270 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
ac40fd9e | 5271 | ;; |
5272 | ||
8d138742 CE |
5273 | irix5* | irix6* | nonstopux*) |
5274 | case $LD in | |
5275 | *-32|*"-32 ") libmagic=32-bit;; | |
5276 | *-n32|*"-n32 ") libmagic=N32;; | |
5277 | *-64|*"-64 ") libmagic=64-bit;; | |
5278 | *) libmagic=never-match;; | |
5279 | esac | |
5280 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5281 | ;; |
5282 | ||
b0322a85 | 5283 | # This must be glibc/ELF. |
d50284c4 | 5284 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
5285 | lt_cv_deplibs_check_method=pass_all |
5286 | ;; | |
5287 | ||
5288 | netbsd*) | |
5289 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5290 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5291 | else | |
5292 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
d9898ee8 | 5293 | fi |
d9898ee8 | 5294 | ;; |
5295 | ||
8d138742 CE |
5296 | newos6*) |
5297 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5298 | lt_cv_file_magic_cmd=/usr/bin/file | |
5299 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d9898ee8 | 5300 | ;; |
5301 | ||
8d138742 CE |
5302 | *nto* | *qnx*) |
5303 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5304 | ;; |
5305 | ||
d50284c4 CE |
5306 | openbsd* | bitrig*) |
5307 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
8d138742 CE |
5308 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5309 | else | |
5310 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
d9898ee8 | 5311 | fi |
d9898ee8 | 5312 | ;; |
5313 | ||
8d138742 CE |
5314 | osf3* | osf4* | osf5*) |
5315 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5316 | ;; |
5317 | ||
8d138742 CE |
5318 | rdos*) |
5319 | lt_cv_deplibs_check_method=pass_all | |
5320 | ;; | |
5321 | ||
5322 | solaris*) | |
5323 | lt_cv_deplibs_check_method=pass_all | |
5324 | ;; | |
5325 | ||
5326 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5327 | lt_cv_deplibs_check_method=pass_all | |
5328 | ;; | |
5329 | ||
5330 | sysv4 | sysv4.3*) | |
5331 | case $host_vendor in | |
5332 | motorola) | |
5333 | 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]' | |
5334 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5335 | ;; | |
5336 | ncr) | |
5337 | lt_cv_deplibs_check_method=pass_all | |
5338 | ;; | |
5339 | sequent) | |
5340 | lt_cv_file_magic_cmd='/bin/file' | |
5341 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5342 | ;; | |
5343 | sni) | |
5344 | lt_cv_file_magic_cmd='/bin/file' | |
5345 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5346 | lt_cv_file_magic_test_file=/lib/libc.so | |
5347 | ;; | |
5348 | siemens) | |
5349 | lt_cv_deplibs_check_method=pass_all | |
5350 | ;; | |
5351 | pc) | |
5352 | lt_cv_deplibs_check_method=pass_all | |
5353 | ;; | |
5354 | esac | |
5355 | ;; | |
5356 | ||
5357 | tpf*) | |
5358 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5359 | ;; |
d50284c4 CE |
5360 | os2*) |
5361 | lt_cv_deplibs_check_method=pass_all | |
5362 | ;; | |
d9898ee8 | 5363 | esac |
d9898ee8 | 5364 | |
d9898ee8 | 5365 | fi |
b0322a85 | 5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5367 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5368 | |
5369 | file_magic_glob= | |
5370 | want_nocaseglob=no | |
5371 | if test "$build" = "$host"; then | |
5372 | case $host_os in | |
5373 | mingw* | pw32*) | |
5374 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5375 | want_nocaseglob=yes | |
5376 | else | |
5377 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5378 | fi | |
5379 | ;; | |
5380 | esac | |
5381 | fi | |
5382 | ||
8d138742 CE |
5383 | file_magic_cmd=$lt_cv_file_magic_cmd |
5384 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5385 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d9898ee8 | 5386 | |
d9898ee8 | 5387 | |
8d138742 CE |
5388 | |
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
b0322a85 CE |
5398 | |
5399 | ||
5400 | ||
5401 | ||
5402 | ||
5403 | ||
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | if test -n "$ac_tool_prefix"; then | |
5409 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5410 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5412 | $as_echo_n "checking for $ac_word... " >&6; } | |
5413 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5414 | $as_echo_n "(cached) " >&6 | |
5415 | else | |
5416 | if test -n "$DLLTOOL"; then | |
5417 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5418 | else | |
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5420 | for as_dir in $PATH | |
5421 | do | |
5422 | IFS=$as_save_IFS | |
5423 | test -z "$as_dir" && as_dir=. | |
5424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5426 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5428 | break 2 | |
5429 | fi | |
5430 | done | |
5431 | done | |
5432 | IFS=$as_save_IFS | |
5433 | ||
5434 | fi | |
5435 | fi | |
5436 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5437 | if test -n "$DLLTOOL"; then | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5439 | $as_echo "$DLLTOOL" >&6; } | |
5440 | else | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5442 | $as_echo "no" >&6; } | |
5443 | fi | |
5444 | ||
5445 | ||
5446 | fi | |
5447 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5448 | ac_ct_DLLTOOL=$DLLTOOL | |
5449 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5450 | set dummy dlltool; ac_word=$2 | |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5452 | $as_echo_n "checking for $ac_word... " >&6; } | |
5453 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5454 | $as_echo_n "(cached) " >&6 | |
5455 | else | |
5456 | if test -n "$ac_ct_DLLTOOL"; then | |
5457 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5458 | else | |
5459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5460 | for as_dir in $PATH | |
5461 | do | |
5462 | IFS=$as_save_IFS | |
5463 | test -z "$as_dir" && as_dir=. | |
5464 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5466 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5468 | break 2 | |
5469 | fi | |
5470 | done | |
5471 | done | |
5472 | IFS=$as_save_IFS | |
5473 | ||
5474 | fi | |
5475 | fi | |
5476 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5477 | if test -n "$ac_ct_DLLTOOL"; then | |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5479 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5480 | else | |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5482 | $as_echo "no" >&6; } | |
5483 | fi | |
5484 | ||
5485 | if test "x$ac_ct_DLLTOOL" = x; then | |
5486 | DLLTOOL="false" | |
5487 | else | |
5488 | case $cross_compiling:$ac_tool_warned in | |
5489 | yes:) | |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5491 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5492 | ac_tool_warned=yes ;; | |
5493 | esac | |
5494 | DLLTOOL=$ac_ct_DLLTOOL | |
5495 | fi | |
5496 | else | |
5497 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5498 | fi | |
5499 | ||
5500 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5512 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5513 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5514 | $as_echo_n "(cached) " >&6 | |
5515 | else | |
5516 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5517 | ||
5518 | case $host_os in | |
5519 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5520 | # two different shell functions defined in ltmain.sh; |
5521 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5522 | case `$DLLTOOL --help 2>&1` in |
5523 | *--identify-strict*) | |
5524 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5525 | ;; | |
5526 | *) | |
5527 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5528 | ;; | |
5529 | esac | |
5530 | ;; | |
5531 | *) | |
5532 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5533 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b0322a85 CE |
5534 | ;; |
5535 | esac | |
5536 | ||
5537 | fi | |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5539 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5540 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5541 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
8d138742 | 5550 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
5551 | for ac_prog in ar |
5552 | do | |
5553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5556 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5557 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 CE |
5558 | $as_echo_n "(cached) " >&6 |
5559 | else | |
5560 | if test -n "$AR"; then | |
5561 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5562 | else | |
5563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5564 | for as_dir in $PATH | |
5565 | do | |
5566 | IFS=$as_save_IFS | |
5567 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5568 | for ac_exec_ext in '' $ac_executable_extensions; do |
5569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5570 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 | 5572 | break 2 |
d9898ee8 | 5573 | fi |
8d138742 | 5574 | done |
b0322a85 | 5575 | done |
8d138742 CE |
5576 | IFS=$as_save_IFS |
5577 | ||
5578 | fi | |
5579 | fi | |
5580 | AR=$ac_cv_prog_AR | |
5581 | if test -n "$AR"; then | |
b0322a85 | 5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 | 5583 | $as_echo "$AR" >&6; } |
d9898ee8 | 5584 | else |
b0322a85 | 5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5586 | $as_echo "no" >&6; } |
d9898ee8 | 5587 | fi |
d9898ee8 | 5588 | |
8d138742 | 5589 | |
b0322a85 CE |
5590 | test -n "$AR" && break |
5591 | done | |
d9898ee8 | 5592 | fi |
b0322a85 | 5593 | if test -z "$AR"; then |
8d138742 | 5594 | ac_ct_AR=$AR |
b0322a85 CE |
5595 | for ac_prog in ar |
5596 | do | |
5597 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5598 | set dummy $ac_prog; ac_word=$2 | |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5600 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5601 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 CE |
5602 | $as_echo_n "(cached) " >&6 |
5603 | else | |
5604 | if test -n "$ac_ct_AR"; then | |
5605 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5606 | else | |
5607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5608 | for as_dir in $PATH | |
5609 | do | |
5610 | IFS=$as_save_IFS | |
5611 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5612 | for ac_exec_ext in '' $ac_executable_extensions; do |
5613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5614 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5616 | break 2 |
5617 | fi | |
5618 | done | |
b0322a85 | 5619 | done |
8d138742 | 5620 | IFS=$as_save_IFS |
d9898ee8 | 5621 | |
8d138742 CE |
5622 | fi |
5623 | fi | |
5624 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5625 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 CE |
5627 | $as_echo "$ac_ct_AR" >&6; } |
5628 | else | |
b0322a85 | 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5630 | $as_echo "no" >&6; } |
5631 | fi | |
d9898ee8 | 5632 | |
b0322a85 CE |
5633 | |
5634 | test -n "$ac_ct_AR" && break | |
5635 | done | |
5636 | ||
8d138742 CE |
5637 | if test "x$ac_ct_AR" = x; then |
5638 | AR="false" | |
5639 | else | |
5640 | case $cross_compiling:$ac_tool_warned in | |
5641 | yes:) | |
b0322a85 | 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5643 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5644 | ac_tool_warned=yes ;; | |
5645 | esac | |
5646 | AR=$ac_ct_AR | |
d9898ee8 | 5647 | fi |
8d138742 | 5648 | fi |
d9898ee8 | 5649 | |
b0322a85 CE |
5650 | : ${AR=ar} |
5651 | : ${AR_FLAGS=cru} | |
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5664 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5665 | if ${lt_cv_ar_at_file+:} false; then : | |
5666 | $as_echo_n "(cached) " >&6 | |
5667 | else | |
5668 | lt_cv_ar_at_file=no | |
5669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5670 | /* end confdefs.h. */ | |
5671 | ||
5672 | int | |
5673 | main () | |
5674 | { | |
d9898ee8 | 5675 | |
b0322a85 CE |
5676 | ; |
5677 | return 0; | |
5678 | } | |
5679 | _ACEOF | |
5680 | if ac_fn_c_try_compile "$LINENO"; then : | |
5681 | echo conftest.$ac_objext > conftest.lst | |
5682 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5683 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5684 | (eval $lt_ar_try) 2>&5 | |
5685 | ac_status=$? | |
5686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5687 | test $ac_status = 0; } | |
d50284c4 | 5688 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
5689 | # Ensure the archiver fails upon bogus file names. |
5690 | rm -f conftest.$ac_objext libconftest.a | |
5691 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5692 | (eval $lt_ar_try) 2>&5 | |
5693 | ac_status=$? | |
5694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5695 | test $ac_status = 0; } | |
d50284c4 | 5696 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
5697 | lt_cv_ar_at_file=@ |
5698 | fi | |
5699 | fi | |
5700 | rm -f conftest.* libconftest.a | |
d9898ee8 | 5701 | |
b0322a85 CE |
5702 | fi |
5703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 5704 | |
b0322a85 CE |
5705 | fi |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5707 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
d9898ee8 | 5708 | |
d50284c4 | 5709 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
5710 | archiver_list_spec= |
5711 | else | |
5712 | archiver_list_spec=$lt_cv_ar_at_file | |
5713 | fi | |
d9898ee8 | 5714 | |
d9898ee8 | 5715 | |
d9898ee8 | 5716 | |
d9898ee8 | 5717 | |
d9898ee8 | 5718 | |
d9898ee8 | 5719 | |
d9898ee8 | 5720 | |
8d138742 CE |
5721 | if test -n "$ac_tool_prefix"; then |
5722 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5723 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5725 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5726 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
5727 | $as_echo_n "(cached) " >&6 |
5728 | else | |
5729 | if test -n "$STRIP"; then | |
5730 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5731 | else | |
5732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5733 | for as_dir in $PATH | |
5734 | do | |
5735 | IFS=$as_save_IFS | |
5736 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5737 | for ac_exec_ext in '' $ac_executable_extensions; do |
5738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5739 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 5740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5741 | break 2 |
5742 | fi | |
5743 | done | |
b0322a85 | 5744 | done |
8d138742 | 5745 | IFS=$as_save_IFS |
d9898ee8 | 5746 | |
8d138742 CE |
5747 | fi |
5748 | fi | |
5749 | STRIP=$ac_cv_prog_STRIP | |
5750 | if test -n "$STRIP"; then | |
b0322a85 | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
5752 | $as_echo "$STRIP" >&6; } |
5753 | else | |
b0322a85 | 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5755 | $as_echo "no" >&6; } |
5756 | fi | |
d9898ee8 | 5757 | |
d9898ee8 | 5758 | |
8d138742 CE |
5759 | fi |
5760 | if test -z "$ac_cv_prog_STRIP"; then | |
5761 | ac_ct_STRIP=$STRIP | |
5762 | # Extract the first word of "strip", so it can be a program name with args. | |
5763 | set dummy strip; ac_word=$2 | |
b0322a85 | 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5765 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5766 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
5767 | $as_echo_n "(cached) " >&6 |
5768 | else | |
5769 | if test -n "$ac_ct_STRIP"; then | |
5770 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5771 | else | |
5772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5773 | for as_dir in $PATH | |
5774 | do | |
5775 | IFS=$as_save_IFS | |
5776 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5777 | for ac_exec_ext in '' $ac_executable_extensions; do |
5778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5779 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5781 | break 2 |
5782 | fi | |
5783 | done | |
b0322a85 | 5784 | done |
8d138742 | 5785 | IFS=$as_save_IFS |
d9898ee8 | 5786 | |
8d138742 CE |
5787 | fi |
5788 | fi | |
5789 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5790 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
5792 | $as_echo "$ac_ct_STRIP" >&6; } |
5793 | else | |
b0322a85 | 5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5795 | $as_echo "no" >&6; } |
5796 | fi | |
d9898ee8 | 5797 | |
8d138742 CE |
5798 | if test "x$ac_ct_STRIP" = x; then |
5799 | STRIP=":" | |
5800 | else | |
5801 | case $cross_compiling:$ac_tool_warned in | |
5802 | yes:) | |
b0322a85 | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5805 | ac_tool_warned=yes ;; | |
5806 | esac | |
5807 | STRIP=$ac_ct_STRIP | |
5808 | fi | |
5809 | else | |
5810 | STRIP="$ac_cv_prog_STRIP" | |
5811 | fi | |
d9898ee8 | 5812 | |
8d138742 | 5813 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5814 | |
d9898ee8 | 5815 | |
d9898ee8 | 5816 | |
d9898ee8 | 5817 | |
d9898ee8 | 5818 | |
d9898ee8 | 5819 | |
8d138742 CE |
5820 | if test -n "$ac_tool_prefix"; then |
5821 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5822 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5824 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5825 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 CE |
5826 | $as_echo_n "(cached) " >&6 |
5827 | else | |
5828 | if test -n "$RANLIB"; then | |
5829 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5830 | else | |
5831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5832 | for as_dir in $PATH | |
5833 | do | |
5834 | IFS=$as_save_IFS | |
5835 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5836 | for ac_exec_ext in '' $ac_executable_extensions; do |
5837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5838 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5840 | break 2 |
5841 | fi | |
5842 | done | |
b0322a85 | 5843 | done |
8d138742 | 5844 | IFS=$as_save_IFS |
d9898ee8 | 5845 | |
8d138742 CE |
5846 | fi |
5847 | fi | |
5848 | RANLIB=$ac_cv_prog_RANLIB | |
5849 | if test -n "$RANLIB"; then | |
b0322a85 | 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
5851 | $as_echo "$RANLIB" >&6; } |
5852 | else | |
b0322a85 | 5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5854 | $as_echo "no" >&6; } |
5855 | fi | |
d9898ee8 | 5856 | |
d9898ee8 | 5857 | |
8d138742 CE |
5858 | fi |
5859 | if test -z "$ac_cv_prog_RANLIB"; then | |
5860 | ac_ct_RANLIB=$RANLIB | |
5861 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5862 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5864 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5865 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5866 | $as_echo_n "(cached) " >&6 |
5867 | else | |
5868 | if test -n "$ac_ct_RANLIB"; then | |
5869 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5870 | else | |
5871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5872 | for as_dir in $PATH | |
5873 | do | |
5874 | IFS=$as_save_IFS | |
5875 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5876 | for ac_exec_ext in '' $ac_executable_extensions; do |
5877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5878 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5880 | break 2 |
5881 | fi | |
5882 | done | |
b0322a85 | 5883 | done |
8d138742 | 5884 | IFS=$as_save_IFS |
d9898ee8 | 5885 | |
8d138742 CE |
5886 | fi |
5887 | fi | |
5888 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5889 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
5891 | $as_echo "$ac_ct_RANLIB" >&6; } |
5892 | else | |
b0322a85 | 5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5894 | $as_echo "no" >&6; } |
5895 | fi | |
d9898ee8 | 5896 | |
8d138742 CE |
5897 | if test "x$ac_ct_RANLIB" = x; then |
5898 | RANLIB=":" | |
5899 | else | |
5900 | case $cross_compiling:$ac_tool_warned in | |
5901 | yes:) | |
b0322a85 | 5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5904 | ac_tool_warned=yes ;; | |
5905 | esac | |
5906 | RANLIB=$ac_ct_RANLIB | |
5907 | fi | |
5908 | else | |
5909 | RANLIB="$ac_cv_prog_RANLIB" | |
5910 | fi | |
d9898ee8 | 5911 | |
8d138742 | 5912 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 5913 | |
d9898ee8 | 5914 | |
d9898ee8 | 5915 | |
d9898ee8 | 5916 | |
d9898ee8 | 5917 | |
d9898ee8 | 5918 | |
8d138742 CE |
5919 | # Determine commands to create old-style static archives. |
5920 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5921 | old_postinstall_cmds='chmod 644 $oldlib' | |
5922 | old_postuninstall_cmds= | |
d9898ee8 | 5923 | |
8d138742 CE |
5924 | if test -n "$RANLIB"; then |
5925 | case $host_os in | |
d50284c4 | 5926 | bitrig* | openbsd*) |
b0322a85 | 5927 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5928 | ;; |
5929 | *) | |
b0322a85 | 5930 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5931 | ;; |
5932 | esac | |
b0322a85 | 5933 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
8d138742 | 5934 | fi |
d9898ee8 | 5935 | |
b0322a85 CE |
5936 | case $host_os in |
5937 | darwin*) | |
5938 | lock_old_archive_extraction=yes ;; | |
5939 | *) | |
5940 | lock_old_archive_extraction=no ;; | |
5941 | esac | |
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
d9898ee8 | 5948 | |
d9898ee8 | 5949 | |
d9898ee8 | 5950 | |
d9898ee8 | 5951 | |
d9898ee8 | 5952 | |
d9898ee8 | 5953 | |
d9898ee8 | 5954 | |
d9898ee8 | 5955 | |
d9898ee8 | 5956 | |
d9898ee8 | 5957 | |
d9898ee8 | 5958 | |
d9898ee8 | 5959 | |
d9898ee8 | 5960 | |
d9898ee8 | 5961 | |
d9898ee8 | 5962 | |
d9898ee8 | 5963 | |
d9898ee8 | 5964 | |
d9898ee8 | 5965 | |
d9898ee8 | 5966 | |
d9898ee8 | 5967 | |
d9898ee8 | 5968 | |
d9898ee8 | 5969 | |
d9898ee8 | 5970 | |
d9898ee8 | 5971 | |
d9898ee8 | 5972 | |
d9898ee8 | 5973 | |
d9898ee8 | 5974 | |
d9898ee8 | 5975 | |
d9898ee8 | 5976 | |
d9898ee8 | 5977 | |
d9898ee8 | 5978 | |
d9898ee8 | 5979 | |
d9898ee8 | 5980 | |
8d138742 CE |
5981 | # If no C compiler was specified, use CC. |
5982 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 5983 | |
8d138742 CE |
5984 | # If no C compiler flags were specified, use CFLAGS. |
5985 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5986 | |
8d138742 CE |
5987 | # Allow CC to be a program name with arguments. |
5988 | compiler=$CC | |
d9898ee8 | 5989 | |
d9898ee8 | 5990 | |
8d138742 | 5991 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 5993 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 5994 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 CE |
5995 | $as_echo_n "(cached) " >&6 |
5996 | else | |
d9898ee8 | 5997 | |
8d138742 CE |
5998 | # These are sane defaults that work on at least a few old systems. |
5999 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d9898ee8 | 6000 | |
8d138742 CE |
6001 | # Character class describing NM global symbol codes. |
6002 | symcode='[BCDEGRST]' | |
d9898ee8 | 6003 | |
8d138742 CE |
6004 | # Regexp to match symbols that can be accessed directly from C. |
6005 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d9898ee8 | 6006 | |
8d138742 CE |
6007 | # Define system-specific variables. |
6008 | case $host_os in | |
6009 | aix*) | |
6010 | symcode='[BCDT]' | |
6011 | ;; | |
6012 | cygwin* | mingw* | pw32* | cegcc*) | |
6013 | symcode='[ABCDGISTW]' | |
6014 | ;; | |
6015 | hpux*) | |
d50284c4 | 6016 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
6017 | symcode='[ABCDEGRST]' |
6018 | fi | |
6019 | ;; | |
6020 | irix* | nonstopux*) | |
6021 | symcode='[BCDEGRST]' | |
6022 | ;; | |
6023 | osf*) | |
6024 | symcode='[BCDEGQRST]' | |
6025 | ;; | |
6026 | solaris*) | |
6027 | symcode='[BDRT]' | |
6028 | ;; | |
6029 | sco3.2v5*) | |
6030 | symcode='[DT]' | |
6031 | ;; | |
6032 | sysv4.2uw2*) | |
6033 | symcode='[DT]' | |
6034 | ;; | |
6035 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6036 | symcode='[ABDT]' | |
6037 | ;; | |
6038 | sysv4) | |
6039 | symcode='[DFNSTU]' | |
6040 | ;; | |
6041 | esac | |
d9898ee8 | 6042 | |
8d138742 CE |
6043 | # If we're using GNU nm, then use its standard symbol codes. |
6044 | case `$NM -V 2>&1` in | |
6045 | *GNU* | *'with BFD'*) | |
6046 | symcode='[ABCDGIRSTW]' ;; | |
6047 | esac | |
d9898ee8 | 6048 | |
d50284c4 CE |
6049 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6050 | # Gets list of data symbols to import. | |
6051 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6052 | # Adjust the below global symbol transforms to fixup imported variables. | |
6053 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6054 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6055 | lt_c_name_lib_hook="\ | |
6056 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6057 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6058 | else | |
6059 | # Disable hooks by default. | |
6060 | lt_cv_sys_global_symbol_to_import= | |
6061 | lt_cdecl_hook= | |
6062 | lt_c_name_hook= | |
6063 | lt_c_name_lib_hook= | |
6064 | fi | |
6065 | ||
8d138742 CE |
6066 | # Transform an extracted symbol line into a proper C declaration. |
6067 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6068 | # so use this general approach. | |
d50284c4 CE |
6069 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6070 | $lt_cdecl_hook\ | |
6071 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6072 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 6073 | |
8d138742 | 6074 | # Transform an extracted symbol line into symbol name and symbol address |
d50284c4 CE |
6075 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6076 | $lt_c_name_hook\ | |
6077 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6078 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6079 | ||
6080 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6081 | # symbol address. | |
6082 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6083 | $lt_c_name_lib_hook\ | |
6084 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6085 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6086 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
d9898ee8 | 6087 | |
8d138742 CE |
6088 | # Handle CRLF in mingw tool chain |
6089 | opt_cr= | |
6090 | case $build_os in | |
6091 | mingw*) | |
6092 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6093 | ;; | |
6094 | esac | |
d9898ee8 | 6095 | |
8d138742 CE |
6096 | # Try without a prefix underscore, then with it. |
6097 | for ac_symprfx in "" "_"; do | |
d9898ee8 | 6098 | |
8d138742 CE |
6099 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6100 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d9898ee8 | 6101 | |
8d138742 CE |
6102 | # Write the raw and C identifiers. |
6103 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
d50284c4 CE |
6104 | # Fake it for dumpbin and say T for any non-static function, |
6105 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
6106 | # Also find C++ and __fastcall symbols from MSVC++, |
6107 | # which start with @ or ?. | |
6108 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6109 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6110 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6111 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6112 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6113 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6114 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6115 | " \$ 0!~/External *\|/{next};"\ |
6116 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6117 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6118 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6119 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6120 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6121 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6122 | " ' prfx=^$ac_symprfx" |
6123 | else | |
6124 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6125 | fi | |
b0322a85 | 6126 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6127 | |
8d138742 CE |
6128 | # Check to see that the pipe works correctly. |
6129 | pipe_works=no | |
d9898ee8 | 6130 | |
8d138742 CE |
6131 | rm -f conftest* |
6132 | cat > conftest.$ac_ext <<_LT_EOF | |
6133 | #ifdef __cplusplus | |
6134 | extern "C" { | |
6135 | #endif | |
6136 | char nm_test_var; | |
6137 | void nm_test_func(void); | |
6138 | void nm_test_func(void){} | |
6139 | #ifdef __cplusplus | |
6140 | } | |
6141 | #endif | |
6142 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6143 | _LT_EOF | |
d9898ee8 | 6144 | |
b0322a85 | 6145 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6146 | (eval $ac_compile) 2>&5 |
6147 | ac_status=$? | |
b0322a85 CE |
6148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6149 | test $ac_status = 0; }; then | |
8d138742 CE |
6150 | # Now try to grab the symbols. |
6151 | nlist=conftest.nm | |
b0322a85 CE |
6152 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6153 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
8d138742 | 6154 | ac_status=$? |
b0322a85 CE |
6155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6156 | test $ac_status = 0; } && test -s "$nlist"; then | |
8d138742 CE |
6157 | # Try sorting and uniquifying the output. |
6158 | if sort "$nlist" | uniq > "$nlist"T; then | |
6159 | mv -f "$nlist"T "$nlist" | |
6160 | else | |
6161 | rm -f "$nlist"T | |
6162 | fi | |
d9898ee8 | 6163 | |
8d138742 CE |
6164 | # Make sure that we snagged all the symbols we need. |
6165 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6166 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6167 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6168 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6169 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6170 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6171 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6172 | # define LT_DLSYM_CONST | |
d50284c4 | 6173 | #elif defined __osf__ |
b0322a85 CE |
6174 | /* This system does not cope well with relocations in const data. */ |
6175 | # define LT_DLSYM_CONST | |
6176 | #else | |
6177 | # define LT_DLSYM_CONST const | |
6178 | #endif | |
6179 | ||
8d138742 CE |
6180 | #ifdef __cplusplus |
6181 | extern "C" { | |
6182 | #endif | |
d9898ee8 | 6183 | |
8d138742 CE |
6184 | _LT_EOF |
6185 | # Now generate the symbol file. | |
6186 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 6187 | |
8d138742 | 6188 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6189 | |
8d138742 | 6190 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6191 | LT_DLSYM_CONST struct { |
8d138742 CE |
6192 | const char *name; |
6193 | void *address; | |
6194 | } | |
6195 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6196 | { | |
6197 | { "@PROGRAM@", (void *) 0 }, | |
6198 | _LT_EOF | |
d50284c4 | 6199 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6200 | cat <<\_LT_EOF >> conftest.$ac_ext |
6201 | {0, (void *) 0} | |
6202 | }; | |
d9898ee8 | 6203 | |
8d138742 CE |
6204 | /* This works around a problem in FreeBSD linker */ |
6205 | #ifdef FREEBSD_WORKAROUND | |
6206 | static const void *lt_preloaded_setup() { | |
6207 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6208 | } | |
6209 | #endif | |
d9898ee8 | 6210 | |
8d138742 CE |
6211 | #ifdef __cplusplus |
6212 | } | |
6213 | #endif | |
6214 | _LT_EOF | |
6215 | # Now try linking the two files. | |
6216 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6217 | lt_globsym_save_LIBS=$LIBS |
6218 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6219 | LIBS=conftstm.$ac_objext |
8d138742 | 6220 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6221 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
6222 | (eval $ac_link) 2>&5 |
6223 | ac_status=$? | |
b0322a85 | 6224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6225 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
8d138742 CE |
6226 | pipe_works=yes |
6227 | fi | |
b0322a85 CE |
6228 | LIBS=$lt_globsym_save_LIBS |
6229 | CFLAGS=$lt_globsym_save_CFLAGS | |
8d138742 CE |
6230 | else |
6231 | echo "cannot find nm_test_func in $nlist" >&5 | |
6232 | fi | |
6233 | else | |
6234 | echo "cannot find nm_test_var in $nlist" >&5 | |
6235 | fi | |
6236 | else | |
6237 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6238 | fi | |
6239 | else | |
6240 | echo "$progname: failed program was:" >&5 | |
6241 | cat conftest.$ac_ext >&5 | |
6242 | fi | |
6243 | rm -rf conftest* conftst* | |
d9898ee8 | 6244 | |
8d138742 | 6245 | # Do not use the global_symbol_pipe unless it works. |
d50284c4 | 6246 | if test yes = "$pipe_works"; then |
8d138742 CE |
6247 | break |
6248 | else | |
6249 | lt_cv_sys_global_symbol_pipe= | |
6250 | fi | |
6251 | done | |
d9898ee8 | 6252 | |
8d138742 | 6253 | fi |
d9898ee8 | 6254 | |
8d138742 CE |
6255 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6256 | lt_cv_sys_global_symbol_to_cdecl= | |
6257 | fi | |
6258 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6260 | $as_echo "failed" >&6; } |
d9898ee8 | 6261 | else |
b0322a85 | 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6263 | $as_echo "ok" >&6; } |
d9898ee8 | 6264 | fi |
6265 | ||
b0322a85 CE |
6266 | # Response file support. |
6267 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6268 | nm_file_list_spec='@' | |
6269 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6270 | nm_file_list_spec='@' | |
6271 | fi | |
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
6278 | ||
6279 | ||
6280 | ||
d9898ee8 | 6281 | |
d9898ee8 | 6282 | |
d9898ee8 | 6283 | |
d9898ee8 | 6284 | |
d9898ee8 | 6285 | |
d9898ee8 | 6286 | |
d9898ee8 | 6287 | |
d50284c4 CE |
6288 | |
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | ||
6297 | ||
d9898ee8 | 6298 | |
d9898ee8 | 6299 | |
d9898ee8 | 6300 | |
6301 | ||
d9898ee8 | 6302 | |
d9898ee8 | 6303 | |
6304 | ||
d9898ee8 | 6305 | |
6306 | ||
d9898ee8 | 6307 | |
b0322a85 CE |
6308 | |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6310 | $as_echo_n "checking for sysroot... " >&6; } | |
6311 | ||
6312 | # Check whether --with-sysroot was given. | |
6313 | if test "${with_sysroot+set}" = set; then : | |
6314 | withval=$with_sysroot; | |
6315 | else | |
6316 | with_sysroot=no | |
6317 | fi | |
6318 | ||
6319 | ||
6320 | lt_sysroot= | |
d50284c4 | 6321 | case $with_sysroot in #( |
b0322a85 | 6322 | yes) |
d50284c4 | 6323 | if test yes = "$GCC"; then |
b0322a85 CE |
6324 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6325 | fi | |
6326 | ;; #( | |
6327 | /*) | |
6328 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6329 | ;; #( | |
6330 | no|'') | |
6331 | ;; #( | |
6332 | *) | |
d50284c4 CE |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6334 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6335 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6336 | ;; | |
6337 | esac | |
6338 | ||
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6340 | $as_echo "${lt_sysroot:-no}" >&6; } | |
d9898ee8 | 6341 | |
d9898ee8 | 6342 | |
d9898ee8 | 6343 | |
d9898ee8 | 6344 | |
d9898ee8 | 6345 | |
d50284c4 CE |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6347 | $as_echo_n "checking for a working dd... " >&6; } | |
6348 | if ${ac_cv_path_lt_DD+:} false; then : | |
6349 | $as_echo_n "(cached) " >&6 | |
6350 | else | |
6351 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6352 | cat conftest.i conftest.i >conftest2.i | |
6353 | : ${lt_DD:=$DD} | |
6354 | if test -z "$lt_DD"; then | |
6355 | ac_path_lt_DD_found=false | |
6356 | # Loop through the user's path and test for each of PROGNAME-LIST | |
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_prog in dd; do | |
6363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6364 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6365 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6366 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6367 | cmp -s conftest.i conftest.out \ | |
6368 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6369 | fi | |
6370 | $ac_path_lt_DD_found && break 3 | |
6371 | done | |
6372 | done | |
6373 | done | |
6374 | IFS=$as_save_IFS | |
6375 | if test -z "$ac_cv_path_lt_DD"; then | |
6376 | : | |
6377 | fi | |
6378 | else | |
6379 | ac_cv_path_lt_DD=$lt_DD | |
6380 | fi | |
6381 | ||
6382 | rm -f conftest.i conftest2.i conftest.out | |
6383 | fi | |
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6385 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6386 | ||
6387 | ||
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6389 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6390 | if ${lt_cv_truncate_bin+:} false; then : | |
6391 | $as_echo_n "(cached) " >&6 | |
6392 | else | |
6393 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6394 | cat conftest.i conftest.i >conftest2.i | |
6395 | lt_cv_truncate_bin= | |
6396 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6397 | cmp -s conftest.i conftest.out \ | |
6398 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6399 | fi | |
6400 | rm -f conftest.i conftest2.i conftest.out | |
6401 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6402 | fi | |
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6404 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6413 | func_cc_basename () | |
6414 | { | |
6415 | for cc_temp in $*""; do | |
6416 | case $cc_temp in | |
6417 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6418 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6419 | \-*) ;; | |
6420 | *) break;; | |
6421 | esac | |
6422 | done | |
6423 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6424 | } | |
6425 | ||
8d138742 | 6426 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6427 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 CE |
6428 | enableval=$enable_libtool_lock; |
6429 | fi | |
d9898ee8 | 6430 | |
d50284c4 | 6431 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
d9898ee8 | 6432 | |
8d138742 CE |
6433 | # Some flags need to be propagated to the compiler or linker for good |
6434 | # libtool support. | |
6435 | case $host in | |
6436 | ia64-*-hpux*) | |
d50284c4 CE |
6437 | # Find out what ABI is being produced by ac_compile, and set mode |
6438 | # options accordingly. | |
8d138742 | 6439 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6440 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6441 | (eval $ac_compile) 2>&5 |
6442 | ac_status=$? | |
b0322a85 CE |
6443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6444 | test $ac_status = 0; }; then | |
8d138742 CE |
6445 | case `/usr/bin/file conftest.$ac_objext` in |
6446 | *ELF-32*) | |
d50284c4 | 6447 | HPUX_IA64_MODE=32 |
8d138742 CE |
6448 | ;; |
6449 | *ELF-64*) | |
d50284c4 | 6450 | HPUX_IA64_MODE=64 |
8d138742 CE |
6451 | ;; |
6452 | esac | |
6453 | fi | |
6454 | rm -rf conftest* | |
6455 | ;; | |
6456 | *-*-irix6*) | |
d50284c4 CE |
6457 | # Find out what ABI is being produced by ac_compile, and set linker |
6458 | # options accordingly. | |
b0322a85 CE |
6459 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6460 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6461 | (eval $ac_compile) 2>&5 |
6462 | ac_status=$? | |
b0322a85 CE |
6463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6464 | test $ac_status = 0; }; then | |
d50284c4 | 6465 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6466 | case `/usr/bin/file conftest.$ac_objext` in |
6467 | *32-bit*) | |
6468 | LD="${LD-ld} -melf32bsmip" | |
6469 | ;; | |
6470 | *N32*) | |
6471 | LD="${LD-ld} -melf32bmipn32" | |
6472 | ;; | |
6473 | *64-bit*) | |
6474 | LD="${LD-ld} -melf64bmip" | |
6475 | ;; | |
6476 | esac | |
6477 | else | |
6478 | case `/usr/bin/file conftest.$ac_objext` in | |
6479 | *32-bit*) | |
6480 | LD="${LD-ld} -32" | |
6481 | ;; | |
6482 | *N32*) | |
6483 | LD="${LD-ld} -n32" | |
6484 | ;; | |
6485 | *64-bit*) | |
6486 | LD="${LD-ld} -64" | |
6487 | ;; | |
6488 | esac | |
6489 | fi | |
6490 | fi | |
6491 | rm -rf conftest* | |
6492 | ;; | |
d9898ee8 | 6493 | |
d50284c4 CE |
6494 | mips64*-*linux*) |
6495 | # Find out what ABI is being produced by ac_compile, and set linker | |
6496 | # options accordingly. | |
6497 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6498 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6499 | (eval $ac_compile) 2>&5 | |
6500 | ac_status=$? | |
6501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6502 | test $ac_status = 0; }; then | |
6503 | emul=elf | |
6504 | case `/usr/bin/file conftest.$ac_objext` in | |
6505 | *32-bit*) | |
6506 | emul="${emul}32" | |
6507 | ;; | |
6508 | *64-bit*) | |
6509 | emul="${emul}64" | |
6510 | ;; | |
6511 | esac | |
6512 | case `/usr/bin/file conftest.$ac_objext` in | |
6513 | *MSB*) | |
6514 | emul="${emul}btsmip" | |
6515 | ;; | |
6516 | *LSB*) | |
6517 | emul="${emul}ltsmip" | |
6518 | ;; | |
6519 | esac | |
6520 | case `/usr/bin/file conftest.$ac_objext` in | |
6521 | *N32*) | |
6522 | emul="${emul}n32" | |
6523 | ;; | |
6524 | esac | |
6525 | LD="${LD-ld} -m $emul" | |
6526 | fi | |
6527 | rm -rf conftest* | |
6528 | ;; | |
6529 | ||
6530 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 6531 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6532 | # Find out what ABI is being produced by ac_compile, and set linker |
6533 | # options accordingly. Note that the listed cases only cover the | |
6534 | # situations where additional linker options are needed (such as when | |
6535 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6536 | # vice versa); the common cases where no linker options are needed do | |
6537 | # not appear in the list. | |
8d138742 | 6538 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6539 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6540 | (eval $ac_compile) 2>&5 |
6541 | ac_status=$? | |
b0322a85 CE |
6542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6543 | test $ac_status = 0; }; then | |
8d138742 CE |
6544 | case `/usr/bin/file conftest.o` in |
6545 | *32-bit*) | |
6546 | case $host in | |
6547 | x86_64-*kfreebsd*-gnu) | |
6548 | LD="${LD-ld} -m elf_i386_fbsd" | |
6549 | ;; | |
6550 | x86_64-*linux*) | |
d50284c4 CE |
6551 | case `/usr/bin/file conftest.o` in |
6552 | *x86-64*) | |
6553 | LD="${LD-ld} -m elf32_x86_64" | |
6554 | ;; | |
6555 | *) | |
6556 | LD="${LD-ld} -m elf_i386" | |
6557 | ;; | |
6558 | esac | |
8d138742 | 6559 | ;; |
d50284c4 CE |
6560 | powerpc64le-*linux*) |
6561 | LD="${LD-ld} -m elf32lppclinux" | |
6562 | ;; | |
6563 | powerpc64-*linux*) | |
8d138742 CE |
6564 | LD="${LD-ld} -m elf32ppclinux" |
6565 | ;; | |
6566 | s390x-*linux*) | |
6567 | LD="${LD-ld} -m elf_s390" | |
6568 | ;; | |
6569 | sparc64-*linux*) | |
6570 | LD="${LD-ld} -m elf32_sparc" | |
6571 | ;; | |
6572 | esac | |
6573 | ;; | |
6574 | *64-bit*) | |
6575 | case $host in | |
6576 | x86_64-*kfreebsd*-gnu) | |
6577 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6578 | ;; | |
6579 | x86_64-*linux*) | |
6580 | LD="${LD-ld} -m elf_x86_64" | |
6581 | ;; | |
d50284c4 CE |
6582 | powerpcle-*linux*) |
6583 | LD="${LD-ld} -m elf64lppc" | |
6584 | ;; | |
6585 | powerpc-*linux*) | |
8d138742 CE |
6586 | LD="${LD-ld} -m elf64ppc" |
6587 | ;; | |
6588 | s390*-*linux*|s390*-*tpf*) | |
6589 | LD="${LD-ld} -m elf64_s390" | |
6590 | ;; | |
6591 | sparc*-*linux*) | |
6592 | LD="${LD-ld} -m elf64_sparc" | |
6593 | ;; | |
6594 | esac | |
6595 | ;; | |
6596 | esac | |
6597 | fi | |
6598 | rm -rf conftest* | |
6599 | ;; | |
d9898ee8 | 6600 | |
8d138742 CE |
6601 | *-*-sco3.2v5*) |
6602 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 6603 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 6604 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6606 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6607 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
6608 | $as_echo_n "(cached) " >&6 |
6609 | else | |
6610 | ac_ext=c | |
6611 | ac_cpp='$CPP $CPPFLAGS' | |
6612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6615 | |
b0322a85 | 6616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 6617 | /* end confdefs.h. */ |
d9898ee8 | 6618 | |
8d138742 CE |
6619 | int |
6620 | main () | |
6621 | { | |
d9898ee8 | 6622 | |
8d138742 CE |
6623 | ; |
6624 | return 0; | |
6625 | } | |
6626 | _ACEOF | |
b0322a85 | 6627 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
6628 | lt_cv_cc_needs_belf=yes |
6629 | else | |
b0322a85 | 6630 | lt_cv_cc_needs_belf=no |
8d138742 | 6631 | fi |
b0322a85 CE |
6632 | rm -f core conftest.err conftest.$ac_objext \ |
6633 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6634 | ac_ext=c |
6635 | ac_cpp='$CPP $CPPFLAGS' | |
6636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6639 | |
8d138742 | 6640 | fi |
b0322a85 | 6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 6642 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 6643 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 6644 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 6645 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
6646 | fi |
6647 | ;; | |
b0322a85 | 6648 | *-*solaris*) |
d50284c4 CE |
6649 | # Find out what ABI is being produced by ac_compile, and set linker |
6650 | # options accordingly. | |
8d138742 | 6651 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6652 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6653 | (eval $ac_compile) 2>&5 |
6654 | ac_status=$? | |
b0322a85 CE |
6655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6656 | test $ac_status = 0; }; then | |
8d138742 CE |
6657 | case `/usr/bin/file conftest.o` in |
6658 | *64-bit*) | |
6659 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6660 | yes*) |
6661 | case $host in | |
d50284c4 | 6662 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
6663 | LD="${LD-ld} -m elf_x86_64" |
6664 | ;; | |
6665 | sparc*-*-solaris*) | |
6666 | LD="${LD-ld} -m elf64_sparc" | |
6667 | ;; | |
6668 | esac | |
6669 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6670 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 6671 | LD=${LD-ld}_sol2 |
b0322a85 CE |
6672 | fi |
6673 | ;; | |
d9898ee8 | 6674 | *) |
8d138742 CE |
6675 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
6676 | LD="${LD-ld} -64" | |
6677 | fi | |
d9898ee8 | 6678 | ;; |
6679 | esac | |
6680 | ;; | |
d9898ee8 | 6681 | esac |
8d138742 CE |
6682 | fi |
6683 | rm -rf conftest* | |
6684 | ;; | |
6685 | esac | |
d9898ee8 | 6686 | |
d50284c4 | 6687 | need_locks=$enable_libtool_lock |
d9898ee8 | 6688 | |
b0322a85 CE |
6689 | if test -n "$ac_tool_prefix"; then |
6690 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6691 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6693 | $as_echo_n "checking for $ac_word... " >&6; } | |
6694 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6695 | $as_echo_n "(cached) " >&6 | |
6696 | else | |
6697 | if test -n "$MANIFEST_TOOL"; then | |
6698 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6699 | else | |
6700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6701 | for as_dir in $PATH | |
6702 | do | |
6703 | IFS=$as_save_IFS | |
6704 | test -z "$as_dir" && as_dir=. | |
6705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6707 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6709 | break 2 | |
6710 | fi | |
6711 | done | |
6712 | done | |
6713 | IFS=$as_save_IFS | |
6714 | ||
6715 | fi | |
6716 | fi | |
6717 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6718 | if test -n "$MANIFEST_TOOL"; then | |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6720 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6721 | else | |
6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6723 | $as_echo "no" >&6; } | |
6724 | fi | |
6725 | ||
6726 | ||
6727 | fi | |
6728 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6729 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6730 | # Extract the first word of "mt", so it can be a program name with args. | |
6731 | set dummy mt; ac_word=$2 | |
6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6733 | $as_echo_n "checking for $ac_word... " >&6; } | |
6734 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6735 | $as_echo_n "(cached) " >&6 | |
6736 | else | |
6737 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6738 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6739 | else | |
6740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6741 | for as_dir in $PATH | |
6742 | do | |
6743 | IFS=$as_save_IFS | |
6744 | test -z "$as_dir" && as_dir=. | |
6745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6747 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6749 | break 2 | |
6750 | fi | |
6751 | done | |
6752 | done | |
6753 | IFS=$as_save_IFS | |
6754 | ||
6755 | fi | |
6756 | fi | |
6757 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6758 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6760 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6761 | else | |
6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6763 | $as_echo "no" >&6; } | |
6764 | fi | |
6765 | ||
6766 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6767 | MANIFEST_TOOL=":" | |
6768 | else | |
6769 | case $cross_compiling:$ac_tool_warned in | |
6770 | yes:) | |
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6773 | ac_tool_warned=yes ;; | |
6774 | esac | |
6775 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6776 | fi | |
6777 | else | |
6778 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6779 | fi | |
6780 | ||
6781 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6783 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6784 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6785 | $as_echo_n "(cached) " >&6 | |
6786 | else | |
6787 | lt_cv_path_mainfest_tool=no | |
6788 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6789 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6790 | cat conftest.err >&5 | |
6791 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6792 | lt_cv_path_mainfest_tool=yes | |
6793 | fi | |
6794 | rm -f conftest* | |
6795 | fi | |
6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6797 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 6798 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
6799 | MANIFEST_TOOL=: |
6800 | fi | |
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
d9898ee8 | 6806 | |
8d138742 CE |
6807 | case $host_os in |
6808 | rhapsody* | darwin*) | |
6809 | if test -n "$ac_tool_prefix"; then | |
6810 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6811 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6813 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6814 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6815 | $as_echo_n "(cached) " >&6 |
6816 | else | |
6817 | if test -n "$DSYMUTIL"; then | |
6818 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6819 | else | |
6820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6821 | for as_dir in $PATH | |
6822 | do | |
6823 | IFS=$as_save_IFS | |
6824 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6825 | for ac_exec_ext in '' $ac_executable_extensions; do |
6826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6827 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6829 | break 2 |
6830 | fi | |
6831 | done | |
b0322a85 | 6832 | done |
8d138742 | 6833 | IFS=$as_save_IFS |
d9898ee8 | 6834 | |
8d138742 CE |
6835 | fi |
6836 | fi | |
6837 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6838 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 CE |
6840 | $as_echo "$DSYMUTIL" >&6; } |
6841 | else | |
b0322a85 | 6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6843 | $as_echo "no" >&6; } |
6844 | fi | |
d9898ee8 | 6845 | |
d9898ee8 | 6846 | |
8d138742 CE |
6847 | fi |
6848 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6849 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6850 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6851 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6853 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6854 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6855 | $as_echo_n "(cached) " >&6 |
6856 | else | |
6857 | if test -n "$ac_ct_DSYMUTIL"; then | |
6858 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6859 | else | |
6860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6861 | for as_dir in $PATH | |
6862 | do | |
6863 | IFS=$as_save_IFS | |
6864 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6865 | for ac_exec_ext in '' $ac_executable_extensions; do |
6866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6867 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6869 | break 2 |
6870 | fi | |
6871 | done | |
b0322a85 | 6872 | done |
8d138742 | 6873 | IFS=$as_save_IFS |
d9898ee8 | 6874 | |
8d138742 CE |
6875 | fi |
6876 | fi | |
6877 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6878 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 CE |
6880 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
6881 | else | |
b0322a85 | 6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6883 | $as_echo "no" >&6; } |
6884 | fi | |
ac40fd9e | 6885 | |
8d138742 CE |
6886 | if test "x$ac_ct_DSYMUTIL" = x; then |
6887 | DSYMUTIL=":" | |
6888 | else | |
6889 | case $cross_compiling:$ac_tool_warned in | |
6890 | yes:) | |
b0322a85 | 6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6892 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6893 | ac_tool_warned=yes ;; | |
6894 | esac | |
6895 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6896 | fi | |
6897 | else | |
6898 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6899 | fi | |
d9898ee8 | 6900 | |
8d138742 CE |
6901 | if test -n "$ac_tool_prefix"; then |
6902 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6903 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6905 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6906 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 CE |
6907 | $as_echo_n "(cached) " >&6 |
6908 | else | |
6909 | if test -n "$NMEDIT"; then | |
6910 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6911 | else | |
6912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6913 | for as_dir in $PATH | |
6914 | do | |
6915 | IFS=$as_save_IFS | |
6916 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6917 | for ac_exec_ext in '' $ac_executable_extensions; do |
6918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6919 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6921 | break 2 |
6922 | fi | |
6923 | done | |
b0322a85 | 6924 | done |
8d138742 | 6925 | IFS=$as_save_IFS |
d9898ee8 | 6926 | |
8d138742 CE |
6927 | fi |
6928 | fi | |
6929 | NMEDIT=$ac_cv_prog_NMEDIT | |
6930 | if test -n "$NMEDIT"; then | |
b0322a85 | 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 CE |
6932 | $as_echo "$NMEDIT" >&6; } |
6933 | else | |
b0322a85 | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6935 | $as_echo "no" >&6; } |
6936 | fi | |
d9898ee8 | 6937 | |
d9898ee8 | 6938 | |
8d138742 CE |
6939 | fi |
6940 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6941 | ac_ct_NMEDIT=$NMEDIT | |
6942 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6943 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6945 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6946 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 CE |
6947 | $as_echo_n "(cached) " >&6 |
6948 | else | |
6949 | if test -n "$ac_ct_NMEDIT"; then | |
6950 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6951 | else | |
6952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6953 | for as_dir in $PATH | |
6954 | do | |
6955 | IFS=$as_save_IFS | |
6956 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6957 | for ac_exec_ext in '' $ac_executable_extensions; do |
6958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6959 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6961 | break 2 |
6962 | fi | |
6963 | done | |
b0322a85 | 6964 | done |
8d138742 | 6965 | IFS=$as_save_IFS |
d9898ee8 | 6966 | |
8d138742 CE |
6967 | fi |
6968 | fi | |
6969 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6970 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 CE |
6972 | $as_echo "$ac_ct_NMEDIT" >&6; } |
6973 | else | |
b0322a85 | 6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6975 | $as_echo "no" >&6; } |
6976 | fi | |
d9898ee8 | 6977 | |
8d138742 CE |
6978 | if test "x$ac_ct_NMEDIT" = x; then |
6979 | NMEDIT=":" | |
6980 | else | |
6981 | case $cross_compiling:$ac_tool_warned in | |
6982 | yes:) | |
b0322a85 | 6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6984 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6985 | ac_tool_warned=yes ;; | |
6986 | esac | |
6987 | NMEDIT=$ac_ct_NMEDIT | |
6988 | fi | |
6989 | else | |
6990 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6991 | fi | |
d9898ee8 | 6992 | |
8d138742 CE |
6993 | if test -n "$ac_tool_prefix"; then |
6994 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6995 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6997 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6998 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
6999 | $as_echo_n "(cached) " >&6 |
7000 | else | |
7001 | if test -n "$LIPO"; then | |
7002 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7003 | else | |
7004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7005 | for as_dir in $PATH | |
7006 | do | |
7007 | IFS=$as_save_IFS | |
7008 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7009 | for ac_exec_ext in '' $ac_executable_extensions; do |
7010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7011 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 7012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 7013 | break 2 |
d9898ee8 | 7014 | fi |
8d138742 | 7015 | done |
b0322a85 | 7016 | done |
8d138742 | 7017 | IFS=$as_save_IFS |
d9898ee8 | 7018 | |
8d138742 CE |
7019 | fi |
7020 | fi | |
7021 | LIPO=$ac_cv_prog_LIPO | |
7022 | if test -n "$LIPO"; then | |
b0322a85 | 7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
7024 | $as_echo "$LIPO" >&6; } |
7025 | else | |
b0322a85 | 7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7027 | $as_echo "no" >&6; } |
7028 | fi | |
d9898ee8 | 7029 | |
d9898ee8 | 7030 | |
8d138742 CE |
7031 | fi |
7032 | if test -z "$ac_cv_prog_LIPO"; then | |
7033 | ac_ct_LIPO=$LIPO | |
7034 | # Extract the first word of "lipo", so it can be a program name with args. | |
7035 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7037 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7038 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 | 7039 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7040 | else |
8d138742 CE |
7041 | if test -n "$ac_ct_LIPO"; then |
7042 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7043 | else | |
7044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7045 | for as_dir in $PATH | |
7046 | do | |
7047 | IFS=$as_save_IFS | |
7048 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7049 | for ac_exec_ext in '' $ac_executable_extensions; do |
7050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7051 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7053 | break 2 |
7054 | fi | |
7055 | done | |
b0322a85 | 7056 | done |
8d138742 | 7057 | IFS=$as_save_IFS |
d9898ee8 | 7058 | |
7059 | fi | |
8d138742 CE |
7060 | fi |
7061 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7062 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7064 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7065 | else |
b0322a85 | 7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7067 | $as_echo "no" >&6; } |
d9898ee8 | 7068 | fi |
7069 | ||
8d138742 CE |
7070 | if test "x$ac_ct_LIPO" = x; then |
7071 | LIPO=":" | |
7072 | else | |
7073 | case $cross_compiling:$ac_tool_warned in | |
7074 | yes:) | |
b0322a85 | 7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7076 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7077 | ac_tool_warned=yes ;; | |
d9898ee8 | 7078 | esac |
8d138742 CE |
7079 | LIPO=$ac_ct_LIPO |
7080 | fi | |
7081 | else | |
7082 | LIPO="$ac_cv_prog_LIPO" | |
7083 | fi | |
d9898ee8 | 7084 | |
8d138742 CE |
7085 | if test -n "$ac_tool_prefix"; then |
7086 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7087 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7089 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7090 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 7091 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7092 | else |
8d138742 CE |
7093 | if test -n "$OTOOL"; then |
7094 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7095 | else | |
7096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7097 | for as_dir in $PATH | |
7098 | do | |
7099 | IFS=$as_save_IFS | |
7100 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7101 | for ac_exec_ext in '' $ac_executable_extensions; do |
7102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7103 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7105 | break 2 |
7106 | fi | |
7107 | done | |
b0322a85 | 7108 | done |
8d138742 | 7109 | IFS=$as_save_IFS |
d9898ee8 | 7110 | |
7111 | fi | |
8d138742 CE |
7112 | fi |
7113 | OTOOL=$ac_cv_prog_OTOOL | |
7114 | if test -n "$OTOOL"; then | |
b0322a85 | 7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 7116 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 7117 | else |
b0322a85 | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7119 | $as_echo "no" >&6; } |
d9898ee8 | 7120 | fi |
7121 | ||
7122 | ||
8d138742 CE |
7123 | fi |
7124 | if test -z "$ac_cv_prog_OTOOL"; then | |
7125 | ac_ct_OTOOL=$OTOOL | |
7126 | # Extract the first word of "otool", so it can be a program name with args. | |
7127 | set dummy otool; ac_word=$2 | |
b0322a85 | 7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7129 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7130 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 | 7131 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7132 | else |
8d138742 CE |
7133 | if test -n "$ac_ct_OTOOL"; then |
7134 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7135 | else | |
7136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7137 | for as_dir in $PATH | |
7138 | do | |
7139 | IFS=$as_save_IFS | |
7140 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7141 | for ac_exec_ext in '' $ac_executable_extensions; do |
7142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7143 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7145 | break 2 |
7146 | fi | |
7147 | done | |
b0322a85 | 7148 | done |
8d138742 | 7149 | IFS=$as_save_IFS |
d9898ee8 | 7150 | |
7151 | fi | |
8d138742 CE |
7152 | fi |
7153 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7154 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 CE |
7156 | $as_echo "$ac_ct_OTOOL" >&6; } |
7157 | else | |
b0322a85 | 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7159 | $as_echo "no" >&6; } |
7160 | fi | |
d9898ee8 | 7161 | |
8d138742 CE |
7162 | if test "x$ac_ct_OTOOL" = x; then |
7163 | OTOOL=":" | |
7164 | else | |
7165 | case $cross_compiling:$ac_tool_warned in | |
7166 | yes:) | |
b0322a85 | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7168 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7169 | ac_tool_warned=yes ;; | |
7170 | esac | |
7171 | OTOOL=$ac_ct_OTOOL | |
d9898ee8 | 7172 | fi |
7173 | else | |
8d138742 | 7174 | OTOOL="$ac_cv_prog_OTOOL" |
d9898ee8 | 7175 | fi |
7176 | ||
8d138742 CE |
7177 | if test -n "$ac_tool_prefix"; then |
7178 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7179 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7181 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7182 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
7183 | $as_echo_n "(cached) " >&6 |
7184 | else | |
7185 | if test -n "$OTOOL64"; then | |
7186 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7187 | else | |
7188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7189 | for as_dir in $PATH | |
7190 | do | |
7191 | IFS=$as_save_IFS | |
7192 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7193 | for ac_exec_ext in '' $ac_executable_extensions; do |
7194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7195 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7197 | break 2 |
7198 | fi | |
d9898ee8 | 7199 | done |
b0322a85 | 7200 | done |
8d138742 | 7201 | IFS=$as_save_IFS |
d9898ee8 | 7202 | |
8d138742 CE |
7203 | fi |
7204 | fi | |
7205 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7206 | if test -n "$OTOOL64"; then | |
b0322a85 | 7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
7208 | $as_echo "$OTOOL64" >&6; } |
7209 | else | |
b0322a85 | 7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7211 | $as_echo "no" >&6; } |
7212 | fi | |
d9898ee8 | 7213 | |
d9898ee8 | 7214 | |
8d138742 CE |
7215 | fi |
7216 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7217 | ac_ct_OTOOL64=$OTOOL64 | |
7218 | # Extract the first word of "otool64", so it can be a program name with args. | |
7219 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7221 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7222 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7223 | $as_echo_n "(cached) " >&6 |
7224 | else | |
7225 | if test -n "$ac_ct_OTOOL64"; then | |
7226 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7227 | else | |
7228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7229 | for as_dir in $PATH | |
7230 | do | |
7231 | IFS=$as_save_IFS | |
7232 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7233 | for ac_exec_ext in '' $ac_executable_extensions; do |
7234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7235 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7237 | break 2 |
7238 | fi | |
7239 | done | |
b0322a85 | 7240 | done |
8d138742 | 7241 | IFS=$as_save_IFS |
d9898ee8 | 7242 | |
8d138742 CE |
7243 | fi |
7244 | fi | |
7245 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7246 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 CE |
7248 | $as_echo "$ac_ct_OTOOL64" >&6; } |
7249 | else | |
b0322a85 | 7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7251 | $as_echo "no" >&6; } |
7252 | fi | |
d9898ee8 | 7253 | |
8d138742 CE |
7254 | if test "x$ac_ct_OTOOL64" = x; then |
7255 | OTOOL64=":" | |
7256 | else | |
7257 | case $cross_compiling:$ac_tool_warned in | |
7258 | yes:) | |
b0322a85 | 7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7260 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7261 | ac_tool_warned=yes ;; | |
7262 | esac | |
7263 | OTOOL64=$ac_ct_OTOOL64 | |
7264 | fi | |
7265 | else | |
7266 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7267 | fi | |
d9898ee8 | 7268 | |
d9898ee8 | 7269 | |
d9898ee8 | 7270 | |
d9898ee8 | 7271 | |
d9898ee8 | 7272 | |
d9898ee8 | 7273 | |
d9898ee8 | 7274 | |
d9898ee8 | 7275 | |
d9898ee8 | 7276 | |
d9898ee8 | 7277 | |
d9898ee8 | 7278 | |
d9898ee8 | 7279 | |
d9898ee8 | 7280 | |
d9898ee8 | 7281 | |
d9898ee8 | 7282 | |
d9898ee8 | 7283 | |
d9898ee8 | 7284 | |
d9898ee8 | 7285 | |
d9898ee8 | 7286 | |
8d138742 CE |
7287 | |
7288 | ||
7289 | ||
7290 | ||
7291 | ||
7292 | ||
7293 | ||
7294 | ||
b0322a85 | 7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7296 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7297 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
7298 | $as_echo_n "(cached) " >&6 |
7299 | else | |
7300 | lt_cv_apple_cc_single_mod=no | |
d50284c4 | 7301 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7302 | # By default we will add the -single_module flag. You can override |
7303 | # by either setting the environment variable LT_MULTI_MODULE | |
7304 | # non-empty at configure time, or by adding -multi_module to the | |
7305 | # link flags. | |
7306 | rm -rf libconftest.dylib* | |
7307 | echo "int foo(void){return 1;}" > conftest.c | |
7308 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7309 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7310 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7311 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7312 | _lt_result=$? | |
b0322a85 CE |
7313 | # If there is a non-empty error log, and "single_module" |
7314 | # appears in it, assume the flag caused a linker warning | |
7315 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7316 | cat conftest.err >&5 | |
7317 | # Otherwise, if the output was created with a 0 exit code from | |
7318 | # the compiler, it worked. | |
d50284c4 | 7319 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 | 7320 | lt_cv_apple_cc_single_mod=yes |
d9898ee8 | 7321 | else |
8d138742 | 7322 | cat conftest.err >&5 |
d9898ee8 | 7323 | fi |
8d138742 CE |
7324 | rm -rf libconftest.dylib* |
7325 | rm -f conftest.* | |
d9898ee8 | 7326 | fi |
8d138742 | 7327 | fi |
b0322a85 | 7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7329 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7330 | |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7332 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7333 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7334 | $as_echo_n "(cached) " >&6 |
7335 | else | |
7336 | lt_cv_ld_exported_symbols_list=no | |
7337 | save_LDFLAGS=$LDFLAGS | |
7338 | echo "_main" > conftest.sym | |
7339 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7341 | /* end confdefs.h. */ |
7342 | ||
7343 | int | |
7344 | main () | |
7345 | { | |
7346 | ||
7347 | ; | |
7348 | return 0; | |
7349 | } | |
7350 | _ACEOF | |
b0322a85 | 7351 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
7352 | lt_cv_ld_exported_symbols_list=yes |
7353 | else | |
b0322a85 | 7354 | lt_cv_ld_exported_symbols_list=no |
8d138742 | 7355 | fi |
b0322a85 CE |
7356 | rm -f core conftest.err conftest.$ac_objext \ |
7357 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7358 | LDFLAGS=$save_LDFLAGS |
8d138742 CE |
7359 | |
7360 | fi | |
b0322a85 | 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7362 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7363 | |
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7365 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7366 | if ${lt_cv_ld_force_load+:} false; then : | |
7367 | $as_echo_n "(cached) " >&6 | |
7368 | else | |
7369 | lt_cv_ld_force_load=no | |
7370 | cat > conftest.c << _LT_EOF | |
7371 | int forced_loaded() { return 2;} | |
7372 | _LT_EOF | |
7373 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7374 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7375 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7376 | $AR cru libconftest.a conftest.o 2>&5 | |
7377 | echo "$RANLIB libconftest.a" >&5 | |
7378 | $RANLIB libconftest.a 2>&5 | |
7379 | cat > conftest.c << _LT_EOF | |
7380 | int main() { return 0;} | |
7381 | _LT_EOF | |
7382 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7383 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7384 | _lt_result=$? | |
7385 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7386 | cat conftest.err >&5 | |
d50284c4 | 7387 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7388 | lt_cv_ld_force_load=yes |
7389 | else | |
7390 | cat conftest.err >&5 | |
7391 | fi | |
7392 | rm -f conftest.err libconftest.a conftest conftest.c | |
7393 | rm -rf conftest.dSYM | |
7394 | ||
7395 | fi | |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7397 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8d138742 CE |
7398 | case $host_os in |
7399 | rhapsody* | darwin1.[012]) | |
d50284c4 | 7400 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7401 | darwin1.*) |
d50284c4 | 7402 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7403 | darwin*) # darwin 5.x on |
7404 | # if running on 10.5 or later, the deployment target defaults | |
7405 | # to the OS version, if on x86, and 10.4, the deployment | |
7406 | # target defaults to 10.4. Don't you love it? | |
7407 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7408 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7409 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7410 | 10.[012][,.]*) | |
7411 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7412 | 10.*) |
d50284c4 | 7413 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7414 | esac |
7415 | ;; | |
7416 | esac | |
d50284c4 | 7417 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7418 | _lt_dar_single_mod='$single_module' |
7419 | fi | |
d50284c4 CE |
7420 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7421 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7422 | else |
d50284c4 | 7423 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7424 | fi |
d50284c4 | 7425 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7426 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7427 | else | |
7428 | _lt_dsymutil= | |
7429 | fi | |
7430 | ;; | |
7431 | esac | |
7432 | ||
d50284c4 CE |
7433 | # func_munge_path_list VARIABLE PATH |
7434 | # ----------------------------------- | |
7435 | # VARIABLE is name of variable containing _space_ separated list of | |
7436 | # directories to be munged by the contents of PATH, which is string | |
7437 | # having a format: | |
7438 | # "DIR[:DIR]:" | |
7439 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7440 | # ":DIR[:DIR]" | |
7441 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7442 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7443 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7444 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7445 | # "DIR[:DIR]" | |
7446 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7447 | func_munge_path_list () | |
7448 | { | |
7449 | case x$2 in | |
7450 | x) | |
7451 | ;; | |
7452 | *:) | |
7453 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7454 | ;; | |
7455 | x:*) | |
7456 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7457 | ;; | |
7458 | *::*) | |
7459 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7460 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7461 | ;; | |
7462 | *) | |
7463 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7464 | ;; | |
7465 | esac | |
7466 | } | |
7467 | ||
8d138742 CE |
7468 | ac_ext=c |
7469 | ac_cpp='$CPP $CPPFLAGS' | |
7470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7474 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7475 | # On Suns, sometimes $CPP names a directory. | |
7476 | if test -n "$CPP" && test -d "$CPP"; then | |
7477 | CPP= | |
7478 | fi | |
7479 | if test -z "$CPP"; then | |
b0322a85 | 7480 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 CE |
7481 | $as_echo_n "(cached) " >&6 |
7482 | else | |
7483 | # Double quotes because CPP needs to be expanded | |
7484 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7485 | do | |
7486 | ac_preproc_ok=false | |
7487 | for ac_c_preproc_warn_flag in '' yes | |
7488 | do | |
7489 | # Use a header file that comes with gcc, so configuring glibc | |
7490 | # with a fresh cross-compiler works. | |
7491 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7492 | # <limits.h> exists even on freestanding compilers. | |
7493 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7494 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7496 | /* end confdefs.h. */ |
7497 | #ifdef __STDC__ | |
7498 | # include <limits.h> | |
7499 | #else | |
7500 | # include <assert.h> | |
7501 | #endif | |
7502 | Syntax error | |
7503 | _ACEOF | |
b0322a85 | 7504 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 | 7505 | |
b0322a85 | 7506 | else |
8d138742 CE |
7507 | # Broken: fails on valid input. |
7508 | continue | |
7509 | fi | |
b0322a85 | 7510 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7511 | |
8d138742 CE |
7512 | # OK, works on sane cases. Now check whether nonexistent headers |
7513 | # can be detected and how. | |
b0322a85 | 7514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7515 | /* end confdefs.h. */ |
7516 | #include <ac_nonexistent.h> | |
7517 | _ACEOF | |
b0322a85 | 7518 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7519 | # Broken: success on invalid input. |
7520 | continue | |
d9898ee8 | 7521 | else |
8d138742 CE |
7522 | # Passes both tests. |
7523 | ac_preproc_ok=: | |
7524 | break | |
d9898ee8 | 7525 | fi |
b0322a85 | 7526 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7527 | |
8d138742 CE |
7528 | done |
7529 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7530 | rm -f conftest.i conftest.err conftest.$ac_ext |
7531 | if $ac_preproc_ok; then : | |
8d138742 CE |
7532 | break |
7533 | fi | |
d9898ee8 | 7534 | |
8d138742 CE |
7535 | done |
7536 | ac_cv_prog_CPP=$CPP | |
7537 | ||
7538 | fi | |
7539 | CPP=$ac_cv_prog_CPP | |
7540 | else | |
7541 | ac_cv_prog_CPP=$CPP | |
7542 | fi | |
b0322a85 | 7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7544 | $as_echo "$CPP" >&6; } |
7545 | ac_preproc_ok=false | |
7546 | for ac_c_preproc_warn_flag in '' yes | |
7547 | do | |
7548 | # Use a header file that comes with gcc, so configuring glibc | |
7549 | # with a fresh cross-compiler works. | |
7550 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7551 | # <limits.h> exists even on freestanding compilers. | |
7552 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7553 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7555 | /* end confdefs.h. */ |
7556 | #ifdef __STDC__ | |
7557 | # include <limits.h> | |
7558 | #else | |
7559 | # include <assert.h> | |
7560 | #endif | |
7561 | Syntax error | |
7562 | _ACEOF | |
b0322a85 | 7563 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7564 | |
b0322a85 | 7565 | else |
8d138742 CE |
7566 | # Broken: fails on valid input. |
7567 | continue | |
d9898ee8 | 7568 | fi |
b0322a85 | 7569 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7570 | |
8d138742 CE |
7571 | # OK, works on sane cases. Now check whether nonexistent headers |
7572 | # can be detected and how. | |
b0322a85 | 7573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7574 | /* end confdefs.h. */ |
7575 | #include <ac_nonexistent.h> | |
7576 | _ACEOF | |
b0322a85 | 7577 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7578 | # Broken: success on invalid input. |
7579 | continue | |
b0322a85 | 7580 | else |
8d138742 CE |
7581 | # Passes both tests. |
7582 | ac_preproc_ok=: | |
7583 | break | |
7584 | fi | |
b0322a85 | 7585 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7586 | |
8d138742 CE |
7587 | done |
7588 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7589 | rm -f conftest.i conftest.err conftest.$ac_ext |
7590 | if $ac_preproc_ok; then : | |
7591 | ||
8d138742 | 7592 | else |
b0322a85 | 7593 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7594 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7595 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7596 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7597 | fi |
d9898ee8 | 7598 | |
8d138742 CE |
7599 | ac_ext=c |
7600 | ac_cpp='$CPP $CPPFLAGS' | |
7601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7604 | |
d9898ee8 | 7605 | |
b0322a85 | 7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7607 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7608 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7609 | $as_echo_n "(cached) " >&6 |
7610 | else | |
b0322a85 | 7611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7612 | /* end confdefs.h. */ |
7613 | #include <stdlib.h> | |
7614 | #include <stdarg.h> | |
7615 | #include <string.h> | |
7616 | #include <float.h> | |
d9898ee8 | 7617 | |
8d138742 CE |
7618 | int |
7619 | main () | |
7620 | { | |
d9898ee8 | 7621 | |
8d138742 CE |
7622 | ; |
7623 | return 0; | |
7624 | } | |
7625 | _ACEOF | |
b0322a85 | 7626 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7627 | ac_cv_header_stdc=yes |
7628 | else | |
b0322a85 | 7629 | ac_cv_header_stdc=no |
8d138742 | 7630 | fi |
8d138742 | 7631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7632 | |
8d138742 CE |
7633 | if test $ac_cv_header_stdc = yes; then |
7634 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7636 | /* end confdefs.h. */ |
7637 | #include <string.h> | |
d9898ee8 | 7638 | |
8d138742 CE |
7639 | _ACEOF |
7640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7641 | $EGREP "memchr" >/dev/null 2>&1; then : |
7642 | ||
8d138742 CE |
7643 | else |
7644 | ac_cv_header_stdc=no | |
7645 | fi | |
7646 | rm -f conftest* | |
d9898ee8 | 7647 | |
8d138742 | 7648 | fi |
d9898ee8 | 7649 | |
8d138742 CE |
7650 | if test $ac_cv_header_stdc = yes; then |
7651 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7653 | /* end confdefs.h. */ |
7654 | #include <stdlib.h> | |
d9898ee8 | 7655 | |
8d138742 CE |
7656 | _ACEOF |
7657 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7658 | $EGREP "free" >/dev/null 2>&1; then : |
7659 | ||
8d138742 CE |
7660 | else |
7661 | ac_cv_header_stdc=no | |
7662 | fi | |
7663 | rm -f conftest* | |
d9898ee8 | 7664 | |
8d138742 | 7665 | fi |
d9898ee8 | 7666 | |
8d138742 CE |
7667 | if test $ac_cv_header_stdc = yes; then |
7668 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7669 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7670 | : |
7671 | else | |
b0322a85 | 7672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7673 | /* end confdefs.h. */ |
7674 | #include <ctype.h> | |
7675 | #include <stdlib.h> | |
7676 | #if ((' ' & 0x0FF) == 0x020) | |
7677 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7678 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7679 | #else | |
7680 | # define ISLOWER(c) \ | |
7681 | (('a' <= (c) && (c) <= 'i') \ | |
7682 | || ('j' <= (c) && (c) <= 'r') \ | |
7683 | || ('s' <= (c) && (c) <= 'z')) | |
7684 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7685 | #endif | |
d9898ee8 | 7686 | |
8d138742 CE |
7687 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7688 | int | |
7689 | main () | |
7690 | { | |
7691 | int i; | |
7692 | for (i = 0; i < 256; i++) | |
7693 | if (XOR (islower (i), ISLOWER (i)) | |
7694 | || toupper (i) != TOUPPER (i)) | |
7695 | return 2; | |
7696 | return 0; | |
7697 | } | |
7698 | _ACEOF | |
b0322a85 | 7699 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 7700 | |
b0322a85 CE |
7701 | else |
7702 | ac_cv_header_stdc=no | |
8d138742 | 7703 | fi |
b0322a85 CE |
7704 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7705 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 7706 | fi |
d9898ee8 | 7707 | |
8d138742 CE |
7708 | fi |
7709 | fi | |
b0322a85 | 7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7711 | $as_echo "$ac_cv_header_stdc" >&6; } |
7712 | if test $ac_cv_header_stdc = yes; then | |
7713 | ||
b0322a85 | 7714 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7715 | |
8d138742 | 7716 | fi |
d9898ee8 | 7717 | |
8d138742 | 7718 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7719 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7720 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7721 | do : |
7722 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7723 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7724 | " | |
7725 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7726 | cat >>confdefs.h <<_ACEOF |
7727 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7728 | _ACEOF | |
d9898ee8 | 7729 | |
8d138742 | 7730 | fi |
d9898ee8 | 7731 | |
8d138742 | 7732 | done |
d9898ee8 | 7733 | |
d9898ee8 | 7734 | |
8d138742 | 7735 | for ac_header in dlfcn.h |
b0322a85 CE |
7736 | do : |
7737 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7738 | " | |
7739 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7740 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7741 | #define HAVE_DLFCN_H 1 |
8d138742 | 7742 | _ACEOF |
d9898ee8 | 7743 | |
8d138742 | 7744 | fi |
d9898ee8 | 7745 | |
8d138742 | 7746 | done |
d9898ee8 | 7747 | |
d9898ee8 | 7748 | |
d9898ee8 | 7749 | |
b0322a85 CE |
7750 | |
7751 | ||
8d138742 | 7752 | # Set options |
d9898ee8 | 7753 | |
d9898ee8 | 7754 | |
d9898ee8 | 7755 | |
8d138742 | 7756 | enable_dlopen=no |
d9898ee8 | 7757 | |
d9898ee8 | 7758 | |
8d138742 | 7759 | enable_win32_dll=no |
d9898ee8 | 7760 | |
d9898ee8 | 7761 | |
8d138742 | 7762 | # Check whether --enable-shared was given. |
b0322a85 | 7763 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7764 | enableval=$enable_shared; p=${PACKAGE-default} |
7765 | case $enableval in | |
7766 | yes) enable_shared=yes ;; | |
7767 | no) enable_shared=no ;; | |
7768 | *) | |
7769 | enable_shared=no | |
7770 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7771 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7772 | for pkg in $enableval; do |
d50284c4 | 7773 | IFS=$lt_save_ifs |
8d138742 CE |
7774 | if test "X$pkg" = "X$p"; then |
7775 | enable_shared=yes | |
7776 | fi | |
7777 | done | |
d50284c4 | 7778 | IFS=$lt_save_ifs |
8d138742 CE |
7779 | ;; |
7780 | esac | |
7781 | else | |
7782 | enable_shared=yes | |
7783 | fi | |
d9898ee8 | 7784 | |
d9898ee8 | 7785 | |
d9898ee8 | 7786 | |
ac40fd9e | 7787 | |
d9898ee8 | 7788 | |
d9898ee8 | 7789 | |
d9898ee8 | 7790 | |
d9898ee8 | 7791 | |
8d138742 CE |
7792 | |
7793 | # Check whether --enable-static was given. | |
b0322a85 | 7794 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7795 | enableval=$enable_static; p=${PACKAGE-default} |
7796 | case $enableval in | |
7797 | yes) enable_static=yes ;; | |
7798 | no) enable_static=no ;; | |
7799 | *) | |
7800 | enable_static=no | |
7801 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7802 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7803 | for pkg in $enableval; do |
d50284c4 | 7804 | IFS=$lt_save_ifs |
8d138742 CE |
7805 | if test "X$pkg" = "X$p"; then |
7806 | enable_static=yes | |
7807 | fi | |
7808 | done | |
d50284c4 | 7809 | IFS=$lt_save_ifs |
8d138742 | 7810 | ;; |
d9898ee8 | 7811 | esac |
8d138742 CE |
7812 | else |
7813 | enable_static=yes | |
7814 | fi | |
d9898ee8 | 7815 | |
d9898ee8 | 7816 | |
d9898ee8 | 7817 | |
d9898ee8 | 7818 | |
d9898ee8 | 7819 | |
8d138742 CE |
7820 | |
7821 | ||
7822 | ||
7823 | ||
7824 | ||
7825 | # Check whether --with-pic was given. | |
b0322a85 CE |
7826 | if test "${with_pic+set}" = set; then : |
7827 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7828 | case $withval in | |
7829 | yes|no) pic_mode=$withval ;; | |
7830 | *) | |
7831 | pic_mode=default | |
7832 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7833 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 7834 | for lt_pkg in $withval; do |
d50284c4 | 7835 | IFS=$lt_save_ifs |
b0322a85 CE |
7836 | if test "X$lt_pkg" = "X$lt_p"; then |
7837 | pic_mode=yes | |
7838 | fi | |
7839 | done | |
d50284c4 | 7840 | IFS=$lt_save_ifs |
b0322a85 CE |
7841 | ;; |
7842 | esac | |
d9898ee8 | 7843 | else |
8d138742 | 7844 | pic_mode=default |
d9898ee8 | 7845 | fi |
d9898ee8 | 7846 | |
d9898ee8 | 7847 | |
8d138742 CE |
7848 | |
7849 | ||
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | # Check whether --enable-fast-install was given. | |
b0322a85 | 7855 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7856 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7857 | case $enableval in | |
7858 | yes) enable_fast_install=yes ;; | |
7859 | no) enable_fast_install=no ;; | |
d9898ee8 | 7860 | *) |
8d138742 CE |
7861 | enable_fast_install=no |
7862 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7863 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7864 | for pkg in $enableval; do |
d50284c4 | 7865 | IFS=$lt_save_ifs |
8d138742 CE |
7866 | if test "X$pkg" = "X$p"; then |
7867 | enable_fast_install=yes | |
7868 | fi | |
7869 | done | |
d50284c4 | 7870 | IFS=$lt_save_ifs |
d9898ee8 | 7871 | ;; |
7872 | esac | |
8d138742 CE |
7873 | else |
7874 | enable_fast_install=yes | |
7875 | fi | |
d9898ee8 | 7876 | |
d9898ee8 | 7877 | |
d9898ee8 | 7878 | |
d9898ee8 | 7879 | |
d9898ee8 | 7880 | |
d9898ee8 | 7881 | |
d9898ee8 | 7882 | |
d9898ee8 | 7883 | |
d50284c4 CE |
7884 | shared_archive_member_spec= |
7885 | case $host,$enable_shared in | |
7886 | power*-*-aix[5-9]*,yes) | |
7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7888 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7889 | ||
7890 | # Check whether --with-aix-soname was given. | |
7891 | if test "${with_aix_soname+set}" = set; then : | |
7892 | withval=$with_aix_soname; case $withval in | |
7893 | aix|svr4|both) | |
7894 | ;; | |
7895 | *) | |
7896 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7897 | ;; | |
7898 | esac | |
7899 | lt_cv_with_aix_soname=$with_aix_soname | |
7900 | else | |
7901 | if ${lt_cv_with_aix_soname+:} false; then : | |
7902 | $as_echo_n "(cached) " >&6 | |
7903 | else | |
7904 | lt_cv_with_aix_soname=aix | |
7905 | fi | |
7906 | ||
7907 | with_aix_soname=$lt_cv_with_aix_soname | |
7908 | fi | |
7909 | ||
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7911 | $as_echo "$with_aix_soname" >&6; } | |
7912 | if test aix != "$with_aix_soname"; then | |
7913 | # For the AIX way of multilib, we name the shared archive member | |
7914 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
7915 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
7916 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
7917 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
7918 | if test 64 = "${OBJECT_MODE-32}"; then | |
7919 | shared_archive_member_spec=shr_64 | |
7920 | else | |
7921 | shared_archive_member_spec=shr | |
7922 | fi | |
7923 | fi | |
7924 | ;; | |
7925 | *) | |
7926 | with_aix_soname=aix | |
7927 | ;; | |
7928 | esac | |
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7933 | ||
7934 | ||
7935 | ||
d9898ee8 | 7936 | |
d9898ee8 | 7937 | |
d9898ee8 | 7938 | |
8d138742 | 7939 | # This can be used to rebuild libtool when needed |
d50284c4 | 7940 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 7941 | |
8d138742 CE |
7942 | # Always use our own libtool. |
7943 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7944 | |
d9898ee8 | 7945 | |
d9898ee8 | 7946 | |
d9898ee8 | 7947 | |
d9898ee8 | 7948 | |
d9898ee8 | 7949 | |
d9898ee8 | 7950 | |
d9898ee8 | 7951 | |
d9898ee8 | 7952 | |
d9898ee8 | 7953 | |
d9898ee8 | 7954 | |
d9898ee8 | 7955 | |
d9898ee8 | 7956 | |
d9898ee8 | 7957 | |
d9898ee8 | 7958 | |
d9898ee8 | 7959 | |
d9898ee8 | 7960 | |
d9898ee8 | 7961 | |
d9898ee8 | 7962 | |
b0322a85 CE |
7963 | |
7964 | ||
7965 | ||
7966 | ||
7967 | ||
d9898ee8 | 7968 | |
d9898ee8 | 7969 | |
d9898ee8 | 7970 | |
d9898ee8 | 7971 | |
d9898ee8 | 7972 | |
d9898ee8 | 7973 | |
8d138742 | 7974 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7975 | |
d9898ee8 | 7976 | |
d9898ee8 | 7977 | |
d9898ee8 | 7978 | |
d9898ee8 | 7979 | |
d9898ee8 | 7980 | |
d9898ee8 | 7981 | |
d9898ee8 | 7982 | |
d9898ee8 | 7983 | |
d9898ee8 | 7984 | |
d9898ee8 | 7985 | |
d9898ee8 | 7986 | |
d9898ee8 | 7987 | |
d9898ee8 | 7988 | |
d50284c4 | 7989 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
7990 | setopt NO_GLOB_SUBST |
7991 | fi | |
d9898ee8 | 7992 | |
b0322a85 | 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7994 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7995 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
7996 | $as_echo_n "(cached) " >&6 |
7997 | else | |
7998 | rm -f .libs 2>/dev/null | |
7999 | mkdir .libs 2>/dev/null | |
8000 | if test -d .libs; then | |
8001 | lt_cv_objdir=.libs | |
8002 | else | |
8003 | # MS-DOS does not allow filenames that begin with a dot. | |
8004 | lt_cv_objdir=_libs | |
8005 | fi | |
8006 | rmdir .libs 2>/dev/null | |
8007 | fi | |
b0322a85 | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
8009 | $as_echo "$lt_cv_objdir" >&6; } |
8010 | objdir=$lt_cv_objdir | |
d9898ee8 | 8011 | |
d9898ee8 | 8012 | |
d9898ee8 | 8013 | |
d9898ee8 | 8014 | |
d9898ee8 | 8015 | |
8d138742 CE |
8016 | cat >>confdefs.h <<_ACEOF |
8017 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8018 | _ACEOF | |
d9898ee8 | 8019 | |
d9898ee8 | 8020 | |
d9898ee8 | 8021 | |
d9898ee8 | 8022 | |
8d138742 CE |
8023 | case $host_os in |
8024 | aix3*) | |
8025 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8026 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8027 | # vanish in a puff of smoke. | |
d50284c4 | 8028 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8029 | COLLECT_NAMES= |
8030 | export COLLECT_NAMES | |
8031 | fi | |
8032 | ;; | |
8033 | esac | |
d9898ee8 | 8034 | |
8d138742 CE |
8035 | # Global variables: |
8036 | ofile=libtool | |
8037 | can_build_shared=yes | |
d9898ee8 | 8038 | |
d50284c4 | 8039 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8040 | # which needs '.lib'). |
8041 | libext=a | |
d9898ee8 | 8042 | |
d50284c4 | 8043 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8044 | |
d50284c4 CE |
8045 | old_CC=$CC |
8046 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8047 | |
8d138742 CE |
8048 | # Set sane defaults for various variables |
8049 | test -z "$CC" && CC=cc | |
8050 | test -z "$LTCC" && LTCC=$CC | |
8051 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8052 | test -z "$LD" && LD=ld | |
8053 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8054 | |
d50284c4 CE |
8055 | func_cc_basename $compiler |
8056 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 8057 | |
d9898ee8 | 8058 | |
8d138742 CE |
8059 | # Only perform the check for file, if the check method requires it |
8060 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8061 | case $deplibs_check_method in | |
8062 | file_magic*) | |
8063 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8065 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8066 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8067 | $as_echo_n "(cached) " >&6 |
8068 | else | |
8069 | case $MAGIC_CMD in | |
8070 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8071 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8072 | ;; |
8073 | *) | |
d50284c4 CE |
8074 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8075 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8076 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8077 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8078 | IFS=$lt_save_ifs |
8d138742 | 8079 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8080 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8081 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8082 | if test -n "$file_magic_test_file"; then |
8083 | case $deplibs_check_method in | |
8084 | "file_magic "*) | |
8085 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8086 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8087 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8088 | $EGREP "$file_magic_regex" > /dev/null; then | |
8089 | : | |
8090 | else | |
8091 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8092 | |
8d138742 CE |
8093 | *** Warning: the command libtool uses to detect shared libraries, |
8094 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8095 | *** The result is that libtool may fail to recognize shared libraries | |
8096 | *** as such. This will affect the creation of libtool libraries that | |
8097 | *** depend on shared libraries, but programs linked with such libtool | |
8098 | *** libraries will work regardless of this problem. Nevertheless, you | |
8099 | *** may want to report the problem to your system manager and/or to | |
8100 | *** bug-libtool@gnu.org | |
d9898ee8 | 8101 | |
8d138742 CE |
8102 | _LT_EOF |
8103 | fi ;; | |
8104 | esac | |
8105 | fi | |
8106 | break | |
8107 | fi | |
8108 | done | |
d50284c4 CE |
8109 | IFS=$lt_save_ifs |
8110 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8111 | ;; |
8112 | esac | |
8113 | fi | |
d9898ee8 | 8114 | |
d50284c4 | 8115 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8116 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8118 | $as_echo "$MAGIC_CMD" >&6; } |
8119 | else | |
b0322a85 | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8121 | $as_echo "no" >&6; } |
8122 | fi | |
d9898ee8 | 8123 | |
d9898ee8 | 8124 | |
d9898ee8 | 8125 | |
d9898ee8 | 8126 | |
d9898ee8 | 8127 | |
8d138742 CE |
8128 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8129 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8131 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8132 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8133 | $as_echo_n "(cached) " >&6 |
8134 | else | |
8135 | case $MAGIC_CMD in | |
8136 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8137 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8138 | ;; |
8139 | *) | |
d50284c4 CE |
8140 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8141 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8142 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8143 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8144 | IFS=$lt_save_ifs |
8d138742 | 8145 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8146 | if test -f "$ac_dir/file"; then |
8147 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8148 | if test -n "$file_magic_test_file"; then |
8149 | case $deplibs_check_method in | |
8150 | "file_magic "*) | |
8151 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8152 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8153 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8154 | $EGREP "$file_magic_regex" > /dev/null; then | |
8155 | : | |
8156 | else | |
8157 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8158 | |
8d138742 CE |
8159 | *** Warning: the command libtool uses to detect shared libraries, |
8160 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8161 | *** The result is that libtool may fail to recognize shared libraries | |
8162 | *** as such. This will affect the creation of libtool libraries that | |
8163 | *** depend on shared libraries, but programs linked with such libtool | |
8164 | *** libraries will work regardless of this problem. Nevertheless, you | |
8165 | *** may want to report the problem to your system manager and/or to | |
8166 | *** bug-libtool@gnu.org | |
d9898ee8 | 8167 | |
8d138742 CE |
8168 | _LT_EOF |
8169 | fi ;; | |
8170 | esac | |
8171 | fi | |
8172 | break | |
8173 | fi | |
8174 | done | |
d50284c4 CE |
8175 | IFS=$lt_save_ifs |
8176 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8177 | ;; |
8178 | esac | |
8179 | fi | |
d9898ee8 | 8180 | |
d50284c4 | 8181 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8182 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8184 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8185 | else |
b0322a85 | 8186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8187 | $as_echo "no" >&6; } |
8188 | fi | |
8189 | ||
8190 | ||
8191 | else | |
8192 | MAGIC_CMD=: | |
d9898ee8 | 8193 | fi |
8194 | fi | |
8195 | ||
8d138742 CE |
8196 | fi |
8197 | ;; | |
8198 | esac | |
8199 | ||
8200 | # Use C for the default configuration in the libtool script | |
d9898ee8 | 8201 | |
d50284c4 | 8202 | lt_save_CC=$CC |
d9898ee8 | 8203 | ac_ext=c |
8204 | ac_cpp='$CPP $CPPFLAGS' | |
8205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8208 | ||
d9898ee8 | 8209 | |
8d138742 CE |
8210 | # Source file extension for C test sources. |
8211 | ac_ext=c | |
d9898ee8 | 8212 | |
8d138742 | 8213 | # Object file extension for compiled C test sources. |
d9898ee8 | 8214 | objext=o |
8d138742 | 8215 | objext=$objext |
d9898ee8 | 8216 | |
8217 | # Code to be used in simple compile tests | |
8d138742 | 8218 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 | 8219 | |
8220 | # Code to be used in simple link tests | |
8d138742 CE |
8221 | lt_simple_link_test_code='int main(){return(0);}' |
8222 | ||
8223 | ||
8224 | ||
8225 | ||
8226 | ||
d9898ee8 | 8227 | |
d9898ee8 | 8228 | |
8229 | # If no C compiler was specified, use CC. | |
8230 | LTCC=${LTCC-"$CC"} | |
8231 | ||
8232 | # If no C compiler flags were specified, use CFLAGS. | |
8233 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8234 | ||
8235 | # Allow CC to be a program name with arguments. | |
8236 | compiler=$CC | |
8237 | ||
8d138742 CE |
8238 | # Save the default compiler, since it gets overwritten when the other |
8239 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8240 | compiler_DEFAULT=$CC | |
d9898ee8 | 8241 | |
8242 | # save warnings/boilerplate of simple test code | |
8243 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 8244 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 | 8245 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8246 | _lt_compiler_boilerplate=`cat conftest.err` | |
8d138742 | 8247 | $RM conftest* |
d9898ee8 | 8248 | |
8249 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 8250 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8d138742 CE |
8251 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8252 | _lt_linker_boilerplate=`cat conftest.err` | |
8253 | $RM -r conftest* | |
d9898ee8 | 8254 | |
d9898ee8 | 8255 | |
8d138742 | 8256 | if test -n "$compiler"; then |
d9898ee8 | 8257 | |
8d138742 | 8258 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8259 | |
d50284c4 | 8260 | if test yes = "$GCC"; then |
b0322a85 CE |
8261 | case $cc_basename in |
8262 | nvcc*) | |
8263 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8264 | *) | |
8265 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8266 | esac | |
d9898ee8 | 8267 | |
b0322a85 | 8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8269 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8270 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 | 8271 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8272 | else |
8273 | lt_cv_prog_compiler_rtti_exceptions=no | |
8d138742 | 8274 | ac_outfile=conftest.$ac_objext |
ac40fd9e | 8275 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d50284c4 | 8276 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
d9898ee8 | 8277 | # Insert the option either (1) after the last *FLAGS variable, or |
8278 | # (2) before a word containing "conftest.", or (3) at the end. | |
8279 | # Note that $ac_compile itself does not contain backslashes and begins | |
8280 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8281 | # The option is referenced via a variable to avoid confusing sed. | |
8282 | lt_compile=`echo "$ac_compile" | $SED \ | |
8283 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8284 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8285 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8286 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d9898ee8 | 8287 | (eval "$lt_compile" 2>conftest.err) |
8288 | ac_status=$? | |
8289 | cat conftest.err >&5 | |
b0322a85 | 8290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 8291 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8292 | # The compiler can only warn and ignore the option if not recognized | |
8293 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8294 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d9898ee8 | 8295 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8296 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8297 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8298 | fi | |
8299 | fi | |
8d138742 | 8300 | $RM conftest* |
d9898ee8 | 8301 | |
8302 | fi | |
b0322a85 | 8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8304 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8305 | |
d50284c4 | 8306 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 | 8307 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
d9898ee8 | 8308 | else |
8309 | : | |
8310 | fi | |
8311 | ||
8312 | fi | |
8313 | ||
d9898ee8 | 8314 | |
8d138742 CE |
8315 | |
8316 | ||
8317 | ||
8318 | ||
8319 | lt_prog_compiler_wl= | |
8320 | lt_prog_compiler_pic= | |
8321 | lt_prog_compiler_static= | |
8322 | ||
d9898ee8 | 8323 | |
d50284c4 | 8324 | if test yes = "$GCC"; then |
8d138742 CE |
8325 | lt_prog_compiler_wl='-Wl,' |
8326 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8327 | |
8328 | case $host_os in | |
8329 | aix*) | |
8330 | # All AIX code is PIC. | |
d50284c4 | 8331 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 8332 | # AIX 5 now supports IA64 processor |
8d138742 | 8333 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 8334 | fi |
d50284c4 | 8335 | lt_prog_compiler_pic='-fPIC' |
d9898ee8 | 8336 | ;; |
8337 | ||
8338 | amigaos*) | |
8d138742 CE |
8339 | case $host_cpu in |
8340 | powerpc) | |
8341 | # see comment about AmigaOS4 .so support | |
8342 | lt_prog_compiler_pic='-fPIC' | |
8343 | ;; | |
8344 | m68k) | |
8345 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8346 | # adding the '-m68020' flag to GCC prevents building anything better, |
8347 | # like '-m68040'. | |
8d138742 CE |
8348 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8349 | ;; | |
8350 | esac | |
d9898ee8 | 8351 | ;; |
8352 | ||
ac40fd9e | 8353 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 | 8354 | # PIC is the default for these OSes. |
8355 | ;; | |
8356 | ||
8d138742 | 8357 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d9898ee8 | 8358 | # This hack is so that the source file can tell whether it is being |
8359 | # built for inclusion in a dll (and should export symbols for example). | |
ac40fd9e | 8360 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
8361 | # (--disable-auto-import) libraries | |
8d138742 | 8362 | lt_prog_compiler_pic='-DDLL_EXPORT' |
d50284c4 CE |
8363 | case $host_os in |
8364 | os2*) | |
8365 | lt_prog_compiler_static='$wl-static' | |
8366 | ;; | |
8367 | esac | |
d9898ee8 | 8368 | ;; |
8369 | ||
8370 | darwin* | rhapsody*) | |
8371 | # PIC is the default on this platform | |
8372 | # Common symbols not allowed in MH_DYLIB files | |
8d138742 CE |
8373 | lt_prog_compiler_pic='-fno-common' |
8374 | ;; | |
8375 | ||
b0322a85 CE |
8376 | haiku*) |
8377 | # PIC is the default for Haiku. | |
8378 | # The "-static" flag exists, but is broken. | |
8379 | lt_prog_compiler_static= | |
8380 | ;; | |
8381 | ||
8d138742 CE |
8382 | hpux*) |
8383 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8384 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8385 | # sets the default TLS model and affects inlining. | |
8386 | case $host_cpu in | |
8387 | hppa*64*) | |
8388 | # +Z the default | |
8389 | ;; | |
8390 | *) | |
8391 | lt_prog_compiler_pic='-fPIC' | |
8392 | ;; | |
8393 | esac | |
d9898ee8 | 8394 | ;; |
8395 | ||
ac40fd9e | 8396 | interix[3-9]*) |
d9898ee8 | 8397 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8398 | # Instead, we relocate shared libraries at runtime. | |
8399 | ;; | |
8400 | ||
8401 | msdosdjgpp*) | |
8402 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8403 | # on systems that don't support them. | |
8d138742 | 8404 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 8405 | enable_shared=no |
8406 | ;; | |
8407 | ||
8d138742 CE |
8408 | *nto* | *qnx*) |
8409 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8410 | # it will coredump. | |
8411 | lt_prog_compiler_pic='-fPIC -shared' | |
8412 | ;; | |
8413 | ||
d9898ee8 | 8414 | sysv4*MP*) |
8415 | if test -d /usr/nec; then | |
8d138742 | 8416 | lt_prog_compiler_pic=-Kconform_pic |
d9898ee8 | 8417 | fi |
8418 | ;; | |
8419 | ||
d9898ee8 | 8420 | *) |
8d138742 | 8421 | lt_prog_compiler_pic='-fPIC' |
d9898ee8 | 8422 | ;; |
8423 | esac | |
b0322a85 CE |
8424 | |
8425 | case $cc_basename in | |
8426 | nvcc*) # Cuda Compiler Driver 2.2 | |
8427 | lt_prog_compiler_wl='-Xlinker ' | |
8428 | if test -n "$lt_prog_compiler_pic"; then | |
8429 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8430 | fi | |
8431 | ;; | |
8432 | esac | |
d9898ee8 | 8433 | else |
8434 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8435 | case $host_os in | |
8436 | aix*) | |
8d138742 | 8437 | lt_prog_compiler_wl='-Wl,' |
d50284c4 | 8438 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 8439 | # AIX 5 now supports IA64 processor |
8d138742 | 8440 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 8441 | else |
8d138742 | 8442 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 8443 | fi |
8444 | ;; | |
d9898ee8 | 8445 | |
d50284c4 CE |
8446 | darwin* | rhapsody*) |
8447 | # PIC is the default on this platform | |
8448 | # Common symbols not allowed in MH_DYLIB files | |
8449 | lt_prog_compiler_pic='-fno-common' | |
8450 | case $cc_basename in | |
8451 | nagfor*) | |
8452 | # NAG Fortran compiler | |
8453 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8454 | lt_prog_compiler_pic='-PIC' | |
8455 | lt_prog_compiler_static='-Bstatic' | |
8456 | ;; | |
8457 | esac | |
8458 | ;; | |
8459 | ||
8d138742 | 8460 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d9898ee8 | 8461 | # This hack is so that the source file can tell whether it is being |
8462 | # built for inclusion in a dll (and should export symbols for example). | |
8d138742 | 8463 | lt_prog_compiler_pic='-DDLL_EXPORT' |
d50284c4 CE |
8464 | case $host_os in |
8465 | os2*) | |
8466 | lt_prog_compiler_static='$wl-static' | |
8467 | ;; | |
8468 | esac | |
d9898ee8 | 8469 | ;; |
8470 | ||
8471 | hpux9* | hpux10* | hpux11*) | |
8d138742 | 8472 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8473 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8474 | # not for PA HP-UX. | |
8475 | case $host_cpu in | |
8476 | hppa*64*|ia64*) | |
8477 | # +Z the default | |
8478 | ;; | |
8479 | *) | |
8d138742 | 8480 | lt_prog_compiler_pic='+Z' |
d9898ee8 | 8481 | ;; |
8482 | esac | |
8483 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8484 | lt_prog_compiler_static='$wl-a ${wl}archive' |
d9898ee8 | 8485 | ;; |
8486 | ||
8487 | irix5* | irix6* | nonstopux*) | |
8d138742 | 8488 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8489 | # PIC (with -KPIC) is the default. |
8d138742 | 8490 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 8491 | ;; |
8492 | ||
d50284c4 | 8493 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
d9898ee8 | 8494 | case $cc_basename in |
d50284c4 | 8495 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8496 | ecc*) |
8497 | lt_prog_compiler_wl='-Wl,' | |
8498 | lt_prog_compiler_pic='-KPIC' | |
8499 | lt_prog_compiler_static='-static' | |
8500 | ;; | |
8501 | # icc used to be incompatible with GCC. | |
8502 | # ICC 10 doesn't accept -KPIC any more. | |
8503 | icc* | ifort*) | |
8504 | lt_prog_compiler_wl='-Wl,' | |
8505 | lt_prog_compiler_pic='-fPIC' | |
8506 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8507 | ;; |
8d138742 CE |
8508 | # Lahey Fortran 8.1. |
8509 | lf95*) | |
8510 | lt_prog_compiler_wl='-Wl,' | |
8511 | lt_prog_compiler_pic='--shared' | |
8512 | lt_prog_compiler_static='--static' | |
8513 | ;; | |
b0322a85 CE |
8514 | nagfor*) |
8515 | # NAG Fortran compiler | |
8516 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8517 | lt_prog_compiler_pic='-PIC' | |
8518 | lt_prog_compiler_static='-Bstatic' | |
8519 | ;; | |
d50284c4 CE |
8520 | tcc*) |
8521 | # Fabrice Bellard et al's Tiny C Compiler | |
8522 | lt_prog_compiler_wl='-Wl,' | |
8523 | lt_prog_compiler_pic='-fPIC' | |
8524 | lt_prog_compiler_static='-static' | |
8525 | ;; | |
b0322a85 | 8526 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
d9898ee8 | 8527 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8528 | # which looks to be a dead project) | |
8d138742 CE |
8529 | lt_prog_compiler_wl='-Wl,' |
8530 | lt_prog_compiler_pic='-fpic' | |
8531 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8532 | ;; |
8533 | ccc*) | |
8d138742 | 8534 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8535 | # All Alpha code is PIC. |
8d138742 | 8536 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 8537 | ;; |
b0322a85 CE |
8538 | xl* | bgxl* | bgf* | mpixl*) |
8539 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8540 | lt_prog_compiler_wl='-Wl,' |
8541 | lt_prog_compiler_pic='-qpic' | |
8542 | lt_prog_compiler_static='-qstaticlink' | |
8543 | ;; | |
ac40fd9e | 8544 | *) |
8d138742 | 8545 | case `$CC -V 2>&1 | sed 5q` in |
b0322a85 CE |
8546 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8547 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8548 | lt_prog_compiler_pic='-KPIC' | |
8549 | lt_prog_compiler_static='-Bstatic' | |
8550 | lt_prog_compiler_wl='' | |
8551 | ;; | |
8552 | *Sun\ F* | *Sun*Fortran*) | |
8553 | lt_prog_compiler_pic='-KPIC' | |
8554 | lt_prog_compiler_static='-Bstatic' | |
8555 | lt_prog_compiler_wl='-Qoption ld ' | |
8556 | ;; | |
ac40fd9e | 8557 | *Sun\ C*) |
8558 | # Sun C 5.9 | |
8d138742 CE |
8559 | lt_prog_compiler_pic='-KPIC' |
8560 | lt_prog_compiler_static='-Bstatic' | |
8561 | lt_prog_compiler_wl='-Wl,' | |
ac40fd9e | 8562 | ;; |
b0322a85 CE |
8563 | *Intel*\ [CF]*Compiler*) |
8564 | lt_prog_compiler_wl='-Wl,' | |
8565 | lt_prog_compiler_pic='-fPIC' | |
8566 | lt_prog_compiler_static='-static' | |
8567 | ;; | |
8568 | *Portland\ Group*) | |
8569 | lt_prog_compiler_wl='-Wl,' | |
8570 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8571 | lt_prog_compiler_static='-Bstatic' |
ac40fd9e | 8572 | ;; |
8573 | esac | |
8574 | ;; | |
d9898ee8 | 8575 | esac |
8576 | ;; | |
8577 | ||
8d138742 CE |
8578 | newsos6) |
8579 | lt_prog_compiler_pic='-KPIC' | |
8580 | lt_prog_compiler_static='-Bstatic' | |
8581 | ;; | |
8582 | ||
8583 | *nto* | *qnx*) | |
8584 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8585 | # it will coredump. | |
8586 | lt_prog_compiler_pic='-fPIC -shared' | |
8587 | ;; | |
8588 | ||
d9898ee8 | 8589 | osf3* | osf4* | osf5*) |
8d138742 | 8590 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 8591 | # All OSF/1 code is PIC. |
8d138742 | 8592 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 8593 | ;; |
8594 | ||
ac40fd9e | 8595 | rdos*) |
8d138742 | 8596 | lt_prog_compiler_static='-non_shared' |
ac40fd9e | 8597 | ;; |
8598 | ||
d9898ee8 | 8599 | solaris*) |
8d138742 CE |
8600 | lt_prog_compiler_pic='-KPIC' |
8601 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8602 | case $cc_basename in |
b0322a85 | 8603 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 | 8604 | lt_prog_compiler_wl='-Qoption ld ';; |
d9898ee8 | 8605 | *) |
8d138742 | 8606 | lt_prog_compiler_wl='-Wl,';; |
d9898ee8 | 8607 | esac |
8608 | ;; | |
8609 | ||
8610 | sunos4*) | |
8d138742 CE |
8611 | lt_prog_compiler_wl='-Qoption ld ' |
8612 | lt_prog_compiler_pic='-PIC' | |
8613 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8614 | ;; |
8615 | ||
8616 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8d138742 CE |
8617 | lt_prog_compiler_wl='-Wl,' |
8618 | lt_prog_compiler_pic='-KPIC' | |
8619 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8620 | ;; |
8621 | ||
8622 | sysv4*MP*) | |
d50284c4 | 8623 | if test -d /usr/nec; then |
8d138742 CE |
8624 | lt_prog_compiler_pic='-Kconform_pic' |
8625 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8626 | fi |
8627 | ;; | |
8628 | ||
8629 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8d138742 CE |
8630 | lt_prog_compiler_wl='-Wl,' |
8631 | lt_prog_compiler_pic='-KPIC' | |
8632 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8633 | ;; |
8634 | ||
8635 | unicos*) | |
8d138742 CE |
8636 | lt_prog_compiler_wl='-Wl,' |
8637 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8638 | ;; |
8639 | ||
8640 | uts4*) | |
8d138742 CE |
8641 | lt_prog_compiler_pic='-pic' |
8642 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8643 | ;; |
8644 | ||
8645 | *) | |
8d138742 | 8646 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 8647 | ;; |
8648 | esac | |
8649 | fi | |
8650 | ||
8d138742 | 8651 | case $host_os in |
d50284c4 | 8652 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8653 | *djgpp*) |
8654 | lt_prog_compiler_pic= | |
8655 | ;; | |
8656 | *) | |
8657 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8658 | ;; | |
8659 | esac | |
8d138742 | 8660 | |
b0322a85 CE |
8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8662 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8663 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8664 | $as_echo_n "(cached) " >&6 | |
8665 | else | |
8666 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8667 | fi | |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8669 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8670 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8671 | |
8672 | # | |
8673 | # Check to make sure the PIC flag actually works. | |
8674 | # | |
8d138742 | 8675 | if test -n "$lt_prog_compiler_pic"; then |
b0322a85 | 8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8677 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8678 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 | 8679 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8680 | else |
8d138742 CE |
8681 | lt_cv_prog_compiler_pic_works=no |
8682 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 8683 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d50284c4 | 8684 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
d9898ee8 | 8685 | # Insert the option either (1) after the last *FLAGS variable, or |
8686 | # (2) before a word containing "conftest.", or (3) at the end. | |
8687 | # Note that $ac_compile itself does not contain backslashes and begins | |
8688 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8689 | # The option is referenced via a variable to avoid confusing sed. | |
8690 | lt_compile=`echo "$ac_compile" | $SED \ | |
8691 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8692 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8693 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8694 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d9898ee8 | 8695 | (eval "$lt_compile" 2>conftest.err) |
8696 | ac_status=$? | |
8697 | cat conftest.err >&5 | |
b0322a85 | 8698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 8699 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8700 | # The compiler can only warn and ignore the option if not recognized | |
8701 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8702 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d9898ee8 | 8703 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8704 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 8705 | lt_cv_prog_compiler_pic_works=yes |
d9898ee8 | 8706 | fi |
8707 | fi | |
8d138742 | 8708 | $RM conftest* |
d9898ee8 | 8709 | |
8710 | fi | |
b0322a85 | 8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8712 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8713 | |
d50284c4 | 8714 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 | 8715 | case $lt_prog_compiler_pic in |
d9898ee8 | 8716 | "" | " "*) ;; |
8d138742 | 8717 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
d9898ee8 | 8718 | esac |
8719 | else | |
8d138742 CE |
8720 | lt_prog_compiler_pic= |
8721 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8722 | fi |
8723 | ||
8724 | fi | |
8d138742 CE |
8725 | |
8726 | ||
8727 | ||
8728 | ||
8729 | ||
d9898ee8 | 8730 | |
b0322a85 CE |
8731 | |
8732 | ||
8733 | ||
8734 | ||
8735 | ||
d9898ee8 | 8736 | # |
8737 | # Check to make sure the static flag actually works. | |
8738 | # | |
8d138742 | 8739 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
b0322a85 | 8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8741 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8742 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 | 8743 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8744 | else |
8d138742 | 8745 | lt_cv_prog_compiler_static_works=no |
d50284c4 | 8746 | save_LDFLAGS=$LDFLAGS |
d9898ee8 | 8747 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e | 8748 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 | 8749 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8750 | # The linker can only warn and ignore the option if not recognized | |
8751 | # So say no if there are warnings | |
8752 | if test -s conftest.err; then | |
8753 | # Append any errors to the config.log. | |
8754 | cat conftest.err 1>&5 | |
b0322a85 | 8755 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
d9898ee8 | 8756 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8757 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 8758 | lt_cv_prog_compiler_static_works=yes |
d9898ee8 | 8759 | fi |
8760 | else | |
8d138742 | 8761 | lt_cv_prog_compiler_static_works=yes |
d9898ee8 | 8762 | fi |
8763 | fi | |
8d138742 | 8764 | $RM -r conftest* |
d50284c4 | 8765 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 8766 | |
8767 | fi | |
b0322a85 | 8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8769 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8770 | |
d50284c4 | 8771 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
d9898ee8 | 8772 | : |
8773 | else | |
8d138742 CE |
8774 | lt_prog_compiler_static= |
8775 | fi | |
8776 | ||
8777 | ||
8778 | ||
8779 | ||
8780 | ||
8781 | ||
8782 | ||
b0322a85 | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8784 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8785 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8786 | $as_echo_n "(cached) " >&6 |
8787 | else | |
8788 | lt_cv_prog_compiler_c_o=no | |
8789 | $RM -r conftest 2>/dev/null | |
8790 | mkdir conftest | |
8791 | cd conftest | |
8792 | mkdir out | |
8793 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8794 | ||
8795 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8796 | # Insert the option either (1) after the last *FLAGS variable, or | |
8797 | # (2) before a word containing "conftest.", or (3) at the end. | |
8798 | # Note that $ac_compile itself does not contain backslashes and begins | |
8799 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8800 | lt_compile=`echo "$ac_compile" | $SED \ | |
8801 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8802 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8803 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8804 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8805 | (eval "$lt_compile" 2>out/conftest.err) |
8806 | ac_status=$? | |
8807 | cat out/conftest.err >&5 | |
b0322a85 | 8808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8809 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8810 | then | |
8811 | # The compiler can only warn and ignore the option if not recognized | |
8812 | # So say no if there are warnings | |
b0322a85 | 8813 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8814 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8815 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8816 | lt_cv_prog_compiler_c_o=yes | |
8817 | fi | |
8818 | fi | |
8819 | chmod u+w . 2>&5 | |
8820 | $RM conftest* | |
8821 | # SGI C++ compiler will create directory out/ii_files/ for | |
8822 | # template instantiation | |
8823 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8824 | $RM out/* && rmdir out | |
8825 | cd .. | |
8826 | $RM -r conftest | |
8827 | $RM conftest* | |
8828 | ||
d9898ee8 | 8829 | fi |
b0322a85 | 8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8831 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8832 | |
8833 | ||
8d138742 CE |
8834 | |
8835 | ||
8836 | ||
8837 | ||
b0322a85 | 8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8839 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8840 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 8841 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8842 | else |
8d138742 CE |
8843 | lt_cv_prog_compiler_c_o=no |
8844 | $RM -r conftest 2>/dev/null | |
d9898ee8 | 8845 | mkdir conftest |
8846 | cd conftest | |
8847 | mkdir out | |
ac40fd9e | 8848 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 8849 | |
8850 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8851 | # Insert the option either (1) after the last *FLAGS variable, or | |
8852 | # (2) before a word containing "conftest.", or (3) at the end. | |
8853 | # Note that $ac_compile itself does not contain backslashes and begins | |
8854 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8855 | lt_compile=`echo "$ac_compile" | $SED \ | |
8856 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8857 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8858 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8859 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d9898ee8 | 8860 | (eval "$lt_compile" 2>out/conftest.err) |
8861 | ac_status=$? | |
8862 | cat out/conftest.err >&5 | |
b0322a85 | 8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 8864 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8865 | then | |
8866 | # The compiler can only warn and ignore the option if not recognized | |
8867 | # So say no if there are warnings | |
b0322a85 | 8868 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
d9898ee8 | 8869 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8870 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8d138742 | 8871 | lt_cv_prog_compiler_c_o=yes |
d9898ee8 | 8872 | fi |
8873 | fi | |
8874 | chmod u+w . 2>&5 | |
8d138742 | 8875 | $RM conftest* |
d9898ee8 | 8876 | # SGI C++ compiler will create directory out/ii_files/ for |
8877 | # template instantiation | |
8d138742 CE |
8878 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8879 | $RM out/* && rmdir out | |
d9898ee8 | 8880 | cd .. |
8d138742 CE |
8881 | $RM -r conftest |
8882 | $RM conftest* | |
d9898ee8 | 8883 | |
8884 | fi | |
b0322a85 | 8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 CE |
8886 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8887 | ||
8888 | ||
d9898ee8 | 8889 | |
8890 | ||
d50284c4 CE |
8891 | hard_links=nottested |
8892 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
d9898ee8 | 8893 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 | 8895 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
d9898ee8 | 8896 | hard_links=yes |
8d138742 | 8897 | $RM conftest* |
d9898ee8 | 8898 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8899 | touch conftest.a | |
8900 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8901 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 8903 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
8904 | if test no = "$hard_links"; then |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8906 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
d9898ee8 | 8907 | need_locks=warn |
8908 | fi | |
8909 | else | |
8910 | need_locks=no | |
8911 | fi | |
8912 | ||
8d138742 CE |
8913 | |
8914 | ||
8915 | ||
8916 | ||
8917 | ||
b0322a85 | 8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8919 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8920 | |
8921 | runpath_var= | |
8d138742 CE |
8922 | allow_undefined_flag= |
8923 | always_export_symbols=no | |
8924 | archive_cmds= | |
8925 | archive_expsym_cmds= | |
8926 | compiler_needs_object=no | |
8927 | enable_shared_with_static_runtimes=no | |
8928 | export_dynamic_flag_spec= | |
8929 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8930 | hardcode_automatic=no | |
8931 | hardcode_direct=no | |
8932 | hardcode_direct_absolute=no | |
8933 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8934 | hardcode_libdir_separator= |
8935 | hardcode_minus_L=no | |
8936 | hardcode_shlibpath_var=unsupported | |
8937 | inherit_rpath=no | |
8938 | link_all_deplibs=unknown | |
8939 | module_cmds= | |
8940 | module_expsym_cmds= | |
8941 | old_archive_from_new_cmds= | |
8942 | old_archive_from_expsyms_cmds= | |
8943 | thread_safe_flag_spec= | |
8944 | whole_archive_flag_spec= | |
d9898ee8 | 8945 | # include_expsyms should be a list of space-separated symbols to be *always* |
8946 | # included in the symbol list | |
8d138742 | 8947 | include_expsyms= |
d9898ee8 | 8948 | # exclude_expsyms can be an extended regexp of symbols to exclude |
d50284c4 CE |
8949 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
8950 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
8951 | # as well as any symbol that contains 'd'. | |
8d138742 | 8952 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d9898ee8 | 8953 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8954 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8955 | # the symbol is explicitly referenced. Since portable code cannot | |
8956 | # rely on this symbol name, it's probably fine to never include it in | |
8957 | # preloaded symbol tables. | |
8d138742 | 8958 | # Exclude shared library initialization/finalization symbols. |
d9898ee8 | 8959 | extract_expsyms_cmds= |
d9898ee8 | 8960 | |
8961 | case $host_os in | |
8d138742 | 8962 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 8963 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8964 | # When not using gcc, we currently assume that we are using | |
8965 | # Microsoft Visual C++. | |
d50284c4 | 8966 | if test yes != "$GCC"; then |
d9898ee8 | 8967 | with_gnu_ld=no |
8968 | fi | |
8969 | ;; | |
8970 | interix*) | |
8971 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8972 | with_gnu_ld=yes | |
8973 | ;; | |
d50284c4 | 8974 | openbsd* | bitrig*) |
d9898ee8 | 8975 | with_gnu_ld=no |
8976 | ;; | |
8977 | esac | |
8978 | ||
8d138742 | 8979 | ld_shlibs=yes |
b0322a85 CE |
8980 | |
8981 | # On some targets, GNU ld is compatible enough with the native linker | |
8982 | # that we're better off using the native interface for both. | |
8983 | lt_use_gnu_ld_interface=no | |
d50284c4 | 8984 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
8985 | case $host_os in |
8986 | aix*) | |
8987 | # The AIX port of GNU ld has always aspired to compatibility | |
8988 | # with the native linker. However, as the warning in the GNU ld | |
8989 | # block says, versions before 2.19.5* couldn't really create working | |
8990 | # shared libraries, regardless of the interface used. | |
8991 | case `$LD -v 2>&1` in | |
8992 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8993 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8994 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8995 | *) | |
8996 | lt_use_gnu_ld_interface=yes | |
8997 | ;; | |
8998 | esac | |
8999 | ;; | |
9000 | *) | |
9001 | lt_use_gnu_ld_interface=yes | |
9002 | ;; | |
9003 | esac | |
9004 | fi | |
9005 | ||
d50284c4 | 9006 | if test yes = "$lt_use_gnu_ld_interface"; then |
d9898ee8 | 9007 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 9008 | wlarc='$wl' |
d9898ee8 | 9009 | |
9010 | # Set some defaults for GNU ld with shared library support. These | |
9011 | # are reset later if shared libraries are not supported. Putting them | |
9012 | # here allows them to be overridden if necessary. | |
9013 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
9014 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9015 | export_dynamic_flag_spec='$wl--export-dynamic' | |
d9898ee8 | 9016 | # ancient GNU ld didn't support --whole-archive et. al. |
8d138742 | 9017 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
d50284c4 | 9018 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
9019 | else |
9020 | whole_archive_flag_spec= | |
d9898ee8 | 9021 | fi |
9022 | supports_anon_versioning=no | |
d50284c4 | 9023 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9024 | *GNU\ gold*) supports_anon_versioning=yes ;; |
d9898ee8 | 9025 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9026 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9027 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9028 | *\ 2.11.*) ;; # other 2.11 versions | |
9029 | *) supports_anon_versioning=yes ;; | |
9030 | esac | |
9031 | ||
9032 | # See if GNU ld supports shared libraries. | |
9033 | case $host_os in | |
8d138742 | 9034 | aix[3-9]*) |
d9898ee8 | 9035 | # On AIX/PPC, the GNU linker is very broken |
d50284c4 | 9036 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9037 | ld_shlibs=no |
9038 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9039 | |
b0322a85 | 9040 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
d9898ee8 | 9041 | *** to be unable to reliably create shared libraries on AIX. |
9042 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9043 | *** really care for shared libraries, you may want to install binutils |
9044 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9045 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9046 | |
8d138742 | 9047 | _LT_EOF |
d9898ee8 | 9048 | fi |
9049 | ;; | |
9050 | ||
9051 | amigaos*) | |
8d138742 CE |
9052 | case $host_cpu in |
9053 | powerpc) | |
9054 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9055 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9056 | archive_expsym_cmds='' |
9057 | ;; | |
9058 | m68k) | |
9059 | 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)' | |
9060 | hardcode_libdir_flag_spec='-L$libdir' | |
9061 | hardcode_minus_L=yes | |
9062 | ;; | |
9063 | esac | |
d9898ee8 | 9064 | ;; |
9065 | ||
9066 | beos*) | |
8d138742 CE |
9067 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9068 | allow_undefined_flag=unsupported | |
d9898ee8 | 9069 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9070 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9071 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9072 | else |
8d138742 | 9073 | ld_shlibs=no |
d9898ee8 | 9074 | fi |
9075 | ;; | |
9076 | ||
8d138742 CE |
9077 | cygwin* | mingw* | pw32* | cegcc*) |
9078 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9079 | # as there is no search path for DLLs. | |
9080 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9081 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9082 | allow_undefined_flag=unsupported |
9083 | always_export_symbols=no | |
9084 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9085 | 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' |
9086 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8d138742 CE |
9087 | |
9088 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
d50284c4 CE |
9089 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9090 | # If the export-symbols file already is a .def file, use it as | |
9091 | # is; otherwise, prepend EXPORTS... | |
9092 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9093 | cp $export_symbols $output_objdir/$soname.def; | |
9094 | else | |
9095 | echo EXPORTS > $output_objdir/$soname.def; | |
9096 | cat $export_symbols >> $output_objdir/$soname.def; | |
9097 | fi~ | |
9098 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
d9898ee8 | 9099 | else |
8d138742 | 9100 | ld_shlibs=no |
d9898ee8 | 9101 | fi |
9102 | ;; | |
9103 | ||
b0322a85 | 9104 | haiku*) |
d50284c4 | 9105 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9106 | link_all_deplibs=yes |
9107 | ;; | |
9108 | ||
d50284c4 CE |
9109 | os2*) |
9110 | hardcode_libdir_flag_spec='-L$libdir' | |
9111 | hardcode_minus_L=yes | |
9112 | allow_undefined_flag=unsupported | |
9113 | shrext_cmds=.dll | |
9114 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9115 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9116 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9117 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9118 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9119 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9120 | emximp -o $lib $output_objdir/$libname.def' | |
9121 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9122 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9123 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9124 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9125 | prefix_cmds="$SED"~ | |
9126 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9127 | prefix_cmds="$prefix_cmds -e 1d"; | |
9128 | fi~ | |
9129 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9130 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9131 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9132 | emximp -o $lib $output_objdir/$libname.def' | |
9133 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9134 | enable_shared_with_static_runtimes=yes | |
9135 | ;; | |
9136 | ||
ac40fd9e | 9137 | interix[3-9]*) |
8d138742 CE |
9138 | hardcode_direct=no |
9139 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9140 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9141 | export_dynamic_flag_spec='$wl-E' | |
d9898ee8 | 9142 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9143 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9144 | # default) and relocated if they conflict, which is a slow very memory | |
9145 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9146 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9147 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9148 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9149 | 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 | 9150 | ;; |
9151 | ||
b0322a85 | 9152 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9153 | tmp_diet=no |
d50284c4 | 9154 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9155 | case $cc_basename in |
9156 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9157 | esac | |
9158 | fi | |
9159 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9160 | && test no = "$tmp_diet" |
8d138742 | 9161 | then |
b0322a85 | 9162 | tmp_addflag=' $pic_flag' |
8d138742 | 9163 | tmp_sharedflag='-shared' |
d9898ee8 | 9164 | case $cc_basename,$host_cpu in |
8d138742 | 9165 | pgcc*) # Portland Group C compiler |
d50284c4 | 9166 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
d9898ee8 | 9167 | tmp_addflag=' $pic_flag' |
9168 | ;; | |
b0322a85 CE |
9169 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9170 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9171 | 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 | 9172 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8d138742 | 9173 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
d9898ee8 | 9174 | tmp_addflag=' -i_dynamic' ;; |
9175 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9176 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9177 | ifc* | ifort*) # Intel Fortran compiler | |
9178 | tmp_addflag=' -nofor_main' ;; | |
8d138742 CE |
9179 | lf95*) # Lahey Fortran 8.1 |
9180 | whole_archive_flag_spec= | |
9181 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9182 | nagfor*) # NAGFOR 5.3 |
9183 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9184 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9185 | tmp_sharedflag='-qmkshrobj' |
9186 | tmp_addflag= ;; | |
b0322a85 | 9187 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9188 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
b0322a85 CE |
9189 | compiler_needs_object=yes |
9190 | ;; | |
d9898ee8 | 9191 | esac |
ac40fd9e | 9192 | case `$CC -V 2>&1 | sed 5q` in |
9193 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9194 | 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 | 9195 | compiler_needs_object=yes |
ac40fd9e | 9196 | tmp_sharedflag='-G' ;; |
9197 | *Sun\ F*) # Sun Fortran 8.3 | |
9198 | tmp_sharedflag='-G' ;; | |
ac40fd9e | 9199 | esac |
d50284c4 | 9200 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9201 | |
d50284c4 | 9202 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9203 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9204 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9205 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9206 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9207 | fi |
9208 | ||
9209 | case $cc_basename in | |
d50284c4 CE |
9210 | tcc*) |
9211 | export_dynamic_flag_spec='-rdynamic' | |
9212 | ;; | |
b0322a85 | 9213 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9214 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9215 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9216 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9217 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9218 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9219 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9220 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9221 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9222 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9223 | fi |
9224 | ;; | |
9225 | esac | |
d9898ee8 | 9226 | else |
8d138742 | 9227 | ld_shlibs=no |
d9898ee8 | 9228 | fi |
9229 | ;; | |
9230 | ||
9231 | netbsd*) | |
8d138742 CE |
9232 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9233 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
d9898ee8 | 9234 | wlarc= |
9235 | else | |
d50284c4 CE |
9236 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9237 | 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 | 9238 | fi |
9239 | ;; | |
9240 | ||
9241 | solaris*) | |
8d138742 CE |
9242 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9243 | ld_shlibs=no | |
9244 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9245 | |
9246 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9247 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9248 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9249 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9250 | *** your PATH or compiler configuration so that the native linker is | |
9251 | *** used, and then restart. | |
9252 | ||
8d138742 CE |
9253 | _LT_EOF |
9254 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9255 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9256 | 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 | 9257 | else |
8d138742 | 9258 | ld_shlibs=no |
d9898ee8 | 9259 | fi |
9260 | ;; | |
9261 | ||
9262 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9263 | case `$LD -v 2>&1` in | |
9264 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8d138742 | 9265 | ld_shlibs=no |
d9898ee8 | 9266 | cat <<_LT_EOF 1>&2 |
9267 | ||
d50284c4 | 9268 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
d9898ee8 | 9269 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9270 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9271 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9272 | *** your PATH or compiler configuration so that the native linker is | |
9273 | *** used, and then restart. | |
9274 | ||
9275 | _LT_EOF | |
9276 | ;; | |
9277 | *) | |
8d138742 CE |
9278 | # For security reasons, it is highly recommended that you always |
9279 | # use absolute paths for naming shared libraries, and exclude the | |
9280 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9281 | # requires that you compile everything twice, which is a pain. | |
9282 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9283 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9284 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9285 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 9286 | else |
8d138742 | 9287 | ld_shlibs=no |
d9898ee8 | 9288 | fi |
9289 | ;; | |
9290 | esac | |
9291 | ;; | |
9292 | ||
9293 | sunos4*) | |
8d138742 | 9294 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 9295 | wlarc= |
8d138742 CE |
9296 | hardcode_direct=yes |
9297 | hardcode_shlibpath_var=no | |
d9898ee8 | 9298 | ;; |
9299 | ||
9300 | *) | |
8d138742 | 9301 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
d50284c4 CE |
9302 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9303 | 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 | 9304 | else |
8d138742 | 9305 | ld_shlibs=no |
d9898ee8 | 9306 | fi |
9307 | ;; | |
9308 | esac | |
9309 | ||
d50284c4 | 9310 | if test no = "$ld_shlibs"; then |
d9898ee8 | 9311 | runpath_var= |
8d138742 CE |
9312 | hardcode_libdir_flag_spec= |
9313 | export_dynamic_flag_spec= | |
9314 | whole_archive_flag_spec= | |
d9898ee8 | 9315 | fi |
9316 | else | |
9317 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9318 | case $host_os in | |
9319 | aix3*) | |
8d138742 CE |
9320 | allow_undefined_flag=unsupported |
9321 | always_export_symbols=yes | |
9322 | 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 | 9323 | # Note: this linker hardcodes the directories in LIBPATH if there |
9324 | # are no directories specified by -L. | |
8d138742 | 9325 | hardcode_minus_L=yes |
d50284c4 | 9326 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
d9898ee8 | 9327 | # Neither direct hardcoding nor static linking is supported with a |
9328 | # broken collect2. | |
8d138742 | 9329 | hardcode_direct=unsupported |
d9898ee8 | 9330 | fi |
9331 | ;; | |
9332 | ||
8d138742 | 9333 | aix[4-9]*) |
d50284c4 | 9334 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 9335 | # On IA64, the linker does run time linking by default, so we don't |
9336 | # have to do anything special. | |
9337 | aix_use_runtimelinking=no | |
9338 | exp_sym_flag='-Bexport' | |
d50284c4 | 9339 | no_entry_flag= |
d9898ee8 | 9340 | else |
9341 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9342 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9343 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9344 | # weak defined symbols like other global defined symbols, whereas | |
9345 | # GNU nm marks them as "W". | |
9346 | # While the 'weak' keyword is ignored in the Export File, we need | |
9347 | # it in the Import File for the 'aix-soname' feature, so we have | |
9348 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9349 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9350 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
d9898ee8 | 9351 | else |
d50284c4 | 9352 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
d9898ee8 | 9353 | fi |
9354 | aix_use_runtimelinking=no | |
9355 | ||
9356 | # Test if we are trying to use run time linking or normal | |
9357 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9358 | # have runtime linking enabled, and use it for executables. |
9359 | # For shared libraries, we enable/disable runtime linking | |
9360 | # depending on the kind of the shared library created - | |
9361 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9362 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9363 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9364 | # lib.a static archive | |
9365 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9366 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9367 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9368 | # lib.a(lib.so.V) shared, rtl:no | |
9369 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9370 | # lib.a static archive | |
8d138742 | 9371 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d9898ee8 | 9372 | for ld_flag in $LDFLAGS; do |
d50284c4 | 9373 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9374 | aix_use_runtimelinking=yes |
9375 | break | |
9376 | fi | |
d9898ee8 | 9377 | done |
d50284c4 CE |
9378 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9379 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9380 | # so we don't have lib.a shared libs to link our executables. | |
9381 | # We have to force runtime linking in this case. | |
9382 | aix_use_runtimelinking=yes | |
9383 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9384 | fi | |
d9898ee8 | 9385 | ;; |
9386 | esac | |
9387 | ||
9388 | exp_sym_flag='-bexport' | |
9389 | no_entry_flag='-bnoentry' | |
9390 | fi | |
9391 | ||
9392 | # When large executables or shared objects are built, AIX ld can | |
9393 | # have problems creating the table of contents. If linking a library | |
9394 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9395 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9396 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9397 | ||
8d138742 CE |
9398 | archive_cmds='' |
9399 | hardcode_direct=yes | |
9400 | hardcode_direct_absolute=yes | |
9401 | hardcode_libdir_separator=':' | |
9402 | link_all_deplibs=yes | |
d50284c4 CE |
9403 | file_list_spec='$wl-f,' |
9404 | case $with_aix_soname,$aix_use_runtimelinking in | |
9405 | aix,*) ;; # traditional, no import file | |
9406 | svr4,* | *,yes) # use import file | |
9407 | # The Import File defines what to hardcode. | |
9408 | hardcode_direct=no | |
9409 | hardcode_direct_absolute=no | |
9410 | ;; | |
9411 | esac | |
d9898ee8 | 9412 | |
d50284c4 | 9413 | if test yes = "$GCC"; then |
d9898ee8 | 9414 | case $host_os in aix4.[012]|aix4.[012].*) |
9415 | # We only want to do this on AIX 4.2 and lower, the check | |
9416 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9417 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9418 | if test -f "$collect2name" && |
9419 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
d9898ee8 | 9420 | then |
8d138742 CE |
9421 | # We have reworked collect2 |
9422 | : | |
d9898ee8 | 9423 | else |
8d138742 CE |
9424 | # We have old collect2 |
9425 | hardcode_direct=unsupported | |
9426 | # It fails to find uninstalled libraries when the uninstalled | |
9427 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9428 | # to unsupported forces relinking | |
9429 | hardcode_minus_L=yes | |
9430 | hardcode_libdir_flag_spec='-L$libdir' | |
9431 | hardcode_libdir_separator= | |
d9898ee8 | 9432 | fi |
9433 | ;; | |
9434 | esac | |
9435 | shared_flag='-shared' | |
d50284c4 CE |
9436 | if test yes = "$aix_use_runtimelinking"; then |
9437 | shared_flag="$shared_flag "'$wl-G' | |
d9898ee8 | 9438 | fi |
d50284c4 CE |
9439 | # Need to ensure runtime linking is disabled for the traditional |
9440 | # shared library, or the linker may eventually find shared libraries | |
9441 | # /with/ Import File - we do not want to mix them. | |
9442 | shared_flag_aix='-shared' | |
9443 | shared_flag_svr4='-shared $wl-G' | |
d9898ee8 | 9444 | else |
9445 | # not using gcc | |
d50284c4 | 9446 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9447 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9448 | # chokes on -Wl,-G. The following line is correct: | |
d9898ee8 | 9449 | shared_flag='-G' |
9450 | else | |
d50284c4 CE |
9451 | if test yes = "$aix_use_runtimelinking"; then |
9452 | shared_flag='$wl-G' | |
d9898ee8 | 9453 | else |
d50284c4 | 9454 | shared_flag='$wl-bM:SRE' |
d9898ee8 | 9455 | fi |
d50284c4 CE |
9456 | shared_flag_aix='$wl-bM:SRE' |
9457 | shared_flag_svr4='$wl-G' | |
d9898ee8 | 9458 | fi |
9459 | fi | |
9460 | ||
d50284c4 | 9461 | export_dynamic_flag_spec='$wl-bexpall' |
d9898ee8 | 9462 | # It seems that -bexpall does not export symbols beginning with |
9463 | # underscore (_), so it is better to generate a list of symbols to export. | |
8d138742 | 9464 | always_export_symbols=yes |
d50284c4 | 9465 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
d9898ee8 | 9466 | # Warning - without using the other runtime loading flags (-brtl), |
9467 | # -berok will link without error, but may produce a broken library. | |
8d138742 CE |
9468 | allow_undefined_flag='-berok' |
9469 | # Determine the default libpath from the value encoded in an | |
9470 | # empty executable. | |
d50284c4 | 9471 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9472 | aix_libpath=$lt_cv_aix_libpath |
9473 | else | |
9474 | if ${lt_cv_aix_libpath_+:} false; then : | |
9475 | $as_echo_n "(cached) " >&6 | |
9476 | else | |
9477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 9478 | /* end confdefs.h. */ |
9479 | ||
9480 | int | |
9481 | main () | |
9482 | { | |
9483 | ||
9484 | ; | |
9485 | return 0; | |
9486 | } | |
9487 | _ACEOF | |
b0322a85 | 9488 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9489 | |
b0322a85 CE |
9490 | lt_aix_libpath_sed=' |
9491 | /Import File Strings/,/^$/ { | |
9492 | /^0/ { | |
9493 | s/^0 *\([^ ]*\) *$/\1/ | |
9494 | p | |
9495 | } | |
9496 | }' | |
9497 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9498 | # Check for a 64-bit object if we didn't find anything. | |
9499 | if test -z "$lt_cv_aix_libpath_"; then | |
9500 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9501 | fi | |
9502 | fi | |
9503 | rm -f core conftest.err conftest.$ac_objext \ | |
9504 | conftest$ac_exeext conftest.$ac_ext | |
9505 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9506 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9507 | fi |
dd184caf | 9508 | |
d9898ee8 | 9509 | fi |
dd184caf | 9510 | |
b0322a85 CE |
9511 | aix_libpath=$lt_cv_aix_libpath_ |
9512 | fi | |
d9898ee8 | 9513 | |
d50284c4 CE |
9514 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9515 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
8d138742 | 9516 | else |
d50284c4 CE |
9517 | if test ia64 = "$host_cpu"; then |
9518 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9519 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9520 | 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 | 9521 | else |
8d138742 CE |
9522 | # Determine the default libpath from the value encoded in an |
9523 | # empty executable. | |
d50284c4 | 9524 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 | 9525 | aix_libpath=$lt_cv_aix_libpath |
d9898ee8 | 9526 | else |
b0322a85 CE |
9527 | if ${lt_cv_aix_libpath_+:} false; then : |
9528 | $as_echo_n "(cached) " >&6 | |
9529 | else | |
9530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9531 | /* end confdefs.h. */ | |
9532 | ||
9533 | int | |
9534 | main () | |
9535 | { | |
9536 | ||
9537 | ; | |
9538 | return 0; | |
9539 | } | |
9540 | _ACEOF | |
9541 | if ac_fn_c_try_link "$LINENO"; then : | |
d9898ee8 | 9542 | |
b0322a85 CE |
9543 | lt_aix_libpath_sed=' |
9544 | /Import File Strings/,/^$/ { | |
9545 | /^0/ { | |
9546 | s/^0 *\([^ ]*\) *$/\1/ | |
9547 | p | |
9548 | } | |
9549 | }' | |
9550 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9551 | # Check for a 64-bit object if we didn't find anything. | |
9552 | if test -z "$lt_cv_aix_libpath_"; then | |
9553 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9554 | fi | |
9555 | fi | |
9556 | rm -f core conftest.err conftest.$ac_objext \ | |
9557 | conftest$ac_exeext conftest.$ac_ext | |
9558 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9559 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9560 | fi |
dd184caf | 9561 | |
d9898ee8 | 9562 | fi |
dd184caf | 9563 | |
b0322a85 CE |
9564 | aix_libpath=$lt_cv_aix_libpath_ |
9565 | fi | |
d9898ee8 | 9566 | |
d50284c4 | 9567 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
d9898ee8 | 9568 | # Warning - without using the other run time loading flags, |
9569 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9570 | no_undefined_flag=' $wl-bernotok' |
9571 | allow_undefined_flag=' $wl-berok' | |
9572 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9573 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9574 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9575 | else |
9576 | # Exported symbols can be pulled into shared objects from archives | |
9577 | whole_archive_flag_spec='$convenience' | |
9578 | fi | |
8d138742 | 9579 | archive_cmds_need_lc=yes |
d50284c4 CE |
9580 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9581 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9582 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9583 | if test svr4 != "$with_aix_soname"; then | |
9584 | # This is similar to how AIX traditionally builds its shared libraries. | |
9585 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
9586 | fi | |
9587 | if test aix != "$with_aix_soname"; then | |
9588 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
9589 | else | |
9590 | # used by -dlpreopen to get the symbols | |
9591 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9592 | fi | |
9593 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
d9898ee8 | 9594 | fi |
9595 | fi | |
9596 | ;; | |
9597 | ||
9598 | amigaos*) | |
8d138742 CE |
9599 | case $host_cpu in |
9600 | powerpc) | |
9601 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9602 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9603 | archive_expsym_cmds='' |
9604 | ;; | |
9605 | m68k) | |
9606 | 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)' | |
9607 | hardcode_libdir_flag_spec='-L$libdir' | |
9608 | hardcode_minus_L=yes | |
9609 | ;; | |
9610 | esac | |
d9898ee8 | 9611 | ;; |
9612 | ||
9613 | bsdi[45]*) | |
8d138742 | 9614 | export_dynamic_flag_spec=-rdynamic |
d9898ee8 | 9615 | ;; |
9616 | ||
8d138742 | 9617 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9618 | # When not using gcc, we currently assume that we are using |
9619 | # Microsoft Visual C++. | |
9620 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9621 | # no search path for DLLs. | |
b0322a85 CE |
9622 | case $cc_basename in |
9623 | cl*) | |
9624 | # Native MSVC | |
9625 | hardcode_libdir_flag_spec=' ' | |
9626 | allow_undefined_flag=unsupported | |
9627 | always_export_symbols=yes | |
9628 | file_list_spec='@' | |
9629 | # Tell ltmain to make .lib files, not .a files. | |
9630 | libext=lib | |
9631 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9632 | shrext_cmds=.dll |
b0322a85 | 9633 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9634 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9635 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9636 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9637 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9638 | else | |
9639 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9640 | fi~ | |
9641 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9642 | linknames=' | |
b0322a85 CE |
9643 | # The linker will not automatically build a static lib if we build a DLL. |
9644 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9645 | enable_shared_with_static_runtimes=yes | |
9646 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9647 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9648 | # Don't use ranlib | |
9649 | old_postinstall_cmds='chmod 644 $oldlib' | |
9650 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9651 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9652 | case $lt_outputfile in | |
9653 | *.exe|*.EXE) ;; | |
9654 | *) | |
9655 | lt_outputfile=$lt_outputfile.exe | |
9656 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9657 | ;; | |
9658 | esac~ | |
9659 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9660 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9661 | $RM "$lt_outputfile.manifest"; | |
9662 | fi' | |
b0322a85 CE |
9663 | ;; |
9664 | *) | |
9665 | # Assume MSVC wrapper | |
9666 | hardcode_libdir_flag_spec=' ' | |
9667 | allow_undefined_flag=unsupported | |
9668 | # Tell ltmain to make .lib files, not .a files. | |
9669 | libext=lib | |
9670 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9671 | shrext_cmds=.dll |
b0322a85 CE |
9672 | # FIXME: Setting linknames here is a bad hack. |
9673 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9674 | # The linker will automatically build a .lib file if we build a DLL. | |
9675 | old_archive_from_new_cmds='true' | |
9676 | # FIXME: Should let the user specify the lib program. | |
9677 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9678 | enable_shared_with_static_runtimes=yes | |
9679 | ;; | |
9680 | esac | |
d9898ee8 | 9681 | ;; |
9682 | ||
9683 | darwin* | rhapsody*) | |
8d138742 CE |
9684 | |
9685 | ||
9686 | archive_cmds_need_lc=no | |
9687 | hardcode_direct=no | |
9688 | hardcode_automatic=yes | |
9689 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9690 | if test yes = "$lt_cv_ld_force_load"; then |
9691 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
b0322a85 CE |
9692 | |
9693 | else | |
9694 | whole_archive_flag_spec='' | |
9695 | fi | |
8d138742 | 9696 | link_all_deplibs=yes |
d50284c4 | 9697 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9698 | case $cc_basename in |
d50284c4 | 9699 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 CE |
9700 | *) _lt_dar_can_shared=$GCC ;; |
9701 | esac | |
d50284c4 | 9702 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9703 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9704 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9705 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9706 | 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" | |
9707 | module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" | |
8d138742 CE |
9708 | |
9709 | else | |
9710 | ld_shlibs=no | |
9711 | fi | |
9712 | ||
d9898ee8 | 9713 | ;; |
9714 | ||
9715 | dgux*) | |
8d138742 CE |
9716 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9717 | hardcode_libdir_flag_spec='-L$libdir' | |
9718 | hardcode_shlibpath_var=no | |
d9898ee8 | 9719 | ;; |
9720 | ||
d9898ee8 | 9721 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9722 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9723 | # does not break anything, and helps significantly (at the cost of a little | |
9724 | # extra space). | |
9725 | freebsd2.2*) | |
8d138742 CE |
9726 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9727 | hardcode_libdir_flag_spec='-R$libdir' | |
9728 | hardcode_direct=yes | |
9729 | hardcode_shlibpath_var=no | |
d9898ee8 | 9730 | ;; |
9731 | ||
9732 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
b0322a85 | 9733 | freebsd2.*) |
8d138742 CE |
9734 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9735 | hardcode_direct=yes | |
9736 | hardcode_minus_L=yes | |
9737 | hardcode_shlibpath_var=no | |
d9898ee8 | 9738 | ;; |
9739 | ||
9740 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
ac40fd9e | 9741 | freebsd* | dragonfly*) |
b0322a85 | 9742 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9743 | hardcode_libdir_flag_spec='-R$libdir' |
9744 | hardcode_direct=yes | |
9745 | hardcode_shlibpath_var=no | |
d9898ee8 | 9746 | ;; |
9747 | ||
9748 | hpux9*) | |
d50284c4 CE |
9749 | if test yes = "$GCC"; then |
9750 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
d9898ee8 | 9751 | else |
d50284c4 | 9752 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
d9898ee8 | 9753 | fi |
d50284c4 | 9754 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
9755 | hardcode_libdir_separator=: |
9756 | hardcode_direct=yes | |
d9898ee8 | 9757 | |
9758 | # hardcode_minus_L: Not really in the search PATH, | |
9759 | # but as the default location of the library. | |
8d138742 | 9760 | hardcode_minus_L=yes |
d50284c4 | 9761 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9762 | ;; |
9763 | ||
9764 | hpux10*) | |
d50284c4 CE |
9765 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9766 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9767 | else |
8d138742 | 9768 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 9769 | fi |
d50284c4 CE |
9770 | if test no = "$with_gnu_ld"; then |
9771 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9772 | hardcode_libdir_separator=: |
9773 | hardcode_direct=yes | |
9774 | hardcode_direct_absolute=yes | |
d50284c4 | 9775 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9776 | # hardcode_minus_L: Not really in the search PATH, |
9777 | # but as the default location of the library. | |
8d138742 | 9778 | hardcode_minus_L=yes |
d9898ee8 | 9779 | fi |
9780 | ;; | |
9781 | ||
9782 | hpux11*) | |
d50284c4 | 9783 | if test yes,no = "$GCC,$with_gnu_ld"; then |
d9898ee8 | 9784 | case $host_cpu in |
9785 | hppa*64*) | |
d50284c4 | 9786 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9787 | ;; |
9788 | ia64*) | |
d50284c4 | 9789 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9790 | ;; |
9791 | *) | |
d50284c4 | 9792 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9793 | ;; |
9794 | esac | |
9795 | else | |
9796 | case $host_cpu in | |
9797 | hppa*64*) | |
d50284c4 | 9798 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9799 | ;; |
9800 | ia64*) | |
d50284c4 | 9801 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9802 | ;; |
9803 | *) | |
b0322a85 CE |
9804 | |
9805 | # Older versions of the 11.00 compiler do not understand -b yet | |
9806 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9808 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9809 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9810 | $as_echo_n "(cached) " >&6 | |
9811 | else | |
9812 | lt_cv_prog_compiler__b=no | |
d50284c4 | 9813 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
9814 | LDFLAGS="$LDFLAGS -b" |
9815 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9816 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9817 | # The linker can only warn and ignore the option if not recognized | |
9818 | # So say no if there are warnings | |
9819 | if test -s conftest.err; then | |
9820 | # Append any errors to the config.log. | |
9821 | cat conftest.err 1>&5 | |
9822 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9823 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9824 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9825 | lt_cv_prog_compiler__b=yes | |
9826 | fi | |
9827 | else | |
9828 | lt_cv_prog_compiler__b=yes | |
9829 | fi | |
9830 | fi | |
9831 | $RM -r conftest* | |
d50284c4 | 9832 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9833 | |
9834 | fi | |
9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9836 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9837 | ||
d50284c4 CE |
9838 | if test yes = "$lt_cv_prog_compiler__b"; then |
9839 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
9840 | else |
9841 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9842 | fi | |
9843 | ||
d9898ee8 | 9844 | ;; |
9845 | esac | |
9846 | fi | |
d50284c4 CE |
9847 | if test no = "$with_gnu_ld"; then |
9848 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 9849 | hardcode_libdir_separator=: |
d9898ee8 | 9850 | |
9851 | case $host_cpu in | |
9852 | hppa*64*|ia64*) | |
8d138742 CE |
9853 | hardcode_direct=no |
9854 | hardcode_shlibpath_var=no | |
d9898ee8 | 9855 | ;; |
9856 | *) | |
8d138742 CE |
9857 | hardcode_direct=yes |
9858 | hardcode_direct_absolute=yes | |
d50284c4 | 9859 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9860 | |
9861 | # hardcode_minus_L: Not really in the search PATH, | |
9862 | # but as the default location of the library. | |
8d138742 | 9863 | hardcode_minus_L=yes |
d9898ee8 | 9864 | ;; |
9865 | esac | |
9866 | fi | |
9867 | ;; | |
9868 | ||
9869 | irix5* | irix6* | nonstopux*) | |
d50284c4 CE |
9870 | if test yes = "$GCC"; then |
9871 | 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 |
9872 | # Try to use the -exported_symbol ld option, if it does not |
9873 | # work, assume that -exports_file does not work either and | |
9874 | # implicitly export all symbols. | |
b0322a85 CE |
9875 | # This should be the same for all languages, so no per-tag cache variable. |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9877 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9878 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9879 | $as_echo_n "(cached) " >&6 | |
9880 | else | |
d50284c4 CE |
9881 | save_LDFLAGS=$LDFLAGS |
9882 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
9883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9884 | /* end confdefs.h. */ | |
9885 | int foo (void) { return 0; } | |
8d138742 | 9886 | _ACEOF |
b0322a85 CE |
9887 | if ac_fn_c_try_link "$LINENO"; then : |
9888 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 9889 | else |
b0322a85 | 9890 | lt_cv_irix_exported_symbol=no |
8d138742 | 9891 | fi |
b0322a85 CE |
9892 | rm -f core conftest.err conftest.$ac_objext \ |
9893 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 9894 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9895 | fi |
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9897 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
9898 | if test yes = "$lt_cv_irix_exported_symbol"; then |
9899 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' | |
b0322a85 | 9900 | fi |
d9898ee8 | 9901 | else |
d50284c4 CE |
9902 | 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' |
9903 | 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 | 9904 | fi |
8d138742 | 9905 | archive_cmds_need_lc='no' |
d50284c4 | 9906 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9907 | hardcode_libdir_separator=: |
9908 | inherit_rpath=yes | |
9909 | link_all_deplibs=yes | |
d9898ee8 | 9910 | ;; |
9911 | ||
d50284c4 CE |
9912 | linux*) |
9913 | case $cc_basename in | |
9914 | tcc*) | |
9915 | # Fabrice Bellard et al's Tiny C Compiler | |
9916 | ld_shlibs=yes | |
9917 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9918 | ;; | |
9919 | esac | |
9920 | ;; | |
9921 | ||
d9898ee8 | 9922 | netbsd*) |
8d138742 CE |
9923 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9924 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
d9898ee8 | 9925 | else |
8d138742 | 9926 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
d9898ee8 | 9927 | fi |
8d138742 CE |
9928 | hardcode_libdir_flag_spec='-R$libdir' |
9929 | hardcode_direct=yes | |
9930 | hardcode_shlibpath_var=no | |
d9898ee8 | 9931 | ;; |
9932 | ||
9933 | newsos6) | |
8d138742 CE |
9934 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9935 | hardcode_direct=yes | |
d50284c4 | 9936 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9937 | hardcode_libdir_separator=: |
9938 | hardcode_shlibpath_var=no | |
9939 | ;; | |
9940 | ||
9941 | *nto* | *qnx*) | |
d9898ee8 | 9942 | ;; |
9943 | ||
d50284c4 | 9944 | openbsd* | bitrig*) |
ac40fd9e | 9945 | if test -f /usr/libexec/ld.so; then |
8d138742 CE |
9946 | hardcode_direct=yes |
9947 | hardcode_shlibpath_var=no | |
9948 | hardcode_direct_absolute=yes | |
d50284c4 | 9949 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 9950 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
9951 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9952 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9953 | export_dynamic_flag_spec='$wl-E' | |
ac40fd9e | 9954 | else |
d50284c4 CE |
9955 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9956 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 | 9957 | fi |
d9898ee8 | 9958 | else |
8d138742 | 9959 | ld_shlibs=no |
d9898ee8 | 9960 | fi |
9961 | ;; | |
9962 | ||
9963 | os2*) | |
8d138742 CE |
9964 | hardcode_libdir_flag_spec='-L$libdir' |
9965 | hardcode_minus_L=yes | |
9966 | allow_undefined_flag=unsupported | |
d50284c4 CE |
9967 | shrext_cmds=.dll |
9968 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9969 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9970 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9971 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9972 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9973 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9974 | emximp -o $lib $output_objdir/$libname.def' | |
9975 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9976 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9977 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9978 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9979 | prefix_cmds="$SED"~ | |
9980 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9981 | prefix_cmds="$prefix_cmds -e 1d"; | |
9982 | fi~ | |
9983 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9984 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9985 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9986 | emximp -o $lib $output_objdir/$libname.def' | |
9987 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9988 | enable_shared_with_static_runtimes=yes | |
d9898ee8 | 9989 | ;; |
9990 | ||
9991 | osf3*) | |
d50284c4 CE |
9992 | if test yes = "$GCC"; then |
9993 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9994 | 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 | 9995 | else |
8d138742 | 9996 | allow_undefined_flag=' -expect_unresolved \*' |
d50284c4 | 9997 | 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 | 9998 | fi |
8d138742 | 9999 | archive_cmds_need_lc='no' |
d50284c4 | 10000 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 | 10001 | hardcode_libdir_separator=: |
d9898ee8 | 10002 | ;; |
10003 | ||
10004 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
d50284c4 CE |
10005 | if test yes = "$GCC"; then |
10006 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10007 | 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' | |
10008 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
d9898ee8 | 10009 | else |
8d138742 | 10010 | allow_undefined_flag=' -expect_unresolved \*' |
d50284c4 | 10011 | 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 | 10012 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
d50284c4 | 10013 | $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 | 10014 | |
10015 | # Both c and cxx compiler support -rpath directly | |
8d138742 | 10016 | hardcode_libdir_flag_spec='-rpath $libdir' |
d9898ee8 | 10017 | fi |
8d138742 CE |
10018 | archive_cmds_need_lc='no' |
10019 | hardcode_libdir_separator=: | |
d9898ee8 | 10020 | ;; |
10021 | ||
10022 | solaris*) | |
8d138742 | 10023 | no_undefined_flag=' -z defs' |
d50284c4 CE |
10024 | if test yes = "$GCC"; then |
10025 | wlarc='$wl' | |
10026 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10027 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10028 | $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 | 10029 | else |
8d138742 CE |
10030 | case `$CC -V 2>&1` in |
10031 | *"Compilers 5.0"*) | |
10032 | wlarc='' | |
d50284c4 | 10033 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10034 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10035 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
10036 | ;; |
10037 | *) | |
d50284c4 CE |
10038 | wlarc='$wl' |
10039 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10040 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10041 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10042 | ;; |
10043 | esac | |
d9898ee8 | 10044 | fi |
8d138742 CE |
10045 | hardcode_libdir_flag_spec='-R$libdir' |
10046 | hardcode_shlibpath_var=no | |
d9898ee8 | 10047 | case $host_os in |
10048 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10049 | *) | |
ac40fd9e | 10050 | # The compiler driver will combine and reorder linker options, |
d50284c4 | 10051 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
ac40fd9e | 10052 | # but is careful enough not to reorder. |
8d138742 | 10053 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
d50284c4 CE |
10054 | if test yes = "$GCC"; then |
10055 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
ac40fd9e | 10056 | else |
8d138742 | 10057 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
ac40fd9e | 10058 | fi |
10059 | ;; | |
d9898ee8 | 10060 | esac |
8d138742 | 10061 | link_all_deplibs=yes |
d9898ee8 | 10062 | ;; |
10063 | ||
10064 | sunos4*) | |
d50284c4 | 10065 | if test sequent = "$host_vendor"; then |
d9898ee8 | 10066 | # Use $CC to link under sequent, because it throws in some extra .o |
10067 | # files that make .init and .fini sections work. | |
d50284c4 | 10068 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 10069 | else |
8d138742 | 10070 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 10071 | fi |
8d138742 CE |
10072 | hardcode_libdir_flag_spec='-L$libdir' |
10073 | hardcode_direct=yes | |
10074 | hardcode_minus_L=yes | |
10075 | hardcode_shlibpath_var=no | |
d9898ee8 | 10076 | ;; |
10077 | ||
10078 | sysv4) | |
10079 | case $host_vendor in | |
10080 | sni) | |
8d138742 CE |
10081 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10082 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 10083 | ;; |
10084 | siemens) | |
10085 | ## LD is ld it makes a PLAMLIB | |
10086 | ## CC just makes a GrossModule. | |
8d138742 CE |
10087 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10088 | reload_cmds='$CC -r -o $output$reload_objs' | |
10089 | hardcode_direct=no | |
d9898ee8 | 10090 | ;; |
10091 | motorola) | |
8d138742 CE |
10092 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10093 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
d9898ee8 | 10094 | ;; |
10095 | esac | |
10096 | runpath_var='LD_RUN_PATH' | |
8d138742 | 10097 | hardcode_shlibpath_var=no |
d9898ee8 | 10098 | ;; |
10099 | ||
10100 | sysv4.3*) | |
8d138742 CE |
10101 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10102 | hardcode_shlibpath_var=no | |
10103 | export_dynamic_flag_spec='-Bexport' | |
d9898ee8 | 10104 | ;; |
10105 | ||
10106 | sysv4*MP*) | |
10107 | if test -d /usr/nec; then | |
8d138742 CE |
10108 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10109 | hardcode_shlibpath_var=no | |
d9898ee8 | 10110 | runpath_var=LD_RUN_PATH |
10111 | hardcode_runpath_var=yes | |
8d138742 | 10112 | ld_shlibs=yes |
d9898ee8 | 10113 | fi |
10114 | ;; | |
10115 | ||
ac40fd9e | 10116 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10117 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10118 | archive_cmds_need_lc=no |
10119 | hardcode_shlibpath_var=no | |
d9898ee8 | 10120 | runpath_var='LD_RUN_PATH' |
10121 | ||
d50284c4 CE |
10122 | if test yes = "$GCC"; then |
10123 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10124 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 10125 | else |
d50284c4 CE |
10126 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10127 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 10128 | fi |
10129 | ;; | |
10130 | ||
10131 | sysv5* | sco3.2v5* | sco5v6*) | |
d50284c4 | 10132 | # Note: We CANNOT use -z defs as we might desire, because we do not |
d9898ee8 | 10133 | # link with -lc, and that would cause any symbols used from libc to |
10134 | # always be unresolved, which means just about no library would | |
10135 | # ever link correctly. If we're not using GNU ld we use -z text | |
10136 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10137 | # as -z defs. | |
d50284c4 CE |
10138 | no_undefined_flag='$wl-z,text' |
10139 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10140 | archive_cmds_need_lc=no |
10141 | hardcode_shlibpath_var=no | |
d50284c4 | 10142 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10143 | hardcode_libdir_separator=':' |
10144 | link_all_deplibs=yes | |
d50284c4 | 10145 | export_dynamic_flag_spec='$wl-Bexport' |
d9898ee8 | 10146 | runpath_var='LD_RUN_PATH' |
10147 | ||
d50284c4 CE |
10148 | if test yes = "$GCC"; then |
10149 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10150 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 10151 | else |
d50284c4 CE |
10152 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10153 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 10154 | fi |
10155 | ;; | |
10156 | ||
10157 | uts4*) | |
8d138742 CE |
10158 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10159 | hardcode_libdir_flag_spec='-L$libdir' | |
10160 | hardcode_shlibpath_var=no | |
d9898ee8 | 10161 | ;; |
10162 | ||
10163 | *) | |
8d138742 | 10164 | ld_shlibs=no |
d9898ee8 | 10165 | ;; |
10166 | esac | |
8d138742 | 10167 | |
d50284c4 | 10168 | if test sni = "$host_vendor"; then |
8d138742 CE |
10169 | case $host in |
10170 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10171 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10172 | ;; |
10173 | esac | |
10174 | fi | |
d9898ee8 | 10175 | fi |
10176 | ||
b0322a85 | 10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10178 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10179 | test no = "$ld_shlibs" && can_build_shared=no |
8d138742 CE |
10180 | |
10181 | with_gnu_ld=$with_gnu_ld | |
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
d9898ee8 | 10196 | |
10197 | # | |
10198 | # Do we need to explicitly link libc? | |
10199 | # | |
8d138742 | 10200 | case "x$archive_cmds_need_lc" in |
d9898ee8 | 10201 | x|xyes) |
10202 | # Assume -lc should be added | |
8d138742 | 10203 | archive_cmds_need_lc=yes |
d9898ee8 | 10204 | |
d50284c4 | 10205 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 | 10206 | case $archive_cmds in |
d9898ee8 | 10207 | *'~'*) |
10208 | # FIXME: we may have to deal with multi-command sequences. | |
10209 | ;; | |
10210 | '$CC '*) | |
10211 | # Test whether the compiler implicitly links with -lc since on some | |
10212 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10213 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10215 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10216 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10217 | $as_echo_n "(cached) " >&6 | |
10218 | else | |
10219 | $RM conftest* | |
10220 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 10221 | |
b0322a85 | 10222 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 10223 | (eval $ac_compile) 2>&5 |
10224 | ac_status=$? | |
b0322a85 CE |
10225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10226 | test $ac_status = 0; } 2>conftest.err; then | |
10227 | soname=conftest | |
10228 | lib=conftest | |
10229 | libobjs=conftest.$ac_objext | |
10230 | deplibs= | |
10231 | wl=$lt_prog_compiler_wl | |
10232 | pic_flag=$lt_prog_compiler_pic | |
10233 | compiler_flags=-v | |
10234 | linker_flags=-v | |
10235 | verstring= | |
10236 | output_objdir=. | |
10237 | libname=conftest | |
10238 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10239 | allow_undefined_flag= | |
10240 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 | 10241 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
d9898ee8 | 10242 | ac_status=$? |
b0322a85 CE |
10243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10244 | test $ac_status = 0; } | |
10245 | then | |
10246 | lt_cv_archive_cmds_need_lc=no | |
10247 | else | |
10248 | lt_cv_archive_cmds_need_lc=yes | |
10249 | fi | |
10250 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10251 | else | |
10252 | cat conftest.err 1>&5 | |
10253 | fi | |
10254 | $RM conftest* | |
10255 | ||
10256 | fi | |
10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10258 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10259 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
d9898ee8 | 10260 | ;; |
10261 | esac | |
10262 | fi | |
10263 | ;; | |
10264 | esac | |
10265 | ||
8d138742 CE |
10266 | |
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
b0322a85 | 10417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10418 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10419 | ||
d50284c4 | 10420 | if test yes = "$GCC"; then |
8d138742 | 10421 | case $host_os in |
d50284c4 CE |
10422 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10423 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 10424 | esac |
b0322a85 | 10425 | case $host_os in |
d50284c4 CE |
10426 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10427 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10428 | esac |
10429 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10430 | case $lt_search_path_spec in | |
10431 | *\;*) | |
8d138742 CE |
10432 | # if the path contains ";" then we assume it to be the separator |
10433 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10434 | # assumed that no part of a normal pathname contains ";" but that should | |
10435 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10436 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10437 | ;; | |
10438 | *) | |
10439 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10440 | ;; | |
10441 | esac | |
8d138742 | 10442 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10443 | # and add multilib dir if necessary... |
8d138742 | 10444 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10445 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10446 | # ...but if some path component already ends with the multilib dir we assume | |
10447 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10448 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10449 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10450 | lt_multi_os_dir= | |
10451 | ;; | |
10452 | esac | |
8d138742 | 10453 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10454 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10455 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10456 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10457 | test -d "$lt_sys_path" && \ |
10458 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10459 | fi | |
10460 | done | |
b0322a85 | 10461 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10462 | BEGIN {RS = " "; FS = "/|\n";} { |
10463 | lt_foo = ""; | |
10464 | lt_count = 0; | |
8d138742 CE |
10465 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10466 | if ($lt_i != "" && $lt_i != ".") { | |
10467 | if ($lt_i == "..") { | |
10468 | lt_count++; | |
10469 | } else { | |
10470 | if (lt_count == 0) { | |
d50284c4 | 10471 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10472 | } else { |
10473 | lt_count--; | |
10474 | } | |
10475 | } | |
10476 | } | |
10477 | } | |
10478 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10479 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10480 | }'` | |
b0322a85 CE |
10481 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10482 | # for these hosts. | |
10483 | case $host_os in | |
10484 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10485 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10486 | esac |
10487 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10488 | else |
10489 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10490 | fi | |
d9898ee8 | 10491 | library_names_spec= |
10492 | libname_spec='lib$name' | |
10493 | soname_spec= | |
d50284c4 | 10494 | shrext_cmds=.so |
d9898ee8 | 10495 | postinstall_cmds= |
10496 | postuninstall_cmds= | |
10497 | finish_cmds= | |
10498 | finish_eval= | |
10499 | shlibpath_var= | |
10500 | shlibpath_overrides_runpath=unknown | |
10501 | version_type=none | |
10502 | dynamic_linker="$host_os ld.so" | |
10503 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 10504 | need_lib_prefix=unknown |
10505 | hardcode_into_libs=no | |
10506 | ||
10507 | # when you set need_version to no, make sure it does not cause -set_version | |
10508 | # flags to be left without arguments | |
10509 | need_version=unknown | |
10510 | ||
d50284c4 CE |
10511 | |
10512 | ||
d9898ee8 | 10513 | case $host_os in |
10514 | aix3*) | |
b0322a85 | 10515 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10516 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
d9898ee8 | 10517 | shlibpath_var=LIBPATH |
10518 | ||
10519 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 10520 | soname_spec='$libname$release$shared_ext$major' |
d9898ee8 | 10521 | ;; |
10522 | ||
8d138742 | 10523 | aix[4-9]*) |
b0322a85 | 10524 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10525 | need_lib_prefix=no |
10526 | need_version=no | |
10527 | hardcode_into_libs=yes | |
d50284c4 | 10528 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 10529 | # AIX 5 supports IA64 |
d50284c4 | 10530 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
d9898ee8 | 10531 | shlibpath_var=LD_LIBRARY_PATH |
10532 | else | |
10533 | # With GCC up to 2.95.x, collect2 would create an import file | |
10534 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10535 | # the line '#! .'. This would cause the generated library to |
10536 | # depend on '.', always an invalid library. This was fixed in | |
d9898ee8 | 10537 | # development snapshots of GCC prior to 3.0. |
10538 | case $host_os in | |
10539 | aix4 | aix4.[01] | aix4.[01].*) | |
10540 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10541 | echo ' yes ' | |
d50284c4 | 10542 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
d9898ee8 | 10543 | : |
10544 | else | |
10545 | can_build_shared=no | |
10546 | fi | |
10547 | ;; | |
10548 | esac | |
d50284c4 CE |
10549 | # Using Import Files as archive members, it is possible to support |
10550 | # filename-based versioning of shared library archives on AIX. While | |
10551 | # this would work for both with and without runtime linking, it will | |
10552 | # prevent static linking of such archives. So we do filename-based | |
10553 | # shared library versioning with .so extension only, which is used | |
10554 | # when both runtime linking and shared linking is enabled. | |
10555 | # Unfortunately, runtime linking may impact performance, so we do | |
10556 | # not want this to be the default eventually. Also, we use the | |
10557 | # versioned .so libs for executables only if there is the -brtl | |
10558 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10559 | # To allow for filename-based versioning support, we need to create | |
10560 | # libNAME.so.V as an archive file, containing: | |
10561 | # *) an Import File, referring to the versioned filename of the | |
10562 | # archive as well as the shared archive member, telling the | |
10563 | # bitwidth (32 or 64) of that shared object, and providing the | |
10564 | # list of exported symbols of that shared object, eventually | |
10565 | # decorated with the 'weak' keyword | |
10566 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10567 | # it being seen by the linker. | |
10568 | # At run time we better use the real file rather than another symlink, | |
10569 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10570 | ||
10571 | case $with_aix_soname,$aix_use_runtimelinking in | |
10572 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
d9898ee8 | 10573 | # soname into executable. Probably we can add versioning support to |
10574 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10575 | aix,yes) # traditional libtool |
10576 | dynamic_linker='AIX unversionable lib.so' | |
d9898ee8 | 10577 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10578 | # instead of lib<name>.a to let people know that these are not | |
10579 | # typical AIX shared libraries. | |
d50284c4 CE |
10580 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10581 | ;; | |
10582 | aix,no) # traditional AIX only | |
10583 | dynamic_linker='AIX lib.a(lib.so.V)' | |
d9898ee8 | 10584 | # We preserve .a as extension for shared libraries through AIX4.2 |
10585 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10586 | library_names_spec='$libname$release.a $libname.a' |
10587 | soname_spec='$libname$release$shared_ext$major' | |
10588 | ;; | |
10589 | svr4,*) # full svr4 only | |
10590 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10591 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10592 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10593 | shlibpath_overrides_runpath=yes | |
10594 | ;; | |
10595 | *,yes) # both, prefer svr4 | |
10596 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10597 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10598 | # unpreferred sharedlib libNAME.a needs extra handling | |
10599 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
10600 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
10601 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10602 | shlibpath_overrides_runpath=yes | |
10603 | ;; | |
10604 | *,no) # both, prefer aix | |
10605 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10606 | library_names_spec='$libname$release.a $libname.a' | |
10607 | soname_spec='$libname$release$shared_ext$major' | |
10608 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10609 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
10610 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
10611 | ;; | |
10612 | esac | |
d9898ee8 | 10613 | shlibpath_var=LIBPATH |
10614 | fi | |
10615 | ;; | |
10616 | ||
10617 | amigaos*) | |
8d138742 CE |
10618 | case $host_cpu in |
10619 | powerpc) | |
10620 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10621 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10622 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
10623 | ;; |
10624 | m68k) | |
10625 | library_names_spec='$libname.ixlibrary $libname.a' | |
10626 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10627 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
8d138742 CE |
10628 | ;; |
10629 | esac | |
d9898ee8 | 10630 | ;; |
10631 | ||
10632 | beos*) | |
d50284c4 | 10633 | library_names_spec='$libname$shared_ext' |
d9898ee8 | 10634 | dynamic_linker="$host_os ld.so" |
10635 | shlibpath_var=LIBRARY_PATH | |
10636 | ;; | |
10637 | ||
10638 | bsdi[45]*) | |
b0322a85 | 10639 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10640 | need_version=no |
d50284c4 CE |
10641 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10642 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10643 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10644 | shlibpath_var=LD_LIBRARY_PATH | |
10645 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10646 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10647 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10648 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10649 | # libtool to hard-code these into programs | |
10650 | ;; | |
10651 | ||
8d138742 | 10652 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10653 | version_type=windows |
d50284c4 | 10654 | shrext_cmds=.dll |
d9898ee8 | 10655 | need_version=no |
10656 | need_lib_prefix=no | |
10657 | ||
b0322a85 CE |
10658 | case $GCC,$cc_basename in |
10659 | yes,*) | |
10660 | # gcc | |
d9898ee8 | 10661 | library_names_spec='$libname.dll.a' |
10662 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10663 | postinstall_cmds='base_file=`basename \$file`~ |
10664 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 10665 | dldir=$destdir/`dirname \$dlpath`~ |
10666 | test -d \$dldir || mkdir -p \$dldir~ | |
10667 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10668 | chmod a+x \$dldir/$dlname~ |
10669 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10670 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10671 | fi' | |
d9898ee8 | 10672 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10673 | dlpath=$dir/\$dldll~ | |
8d138742 | 10674 | $RM \$dlpath' |
d9898ee8 | 10675 | shlibpath_overrides_runpath=yes |
10676 | ||
10677 | case $host_os in | |
10678 | cygwin*) | |
10679 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10680 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10681 | |
10682 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10683 | ;; |
8d138742 | 10684 | mingw* | cegcc*) |
d9898ee8 | 10685 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 10686 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10687 | ;; |
10688 | pw32*) | |
10689 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10690 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10691 | ;; |
10692 | esac | |
b0322a85 CE |
10693 | dynamic_linker='Win32 ld.exe' |
10694 | ;; | |
10695 | ||
10696 | *,cl*) | |
10697 | # Native MSVC | |
10698 | libname_spec='$name' | |
d50284c4 CE |
10699 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10700 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10701 | |
10702 | case $build_os in | |
10703 | mingw*) | |
10704 | sys_lib_search_path_spec= | |
10705 | lt_save_ifs=$IFS | |
10706 | IFS=';' | |
10707 | for lt_path in $LIB | |
10708 | do | |
10709 | IFS=$lt_save_ifs | |
10710 | # Let DOS variable expansion print the short 8.3 style file name. | |
10711 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10712 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10713 | done | |
10714 | IFS=$lt_save_ifs | |
10715 | # Convert to MSYS style. | |
10716 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10717 | ;; | |
10718 | cygwin*) | |
10719 | # Convert to unix form, then to dos form, then back to unix form | |
10720 | # but this time dos style (no spaces!) so that the unix form looks | |
10721 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10722 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10723 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10724 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10725 | ;; | |
10726 | *) | |
d50284c4 | 10727 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10728 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10729 | # It is most probably a Windows format PATH. | |
10730 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10731 | else | |
10732 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10733 | fi | |
10734 | # FIXME: find the short name or the path components, as spaces are | |
10735 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10736 | ;; | |
10737 | esac | |
10738 | ||
10739 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10740 | postinstall_cmds='base_file=`basename \$file`~ |
10741 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
10742 | dldir=$destdir/`dirname \$dlpath`~ |
10743 | test -d \$dldir || mkdir -p \$dldir~ | |
10744 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10745 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10746 | dlpath=$dir/\$dldll~ | |
10747 | $RM \$dlpath' | |
10748 | shlibpath_overrides_runpath=yes | |
10749 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10750 | ;; |
10751 | ||
10752 | *) | |
b0322a85 | 10753 | # Assume MSVC wrapper |
d50284c4 | 10754 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 10755 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10756 | ;; |
10757 | esac | |
d9898ee8 | 10758 | # FIXME: first we should search . and the directory the executable is in |
10759 | shlibpath_var=PATH | |
10760 | ;; | |
10761 | ||
10762 | darwin* | rhapsody*) | |
10763 | dynamic_linker="$host_os dyld" | |
10764 | version_type=darwin | |
10765 | need_lib_prefix=no | |
10766 | need_version=no | |
d50284c4 CE |
10767 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10768 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 10769 | shlibpath_overrides_runpath=yes |
10770 | shlibpath_var=DYLD_LIBRARY_PATH | |
10771 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10772 | |
8d138742 | 10773 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10774 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10775 | ;; | |
10776 | ||
10777 | dgux*) | |
b0322a85 | 10778 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10779 | need_lib_prefix=no |
10780 | need_version=no | |
d50284c4 CE |
10781 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10782 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10783 | shlibpath_var=LD_LIBRARY_PATH |
10784 | ;; | |
10785 | ||
d9898ee8 | 10786 | freebsd* | dragonfly*) |
10787 | # DragonFly does not have aout. When/if they implement a new | |
10788 | # versioning mechanism, adjust this. | |
10789 | if test -x /usr/bin/objformat; then | |
10790 | objformat=`/usr/bin/objformat` | |
10791 | else | |
10792 | case $host_os in | |
b0322a85 | 10793 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10794 | *) objformat=elf ;; |
10795 | esac | |
10796 | fi | |
10797 | version_type=freebsd-$objformat | |
10798 | case $version_type in | |
10799 | freebsd-elf*) | |
d50284c4 CE |
10800 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10801 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10802 | need_version=no |
10803 | need_lib_prefix=no | |
10804 | ;; | |
10805 | freebsd-*) | |
d50284c4 | 10806 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 10807 | need_version=yes |
10808 | ;; | |
10809 | esac | |
10810 | shlibpath_var=LD_LIBRARY_PATH | |
10811 | case $host_os in | |
b0322a85 | 10812 | freebsd2.*) |
d9898ee8 | 10813 | shlibpath_overrides_runpath=yes |
10814 | ;; | |
10815 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10816 | shlibpath_overrides_runpath=yes | |
10817 | hardcode_into_libs=yes | |
10818 | ;; | |
10819 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10820 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10821 | shlibpath_overrides_runpath=no | |
10822 | hardcode_into_libs=yes | |
10823 | ;; | |
ac40fd9e | 10824 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10825 | shlibpath_overrides_runpath=yes |
10826 | hardcode_into_libs=yes | |
10827 | ;; | |
10828 | esac | |
10829 | ;; | |
10830 | ||
b0322a85 CE |
10831 | haiku*) |
10832 | version_type=linux # correct to gnu/linux during the next big refactor | |
10833 | need_lib_prefix=no | |
10834 | need_version=no | |
10835 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
10836 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10837 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 10838 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 10839 | shlibpath_overrides_runpath=no |
b0322a85 | 10840 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 10841 | hardcode_into_libs=yes |
10842 | ;; | |
10843 | ||
10844 | hpux9* | hpux10* | hpux11*) | |
10845 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10846 | # link against other versions. | |
10847 | version_type=sunos | |
10848 | need_lib_prefix=no | |
10849 | need_version=no | |
10850 | case $host_cpu in | |
10851 | ia64*) | |
10852 | shrext_cmds='.so' | |
10853 | hardcode_into_libs=yes | |
10854 | dynamic_linker="$host_os dld.so" | |
10855 | shlibpath_var=LD_LIBRARY_PATH | |
10856 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10857 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10858 | soname_spec='$libname$release$shared_ext$major' | |
10859 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 10860 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 10861 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 10862 | else |
10863 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 10864 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 10865 | fi |
d9898ee8 | 10866 | ;; |
8d138742 CE |
10867 | hppa*64*) |
10868 | shrext_cmds='.sl' | |
10869 | hardcode_into_libs=yes | |
10870 | dynamic_linker="$host_os dld.sl" | |
10871 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10872 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10873 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10874 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10875 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10876 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10877 | ;; | |
10878 | *) | |
d9898ee8 | 10879 | shrext_cmds='.sl' |
10880 | dynamic_linker="$host_os dld.sl" | |
10881 | shlibpath_var=SHLIB_PATH | |
10882 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
10883 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10884 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10885 | ;; |
10886 | esac | |
b0322a85 | 10887 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10888 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10889 | # or fails outright, so override atomically: |
10890 | install_override_mode=555 | |
d9898ee8 | 10891 | ;; |
10892 | ||
ac40fd9e | 10893 | interix[3-9]*) |
b0322a85 | 10894 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10895 | need_lib_prefix=no |
10896 | need_version=no | |
d50284c4 CE |
10897 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10898 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10899 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10900 | shlibpath_var=LD_LIBRARY_PATH | |
10901 | shlibpath_overrides_runpath=no | |
10902 | hardcode_into_libs=yes | |
10903 | ;; | |
10904 | ||
10905 | irix5* | irix6* | nonstopux*) | |
10906 | case $host_os in | |
10907 | nonstopux*) version_type=nonstopux ;; | |
10908 | *) | |
d50284c4 | 10909 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 10910 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10911 | else |
10912 | version_type=irix | |
10913 | fi ;; | |
10914 | esac | |
10915 | need_lib_prefix=no | |
10916 | need_version=no | |
d50284c4 CE |
10917 | soname_spec='$libname$release$shared_ext$major' |
10918 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 10919 | case $host_os in |
10920 | irix5* | nonstopux*) | |
10921 | libsuff= shlibsuff= | |
10922 | ;; | |
10923 | *) | |
10924 | case $LD in # libtool.m4 will add one of these switches to LD | |
10925 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10926 | libsuff= shlibsuff= libmagic=32-bit;; | |
10927 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10928 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10929 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10930 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10931 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10932 | esac | |
10933 | ;; | |
10934 | esac | |
10935 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10936 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
10937 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10938 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 10939 | hardcode_into_libs=yes |
10940 | ;; | |
10941 | ||
10942 | # No shared lib support for Linux oldld, aout, or coff. | |
10943 | linux*oldld* | linux*aout* | linux*coff*) | |
10944 | dynamic_linker=no | |
10945 | ;; | |
10946 | ||
d50284c4 CE |
10947 | linux*android*) |
10948 | version_type=none # Android doesn't support versioned libraries. | |
10949 | need_lib_prefix=no | |
10950 | need_version=no | |
10951 | library_names_spec='$libname$release$shared_ext' | |
10952 | soname_spec='$libname$release$shared_ext' | |
10953 | finish_cmds= | |
10954 | shlibpath_var=LD_LIBRARY_PATH | |
10955 | shlibpath_overrides_runpath=yes | |
10956 | ||
10957 | # This implies no fast_install, which is unacceptable. | |
10958 | # Some rework will be needed to allow for fast_install | |
10959 | # before this can be enabled. | |
10960 | hardcode_into_libs=yes | |
10961 | ||
10962 | dynamic_linker='Android linker' | |
10963 | # Don't embed -rpath directories since the linker doesn't support them. | |
10964 | hardcode_libdir_flag_spec='-L$libdir' | |
10965 | ;; | |
10966 | ||
b0322a85 | 10967 | # This must be glibc/ELF. |
d50284c4 | 10968 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 10969 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10970 | need_lib_prefix=no |
10971 | need_version=no | |
d50284c4 CE |
10972 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10973 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10974 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10975 | shlibpath_var=LD_LIBRARY_PATH | |
10976 | shlibpath_overrides_runpath=no | |
b0322a85 | 10977 | |
8d138742 | 10978 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10979 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10980 | $as_echo_n "(cached) " >&6 | |
10981 | else | |
10982 | lt_cv_shlibpath_overrides_runpath=no | |
10983 | save_LDFLAGS=$LDFLAGS | |
10984 | save_libdir=$libdir | |
10985 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10986 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10988 | /* end confdefs.h. */ |
10989 | ||
10990 | int | |
10991 | main () | |
10992 | { | |
10993 | ||
10994 | ; | |
10995 | return 0; | |
10996 | } | |
10997 | _ACEOF | |
b0322a85 CE |
10998 | if ac_fn_c_try_link "$LINENO"; then : |
10999 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11000 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 11001 | fi |
b0322a85 CE |
11002 | fi |
11003 | rm -f core conftest.err conftest.$ac_objext \ | |
11004 | conftest$ac_exeext conftest.$ac_ext | |
11005 | LDFLAGS=$save_LDFLAGS | |
11006 | libdir=$save_libdir | |
8d138742 CE |
11007 | |
11008 | fi | |
11009 | ||
b0322a85 | 11010 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 11011 | |
d9898ee8 | 11012 | # This implies no fast_install, which is unacceptable. |
11013 | # Some rework will be needed to allow for fast_install | |
11014 | # before this can be enabled. | |
11015 | hardcode_into_libs=yes | |
8d138742 CE |
11016 | |
11017 | # Add ABI-specific directories to the system library path. | |
11018 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11019 | |
d50284c4 CE |
11020 | # Ideally, we could use ldconfig to report *all* directores which are |
11021 | # searched for libraries, however this is still not possible. Aside from not | |
11022 | # being certain /sbin/ldconfig is available, command | |
11023 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11024 | # even though it is searched at run-time. Try to do the best guess by | |
11025 | # appending ld.so.conf contents (and includes) to the search path. | |
d9898ee8 | 11026 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11027 | 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 | 11028 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 11029 | fi |
11030 | ||
11031 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11032 | # powerpc, because MkLinux only supported shared libraries with the | |
11033 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11034 | # most powerpc-linux boxes support dynamic linking these days and | |
11035 | # people can always --disable-shared, the test was removed, and we | |
11036 | # assume the GNU/Linux dynamic linker is in use. | |
11037 | dynamic_linker='GNU/Linux ld.so' | |
11038 | ;; | |
11039 | ||
d9898ee8 | 11040 | netbsd*) |
11041 | version_type=sunos | |
11042 | need_lib_prefix=no | |
11043 | need_version=no | |
8d138742 | 11044 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d50284c4 | 11045 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11047 | dynamic_linker='NetBSD (a.out) ld.so' | |
11048 | else | |
d50284c4 CE |
11049 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11050 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11051 | dynamic_linker='NetBSD ld.elf_so' |
11052 | fi | |
11053 | shlibpath_var=LD_LIBRARY_PATH | |
11054 | shlibpath_overrides_runpath=yes | |
11055 | hardcode_into_libs=yes | |
11056 | ;; | |
11057 | ||
11058 | newsos6) | |
b0322a85 | 11059 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11060 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11061 | shlibpath_var=LD_LIBRARY_PATH |
11062 | shlibpath_overrides_runpath=yes | |
11063 | ;; | |
11064 | ||
8d138742 CE |
11065 | *nto* | *qnx*) |
11066 | version_type=qnx | |
d9898ee8 | 11067 | need_lib_prefix=no |
11068 | need_version=no | |
d50284c4 CE |
11069 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11070 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11071 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11072 | shlibpath_overrides_runpath=no |
11073 | hardcode_into_libs=yes | |
11074 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 11075 | ;; |
11076 | ||
d50284c4 | 11077 | openbsd* | bitrig*) |
d9898ee8 | 11078 | version_type=sunos |
d50284c4 | 11079 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 11080 | need_lib_prefix=no |
d50284c4 CE |
11081 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11082 | need_version=no | |
d9898ee8 | 11083 | else |
d50284c4 | 11084 | need_version=yes |
d9898ee8 | 11085 | fi |
d50284c4 CE |
11086 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11087 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11088 | shlibpath_var=LD_LIBRARY_PATH | |
11089 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11090 | ;; |
11091 | ||
11092 | os2*) | |
11093 | libname_spec='$name' | |
d50284c4 CE |
11094 | version_type=windows |
11095 | shrext_cmds=.dll | |
11096 | need_version=no | |
d9898ee8 | 11097 | need_lib_prefix=no |
d50284c4 CE |
11098 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11099 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11100 | v=$($ECHO $release$versuffix | tr -d .-); | |
11101 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11102 | $ECHO $n$v`$shared_ext' | |
11103 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 11104 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11105 | shlibpath_var=BEGINLIBPATH |
11106 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11107 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11108 | postinstall_cmds='base_file=`basename \$file`~ | |
11109 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11110 | dldir=$destdir/`dirname \$dlpath`~ | |
11111 | test -d \$dldir || mkdir -p \$dldir~ | |
11112 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11113 | chmod a+x \$dldir/$dlname~ | |
11114 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11115 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11116 | fi' | |
11117 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11118 | dlpath=$dir/\$dldll~ | |
11119 | $RM \$dlpath' | |
d9898ee8 | 11120 | ;; |
11121 | ||
11122 | osf3* | osf4* | osf5*) | |
11123 | version_type=osf | |
11124 | need_lib_prefix=no | |
11125 | need_version=no | |
d50284c4 CE |
11126 | soname_spec='$libname$release$shared_ext$major' |
11127 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11128 | shlibpath_var=LD_LIBRARY_PATH |
11129 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11130 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11131 | ;; |
11132 | ||
ac40fd9e | 11133 | rdos*) |
11134 | dynamic_linker=no | |
11135 | ;; | |
11136 | ||
d9898ee8 | 11137 | solaris*) |
b0322a85 | 11138 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11139 | need_lib_prefix=no |
11140 | need_version=no | |
d50284c4 CE |
11141 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11142 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11143 | shlibpath_var=LD_LIBRARY_PATH |
11144 | shlibpath_overrides_runpath=yes | |
11145 | hardcode_into_libs=yes | |
11146 | # ldd complains unless libraries are executable | |
11147 | postinstall_cmds='chmod +x $lib' | |
11148 | ;; | |
11149 | ||
11150 | sunos4*) | |
11151 | version_type=sunos | |
d50284c4 | 11152 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11153 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11154 | shlibpath_var=LD_LIBRARY_PATH | |
11155 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11156 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11157 | need_lib_prefix=no |
11158 | fi | |
11159 | need_version=yes | |
11160 | ;; | |
11161 | ||
11162 | sysv4 | sysv4.3*) | |
b0322a85 | 11163 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11164 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11165 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11166 | shlibpath_var=LD_LIBRARY_PATH |
11167 | case $host_vendor in | |
11168 | sni) | |
11169 | shlibpath_overrides_runpath=no | |
11170 | need_lib_prefix=no | |
d9898ee8 | 11171 | runpath_var=LD_RUN_PATH |
11172 | ;; | |
11173 | siemens) | |
11174 | need_lib_prefix=no | |
11175 | ;; | |
11176 | motorola) | |
11177 | need_lib_prefix=no | |
11178 | need_version=no | |
11179 | shlibpath_overrides_runpath=no | |
11180 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11181 | ;; | |
11182 | esac | |
11183 | ;; | |
11184 | ||
11185 | sysv4*MP*) | |
d50284c4 | 11186 | if test -d /usr/nec; then |
b0322a85 | 11187 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11188 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11189 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 11190 | shlibpath_var=LD_LIBRARY_PATH |
11191 | fi | |
11192 | ;; | |
11193 | ||
11194 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 11195 | version_type=sco |
d9898ee8 | 11196 | need_lib_prefix=no |
11197 | need_version=no | |
d50284c4 CE |
11198 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11199 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11200 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 11201 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11202 | hardcode_into_libs=yes |
d50284c4 | 11203 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11204 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 11205 | else |
11206 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 11207 | case $host_os in |
11208 | sco3.2v5*) | |
11209 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11210 | ;; | |
11211 | esac | |
11212 | fi | |
11213 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11214 | ;; | |
11215 | ||
8d138742 CE |
11216 | tpf*) |
11217 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11218 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11219 | need_lib_prefix=no |
11220 | need_version=no | |
d50284c4 | 11221 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11222 | shlibpath_var=LD_LIBRARY_PATH |
11223 | shlibpath_overrides_runpath=no | |
11224 | hardcode_into_libs=yes | |
11225 | ;; | |
11226 | ||
d9898ee8 | 11227 | uts4*) |
b0322a85 | 11228 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11229 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11230 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11231 | shlibpath_var=LD_LIBRARY_PATH |
11232 | ;; | |
11233 | ||
11234 | *) | |
11235 | dynamic_linker=no | |
11236 | ;; | |
11237 | esac | |
b0322a85 | 11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11239 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11240 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 11241 | |
11242 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 11243 | if test yes = "$GCC"; then |
d9898ee8 | 11244 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11245 | fi | |
11246 | ||
d50284c4 CE |
11247 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11248 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
d9898ee8 | 11249 | fi |
d50284c4 CE |
11250 | |
11251 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11252 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
d9898ee8 | 11253 | fi |
11254 | ||
d50284c4 CE |
11255 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11256 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11257 | ||
11258 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11259 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11260 | ||
11261 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11262 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
d9898ee8 | 11269 | |
d9898ee8 | 11270 | |
d9898ee8 | 11271 | |
d9898ee8 | 11272 | |
d9898ee8 | 11273 | |
d9898ee8 | 11274 | |
d9898ee8 | 11275 | |
d9898ee8 | 11276 | |
d9898ee8 | 11277 | |
d9898ee8 | 11278 | |
d9898ee8 | 11279 | |
d9898ee8 | 11280 | |
d9898ee8 | 11281 | |
d9898ee8 | 11282 | |
d9898ee8 | 11283 | |
d9898ee8 | 11284 | |
d9898ee8 | 11285 | |
d9898ee8 | 11286 | |
d9898ee8 | 11287 | |
d9898ee8 | 11288 | |
d9898ee8 | 11289 | |
d9898ee8 | 11290 | |
d9898ee8 | 11291 | |
d9898ee8 | 11292 | |
d9898ee8 | 11293 | |
d9898ee8 | 11294 | |
d9898ee8 | 11295 | |
d9898ee8 | 11296 | |
d9898ee8 | 11297 | |
d9898ee8 | 11298 | |
d9898ee8 | 11299 | |
d9898ee8 | 11300 | |
d9898ee8 | 11301 | |
d9898ee8 | 11302 | |
d9898ee8 | 11303 | |
d9898ee8 | 11304 | |
d9898ee8 | 11305 | |
d9898ee8 | 11306 | |
d9898ee8 | 11307 | |
d9898ee8 | 11308 | |
d9898ee8 | 11309 | |
d9898ee8 | 11310 | |
d9898ee8 | 11311 | |
d9898ee8 | 11312 | |
d9898ee8 | 11313 | |
d9898ee8 | 11314 | |
d9898ee8 | 11315 | |
d9898ee8 | 11316 | |
d9898ee8 | 11317 | |
d9898ee8 | 11318 | |
d9898ee8 | 11319 | |
d9898ee8 | 11320 | |
d9898ee8 | 11321 | |
d9898ee8 | 11322 | |
d9898ee8 | 11323 | |
d9898ee8 | 11324 | |
d9898ee8 | 11325 | |
d9898ee8 | 11326 | |
d9898ee8 | 11327 | |
d9898ee8 | 11328 | |
d9898ee8 | 11329 | |
d9898ee8 | 11330 | |
d9898ee8 | 11331 | |
d9898ee8 | 11332 | |
d9898ee8 | 11333 | |
d9898ee8 | 11334 | |
d9898ee8 | 11335 | |
d9898ee8 | 11336 | |
d9898ee8 | 11337 | |
d9898ee8 | 11338 | |
d9898ee8 | 11339 | |
d9898ee8 | 11340 | |
d9898ee8 | 11341 | |
d9898ee8 | 11342 | |
d9898ee8 | 11343 | |
d9898ee8 | 11344 | |
d9898ee8 | 11345 | |
d9898ee8 | 11346 | |
d9898ee8 | 11347 | |
d9898ee8 | 11348 | |
d9898ee8 | 11349 | |
d9898ee8 | 11350 | |
d9898ee8 | 11351 | |
d9898ee8 | 11352 | |
d9898ee8 | 11353 | |
d9898ee8 | 11354 | |
b0322a85 CE |
11355 | |
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11361 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11362 | hardcode_action= | |
11363 | if test -n "$hardcode_libdir_flag_spec" || | |
11364 | test -n "$runpath_var" || | |
d50284c4 | 11365 | test yes = "$hardcode_automatic"; then |
8d138742 CE |
11366 | |
11367 | # We can hardcode non-existent directories. | |
d50284c4 | 11368 | if test no != "$hardcode_direct" && |
8d138742 CE |
11369 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11370 | # have to relink, otherwise we might link with an installed library | |
11371 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11372 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11373 | test no != "$hardcode_minus_L"; then | |
8d138742 CE |
11374 | # Linking always hardcodes the temporary library directory. |
11375 | hardcode_action=relink | |
11376 | else | |
11377 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11378 | hardcode_action=immediate | |
11379 | fi | |
11380 | else | |
11381 | # We cannot hardcode anything, or else we can only hardcode existing | |
11382 | # directories. | |
11383 | hardcode_action=unsupported | |
11384 | fi | |
b0322a85 | 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 CE |
11386 | $as_echo "$hardcode_action" >&6; } |
11387 | ||
d50284c4 CE |
11388 | if test relink = "$hardcode_action" || |
11389 | test yes = "$inherit_rpath"; then | |
8d138742 CE |
11390 | # Fast installation is not supported |
11391 | enable_fast_install=no | |
d50284c4 CE |
11392 | elif test yes = "$shlibpath_overrides_runpath" || |
11393 | test no = "$enable_shared"; then | |
8d138742 CE |
11394 | # Fast installation is not necessary |
11395 | enable_fast_install=needless | |
11396 | fi | |
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
d50284c4 | 11403 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
11404 | enable_dlopen=unknown |
11405 | enable_dlopen_self=unknown | |
11406 | enable_dlopen_self_static=unknown | |
11407 | else | |
11408 | lt_cv_dlopen=no | |
11409 | lt_cv_dlopen_libs= | |
11410 | ||
11411 | case $host_os in | |
11412 | beos*) | |
d50284c4 | 11413 | lt_cv_dlopen=load_add_on |
8d138742 CE |
11414 | lt_cv_dlopen_libs= |
11415 | lt_cv_dlopen_self=yes | |
11416 | ;; | |
11417 | ||
11418 | mingw* | pw32* | cegcc*) | |
d50284c4 | 11419 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
11420 | lt_cv_dlopen_libs= |
11421 | ;; | |
11422 | ||
11423 | cygwin*) | |
d50284c4 | 11424 | lt_cv_dlopen=dlopen |
8d138742 CE |
11425 | lt_cv_dlopen_libs= |
11426 | ;; | |
11427 | ||
11428 | darwin*) | |
d50284c4 | 11429 | # if libdl is installed we need to link against it |
b0322a85 | 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11431 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11432 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11433 | $as_echo_n "(cached) " >&6 |
11434 | else | |
11435 | ac_check_lib_save_LIBS=$LIBS | |
11436 | LIBS="-ldl $LIBS" | |
b0322a85 | 11437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11438 | /* end confdefs.h. */ |
11439 | ||
11440 | /* Override any GCC internal prototype to avoid an error. | |
11441 | Use char because int might match the return type of a GCC | |
11442 | builtin and then its argument prototype would still apply. */ | |
11443 | #ifdef __cplusplus | |
11444 | extern "C" | |
11445 | #endif | |
11446 | char dlopen (); | |
11447 | int | |
11448 | main () | |
11449 | { | |
11450 | return dlopen (); | |
11451 | ; | |
11452 | return 0; | |
11453 | } | |
11454 | _ACEOF | |
b0322a85 | 11455 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11456 | ac_cv_lib_dl_dlopen=yes |
11457 | else | |
b0322a85 | 11458 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11459 | fi |
b0322a85 CE |
11460 | rm -f core conftest.err conftest.$ac_objext \ |
11461 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11462 | LIBS=$ac_check_lib_save_LIBS |
11463 | fi | |
b0322a85 | 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11465 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11466 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11467 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
b0322a85 | 11468 | else |
8d138742 | 11469 | |
d50284c4 | 11470 | lt_cv_dlopen=dyld |
b0322a85 CE |
11471 | lt_cv_dlopen_libs= |
11472 | lt_cv_dlopen_self=yes | |
8d138742 | 11473 | |
8d138742 | 11474 | fi |
b0322a85 CE |
11475 | |
11476 | ;; | |
11477 | ||
d50284c4 CE |
11478 | tpf*) |
11479 | # Don't try to run any link tests for TPF. We know it's impossible | |
11480 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11481 | lt_cv_dlopen=dlopen | |
11482 | lt_cv_dlopen_libs= | |
11483 | lt_cv_dlopen_self=no | |
11484 | ;; | |
11485 | ||
b0322a85 CE |
11486 | *) |
11487 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11488 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11489 | lt_cv_dlopen=shl_load |
8d138742 | 11490 | else |
b0322a85 | 11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 11492 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 11493 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
11494 | $as_echo_n "(cached) " >&6 |
11495 | else | |
11496 | ac_check_lib_save_LIBS=$LIBS | |
11497 | LIBS="-ldld $LIBS" | |
b0322a85 | 11498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11499 | /* end confdefs.h. */ |
11500 | ||
11501 | /* Override any GCC internal prototype to avoid an error. | |
11502 | Use char because int might match the return type of a GCC | |
11503 | builtin and then its argument prototype would still apply. */ | |
11504 | #ifdef __cplusplus | |
11505 | extern "C" | |
11506 | #endif | |
11507 | char shl_load (); | |
11508 | int | |
11509 | main () | |
11510 | { | |
11511 | return shl_load (); | |
11512 | ; | |
11513 | return 0; | |
11514 | } | |
11515 | _ACEOF | |
b0322a85 | 11516 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11517 | ac_cv_lib_dld_shl_load=yes |
11518 | else | |
b0322a85 | 11519 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11520 | fi |
b0322a85 CE |
11521 | rm -f core conftest.err conftest.$ac_objext \ |
11522 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11523 | LIBS=$ac_check_lib_save_LIBS |
11524 | fi | |
b0322a85 | 11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 11526 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 11527 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d50284c4 | 11528 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
8d138742 | 11529 | else |
b0322a85 CE |
11530 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11531 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11532 | lt_cv_dlopen=dlopen |
8d138742 | 11533 | else |
b0322a85 | 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11535 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11536 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11537 | $as_echo_n "(cached) " >&6 |
11538 | else | |
11539 | ac_check_lib_save_LIBS=$LIBS | |
11540 | LIBS="-ldl $LIBS" | |
b0322a85 | 11541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11542 | /* end confdefs.h. */ |
11543 | ||
11544 | /* Override any GCC internal prototype to avoid an error. | |
11545 | Use char because int might match the return type of a GCC | |
11546 | builtin and then its argument prototype would still apply. */ | |
11547 | #ifdef __cplusplus | |
11548 | extern "C" | |
11549 | #endif | |
11550 | char dlopen (); | |
11551 | int | |
11552 | main () | |
11553 | { | |
11554 | return dlopen (); | |
11555 | ; | |
11556 | return 0; | |
11557 | } | |
11558 | _ACEOF | |
b0322a85 | 11559 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11560 | ac_cv_lib_dl_dlopen=yes |
11561 | else | |
b0322a85 | 11562 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11563 | fi |
b0322a85 CE |
11564 | rm -f core conftest.err conftest.$ac_objext \ |
11565 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11566 | LIBS=$ac_check_lib_save_LIBS |
11567 | fi | |
b0322a85 | 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11569 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11570 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11571 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11572 | else |
b0322a85 | 11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11574 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11575 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11576 | $as_echo_n "(cached) " >&6 |
11577 | else | |
11578 | ac_check_lib_save_LIBS=$LIBS | |
11579 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11581 | /* end confdefs.h. */ |
11582 | ||
11583 | /* Override any GCC internal prototype to avoid an error. | |
11584 | Use char because int might match the return type of a GCC | |
11585 | builtin and then its argument prototype would still apply. */ | |
11586 | #ifdef __cplusplus | |
11587 | extern "C" | |
11588 | #endif | |
11589 | char dlopen (); | |
11590 | int | |
11591 | main () | |
11592 | { | |
11593 | return dlopen (); | |
11594 | ; | |
11595 | return 0; | |
11596 | } | |
11597 | _ACEOF | |
b0322a85 | 11598 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11599 | ac_cv_lib_svld_dlopen=yes |
11600 | else | |
b0322a85 | 11601 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11602 | fi |
b0322a85 CE |
11603 | rm -f core conftest.err conftest.$ac_objext \ |
11604 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11605 | LIBS=$ac_check_lib_save_LIBS |
11606 | fi | |
b0322a85 | 11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11608 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11609 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 11610 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 11611 | else |
b0322a85 | 11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11613 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11614 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11615 | $as_echo_n "(cached) " >&6 |
11616 | else | |
11617 | ac_check_lib_save_LIBS=$LIBS | |
11618 | LIBS="-ldld $LIBS" | |
b0322a85 | 11619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11620 | /* end confdefs.h. */ |
11621 | ||
11622 | /* Override any GCC internal prototype to avoid an error. | |
11623 | Use char because int might match the return type of a GCC | |
11624 | builtin and then its argument prototype would still apply. */ | |
11625 | #ifdef __cplusplus | |
11626 | extern "C" | |
11627 | #endif | |
11628 | char dld_link (); | |
11629 | int | |
11630 | main () | |
11631 | { | |
11632 | return dld_link (); | |
11633 | ; | |
11634 | return 0; | |
11635 | } | |
11636 | _ACEOF | |
b0322a85 | 11637 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11638 | ac_cv_lib_dld_dld_link=yes |
11639 | else | |
b0322a85 | 11640 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11641 | fi |
b0322a85 CE |
11642 | rm -f core conftest.err conftest.$ac_objext \ |
11643 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11644 | LIBS=$ac_check_lib_save_LIBS |
11645 | fi | |
b0322a85 | 11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11647 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11648 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 11649 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 CE |
11650 | fi |
11651 | ||
11652 | ||
11653 | fi | |
11654 | ||
11655 | ||
11656 | fi | |
11657 | ||
11658 | ||
11659 | fi | |
11660 | ||
11661 | ||
11662 | fi | |
11663 | ||
11664 | ||
11665 | fi | |
11666 | ||
11667 | ;; | |
11668 | esac | |
11669 | ||
d50284c4 | 11670 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 11671 | enable_dlopen=no |
d50284c4 CE |
11672 | else |
11673 | enable_dlopen=yes | |
8d138742 CE |
11674 | fi |
11675 | ||
11676 | case $lt_cv_dlopen in | |
11677 | dlopen) | |
d50284c4 CE |
11678 | save_CPPFLAGS=$CPPFLAGS |
11679 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
8d138742 | 11680 | |
d50284c4 | 11681 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
11682 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11683 | ||
d50284c4 | 11684 | save_LIBS=$LIBS |
8d138742 CE |
11685 | LIBS="$lt_cv_dlopen_libs $LIBS" |
11686 | ||
b0322a85 | 11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11688 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11689 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
11690 | $as_echo_n "(cached) " >&6 |
11691 | else | |
d50284c4 | 11692 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11693 | lt_cv_dlopen_self=cross |
11694 | else | |
11695 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11696 | lt_status=$lt_dlunknown | |
11697 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11698 | #line $LINENO "configure" |
8d138742 CE |
11699 | #include "confdefs.h" |
11700 | ||
11701 | #if HAVE_DLFCN_H | |
11702 | #include <dlfcn.h> | |
11703 | #endif | |
11704 | ||
11705 | #include <stdio.h> | |
11706 | ||
11707 | #ifdef RTLD_GLOBAL | |
11708 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11709 | #else | |
11710 | # ifdef DL_GLOBAL | |
11711 | # define LT_DLGLOBAL DL_GLOBAL | |
11712 | # else | |
11713 | # define LT_DLGLOBAL 0 | |
11714 | # endif | |
11715 | #endif | |
11716 | ||
11717 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11718 | find out it does not work in some platform. */ | |
11719 | #ifndef LT_DLLAZY_OR_NOW | |
11720 | # ifdef RTLD_LAZY | |
11721 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11722 | # else | |
11723 | # ifdef DL_LAZY | |
11724 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11725 | # else | |
11726 | # ifdef RTLD_NOW | |
11727 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11728 | # else | |
11729 | # ifdef DL_NOW | |
11730 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11731 | # else | |
11732 | # define LT_DLLAZY_OR_NOW 0 | |
11733 | # endif | |
11734 | # endif | |
11735 | # endif | |
11736 | # endif | |
11737 | #endif | |
11738 | ||
d50284c4 | 11739 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11740 | correspondingly for the symbols needed. */ |
d50284c4 | 11741 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11742 | int fnord () __attribute__((visibility("default"))); |
11743 | #endif | |
11744 | ||
11745 | int fnord () { return 42; } | |
8d138742 CE |
11746 | int main () |
11747 | { | |
11748 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11749 | int status = $lt_dlunknown; | |
11750 | ||
11751 | if (self) | |
11752 | { | |
11753 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11754 | else |
11755 | { | |
11756 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11757 | else puts (dlerror ()); | |
11758 | } | |
8d138742 CE |
11759 | /* dlclose (self); */ |
11760 | } | |
11761 | else | |
11762 | puts (dlerror ()); | |
d9898ee8 | 11763 | |
8d138742 CE |
11764 | return status; |
11765 | } | |
11766 | _LT_EOF | |
b0322a85 | 11767 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11768 | (eval $ac_link) 2>&5 |
11769 | ac_status=$? | |
b0322a85 | 11770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11771 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11772 | (./conftest; exit; ) >&5 2>/dev/null |
11773 | lt_status=$? | |
11774 | case x$lt_status in | |
11775 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11776 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11777 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11778 | esac | |
11779 | else : | |
11780 | # compilation failed | |
11781 | lt_cv_dlopen_self=no | |
11782 | fi | |
11783 | fi | |
11784 | rm -fr conftest* | |
d9898ee8 | 11785 | |
d9898ee8 | 11786 | |
8d138742 | 11787 | fi |
b0322a85 | 11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11789 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11790 | |
d50284c4 | 11791 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 11792 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11794 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11795 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 CE |
11796 | $as_echo_n "(cached) " >&6 |
11797 | else | |
d50284c4 | 11798 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11799 | lt_cv_dlopen_self_static=cross |
11800 | else | |
11801 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11802 | lt_status=$lt_dlunknown | |
11803 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11804 | #line $LINENO "configure" |
8d138742 | 11805 | #include "confdefs.h" |
d9898ee8 | 11806 | |
8d138742 CE |
11807 | #if HAVE_DLFCN_H |
11808 | #include <dlfcn.h> | |
11809 | #endif | |
d9898ee8 | 11810 | |
8d138742 | 11811 | #include <stdio.h> |
d9898ee8 | 11812 | |
8d138742 CE |
11813 | #ifdef RTLD_GLOBAL |
11814 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11815 | #else | |
11816 | # ifdef DL_GLOBAL | |
11817 | # define LT_DLGLOBAL DL_GLOBAL | |
11818 | # else | |
11819 | # define LT_DLGLOBAL 0 | |
11820 | # endif | |
11821 | #endif | |
d9898ee8 | 11822 | |
8d138742 CE |
11823 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11824 | find out it does not work in some platform. */ | |
11825 | #ifndef LT_DLLAZY_OR_NOW | |
11826 | # ifdef RTLD_LAZY | |
11827 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11828 | # else | |
11829 | # ifdef DL_LAZY | |
11830 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11831 | # else | |
11832 | # ifdef RTLD_NOW | |
11833 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11834 | # else | |
11835 | # ifdef DL_NOW | |
11836 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11837 | # else | |
11838 | # define LT_DLLAZY_OR_NOW 0 | |
11839 | # endif | |
11840 | # endif | |
11841 | # endif | |
11842 | # endif | |
11843 | #endif | |
d9898ee8 | 11844 | |
d50284c4 | 11845 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11846 | correspondingly for the symbols needed. */ |
d50284c4 | 11847 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11848 | int fnord () __attribute__((visibility("default"))); |
11849 | #endif | |
11850 | ||
11851 | int fnord () { return 42; } | |
8d138742 CE |
11852 | int main () |
11853 | { | |
11854 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11855 | int status = $lt_dlunknown; | |
d9898ee8 | 11856 | |
8d138742 CE |
11857 | if (self) |
11858 | { | |
11859 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11860 | else |
11861 | { | |
11862 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11863 | else puts (dlerror ()); | |
11864 | } | |
8d138742 CE |
11865 | /* dlclose (self); */ |
11866 | } | |
11867 | else | |
11868 | puts (dlerror ()); | |
d9898ee8 | 11869 | |
8d138742 CE |
11870 | return status; |
11871 | } | |
11872 | _LT_EOF | |
b0322a85 | 11873 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11874 | (eval $ac_link) 2>&5 |
11875 | ac_status=$? | |
b0322a85 | 11876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11877 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11878 | (./conftest; exit; ) >&5 2>/dev/null |
11879 | lt_status=$? | |
11880 | case x$lt_status in | |
11881 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11882 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11883 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11884 | esac | |
11885 | else : | |
11886 | # compilation failed | |
11887 | lt_cv_dlopen_self_static=no | |
11888 | fi | |
11889 | fi | |
11890 | rm -fr conftest* | |
d9898ee8 | 11891 | |
11892 | ||
d9898ee8 | 11893 | fi |
b0322a85 | 11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11895 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11896 | fi | |
d9898ee8 | 11897 | |
d50284c4 CE |
11898 | CPPFLAGS=$save_CPPFLAGS |
11899 | LDFLAGS=$save_LDFLAGS | |
11900 | LIBS=$save_LIBS | |
8d138742 CE |
11901 | ;; |
11902 | esac | |
d9898ee8 | 11903 | |
8d138742 CE |
11904 | case $lt_cv_dlopen_self in |
11905 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11906 | *) enable_dlopen_self=unknown ;; | |
11907 | esac | |
d9898ee8 | 11908 | |
8d138742 CE |
11909 | case $lt_cv_dlopen_self_static in |
11910 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11911 | *) enable_dlopen_self_static=unknown ;; | |
11912 | esac | |
11913 | fi | |
d9898ee8 | 11914 | |
d9898ee8 | 11915 | |
d9898ee8 | 11916 | |
11917 | ||
d9898ee8 | 11918 | |
d9898ee8 | 11919 | |
d9898ee8 | 11920 | |
d9898ee8 | 11921 | |
d9898ee8 | 11922 | |
d9898ee8 | 11923 | |
d9898ee8 | 11924 | |
d9898ee8 | 11925 | |
11926 | ||
d9898ee8 | 11927 | |
d9898ee8 | 11928 | |
11929 | ||
d9898ee8 | 11930 | |
8d138742 CE |
11931 | striplib= |
11932 | old_striplib= | |
b0322a85 | 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11934 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11935 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11936 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11937 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11939 | $as_echo "yes" >&6; } |
11940 | else | |
11941 | # FIXME - insert some real tests, host_os isn't really good enough | |
11942 | case $host_os in | |
11943 | darwin*) | |
d50284c4 | 11944 | if test -n "$STRIP"; then |
8d138742 CE |
11945 | striplib="$STRIP -x" |
11946 | old_striplib="$STRIP -S" | |
b0322a85 | 11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11948 | $as_echo "yes" >&6; } |
11949 | else | |
b0322a85 | 11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11951 | $as_echo "no" >&6; } |
11952 | fi | |
11953 | ;; | |
11954 | *) | |
b0322a85 | 11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 11956 | $as_echo "no" >&6; } |
d9898ee8 | 11957 | ;; |
11958 | esac | |
8d138742 | 11959 | fi |
d9898ee8 | 11960 | |
d9898ee8 | 11961 | |
d9898ee8 | 11962 | |
d9898ee8 | 11963 | |
d9898ee8 | 11964 | |
d9898ee8 | 11965 | |
d9898ee8 | 11966 | |
d9898ee8 | 11967 | |
d9898ee8 | 11968 | |
d9898ee8 | 11969 | |
d9898ee8 | 11970 | |
d9898ee8 | 11971 | |
d50284c4 | 11972 | # Report what library types will actually be built |
b0322a85 | 11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11974 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 11976 | $as_echo "$can_build_shared" >&6; } |
d9898ee8 | 11977 | |
b0322a85 | 11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 11979 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 11980 | test no = "$can_build_shared" && enable_shared=no |
d9898ee8 | 11981 | |
8d138742 CE |
11982 | # On AIX, shared libraries and static libraries use the same namespace, and |
11983 | # are all built from PIC. | |
11984 | case $host_os in | |
11985 | aix3*) | |
d50284c4 | 11986 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
11987 | if test -n "$RANLIB"; then |
11988 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11989 | postinstall_cmds='$RANLIB $lib' | |
11990 | fi | |
11991 | ;; | |
d9898ee8 | 11992 | |
8d138742 | 11993 | aix[4-9]*) |
d50284c4 CE |
11994 | if test ia64 != "$host_cpu"; then |
11995 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
11996 | yes,aix,yes) ;; # shared object as lib.so file only | |
11997 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
11998 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
11999 | esac | |
8d138742 CE |
12000 | fi |
12001 | ;; | |
12002 | esac | |
b0322a85 | 12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 12004 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 12005 | |
b0322a85 | 12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
12007 | $as_echo_n "checking whether to build static libraries... " >&6; } |
12008 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 12009 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 12011 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 12012 | |
d9898ee8 | 12013 | |
d9898ee8 | 12014 | |
d9898ee8 | 12015 | |
8d138742 CE |
12016 | fi |
12017 | ac_ext=c | |
12018 | ac_cpp='$CPP $CPPFLAGS' | |
12019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12022 | |
d50284c4 | 12023 | CC=$lt_save_CC |
d9898ee8 | 12024 | |
d9898ee8 | 12025 | |
d9898ee8 | 12026 | |
d9898ee8 | 12027 | |
d9898ee8 | 12028 | |
d9898ee8 | 12029 | |
d9898ee8 | 12030 | |
d9898ee8 | 12031 | |
d9898ee8 | 12032 | |
d9898ee8 | 12033 | |
d9898ee8 | 12034 | |
d9898ee8 | 12035 | |
d9898ee8 | 12036 | |
b0322a85 CE |
12037 | |
12038 | ||
8d138742 | 12039 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 12040 | |
d9898ee8 | 12041 | |
d9898ee8 | 12042 | |
d9898ee8 | 12043 | |
8d138742 CE |
12044 | # Only expand once: |
12045 | ||
12046 | ||
12047 | for ac_prog in perl5 perl | |
12048 | do | |
12049 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12050 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 12052 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 12053 | if ${ac_cv_path_PERL+:} false; then : |
8d138742 CE |
12054 | $as_echo_n "(cached) " >&6 |
12055 | else | |
12056 | case $PERL in | |
12057 | [\\/]* | ?:[\\/]*) | |
12058 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
12059 | ;; | |
12060 | *) | |
12061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12062 | for as_dir in $LPATH | |
12063 | do | |
12064 | IFS=$as_save_IFS | |
12065 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12066 | for ac_exec_ext in '' $ac_executable_extensions; do |
12067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 12068 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 12069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
12070 | break 2 |
12071 | fi | |
12072 | done | |
b0322a85 | 12073 | done |
8d138742 | 12074 | IFS=$as_save_IFS |
d9898ee8 | 12075 | |
8d138742 CE |
12076 | ;; |
12077 | esac | |
12078 | fi | |
12079 | PERL=$ac_cv_path_PERL | |
12080 | if test -n "$PERL"; then | |
b0322a85 | 12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
8d138742 CE |
12082 | $as_echo "$PERL" >&6; } |
12083 | else | |
b0322a85 | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12085 | $as_echo "no" >&6; } |
12086 | fi | |
d9898ee8 | 12087 | |
d9898ee8 | 12088 | |
8d138742 CE |
12089 | test -n "$PERL" && break |
12090 | done | |
12091 | test -n "$PERL" || PERL="perl" | |
d9898ee8 | 12092 | |
d9898ee8 | 12093 | |
8d138742 CE |
12094 | if test "$PERL" = "perl" |
12095 | then | |
b0322a85 | 12096 | as_fn_error $? "Perl not found." "$LINENO" 5 |
8d138742 | 12097 | fi |
d9898ee8 | 12098 | |
8d138742 CE |
12099 | if test "$GCC" = "yes" |
12100 | then | |
12101 | CFLAGS="$CFLAGS -Wall" | |
12102 | fi | |
d9898ee8 | 12103 | |
b0322a85 | 12104 | CFLAGS="$CFLAGS -I.. -I${srcdir}/.. -I../libs -I${srcdir}/../libs" |
d9898ee8 | 12105 | |
d9898ee8 | 12106 | |
d9898ee8 | 12107 | |
8d138742 | 12108 | # Check whether --with-userdb was given. |
b0322a85 | 12109 | if test "${with_userdb+set}" = set; then : |
8d138742 CE |
12110 | withval=$with_userdb; userdb="$withval" |
12111 | else | |
12112 | userdb="/etc/userdb" | |
12113 | fi | |
d9898ee8 | 12114 | |
d9898ee8 | 12115 | |
8d138742 | 12116 | USERDB="`echo $userdb | tr 'a-z' 'A-Z'`" |
d9898ee8 | 12117 | |
d9898ee8 | 12118 | |
d9898ee8 | 12119 | |
8d138742 | 12120 | # Check whether --with-userdbmandir was given. |
b0322a85 | 12121 | if test "${with_userdbmandir+set}" = set; then : |
8d138742 CE |
12122 | withval=$with_userdbmandir; mandir="$withval" |
12123 | fi | |
d9898ee8 | 12124 | |
d9898ee8 | 12125 | |
d9898ee8 | 12126 | |
8d138742 | 12127 | # Check whether --with-userdbtmpdir was given. |
b0322a85 | 12128 | if test "${with_userdbtmpdir+set}" = set; then : |
8d138742 CE |
12129 | withval=$with_userdbtmpdir; tmpdir="$withval" |
12130 | else | |
12131 | tmpdir="" | |
12132 | fi | |
d9898ee8 | 12133 | |
d9898ee8 | 12134 | |
d9898ee8 | 12135 | |
d9898ee8 | 12136 | |
8d138742 CE |
12137 | if test "$tmpdir" = "" |
12138 | then | |
12139 | tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'` | |
12140 | fi | |
d9898ee8 | 12141 | |
d9898ee8 | 12142 | |
d9898ee8 | 12143 | |
d9898ee8 | 12144 | |
d9898ee8 | 12145 | |
d9898ee8 | 12146 | |
d9898ee8 | 12147 | |
8d138742 | 12148 | # Check whether --with-makedatprog was given. |
b0322a85 | 12149 | if test "${with_makedatprog+set}" = set; then : |
8d138742 CE |
12150 | withval=$with_makedatprog; makedat="$withval" |
12151 | else | |
12152 | makedat="$bindir/makedat" | |
12153 | fi | |
d9898ee8 | 12154 | |
d9898ee8 | 12155 | |
d9898ee8 | 12156 | |
b0322a85 | 12157 | if test -d ${srcdir}/../libs/md5 |
8d138742 | 12158 | then |
d9898ee8 | 12159 | |
8d138742 CE |
12160 | cat >>confdefs.h <<_ACEOF |
12161 | #define HAVE_MD5 1 | |
12162 | _ACEOF | |
d9898ee8 | 12163 | |
b0322a85 | 12164 | MD5LIB=../libs/md5/libmd5.la |
8d138742 CE |
12165 | else |
12166 | MD5LIB="" | |
12167 | fi | |
d9898ee8 | 12168 | |
d9898ee8 | 12169 | |
b0322a85 | 12170 | if test -d ${srcdir}/../libs/sha1 |
8d138742 | 12171 | then |
b0322a85 | 12172 | SHA1LIB=../libs/sha1/libsha1.la |
8d138742 CE |
12173 | else |
12174 | SHA1LIB="" | |
12175 | fi | |
d9898ee8 | 12176 | |
d9898ee8 | 12177 | |
b0322a85 | 12178 | if test -d ${srcdir}/../libs/libhmac |
8d138742 | 12179 | then |
d9898ee8 | 12180 | |
8d138742 CE |
12181 | cat >>confdefs.h <<_ACEOF |
12182 | #define HAVE_HMAC 1 | |
12183 | _ACEOF | |
d9898ee8 | 12184 | |
b0322a85 | 12185 | HMACLIB=../libs/libhmac/libhmac.la |
8d138742 CE |
12186 | else |
12187 | HMACLIB="" | |
12188 | fi | |
d9898ee8 | 12189 | |
d9898ee8 | 12190 | |
b0322a85 | 12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 12192 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 12193 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
12194 | $as_echo_n "(cached) " >&6 |
12195 | else | |
b0322a85 | 12196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12197 | /* end confdefs.h. */ |
12198 | #include <stdlib.h> | |
12199 | #include <stdarg.h> | |
12200 | #include <string.h> | |
12201 | #include <float.h> | |
d9898ee8 | 12202 | |
8d138742 CE |
12203 | int |
12204 | main () | |
12205 | { | |
d9898ee8 | 12206 | |
8d138742 CE |
12207 | ; |
12208 | return 0; | |
12209 | } | |
12210 | _ACEOF | |
b0322a85 | 12211 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12212 | ac_cv_header_stdc=yes |
12213 | else | |
b0322a85 | 12214 | ac_cv_header_stdc=no |
8d138742 | 12215 | fi |
8d138742 | 12216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12217 | |
8d138742 CE |
12218 | if test $ac_cv_header_stdc = yes; then |
12219 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 12220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12221 | /* end confdefs.h. */ |
12222 | #include <string.h> | |
d9898ee8 | 12223 | |
8d138742 CE |
12224 | _ACEOF |
12225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12226 | $EGREP "memchr" >/dev/null 2>&1; then : |
12227 | ||
8d138742 CE |
12228 | else |
12229 | ac_cv_header_stdc=no | |
12230 | fi | |
12231 | rm -f conftest* | |
d9898ee8 | 12232 | |
8d138742 | 12233 | fi |
d9898ee8 | 12234 | |
8d138742 CE |
12235 | if test $ac_cv_header_stdc = yes; then |
12236 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 12237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12238 | /* end confdefs.h. */ |
12239 | #include <stdlib.h> | |
d9898ee8 | 12240 | |
8d138742 CE |
12241 | _ACEOF |
12242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12243 | $EGREP "free" >/dev/null 2>&1; then : |
12244 | ||
8d138742 CE |
12245 | else |
12246 | ac_cv_header_stdc=no | |
12247 | fi | |
12248 | rm -f conftest* | |
d9898ee8 | 12249 | |
8d138742 | 12250 | fi |
d9898ee8 | 12251 | |
8d138742 CE |
12252 | if test $ac_cv_header_stdc = yes; then |
12253 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 12254 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
12255 | : |
12256 | else | |
b0322a85 | 12257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12258 | /* end confdefs.h. */ |
12259 | #include <ctype.h> | |
12260 | #include <stdlib.h> | |
12261 | #if ((' ' & 0x0FF) == 0x020) | |
12262 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12263 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12264 | #else | |
12265 | # define ISLOWER(c) \ | |
12266 | (('a' <= (c) && (c) <= 'i') \ | |
12267 | || ('j' <= (c) && (c) <= 'r') \ | |
12268 | || ('s' <= (c) && (c) <= 'z')) | |
12269 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12270 | #endif | |
d9898ee8 | 12271 | |
8d138742 CE |
12272 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12273 | int | |
12274 | main () | |
12275 | { | |
12276 | int i; | |
12277 | for (i = 0; i < 256; i++) | |
12278 | if (XOR (islower (i), ISLOWER (i)) | |
12279 | || toupper (i) != TOUPPER (i)) | |
12280 | return 2; | |
12281 | return 0; | |
b0322a85 CE |
12282 | } |
12283 | _ACEOF | |
12284 | if ac_fn_c_try_run "$LINENO"; then : | |
12285 | ||
8d138742 | 12286 | else |
b0322a85 | 12287 | ac_cv_header_stdc=no |
8d138742 | 12288 | fi |
b0322a85 CE |
12289 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12290 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12291 | fi | |
12292 | ||
12293 | fi | |
12294 | fi | |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
12296 | $as_echo "$ac_cv_header_stdc" >&6; } | |
12297 | if test $ac_cv_header_stdc = yes; then | |
12298 | ||
12299 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
d9898ee8 | 12300 | |
8d138742 | 12301 | fi |
b0322a85 CE |
12302 | |
12303 | for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h | |
12304 | do : | |
12305 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12306 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12307 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
12308 | cat >>confdefs.h <<_ACEOF |
12309 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12310 | _ACEOF | |
d9898ee8 | 12311 | |
8d138742 | 12312 | fi |
d9898ee8 | 12313 | |
8d138742 | 12314 | done |
d9898ee8 | 12315 | |
b0322a85 | 12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
8d138742 | 12317 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
b0322a85 | 12318 | if ${ac_cv_header_time+:} false; then : |
8d138742 CE |
12319 | $as_echo_n "(cached) " >&6 |
12320 | else | |
b0322a85 | 12321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12322 | /* end confdefs.h. */ |
12323 | #include <sys/types.h> | |
12324 | #include <sys/time.h> | |
12325 | #include <time.h> | |
d9898ee8 | 12326 | |
8d138742 CE |
12327 | int |
12328 | main () | |
12329 | { | |
12330 | if ((struct tm *) 0) | |
12331 | return 0; | |
12332 | ; | |
12333 | return 0; | |
12334 | } | |
12335 | _ACEOF | |
b0322a85 | 12336 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12337 | ac_cv_header_time=yes |
12338 | else | |
b0322a85 | 12339 | ac_cv_header_time=no |
8d138742 | 12340 | fi |
8d138742 CE |
12341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12342 | fi | |
b0322a85 | 12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
8d138742 CE |
12344 | $as_echo "$ac_cv_header_time" >&6; } |
12345 | if test $ac_cv_header_time = yes; then | |
d9898ee8 | 12346 | |
b0322a85 | 12347 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
d9898ee8 | 12348 | |
8d138742 | 12349 | fi |
d9898ee8 | 12350 | |
12351 | ||
b0322a85 | 12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8d138742 | 12353 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 12354 | if ${ac_cv_c_const+:} false; then : |
8d138742 CE |
12355 | $as_echo_n "(cached) " >&6 |
12356 | else | |
b0322a85 | 12357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12358 | /* end confdefs.h. */ |
d9898ee8 | 12359 | |
8d138742 CE |
12360 | int |
12361 | main () | |
12362 | { | |
b0322a85 | 12363 | |
8d138742 | 12364 | #ifndef __cplusplus |
b0322a85 | 12365 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 12366 | typedef int charset[2]; |
b0322a85 | 12367 | const charset cs = { 0, 0 }; |
8d138742 CE |
12368 | /* SunOS 4.1.1 cc rejects this. */ |
12369 | char const *const *pcpcc; | |
12370 | char **ppc; | |
12371 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12372 | struct point {int x, y;}; | |
12373 | static struct point const zero = {0,0}; | |
12374 | /* AIX XL C 1.02.0.0 rejects this. | |
12375 | It does not let you subtract one const X* pointer from another in | |
12376 | an arm of an if-expression whose if-part is not a constant | |
12377 | expression */ | |
12378 | const char *g = "string"; | |
12379 | pcpcc = &g + (g ? g-g : 0); | |
12380 | /* HPUX 7.0 cc rejects these. */ | |
12381 | ++pcpcc; | |
12382 | ppc = (char**) pcpcc; | |
12383 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
12384 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
12385 | char tx; | |
12386 | char *t = &tx; | |
8d138742 | 12387 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
d9898ee8 | 12388 | |
8d138742 CE |
12389 | *t++ = 0; |
12390 | if (s) return 0; | |
12391 | } | |
12392 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12393 | int x[] = {25, 17}; | |
12394 | const int *foo = &x[0]; | |
12395 | ++foo; | |
12396 | } | |
12397 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12398 | typedef const int *iptr; | |
12399 | iptr p = 0; | |
12400 | ++p; | |
12401 | } | |
b0322a85 | 12402 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 12403 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
12404 | struct s { int j; const int *ap[3]; } bx; |
12405 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
12406 | } |
12407 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12408 | const int foo = 10; | |
12409 | if (!foo) return 0; | |
12410 | } | |
12411 | return !cs[0] && !zero.x; | |
12412 | #endif | |
d9898ee8 | 12413 | |
8d138742 CE |
12414 | ; |
12415 | return 0; | |
12416 | } | |
12417 | _ACEOF | |
b0322a85 | 12418 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12419 | ac_cv_c_const=yes |
12420 | else | |
b0322a85 | 12421 | ac_cv_c_const=no |
8d138742 | 12422 | fi |
8d138742 CE |
12423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12424 | fi | |
b0322a85 | 12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
12426 | $as_echo "$ac_cv_c_const" >&6; } |
12427 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 12428 | |
b0322a85 | 12429 | $as_echo "#define const /**/" >>confdefs.h |
d9898ee8 | 12430 | |
8d138742 | 12431 | fi |
dd184caf | 12432 | |
b0322a85 CE |
12433 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
12434 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
d9898ee8 | 12435 | |
8d138742 | 12436 | else |
d9898ee8 | 12437 | |
8d138742 CE |
12438 | cat >>confdefs.h <<_ACEOF |
12439 | #define pid_t int | |
12440 | _ACEOF | |
d9898ee8 | 12441 | |
8d138742 | 12442 | fi |
d9898ee8 | 12443 | |
b0322a85 | 12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8d138742 | 12445 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
b0322a85 | 12446 | if ${ac_cv_type_uid_t+:} false; then : |
8d138742 CE |
12447 | $as_echo_n "(cached) " >&6 |
12448 | else | |
b0322a85 | 12449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12450 | /* end confdefs.h. */ |
12451 | #include <sys/types.h> | |
d9898ee8 | 12452 | |
8d138742 CE |
12453 | _ACEOF |
12454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 | 12455 | $EGREP "uid_t" >/dev/null 2>&1; then : |
8d138742 | 12456 | ac_cv_type_uid_t=yes |
d9898ee8 | 12457 | else |
8d138742 | 12458 | ac_cv_type_uid_t=no |
dd184caf | 12459 | fi |
8d138742 | 12460 | rm -f conftest* |
dd184caf | 12461 | |
8d138742 | 12462 | fi |
b0322a85 | 12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8d138742 CE |
12464 | $as_echo "$ac_cv_type_uid_t" >&6; } |
12465 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 12466 | |
b0322a85 | 12467 | $as_echo "#define uid_t int" >>confdefs.h |
d9898ee8 | 12468 | |
12469 | ||
b0322a85 | 12470 | $as_echo "#define gid_t int" >>confdefs.h |
d9898ee8 | 12471 | |
dd184caf | 12472 | fi |
d9898ee8 | 12473 | |
b0322a85 | 12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
8d138742 | 12475 | $as_echo_n "checking return type of signal handlers... " >&6; } |
b0322a85 | 12476 | if ${ac_cv_type_signal+:} false; then : |
8d138742 CE |
12477 | $as_echo_n "(cached) " >&6 |
12478 | else | |
b0322a85 | 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12480 | /* end confdefs.h. */ |
12481 | #include <sys/types.h> | |
12482 | #include <signal.h> | |
d9898ee8 | 12483 | |
8d138742 CE |
12484 | int |
12485 | main () | |
12486 | { | |
12487 | return *(signal (0, 0)) (0) == 1; | |
12488 | ; | |
12489 | return 0; | |
12490 | } | |
12491 | _ACEOF | |
b0322a85 | 12492 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 12493 | ac_cv_type_signal=int |
d9898ee8 | 12494 | else |
b0322a85 | 12495 | ac_cv_type_signal=void |
8d138742 | 12496 | fi |
8d138742 CE |
12497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12498 | fi | |
b0322a85 | 12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
8d138742 | 12500 | $as_echo "$ac_cv_type_signal" >&6; } |
d9898ee8 | 12501 | |
8d138742 CE |
12502 | cat >>confdefs.h <<_ACEOF |
12503 | #define RETSIGTYPE $ac_cv_type_signal | |
12504 | _ACEOF | |
d9898ee8 | 12505 | |
d9898ee8 | 12506 | |
b0322a85 CE |
12507 | # Check whether --enable-largefile was given. |
12508 | if test "${enable_largefile+set}" = set; then : | |
12509 | enableval=$enable_largefile; | |
12510 | fi | |
d9898ee8 | 12511 | |
b0322a85 | 12512 | if test "$enable_largefile" != no; then |
d9898ee8 | 12513 | |
b0322a85 CE |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
12515 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
12516 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8d138742 CE |
12517 | $as_echo_n "(cached) " >&6 |
12518 | else | |
b0322a85 CE |
12519 | ac_cv_sys_largefile_CC=no |
12520 | if test "$GCC" != yes; then | |
12521 | ac_save_CC=$CC | |
12522 | while :; do | |
12523 | # IRIX 6.2 and later do not support large files by default, | |
12524 | # so use the C compiler's -n32 option if that helps. | |
12525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12526 | /* end confdefs.h. */ |
b0322a85 CE |
12527 | #include <sys/types.h> |
12528 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12529 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12530 | since some C++ compilers masquerading as C compilers | |
12531 | incorrectly reject 9223372036854775807. */ | |
12532 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12533 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12534 | && LARGE_OFF_T % 2147483647 == 1) | |
12535 | ? 1 : -1]; | |
8d138742 CE |
12536 | int |
12537 | main () | |
12538 | { | |
b0322a85 | 12539 | |
8d138742 CE |
12540 | ; |
12541 | return 0; | |
12542 | } | |
12543 | _ACEOF | |
b0322a85 CE |
12544 | if ac_fn_c_try_compile "$LINENO"; then : |
12545 | break | |
12546 | fi | |
12547 | rm -f core conftest.err conftest.$ac_objext | |
12548 | CC="$CC -n32" | |
12549 | if ac_fn_c_try_compile "$LINENO"; then : | |
12550 | ac_cv_sys_largefile_CC=' -n32'; break | |
12551 | fi | |
12552 | rm -f core conftest.err conftest.$ac_objext | |
12553 | break | |
12554 | done | |
12555 | CC=$ac_save_CC | |
12556 | rm -f conftest.$ac_ext | |
12557 | fi | |
12558 | fi | |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12560 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
12561 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12562 | CC=$CC$ac_cv_sys_largefile_CC | |
12563 | fi | |
12564 | ||
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
12566 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12567 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
12568 | $as_echo_n "(cached) " >&6 | |
8d138742 | 12569 | else |
b0322a85 CE |
12570 | while :; do |
12571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12572 | /* end confdefs.h. */ | |
12573 | #include <sys/types.h> | |
12574 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12575 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12576 | since some C++ compilers masquerading as C compilers | |
12577 | incorrectly reject 9223372036854775807. */ | |
12578 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12579 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12580 | && LARGE_OFF_T % 2147483647 == 1) | |
12581 | ? 1 : -1]; | |
12582 | int | |
12583 | main () | |
12584 | { | |
d9898ee8 | 12585 | |
b0322a85 CE |
12586 | ; |
12587 | return 0; | |
12588 | } | |
12589 | _ACEOF | |
12590 | if ac_fn_c_try_compile "$LINENO"; then : | |
12591 | ac_cv_sys_file_offset_bits=no; break | |
8d138742 | 12592 | fi |
b0322a85 CE |
12593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12595 | /* end confdefs.h. */ | |
12596 | #define _FILE_OFFSET_BITS 64 | |
12597 | #include <sys/types.h> | |
12598 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12599 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12600 | since some C++ compilers masquerading as C compilers | |
12601 | incorrectly reject 9223372036854775807. */ | |
12602 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12603 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12604 | && LARGE_OFF_T % 2147483647 == 1) | |
12605 | ? 1 : -1]; | |
12606 | int | |
12607 | main () | |
12608 | { | |
d9898ee8 | 12609 | |
b0322a85 CE |
12610 | ; |
12611 | return 0; | |
12612 | } | |
12613 | _ACEOF | |
12614 | if ac_fn_c_try_compile "$LINENO"; then : | |
12615 | ac_cv_sys_file_offset_bits=64; break | |
8d138742 | 12616 | fi |
b0322a85 CE |
12617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12618 | ac_cv_sys_file_offset_bits=unknown | |
12619 | break | |
12620 | done | |
8d138742 | 12621 | fi |
b0322a85 CE |
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
12623 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12624 | case $ac_cv_sys_file_offset_bits in #( | |
12625 | no | unknown) ;; | |
12626 | *) | |
12627 | cat >>confdefs.h <<_ACEOF | |
12628 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
12629 | _ACEOF | |
12630 | ;; | |
12631 | esac | |
12632 | rm -rf conftest* | |
12633 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12635 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12636 | if ${ac_cv_sys_large_files+:} false; then : | |
8d138742 | 12637 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12638 | else |
b0322a85 CE |
12639 | while :; do |
12640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12641 | /* end confdefs.h. */ | |
12642 | #include <sys/types.h> | |
12643 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12644 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12645 | since some C++ compilers masquerading as C compilers | |
12646 | incorrectly reject 9223372036854775807. */ | |
12647 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12648 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12649 | && LARGE_OFF_T % 2147483647 == 1) | |
12650 | ? 1 : -1]; | |
12651 | int | |
12652 | main () | |
12653 | { | |
12654 | ||
12655 | ; | |
12656 | return 0; | |
12657 | } | |
8d138742 | 12658 | _ACEOF |
b0322a85 CE |
12659 | if ac_fn_c_try_compile "$LINENO"; then : |
12660 | ac_cv_sys_large_files=no; break | |
12661 | fi | |
12662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12664 | /* end confdefs.h. */ |
b0322a85 CE |
12665 | #define _LARGE_FILES 1 |
12666 | #include <sys/types.h> | |
12667 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12668 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12669 | since some C++ compilers masquerading as C compilers | |
12670 | incorrectly reject 9223372036854775807. */ | |
12671 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12672 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12673 | && LARGE_OFF_T % 2147483647 == 1) | |
12674 | ? 1 : -1]; | |
12675 | int | |
12676 | main () | |
12677 | { | |
8d138742 | 12678 | |
b0322a85 CE |
12679 | ; |
12680 | return 0; | |
12681 | } | |
12682 | _ACEOF | |
12683 | if ac_fn_c_try_compile "$LINENO"; then : | |
12684 | ac_cv_sys_large_files=1; break | |
12685 | fi | |
12686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12687 | ac_cv_sys_large_files=unknown | |
12688 | break | |
12689 | done | |
12690 | fi | |
12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
12692 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12693 | case $ac_cv_sys_large_files in #( | |
12694 | no | unknown) ;; | |
12695 | *) | |
12696 | cat >>confdefs.h <<_ACEOF | |
12697 | #define _LARGE_FILES $ac_cv_sys_large_files | |
12698 | _ACEOF | |
12699 | ;; | |
12700 | esac | |
12701 | rm -rf conftest* | |
12702 | fi | |
dd184caf | 12703 | |
d9898ee8 | 12704 | |
b0322a85 CE |
12705 | fi |
12706 | ||
12707 | ||
12708 | ||
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | |
12710 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | |
12711 | if ${ac_cv_lib_crypt_crypt+:} false; then : | |
12712 | $as_echo_n "(cached) " >&6 | |
12713 | else | |
12714 | ac_check_lib_save_LIBS=$LIBS | |
12715 | LIBS="-lcrypt $LIBS" | |
12716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12717 | /* end confdefs.h. */ | |
d9898ee8 | 12718 | |
8d138742 CE |
12719 | /* Override any GCC internal prototype to avoid an error. |
12720 | Use char because int might match the return type of a GCC | |
12721 | builtin and then its argument prototype would still apply. */ | |
12722 | #ifdef __cplusplus | |
12723 | extern "C" | |
12724 | #endif | |
12725 | char crypt (); | |
8d138742 CE |
12726 | int |
12727 | main () | |
12728 | { | |
12729 | return crypt (); | |
12730 | ; | |
12731 | return 0; | |
12732 | } | |
d9898ee8 | 12733 | _ACEOF |
b0322a85 CE |
12734 | if ac_fn_c_try_link "$LINENO"; then : |
12735 | ac_cv_lib_crypt_crypt=yes | |
d9898ee8 | 12736 | else |
b0322a85 CE |
12737 | ac_cv_lib_crypt_crypt=no |
12738 | fi | |
12739 | rm -f core conftest.err conftest.$ac_objext \ | |
12740 | conftest$ac_exeext conftest.$ac_ext | |
12741 | LIBS=$ac_check_lib_save_LIBS | |
12742 | fi | |
12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | |
12744 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | |
12745 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | |
12746 | CRYPTLIBS="-lcrypt" | |
d9898ee8 | 12747 | fi |
12748 | ||
b0322a85 CE |
12749 | saveLIBS="$LIBS" |
12750 | LIBS="$CRYPTLIBS $LIBS" | |
12751 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | |
12752 | if test "x$ac_cv_func_crypt" = xyes; then : | |
d9898ee8 | 12753 | |
12754 | cat >>confdefs.h <<_ACEOF | |
8d138742 | 12755 | #define HAVE_CRYPT 1 |
d9898ee8 | 12756 | _ACEOF |
12757 | ||
d9898ee8 | 12758 | fi |
12759 | ||
8d138742 | 12760 | LIBS="$saveLIBS" |
b0322a85 | 12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5 |
8d138742 | 12762 | $as_echo_n "checking for crypt() prototype... " >&6; } |
b0322a85 | 12763 | if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then : |
8d138742 | 12764 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12765 | else |
b0322a85 | 12766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12767 | /* end confdefs.h. */ |
8d138742 CE |
12768 | |
12769 | #if HAVE_CRYPT_H | |
12770 | #include <crypt.h> | |
12771 | #endif | |
12772 | #if HAVE_UNISTD_H | |
12773 | #include <unistd.h> | |
12774 | #endif | |
12775 | int crypt(int, int); | |
12776 | ||
d9898ee8 | 12777 | |
12778 | int | |
12779 | main () | |
12780 | { | |
12781 | ||
12782 | ; | |
12783 | return 0; | |
12784 | } | |
12785 | _ACEOF | |
b0322a85 | 12786 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 12787 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
d9898ee8 | 12788 | else |
b0322a85 | 12789 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
d9898ee8 | 12790 | fi |
dd184caf | 12791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12792 | |
d9898ee8 | 12793 | |
d9898ee8 | 12794 | fi |
b0322a85 | 12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
8d138742 | 12796 | $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } |
d9898ee8 | 12797 | |
d9898ee8 | 12798 | |
8d138742 CE |
12799 | cat >>confdefs.h <<_ACEOF |
12800 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE | |
d9898ee8 | 12801 | _ACEOF |
d9898ee8 | 12802 | |
d9898ee8 | 12803 | |
d9898ee8 | 12804 | |
8d138742 | 12805 | for ac_func in isatty gettimeofday |
b0322a85 CE |
12806 | do : |
12807 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12808 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12809 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8d138742 CE |
12810 | cat >>confdefs.h <<_ACEOF |
12811 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12812 | _ACEOF | |
12813 | ||
12814 | fi | |
12815 | done | |
12816 | ||
12817 | ||
12818 | ||
12819 | # Check whether --with-random was given. | |
b0322a85 | 12820 | if test "${with_random+set}" = set; then : |
8d138742 CE |
12821 | withval=$with_random; random="$withval" |
12822 | else | |
12823 | random="y" | |
12824 | fi | |
12825 | ||
12826 | ||
12827 | case "$random" in | |
12828 | /*) | |
12829 | ;; | |
12830 | y*|1*) | |
b0322a85 | 12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5 |
8d138742 | 12832 | $as_echo_n "checking for random source... " >&6; } |
b0322a85 | 12833 | if ${userdb_cv_RANDOM+:} false; then : |
8d138742 | 12834 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12835 | else |
8d138742 CE |
12836 | if test -c /dev/urandom |
12837 | then | |
12838 | userdb_cv_RANDOM=/dev/urandom | |
12839 | else | |
12840 | if test -c /dev/random | |
12841 | then | |
12842 | userdb_cv_RANDOM=/dev/random | |
12843 | else | |
12844 | userdb_cv_RANDOM="none" | |
12845 | fi | |
12846 | fi | |
d9898ee8 | 12847 | |
d9898ee8 | 12848 | fi |
b0322a85 | 12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_RANDOM" >&5 |
8d138742 CE |
12850 | $as_echo "$userdb_cv_RANDOM" >&6; } |
12851 | random="$userdb_cv_RANDOM" | |
12852 | ;; | |
12853 | *) | |
12854 | random="none" | |
12855 | ;; | |
12856 | esac | |
12857 | ||
12858 | if test "$random" != "none" | |
12859 | then | |
dd184caf | 12860 | |
8d138742 CE |
12861 | cat >>confdefs.h <<_ACEOF |
12862 | #define RANDOM "$random" | |
12863 | _ACEOF | |
dd184caf | 12864 | |
d9898ee8 | 12865 | fi |
8d138742 | 12866 | |
b0322a85 | 12867 | if test -d ${srcdir}/../libs/docbook; then |
8d138742 CE |
12868 | HAVE_SGML_TRUE= |
12869 | HAVE_SGML_FALSE='#' | |
12870 | else | |
12871 | HAVE_SGML_TRUE='#' | |
12872 | HAVE_SGML_FALSE= | |
d9898ee8 | 12873 | fi |
d9898ee8 | 12874 | |
8d138742 CE |
12875 | |
12876 | ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb" | |
12877 | ||
12878 | cat >confcache <<\_ACEOF | |
12879 | # This file is a shell script that caches the results of configure | |
12880 | # tests run on this system so they can be shared between configure | |
12881 | # scripts and configure runs, see configure's option --config-cache. | |
12882 | # It is not useful on other systems. If it contains results you don't | |
12883 | # want to keep, you may remove or edit it. | |
12884 | # | |
12885 | # config.status only pays attention to the cache file if you give it | |
12886 | # the --recheck option to rerun configure. | |
12887 | # | |
12888 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12889 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12890 | # following values. | |
12891 | ||
d9898ee8 | 12892 | _ACEOF |
12893 | ||
8d138742 CE |
12894 | # The following way of writing the cache mishandles newlines in values, |
12895 | # but we know of no workaround that is simple, portable, and efficient. | |
12896 | # So, we kill variables containing newlines. | |
12897 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12898 | # and sets the high bit in the cache file unless we assign to the vars. | |
12899 | ( | |
12900 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12901 | eval ac_val=\$$ac_var | |
12902 | case $ac_val in #( | |
12903 | *${as_nl}*) | |
12904 | case $ac_var in #( | |
b0322a85 | 12905 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
12906 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12907 | esac | |
12908 | case $ac_var in #( | |
12909 | _ | IFS | as_nl) ;; #( | |
12910 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 12911 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
12912 | esac ;; |
12913 | esac | |
12914 | done | |
12915 | ||
12916 | (set) 2>&1 | | |
12917 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12918 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
12919 | # `set' does not quote correctly, so add quotes: double-quote |
12920 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
12921 | sed -n \ |
12922 | "s/'/'\\\\''/g; | |
12923 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12924 | ;; #( | |
12925 | *) | |
12926 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12927 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12928 | ;; | |
12929 | esac | | |
12930 | sort | |
12931 | ) | | |
12932 | sed ' | |
12933 | /^ac_cv_env_/b end | |
12934 | t clear | |
12935 | :clear | |
12936 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12937 | t end | |
12938 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12939 | :end' >>confcache | |
12940 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12941 | if test -w "$cache_file"; then | |
b0322a85 CE |
12942 | if test "x$cache_file" != "x/dev/null"; then |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 12944 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
12945 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12946 | cat confcache >"$cache_file" | |
12947 | else | |
12948 | case $cache_file in #( | |
12949 | */* | ?:*) | |
12950 | mv -f confcache "$cache_file"$$ && | |
12951 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12952 | *) | |
12953 | mv -f confcache "$cache_file" ;; | |
12954 | esac | |
12955 | fi | |
12956 | fi | |
8d138742 | 12957 | else |
b0322a85 | 12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
12959 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12960 | fi | |
d9898ee8 | 12961 | fi |
8d138742 | 12962 | rm -f confcache |
d9898ee8 | 12963 | |
8d138742 CE |
12964 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12965 | # Let make expand exec_prefix. | |
12966 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 12967 | |
b0322a85 | 12968 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 12969 | |
8d138742 CE |
12970 | ac_libobjs= |
12971 | ac_ltlibobjs= | |
d50284c4 | 12972 | U= |
8d138742 CE |
12973 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12974 | # 1. Remove the extension, and $U if already installed. | |
12975 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12976 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12977 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12978 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
12979 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12980 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
12981 | done |
12982 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 12983 | |
8d138742 | 12984 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 12985 | |
12986 | ||
b0322a85 CE |
12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12988 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12989 | if test -n "$am_sleep_pid"; then | |
12990 | # Hide warnings about reused PIDs. | |
12991 | wait $am_sleep_pid 2>/dev/null | |
12992 | fi | |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12994 | $as_echo "done" >&6; } | |
8d138742 CE |
12995 | if test -n "$EXEEXT"; then |
12996 | am__EXEEXT_TRUE= | |
12997 | am__EXEEXT_FALSE='#' | |
d9898ee8 | 12998 | else |
8d138742 CE |
12999 | am__EXEEXT_TRUE='#' |
13000 | am__EXEEXT_FALSE= | |
13001 | fi | |
d9898ee8 | 13002 | |
8d138742 | 13003 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
13004 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
13005 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13006 | fi |
13007 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
13008 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13009 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13010 | fi |
13011 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
b0322a85 CE |
13012 | as_fn_error $? "conditional \"HAVE_SGML\" was never defined. |
13013 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 13014 | fi |
dd184caf | 13015 | |
b0322a85 | 13016 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
13017 | ac_write_fail=0 |
13018 | ac_clean_files_save=$ac_clean_files | |
13019 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 13021 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
13022 | as_write_fail=0 |
13023 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
13024 | #! $SHELL |
13025 | # Generated by $as_me. | |
13026 | # Run this file to recreate the current configuration. | |
13027 | # Compiler output produced by configure, useful for debugging | |
13028 | # configure, is in config.log if it exists. | |
d9898ee8 | 13029 | |
8d138742 CE |
13030 | debug=false |
13031 | ac_cs_recheck=false | |
13032 | ac_cs_silent=false | |
8d138742 | 13033 | |
b0322a85 CE |
13034 | SHELL=\${CONFIG_SHELL-$SHELL} |
13035 | export SHELL | |
13036 | _ASEOF | |
13037 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13038 | ## -------------------- ## | |
13039 | ## M4sh Initialization. ## | |
13040 | ## -------------------- ## | |
8d138742 CE |
13041 | |
13042 | # Be more Bourne compatible | |
13043 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 13044 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
13045 | emulate sh |
13046 | NULLCMD=: | |
13047 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13048 | # is contrary to our usage. Disable this feature. | |
13049 | alias -g '${1+"$@"}'='"$@"' | |
13050 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13051 | else |
b0322a85 CE |
13052 | case `(set -o) 2>/dev/null` in #( |
13053 | *posix*) : | |
13054 | set -o posix ;; #( | |
13055 | *) : | |
13056 | ;; | |
8d138742 | 13057 | esac |
d9898ee8 | 13058 | fi |
dd184caf | 13059 | |
d9898ee8 | 13060 | |
8d138742 CE |
13061 | as_nl=' |
13062 | ' | |
13063 | export as_nl | |
13064 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13065 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13066 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13067 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
13068 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
13069 | # but without wasting forks for bash or zsh. | |
13070 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13071 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13072 | as_echo='print -r --' | |
13073 | as_echo_n='print -rn --' | |
13074 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
13075 | as_echo='printf %s\n' |
13076 | as_echo_n='printf %s' | |
13077 | else | |
13078 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13079 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13080 | as_echo_n='/usr/ucb/echo -n' | |
13081 | else | |
13082 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13083 | as_echo_n_body='eval | |
13084 | arg=$1; | |
b0322a85 | 13085 | case $arg in #( |
8d138742 CE |
13086 | *"$as_nl"*) |
13087 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13088 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13089 | esac; | |
13090 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13091 | ' | |
13092 | export as_echo_n_body | |
13093 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13094 | fi | |
13095 | export as_echo_body | |
13096 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 13097 | fi |
d9898ee8 | 13098 | |
8d138742 CE |
13099 | # The user is always right. |
13100 | if test "${PATH_SEPARATOR+set}" != set; then | |
13101 | PATH_SEPARATOR=: | |
13102 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13103 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13104 | PATH_SEPARATOR=';' | |
13105 | } | |
d9898ee8 | 13106 | fi |
d9898ee8 | 13107 | |
d9898ee8 | 13108 | |
8d138742 CE |
13109 | # IFS |
13110 | # We need space, tab and new line, in precisely that order. Quoting is | |
13111 | # there to prevent editors from complaining about space-tab. | |
13112 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13113 | # splitting by setting IFS to empty value.) | |
13114 | IFS=" "" $as_nl" | |
d9898ee8 | 13115 | |
8d138742 | 13116 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
13117 | as_myself= |
13118 | case $0 in #(( | |
8d138742 CE |
13119 | *[\\/]* ) as_myself=$0 ;; |
13120 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13121 | for as_dir in $PATH | |
13122 | do | |
13123 | IFS=$as_save_IFS | |
13124 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13125 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13126 | done | |
8d138742 CE |
13127 | IFS=$as_save_IFS |
13128 | ||
13129 | ;; | |
dd184caf | 13130 | esac |
8d138742 CE |
13131 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
13132 | # in which case we are not to be found in the path. | |
13133 | if test "x$as_myself" = x; then | |
13134 | as_myself=$0 | |
13135 | fi | |
13136 | if test ! -f "$as_myself"; then | |
13137 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 13138 | exit 1 |
8d138742 | 13139 | fi |
d9898ee8 | 13140 | |
b0322a85 CE |
13141 | # Unset variables that we do not need and which cause bugs (e.g. in |
13142 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13143 | # suppresses any "Segmentation fault" message there. '((' could | |
13144 | # trigger a bug in pdksh 5.2.14. | |
13145 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13146 | do eval test x\${$as_var+set} = xset \ | |
13147 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
13148 | done |
13149 | PS1='$ ' | |
13150 | PS2='> ' | |
13151 | PS4='+ ' | |
13152 | ||
13153 | # NLS nuisances. | |
13154 | LC_ALL=C | |
13155 | export LC_ALL | |
13156 | LANGUAGE=C | |
13157 | export LANGUAGE | |
13158 | ||
b0322a85 CE |
13159 | # CDPATH. |
13160 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13161 | ||
13162 | ||
13163 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
13164 | # ---------------------------------------- | |
13165 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13166 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13167 | # script with STATUS, using 1 if that was 0. | |
13168 | as_fn_error () | |
13169 | { | |
13170 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
13171 | if test "$4"; then | |
13172 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13173 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13174 | fi | |
13175 | $as_echo "$as_me: error: $2" >&2 | |
13176 | as_fn_exit $as_status | |
13177 | } # as_fn_error | |
13178 | ||
13179 | ||
13180 | # as_fn_set_status STATUS | |
13181 | # ----------------------- | |
13182 | # Set $? to STATUS, without forking. | |
13183 | as_fn_set_status () | |
13184 | { | |
13185 | return $1 | |
13186 | } # as_fn_set_status | |
13187 | ||
13188 | # as_fn_exit STATUS | |
13189 | # ----------------- | |
13190 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13191 | as_fn_exit () | |
13192 | { | |
13193 | set +e | |
13194 | as_fn_set_status $1 | |
13195 | exit $1 | |
13196 | } # as_fn_exit | |
13197 | ||
13198 | # as_fn_unset VAR | |
13199 | # --------------- | |
13200 | # Portably unset VAR. | |
13201 | as_fn_unset () | |
13202 | { | |
13203 | { eval $1=; unset $1;} | |
13204 | } | |
13205 | as_unset=as_fn_unset | |
13206 | # as_fn_append VAR VALUE | |
13207 | # ---------------------- | |
13208 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13209 | # advantage of any shell optimizations that allow amortized linear growth over | |
13210 | # repeated appends, instead of the typical quadratic growth present in naive | |
13211 | # implementations. | |
13212 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13213 | eval 'as_fn_append () | |
13214 | { | |
13215 | eval $1+=\$2 | |
13216 | }' | |
13217 | else | |
13218 | as_fn_append () | |
13219 | { | |
13220 | eval $1=\$$1\$2 | |
13221 | } | |
13222 | fi # as_fn_append | |
13223 | ||
13224 | # as_fn_arith ARG... | |
13225 | # ------------------ | |
13226 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13227 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13228 | # must be portable across $(()) and expr. | |
13229 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13230 | eval 'as_fn_arith () | |
13231 | { | |
13232 | as_val=$(( $* )) | |
13233 | }' | |
13234 | else | |
13235 | as_fn_arith () | |
13236 | { | |
13237 | as_val=`expr "$@" || test $? -eq 1` | |
13238 | } | |
13239 | fi # as_fn_arith | |
13240 | ||
13241 | ||
8d138742 CE |
13242 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13243 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13244 | as_expr=expr | |
13245 | else | |
13246 | as_expr=false | |
d9898ee8 | 13247 | fi |
dd184caf | 13248 | |
8d138742 CE |
13249 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13250 | as_basename=basename | |
13251 | else | |
13252 | as_basename=false | |
d9898ee8 | 13253 | fi |
d9898ee8 | 13254 | |
b0322a85 CE |
13255 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13256 | as_dirname=dirname | |
13257 | else | |
13258 | as_dirname=false | |
13259 | fi | |
d9898ee8 | 13260 | |
8d138742 CE |
13261 | as_me=`$as_basename -- "$0" || |
13262 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13263 | X"$0" : 'X\(//\)$' \| \ | |
13264 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13265 | $as_echo X/"$0" | | |
13266 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13267 | s//\1/ | |
13268 | q | |
13269 | } | |
13270 | /^X\/\(\/\/\)$/{ | |
13271 | s//\1/ | |
13272 | q | |
13273 | } | |
13274 | /^X\/\(\/\).*/{ | |
13275 | s//\1/ | |
13276 | q | |
13277 | } | |
13278 | s/.*/./; q'` | |
d9898ee8 | 13279 | |
b0322a85 CE |
13280 | # Avoid depending upon Character Ranges. |
13281 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13282 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13283 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13284 | as_cr_digits='0123456789' | |
13285 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 13286 | |
8d138742 | 13287 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 13288 | case `echo -n x` in #((((( |
8d138742 | 13289 | -n*) |
b0322a85 | 13290 | case `echo 'xy\c'` in |
8d138742 | 13291 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
13292 | xy) ECHO_C='\c';; |
13293 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13294 | ECHO_T=' ';; | |
8d138742 CE |
13295 | esac;; |
13296 | *) | |
13297 | ECHO_N='-n';; | |
13298 | esac | |
d9898ee8 | 13299 | |
8d138742 CE |
13300 | rm -f conf$$ conf$$.exe conf$$.file |
13301 | if test -d conf$$.dir; then | |
13302 | rm -f conf$$.dir/conf$$.file | |
d9898ee8 | 13303 | else |
8d138742 CE |
13304 | rm -f conf$$.dir |
13305 | mkdir conf$$.dir 2>/dev/null | |
13306 | fi | |
13307 | if (echo >conf$$.file) 2>/dev/null; then | |
13308 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13309 | as_ln_s='ln -s' | |
13310 | # ... but there are two gotchas: | |
13311 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13312 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b0322a85 | 13313 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 13314 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 13315 | as_ln_s='cp -pR' |
8d138742 CE |
13316 | elif ln conf$$.file conf$$ 2>/dev/null; then |
13317 | as_ln_s=ln | |
13318 | else | |
b0322a85 | 13319 | as_ln_s='cp -pR' |
8d138742 | 13320 | fi |
d9898ee8 | 13321 | else |
b0322a85 | 13322 | as_ln_s='cp -pR' |
d9898ee8 | 13323 | fi |
8d138742 CE |
13324 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13325 | rmdir conf$$.dir 2>/dev/null | |
dd184caf | 13326 | |
b0322a85 CE |
13327 | |
13328 | # as_fn_mkdir_p | |
13329 | # ------------- | |
13330 | # Create "$as_dir" as a directory, including parents if necessary. | |
13331 | as_fn_mkdir_p () | |
13332 | { | |
13333 | ||
13334 | case $as_dir in #( | |
13335 | -*) as_dir=./$as_dir;; | |
13336 | esac | |
13337 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13338 | as_dirs= | |
13339 | while :; do | |
13340 | case $as_dir in #( | |
13341 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13342 | *) as_qdir=$as_dir;; | |
13343 | esac | |
13344 | as_dirs="'$as_qdir' $as_dirs" | |
13345 | as_dir=`$as_dirname -- "$as_dir" || | |
13346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13347 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13348 | X"$as_dir" : 'X\(//\)$' \| \ | |
13349 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13350 | $as_echo X"$as_dir" | | |
13351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13352 | s//\1/ | |
13353 | q | |
13354 | } | |
13355 | /^X\(\/\/\)[^/].*/{ | |
13356 | s//\1/ | |
13357 | q | |
13358 | } | |
13359 | /^X\(\/\/\)$/{ | |
13360 | s//\1/ | |
13361 | q | |
13362 | } | |
13363 | /^X\(\/\).*/{ | |
13364 | s//\1/ | |
13365 | q | |
13366 | } | |
13367 | s/.*/./; q'` | |
13368 | test -d "$as_dir" && break | |
13369 | done | |
13370 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13371 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
13372 | ||
13373 | ||
13374 | } # as_fn_mkdir_p | |
8d138742 | 13375 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 13376 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
13377 | else |
13378 | test -d ./-p && rmdir ./-p | |
13379 | as_mkdir_p=false | |
d9898ee8 | 13380 | fi |
8d138742 | 13381 | |
b0322a85 CE |
13382 | |
13383 | # as_fn_executable_p FILE | |
13384 | # ----------------------- | |
13385 | # Test if FILE is an executable regular file. | |
13386 | as_fn_executable_p () | |
13387 | { | |
13388 | test -f "$1" && test -x "$1" | |
13389 | } # as_fn_executable_p | |
13390 | as_test_x='test -x' | |
13391 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 13392 | |
8d138742 CE |
13393 | # Sed expression to map a string onto a valid CPP name. |
13394 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13395 | |
8d138742 CE |
13396 | # Sed expression to map a string onto a valid variable name. |
13397 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13398 | |
d9898ee8 | 13399 | |
8d138742 | 13400 | exec 6>&1 |
b0322a85 CE |
13401 | ## ----------------------------------- ## |
13402 | ## Main body of $CONFIG_STATUS script. ## | |
13403 | ## ----------------------------------- ## | |
13404 | _ASEOF | |
13405 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 13406 | |
b0322a85 CE |
13407 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13408 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
13409 | # report actual input values of CONFIG_FILES etc. instead of their |
13410 | # values after options handling. | |
13411 | ac_log=" | |
13412 | This file was extended by libuserdb $as_me 0.10, which was | |
b0322a85 | 13413 | generated by GNU Autoconf 2.69. Invocation command line was |
8d138742 CE |
13414 | |
13415 | CONFIG_FILES = $CONFIG_FILES | |
13416 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13417 | CONFIG_LINKS = $CONFIG_LINKS | |
13418 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13419 | $ $0 $@ | |
13420 | ||
13421 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13422 | " | |
d9898ee8 | 13423 | |
d9898ee8 | 13424 | _ACEOF |
13425 | ||
8d138742 CE |
13426 | case $ac_config_files in *" |
13427 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13428 | esac | |
13429 | ||
b0322a85 CE |
13430 | case $ac_config_headers in *" |
13431 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13432 | esac | |
8d138742 CE |
13433 | |
13434 | ||
13435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13436 | # Files that config.status was made for. | |
13437 | config_files="$ac_config_files" | |
b0322a85 | 13438 | config_headers="$ac_config_headers" |
8d138742 | 13439 | config_commands="$ac_config_commands" |
d9898ee8 | 13440 | |
d9898ee8 | 13441 | _ACEOF |
13442 | ||
8d138742 CE |
13443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13444 | ac_cs_usage="\ | |
b0322a85 CE |
13445 | \`$as_me' instantiates files and other configuration actions |
13446 | from templates according to the current configuration. Unless the files | |
13447 | and actions are specified as TAGs, all are instantiated by default. | |
8d138742 | 13448 | |
b0322a85 | 13449 | Usage: $0 [OPTION]... [TAG]... |
8d138742 CE |
13450 | |
13451 | -h, --help print this help, then exit | |
13452 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 13453 | --config print configuration, then exit |
8d138742 CE |
13454 | -q, --quiet, --silent |
13455 | do not print progress messages | |
13456 | -d, --debug don't remove temporary files | |
13457 | --recheck update $as_me by reconfiguring in the same conditions | |
13458 | --file=FILE[:TEMPLATE] | |
13459 | instantiate the configuration file FILE | |
b0322a85 CE |
13460 | --header=FILE[:TEMPLATE] |
13461 | instantiate the configuration header FILE | |
8d138742 CE |
13462 | |
13463 | Configuration files: | |
13464 | $config_files | |
13465 | ||
b0322a85 CE |
13466 | Configuration headers: |
13467 | $config_headers | |
13468 | ||
8d138742 CE |
13469 | Configuration commands: |
13470 | $config_commands | |
13471 | ||
b0322a85 | 13472 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 13473 | |
d9898ee8 | 13474 | _ACEOF |
8d138742 | 13475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0322a85 | 13476 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
13477 | ac_cs_version="\\ |
13478 | libuserdb config.status 0.10 | |
b0322a85 CE |
13479 | configured by $0, generated by GNU Autoconf 2.69, |
13480 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 13481 | |
b0322a85 | 13482 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
13483 | This config.status script is free software; the Free Software Foundation |
13484 | gives unlimited permission to copy, distribute and modify it." | |
13485 | ||
13486 | ac_pwd='$ac_pwd' | |
13487 | srcdir='$srcdir' | |
13488 | INSTALL='$INSTALL' | |
13489 | MKDIR_P='$MKDIR_P' | |
13490 | AWK='$AWK' | |
13491 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 13492 | _ACEOF |
d9898ee8 | 13493 | |
8d138742 CE |
13494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13495 | # The default lists apply if the user does not specify any file. | |
13496 | ac_need_defaults=: | |
13497 | while test $# != 0 | |
13498 | do | |
13499 | case $1 in | |
b0322a85 | 13500 | --*=?*) |
8d138742 CE |
13501 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13502 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13503 | ac_shift=: | |
13504 | ;; | |
b0322a85 CE |
13505 | --*=) |
13506 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13507 | ac_optarg= | |
13508 | ac_shift=: | |
13509 | ;; | |
8d138742 CE |
13510 | *) |
13511 | ac_option=$1 | |
13512 | ac_optarg=$2 | |
13513 | ac_shift=shift | |
13514 | ;; | |
13515 | esac | |
13516 | ||
13517 | case $ac_option in | |
13518 | # Handling of the options. | |
13519 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13520 | ac_cs_recheck=: ;; | |
13521 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13522 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
13523 | --config | --confi | --conf | --con | --co | --c ) |
13524 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
13525 | --debug | --debu | --deb | --de | --d | -d ) |
13526 | debug=: ;; | |
13527 | --file | --fil | --fi | --f ) | |
b0322a85 CE |
13528 | $ac_shift |
13529 | case $ac_optarg in | |
13530 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13531 | '') as_fn_error $? "missing file argument" ;; | |
13532 | esac | |
13533 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13534 | ac_need_defaults=false;; | |
13535 | --header | --heade | --head | --hea ) | |
8d138742 CE |
13536 | $ac_shift |
13537 | case $ac_optarg in | |
13538 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13539 | esac | |
b0322a85 | 13540 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 | 13541 | ac_need_defaults=false;; |
b0322a85 CE |
13542 | --he | --h) |
13543 | # Conflict between --help and --header | |
13544 | as_fn_error $? "ambiguous option: \`$1' | |
13545 | Try \`$0 --help' for more information.";; | |
13546 | --help | --hel | -h ) | |
8d138742 CE |
13547 | $as_echo "$ac_cs_usage"; exit ;; |
13548 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13549 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13550 | ac_cs_silent=: ;; | |
13551 | ||
13552 | # This is an error. | |
b0322a85 CE |
13553 | -*) as_fn_error $? "unrecognized option: \`$1' |
13554 | Try \`$0 --help' for more information." ;; | |
8d138742 | 13555 | |
b0322a85 | 13556 | *) as_fn_append ac_config_targets " $1" |
8d138742 CE |
13557 | ac_need_defaults=false ;; |
13558 | ||
13559 | esac | |
13560 | shift | |
13561 | done | |
13562 | ||
13563 | ac_configure_extra_args= | |
13564 | ||
13565 | if $ac_cs_silent; then | |
13566 | exec 6>/dev/null | |
13567 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 13568 | fi |
dd184caf | 13569 | |
8d138742 CE |
13570 | _ACEOF |
13571 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13572 | if \$ac_cs_recheck; then | |
b0322a85 | 13573 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
13574 | shift |
13575 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13576 | CONFIG_SHELL='$SHELL' | |
13577 | export CONFIG_SHELL | |
13578 | exec "\$@" | |
d9898ee8 | 13579 | fi |
d9898ee8 | 13580 | |
d9898ee8 | 13581 | _ACEOF |
8d138742 CE |
13582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13583 | exec 5>>config.log | |
13584 | { | |
13585 | echo | |
13586 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13587 | ## Running $as_me. ## | |
13588 | _ASBOX | |
13589 | $as_echo "$ac_log" | |
13590 | } >&5 | |
d9898ee8 | 13591 | |
8d138742 CE |
13592 | _ACEOF |
13593 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13594 | # | |
13595 | # INIT-COMMANDS | |
13596 | # | |
13597 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13598 | |
13599 | ||
8d138742 CE |
13600 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13601 | # if CDPATH is set. | |
13602 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13603 | |
8d138742 CE |
13604 | sed_quote_subst='$sed_quote_subst' |
13605 | double_quote_subst='$double_quote_subst' | |
13606 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
13607 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13608 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13609 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13610 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13611 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13612 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13613 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13614 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13615 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13616 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13617 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13618 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13619 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13620 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13621 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13622 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13623 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13624 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13625 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13626 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13627 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13628 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13629 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13630 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13631 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13632 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13633 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13634 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13635 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13636 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13637 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13638 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13639 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13640 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13641 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13642 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13643 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13644 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13645 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13646 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13647 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13648 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13649 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13650 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13651 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13652 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13653 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13654 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13655 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13656 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13657 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13658 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13659 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13660 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13661 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13662 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13663 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13664 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13665 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13666 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13667 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13668 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13669 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13670 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13671 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13672 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13673 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13674 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13675 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13676 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13677 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13678 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13679 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13680 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13681 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13682 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13683 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13684 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13685 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13686 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13687 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13688 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13689 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13690 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13691 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13692 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13693 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13694 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13695 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13696 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13697 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13698 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13699 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13700 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13701 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13702 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13703 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13704 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13705 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13706 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13707 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13708 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13709 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13710 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13711 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13712 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13713 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13714 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13715 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13716 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13717 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13718 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13719 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13720 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13721 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13722 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13723 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13724 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13725 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13726 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13727 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13728 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13729 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13730 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13731 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13732 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13733 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
13734 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13735 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
13736 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13737 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13738 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13739 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13740 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13741 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13742 | |
13743 | LTCC='$LTCC' | |
13744 | LTCFLAGS='$LTCFLAGS' | |
13745 | compiler='$compiler_DEFAULT' | |
13746 | ||
b0322a85 CE |
13747 | # A function that is used when there is no print builtin or printf. |
13748 | func_fallback_echo () | |
13749 | { | |
13750 | eval 'cat <<_LTECHO_EOF | |
13751 | \$1 | |
13752 | _LTECHO_EOF' | |
13753 | } | |
13754 | ||
8d138742 | 13755 | # Quote evaled strings. |
b0322a85 CE |
13756 | for var in SHELL \ |
13757 | ECHO \ | |
13758 | PATH_SEPARATOR \ | |
13759 | SED \ | |
8d138742 CE |
13760 | GREP \ |
13761 | EGREP \ | |
13762 | FGREP \ | |
13763 | LD \ | |
13764 | NM \ | |
13765 | LN_S \ | |
13766 | lt_SP2NL \ | |
13767 | lt_NL2SP \ | |
13768 | reload_flag \ | |
13769 | OBJDUMP \ | |
13770 | deplibs_check_method \ | |
13771 | file_magic_cmd \ | |
b0322a85 CE |
13772 | file_magic_glob \ |
13773 | want_nocaseglob \ | |
13774 | DLLTOOL \ | |
13775 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13776 | AR \ |
13777 | AR_FLAGS \ | |
b0322a85 | 13778 | archiver_list_spec \ |
8d138742 CE |
13779 | STRIP \ |
13780 | RANLIB \ | |
13781 | CC \ | |
13782 | CFLAGS \ | |
13783 | compiler \ | |
13784 | lt_cv_sys_global_symbol_pipe \ | |
13785 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 13786 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
13787 | lt_cv_sys_global_symbol_to_c_name_address \ |
13788 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 13789 | lt_cv_nm_interface \ |
b0322a85 | 13790 | nm_file_list_spec \ |
d50284c4 | 13791 | lt_cv_truncate_bin \ |
8d138742 | 13792 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13793 | lt_prog_compiler_pic \ |
b0322a85 | 13794 | lt_prog_compiler_wl \ |
8d138742 CE |
13795 | lt_prog_compiler_static \ |
13796 | lt_cv_prog_compiler_c_o \ | |
13797 | need_locks \ | |
b0322a85 | 13798 | MANIFEST_TOOL \ |
8d138742 CE |
13799 | DSYMUTIL \ |
13800 | NMEDIT \ | |
13801 | LIPO \ | |
13802 | OTOOL \ | |
13803 | OTOOL64 \ | |
13804 | shrext_cmds \ | |
13805 | export_dynamic_flag_spec \ | |
13806 | whole_archive_flag_spec \ | |
13807 | compiler_needs_object \ | |
13808 | with_gnu_ld \ | |
13809 | allow_undefined_flag \ | |
13810 | no_undefined_flag \ | |
13811 | hardcode_libdir_flag_spec \ | |
8d138742 | 13812 | hardcode_libdir_separator \ |
8d138742 CE |
13813 | exclude_expsyms \ |
13814 | include_expsyms \ | |
13815 | file_list_spec \ | |
13816 | variables_saved_for_relink \ | |
13817 | libname_spec \ | |
13818 | library_names_spec \ | |
13819 | soname_spec \ | |
b0322a85 | 13820 | install_override_mode \ |
8d138742 CE |
13821 | finish_eval \ |
13822 | old_striplib \ | |
13823 | striplib; do | |
b0322a85 | 13824 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13825 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13826 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13827 | ;; |
13828 | *) | |
13829 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13830 | ;; | |
13831 | esac | |
13832 | done | |
d9898ee8 | 13833 | |
8d138742 CE |
13834 | # Double-quote double-evaled strings. |
13835 | for var in reload_cmds \ | |
13836 | old_postinstall_cmds \ | |
13837 | old_postuninstall_cmds \ | |
13838 | old_archive_cmds \ | |
13839 | extract_expsyms_cmds \ | |
13840 | old_archive_from_new_cmds \ | |
13841 | old_archive_from_expsyms_cmds \ | |
13842 | archive_cmds \ | |
13843 | archive_expsym_cmds \ | |
13844 | module_cmds \ | |
13845 | module_expsym_cmds \ | |
13846 | export_symbols_cmds \ | |
13847 | prelink_cmds \ | |
b0322a85 | 13848 | postlink_cmds \ |
8d138742 CE |
13849 | postinstall_cmds \ |
13850 | postuninstall_cmds \ | |
13851 | finish_cmds \ | |
13852 | sys_lib_search_path_spec \ | |
d50284c4 CE |
13853 | configure_time_dlsearch_path \ |
13854 | configure_time_lt_sys_library_path; do | |
b0322a85 | 13855 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13856 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13857 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13858 | ;; |
13859 | *) | |
13860 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13861 | ;; | |
13862 | esac | |
13863 | done | |
13864 | ||
8d138742 | 13865 | ac_aux_dir='$ac_aux_dir' |
dd184caf | 13866 | |
d50284c4 | 13867 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 13868 | # commands through without removal of \ escapes INIT. |
d50284c4 | 13869 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 | 13870 | setopt NO_GLOB_SUBST |
d9898ee8 | 13871 | fi |
13872 | ||
d9898ee8 | 13873 | |
8d138742 CE |
13874 | PACKAGE='$PACKAGE' |
13875 | VERSION='$VERSION' | |
8d138742 CE |
13876 | RM='$RM' |
13877 | ofile='$ofile' | |
d9898ee8 | 13878 | |
d9898ee8 | 13879 | |
d9898ee8 | 13880 | |
d9898ee8 | 13881 | |
d9898ee8 | 13882 | _ACEOF |
d9898ee8 | 13883 | |
8d138742 | 13884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 13885 | |
8d138742 CE |
13886 | # Handling of arguments. |
13887 | for ac_config_target in $ac_config_targets | |
13888 | do | |
13889 | case $ac_config_target in | |
b0322a85 | 13890 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
8d138742 CE |
13891 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
13892 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13893 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13894 | "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;; | |
13895 | "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;; | |
13896 | "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;; | |
d9898ee8 | 13897 | |
b0322a85 | 13898 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
13899 | esac |
13900 | done | |
d9898ee8 | 13901 | |
d9898ee8 | 13902 | |
8d138742 CE |
13903 | # If the user did not use the arguments to specify the items to instantiate, |
13904 | # then the envvar interface is used. Set only those that are not. | |
13905 | # We use the long form for the default assignment because of an extremely | |
13906 | # bizarre bug on SunOS 4.1.3. | |
13907 | if $ac_need_defaults; then | |
13908 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b0322a85 | 13909 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
8d138742 CE |
13910 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
13911 | fi | |
d9898ee8 | 13912 | |
8d138742 CE |
13913 | # Have a temporary directory for convenience. Make it in the build tree |
13914 | # simply because there is no reason against having it here, and in addition, | |
13915 | # creating and moving files from /tmp can sometimes cause problems. | |
13916 | # Hook for its removal unless debugging. | |
13917 | # Note that there is a small window in which the directory will not be cleaned: | |
13918 | # after its creation but before its name has been assigned to `$tmp'. | |
13919 | $debug || | |
d9898ee8 | 13920 | { |
b0322a85 | 13921 | tmp= ac_tmp= |
8d138742 | 13922 | trap 'exit_status=$? |
b0322a85 CE |
13923 | : "${ac_tmp:=$tmp}" |
13924 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 13925 | ' 0 |
b0322a85 | 13926 | trap 'as_fn_exit 1' 1 2 13 15 |
d9898ee8 | 13927 | } |
8d138742 | 13928 | # Create a (secure) tmp directory for tmp files. |
d9898ee8 | 13929 | |
8d138742 CE |
13930 | { |
13931 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 13932 | test -d "$tmp" |
8d138742 CE |
13933 | } || |
13934 | { | |
13935 | tmp=./conf$$-$RANDOM | |
13936 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
13937 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13938 | ac_tmp=$tmp | |
dd184caf | 13939 | |
8d138742 CE |
13940 | # Set up the scripts for CONFIG_FILES section. |
13941 | # No need to generate them if there are no CONFIG_FILES. | |
13942 | # This happens for instance with `./config.status config.h'. | |
13943 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 13944 | |
13945 | ||
b0322a85 CE |
13946 | ac_cr=`echo X | tr X '\015'` |
13947 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13948 | # But we know of no other shell where ac_cr would be empty at this | |
13949 | # point, so we can use a bashism as a fallback. | |
13950 | if test "x$ac_cr" = x; then | |
13951 | eval ac_cr=\$\'\\r\' | |
13952 | fi | |
8d138742 CE |
13953 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13954 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13955 | ac_cs_awk_cr='\\r' | |
13956 | else | |
13957 | ac_cs_awk_cr=$ac_cr | |
d9898ee8 | 13958 | fi |
d9898ee8 | 13959 | |
b0322a85 | 13960 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 13961 | _ACEOF |
13962 | ||
13963 | ||
8d138742 CE |
13964 | { |
13965 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13966 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13967 | echo "_ACEOF" | |
13968 | } >conf$$subs.sh || | |
b0322a85 CE |
13969 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13970 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
13971 | ac_delim='%!_!# ' |
13972 | for ac_last_try in false false false false false :; do | |
13973 | . ./conf$$subs.sh || | |
b0322a85 | 13974 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13975 | |
8d138742 CE |
13976 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13977 | if test $ac_delim_n = $ac_delim_num; then | |
13978 | break | |
13979 | elif $ac_last_try; then | |
b0322a85 | 13980 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
13981 | else |
13982 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13983 | fi | |
13984 | done | |
13985 | rm -f conf$$subs.sh | |
13986 | ||
13987 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13988 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
13989 | _ACEOF |
13990 | sed -n ' | |
13991 | h | |
13992 | s/^/S["/; s/!.*/"]=/ | |
13993 | p | |
13994 | g | |
13995 | s/^[^!]*!// | |
13996 | :repl | |
13997 | t repl | |
13998 | s/'"$ac_delim"'$// | |
13999 | t delim | |
14000 | :nl | |
14001 | h | |
b0322a85 | 14002 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14003 | t more1 |
14004 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14005 | p | |
14006 | n | |
14007 | b repl | |
14008 | :more1 | |
14009 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14010 | p | |
14011 | g | |
14012 | s/.\{148\}// | |
14013 | t nl | |
14014 | :delim | |
14015 | h | |
b0322a85 | 14016 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14017 | t more2 |
14018 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14019 | p | |
14020 | b | |
14021 | :more2 | |
14022 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14023 | p | |
14024 | g | |
14025 | s/.\{148\}// | |
14026 | t delim | |
14027 | ' <conf$$subs.awk | sed ' | |
14028 | /^[^""]/{ | |
14029 | N | |
14030 | s/\n// | |
14031 | } | |
14032 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14033 | rm -f conf$$subs.awk | |
14034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14035 | _ACAWK | |
b0322a85 | 14036 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
14037 | for (key in S) S_is_set[key] = 1 |
14038 | FS = "\a" | |
d9898ee8 | 14039 | |
8d138742 CE |
14040 | } |
14041 | { | |
14042 | line = $ 0 | |
14043 | nfields = split(line, field, "@") | |
14044 | substed = 0 | |
14045 | len = length(field[1]) | |
14046 | for (i = 2; i < nfields; i++) { | |
14047 | key = field[i] | |
14048 | keylen = length(key) | |
14049 | if (S_is_set[key]) { | |
14050 | value = S[key] | |
14051 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14052 | len += length(value) + length(field[++i]) | |
14053 | substed = 1 | |
14054 | } else | |
14055 | len += 1 + keylen | |
14056 | } | |
d9898ee8 | 14057 | |
8d138742 CE |
14058 | print line |
14059 | } | |
14060 | ||
14061 | _ACAWK | |
14062 | _ACEOF | |
14063 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14064 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14065 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 14066 | else |
8d138742 | 14067 | cat |
b0322a85 CE |
14068 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14069 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
d9898ee8 | 14070 | _ACEOF |
d9898ee8 | 14071 | |
b0322a85 CE |
14072 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14073 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
14074 | # trailing colons and then remove the whole line if VPATH becomes empty |
14075 | # (actually we leave an empty line to preserve line numbers). | |
14076 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
14077 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14078 | h | |
14079 | s/// | |
14080 | s/^/:/ | |
14081 | s/[ ]*$/:/ | |
14082 | s/:\$(srcdir):/:/g | |
14083 | s/:\${srcdir}:/:/g | |
14084 | s/:@srcdir@:/:/g | |
14085 | s/^:*// | |
8d138742 | 14086 | s/:*$// |
b0322a85 CE |
14087 | x |
14088 | s/\(=[ ]*\).*/\1/ | |
14089 | G | |
14090 | s/\n// | |
8d138742 CE |
14091 | s/^[^=]*=[ ]*$// |
14092 | }' | |
14093 | fi | |
d9898ee8 | 14094 | |
8d138742 CE |
14095 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14096 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 14097 | |
b0322a85 CE |
14098 | # Set up the scripts for CONFIG_HEADERS section. |
14099 | # No need to generate them if there are no CONFIG_HEADERS. | |
14100 | # This happens for instance with `./config.status Makefile'. | |
14101 | if test -n "$CONFIG_HEADERS"; then | |
14102 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
14103 | BEGIN { | |
14104 | _ACEOF | |
14105 | ||
14106 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
14107 | # here-document in config.status, that substitutes the proper values into | |
14108 | # config.h.in to produce config.h. | |
14109 | ||
14110 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
14111 | # handling of long lines. | |
14112 | ac_delim='%!_!# ' | |
14113 | for ac_last_try in false false :; do | |
14114 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
14115 | if test -z "$ac_tt"; then | |
14116 | break | |
14117 | elif $ac_last_try; then | |
14118 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
14119 | else | |
14120 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14121 | fi | |
14122 | done | |
14123 | ||
14124 | # For the awk script, D is an array of macro values keyed by name, | |
14125 | # likewise P contains macro parameters if any. Preserve backslash | |
14126 | # newline sequences. | |
14127 | ||
14128 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14129 | sed -n ' | |
14130 | s/.\{148\}/&'"$ac_delim"'/g | |
14131 | t rset | |
14132 | :rset | |
14133 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14134 | t def | |
14135 | d | |
14136 | :def | |
14137 | s/\\$// | |
14138 | t bsnl | |
14139 | s/["\\]/\\&/g | |
14140 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14141 | D["\1"]=" \3"/p | |
14142 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14143 | d | |
14144 | :bsnl | |
14145 | s/["\\]/\\&/g | |
14146 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14147 | D["\1"]=" \3\\\\\\n"\\/p | |
14148 | t cont | |
14149 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14150 | t cont | |
14151 | d | |
14152 | :cont | |
14153 | n | |
14154 | s/.\{148\}/&'"$ac_delim"'/g | |
14155 | t clear | |
14156 | :clear | |
14157 | s/\\$// | |
14158 | t bsnlc | |
14159 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14160 | d | |
14161 | :bsnlc | |
14162 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14163 | b cont | |
14164 | ' <confdefs.h | sed ' | |
14165 | s/'"$ac_delim"'/"\\\ | |
14166 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14167 | ||
14168 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14169 | for (key in D) D_is_set[key] = 1 | |
14170 | FS = "\a" | |
14171 | } | |
14172 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14173 | line = \$ 0 | |
14174 | split(line, arg, " ") | |
14175 | if (arg[1] == "#") { | |
14176 | defundef = arg[2] | |
14177 | mac1 = arg[3] | |
14178 | } else { | |
14179 | defundef = substr(arg[1], 2) | |
14180 | mac1 = arg[2] | |
14181 | } | |
14182 | split(mac1, mac2, "(") #) | |
14183 | macro = mac2[1] | |
14184 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14185 | if (D_is_set[macro]) { | |
14186 | # Preserve the white space surrounding the "#". | |
14187 | print prefix "define", macro P[macro] D[macro] | |
14188 | next | |
14189 | } else { | |
14190 | # Replace #undef with comments. This is necessary, for example, | |
14191 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14192 | # on some systems where configure will not decide to define it. | |
14193 | if (defundef == "undef") { | |
14194 | print "/*", prefix defundef, macro, "*/" | |
14195 | next | |
14196 | } | |
14197 | } | |
14198 | } | |
14199 | { print } | |
14200 | _ACAWK | |
14201 | _ACEOF | |
14202 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14203 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
14204 | fi # test -n "$CONFIG_HEADERS" | |
14205 | ||
d9898ee8 | 14206 | |
b0322a85 | 14207 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
8d138742 CE |
14208 | shift |
14209 | for ac_tag | |
14210 | do | |
14211 | case $ac_tag in | |
14212 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14213 | esac | |
14214 | case $ac_mode$ac_tag in | |
14215 | :[FHL]*:*);; | |
b0322a85 | 14216 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
14217 | :[FH]-) ac_tag=-:-;; |
14218 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14219 | esac | |
14220 | ac_save_IFS=$IFS | |
14221 | IFS=: | |
14222 | set x $ac_tag | |
14223 | IFS=$ac_save_IFS | |
14224 | shift | |
14225 | ac_file=$1 | |
14226 | shift | |
d9898ee8 | 14227 | |
8d138742 CE |
14228 | case $ac_mode in |
14229 | :L) ac_source=$1;; | |
14230 | :[FH]) | |
14231 | ac_file_inputs= | |
14232 | for ac_f | |
14233 | do | |
14234 | case $ac_f in | |
b0322a85 | 14235 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
14236 | *) # Look for the file first in the build tree, then in the source tree |
14237 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14238 | # because $ac_f cannot contain `:'. | |
14239 | test -f "$ac_f" || | |
14240 | case $ac_f in | |
14241 | [\\/$]*) false;; | |
14242 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14243 | esac || | |
b0322a85 | 14244 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
14245 | esac |
14246 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 14247 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 14248 | done |
dd184caf | 14249 | |
8d138742 CE |
14250 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14251 | # use $as_me), people would be surprised to read: | |
14252 | # /* config.h. Generated by config.status. */ | |
14253 | configure_input='Generated from '` | |
14254 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14255 | `' by configure.' | |
14256 | if test x"$ac_file" != x-; then | |
14257 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
14259 | $as_echo "$as_me: creating $ac_file" >&6;} |
14260 | fi | |
14261 | # Neutralize special characters interpreted by sed in replacement strings. | |
14262 | case $configure_input in #( | |
14263 | *\&* | *\|* | *\\* ) | |
14264 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14265 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14266 | *) ac_sed_conf_input=$configure_input;; | |
14267 | esac | |
d9898ee8 | 14268 | |
8d138742 | 14269 | case $ac_tag in |
b0322a85 CE |
14270 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14271 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
14272 | esac |
14273 | ;; | |
14274 | esac | |
d9898ee8 | 14275 | |
8d138742 CE |
14276 | ac_dir=`$as_dirname -- "$ac_file" || |
14277 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14278 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14279 | X"$ac_file" : 'X\(//\)$' \| \ | |
14280 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14281 | $as_echo X"$ac_file" | | |
14282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14283 | s//\1/ | |
14284 | q | |
14285 | } | |
14286 | /^X\(\/\/\)[^/].*/{ | |
14287 | s//\1/ | |
14288 | q | |
14289 | } | |
14290 | /^X\(\/\/\)$/{ | |
14291 | s//\1/ | |
14292 | q | |
14293 | } | |
14294 | /^X\(\/\).*/{ | |
14295 | s//\1/ | |
14296 | q | |
14297 | } | |
14298 | s/.*/./; q'` | |
b0322a85 | 14299 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 14300 | ac_builddir=. |
d9898ee8 | 14301 | |
8d138742 CE |
14302 | case "$ac_dir" in |
14303 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14304 | *) | |
14305 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14306 | # A ".." for each directory in $ac_dir_suffix. | |
14307 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14308 | case $ac_top_builddir_sub in | |
14309 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14310 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14311 | esac ;; | |
14312 | esac | |
14313 | ac_abs_top_builddir=$ac_pwd | |
14314 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14315 | # for backward compatibility: | |
14316 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 14317 | |
8d138742 CE |
14318 | case $srcdir in |
14319 | .) # We are building in place. | |
14320 | ac_srcdir=. | |
14321 | ac_top_srcdir=$ac_top_builddir_sub | |
14322 | ac_abs_top_srcdir=$ac_pwd ;; | |
14323 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14324 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14325 | ac_top_srcdir=$srcdir | |
14326 | ac_abs_top_srcdir=$srcdir ;; | |
14327 | *) # Relative name. | |
14328 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14329 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14330 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
14331 | esac | |
14332 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
dd184caf | 14333 | |
d9898ee8 | 14334 | |
8d138742 CE |
14335 | case $ac_mode in |
14336 | :F) | |
14337 | # | |
14338 | # CONFIG_FILE | |
14339 | # | |
d9898ee8 | 14340 | |
8d138742 CE |
14341 | case $INSTALL in |
14342 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14343 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14344 | esac | |
14345 | ac_MKDIR_P=$MKDIR_P | |
14346 | case $MKDIR_P in | |
14347 | [\\/$]* | ?:[\\/]* ) ;; | |
14348 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14349 | esac | |
14350 | _ACEOF | |
d9898ee8 | 14351 | |
8d138742 CE |
14352 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14353 | # If the template does not know about datarootdir, expand it. | |
14354 | # FIXME: This hack should be removed a few years after 2.60. | |
14355 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
14356 | ac_sed_dataroot=' |
14357 | /datarootdir/ { | |
14358 | p | |
14359 | q | |
14360 | } | |
14361 | /@datadir@/p | |
14362 | /@docdir@/p | |
14363 | /@infodir@/p | |
14364 | /@localedir@/p | |
b0322a85 | 14365 | /@mandir@/p' |
8d138742 CE |
14366 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14367 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14368 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
14370 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14371 | _ACEOF | |
14372 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14373 | ac_datarootdir_hack=' | |
14374 | s&@datadir@&$datadir&g | |
14375 | s&@docdir@&$docdir&g | |
14376 | s&@infodir@&$infodir&g | |
14377 | s&@localedir@&$localedir&g | |
14378 | s&@mandir@&$mandir&g | |
b0322a85 | 14379 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 | 14380 | esac |
d9898ee8 | 14381 | _ACEOF |
14382 | ||
8d138742 CE |
14383 | # Neutralize VPATH when `$srcdir' = `.'. |
14384 | # Shell code in configure.ac might set extrasub. | |
14385 | # FIXME: do we really want to maintain this feature? | |
14386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14387 | ac_sed_extra="$ac_vpsub | |
14388 | $extrasub | |
14389 | _ACEOF | |
14390 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14391 | :t | |
14392 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14393 | s|@configure_input@|$ac_sed_conf_input|;t t | |
14394 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14395 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14396 | s&@srcdir@&$ac_srcdir&;t t | |
14397 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14398 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14399 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14400 | s&@builddir@&$ac_builddir&;t t | |
14401 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14402 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14403 | s&@INSTALL@&$ac_INSTALL&;t t | |
14404 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14405 | $ac_datarootdir_hack | |
14406 | " | |
b0322a85 CE |
14407 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14408 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 14409 | |
8d138742 | 14410 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
14411 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14412 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
14413 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14415 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 14416 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 14417 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 14418 | |
b0322a85 | 14419 | rm -f "$ac_tmp/stdin" |
8d138742 | 14420 | case $ac_file in |
b0322a85 CE |
14421 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14422 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 14423 | esac \ |
b0322a85 CE |
14424 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14425 | ;; | |
14426 | :H) | |
14427 | # | |
14428 | # CONFIG_HEADER | |
14429 | # | |
14430 | if test x"$ac_file" != x-; then | |
14431 | { | |
14432 | $as_echo "/* $configure_input */" \ | |
14433 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
14434 | } >"$ac_tmp/config.h" \ | |
14435 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14436 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
14438 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
14439 | else | |
14440 | rm -f "$ac_file" | |
14441 | mv "$ac_tmp/config.h" "$ac_file" \ | |
14442 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14443 | fi | |
14444 | else | |
14445 | $as_echo "/* $configure_input */" \ | |
14446 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
14447 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
14448 | fi | |
14449 | # Compute "$ac_file"'s index in $config_headers. | |
14450 | _am_arg="$ac_file" | |
14451 | _am_stamp_count=1 | |
14452 | for _am_header in $config_headers :; do | |
14453 | case $_am_header in | |
14454 | $_am_arg | $_am_arg:* ) | |
14455 | break ;; | |
14456 | * ) | |
14457 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14458 | esac | |
14459 | done | |
14460 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14461 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14462 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14463 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14464 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14465 | $as_echo X"$_am_arg" | | |
14466 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14467 | s//\1/ | |
14468 | q | |
14469 | } | |
14470 | /^X\(\/\/\)[^/].*/{ | |
14471 | s//\1/ | |
14472 | q | |
14473 | } | |
14474 | /^X\(\/\/\)$/{ | |
14475 | s//\1/ | |
14476 | q | |
14477 | } | |
14478 | /^X\(\/\).*/{ | |
14479 | s//\1/ | |
14480 | q | |
14481 | } | |
14482 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8d138742 | 14483 | ;; |
d9898ee8 | 14484 | |
b0322a85 | 14485 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
14486 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
14487 | ;; | |
14488 | esac | |
d9898ee8 | 14489 | |
d9898ee8 | 14490 | |
8d138742 CE |
14491 | case $ac_file$ac_mode in |
14492 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 14493 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
14494 | # are listed without --file. Let's play safe and only enable the eval |
14495 | # if we detect the quoting. | |
14496 | case $CONFIG_FILES in | |
14497 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14498 | *) set x $CONFIG_FILES ;; | |
14499 | esac | |
14500 | shift | |
14501 | for mf | |
14502 | do | |
14503 | # Strip MF so we end up with the name of the file. | |
14504 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14505 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 14506 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
14507 | # some people rename them; so instead we look at the file content. |
14508 | # Grep'ing the first line is not enough: some people post-process | |
14509 | # each Makefile.in and add a new line on top of each file to say so. | |
14510 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14511 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14512 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14513 | dirpart=`$as_dirname -- "$mf" || | |
14514 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14515 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14516 | X"$mf" : 'X\(//\)$' \| \ | |
14517 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14518 | $as_echo X"$mf" | | |
14519 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14520 | s//\1/ | |
14521 | q | |
14522 | } | |
14523 | /^X\(\/\/\)[^/].*/{ | |
14524 | s//\1/ | |
14525 | q | |
14526 | } | |
14527 | /^X\(\/\/\)$/{ | |
14528 | s//\1/ | |
14529 | q | |
14530 | } | |
14531 | /^X\(\/\).*/{ | |
14532 | s//\1/ | |
14533 | q | |
14534 | } | |
14535 | s/.*/./; q'` | |
14536 | else | |
14537 | continue | |
14538 | fi | |
14539 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 14540 | # from the Makefile without running 'make'. |
8d138742 CE |
14541 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14542 | test -z "$DEPDIR" && continue | |
14543 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 14544 | test -z "$am__include" && continue |
8d138742 | 14545 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
14546 | # Find all dependency output files, they are included files with |
14547 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14548 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14549 | # expansion. | |
14550 | for file in `sed -n " | |
14551 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 14552 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
14553 | # Make sure the directory exists. |
14554 | test -f "$dirpart/$file" && continue | |
14555 | fdir=`$as_dirname -- "$file" || | |
14556 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14557 | X"$file" : 'X\(//\)[^/]' \| \ | |
14558 | X"$file" : 'X\(//\)$' \| \ | |
14559 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14560 | $as_echo X"$file" | | |
14561 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14562 | s//\1/ | |
14563 | q | |
14564 | } | |
14565 | /^X\(\/\/\)[^/].*/{ | |
14566 | s//\1/ | |
14567 | q | |
14568 | } | |
14569 | /^X\(\/\/\)$/{ | |
14570 | s//\1/ | |
14571 | q | |
14572 | } | |
14573 | /^X\(\/\).*/{ | |
14574 | s//\1/ | |
14575 | q | |
14576 | } | |
14577 | s/.*/./; q'` | |
b0322a85 | 14578 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
14579 | # echo "creating $dirpart/$file" |
14580 | echo '# dummy' > "$dirpart/$file" | |
14581 | done | |
14582 | done | |
14583 | } | |
14584 | ;; | |
14585 | "libtool":C) | |
d9898ee8 | 14586 | |
d50284c4 | 14587 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14588 | # commands through without removal of \ escapes. |
d50284c4 | 14589 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
14590 | setopt NO_GLOB_SUBST |
14591 | fi | |
d9898ee8 | 14592 | |
d50284c4 | 14593 | cfgfile=${ofile}T |
8d138742 CE |
14594 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14595 | $RM "$cfgfile" | |
14596 | ||
14597 | cat <<_LT_EOF >> "$cfgfile" | |
14598 | #! $SHELL | |
d50284c4 | 14599 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
14600 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14601 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
14602 | |
14603 | # Provide generalized library-building support services. | |
14604 | # Written by Gordon Matzigkeit, 1996 | |
14605 | ||
14606 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14607 | # This is free software; see the source for copying conditions. There is NO | |
14608 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14609 | ||
14610 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14611 | # it under the terms of the GNU General Public License as published by | |
14612 | # the Free Software Foundation; either version 2 of of the License, or | |
14613 | # (at your option) any later version. | |
d9898ee8 | 14614 | # |
d50284c4 CE |
14615 | # As a special exception to the GNU General Public License, if you |
14616 | # distribute this file as part of a program or library that is built | |
14617 | # using GNU Libtool, you may include this file under the same | |
14618 | # distribution terms that you use for the rest of that program. | |
8d138742 | 14619 | # |
d50284c4 CE |
14620 | # GNU Libtool is distributed in the hope that it will be useful, but |
14621 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
14622 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14623 | # GNU General Public License for more details. | |
14624 | # | |
14625 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 14626 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 14627 | |
14628 | ||
8d138742 | 14629 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
14630 | available_tags='' |
14631 | ||
14632 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14633 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
d9898ee8 | 14634 | |
8d138742 | 14635 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14636 | |
8d138742 CE |
14637 | # Which release of libtool.m4 was used? |
14638 | macro_version=$macro_version | |
14639 | macro_revision=$macro_revision | |
d9898ee8 | 14640 | |
8d138742 CE |
14641 | # Whether or not to build shared libraries. |
14642 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14643 | |
8d138742 CE |
14644 | # Whether or not to build static libraries. |
14645 | build_old_libs=$enable_static | |
d9898ee8 | 14646 | |
8d138742 CE |
14647 | # What type of objects to build. |
14648 | pic_mode=$pic_mode | |
d9898ee8 | 14649 | |
8d138742 CE |
14650 | # Whether or not to optimize for fast installation. |
14651 | fast_install=$enable_fast_install | |
d9898ee8 | 14652 | |
d50284c4 CE |
14653 | # Shared archive member basename,for filename based shared library versioning on AIX. |
14654 | shared_archive_member_spec=$shared_archive_member_spec | |
14655 | ||
b0322a85 CE |
14656 | # Shell to use when invoking shell scripts. |
14657 | SHELL=$lt_SHELL | |
14658 | ||
14659 | # An echo program that protects backslashes. | |
14660 | ECHO=$lt_ECHO | |
14661 | ||
14662 | # The PATH separator for the build system. | |
14663 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
14664 | ||
8d138742 CE |
14665 | # The host system. |
14666 | host_alias=$host_alias | |
14667 | host=$host | |
14668 | host_os=$host_os | |
d9898ee8 | 14669 | |
8d138742 CE |
14670 | # The build system. |
14671 | build_alias=$build_alias | |
14672 | build=$build | |
14673 | build_os=$build_os | |
14674 | ||
14675 | # A sed program that does not truncate output. | |
14676 | SED=$lt_SED | |
d9898ee8 | 14677 | |
8d138742 CE |
14678 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14679 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 14680 | |
8d138742 CE |
14681 | # A grep program that handles long lines. |
14682 | GREP=$lt_GREP | |
d9898ee8 | 14683 | |
8d138742 CE |
14684 | # An ERE matcher. |
14685 | EGREP=$lt_EGREP | |
d9898ee8 | 14686 | |
8d138742 CE |
14687 | # A literal string matcher. |
14688 | FGREP=$lt_FGREP | |
d9898ee8 | 14689 | |
8d138742 CE |
14690 | # A BSD- or MS-compatible name lister. |
14691 | NM=$lt_NM | |
d9898ee8 | 14692 | |
8d138742 CE |
14693 | # Whether we need soft or hard links. |
14694 | LN_S=$lt_LN_S | |
dd184caf | 14695 | |
8d138742 CE |
14696 | # What is the maximum length of a command? |
14697 | max_cmd_len=$max_cmd_len | |
dd184caf | 14698 | |
8d138742 CE |
14699 | # Object file suffix (normally "o"). |
14700 | objext=$ac_objext | |
dd184caf | 14701 | |
8d138742 CE |
14702 | # Executable file suffix (normally ""). |
14703 | exeext=$exeext | |
d9898ee8 | 14704 | |
8d138742 CE |
14705 | # whether the shell understands "unset". |
14706 | lt_unset=$lt_unset | |
dd184caf | 14707 | |
8d138742 CE |
14708 | # turn spaces into newlines. |
14709 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 14710 | |
8d138742 CE |
14711 | # turn newlines into spaces. |
14712 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 14713 | |
b0322a85 CE |
14714 | # convert \$build file names to \$host format. |
14715 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14716 | ||
14717 | # convert \$build files to toolchain format. | |
14718 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
dd184caf | 14719 | |
8d138742 CE |
14720 | # An object symbol dumper. |
14721 | OBJDUMP=$lt_OBJDUMP | |
dd184caf | 14722 | |
8d138742 CE |
14723 | # Method to check whether dependent libraries are shared objects. |
14724 | deplibs_check_method=$lt_deplibs_check_method | |
dd184caf | 14725 | |
b0322a85 | 14726 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 CE |
14727 | file_magic_cmd=$lt_file_magic_cmd |
14728 | ||
b0322a85 CE |
14729 | # How to find potential files when deplibs_check_method = "file_magic". |
14730 | file_magic_glob=$lt_file_magic_glob | |
14731 | ||
14732 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14733 | want_nocaseglob=$lt_want_nocaseglob | |
14734 | ||
14735 | # DLL creation program. | |
14736 | DLLTOOL=$lt_DLLTOOL | |
14737 | ||
14738 | # Command to associate shared and link libraries. | |
14739 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14740 | ||
8d138742 CE |
14741 | # The archiver. |
14742 | AR=$lt_AR | |
b0322a85 CE |
14743 | |
14744 | # Flags to create an archive. | |
8d138742 CE |
14745 | AR_FLAGS=$lt_AR_FLAGS |
14746 | ||
b0322a85 CE |
14747 | # How to feed a file listing to the archiver. |
14748 | archiver_list_spec=$lt_archiver_list_spec | |
14749 | ||
8d138742 CE |
14750 | # A symbol stripping program. |
14751 | STRIP=$lt_STRIP | |
14752 | ||
14753 | # Commands used to install an old-style archive. | |
14754 | RANLIB=$lt_RANLIB | |
14755 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14756 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14757 | ||
b0322a85 CE |
14758 | # Whether to use a lock for old archive extraction. |
14759 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14760 | ||
8d138742 CE |
14761 | # A C compiler. |
14762 | LTCC=$lt_CC | |
14763 | ||
14764 | # LTCC compiler flags. | |
14765 | LTCFLAGS=$lt_CFLAGS | |
14766 | ||
14767 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14768 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14769 | ||
14770 | # Transform the output of nm in a proper C declaration. | |
14771 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14772 | ||
d50284c4 CE |
14773 | # Transform the output of nm into a list of symbols to manually relocate. |
14774 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14775 | ||
8d138742 CE |
14776 | # Transform the output of nm in a C name address pair. |
14777 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14778 | ||
14779 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
14780 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14781 | ||
d50284c4 CE |
14782 | # The name lister interface. |
14783 | nm_interface=$lt_lt_cv_nm_interface | |
14784 | ||
b0322a85 CE |
14785 | # Specify filename containing input files for \$NM. |
14786 | nm_file_list_spec=$lt_nm_file_list_spec | |
dd184caf | 14787 | |
d50284c4 | 14788 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 14789 | lt_sysroot=$lt_sysroot |
dd184caf | 14790 | |
d50284c4 CE |
14791 | # Command to truncate a binary pipe. |
14792 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14793 | ||
b0322a85 CE |
14794 | # The name of the directory that contains temporary libtool files. |
14795 | objdir=$objdir | |
dd184caf | 14796 | |
8d138742 CE |
14797 | # Used to examine libraries when file_magic_cmd begins with "file". |
14798 | MAGIC_CMD=$MAGIC_CMD | |
dd184caf | 14799 | |
8d138742 CE |
14800 | # Must we lock files when doing compilation? |
14801 | need_locks=$lt_need_locks | |
d9898ee8 | 14802 | |
b0322a85 CE |
14803 | # Manifest tool. |
14804 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14805 | ||
8d138742 CE |
14806 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14807 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14808 | |
8d138742 CE |
14809 | # Tool to change global to local symbols on Mac OS X. |
14810 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14811 | |
8d138742 CE |
14812 | # Tool to manipulate fat objects and archives on Mac OS X. |
14813 | LIPO=$lt_LIPO | |
d9898ee8 | 14814 | |
8d138742 CE |
14815 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14816 | OTOOL=$lt_OTOOL | |
dd184caf | 14817 | |
8d138742 CE |
14818 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14819 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14820 | |
8d138742 CE |
14821 | # Old archive suffix (normally "a"). |
14822 | libext=$libext | |
d9898ee8 | 14823 | |
8d138742 CE |
14824 | # Shared library suffix (normally ".so"). |
14825 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14826 | |
8d138742 CE |
14827 | # The commands to extract the exported symbol list from a shared archive. |
14828 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14829 | |
8d138742 CE |
14830 | # Variables whose values should be saved in libtool wrapper scripts and |
14831 | # restored at link time. | |
14832 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
d9898ee8 | 14833 | |
8d138742 CE |
14834 | # Do we need the "lib" prefix for modules? |
14835 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14836 | |
8d138742 CE |
14837 | # Do we need a version for libraries? |
14838 | need_version=$need_version | |
d9898ee8 | 14839 | |
8d138742 CE |
14840 | # Library versioning type. |
14841 | version_type=$version_type | |
d9898ee8 | 14842 | |
8d138742 CE |
14843 | # Shared library runtime path variable. |
14844 | runpath_var=$runpath_var | |
d9898ee8 | 14845 | |
8d138742 CE |
14846 | # Shared library path variable. |
14847 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14848 | |
8d138742 CE |
14849 | # Is shlibpath searched before the hard-coded library search path? |
14850 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14851 | |
8d138742 CE |
14852 | # Format of library name prefix. |
14853 | libname_spec=$lt_libname_spec | |
dd184caf | 14854 | |
8d138742 CE |
14855 | # List of archive names. First name is the real one, the rest are links. |
14856 | # The last name is the one that the linker finds with -lNAME | |
14857 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14858 | |
8d138742 CE |
14859 | # The coded name of the library, if different from the real name. |
14860 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14861 | |
b0322a85 CE |
14862 | # Permission mode override for installation of shared libraries. |
14863 | install_override_mode=$lt_install_override_mode | |
14864 | ||
8d138742 CE |
14865 | # Command to use after installation of a shared archive. |
14866 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14867 | |
8d138742 CE |
14868 | # Command to use after uninstallation of a shared archive. |
14869 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14870 | |
8d138742 CE |
14871 | # Commands used to finish a libtool library installation in a directory. |
14872 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 14873 | |
8d138742 CE |
14874 | # As "finish_cmds", except a single script fragment to be evaled but |
14875 | # not shown. | |
14876 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14877 | |
8d138742 CE |
14878 | # Whether we should hardcode library paths into libraries. |
14879 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14880 | |
8d138742 CE |
14881 | # Compile-time system search path for libraries. |
14882 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14883 | |
d50284c4 CE |
14884 | # Detected run-time system search path for libraries. |
14885 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
14886 | ||
14887 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
14888 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 14889 | |
8d138742 CE |
14890 | # Whether dlopen is supported. |
14891 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14892 | |
8d138742 CE |
14893 | # Whether dlopen of programs is supported. |
14894 | dlopen_self=$enable_dlopen_self | |
dd184caf | 14895 | |
8d138742 CE |
14896 | # Whether dlopen of statically linked programs is supported. |
14897 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14898 | |
8d138742 CE |
14899 | # Commands to strip libraries. |
14900 | old_striplib=$lt_old_striplib | |
14901 | striplib=$lt_striplib | |
d9898ee8 | 14902 | |
d9898ee8 | 14903 | |
8d138742 CE |
14904 | # The linker used to build libraries. |
14905 | LD=$lt_LD | |
d9898ee8 | 14906 | |
b0322a85 CE |
14907 | # How to create reloadable object files. |
14908 | reload_flag=$lt_reload_flag | |
14909 | reload_cmds=$lt_reload_cmds | |
14910 | ||
8d138742 CE |
14911 | # Commands used to build an old-style archive. |
14912 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14913 | |
8d138742 CE |
14914 | # A language specific compiler. |
14915 | CC=$lt_compiler | |
d9898ee8 | 14916 | |
8d138742 CE |
14917 | # Is the compiler the GNU compiler? |
14918 | with_gcc=$GCC | |
d9898ee8 | 14919 | |
8d138742 CE |
14920 | # Compiler flag to turn off builtin functions. |
14921 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
d9898ee8 | 14922 | |
8d138742 CE |
14923 | # Additional compiler flags for building library objects. |
14924 | pic_flag=$lt_lt_prog_compiler_pic | |
14925 | ||
b0322a85 CE |
14926 | # How to pass a linker flag through the compiler. |
14927 | wl=$lt_lt_prog_compiler_wl | |
14928 | ||
8d138742 CE |
14929 | # Compiler flag to prevent dynamic linking. |
14930 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14931 | |
8d138742 CE |
14932 | # Does compiler simultaneously support -c and -o options? |
14933 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
d9898ee8 | 14934 | |
8d138742 CE |
14935 | # Whether or not to add -lc for building shared libraries. |
14936 | build_libtool_need_lc=$archive_cmds_need_lc | |
d9898ee8 | 14937 | |
8d138742 CE |
14938 | # Whether or not to disallow shared libs when runtime libs are static. |
14939 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
dd184caf | 14940 | |
8d138742 CE |
14941 | # Compiler flag to allow reflexive dlopens. |
14942 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
dd184caf | 14943 | |
8d138742 CE |
14944 | # Compiler flag to generate shared objects directly from archives. |
14945 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14946 | |
8d138742 CE |
14947 | # Whether the compiler copes with passing no objects directly. |
14948 | compiler_needs_object=$lt_compiler_needs_object | |
dd184caf | 14949 | |
8d138742 CE |
14950 | # Create an old-style archive from a shared archive. |
14951 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14952 | |
8d138742 CE |
14953 | # Create a temporary old-style archive to link instead of a shared archive. |
14954 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14955 | |
8d138742 CE |
14956 | # Commands used to build a shared archive. |
14957 | archive_cmds=$lt_archive_cmds | |
14958 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
d9898ee8 | 14959 | |
8d138742 CE |
14960 | # Commands used to build a loadable module if different from building |
14961 | # a shared archive. | |
14962 | module_cmds=$lt_module_cmds | |
14963 | module_expsym_cmds=$lt_module_expsym_cmds | |
d9898ee8 | 14964 | |
8d138742 CE |
14965 | # Whether we are building with GNU ld or not. |
14966 | with_gnu_ld=$lt_with_gnu_ld | |
d9898ee8 | 14967 | |
8d138742 CE |
14968 | # Flag that allows shared libraries with undefined symbols to be built. |
14969 | allow_undefined_flag=$lt_allow_undefined_flag | |
d9898ee8 | 14970 | |
8d138742 CE |
14971 | # Flag that enforces no undefined symbols. |
14972 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 14973 | |
8d138742 CE |
14974 | # Flag to hardcode \$libdir into a binary during linking. |
14975 | # This must work even if \$libdir does not exist | |
14976 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14977 | |
8d138742 CE |
14978 | # Whether we need a single "-rpath" flag with a separated argument. |
14979 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14980 | |
d50284c4 | 14981 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
14982 | # DIR into the resulting binary. |
14983 | hardcode_direct=$hardcode_direct | |
dd184caf | 14984 | |
d50284c4 | 14985 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 14986 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 14987 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
14988 | # library is relocated. |
14989 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 14990 | |
8d138742 CE |
14991 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14992 | # into the resulting binary. | |
14993 | hardcode_minus_L=$hardcode_minus_L | |
d9898ee8 | 14994 | |
8d138742 CE |
14995 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14996 | # into the resulting binary. | |
14997 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14998 | |
8d138742 CE |
14999 | # Set to "yes" if building a shared library automatically hardcodes DIR |
15000 | # into the library and all subsequent libraries and executables linked | |
15001 | # against it. | |
15002 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 15003 | |
8d138742 CE |
15004 | # Set to yes if linker adds runtime paths of dependent libraries |
15005 | # to runtime path list. | |
15006 | inherit_rpath=$inherit_rpath | |
dd184caf | 15007 | |
8d138742 CE |
15008 | # Whether libtool must link a program against all its dependency libraries. |
15009 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 15010 | |
8d138742 CE |
15011 | # Set to "yes" if exported symbols are required. |
15012 | always_export_symbols=$always_export_symbols | |
dd184caf | 15013 | |
8d138742 CE |
15014 | # The commands to list exported symbols. |
15015 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 15016 | |
8d138742 CE |
15017 | # Symbols that should not be listed in the preloaded symbols. |
15018 | exclude_expsyms=$lt_exclude_expsyms | |
dd184caf | 15019 | |
8d138742 CE |
15020 | # Symbols that must always be exported. |
15021 | include_expsyms=$lt_include_expsyms | |
dd184caf | 15022 | |
8d138742 CE |
15023 | # Commands necessary for linking programs (against libraries) with templates. |
15024 | prelink_cmds=$lt_prelink_cmds | |
dd184caf | 15025 | |
b0322a85 CE |
15026 | # Commands necessary for finishing linking programs. |
15027 | postlink_cmds=$lt_postlink_cmds | |
15028 | ||
8d138742 CE |
15029 | # Specify filename containing input files. |
15030 | file_list_spec=$lt_file_list_spec | |
dd184caf | 15031 | |
8d138742 CE |
15032 | # How to hardcode a shared library path into an executable. |
15033 | hardcode_action=$hardcode_action | |
d9898ee8 | 15034 | |
8d138742 CE |
15035 | # ### END LIBTOOL CONFIG |
15036 | ||
d50284c4 CE |
15037 | _LT_EOF |
15038 | ||
15039 | cat <<'_LT_EOF' >> "$cfgfile" | |
15040 | ||
15041 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
15042 | ||
15043 | # func_munge_path_list VARIABLE PATH | |
15044 | # ----------------------------------- | |
15045 | # VARIABLE is name of variable containing _space_ separated list of | |
15046 | # directories to be munged by the contents of PATH, which is string | |
15047 | # having a format: | |
15048 | # "DIR[:DIR]:" | |
15049 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
15050 | # ":DIR[:DIR]" | |
15051 | # string "DIR[ DIR]" will be appended to VARIABLE | |
15052 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
15053 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
15054 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
15055 | # "DIR[:DIR]" | |
15056 | # VARIABLE will be replaced by "DIR[ DIR]" | |
15057 | func_munge_path_list () | |
15058 | { | |
15059 | case x$2 in | |
15060 | x) | |
15061 | ;; | |
15062 | *:) | |
15063 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
15064 | ;; | |
15065 | x:*) | |
15066 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
15067 | ;; | |
15068 | *::*) | |
15069 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
15070 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
15071 | ;; | |
15072 | *) | |
15073 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
15074 | ;; | |
15075 | esac | |
15076 | } | |
15077 | ||
15078 | ||
15079 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
15080 | func_cc_basename () | |
15081 | { | |
15082 | for cc_temp in $*""; do | |
15083 | case $cc_temp in | |
15084 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15085 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15086 | \-*) ;; | |
15087 | *) break;; | |
15088 | esac | |
15089 | done | |
15090 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
15091 | } | |
15092 | ||
15093 | ||
15094 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
15095 | ||
8d138742 CE |
15096 | _LT_EOF |
15097 | ||
15098 | case $host_os in | |
15099 | aix3*) | |
15100 | cat <<\_LT_EOF >> "$cfgfile" | |
15101 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15102 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15103 | # vanish in a puff of smoke. | |
d50284c4 | 15104 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
15105 | COLLECT_NAMES= |
15106 | export COLLECT_NAMES | |
15107 | fi | |
15108 | _LT_EOF | |
15109 | ;; | |
15110 | esac | |
d9898ee8 | 15111 | |
d9898ee8 | 15112 | |
d50284c4 | 15113 | ltmain=$ac_aux_dir/ltmain.sh |
d9898ee8 | 15114 | |
d9898ee8 | 15115 | |
8d138742 CE |
15116 | # We use sed instead of cat because bash on DJGPP gets confused if |
15117 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15118 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15119 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
15120 | sed '$q' "$ltmain" >> "$cfgfile" \ |
15121 | || (rm -f "$cfgfile"; exit 1) | |
15122 | ||
b0322a85 | 15123 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
15124 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15125 | chmod +x "$ofile" | |
15126 | ||
d9898ee8 | 15127 | ;; |
dd184caf | 15128 | |
d9898ee8 | 15129 | esac |
dd184caf | 15130 | done # for ac_tag |
d9898ee8 | 15131 | |
d9898ee8 | 15132 | |
b0322a85 | 15133 | as_fn_exit 0 |
d9898ee8 | 15134 | _ACEOF |
d9898ee8 | 15135 | ac_clean_files=$ac_clean_files_save |
15136 | ||
8d138742 | 15137 | test $ac_write_fail = 0 || |
b0322a85 | 15138 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 15139 | |
d9898ee8 | 15140 | |
15141 | # configure is writing to config.log, and then calls config.status. | |
15142 | # config.status does its own redirection, appending to config.log. | |
15143 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15144 | # by configure, so config.status won't be able to write to it; its | |
15145 | # output is simply discarded. So we exec the FD to /dev/null, | |
15146 | # effectively closing config.log, so it can be properly (re)opened and | |
15147 | # appended to by config.status. When coming back to configure, we | |
15148 | # need to make the FD available again. | |
15149 | if test "$no_create" != yes; then | |
15150 | ac_cs_success=: | |
15151 | ac_config_status_args= | |
15152 | test "$silent" = yes && | |
15153 | ac_config_status_args="$ac_config_status_args --quiet" | |
15154 | exec 5>/dev/null | |
15155 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15156 | exec 5>>config.log | |
15157 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15158 | # would make configure fail if this is the last instruction. | |
b0322a85 | 15159 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 15160 | fi |
8d138742 | 15161 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 15162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
15163 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15164 | fi | |
d9898ee8 | 15165 |