]>
Commit | Line | Data |
---|---|---|
db137867 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
bf4e01a4 | 3 | # Generated by GNU Autoconf 2.69 for libratbox devel. |
db137867 | 4 | # |
030272f3 | 5 | # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 | 6 | # |
96f4052b | 7 | # |
bf4e01a4 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
96f4052b | 9 | # |
7083c021 | 10 | # |
db137867 AC |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
db137867 AC |
16 | |
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
db137867 AC |
20 | emulate sh |
21 | NULLCMD=: | |
030272f3 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
db137867 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
7083c021 AC |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
db137867 | 32 | esac |
db137867 AC |
33 | fi |
34 | ||
35 | ||
030272f3 VY |
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 | |
7083c021 AC |
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 | |
030272f3 VY |
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' | |
db137867 | 56 | else |
030272f3 VY |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
7083c021 | 60 | case $arg in #( |
030272f3 VY |
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' | |
db137867 | 69 | fi |
030272f3 VY |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
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 | } | |
db137867 AC |
81 | fi |
82 | ||
db137867 AC |
83 | |
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.) | |
db137867 AC |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
08c2568c | 92 | as_myself= |
7083c021 | 93 | case $0 in #(( |
db137867 AC |
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=. | |
7083c021 AC |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
db137867 AC |
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 | |
030272f3 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7083c021 | 113 | exit 1 |
db137867 AC |
114 | fi |
115 | ||
7083c021 AC |
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 || : | |
db137867 AC |
123 | done |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
030272f3 VY |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
db137867 | 133 | |
7083c021 AC |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
bf4e01a4 AC |
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;} | |
7083c021 AC |
162 | if test "x$CONFIG_SHELL" = x; then |
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 | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
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; } | |
184 | ||
185 | exitcode=0 | |
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 | |
bf4e01a4 AC |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
7083c021 AC |
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 | |
b6d0720c AC |
201 | test \$(( 1 + 1 )) = 2 || exit 1 |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
7083c021 AC |
210 | if (eval "$as_required") 2>/dev/null; then : |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
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=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
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 | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
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; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
bf4e01a4 AC |
249 | export CONFIG_SHELL |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
7083c021 AC |
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 about your system, | |
278 | $0: including any error possibly output before this | |
279 | $0: message. Then install a modern shell, or manually run | |
280 | $0: the script under such a shell if you do have one." | |
281 | fi | |
282 | exit 1 | |
283 | fi | |
284 | fi | |
285 | fi | |
286 | SHELL=${CONFIG_SHELL-/bin/sh} | |
287 | export SHELL | |
288 | # Unset more variables known to interfere with behavior of common tools. | |
289 | CLICOLOR_FORCE= GREP_OPTIONS= | |
290 | unset CLICOLOR_FORCE GREP_OPTIONS | |
291 | ||
292 | ## --------------------- ## | |
293 | ## M4sh Shell Functions. ## | |
294 | ## --------------------- ## | |
295 | # as_fn_unset VAR | |
296 | # --------------- | |
297 | # Portably unset VAR. | |
298 | as_fn_unset () | |
299 | { | |
300 | { eval $1=; unset $1;} | |
301 | } | |
302 | as_unset=as_fn_unset | |
303 | ||
304 | # as_fn_set_status STATUS | |
305 | # ----------------------- | |
306 | # Set $? to STATUS, without forking. | |
307 | as_fn_set_status () | |
308 | { | |
309 | return $1 | |
310 | } # as_fn_set_status | |
311 | ||
312 | # as_fn_exit STATUS | |
313 | # ----------------- | |
314 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
315 | as_fn_exit () | |
316 | { | |
317 | set +e | |
318 | as_fn_set_status $1 | |
319 | exit $1 | |
320 | } # as_fn_exit | |
321 | ||
322 | # as_fn_mkdir_p | |
323 | # ------------- | |
324 | # Create "$as_dir" as a directory, including parents if necessary. | |
325 | as_fn_mkdir_p () | |
326 | { | |
327 | ||
328 | case $as_dir in #( | |
329 | -*) as_dir=./$as_dir;; | |
330 | esac | |
331 | test -d "$as_dir" || eval $as_mkdir_p || { | |
332 | as_dirs= | |
333 | while :; do | |
334 | case $as_dir in #( | |
335 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
336 | *) as_qdir=$as_dir;; | |
337 | esac | |
338 | as_dirs="'$as_qdir' $as_dirs" | |
339 | as_dir=`$as_dirname -- "$as_dir" || | |
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
342 | X"$as_dir" : 'X\(//\)$' \| \ | |
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
344 | $as_echo X"$as_dir" | | |
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)[^/].*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\/\)$/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | /^X\(\/\).*/{ | |
358 | s//\1/ | |
359 | q | |
360 | } | |
361 | s/.*/./; q'` | |
362 | test -d "$as_dir" && break | |
363 | done | |
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
08c2568c | 365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
366 | |
367 | ||
368 | } # as_fn_mkdir_p | |
bf4e01a4 AC |
369 | |
370 | # as_fn_executable_p FILE | |
371 | # ----------------------- | |
372 | # Test if FILE is an executable regular file. | |
373 | as_fn_executable_p () | |
374 | { | |
375 | test -f "$1" && test -x "$1" | |
376 | } # as_fn_executable_p | |
7083c021 AC |
377 | # as_fn_append VAR VALUE |
378 | # ---------------------- | |
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
380 | # advantage of any shell optimizations that allow amortized linear growth over | |
381 | # repeated appends, instead of the typical quadratic growth present in naive | |
382 | # implementations. | |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
384 | eval 'as_fn_append () | |
385 | { | |
386 | eval $1+=\$2 | |
387 | }' | |
388 | else | |
389 | as_fn_append () | |
390 | { | |
391 | eval $1=\$$1\$2 | |
392 | } | |
393 | fi # as_fn_append | |
394 | ||
395 | # as_fn_arith ARG... | |
396 | # ------------------ | |
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
399 | # must be portable across $(()) and expr. | |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
401 | eval 'as_fn_arith () | |
402 | { | |
403 | as_val=$(( $* )) | |
404 | }' | |
405 | else | |
406 | as_fn_arith () | |
407 | { | |
408 | as_val=`expr "$@" || test $? -eq 1` | |
409 | } | |
410 | fi # as_fn_arith | |
411 | ||
412 | ||
08c2568c EM |
413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
414 | # ---------------------------------------- | |
7083c021 AC |
415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
08c2568c | 417 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
418 | as_fn_error () |
419 | { | |
08c2568c EM |
420 | as_status=$1; test $as_status -eq 0 && as_status=1 |
421 | if test "$4"; then | |
422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
423 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 424 | fi |
08c2568c | 425 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
426 | as_fn_exit $as_status |
427 | } # as_fn_error | |
428 | ||
db137867 AC |
429 | if expr a : '\(a\)' >/dev/null 2>&1 && |
430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
431 | as_expr=expr | |
432 | else | |
433 | as_expr=false | |
434 | fi | |
435 | ||
436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
437 | as_basename=basename | |
438 | else | |
439 | as_basename=false | |
440 | fi | |
441 | ||
7083c021 AC |
442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
443 | as_dirname=dirname | |
444 | else | |
445 | as_dirname=false | |
446 | fi | |
db137867 | 447 | |
db137867 AC |
448 | as_me=`$as_basename -- "$0" || |
449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
450 | X"$0" : 'X\(//\)$' \| \ | |
451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 452 | $as_echo X/"$0" | |
db137867 AC |
453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | /^X\/\(\/\/\)$/{ | |
458 | s//\1/ | |
459 | q | |
460 | } | |
461 | /^X\/\(\/\).*/{ | |
462 | s//\1/ | |
463 | q | |
464 | } | |
465 | s/.*/./; q'` | |
466 | ||
7083c021 AC |
467 | # Avoid depending upon Character Ranges. |
468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
471 | as_cr_digits='0123456789' | |
472 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
db137867 AC |
473 | |
474 | ||
7083c021 AC |
475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
480 | sed -n ' | |
481 | p | |
482 | /[$]LINENO/= | |
483 | ' <$as_myself | | |
484 | sed ' | |
485 | s/[$]LINENO.*/&-/ | |
486 | t lineno | |
487 | b | |
488 | :lineno | |
489 | N | |
490 | :loop | |
491 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
492 | t loop | |
493 | s/-\n.*// | |
494 | ' >$as_me.lineno && | |
495 | chmod +x "$as_me.lineno" || | |
496 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
db137867 | 497 | |
bf4e01a4 AC |
498 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
499 | # already done that, so ensure we don't try to do so again and fall | |
500 | # in an infinite loop. This has already happened in practice. | |
501 | _as_can_reexec=no; export _as_can_reexec | |
7083c021 AC |
502 | # Don't try to exec as it changes $[0], causing all sort of problems |
503 | # (the dirname of $[0] is not the place where we might find the | |
504 | # original and so on. Autoconf is especially sensitive to this). | |
505 | . "./$as_me.lineno" | |
506 | # Exit status is that of the last command. | |
507 | exit | |
db137867 AC |
508 | } |
509 | ||
7083c021 AC |
510 | ECHO_C= ECHO_N= ECHO_T= |
511 | case `echo -n x` in #((((( | |
512 | -n*) | |
513 | case `echo 'xy\c'` in | |
514 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
515 | xy) ECHO_C='\c';; | |
516 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
517 | ECHO_T=' ';; | |
518 | esac;; | |
519 | *) | |
520 | ECHO_N='-n';; | |
521 | esac | |
db137867 | 522 | |
7083c021 AC |
523 | rm -f conf$$ conf$$.exe conf$$.file |
524 | if test -d conf$$.dir; then | |
525 | rm -f conf$$.dir/conf$$.file | |
526 | else | |
527 | rm -f conf$$.dir | |
528 | mkdir conf$$.dir 2>/dev/null | |
db137867 | 529 | fi |
7083c021 AC |
530 | if (echo >conf$$.file) 2>/dev/null; then |
531 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
532 | as_ln_s='ln -s' | |
533 | # ... but there are two gotchas: | |
534 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
535 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
bf4e01a4 | 536 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 537 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bf4e01a4 | 538 | as_ln_s='cp -pR' |
7083c021 AC |
539 | elif ln conf$$.file conf$$ 2>/dev/null; then |
540 | as_ln_s=ln | |
541 | else | |
bf4e01a4 | 542 | as_ln_s='cp -pR' |
7083c021 | 543 | fi |
db137867 | 544 | else |
bf4e01a4 | 545 | as_ln_s='cp -pR' |
db137867 | 546 | fi |
7083c021 AC |
547 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
548 | rmdir conf$$.dir 2>/dev/null | |
db137867 | 549 | |
7083c021 AC |
550 | if mkdir -p . 2>/dev/null; then |
551 | as_mkdir_p='mkdir -p "$as_dir"' | |
552 | else | |
553 | test -d ./-p && rmdir ./-p | |
554 | as_mkdir_p=false | |
db137867 AC |
555 | fi |
556 | ||
bf4e01a4 AC |
557 | as_test_x='test -x' |
558 | as_executable_p=as_fn_executable_p | |
db137867 | 559 | |
7083c021 AC |
560 | # Sed expression to map a string onto a valid CPP name. |
561 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 562 | |
7083c021 AC |
563 | # Sed expression to map a string onto a valid variable name. |
564 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 565 | |
db137867 AC |
566 | SHELL=${CONFIG_SHELL-/bin/sh} |
567 | ||
db137867 | 568 | |
96f4052b AC |
569 | test -n "$DJDIR" || exec 7<&0 </dev/null |
570 | exec 6>&1 | |
db137867 AC |
571 | |
572 | # Name of the host. | |
08c2568c | 573 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
db137867 AC |
574 | # so uname gets run too. |
575 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
576 | ||
577 | # | |
578 | # Initializations. | |
579 | # | |
580 | ac_default_prefix=/usr/local | |
581 | ac_clean_files= | |
582 | ac_config_libobj_dir=. | |
583 | LIBOBJS= | |
584 | cross_compiling=no | |
585 | subdirs= | |
586 | MFLAGS= | |
587 | MAKEFLAGS= | |
db137867 AC |
588 | |
589 | # Identity of this package. | |
590 | PACKAGE_NAME='libratbox' | |
591 | PACKAGE_TARNAME='libratbox' | |
592 | PACKAGE_VERSION='devel' | |
593 | PACKAGE_STRING='libratbox devel' | |
594 | PACKAGE_BUGREPORT='' | |
7083c021 | 595 | PACKAGE_URL='' |
db137867 AC |
596 | |
597 | ac_default_prefix=/usr/local/libratbox | |
598 | # Factoring default headers for most tests. | |
599 | ac_includes_default="\ | |
600 | #include <stdio.h> | |
601 | #ifdef HAVE_SYS_TYPES_H | |
602 | # include <sys/types.h> | |
603 | #endif | |
604 | #ifdef HAVE_SYS_STAT_H | |
605 | # include <sys/stat.h> | |
606 | #endif | |
607 | #ifdef STDC_HEADERS | |
608 | # include <stdlib.h> | |
609 | # include <stddef.h> | |
610 | #else | |
611 | # ifdef HAVE_STDLIB_H | |
612 | # include <stdlib.h> | |
613 | # endif | |
614 | #endif | |
615 | #ifdef HAVE_STRING_H | |
616 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
617 | # include <memory.h> | |
618 | # endif | |
619 | # include <string.h> | |
620 | #endif | |
621 | #ifdef HAVE_STRINGS_H | |
622 | # include <strings.h> | |
623 | #endif | |
624 | #ifdef HAVE_INTTYPES_H | |
625 | # include <inttypes.h> | |
626 | #endif | |
627 | #ifdef HAVE_STDINT_H | |
628 | # include <stdint.h> | |
629 | #endif | |
630 | #ifdef HAVE_UNISTD_H | |
631 | # include <unistd.h> | |
632 | #endif" | |
633 | ||
96f4052b | 634 | ac_header_list= |
7083c021 AC |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
030272f3 VY |
638 | LIBOBJS |
639 | RB_PREFIX | |
cd492e44 AC |
640 | MBEDTLS_LIBS |
641 | MBEDTLS_CFLAGS | |
030272f3 VY |
642 | SSL_LIBS |
643 | SSL_CFLAGS | |
644 | SEDOBJ | |
645 | PICFLAGS | |
bf4e01a4 AC |
646 | GNUTLS_LIBS |
647 | GNUTLS_CFLAGS | |
648 | PKG_CONFIG_LIBDIR | |
649 | PKG_CONFIG_PATH | |
650 | PKG_CONFIG | |
030272f3 | 651 | ALLOCA |
030272f3 VY |
652 | MINGW_FALSE |
653 | MINGW_TRUE | |
6f57a957 | 654 | LT_SYS_LIBRARY_PATH |
7083c021 AC |
655 | OTOOL64 |
656 | OTOOL | |
657 | LIPO | |
030272f3 VY |
658 | NMEDIT |
659 | DSYMUTIL | |
b6d0720c | 660 | MANIFEST_TOOL |
030272f3 | 661 | RANLIB |
b6d0720c | 662 | ac_ct_AR |
030272f3 | 663 | AR |
b6d0720c | 664 | DLLTOOL |
7083c021 | 665 | OBJDUMP |
030272f3 | 666 | LN_S |
7083c021 AC |
667 | NM |
668 | ac_ct_DUMPBIN | |
669 | DUMPBIN | |
670 | LD | |
671 | FGREP | |
030272f3 VY |
672 | host_os |
673 | host_vendor | |
674 | host_cpu | |
675 | host | |
676 | build_os | |
677 | build_vendor | |
678 | build_cpu | |
679 | build | |
7083c021 | 680 | LIBTOOL |
030272f3 VY |
681 | TOUCH |
682 | LN | |
683 | MV | |
684 | CP | |
685 | RM | |
686 | AS | |
687 | MAINT | |
688 | MAINTAINER_MODE_FALSE | |
689 | MAINTAINER_MODE_TRUE | |
690 | SED | |
691 | EGREP | |
692 | GREP | |
693 | CPP | |
694 | am__fastdepCC_FALSE | |
695 | am__fastdepCC_TRUE | |
696 | CCDEPMODE | |
bf4e01a4 | 697 | am__nodep |
030272f3 VY |
698 | AMDEPBACKSLASH |
699 | AMDEP_FALSE | |
700 | AMDEP_TRUE | |
701 | am__quote | |
702 | am__include | |
703 | DEPDIR | |
704 | OBJEXT | |
705 | EXEEXT | |
706 | ac_ct_CC | |
707 | CPPFLAGS | |
708 | LDFLAGS | |
709 | CFLAGS | |
710 | CC | |
bf4e01a4 AC |
711 | AM_BACKSLASH |
712 | AM_DEFAULT_VERBOSITY | |
713 | AM_DEFAULT_V | |
714 | AM_V | |
030272f3 VY |
715 | am__untar |
716 | am__tar | |
717 | AMTAR | |
718 | am__leading_dot | |
719 | SET_MAKE | |
720 | AWK | |
721 | mkdir_p | |
722 | MKDIR_P | |
723 | INSTALL_STRIP_PROGRAM | |
724 | STRIP | |
725 | install_sh | |
726 | MAKEINFO | |
727 | AUTOHEADER | |
728 | AUTOMAKE | |
729 | AUTOCONF | |
730 | ACLOCAL | |
731 | VERSION | |
732 | PACKAGE | |
733 | CYGPATH_W | |
734 | am__isrc | |
735 | INSTALL_DATA | |
736 | INSTALL_SCRIPT | |
737 | INSTALL_PROGRAM | |
738 | target_alias | |
739 | host_alias | |
db137867 | 740 | build_alias |
030272f3 VY |
741 | LIBS |
742 | ECHO_T | |
743 | ECHO_N | |
744 | ECHO_C | |
745 | DEFS | |
746 | mandir | |
747 | localedir | |
748 | libdir | |
749 | psdir | |
750 | pdfdir | |
751 | dvidir | |
752 | htmldir | |
753 | infodir | |
754 | docdir | |
755 | oldincludedir | |
756 | includedir | |
757 | localstatedir | |
758 | sharedstatedir | |
759 | sysconfdir | |
760 | datadir | |
761 | datarootdir | |
762 | libexecdir | |
763 | sbindir | |
764 | bindir | |
765 | program_transform_name | |
766 | prefix | |
767 | exec_prefix | |
7083c021 | 768 | PACKAGE_URL |
030272f3 VY |
769 | PACKAGE_BUGREPORT |
770 | PACKAGE_STRING | |
771 | PACKAGE_VERSION | |
772 | PACKAGE_TARNAME | |
773 | PACKAGE_NAME | |
774 | PATH_SEPARATOR | |
775 | SHELL' | |
776 | ac_subst_files='' | |
777 | ac_user_opts=' | |
778 | enable_option_checking | |
bf4e01a4 | 779 | enable_silent_rules |
030272f3 VY |
780 | enable_dependency_tracking |
781 | enable_static | |
782 | enable_shared | |
783 | enable_maintainer_mode | |
7083c021 | 784 | with_pic |
030272f3 | 785 | enable_fast_install |
6f57a957 | 786 | with_aix_soname |
030272f3 | 787 | with_gnu_ld |
b6d0720c | 788 | with_sysroot |
030272f3 | 789 | enable_libtool_lock |
030272f3 VY |
790 | enable_ipv6 |
791 | enable_openssl | |
6f57a957 | 792 | enable_mbedtls |
bf4e01a4 | 793 | enable_gnutls |
030272f3 VY |
794 | enable_assert |
795 | enable_profile | |
030272f3 VY |
796 | enable_warnings |
797 | ' | |
798 | ac_precious_vars='build_alias | |
db137867 AC |
799 | host_alias |
800 | target_alias | |
db137867 AC |
801 | CC |
802 | CFLAGS | |
803 | LDFLAGS | |
030272f3 | 804 | LIBS |
db137867 | 805 | CPPFLAGS |
bf4e01a4 | 806 | CPP |
6f57a957 | 807 | LT_SYS_LIBRARY_PATH |
bf4e01a4 AC |
808 | PKG_CONFIG |
809 | PKG_CONFIG_PATH | |
810 | PKG_CONFIG_LIBDIR | |
811 | GNUTLS_CFLAGS | |
812 | GNUTLS_LIBS' | |
3202e249 | 813 | |
db137867 AC |
814 | |
815 | # Initialize some variables set by options. | |
816 | ac_init_help= | |
817 | ac_init_version=false | |
030272f3 VY |
818 | ac_unrecognized_opts= |
819 | ac_unrecognized_sep= | |
db137867 AC |
820 | # The variables have the same names as the options, with |
821 | # dashes changed to underlines. | |
822 | cache_file=/dev/null | |
823 | exec_prefix=NONE | |
824 | no_create= | |
825 | no_recursion= | |
826 | prefix=NONE | |
827 | program_prefix=NONE | |
828 | program_suffix=NONE | |
829 | program_transform_name=s,x,x, | |
830 | silent= | |
831 | site= | |
832 | srcdir= | |
833 | verbose= | |
834 | x_includes=NONE | |
835 | x_libraries=NONE | |
836 | ||
837 | # Installation directory options. | |
838 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
839 | # and all the variables that are supposed to be based on exec_prefix | |
840 | # by default will actually change. | |
841 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
842 | # (The list follows the same order as the GNU Coding Standards.) | |
843 | bindir='${exec_prefix}/bin' | |
844 | sbindir='${exec_prefix}/sbin' | |
845 | libexecdir='${exec_prefix}/libexec' | |
846 | datarootdir='${prefix}/share' | |
847 | datadir='${datarootdir}' | |
848 | sysconfdir='${prefix}/etc' | |
849 | sharedstatedir='${prefix}/com' | |
850 | localstatedir='${prefix}/var' | |
851 | includedir='${prefix}/include' | |
852 | oldincludedir='/usr/include' | |
853 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
854 | infodir='${datarootdir}/info' | |
855 | htmldir='${docdir}' | |
856 | dvidir='${docdir}' | |
857 | pdfdir='${docdir}' | |
858 | psdir='${docdir}' | |
859 | libdir='${exec_prefix}/lib' | |
860 | localedir='${datarootdir}/locale' | |
861 | mandir='${datarootdir}/man' | |
862 | ||
863 | ac_prev= | |
864 | ac_dashdash= | |
865 | for ac_option | |
866 | do | |
867 | # If the previous option needs an argument, assign it. | |
868 | if test -n "$ac_prev"; then | |
869 | eval $ac_prev=\$ac_option | |
870 | ac_prev= | |
871 | continue | |
872 | fi | |
873 | ||
874 | case $ac_option in | |
08c2568c EM |
875 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
876 | *=) ac_optarg= ;; | |
877 | *) ac_optarg=yes ;; | |
db137867 AC |
878 | esac |
879 | ||
880 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
881 | ||
882 | case $ac_dashdash$ac_option in | |
883 | --) | |
884 | ac_dashdash=yes ;; | |
885 | ||
886 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
887 | ac_prev=bindir ;; | |
888 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
889 | bindir=$ac_optarg ;; | |
890 | ||
891 | -build | --build | --buil | --bui | --bu) | |
892 | ac_prev=build_alias ;; | |
893 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
894 | build_alias=$ac_optarg ;; | |
895 | ||
896 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
897 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
898 | ac_prev=cache_file ;; | |
899 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
900 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
901 | cache_file=$ac_optarg ;; | |
902 | ||
903 | --config-cache | -C) | |
904 | cache_file=config.cache ;; | |
905 | ||
906 | -datadir | --datadir | --datadi | --datad) | |
907 | ac_prev=datadir ;; | |
908 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
909 | datadir=$ac_optarg ;; | |
910 | ||
911 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
912 | | --dataroo | --dataro | --datar) | |
913 | ac_prev=datarootdir ;; | |
914 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
915 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
916 | datarootdir=$ac_optarg ;; | |
917 | ||
918 | -disable-* | --disable-*) | |
030272f3 | 919 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
db137867 | 920 | # Reject names that are not valid shell variable names. |
030272f3 | 921 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 922 | as_fn_error $? "invalid feature name: $ac_useropt" |
030272f3 VY |
923 | ac_useropt_orig=$ac_useropt |
924 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
925 | case $ac_user_opts in | |
926 | *" | |
927 | "enable_$ac_useropt" | |
928 | "*) ;; | |
929 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
930 | ac_unrecognized_sep=', ';; | |
931 | esac | |
932 | eval enable_$ac_useropt=no ;; | |
db137867 AC |
933 | |
934 | -docdir | --docdir | --docdi | --doc | --do) | |
935 | ac_prev=docdir ;; | |
936 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
937 | docdir=$ac_optarg ;; | |
938 | ||
939 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
940 | ac_prev=dvidir ;; | |
941 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
942 | dvidir=$ac_optarg ;; | |
943 | ||
944 | -enable-* | --enable-*) | |
030272f3 | 945 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
db137867 | 946 | # Reject names that are not valid shell variable names. |
030272f3 | 947 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 948 | as_fn_error $? "invalid feature name: $ac_useropt" |
030272f3 VY |
949 | ac_useropt_orig=$ac_useropt |
950 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
951 | case $ac_user_opts in | |
952 | *" | |
953 | "enable_$ac_useropt" | |
954 | "*) ;; | |
955 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
956 | ac_unrecognized_sep=', ';; | |
957 | esac | |
958 | eval enable_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
959 | |
960 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
961 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
962 | | --exec | --exe | --ex) | |
963 | ac_prev=exec_prefix ;; | |
964 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
965 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
966 | | --exec=* | --exe=* | --ex=*) | |
967 | exec_prefix=$ac_optarg ;; | |
968 | ||
969 | -gas | --gas | --ga | --g) | |
970 | # Obsolete; use --with-gas. | |
971 | with_gas=yes ;; | |
972 | ||
973 | -help | --help | --hel | --he | -h) | |
974 | ac_init_help=long ;; | |
975 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
976 | ac_init_help=recursive ;; | |
977 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
978 | ac_init_help=short ;; | |
979 | ||
980 | -host | --host | --hos | --ho) | |
981 | ac_prev=host_alias ;; | |
982 | -host=* | --host=* | --hos=* | --ho=*) | |
983 | host_alias=$ac_optarg ;; | |
984 | ||
985 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
986 | ac_prev=htmldir ;; | |
987 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
988 | | --ht=*) | |
989 | htmldir=$ac_optarg ;; | |
990 | ||
991 | -includedir | --includedir | --includedi | --included | --include \ | |
992 | | --includ | --inclu | --incl | --inc) | |
993 | ac_prev=includedir ;; | |
994 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
995 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
996 | includedir=$ac_optarg ;; | |
997 | ||
998 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
999 | ac_prev=infodir ;; | |
1000 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1001 | infodir=$ac_optarg ;; | |
1002 | ||
1003 | -libdir | --libdir | --libdi | --libd) | |
1004 | ac_prev=libdir ;; | |
1005 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1006 | libdir=$ac_optarg ;; | |
1007 | ||
1008 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1009 | | --libexe | --libex | --libe) | |
1010 | ac_prev=libexecdir ;; | |
1011 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1012 | | --libexe=* | --libex=* | --libe=*) | |
1013 | libexecdir=$ac_optarg ;; | |
1014 | ||
1015 | -localedir | --localedir | --localedi | --localed | --locale) | |
1016 | ac_prev=localedir ;; | |
1017 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1018 | localedir=$ac_optarg ;; | |
1019 | ||
1020 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1021 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1022 | ac_prev=localstatedir ;; | |
1023 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1024 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1025 | localstatedir=$ac_optarg ;; | |
1026 | ||
1027 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1028 | ac_prev=mandir ;; | |
1029 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1030 | mandir=$ac_optarg ;; | |
1031 | ||
1032 | -nfp | --nfp | --nf) | |
1033 | # Obsolete; use --without-fp. | |
1034 | with_fp=no ;; | |
1035 | ||
1036 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1037 | | --no-cr | --no-c | -n) | |
1038 | no_create=yes ;; | |
1039 | ||
1040 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1041 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1042 | no_recursion=yes ;; | |
1043 | ||
1044 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1045 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1046 | | --oldin | --oldi | --old | --ol | --o) | |
1047 | ac_prev=oldincludedir ;; | |
1048 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1049 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1050 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1051 | oldincludedir=$ac_optarg ;; | |
1052 | ||
1053 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1054 | ac_prev=prefix ;; | |
1055 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1056 | prefix=$ac_optarg ;; | |
1057 | ||
1058 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1059 | | --program-pre | --program-pr | --program-p) | |
1060 | ac_prev=program_prefix ;; | |
1061 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1062 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1063 | program_prefix=$ac_optarg ;; | |
1064 | ||
1065 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1066 | | --program-suf | --program-su | --program-s) | |
1067 | ac_prev=program_suffix ;; | |
1068 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1069 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1070 | program_suffix=$ac_optarg ;; | |
1071 | ||
1072 | -program-transform-name | --program-transform-name \ | |
1073 | | --program-transform-nam | --program-transform-na \ | |
1074 | | --program-transform-n | --program-transform- \ | |
1075 | | --program-transform | --program-transfor \ | |
1076 | | --program-transfo | --program-transf \ | |
1077 | | --program-trans | --program-tran \ | |
1078 | | --progr-tra | --program-tr | --program-t) | |
1079 | ac_prev=program_transform_name ;; | |
1080 | -program-transform-name=* | --program-transform-name=* \ | |
1081 | | --program-transform-nam=* | --program-transform-na=* \ | |
1082 | | --program-transform-n=* | --program-transform-=* \ | |
1083 | | --program-transform=* | --program-transfor=* \ | |
1084 | | --program-transfo=* | --program-transf=* \ | |
1085 | | --program-trans=* | --program-tran=* \ | |
1086 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1087 | program_transform_name=$ac_optarg ;; | |
1088 | ||
1089 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1090 | ac_prev=pdfdir ;; | |
1091 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1092 | pdfdir=$ac_optarg ;; | |
1093 | ||
1094 | -psdir | --psdir | --psdi | --psd | --ps) | |
1095 | ac_prev=psdir ;; | |
1096 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1097 | psdir=$ac_optarg ;; | |
1098 | ||
1099 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1100 | | -silent | --silent | --silen | --sile | --sil) | |
1101 | silent=yes ;; | |
1102 | ||
1103 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1104 | ac_prev=sbindir ;; | |
1105 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1106 | | --sbi=* | --sb=*) | |
1107 | sbindir=$ac_optarg ;; | |
1108 | ||
1109 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1110 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1111 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1112 | | --sha | --sh) | |
1113 | ac_prev=sharedstatedir ;; | |
1114 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1115 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1116 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1117 | | --sha=* | --sh=*) | |
1118 | sharedstatedir=$ac_optarg ;; | |
1119 | ||
1120 | -site | --site | --sit) | |
1121 | ac_prev=site ;; | |
1122 | -site=* | --site=* | --sit=*) | |
1123 | site=$ac_optarg ;; | |
1124 | ||
1125 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1126 | ac_prev=srcdir ;; | |
1127 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1128 | srcdir=$ac_optarg ;; | |
1129 | ||
1130 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1131 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1132 | ac_prev=sysconfdir ;; | |
1133 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1134 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1135 | sysconfdir=$ac_optarg ;; | |
1136 | ||
1137 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1138 | ac_prev=target_alias ;; | |
1139 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1140 | target_alias=$ac_optarg ;; | |
1141 | ||
1142 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1143 | verbose=yes ;; | |
1144 | ||
1145 | -version | --version | --versio | --versi | --vers | -V) | |
1146 | ac_init_version=: ;; | |
1147 | ||
1148 | -with-* | --with-*) | |
030272f3 | 1149 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
db137867 | 1150 | # Reject names that are not valid shell variable names. |
030272f3 | 1151 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 1152 | as_fn_error $? "invalid package name: $ac_useropt" |
030272f3 VY |
1153 | ac_useropt_orig=$ac_useropt |
1154 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1155 | case $ac_user_opts in | |
1156 | *" | |
1157 | "with_$ac_useropt" | |
1158 | "*) ;; | |
1159 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1160 | ac_unrecognized_sep=', ';; | |
1161 | esac | |
1162 | eval with_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
1163 | |
1164 | -without-* | --without-*) | |
030272f3 | 1165 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
db137867 | 1166 | # Reject names that are not valid shell variable names. |
030272f3 | 1167 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 1168 | as_fn_error $? "invalid package name: $ac_useropt" |
030272f3 VY |
1169 | ac_useropt_orig=$ac_useropt |
1170 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1171 | case $ac_user_opts in | |
1172 | *" | |
1173 | "with_$ac_useropt" | |
1174 | "*) ;; | |
1175 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1176 | ac_unrecognized_sep=', ';; | |
1177 | esac | |
1178 | eval with_$ac_useropt=no ;; | |
db137867 AC |
1179 | |
1180 | --x) | |
1181 | # Obsolete; use --with-x. | |
1182 | with_x=yes ;; | |
1183 | ||
1184 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1185 | | --x-incl | --x-inc | --x-in | --x-i) | |
1186 | ac_prev=x_includes ;; | |
1187 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1188 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1189 | x_includes=$ac_optarg ;; | |
1190 | ||
1191 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1192 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1193 | ac_prev=x_libraries ;; | |
1194 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1195 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1196 | x_libraries=$ac_optarg ;; | |
1197 | ||
08c2568c EM |
1198 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1199 | Try \`$0 --help' for more information" | |
db137867 AC |
1200 | ;; |
1201 | ||
1202 | *=*) | |
1203 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1204 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1205 | case $ac_envvar in #( |
1206 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
08c2568c | 1207 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1208 | esac |
db137867 AC |
1209 | eval $ac_envvar=\$ac_optarg |
1210 | export $ac_envvar ;; | |
1211 | ||
1212 | *) | |
1213 | # FIXME: should be removed in autoconf 3.0. | |
030272f3 | 1214 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
db137867 | 1215 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
030272f3 | 1216 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
08c2568c | 1217 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
db137867 AC |
1218 | ;; |
1219 | ||
1220 | esac | |
1221 | done | |
1222 | ||
1223 | if test -n "$ac_prev"; then | |
1224 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
08c2568c | 1225 | as_fn_error $? "missing argument to $ac_option" |
db137867 AC |
1226 | fi |
1227 | ||
030272f3 VY |
1228 | if test -n "$ac_unrecognized_opts"; then |
1229 | case $enable_option_checking in | |
1230 | no) ;; | |
08c2568c | 1231 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
030272f3 VY |
1232 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1233 | esac | |
1234 | fi | |
1235 | ||
1236 | # Check all directory arguments for consistency. | |
db137867 AC |
1237 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1238 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1239 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1240 | libdir localedir mandir | |
1241 | do | |
1242 | eval ac_val=\$$ac_var | |
030272f3 VY |
1243 | # Remove trailing slashes. |
1244 | case $ac_val in | |
1245 | */ ) | |
1246 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1247 | eval $ac_var=\$ac_val;; | |
1248 | esac | |
1249 | # Be sure to have absolute directory names. | |
db137867 AC |
1250 | case $ac_val in |
1251 | [\\/$]* | ?:[\\/]* ) continue;; | |
1252 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1253 | esac | |
08c2568c | 1254 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
db137867 AC |
1255 | done |
1256 | ||
1257 | # There might be people who depend on the old broken behavior: `$host' | |
1258 | # used to hold the argument of --host etc. | |
1259 | # FIXME: To remove some day. | |
1260 | build=$build_alias | |
1261 | host=$host_alias | |
1262 | target=$target_alias | |
1263 | ||
1264 | # FIXME: To remove some day. | |
1265 | if test "x$host_alias" != x; then | |
1266 | if test "x$build_alias" = x; then | |
1267 | cross_compiling=maybe | |
db137867 AC |
1268 | elif test "x$build_alias" != "x$host_alias"; then |
1269 | cross_compiling=yes | |
1270 | fi | |
1271 | fi | |
1272 | ||
1273 | ac_tool_prefix= | |
1274 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1275 | ||
1276 | test "$silent" = yes && exec 6>/dev/null | |
1277 | ||
1278 | ||
1279 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1280 | ac_ls_di=`ls -di .` && | |
1281 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
08c2568c | 1282 | as_fn_error $? "working directory cannot be determined" |
db137867 | 1283 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
08c2568c | 1284 | as_fn_error $? "pwd does not report name of working directory" |
db137867 AC |
1285 | |
1286 | ||
1287 | # Find the source files, if location was not specified. | |
1288 | if test -z "$srcdir"; then | |
1289 | ac_srcdir_defaulted=yes | |
1290 | # Try the directory containing this script, then the parent directory. | |
030272f3 VY |
1291 | ac_confdir=`$as_dirname -- "$as_myself" || |
1292 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1293 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1294 | X"$as_myself" : 'X\(//\)$' \| \ | |
1295 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1296 | $as_echo X"$as_myself" | | |
db137867 AC |
1297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1298 | s//\1/ | |
1299 | q | |
1300 | } | |
1301 | /^X\(\/\/\)[^/].*/{ | |
1302 | s//\1/ | |
1303 | q | |
1304 | } | |
1305 | /^X\(\/\/\)$/{ | |
1306 | s//\1/ | |
1307 | q | |
1308 | } | |
1309 | /^X\(\/\).*/{ | |
1310 | s//\1/ | |
1311 | q | |
1312 | } | |
1313 | s/.*/./; q'` | |
1314 | srcdir=$ac_confdir | |
1315 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1316 | srcdir=.. | |
1317 | fi | |
1318 | else | |
1319 | ac_srcdir_defaulted=no | |
1320 | fi | |
1321 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1322 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
08c2568c | 1323 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
db137867 AC |
1324 | fi |
1325 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1326 | ac_abs_confdir=`( | |
08c2568c | 1327 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
db137867 AC |
1328 | pwd)` |
1329 | # When building in place, set srcdir=. | |
1330 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1331 | srcdir=. | |
1332 | fi | |
1333 | # Remove unnecessary trailing slashes from srcdir. | |
1334 | # Double slashes in file names in object file debugging info | |
1335 | # mess up M-x gdb in Emacs. | |
1336 | case $srcdir in | |
1337 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1338 | esac | |
1339 | for ac_var in $ac_precious_vars; do | |
1340 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1341 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1342 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1343 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1344 | done | |
1345 | ||
1346 | # | |
1347 | # Report the --help message. | |
1348 | # | |
1349 | if test "$ac_init_help" = "long"; then | |
1350 | # Omit some internal or obsolete options to make the list less imposing. | |
1351 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1352 | cat <<_ACEOF | |
1353 | \`configure' configures libratbox devel to adapt to many kinds of systems. | |
1354 | ||
1355 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1356 | ||
1357 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1358 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1359 | ||
1360 | Defaults for the options are specified in brackets. | |
1361 | ||
1362 | Configuration: | |
1363 | -h, --help display this help and exit | |
1364 | --help=short display options specific to this package | |
1365 | --help=recursive display the short help of all the included packages | |
1366 | -V, --version display version information and exit | |
08c2568c | 1367 | -q, --quiet, --silent do not print \`checking ...' messages |
db137867 AC |
1368 | --cache-file=FILE cache test results in FILE [disabled] |
1369 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1370 | -n, --no-create do not create output files | |
1371 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1372 | ||
1373 | Installation directories: | |
1374 | --prefix=PREFIX install architecture-independent files in PREFIX | |
030272f3 | 1375 | [$ac_default_prefix] |
db137867 | 1376 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
030272f3 | 1377 | [PREFIX] |
db137867 AC |
1378 | |
1379 | By default, \`make install' will install all the files in | |
1380 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1381 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1382 | for instance \`--prefix=\$HOME'. | |
1383 | ||
1384 | For better control, use the options below. | |
1385 | ||
1386 | Fine tuning of the installation directories: | |
030272f3 VY |
1387 | --bindir=DIR user executables [EPREFIX/bin] |
1388 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1389 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1390 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1391 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1392 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1393 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1394 | --includedir=DIR C header files [PREFIX/include] | |
1395 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1396 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1397 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1398 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1399 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1400 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1401 | --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox] | |
1402 | --htmldir=DIR html documentation [DOCDIR] | |
1403 | --dvidir=DIR dvi documentation [DOCDIR] | |
1404 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1405 | --psdir=DIR ps documentation [DOCDIR] | |
db137867 AC |
1406 | _ACEOF |
1407 | ||
1408 | cat <<\_ACEOF | |
1409 | ||
1410 | Program names: | |
1411 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1412 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1413 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1414 | ||
1415 | System types: | |
1416 | --build=BUILD configure for building on BUILD [guessed] | |
1417 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1418 | _ACEOF | |
1419 | fi | |
1420 | ||
1421 | if test -n "$ac_init_help"; then | |
1422 | case $ac_init_help in | |
1423 | short | recursive ) echo "Configuration of libratbox devel:";; | |
1424 | esac | |
1425 | cat <<\_ACEOF | |
1426 | ||
1427 | Optional Features: | |
030272f3 | 1428 | --disable-option-checking ignore unrecognized --enable/--with options |
db137867 AC |
1429 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1430 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
bf4e01a4 AC |
1431 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1432 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1433 | --enable-dependency-tracking | |
1434 | do not reject slow dependency extractors | |
1435 | --disable-dependency-tracking | |
1436 | speeds up one-time build | |
db137867 AC |
1437 | --enable-static[=PKGS] build static libraries [default=no] |
1438 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
bf4e01a4 AC |
1439 | --enable-maintainer-mode |
1440 | enable make rules and dependencies not useful (and | |
1441 | sometimes confusing) to the casual installer | |
db137867 AC |
1442 | --enable-fast-install[=PKGS] |
1443 | optimize for fast installation [default=yes] | |
1444 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1445 | --disable-ipv6 Disable IPv6 support | |
1446 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1447 | --disable-openssl Disable OpenSSL support. | |
6f57a957 AC |
1448 | --enable-mbedtls Enable mbedTLS support. |
1449 | --disable-mbedtls Disable mbedTLS support. | |
bf4e01a4 AC |
1450 | --enable-gnutls Enable GnuTLS support. |
1451 | --disable-gnutls Disable GnuTLS support. | |
db137867 AC |
1452 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1453 | hard(aborts the daemon) | |
1454 | --enable-profile Enable profiling | |
db137867 AC |
1455 | --enable-warnings Enable all sorts of warnings for debugging. |
1456 | ||
1457 | Optional Packages: | |
1458 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1459 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
a949ab1a | 1460 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
db137867 | 1461 | both] |
6f57a957 AC |
1462 | --with-aix-soname=aix|svr4|both |
1463 | shared library versioning (aka "SONAME") variant to | |
1464 | provide on AIX, [default=aix]. | |
7083c021 | 1465 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
6f57a957 AC |
1466 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1467 | compiler's sysroot if not specified). | |
db137867 AC |
1468 | |
1469 | Some influential environment variables: | |
1470 | CC C compiler command | |
1471 | CFLAGS C compiler flags | |
1472 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1473 | nonstandard directory <lib dir> | |
1474 | LIBS libraries to pass to the linker, e.g. -l<library> | |
96f4052b | 1475 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
db137867 AC |
1476 | you have headers in a nonstandard directory <include dir> |
1477 | CPP C preprocessor | |
6f57a957 AC |
1478 | LT_SYS_LIBRARY_PATH |
1479 | User-defined run-time library search path. | |
bf4e01a4 AC |
1480 | PKG_CONFIG path to pkg-config utility |
1481 | PKG_CONFIG_PATH | |
1482 | directories to add to pkg-config's search path | |
1483 | PKG_CONFIG_LIBDIR | |
1484 | path overriding pkg-config's built-in search path | |
1485 | GNUTLS_CFLAGS | |
1486 | C compiler flags for GNUTLS, overriding pkg-config | |
1487 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | |
db137867 AC |
1488 | |
1489 | Use these variables to override the choices made by `configure' or to help | |
1490 | it to find libraries and programs with nonstandard names/locations. | |
1491 | ||
7083c021 | 1492 | Report bugs to the package provider. |
db137867 AC |
1493 | _ACEOF |
1494 | ac_status=$? | |
1495 | fi | |
1496 | ||
1497 | if test "$ac_init_help" = "recursive"; then | |
1498 | # If there are subdirs, report their specific --help. | |
1499 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
030272f3 VY |
1500 | test -d "$ac_dir" || |
1501 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1502 | continue | |
db137867 AC |
1503 | ac_builddir=. |
1504 | ||
1505 | case "$ac_dir" in | |
1506 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1507 | *) | |
030272f3 | 1508 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
db137867 | 1509 | # A ".." for each directory in $ac_dir_suffix. |
030272f3 | 1510 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
db137867 AC |
1511 | case $ac_top_builddir_sub in |
1512 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1513 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1514 | esac ;; | |
1515 | esac | |
1516 | ac_abs_top_builddir=$ac_pwd | |
1517 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1518 | # for backward compatibility: | |
1519 | ac_top_builddir=$ac_top_build_prefix | |
1520 | ||
1521 | case $srcdir in | |
1522 | .) # We are building in place. | |
1523 | ac_srcdir=. | |
1524 | ac_top_srcdir=$ac_top_builddir_sub | |
1525 | ac_abs_top_srcdir=$ac_pwd ;; | |
1526 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1527 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1528 | ac_top_srcdir=$srcdir | |
1529 | ac_abs_top_srcdir=$srcdir ;; | |
1530 | *) # Relative name. | |
1531 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1532 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1533 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1534 | esac | |
1535 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1536 | ||
1537 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1538 | # Check for guested configure. | |
1539 | if test -f "$ac_srcdir/configure.gnu"; then | |
1540 | echo && | |
1541 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1542 | elif test -f "$ac_srcdir/configure"; then | |
1543 | echo && | |
1544 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1545 | else | |
030272f3 | 1546 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
db137867 AC |
1547 | fi || ac_status=$? |
1548 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1549 | done | |
1550 | fi | |
1551 | ||
1552 | test -n "$ac_init_help" && exit $ac_status | |
1553 | if $ac_init_version; then | |
1554 | cat <<\_ACEOF | |
1555 | libratbox configure devel | |
bf4e01a4 | 1556 | generated by GNU Autoconf 2.69 |
db137867 | 1557 | |
bf4e01a4 | 1558 | Copyright (C) 2012 Free Software Foundation, Inc. |
db137867 AC |
1559 | This configure script is free software; the Free Software Foundation |
1560 | gives unlimited permission to copy, distribute and modify it. | |
1561 | ||
030272f3 | 1562 | $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 AC |
1563 | _ACEOF |
1564 | exit | |
1565 | fi | |
7083c021 AC |
1566 | |
1567 | ## ------------------------ ## | |
1568 | ## Autoconf initialization. ## | |
1569 | ## ------------------------ ## | |
1570 | ||
1571 | # ac_fn_c_try_compile LINENO | |
1572 | # -------------------------- | |
1573 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1574 | ac_fn_c_try_compile () | |
1575 | { | |
1576 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1577 | rm -f conftest.$ac_objext | |
1578 | if { { ac_try="$ac_compile" | |
1579 | case "(($ac_try" in | |
1580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1581 | *) ac_try_echo=$ac_try;; | |
1582 | esac | |
1583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1584 | $as_echo "$ac_try_echo"; } >&5 | |
1585 | (eval "$ac_compile") 2>conftest.err | |
1586 | ac_status=$? | |
1587 | if test -s conftest.err; then | |
1588 | grep -v '^ *+' conftest.err >conftest.er1 | |
1589 | cat conftest.er1 >&5 | |
1590 | mv -f conftest.er1 conftest.err | |
1591 | fi | |
1592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1593 | test $ac_status = 0; } && { | |
1594 | test -z "$ac_c_werror_flag" || | |
1595 | test ! -s conftest.err | |
1596 | } && test -s conftest.$ac_objext; then : | |
1597 | ac_retval=0 | |
1598 | else | |
1599 | $as_echo "$as_me: failed program was:" >&5 | |
1600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1601 | ||
1602 | ac_retval=1 | |
1603 | fi | |
08c2568c | 1604 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1605 | as_fn_set_status $ac_retval |
7083c021 AC |
1606 | |
1607 | } # ac_fn_c_try_compile | |
1608 | ||
1609 | # ac_fn_c_try_cpp LINENO | |
1610 | # ---------------------- | |
1611 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1612 | ac_fn_c_try_cpp () | |
1613 | { | |
1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1615 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1616 | case "(($ac_try" in | |
1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1618 | *) ac_try_echo=$ac_try;; | |
1619 | esac | |
1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1621 | $as_echo "$ac_try_echo"; } >&5 | |
1622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1623 | ac_status=$? | |
1624 | if test -s conftest.err; then | |
1625 | grep -v '^ *+' conftest.err >conftest.er1 | |
1626 | cat conftest.er1 >&5 | |
1627 | mv -f conftest.er1 conftest.err | |
1628 | fi | |
1629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
08c2568c | 1630 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1631 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1632 | test ! -s conftest.err | |
1633 | }; then : | |
1634 | ac_retval=0 | |
1635 | else | |
1636 | $as_echo "$as_me: failed program was:" >&5 | |
1637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1638 | ||
1639 | ac_retval=1 | |
1640 | fi | |
08c2568c | 1641 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1642 | as_fn_set_status $ac_retval |
7083c021 AC |
1643 | |
1644 | } # ac_fn_c_try_cpp | |
1645 | ||
1646 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1647 | # ------------------------------------------------------- | |
1648 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1649 | # the include files in INCLUDES and setting the cache variable VAR | |
1650 | # accordingly. | |
1651 | ac_fn_c_check_header_mongrel () | |
1652 | { | |
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
08c2568c | 1654 | if eval \${$3+:} false; then : |
7083c021 AC |
1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1656 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1657 | if eval \${$3+:} false; then : |
7083c021 AC |
1658 | $as_echo_n "(cached) " >&6 |
1659 | fi | |
1660 | eval ac_res=\$$3 | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1662 | $as_echo "$ac_res" >&6; } | |
1663 | else | |
1664 | # Is the header compilable? | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1666 | $as_echo_n "checking $2 usability... " >&6; } | |
1667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1668 | /* end confdefs.h. */ | |
1669 | $4 | |
1670 | #include <$2> | |
1671 | _ACEOF | |
1672 | if ac_fn_c_try_compile "$LINENO"; then : | |
1673 | ac_header_compiler=yes | |
1674 | else | |
1675 | ac_header_compiler=no | |
1676 | fi | |
1677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1679 | $as_echo "$ac_header_compiler" >&6; } | |
1680 | ||
1681 | # Is the header present? | |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1683 | $as_echo_n "checking $2 presence... " >&6; } | |
1684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1685 | /* end confdefs.h. */ | |
1686 | #include <$2> | |
1687 | _ACEOF | |
1688 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1689 | ac_header_preproc=yes | |
1690 | else | |
1691 | ac_header_preproc=no | |
1692 | fi | |
08c2568c | 1693 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1695 | $as_echo "$ac_header_preproc" >&6; } | |
1696 | ||
1697 | # So? What about this header? | |
1698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1699 | yes:no: ) | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1701 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1703 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1704 | ;; | |
1705 | no:yes:* ) | |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1707 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1709 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1711 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1713 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1715 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1716 | ;; | |
1717 | esac | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1719 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1720 | if eval \${$3+:} false; then : |
7083c021 AC |
1721 | $as_echo_n "(cached) " >&6 |
1722 | else | |
1723 | eval "$3=\$ac_header_compiler" | |
1724 | fi | |
1725 | eval ac_res=\$$3 | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1727 | $as_echo "$ac_res" >&6; } | |
1728 | fi | |
08c2568c | 1729 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1730 | |
1731 | } # ac_fn_c_check_header_mongrel | |
1732 | ||
1733 | # ac_fn_c_try_run LINENO | |
1734 | # ---------------------- | |
1735 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1736 | # that executables *can* be run. | |
1737 | ac_fn_c_try_run () | |
1738 | { | |
1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1740 | if { { ac_try="$ac_link" | |
1741 | case "(($ac_try" in | |
1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1743 | *) ac_try_echo=$ac_try;; | |
1744 | esac | |
1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1746 | $as_echo "$ac_try_echo"; } >&5 | |
1747 | (eval "$ac_link") 2>&5 | |
1748 | ac_status=$? | |
1749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1750 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1751 | { { case "(($ac_try" in | |
1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1753 | *) ac_try_echo=$ac_try;; | |
1754 | esac | |
1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1756 | $as_echo "$ac_try_echo"; } >&5 | |
1757 | (eval "$ac_try") 2>&5 | |
1758 | ac_status=$? | |
1759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1760 | test $ac_status = 0; }; }; then : | |
1761 | ac_retval=0 | |
1762 | else | |
1763 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1764 | $as_echo "$as_me: failed program was:" >&5 | |
1765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1766 | ||
1767 | ac_retval=$ac_status | |
1768 | fi | |
1769 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
08c2568c | 1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1771 | as_fn_set_status $ac_retval |
7083c021 AC |
1772 | |
1773 | } # ac_fn_c_try_run | |
1774 | ||
1775 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1776 | # ------------------------------------------------------- | |
1777 | # Tests whether HEADER exists and can be compiled using the include files in | |
1778 | # INCLUDES, setting the cache variable VAR accordingly. | |
1779 | ac_fn_c_check_header_compile () | |
1780 | { | |
1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1783 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1784 | if eval \${$3+:} false; then : |
7083c021 AC |
1785 | $as_echo_n "(cached) " >&6 |
1786 | else | |
1787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1788 | /* end confdefs.h. */ | |
1789 | $4 | |
1790 | #include <$2> | |
1791 | _ACEOF | |
1792 | if ac_fn_c_try_compile "$LINENO"; then : | |
1793 | eval "$3=yes" | |
1794 | else | |
1795 | eval "$3=no" | |
1796 | fi | |
1797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1798 | fi | |
1799 | eval ac_res=\$$3 | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1801 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1802 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1803 | |
1804 | } # ac_fn_c_check_header_compile | |
1805 | ||
1806 | # ac_fn_c_try_link LINENO | |
1807 | # ----------------------- | |
1808 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1809 | ac_fn_c_try_link () | |
1810 | { | |
1811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1813 | if { { ac_try="$ac_link" | |
1814 | case "(($ac_try" in | |
1815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1816 | *) ac_try_echo=$ac_try;; | |
1817 | esac | |
1818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1819 | $as_echo "$ac_try_echo"; } >&5 | |
1820 | (eval "$ac_link") 2>conftest.err | |
1821 | ac_status=$? | |
1822 | if test -s conftest.err; then | |
1823 | grep -v '^ *+' conftest.err >conftest.er1 | |
1824 | cat conftest.er1 >&5 | |
1825 | mv -f conftest.er1 conftest.err | |
1826 | fi | |
1827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1828 | test $ac_status = 0; } && { | |
1829 | test -z "$ac_c_werror_flag" || | |
1830 | test ! -s conftest.err | |
1831 | } && test -s conftest$ac_exeext && { | |
1832 | test "$cross_compiling" = yes || | |
bf4e01a4 | 1833 | test -x conftest$ac_exeext |
7083c021 AC |
1834 | }; then : |
1835 | ac_retval=0 | |
1836 | else | |
1837 | $as_echo "$as_me: failed program was:" >&5 | |
1838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1839 | ||
1840 | ac_retval=1 | |
1841 | fi | |
1842 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1843 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1844 | # interfere with the next link command; also delete a directory that is | |
1845 | # left behind by Apple's compiler. We do this before executing the actions. | |
1846 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
08c2568c | 1847 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1848 | as_fn_set_status $ac_retval |
7083c021 AC |
1849 | |
1850 | } # ac_fn_c_try_link | |
1851 | ||
1852 | # ac_fn_c_check_func LINENO FUNC VAR | |
1853 | # ---------------------------------- | |
1854 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1855 | ac_fn_c_check_func () | |
1856 | { | |
1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1859 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1860 | if eval \${$3+:} false; then : |
7083c021 AC |
1861 | $as_echo_n "(cached) " >&6 |
1862 | else | |
1863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1864 | /* end confdefs.h. */ | |
1865 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1867 | #define $2 innocuous_$2 | |
1868 | ||
1869 | /* System header to define __stub macros and hopefully few prototypes, | |
1870 | which can conflict with char $2 (); below. | |
1871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1872 | <limits.h> exists even on freestanding compilers. */ | |
1873 | ||
1874 | #ifdef __STDC__ | |
1875 | # include <limits.h> | |
1876 | #else | |
1877 | # include <assert.h> | |
1878 | #endif | |
1879 | ||
1880 | #undef $2 | |
1881 | ||
1882 | /* Override any GCC internal prototype to avoid an error. | |
1883 | Use char because int might match the return type of a GCC | |
1884 | builtin and then its argument prototype would still apply. */ | |
1885 | #ifdef __cplusplus | |
1886 | extern "C" | |
1887 | #endif | |
1888 | char $2 (); | |
1889 | /* The GNU C library defines this for functions which it implements | |
1890 | to always fail with ENOSYS. Some functions are actually named | |
1891 | something starting with __ and the normal name is an alias. */ | |
1892 | #if defined __stub_$2 || defined __stub___$2 | |
1893 | choke me | |
1894 | #endif | |
1895 | ||
1896 | int | |
1897 | main () | |
1898 | { | |
1899 | return $2 (); | |
1900 | ; | |
1901 | return 0; | |
1902 | } | |
1903 | _ACEOF | |
1904 | if ac_fn_c_try_link "$LINENO"; then : | |
1905 | eval "$3=yes" | |
1906 | else | |
1907 | eval "$3=no" | |
1908 | fi | |
1909 | rm -f core conftest.err conftest.$ac_objext \ | |
1910 | conftest$ac_exeext conftest.$ac_ext | |
1911 | fi | |
1912 | eval ac_res=\$$3 | |
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1914 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1915 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1916 | |
1917 | } # ac_fn_c_check_func | |
1918 | ||
1919 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1920 | # ------------------------------------------- | |
1921 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1922 | # variable VAR accordingly. | |
1923 | ac_fn_c_check_type () | |
1924 | { | |
1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1927 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1928 | if eval \${$3+:} false; then : |
7083c021 AC |
1929 | $as_echo_n "(cached) " >&6 |
1930 | else | |
1931 | eval "$3=no" | |
1932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1933 | /* end confdefs.h. */ | |
1934 | $4 | |
1935 | int | |
1936 | main () | |
1937 | { | |
1938 | if (sizeof ($2)) | |
1939 | return 0; | |
1940 | ; | |
1941 | return 0; | |
1942 | } | |
1943 | _ACEOF | |
1944 | if ac_fn_c_try_compile "$LINENO"; then : | |
1945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1946 | /* end confdefs.h. */ | |
1947 | $4 | |
1948 | int | |
1949 | main () | |
1950 | { | |
1951 | if (sizeof (($2))) | |
1952 | return 0; | |
1953 | ; | |
1954 | return 0; | |
1955 | } | |
1956 | _ACEOF | |
1957 | if ac_fn_c_try_compile "$LINENO"; then : | |
1958 | ||
1959 | else | |
1960 | eval "$3=yes" | |
1961 | fi | |
1962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1963 | fi | |
1964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1965 | fi | |
1966 | eval ac_res=\$$3 | |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1968 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1969 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1970 | |
1971 | } # ac_fn_c_check_type | |
1972 | ||
1973 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1974 | # ---------------------------------------------------- | |
1975 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1976 | # INCLUDES, setting cache variable VAR accordingly. | |
1977 | ac_fn_c_check_member () | |
1978 | { | |
1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1981 | $as_echo_n "checking for $2.$3... " >&6; } | |
08c2568c | 1982 | if eval \${$4+:} false; then : |
7083c021 AC |
1983 | $as_echo_n "(cached) " >&6 |
1984 | else | |
1985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1986 | /* end confdefs.h. */ | |
1987 | $5 | |
1988 | int | |
1989 | main () | |
1990 | { | |
1991 | static $2 ac_aggr; | |
1992 | if (ac_aggr.$3) | |
1993 | return 0; | |
1994 | ; | |
1995 | return 0; | |
1996 | } | |
1997 | _ACEOF | |
1998 | if ac_fn_c_try_compile "$LINENO"; then : | |
1999 | eval "$4=yes" | |
2000 | else | |
2001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2002 | /* end confdefs.h. */ | |
2003 | $5 | |
2004 | int | |
2005 | main () | |
2006 | { | |
2007 | static $2 ac_aggr; | |
2008 | if (sizeof ac_aggr.$3) | |
2009 | return 0; | |
2010 | ; | |
2011 | return 0; | |
2012 | } | |
2013 | _ACEOF | |
2014 | if ac_fn_c_try_compile "$LINENO"; then : | |
2015 | eval "$4=yes" | |
2016 | else | |
2017 | eval "$4=no" | |
2018 | fi | |
2019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2020 | fi | |
2021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2022 | fi | |
2023 | eval ac_res=\$$4 | |
2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2025 | $as_echo "$ac_res" >&6; } | |
08c2568c | 2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
2027 | |
2028 | } # ac_fn_c_check_member | |
db137867 AC |
2029 | cat >config.log <<_ACEOF |
2030 | This file contains any messages produced by compilers while | |
2031 | running configure, to aid debugging if configure makes a mistake. | |
2032 | ||
2033 | It was created by libratbox $as_me devel, which was | |
bf4e01a4 | 2034 | generated by GNU Autoconf 2.69. Invocation command line was |
db137867 AC |
2035 | |
2036 | $ $0 $@ | |
2037 | ||
2038 | _ACEOF | |
2039 | exec 5>>config.log | |
2040 | { | |
2041 | cat <<_ASUNAME | |
2042 | ## --------- ## | |
2043 | ## Platform. ## | |
2044 | ## --------- ## | |
2045 | ||
2046 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2047 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2048 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2049 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2050 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2051 | ||
2052 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2053 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2054 | ||
2055 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2056 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2057 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2058 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2059 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2060 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2061 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2062 | ||
2063 | _ASUNAME | |
2064 | ||
2065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2066 | for as_dir in $PATH | |
2067 | do | |
2068 | IFS=$as_save_IFS | |
2069 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
2070 | $as_echo "PATH: $as_dir" |
2071 | done | |
db137867 AC |
2072 | IFS=$as_save_IFS |
2073 | ||
2074 | } >&5 | |
2075 | ||
2076 | cat >&5 <<_ACEOF | |
2077 | ||
2078 | ||
2079 | ## ----------- ## | |
2080 | ## Core tests. ## | |
2081 | ## ----------- ## | |
2082 | ||
2083 | _ACEOF | |
2084 | ||
2085 | ||
2086 | # Keep a trace of the command line. | |
2087 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2088 | # Strip out --silent because we don't want to record it for future runs. | |
2089 | # Also quote any args containing shell meta-characters. | |
2090 | # Make two passes to allow for proper duplicate-argument suppression. | |
2091 | ac_configure_args= | |
2092 | ac_configure_args0= | |
2093 | ac_configure_args1= | |
2094 | ac_must_keep_next=false | |
2095 | for ac_pass in 1 2 | |
2096 | do | |
2097 | for ac_arg | |
2098 | do | |
2099 | case $ac_arg in | |
2100 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2101 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2102 | | -silent | --silent | --silen | --sile | --sil) | |
2103 | continue ;; | |
2104 | *\'*) | |
030272f3 | 2105 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2106 | esac |
2107 | case $ac_pass in | |
7083c021 | 2108 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
db137867 | 2109 | 2) |
7083c021 | 2110 | as_fn_append ac_configure_args1 " '$ac_arg'" |
db137867 AC |
2111 | if test $ac_must_keep_next = true; then |
2112 | ac_must_keep_next=false # Got value, back to normal. | |
2113 | else | |
2114 | case $ac_arg in | |
2115 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2116 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2117 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2118 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2119 | case "$ac_configure_args0 " in | |
2120 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2121 | esac | |
2122 | ;; | |
2123 | -* ) ac_must_keep_next=true ;; | |
2124 | esac | |
2125 | fi | |
7083c021 | 2126 | as_fn_append ac_configure_args " '$ac_arg'" |
db137867 AC |
2127 | ;; |
2128 | esac | |
2129 | done | |
2130 | done | |
7083c021 AC |
2131 | { ac_configure_args0=; unset ac_configure_args0;} |
2132 | { ac_configure_args1=; unset ac_configure_args1;} | |
db137867 AC |
2133 | |
2134 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2135 | # config.log. We remove comments because anyway the quotes in there | |
2136 | # would cause problems or look ugly. | |
2137 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2138 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2139 | trap 'exit_status=$? | |
2140 | # Save into config.log some information that might help in debugging. | |
2141 | { | |
2142 | echo | |
2143 | ||
08c2568c | 2144 | $as_echo "## ---------------- ## |
db137867 | 2145 | ## Cache variables. ## |
08c2568c | 2146 | ## ---------------- ##" |
db137867 AC |
2147 | echo |
2148 | # The following way of writing the cache mishandles newlines in values, | |
2149 | ( | |
2150 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2151 | eval ac_val=\$$ac_var | |
2152 | case $ac_val in #( | |
2153 | *${as_nl}*) | |
2154 | case $ac_var in #( | |
7083c021 | 2155 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
030272f3 | 2156 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
db137867 AC |
2157 | esac |
2158 | case $ac_var in #( | |
2159 | _ | IFS | as_nl) ;; #( | |
030272f3 | 2160 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7083c021 | 2161 | *) { eval $ac_var=; unset $ac_var;} ;; |
db137867 AC |
2162 | esac ;; |
2163 | esac | |
2164 | done | |
2165 | (set) 2>&1 | | |
2166 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2167 | *${as_nl}ac_space=\ *) | |
2168 | sed -n \ | |
2169 | "s/'\''/'\''\\\\'\'''\''/g; | |
2170 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2171 | ;; #( | |
2172 | *) | |
2173 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2174 | ;; | |
2175 | esac | | |
2176 | sort | |
2177 | ) | |
2178 | echo | |
2179 | ||
08c2568c | 2180 | $as_echo "## ----------------- ## |
db137867 | 2181 | ## Output variables. ## |
08c2568c | 2182 | ## ----------------- ##" |
db137867 AC |
2183 | echo |
2184 | for ac_var in $ac_subst_vars | |
2185 | do | |
2186 | eval ac_val=\$$ac_var | |
2187 | case $ac_val in | |
030272f3 | 2188 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 2189 | esac |
030272f3 | 2190 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
2191 | done | sort |
2192 | echo | |
2193 | ||
2194 | if test -n "$ac_subst_files"; then | |
08c2568c | 2195 | $as_echo "## ------------------- ## |
db137867 | 2196 | ## File substitutions. ## |
08c2568c | 2197 | ## ------------------- ##" |
db137867 AC |
2198 | echo |
2199 | for ac_var in $ac_subst_files | |
2200 | do | |
2201 | eval ac_val=\$$ac_var | |
2202 | case $ac_val in | |
030272f3 | 2203 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 2204 | esac |
030272f3 | 2205 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
2206 | done | sort |
2207 | echo | |
2208 | fi | |
2209 | ||
2210 | if test -s confdefs.h; then | |
08c2568c | 2211 | $as_echo "## ----------- ## |
db137867 | 2212 | ## confdefs.h. ## |
08c2568c | 2213 | ## ----------- ##" |
db137867 AC |
2214 | echo |
2215 | cat confdefs.h | |
2216 | echo | |
2217 | fi | |
2218 | test "$ac_signal" != 0 && | |
030272f3 VY |
2219 | $as_echo "$as_me: caught signal $ac_signal" |
2220 | $as_echo "$as_me: exit $exit_status" | |
db137867 AC |
2221 | } >&5 |
2222 | rm -f core *.core core.conftest.* && | |
2223 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2224 | exit $exit_status | |
2225 | ' 0 | |
2226 | for ac_signal in 1 2 13 15; do | |
7083c021 | 2227 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
db137867 AC |
2228 | done |
2229 | ac_signal=0 | |
2230 | ||
2231 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2232 | rm -f -r conftest* confdefs.h | |
2233 | ||
7083c021 AC |
2234 | $as_echo "/* confdefs.h */" > confdefs.h |
2235 | ||
db137867 AC |
2236 | # Predefined preprocessor variables. |
2237 | ||
2238 | cat >>confdefs.h <<_ACEOF | |
2239 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2240 | _ACEOF | |
2241 | ||
db137867 AC |
2242 | cat >>confdefs.h <<_ACEOF |
2243 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2244 | _ACEOF | |
2245 | ||
db137867 AC |
2246 | cat >>confdefs.h <<_ACEOF |
2247 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2248 | _ACEOF | |
2249 | ||
db137867 AC |
2250 | cat >>confdefs.h <<_ACEOF |
2251 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2252 | _ACEOF | |
2253 | ||
db137867 AC |
2254 | cat >>confdefs.h <<_ACEOF |
2255 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2256 | _ACEOF | |
2257 | ||
7083c021 AC |
2258 | cat >>confdefs.h <<_ACEOF |
2259 | #define PACKAGE_URL "$PACKAGE_URL" | |
2260 | _ACEOF | |
2261 | ||
db137867 AC |
2262 | |
2263 | # Let the site file select an alternate cache file if it wants to. | |
030272f3 VY |
2264 | # Prefer an explicitly selected file to automatically selected ones. |
2265 | ac_site_file1=NONE | |
2266 | ac_site_file2=NONE | |
db137867 | 2267 | if test -n "$CONFIG_SITE"; then |
08c2568c EM |
2268 | # We do not want a PATH search for config.site. |
2269 | case $CONFIG_SITE in #(( | |
2270 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2271 | */*) ac_site_file1=$CONFIG_SITE;; | |
2272 | *) ac_site_file1=./$CONFIG_SITE;; | |
2273 | esac | |
db137867 | 2274 | elif test "x$prefix" != xNONE; then |
030272f3 VY |
2275 | ac_site_file1=$prefix/share/config.site |
2276 | ac_site_file2=$prefix/etc/config.site | |
db137867 | 2277 | else |
030272f3 VY |
2278 | ac_site_file1=$ac_default_prefix/share/config.site |
2279 | ac_site_file2=$ac_default_prefix/etc/config.site | |
db137867 | 2280 | fi |
030272f3 | 2281 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
db137867 | 2282 | do |
030272f3 | 2283 | test "x$ac_site_file" = xNONE && continue |
96f4052b | 2284 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 | 2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
030272f3 | 2286 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
db137867 | 2287 | sed 's/^/| /' "$ac_site_file" >&5 |
08c2568c EM |
2288 | . "$ac_site_file" \ |
2289 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2290 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2291 | as_fn_error $? "failed to load site script $ac_site_file | |
2292 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 AC |
2293 | fi |
2294 | done | |
2295 | ||
2296 | if test -r "$cache_file"; then | |
96f4052b AC |
2297 | # Some versions of bash will fail to source /dev/null (special files |
2298 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2299 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 | 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
030272f3 | 2301 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
db137867 AC |
2302 | case $cache_file in |
2303 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2304 | *) . "./$cache_file";; | |
2305 | esac | |
2306 | fi | |
2307 | else | |
7083c021 | 2308 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
030272f3 | 2309 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
db137867 AC |
2310 | >$cache_file |
2311 | fi | |
2312 | ||
96f4052b AC |
2313 | as_fn_append ac_header_list " stdlib.h" |
2314 | as_fn_append ac_header_list " unistd.h" | |
2315 | as_fn_append ac_header_list " sys/param.h" | |
db137867 AC |
2316 | # Check that the precious variables saved in the cache have kept the same |
2317 | # value. | |
2318 | ac_cache_corrupted=false | |
2319 | for ac_var in $ac_precious_vars; do | |
2320 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2321 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2322 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2323 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2324 | case $ac_old_set,$ac_new_set in | |
2325 | set,) | |
7083c021 | 2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
030272f3 | 2327 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
db137867 AC |
2328 | ac_cache_corrupted=: ;; |
2329 | ,set) | |
7083c021 | 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
030272f3 | 2331 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
db137867 AC |
2332 | ac_cache_corrupted=: ;; |
2333 | ,);; | |
2334 | *) | |
2335 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
030272f3 VY |
2336 | # differences in whitespace do not lead to failure. |
2337 | ac_old_val_w=`echo x $ac_old_val` | |
2338 | ac_new_val_w=`echo x $ac_new_val` | |
2339 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
7083c021 | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
030272f3 VY |
2341 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2342 | ac_cache_corrupted=: | |
2343 | else | |
7083c021 | 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
030272f3 VY |
2345 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2346 | eval $ac_var=\$ac_old_val | |
2347 | fi | |
7083c021 | 2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
030272f3 | 2349 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
7083c021 | 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
030272f3 | 2351 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
db137867 AC |
2352 | fi;; |
2353 | esac | |
2354 | # Pass precious variables to config.status. | |
2355 | if test "$ac_new_set" = set; then | |
2356 | case $ac_new_val in | |
030272f3 | 2357 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2358 | *) ac_arg=$ac_var=$ac_new_val ;; |
2359 | esac | |
2360 | case " $ac_configure_args " in | |
2361 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
7083c021 | 2362 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
db137867 AC |
2363 | esac |
2364 | fi | |
2365 | done | |
2366 | if $ac_cache_corrupted; then | |
7083c021 | 2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 2368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7083c021 | 2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
030272f3 | 2370 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
08c2568c | 2371 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
db137867 | 2372 | fi |
7083c021 AC |
2373 | ## -------------------- ## |
2374 | ## Main body of script. ## | |
2375 | ## -------------------- ## | |
db137867 | 2376 | |
7083c021 AC |
2377 | ac_ext=c |
2378 | ac_cpp='$CPP $CPPFLAGS' | |
2379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 AC |
2382 | |
2383 | ||
6f57a957 | 2384 | am__api_version='1.15' |
db137867 | 2385 | |
7083c021 AC |
2386 | ac_aux_dir= |
2387 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
08c2568c EM |
2388 | if test -f "$ac_dir/install-sh"; then |
2389 | ac_aux_dir=$ac_dir | |
2390 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2391 | break | |
2392 | elif test -f "$ac_dir/install.sh"; then | |
2393 | ac_aux_dir=$ac_dir | |
2394 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2395 | break | |
2396 | elif test -f "$ac_dir/shtool"; then | |
2397 | ac_aux_dir=$ac_dir | |
2398 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2399 | break | |
2400 | fi | |
7083c021 AC |
2401 | done |
2402 | if test -z "$ac_aux_dir"; then | |
08c2568c | 2403 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7083c021 | 2404 | fi |
db137867 | 2405 | |
7083c021 AC |
2406 | # These three variables are undocumented and unsupported, |
2407 | # and are intended to be withdrawn in a future Autoconf release. | |
2408 | # They can cause serious problems if a builder's source tree is in a directory | |
2409 | # whose full name contains unusual characters. | |
2410 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2411 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2412 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
db137867 AC |
2413 | |
2414 | ||
2415 | # Find a good install program. We prefer a C program (faster), | |
2416 | # so one script is as good as another. But avoid the broken or | |
2417 | # incompatible versions: | |
2418 | # SysV /etc/install, /usr/sbin/install | |
2419 | # SunOS /usr/etc/install | |
2420 | # IRIX /sbin/install | |
2421 | # AIX /bin/install | |
2422 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2423 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2424 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2425 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2426 | # OS/2's system install, which has a completely different semantic | |
2427 | # ./install, which can be erroneously created by make from ./install.sh. | |
030272f3 | 2428 | # Reject install programs that cannot install multiple files. |
7083c021 | 2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
030272f3 | 2430 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
db137867 | 2431 | if test -z "$INSTALL"; then |
08c2568c | 2432 | if ${ac_cv_path_install+:} false; then : |
030272f3 | 2433 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2434 | else |
2435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2436 | for as_dir in $PATH | |
2437 | do | |
2438 | IFS=$as_save_IFS | |
2439 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
2440 | # Account for people who put trailing slashes in PATH elements. |
2441 | case $as_dir/ in #(( | |
2442 | ./ | .// | /[cC]/* | \ | |
db137867 | 2443 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
7083c021 | 2444 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
db137867 AC |
2445 | /usr/ucb/* ) ;; |
2446 | *) | |
2447 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2448 | # Don't use installbsd from OSF since it installs stuff as root | |
2449 | # by default. | |
2450 | for ac_prog in ginstall scoinst install; do | |
2451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 2452 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
db137867 AC |
2453 | if test $ac_prog = install && |
2454 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2455 | # AIX install. It has an incompatible calling convention. | |
2456 | : | |
2457 | elif test $ac_prog = install && | |
2458 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2459 | # program-specific install script used by HP pwplus--don't use. | |
2460 | : | |
2461 | else | |
030272f3 VY |
2462 | rm -rf conftest.one conftest.two conftest.dir |
2463 | echo one > conftest.one | |
2464 | echo two > conftest.two | |
2465 | mkdir conftest.dir | |
2466 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2467 | test -s conftest.one && test -s conftest.two && | |
2468 | test -s conftest.dir/conftest.one && | |
2469 | test -s conftest.dir/conftest.two | |
2470 | then | |
2471 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2472 | break 3 | |
2473 | fi | |
db137867 AC |
2474 | fi |
2475 | fi | |
2476 | done | |
2477 | done | |
2478 | ;; | |
2479 | esac | |
030272f3 | 2480 | |
7083c021 | 2481 | done |
db137867 AC |
2482 | IFS=$as_save_IFS |
2483 | ||
030272f3 | 2484 | rm -rf conftest.one conftest.two conftest.dir |
db137867 AC |
2485 | |
2486 | fi | |
2487 | if test "${ac_cv_path_install+set}" = set; then | |
2488 | INSTALL=$ac_cv_path_install | |
2489 | else | |
2490 | # As a last resort, use the slow shell script. Don't cache a | |
2491 | # value for INSTALL within a source directory, because that will | |
2492 | # break other packages using the cache if that directory is | |
2493 | # removed, or if the value is a relative name. | |
2494 | INSTALL=$ac_install_sh | |
2495 | fi | |
2496 | fi | |
7083c021 | 2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
030272f3 | 2498 | $as_echo "$INSTALL" >&6; } |
db137867 AC |
2499 | |
2500 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2501 | # It thinks the first close brace ends the variable substitution. | |
2502 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2503 | ||
2504 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2505 | ||
2506 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2507 | ||
7083c021 | 2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
030272f3 | 2509 | $as_echo_n "checking whether build environment is sane... " >&6; } |
7083c021 AC |
2510 | # Reject unsafe characters in $srcdir or the absolute working directory |
2511 | # name. Accept space and tab only in the latter. | |
2512 | am_lf=' | |
2513 | ' | |
2514 | case `pwd` in | |
2515 | *[\\\"\#\$\&\'\`$am_lf]*) | |
08c2568c | 2516 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
7083c021 AC |
2517 | esac |
2518 | case $srcdir in | |
2519 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
bf4e01a4 | 2520 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
7083c021 AC |
2521 | esac |
2522 | ||
bf4e01a4 | 2523 | # Do 'set' in a subshell so we don't clobber the current shell's |
db137867 AC |
2524 | # arguments. Must try -L first in case configure is actually a |
2525 | # symlink; some systems play weird games with the mod time of symlinks | |
2526 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2527 | # directory). | |
2528 | if ( | |
bf4e01a4 AC |
2529 | am_has_slept=no |
2530 | for am_try in 1 2; do | |
2531 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2532 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2533 | if test "$*" = "X"; then | |
2534 | # -L didn't work. | |
2535 | set X `ls -t "$srcdir/configure" conftest.file` | |
2536 | fi | |
2537 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2538 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2539 | ||
2540 | # If neither matched, then we have a broken ls. This can happen | |
2541 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2542 | # broken ls alias from the environment. This has actually | |
2543 | # happened. Such a system could not be considered "sane". | |
2544 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2545 | alias in your environment" "$LINENO" 5 | |
2546 | fi | |
2547 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2548 | break | |
2549 | fi | |
2550 | # Just in case. | |
2551 | sleep 1 | |
2552 | am_has_slept=yes | |
2553 | done | |
db137867 AC |
2554 | test "$2" = conftest.file |
2555 | ) | |
2556 | then | |
2557 | # Ok. | |
2558 | : | |
2559 | else | |
08c2568c | 2560 | as_fn_error $? "newly created file is older than distributed files! |
7083c021 | 2561 | Check your system clock" "$LINENO" 5 |
db137867 | 2562 | fi |
7083c021 | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 | 2564 | $as_echo "yes" >&6; } |
bf4e01a4 AC |
2565 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2566 | # generated files are strictly newer. | |
2567 | am_sleep_pid= | |
2568 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2569 | ( sleep 1 ) & | |
2570 | am_sleep_pid=$! | |
2571 | fi | |
2572 | ||
2573 | rm -f conftest.file | |
2574 | ||
db137867 AC |
2575 | test "$program_prefix" != NONE && |
2576 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2577 | # Use a double $ so make ignores it. | |
2578 | test "$program_suffix" != NONE && | |
2579 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
030272f3 | 2580 | # Double any \ or $. |
db137867 | 2581 | # By default was `s,x,x', remove it if useless. |
030272f3 VY |
2582 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2583 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
db137867 | 2584 | |
6f57a957 AC |
2585 | # Expand $ac_aux_dir to an absolute path. |
2586 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
db137867 | 2587 | |
7083c021 AC |
2588 | if test x"${MISSING+set}" != xset; then |
2589 | case $am_aux_dir in | |
2590 | *\ * | *\ *) | |
2591 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2592 | *) | |
2593 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2594 | esac | |
2595 | fi | |
db137867 | 2596 | # Use eval to expand $SHELL |
bf4e01a4 AC |
2597 | if eval "$MISSING --is-lightweight"; then |
2598 | am_missing_run="$MISSING " | |
db137867 AC |
2599 | else |
2600 | am_missing_run= | |
bf4e01a4 AC |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2602 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
db137867 AC |
2603 | fi |
2604 | ||
6f57a957 | 2605 | if test x"${install_sh+set}" != xset; then |
7083c021 AC |
2606 | case $am_aux_dir in |
2607 | *\ * | *\ *) | |
2608 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2609 | *) | |
2610 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2611 | esac | |
2612 | fi | |
2613 | ||
bf4e01a4 AC |
2614 | # Installed binaries are usually stripped using 'strip' when the user |
2615 | # run "make install-strip". However 'strip' might not be the right | |
7083c021 | 2616 | # tool to use in cross-compilation environments, therefore Automake |
bf4e01a4 | 2617 | # will honor the 'STRIP' environment variable to overrule this program. |
7083c021 AC |
2618 | if test "$cross_compiling" != no; then |
2619 | if test -n "$ac_tool_prefix"; then | |
2620 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2621 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2623 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 2624 | if ${ac_cv_prog_STRIP+:} false; then : |
7083c021 AC |
2625 | $as_echo_n "(cached) " >&6 |
2626 | else | |
2627 | if test -n "$STRIP"; then | |
2628 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2629 | else | |
2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2631 | for as_dir in $PATH | |
2632 | do | |
2633 | IFS=$as_save_IFS | |
2634 | test -z "$as_dir" && as_dir=. | |
2635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 2636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2637 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2639 | break 2 | |
2640 | fi | |
2641 | done | |
2642 | done | |
2643 | IFS=$as_save_IFS | |
2644 | ||
2645 | fi | |
2646 | fi | |
2647 | STRIP=$ac_cv_prog_STRIP | |
2648 | if test -n "$STRIP"; then | |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2650 | $as_echo "$STRIP" >&6; } | |
2651 | else | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2653 | $as_echo "no" >&6; } | |
2654 | fi | |
2655 | ||
2656 | ||
2657 | fi | |
2658 | if test -z "$ac_cv_prog_STRIP"; then | |
2659 | ac_ct_STRIP=$STRIP | |
2660 | # Extract the first word of "strip", so it can be a program name with args. | |
2661 | set dummy strip; ac_word=$2 | |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2663 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 2664 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
7083c021 AC |
2665 | $as_echo_n "(cached) " >&6 |
2666 | else | |
2667 | if test -n "$ac_ct_STRIP"; then | |
2668 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2669 | else | |
2670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2671 | for as_dir in $PATH | |
2672 | do | |
2673 | IFS=$as_save_IFS | |
2674 | test -z "$as_dir" && as_dir=. | |
2675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 2676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2677 | ac_cv_prog_ac_ct_STRIP="strip" |
2678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2679 | break 2 | |
2680 | fi | |
2681 | done | |
2682 | done | |
2683 | IFS=$as_save_IFS | |
2684 | ||
2685 | fi | |
2686 | fi | |
2687 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2688 | if test -n "$ac_ct_STRIP"; then | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2690 | $as_echo "$ac_ct_STRIP" >&6; } | |
2691 | else | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2693 | $as_echo "no" >&6; } | |
2694 | fi | |
2695 | ||
2696 | if test "x$ac_ct_STRIP" = x; then | |
2697 | STRIP=":" | |
2698 | else | |
2699 | case $cross_compiling:$ac_tool_warned in | |
2700 | yes:) | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2703 | ac_tool_warned=yes ;; | |
2704 | esac | |
2705 | STRIP=$ac_ct_STRIP | |
2706 | fi | |
2707 | else | |
2708 | STRIP="$ac_cv_prog_STRIP" | |
2709 | fi | |
2710 | ||
2711 | fi | |
2712 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2713 | ||
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
030272f3 | 2715 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
db137867 | 2716 | if test -z "$MKDIR_P"; then |
08c2568c | 2717 | if ${ac_cv_path_mkdir+:} false; then : |
030272f3 | 2718 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2719 | else |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2721 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2722 | do | |
2723 | IFS=$as_save_IFS | |
2724 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2725 | for ac_prog in mkdir gmkdir; do |
db137867 | 2726 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 2727 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
db137867 AC |
2728 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2729 | 'mkdir (GNU coreutils) '* | \ | |
2730 | 'mkdir (coreutils) '* | \ | |
2731 | 'mkdir (fileutils) '4.1*) | |
2732 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2733 | break 3;; | |
2734 | esac | |
2735 | done | |
2736 | done | |
7083c021 | 2737 | done |
db137867 AC |
2738 | IFS=$as_save_IFS |
2739 | ||
2740 | fi | |
2741 | ||
96f4052b | 2742 | test -d ./--version && rmdir ./--version |
db137867 AC |
2743 | if test "${ac_cv_path_mkdir+set}" = set; then |
2744 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2745 | else | |
2746 | # As a last resort, use the slow shell script. Don't cache a | |
2747 | # value for MKDIR_P within a source directory, because that will | |
2748 | # break other packages using the cache if that directory is | |
2749 | # removed, or if the value is a relative name. | |
db137867 AC |
2750 | MKDIR_P="$ac_install_sh -d" |
2751 | fi | |
2752 | fi | |
7083c021 | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
030272f3 | 2754 | $as_echo "$MKDIR_P" >&6; } |
db137867 | 2755 | |
db137867 AC |
2756 | for ac_prog in gawk mawk nawk awk |
2757 | do | |
2758 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2759 | set dummy $ac_prog; ac_word=$2 | |
7083c021 | 2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 2761 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 2762 | if ${ac_cv_prog_AWK+:} false; then : |
030272f3 | 2763 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2764 | else |
2765 | if test -n "$AWK"; then | |
2766 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2767 | else | |
2768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2769 | for as_dir in $PATH | |
2770 | do | |
2771 | IFS=$as_save_IFS | |
2772 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2773 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 2774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 2775 | ac_cv_prog_AWK="$ac_prog" |
7083c021 | 2776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2777 | break 2 |
2778 | fi | |
2779 | done | |
7083c021 | 2780 | done |
db137867 AC |
2781 | IFS=$as_save_IFS |
2782 | ||
2783 | fi | |
2784 | fi | |
2785 | AWK=$ac_cv_prog_AWK | |
2786 | if test -n "$AWK"; then | |
7083c021 | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
030272f3 | 2788 | $as_echo "$AWK" >&6; } |
db137867 | 2789 | else |
7083c021 | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2791 | $as_echo "no" >&6; } |
db137867 AC |
2792 | fi |
2793 | ||
2794 | ||
2795 | test -n "$AWK" && break | |
2796 | done | |
2797 | ||
7083c021 | 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
030272f3 VY |
2799 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2800 | set x ${MAKE-make} | |
2801 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
08c2568c | 2802 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
030272f3 | 2803 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2804 | else |
2805 | cat >conftest.make <<\_ACEOF | |
2806 | SHELL = /bin/sh | |
2807 | all: | |
2808 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2809 | _ACEOF | |
08c2568c | 2810 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
db137867 AC |
2811 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2812 | *@@@%%%=?*=@@@%%%*) | |
2813 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2814 | *) | |
2815 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2816 | esac | |
2817 | rm -f conftest.make | |
2818 | fi | |
2819 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7083c021 | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 | 2821 | $as_echo "yes" >&6; } |
db137867 AC |
2822 | SET_MAKE= |
2823 | else | |
7083c021 | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2825 | $as_echo "no" >&6; } |
db137867 AC |
2826 | SET_MAKE="MAKE=${MAKE-make}" |
2827 | fi | |
2828 | ||
2829 | rm -rf .tst 2>/dev/null | |
2830 | mkdir .tst 2>/dev/null | |
2831 | if test -d .tst; then | |
2832 | am__leading_dot=. | |
2833 | else | |
2834 | am__leading_dot=_ | |
2835 | fi | |
2836 | rmdir .tst 2>/dev/null | |
2837 | ||
bf4e01a4 AC |
2838 | # Check whether --enable-silent-rules was given. |
2839 | if test "${enable_silent_rules+set}" = set; then : | |
2840 | enableval=$enable_silent_rules; | |
2841 | fi | |
2842 | ||
2843 | case $enable_silent_rules in # ((( | |
2844 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2845 | no) AM_DEFAULT_VERBOSITY=1;; | |
2846 | *) AM_DEFAULT_VERBOSITY=1;; | |
2847 | esac | |
2848 | am_make=${MAKE-make} | |
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2850 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2851 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2852 | $as_echo_n "(cached) " >&6 | |
2853 | else | |
2854 | if $as_echo 'TRUE=$(BAR$(V)) | |
2855 | BAR0=false | |
2856 | BAR1=true | |
2857 | V=1 | |
2858 | am__doit: | |
2859 | @$(TRUE) | |
2860 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2861 | am_cv_make_support_nested_variables=yes | |
2862 | else | |
2863 | am_cv_make_support_nested_variables=no | |
2864 | fi | |
2865 | fi | |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2867 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2868 | if test $am_cv_make_support_nested_variables = yes; then | |
2869 | AM_V='$(V)' | |
2870 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2871 | else | |
2872 | AM_V=$AM_DEFAULT_VERBOSITY | |
2873 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2874 | fi | |
2875 | AM_BACKSLASH='\' | |
2876 | ||
db137867 AC |
2877 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2878 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2879 | # is not polluted with repeated "-I." | |
2880 | am__isrc=' -I$(srcdir)' | |
2881 | # test to see if srcdir already configured | |
2882 | if test -f $srcdir/config.status; then | |
08c2568c | 2883 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
db137867 AC |
2884 | fi |
2885 | fi | |
2886 | ||
2887 | # test whether we have cygpath | |
2888 | if test -z "$CYGPATH_W"; then | |
2889 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2890 | CYGPATH_W='cygpath -w' | |
2891 | else | |
2892 | CYGPATH_W=echo | |
2893 | fi | |
2894 | fi | |
2895 | ||
2896 | ||
2897 | # Define the identity of the package. | |
eec2776c AJ |
2898 | PACKAGE='libratbox' |
2899 | VERSION='devel' | |
bf4e01a4 | 2900 | |
db137867 | 2901 | |
eec2776c AJ |
2902 | cat >>confdefs.h <<_ACEOF |
2903 | #define PACKAGE "$PACKAGE" | |
2904 | _ACEOF | |
2905 | ||
2906 | ||
2907 | cat >>confdefs.h <<_ACEOF | |
2908 | #define VERSION "$VERSION" | |
2909 | _ACEOF | |
db137867 AC |
2910 | |
2911 | # Some tools Automake needs. | |
2912 | ||
2913 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2914 | ||
2915 | ||
2916 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2917 | ||
2918 | ||
2919 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2920 | ||
2921 | ||
2922 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2923 | ||
2924 | ||
2925 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2926 | ||
bf4e01a4 AC |
2927 | # For better backward compatibility. To be removed once Automake 1.9.x |
2928 | # dies out for good. For more background, see: | |
2929 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2930 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2931 | mkdir_p='$(MKDIR_P)' | |
2932 | ||
6f57a957 AC |
2933 | # We need awk for the "check" target (and possibly the TAP driver). The |
2934 | # system "awk" is bad on some platforms. | |
bf4e01a4 AC |
2935 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2936 | # in the wild :-( We should find a proper way to deprecate it ... | |
2937 | AMTAR='$${TAR-tar}' | |
2938 | ||
2939 | ||
2940 | # We'll loop over all known methods to create a tar archive until one works. | |
2941 | _am_tools='gnutar pax cpio none' | |
2942 | ||
2943 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
271a98fe | 2944 | |
db137867 | 2945 | |
db137867 AC |
2946 | |
2947 | ||
2948 | ||
2949 | ||
bf4e01a4 AC |
2950 | # POSIX will say in a future version that running "rm -f" with no argument |
2951 | # is OK; and we want to be able to make that assumption in our Makefile | |
2952 | # recipes. So use an aggressive probe to check that the usage we want is | |
2953 | # actually supported "in the wild" to an acceptable degree. | |
2954 | # See automake bug#10828. | |
2955 | # To make any issue more visible, cause the running configure to be aborted | |
2956 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2957 | # user can still override this though. | |
2958 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2959 | cat >&2 <<'END' | |
2960 | Oops! | |
db137867 | 2961 | |
bf4e01a4 AC |
2962 | Your 'rm' program seems unable to run without file operands specified |
2963 | on the command line, even when the '-f' option is present. This is contrary | |
2964 | to the behaviour of most rm programs out there, and not conforming with | |
2965 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2966 | ||
2967 | Please tell bug-automake@gnu.org about your system, including the value | |
2968 | of your $PATH and any error possibly output before this message. This | |
2969 | can help us improve future automake versions. | |
2970 | ||
2971 | END | |
2972 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2973 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2974 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2975 | echo >&2 | |
2976 | else | |
2977 | cat >&2 <<'END' | |
2978 | Aborting the configuration process, to ensure you take notice of the issue. | |
2979 | ||
2980 | You can download and install GNU coreutils to get an 'rm' implementation | |
2981 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2982 | ||
2983 | If you want to complete the configuration process using your problematic | |
2984 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2985 | to "yes", and re-run configure. | |
2986 | ||
2987 | END | |
2988 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2989 | fi | |
2990 | fi | |
db137867 | 2991 | |
c52df125 AC |
2992 | # Check whether --enable-silent-rules was given. |
2993 | if test "${enable_silent_rules+set}" = set; then : | |
2994 | enableval=$enable_silent_rules; | |
2995 | fi | |
2996 | ||
2997 | case $enable_silent_rules in # ((( | |
2998 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2999 | no) AM_DEFAULT_VERBOSITY=1;; | |
3000 | *) AM_DEFAULT_VERBOSITY=0;; | |
3001 | esac | |
3002 | am_make=${MAKE-make} | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3004 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3005 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3006 | $as_echo_n "(cached) " >&6 | |
3007 | else | |
3008 | if $as_echo 'TRUE=$(BAR$(V)) | |
3009 | BAR0=false | |
3010 | BAR1=true | |
3011 | V=1 | |
3012 | am__doit: | |
3013 | @$(TRUE) | |
3014 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3015 | am_cv_make_support_nested_variables=yes | |
3016 | else | |
3017 | am_cv_make_support_nested_variables=no | |
3018 | fi | |
3019 | fi | |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3021 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3022 | if test $am_cv_make_support_nested_variables = yes; then | |
3023 | AM_V='$(V)' | |
3024 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3025 | else | |
3026 | AM_V=$AM_DEFAULT_VERBOSITY | |
3027 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3028 | fi | |
3029 | AM_BACKSLASH='\' | |
3030 | ||
6f57a957 | 3031 | |
db137867 AC |
3032 | ac_config_headers="$ac_config_headers include/libratbox_config.h" |
3033 | ||
3034 | ||
3035 | ||
db137867 AC |
3036 | DEPDIR="${am__leading_dot}deps" |
3037 | ||
3038 | ac_config_commands="$ac_config_commands depfiles" | |
3039 | ||
3040 | ||
3041 | am_make=${MAKE-make} | |
3042 | cat > confinc << 'END' | |
3043 | am__doit: | |
7083c021 | 3044 | @echo this is the am__doit target |
db137867 AC |
3045 | .PHONY: am__doit |
3046 | END | |
3047 | # If we don't find an include directive, just comment out the code. | |
7083c021 | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
030272f3 | 3049 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
db137867 AC |
3050 | am__include="#" |
3051 | am__quote= | |
3052 | _am_result=none | |
3053 | # First try GNU make style include. | |
3054 | echo "include confinc" > confmf | |
bf4e01a4 | 3055 | # Ignore all kinds of additional output from 'make'. |
7083c021 AC |
3056 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3057 | *the\ am__doit\ target*) | |
3058 | am__include=include | |
3059 | am__quote= | |
3060 | _am_result=GNU | |
3061 | ;; | |
3062 | esac | |
db137867 AC |
3063 | # Now try BSD make style include. |
3064 | if test "$am__include" = "#"; then | |
3065 | echo '.include "confinc"' > confmf | |
7083c021 AC |
3066 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3067 | *the\ am__doit\ target*) | |
3068 | am__include=.include | |
3069 | am__quote="\"" | |
3070 | _am_result=BSD | |
3071 | ;; | |
3072 | esac | |
db137867 AC |
3073 | fi |
3074 | ||
3075 | ||
7083c021 | 3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
030272f3 | 3077 | $as_echo "$_am_result" >&6; } |
db137867 AC |
3078 | rm -f confinc confmf |
3079 | ||
3080 | # Check whether --enable-dependency-tracking was given. | |
7083c021 | 3081 | if test "${enable_dependency_tracking+set}" = set; then : |
db137867 AC |
3082 | enableval=$enable_dependency_tracking; |
3083 | fi | |
3084 | ||
3085 | if test "x$enable_dependency_tracking" != xno; then | |
3086 | am_depcomp="$ac_aux_dir/depcomp" | |
3087 | AMDEPBACKSLASH='\' | |
bf4e01a4 | 3088 | am__nodep='_no' |
db137867 AC |
3089 | fi |
3090 | if test "x$enable_dependency_tracking" != xno; then | |
3091 | AMDEP_TRUE= | |
3092 | AMDEP_FALSE='#' | |
3093 | else | |
3094 | AMDEP_TRUE='#' | |
3095 | AMDEP_FALSE= | |
3096 | fi | |
3097 | ||
3098 | ||
3099 | ac_ext=c | |
3100 | ac_cpp='$CPP $CPPFLAGS' | |
3101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3104 | if test -n "$ac_tool_prefix"; then | |
3105 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3106 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7083c021 | 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3108 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3109 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3110 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3111 | else |
3112 | if test -n "$CC"; then | |
3113 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3114 | else | |
3115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3116 | for as_dir in $PATH | |
3117 | do | |
3118 | IFS=$as_save_IFS | |
3119 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3120 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3122 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
7083c021 | 3123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3124 | break 2 |
3125 | fi | |
3126 | done | |
7083c021 | 3127 | done |
db137867 AC |
3128 | IFS=$as_save_IFS |
3129 | ||
3130 | fi | |
3131 | fi | |
3132 | CC=$ac_cv_prog_CC | |
3133 | if test -n "$CC"; then | |
7083c021 | 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3135 | $as_echo "$CC" >&6; } |
db137867 | 3136 | else |
7083c021 | 3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3138 | $as_echo "no" >&6; } |
db137867 AC |
3139 | fi |
3140 | ||
3141 | ||
3142 | fi | |
3143 | if test -z "$ac_cv_prog_CC"; then | |
3144 | ac_ct_CC=$CC | |
3145 | # Extract the first word of "gcc", so it can be a program name with args. | |
3146 | set dummy gcc; ac_word=$2 | |
7083c021 | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3148 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3149 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
030272f3 | 3150 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3151 | else |
3152 | if test -n "$ac_ct_CC"; then | |
3153 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3154 | else | |
3155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3156 | for as_dir in $PATH | |
3157 | do | |
3158 | IFS=$as_save_IFS | |
3159 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3160 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3162 | ac_cv_prog_ac_ct_CC="gcc" |
7083c021 | 3163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3164 | break 2 |
3165 | fi | |
3166 | done | |
7083c021 | 3167 | done |
db137867 AC |
3168 | IFS=$as_save_IFS |
3169 | ||
3170 | fi | |
3171 | fi | |
3172 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3173 | if test -n "$ac_ct_CC"; then | |
7083c021 | 3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
030272f3 | 3175 | $as_echo "$ac_ct_CC" >&6; } |
db137867 | 3176 | else |
7083c021 | 3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3178 | $as_echo "no" >&6; } |
db137867 AC |
3179 | fi |
3180 | ||
3181 | if test "x$ac_ct_CC" = x; then | |
3182 | CC="" | |
3183 | else | |
3184 | case $cross_compiling:$ac_tool_warned in | |
3185 | yes:) | |
7083c021 | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 3187 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
3188 | ac_tool_warned=yes ;; |
3189 | esac | |
3190 | CC=$ac_ct_CC | |
3191 | fi | |
3192 | else | |
3193 | CC="$ac_cv_prog_CC" | |
3194 | fi | |
3195 | ||
3196 | if test -z "$CC"; then | |
3197 | if test -n "$ac_tool_prefix"; then | |
3198 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3199 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3201 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3202 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3203 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3204 | else |
3205 | if test -n "$CC"; then | |
3206 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3207 | else | |
3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3209 | for as_dir in $PATH | |
3210 | do | |
3211 | IFS=$as_save_IFS | |
3212 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3213 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3215 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 3216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3217 | break 2 |
3218 | fi | |
3219 | done | |
7083c021 | 3220 | done |
db137867 AC |
3221 | IFS=$as_save_IFS |
3222 | ||
3223 | fi | |
3224 | fi | |
3225 | CC=$ac_cv_prog_CC | |
3226 | if test -n "$CC"; then | |
7083c021 | 3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3228 | $as_echo "$CC" >&6; } |
db137867 | 3229 | else |
7083c021 | 3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3231 | $as_echo "no" >&6; } |
db137867 AC |
3232 | fi |
3233 | ||
3234 | ||
3235 | fi | |
3236 | fi | |
3237 | if test -z "$CC"; then | |
3238 | # Extract the first word of "cc", so it can be a program name with args. | |
3239 | set dummy cc; ac_word=$2 | |
7083c021 | 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3241 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3242 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3243 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3244 | else |
3245 | if test -n "$CC"; then | |
3246 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3247 | else | |
3248 | ac_prog_rejected=no | |
3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3250 | for as_dir in $PATH | |
3251 | do | |
3252 | IFS=$as_save_IFS | |
3253 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3254 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 AC |
3256 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3257 | ac_prog_rejected=yes | |
3258 | continue | |
3259 | fi | |
3260 | ac_cv_prog_CC="cc" | |
7083c021 | 3261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3262 | break 2 |
3263 | fi | |
3264 | done | |
7083c021 | 3265 | done |
db137867 AC |
3266 | IFS=$as_save_IFS |
3267 | ||
3268 | if test $ac_prog_rejected = yes; then | |
3269 | # We found a bogon in the path, so make sure we never use it. | |
3270 | set dummy $ac_cv_prog_CC | |
3271 | shift | |
3272 | if test $# != 0; then | |
3273 | # We chose a different compiler from the bogus one. | |
3274 | # However, it has the same basename, so the bogon will be chosen | |
3275 | # first if we set CC to just the basename; use the full file name. | |
3276 | shift | |
3277 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3278 | fi | |
3279 | fi | |
3280 | fi | |
3281 | fi | |
3282 | CC=$ac_cv_prog_CC | |
3283 | if test -n "$CC"; then | |
7083c021 | 3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3285 | $as_echo "$CC" >&6; } |
db137867 | 3286 | else |
7083c021 | 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3288 | $as_echo "no" >&6; } |
db137867 AC |
3289 | fi |
3290 | ||
3291 | ||
3292 | fi | |
3293 | if test -z "$CC"; then | |
3294 | if test -n "$ac_tool_prefix"; then | |
3295 | for ac_prog in cl.exe | |
3296 | do | |
3297 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3298 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3300 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3301 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3302 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3303 | else |
3304 | if test -n "$CC"; then | |
3305 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3306 | else | |
3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3308 | for as_dir in $PATH | |
3309 | do | |
3310 | IFS=$as_save_IFS | |
3311 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3312 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3314 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 3315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3316 | break 2 |
3317 | fi | |
3318 | done | |
7083c021 | 3319 | done |
db137867 AC |
3320 | IFS=$as_save_IFS |
3321 | ||
3322 | fi | |
3323 | fi | |
3324 | CC=$ac_cv_prog_CC | |
3325 | if test -n "$CC"; then | |
7083c021 | 3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3327 | $as_echo "$CC" >&6; } |
db137867 | 3328 | else |
7083c021 | 3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3330 | $as_echo "no" >&6; } |
db137867 AC |
3331 | fi |
3332 | ||
3333 | ||
3334 | test -n "$CC" && break | |
3335 | done | |
3336 | fi | |
3337 | if test -z "$CC"; then | |
3338 | ac_ct_CC=$CC | |
3339 | for ac_prog in cl.exe | |
3340 | do | |
3341 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3342 | set dummy $ac_prog; ac_word=$2 | |
7083c021 | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3344 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3345 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
030272f3 | 3346 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3347 | else |
3348 | if test -n "$ac_ct_CC"; then | |
3349 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3350 | else | |
3351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3352 | for as_dir in $PATH | |
3353 | do | |
3354 | IFS=$as_save_IFS | |
3355 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3356 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3358 | ac_cv_prog_ac_ct_CC="$ac_prog" |
7083c021 | 3359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3360 | break 2 |
3361 | fi | |
3362 | done | |
7083c021 | 3363 | done |
db137867 AC |
3364 | IFS=$as_save_IFS |
3365 | ||
3366 | fi | |
3367 | fi | |
3368 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3369 | if test -n "$ac_ct_CC"; then | |
7083c021 | 3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
030272f3 | 3371 | $as_echo "$ac_ct_CC" >&6; } |
db137867 | 3372 | else |
7083c021 | 3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3374 | $as_echo "no" >&6; } |
db137867 AC |
3375 | fi |
3376 | ||
3377 | ||
3378 | test -n "$ac_ct_CC" && break | |
3379 | done | |
3380 | ||
3381 | if test "x$ac_ct_CC" = x; then | |
3382 | CC="" | |
3383 | else | |
3384 | case $cross_compiling:$ac_tool_warned in | |
3385 | yes:) | |
7083c021 | 3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 3387 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
3388 | ac_tool_warned=yes ;; |
3389 | esac | |
3390 | CC=$ac_ct_CC | |
3391 | fi | |
3392 | fi | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
7083c021 | 3397 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3399 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3400 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 AC |
3401 | |
3402 | # Provide some information about the compiler. | |
7083c021 | 3403 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
030272f3 VY |
3404 | set X $ac_compile |
3405 | ac_compiler=$2 | |
7083c021 AC |
3406 | for ac_option in --version -v -V -qversion; do |
3407 | { { ac_try="$ac_compiler $ac_option >&5" | |
db137867 AC |
3408 | case "(($ac_try" in |
3409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3410 | *) ac_try_echo=$ac_try;; | |
3411 | esac | |
7083c021 AC |
3412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3413 | $as_echo "$ac_try_echo"; } >&5 | |
3414 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
db137867 | 3415 | ac_status=$? |
7083c021 AC |
3416 | if test -s conftest.err; then |
3417 | sed '10a\ | |
3418 | ... rest of stderr output deleted ... | |
3419 | 10q' conftest.err >conftest.er1 | |
3420 | cat conftest.er1 >&5 | |
7083c021 | 3421 | fi |
96f4052b | 3422 | rm -f conftest.er1 conftest.err |
7083c021 AC |
3423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3424 | test $ac_status = 0; } | |
3425 | done | |
db137867 | 3426 | |
7083c021 | 3427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 3428 | /* end confdefs.h. */ |
96f4052b | 3429 | |
db137867 AC |
3430 | int |
3431 | main () | |
3432 | { | |
3433 | ||
3434 | ; | |
3435 | return 0; | |
3436 | } | |
3437 | _ACEOF | |
3438 | ac_clean_files_save=$ac_clean_files | |
96f4052b | 3439 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
db137867 AC |
3440 | # Try to create an executable without -o first, disregard a.out. |
3441 | # It will help us diagnose broken compilers, and finding out an intuition | |
3442 | # of exeext. | |
96f4052b AC |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3444 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
030272f3 VY |
3445 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3446 | ||
3447 | # The possible output files: | |
3448 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3449 | ||
db137867 AC |
3450 | ac_rmfiles= |
3451 | for ac_file in $ac_files | |
3452 | do | |
3453 | case $ac_file in | |
030272f3 | 3454 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3455 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3456 | esac | |
3457 | done | |
3458 | rm -f $ac_rmfiles | |
3459 | ||
7083c021 | 3460 | if { { ac_try="$ac_link_default" |
db137867 AC |
3461 | case "(($ac_try" in |
3462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3463 | *) ac_try_echo=$ac_try;; | |
3464 | esac | |
7083c021 AC |
3465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3466 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3467 | (eval "$ac_link_default") 2>&5 |
3468 | ac_status=$? | |
7083c021 AC |
3469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3470 | test $ac_status = 0; }; then : | |
db137867 AC |
3471 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3472 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3473 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3474 | # so that the user can short-circuit this test for compilers unknown to | |
3475 | # Autoconf. | |
3476 | for ac_file in $ac_files '' | |
3477 | do | |
3478 | test -f "$ac_file" || continue | |
3479 | case $ac_file in | |
030272f3 | 3480 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
db137867 AC |
3481 | ;; |
3482 | [ab].out ) | |
3483 | # We found the default executable, but exeext='' is most | |
3484 | # certainly right. | |
3485 | break;; | |
3486 | *.* ) | |
7083c021 | 3487 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
db137867 AC |
3488 | then :; else |
3489 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3490 | fi | |
3491 | # We set ac_cv_exeext here because the later test for it is not | |
3492 | # safe: cross compilers may not add the suffix if given an `-o' | |
3493 | # argument, so we may need to know it at that point already. | |
3494 | # Even if this section looks crufty: it has the advantage of | |
3495 | # actually working. | |
3496 | break;; | |
3497 | * ) | |
3498 | break;; | |
3499 | esac | |
3500 | done | |
3501 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3502 | ||
3503 | else | |
3504 | ac_file='' | |
3505 | fi | |
7083c021 | 3506 | if test -z "$ac_file"; then : |
96f4052b AC |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3508 | $as_echo "no" >&6; } | |
3509 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
3511 | ||
7083c021 | 3512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3514 | as_fn_error 77 "C compiler cannot create executables |
3515 | See \`config.log' for more details" "$LINENO" 5; } | |
96f4052b AC |
3516 | else |
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3518 | $as_echo "yes" >&6; } | |
db137867 | 3519 | fi |
96f4052b AC |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3521 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3523 | $as_echo "$ac_file" >&6; } | |
db137867 AC |
3524 | ac_exeext=$ac_cv_exeext |
3525 | ||
96f4052b | 3526 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
db137867 | 3527 | ac_clean_files=$ac_clean_files_save |
7083c021 | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
030272f3 | 3529 | $as_echo_n "checking for suffix of executables... " >&6; } |
7083c021 | 3530 | if { { ac_try="$ac_link" |
db137867 AC |
3531 | case "(($ac_try" in |
3532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3533 | *) ac_try_echo=$ac_try;; | |
3534 | esac | |
7083c021 AC |
3535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3536 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3537 | (eval "$ac_link") 2>&5 |
3538 | ac_status=$? | |
7083c021 AC |
3539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3540 | test $ac_status = 0; }; then : | |
db137867 AC |
3541 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3542 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3543 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3544 | # `rm'. | |
3545 | for ac_file in conftest.exe conftest conftest.*; do | |
3546 | test -f "$ac_file" || continue | |
3547 | case $ac_file in | |
030272f3 | 3548 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3549 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3550 | break;; | |
3551 | * ) break;; | |
3552 | esac | |
3553 | done | |
3554 | else | |
7083c021 | 3555 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3557 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3558 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 3559 | fi |
96f4052b | 3560 | rm -f conftest conftest$ac_cv_exeext |
7083c021 | 3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
030272f3 | 3562 | $as_echo "$ac_cv_exeext" >&6; } |
db137867 AC |
3563 | |
3564 | rm -f conftest.$ac_ext | |
3565 | EXEEXT=$ac_cv_exeext | |
3566 | ac_exeext=$EXEEXT | |
96f4052b AC |
3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3568 | /* end confdefs.h. */ | |
3569 | #include <stdio.h> | |
3570 | int | |
3571 | main () | |
3572 | { | |
3573 | FILE *f = fopen ("conftest.out", "w"); | |
3574 | return ferror (f) || fclose (f) != 0; | |
3575 | ||
3576 | ; | |
3577 | return 0; | |
3578 | } | |
3579 | _ACEOF | |
3580 | ac_clean_files="$ac_clean_files conftest.out" | |
3581 | # Check that the compiler produces executables we can run. If not, either | |
3582 | # the compiler is broken, or we cross compile. | |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3584 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3585 | if test "$cross_compiling" != yes; then | |
3586 | { { ac_try="$ac_link" | |
3587 | case "(($ac_try" in | |
3588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3589 | *) ac_try_echo=$ac_try;; | |
3590 | esac | |
3591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3592 | $as_echo "$ac_try_echo"; } >&5 | |
3593 | (eval "$ac_link") 2>&5 | |
3594 | ac_status=$? | |
3595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3596 | test $ac_status = 0; } | |
3597 | if { ac_try='./conftest$ac_cv_exeext' | |
3598 | { { case "(($ac_try" in | |
3599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3600 | *) ac_try_echo=$ac_try;; | |
3601 | esac | |
3602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3603 | $as_echo "$ac_try_echo"; } >&5 | |
3604 | (eval "$ac_try") 2>&5 | |
3605 | ac_status=$? | |
3606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3607 | test $ac_status = 0; }; }; then | |
3608 | cross_compiling=no | |
3609 | else | |
3610 | if test "$cross_compiling" = maybe; then | |
3611 | cross_compiling=yes | |
3612 | else | |
3613 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3614 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c | 3615 | as_fn_error $? "cannot run C compiled programs. |
96f4052b | 3616 | If you meant to cross compile, use \`--host'. |
08c2568c | 3617 | See \`config.log' for more details" "$LINENO" 5; } |
96f4052b AC |
3618 | fi |
3619 | fi | |
3620 | fi | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3622 | $as_echo "$cross_compiling" >&6; } | |
3623 | ||
3624 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3625 | ac_clean_files=$ac_clean_files_save | |
7083c021 | 3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
030272f3 | 3627 | $as_echo_n "checking for suffix of object files... " >&6; } |
08c2568c | 3628 | if ${ac_cv_objext+:} false; then : |
030272f3 | 3629 | $as_echo_n "(cached) " >&6 |
db137867 | 3630 | else |
7083c021 | 3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3632 | /* end confdefs.h. */ |
3633 | ||
3634 | int | |
3635 | main () | |
3636 | { | |
3637 | ||
3638 | ; | |
3639 | return 0; | |
3640 | } | |
3641 | _ACEOF | |
3642 | rm -f conftest.o conftest.obj | |
7083c021 | 3643 | if { { ac_try="$ac_compile" |
db137867 AC |
3644 | case "(($ac_try" in |
3645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3646 | *) ac_try_echo=$ac_try;; | |
3647 | esac | |
7083c021 AC |
3648 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3649 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3650 | (eval "$ac_compile") 2>&5 |
3651 | ac_status=$? | |
7083c021 AC |
3652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3653 | test $ac_status = 0; }; then : | |
db137867 AC |
3654 | for ac_file in conftest.o conftest.obj conftest.*; do |
3655 | test -f "$ac_file" || continue; | |
3656 | case $ac_file in | |
030272f3 | 3657 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
db137867 AC |
3658 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3659 | break;; | |
3660 | esac | |
3661 | done | |
3662 | else | |
030272f3 | 3663 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3664 | sed 's/^/| /' conftest.$ac_ext >&5 |
3665 | ||
7083c021 | 3666 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3668 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3669 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 3670 | fi |
db137867 AC |
3671 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3672 | fi | |
7083c021 | 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
030272f3 | 3674 | $as_echo "$ac_cv_objext" >&6; } |
db137867 AC |
3675 | OBJEXT=$ac_cv_objext |
3676 | ac_objext=$OBJEXT | |
7083c021 | 3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
030272f3 | 3678 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
08c2568c | 3679 | if ${ac_cv_c_compiler_gnu+:} false; then : |
030272f3 | 3680 | $as_echo_n "(cached) " >&6 |
db137867 | 3681 | else |
7083c021 | 3682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3683 | /* end confdefs.h. */ |
3684 | ||
3685 | int | |
3686 | main () | |
3687 | { | |
3688 | #ifndef __GNUC__ | |
3689 | choke me | |
3690 | #endif | |
3691 | ||
3692 | ; | |
3693 | return 0; | |
3694 | } | |
3695 | _ACEOF | |
7083c021 | 3696 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 AC |
3697 | ac_compiler_gnu=yes |
3698 | else | |
7083c021 | 3699 | ac_compiler_gnu=no |
db137867 | 3700 | fi |
db137867 AC |
3701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3702 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3703 | ||
3704 | fi | |
7083c021 | 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
030272f3 VY |
3706 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3707 | if test $ac_compiler_gnu = yes; then | |
3708 | GCC=yes | |
3709 | else | |
3710 | GCC= | |
3711 | fi | |
db137867 AC |
3712 | ac_test_CFLAGS=${CFLAGS+set} |
3713 | ac_save_CFLAGS=$CFLAGS | |
7083c021 | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
030272f3 | 3715 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
08c2568c | 3716 | if ${ac_cv_prog_cc_g+:} false; then : |
030272f3 | 3717 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3718 | else |
3719 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3720 | ac_c_werror_flag=yes | |
3721 | ac_cv_prog_cc_g=no | |
3722 | CFLAGS="-g" | |
7083c021 | 3723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3724 | /* end confdefs.h. */ |
3725 | ||
3726 | int | |
3727 | main () | |
3728 | { | |
3729 | ||
3730 | ; | |
3731 | return 0; | |
3732 | } | |
3733 | _ACEOF | |
7083c021 | 3734 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 AC |
3735 | ac_cv_prog_cc_g=yes |
3736 | else | |
7083c021 AC |
3737 | CFLAGS="" |
3738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
3739 | /* end confdefs.h. */ |
3740 | ||
3741 | int | |
3742 | main () | |
3743 | { | |
3744 | ||
3745 | ; | |
3746 | return 0; | |
3747 | } | |
3748 | _ACEOF | |
7083c021 | 3749 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3750 | |
7083c021 AC |
3751 | else |
3752 | ac_c_werror_flag=$ac_save_c_werror_flag | |
db137867 | 3753 | CFLAGS="-g" |
7083c021 | 3754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3755 | /* end confdefs.h. */ |
3756 | ||
3757 | int | |
3758 | main () | |
3759 | { | |
3760 | ||
3761 | ; | |
3762 | return 0; | |
3763 | } | |
3764 | _ACEOF | |
7083c021 | 3765 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3766 | ac_cv_prog_cc_g=yes |
db137867 | 3767 | fi |
db137867 AC |
3768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3769 | fi | |
db137867 AC |
3770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3771 | fi | |
db137867 AC |
3772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3773 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3774 | fi | |
7083c021 | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
030272f3 | 3776 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
db137867 AC |
3777 | if test "$ac_test_CFLAGS" = set; then |
3778 | CFLAGS=$ac_save_CFLAGS | |
3779 | elif test $ac_cv_prog_cc_g = yes; then | |
3780 | if test "$GCC" = yes; then | |
3781 | CFLAGS="-g -O2" | |
3782 | else | |
3783 | CFLAGS="-g" | |
3784 | fi | |
3785 | else | |
3786 | if test "$GCC" = yes; then | |
3787 | CFLAGS="-O2" | |
3788 | else | |
3789 | CFLAGS= | |
3790 | fi | |
3791 | fi | |
7083c021 | 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
030272f3 | 3793 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
08c2568c | 3794 | if ${ac_cv_prog_cc_c89+:} false; then : |
030272f3 | 3795 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3796 | else |
3797 | ac_cv_prog_cc_c89=no | |
3798 | ac_save_CC=$CC | |
7083c021 | 3799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3800 | /* end confdefs.h. */ |
3801 | #include <stdarg.h> | |
3802 | #include <stdio.h> | |
bf4e01a4 | 3803 | struct stat; |
db137867 AC |
3804 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3805 | struct buf { int x; }; | |
3806 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3807 | static char *e (p, i) | |
3808 | char **p; | |
3809 | int i; | |
3810 | { | |
3811 | return p[i]; | |
3812 | } | |
3813 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3814 | { | |
3815 | char *s; | |
3816 | va_list v; | |
3817 | va_start (v,p); | |
3818 | s = g (p, va_arg (v,int)); | |
3819 | va_end (v); | |
3820 | return s; | |
3821 | } | |
3822 | ||
3823 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3824 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3825 | These don't provoke an error unfortunately, instead are silently treated | |
3826 | as 'x'. The following induces an error, until -std is added to get | |
3827 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3828 | array size at least. It's necessary to write '\x00'==0 to get something | |
3829 | that's true only with -std. */ | |
3830 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3831 | ||
3832 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3833 | inside strings and character constants. */ | |
3834 | #define FOO(x) 'x' | |
3835 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3836 | ||
3837 | int test (int i, double x); | |
3838 | struct s1 {int (*f) (int a);}; | |
3839 | struct s2 {int (*f) (double a);}; | |
3840 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3841 | int argc; | |
3842 | char **argv; | |
3843 | int | |
3844 | main () | |
3845 | { | |
3846 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3847 | ; | |
3848 | return 0; | |
3849 | } | |
3850 | _ACEOF | |
3851 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3852 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3853 | do | |
3854 | CC="$ac_save_CC $ac_arg" | |
7083c021 | 3855 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3856 | ac_cv_prog_cc_c89=$ac_arg |
db137867 | 3857 | fi |
db137867 AC |
3858 | rm -f core conftest.err conftest.$ac_objext |
3859 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3860 | done | |
3861 | rm -f conftest.$ac_ext | |
3862 | CC=$ac_save_CC | |
3863 | ||
3864 | fi | |
3865 | # AC_CACHE_VAL | |
3866 | case "x$ac_cv_prog_cc_c89" in | |
3867 | x) | |
7083c021 | 3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
030272f3 | 3869 | $as_echo "none needed" >&6; } ;; |
db137867 | 3870 | xno) |
7083c021 | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
030272f3 | 3872 | $as_echo "unsupported" >&6; } ;; |
db137867 AC |
3873 | *) |
3874 | CC="$CC $ac_cv_prog_cc_c89" | |
7083c021 | 3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
030272f3 | 3876 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
db137867 | 3877 | esac |
7083c021 | 3878 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
db137867 | 3879 | |
7083c021 | 3880 | fi |
db137867 AC |
3881 | |
3882 | ac_ext=c | |
3883 | ac_cpp='$CPP $CPPFLAGS' | |
3884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3887 | ||
bf4e01a4 AC |
3888 | ac_ext=c |
3889 | ac_cpp='$CPP $CPPFLAGS' | |
3890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3894 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3895 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3896 | $as_echo_n "(cached) " >&6 | |
3897 | else | |
3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3899 | /* end confdefs.h. */ | |
3900 | ||
3901 | int | |
3902 | main () | |
3903 | { | |
3904 | ||
3905 | ; | |
3906 | return 0; | |
3907 | } | |
3908 | _ACEOF | |
3909 | # Make sure it works both with $CC and with simple cc. | |
3910 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3911 | # compilers refuse to overwrite an existing .o file with -o, | |
3912 | # though they will create one. | |
3913 | am_cv_prog_cc_c_o=yes | |
3914 | for am_i in 1 2; do | |
3915 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3916 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3917 | ac_status=$? | |
3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3919 | (exit $ac_status); } \ | |
3920 | && test -f conftest2.$ac_objext; then | |
3921 | : OK | |
3922 | else | |
3923 | am_cv_prog_cc_c_o=no | |
3924 | break | |
3925 | fi | |
3926 | done | |
3927 | rm -f core conftest* | |
3928 | unset am_i | |
3929 | fi | |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3931 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3932 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3933 | # Losing compiler, so override with the script. | |
3934 | # FIXME: It is wrong to rewrite CC. | |
3935 | # But if we don't then we get into trouble of one sort or another. | |
3936 | # A longer-term fix would be to have automake use am__CC in this case, | |
3937 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3938 | CC="$am_aux_dir/compile $CC" | |
3939 | fi | |
3940 | ac_ext=c | |
3941 | ac_cpp='$CPP $CPPFLAGS' | |
3942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3945 | ||
3946 | ||
db137867 AC |
3947 | depcc="$CC" am_compiler_list= |
3948 | ||
7083c021 | 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
030272f3 | 3950 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
08c2568c | 3951 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
030272f3 | 3952 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3953 | else |
3954 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3955 | # We make a subdir and do the tests there. Otherwise we can end up | |
3956 | # making bogus files that we don't know about and never remove. For | |
3957 | # instance it was reported that on HP-UX the gcc test will end up | |
bf4e01a4 AC |
3958 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3959 | # in D". | |
3960 | rm -rf conftest.dir | |
db137867 AC |
3961 | mkdir conftest.dir |
3962 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3963 | # using a relative directory. | |
3964 | cp "$am_depcomp" conftest.dir | |
3965 | cd conftest.dir | |
3966 | # We will build objects and dependencies in a subdirectory because | |
3967 | # it helps to detect inapplicable dependency modes. For instance | |
3968 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3969 | # side effect of compilation, but ICC will put the dependencies in | |
3970 | # the current directory while Tru64 will put them in the object | |
3971 | # directory. | |
3972 | mkdir sub | |
3973 | ||
3974 | am_cv_CC_dependencies_compiler_type=none | |
3975 | if test "$am_compiler_list" = ""; then | |
3976 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3977 | fi | |
7083c021 AC |
3978 | am__universal=false |
3979 | case " $depcc " in #( | |
3980 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3981 | esac | |
3982 | ||
db137867 AC |
3983 | for depmode in $am_compiler_list; do |
3984 | # Setup a source with many dependencies, because some compilers | |
3985 | # like to wrap large dependency lists on column 80 (with \), and | |
3986 | # we should not choose a depcomp mode which is confused by this. | |
3987 | # | |
3988 | # We need to recreate these files for each test, as the compiler may | |
3989 | # overwrite some of them when testing with obscure command lines. | |
3990 | # This happens at least with the AIX C compiler. | |
3991 | : > sub/conftest.c | |
3992 | for i in 1 2 3 4 5 6; do | |
3993 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
bf4e01a4 AC |
3994 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3995 | # Solaris 10 /bin/sh. | |
3996 | echo '/* dummy */' > sub/conftst$i.h | |
db137867 AC |
3997 | done |
3998 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3999 | ||
bf4e01a4 | 4000 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
7083c021 | 4001 | # mode. It turns out that the SunPro C++ compiler does not properly |
bf4e01a4 AC |
4002 | # handle '-M -o', and we need to detect this. Also, some Intel |
4003 | # versions had trouble with output in subdirs. | |
7083c021 AC |
4004 | am__obj=sub/conftest.${OBJEXT-o} |
4005 | am__minus_obj="-o $am__obj" | |
db137867 | 4006 | case $depmode in |
7083c021 AC |
4007 | gcc) |
4008 | # This depmode causes a compiler race in universal mode. | |
4009 | test "$am__universal" = false || continue | |
4010 | ;; | |
db137867 | 4011 | nosideeffect) |
bf4e01a4 AC |
4012 | # After this tag, mechanisms are not by side-effect, so they'll |
4013 | # only be used when explicitly requested. | |
db137867 AC |
4014 | if test "x$enable_dependency_tracking" = xyes; then |
4015 | continue | |
4016 | else | |
4017 | break | |
4018 | fi | |
4019 | ;; | |
bf4e01a4 AC |
4020 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4021 | # This compiler won't grok '-c -o', but also, the minuso test has | |
7083c021 AC |
4022 | # not run yet. These depmodes are late enough in the game, and |
4023 | # so weak that their functioning should not be impacted. | |
4024 | am__obj=conftest.${OBJEXT-o} | |
4025 | am__minus_obj= | |
4026 | ;; | |
db137867 AC |
4027 | none) break ;; |
4028 | esac | |
db137867 | 4029 | if depmode=$depmode \ |
7083c021 | 4030 | source=sub/conftest.c object=$am__obj \ |
db137867 | 4031 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
7083c021 | 4032 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
db137867 AC |
4033 | >/dev/null 2>conftest.err && |
4034 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4035 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7083c021 | 4036 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
db137867 AC |
4037 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4038 | # icc doesn't choke on unknown options, it will just issue warnings | |
4039 | # or remarks (even with -Werror). So we grep stderr for any message | |
4040 | # that says an option was ignored or not supported. | |
4041 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4042 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4043 | # The diagnosis changed in icc 8.0: | |
4044 | # icc: Command line remark: option '-MP' not supported | |
4045 | if (grep 'ignoring option' conftest.err || | |
4046 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4047 | am_cv_CC_dependencies_compiler_type=$depmode | |
4048 | break | |
4049 | fi | |
4050 | fi | |
4051 | done | |
4052 | ||
4053 | cd .. | |
4054 | rm -rf conftest.dir | |
4055 | else | |
4056 | am_cv_CC_dependencies_compiler_type=none | |
4057 | fi | |
4058 | ||
4059 | fi | |
7083c021 | 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
030272f3 | 4061 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
db137867 AC |
4062 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4063 | ||
4064 | if | |
4065 | test "x$enable_dependency_tracking" != xno \ | |
4066 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4067 | am__fastdepCC_TRUE= | |
4068 | am__fastdepCC_FALSE='#' | |
4069 | else | |
4070 | am__fastdepCC_TRUE='#' | |
4071 | am__fastdepCC_FALSE= | |
4072 | fi | |
4073 | ||
4074 | ||
030272f3 VY |
4075 | |
4076 | ac_ext=c | |
4077 | ac_cpp='$CPP $CPPFLAGS' | |
4078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7083c021 | 4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
030272f3 VY |
4082 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
4083 | # On Suns, sometimes $CPP names a directory. | |
4084 | if test -n "$CPP" && test -d "$CPP"; then | |
4085 | CPP= | |
4086 | fi | |
4087 | if test -z "$CPP"; then | |
08c2568c | 4088 | if ${ac_cv_prog_CPP+:} false; then : |
030272f3 | 4089 | $as_echo_n "(cached) " >&6 |
db137867 | 4090 | else |
030272f3 VY |
4091 | # Double quotes because CPP needs to be expanded |
4092 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4093 | do | |
4094 | ac_preproc_ok=false | |
4095 | for ac_c_preproc_warn_flag in '' yes | |
4096 | do | |
4097 | # Use a header file that comes with gcc, so configuring glibc | |
4098 | # with a fresh cross-compiler works. | |
4099 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4100 | # <limits.h> exists even on freestanding compilers. | |
4101 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4102 | # not just through cpp. "Syntax error" is here to catch this case. | |
7083c021 | 4103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4104 | /* end confdefs.h. */ |
030272f3 VY |
4105 | #ifdef __STDC__ |
4106 | # include <limits.h> | |
db137867 | 4107 | #else |
030272f3 | 4108 | # include <assert.h> |
db137867 | 4109 | #endif |
030272f3 | 4110 | Syntax error |
db137867 | 4111 | _ACEOF |
7083c021 | 4112 | if ac_fn_c_try_cpp "$LINENO"; then : |
db137867 | 4113 | |
7083c021 | 4114 | else |
030272f3 VY |
4115 | # Broken: fails on valid input. |
4116 | continue | |
db137867 | 4117 | fi |
08c2568c | 4118 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 4119 | |
030272f3 VY |
4120 | # OK, works on sane cases. Now check whether nonexistent headers |
4121 | # can be detected and how. | |
7083c021 | 4122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4123 | /* end confdefs.h. */ |
4124 | #include <ac_nonexistent.h> | |
4125 | _ACEOF | |
7083c021 | 4126 | if ac_fn_c_try_cpp "$LINENO"; then : |
030272f3 VY |
4127 | # Broken: success on invalid input. |
4128 | continue | |
4129 | else | |
030272f3 VY |
4130 | # Passes both tests. |
4131 | ac_preproc_ok=: | |
4132 | break | |
4133 | fi | |
08c2568c | 4134 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 4135 | |
030272f3 VY |
4136 | done |
4137 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
08c2568c | 4138 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 4139 | if $ac_preproc_ok; then : |
030272f3 | 4140 | break |
db137867 AC |
4141 | fi |
4142 | ||
030272f3 VY |
4143 | done |
4144 | ac_cv_prog_CPP=$CPP | |
db137867 | 4145 | |
030272f3 VY |
4146 | fi |
4147 | CPP=$ac_cv_prog_CPP | |
db137867 | 4148 | else |
030272f3 VY |
4149 | ac_cv_prog_CPP=$CPP |
4150 | fi | |
7083c021 | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
030272f3 VY |
4152 | $as_echo "$CPP" >&6; } |
4153 | ac_preproc_ok=false | |
4154 | for ac_c_preproc_warn_flag in '' yes | |
db137867 | 4155 | do |
030272f3 VY |
4156 | # Use a header file that comes with gcc, so configuring glibc |
4157 | # with a fresh cross-compiler works. | |
4158 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4159 | # <limits.h> exists even on freestanding compilers. | |
4160 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4161 | # not just through cpp. "Syntax error" is here to catch this case. | |
7083c021 | 4162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4163 | /* end confdefs.h. */ |
4164 | #ifdef __STDC__ | |
4165 | # include <limits.h> | |
4166 | #else | |
4167 | # include <assert.h> | |
4168 | #endif | |
4169 | Syntax error | |
4170 | _ACEOF | |
7083c021 | 4171 | if ac_fn_c_try_cpp "$LINENO"; then : |
db137867 | 4172 | |
7083c021 | 4173 | else |
030272f3 VY |
4174 | # Broken: fails on valid input. |
4175 | continue | |
db137867 | 4176 | fi |
08c2568c | 4177 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 4178 | |
030272f3 VY |
4179 | # OK, works on sane cases. Now check whether nonexistent headers |
4180 | # can be detected and how. | |
7083c021 | 4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4182 | /* end confdefs.h. */ |
4183 | #include <ac_nonexistent.h> | |
4184 | _ACEOF | |
7083c021 | 4185 | if ac_fn_c_try_cpp "$LINENO"; then : |
030272f3 VY |
4186 | # Broken: success on invalid input. |
4187 | continue | |
4188 | else | |
030272f3 VY |
4189 | # Passes both tests. |
4190 | ac_preproc_ok=: | |
4191 | break | |
4192 | fi | |
08c2568c | 4193 | rm -f conftest.err conftest.i conftest.$ac_ext |
030272f3 VY |
4194 | |
4195 | done | |
4196 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
08c2568c | 4197 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 AC |
4198 | if $ac_preproc_ok; then : |
4199 | ||
db137867 | 4200 | else |
7083c021 | 4201 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 4202 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
4203 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4204 | See \`config.log' for more details" "$LINENO" 5; } | |
030272f3 VY |
4205 | fi |
4206 | ||
4207 | ac_ext=c | |
4208 | ac_cpp='$CPP $CPPFLAGS' | |
4209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4212 | ||
4213 | ||
7083c021 | 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
030272f3 | 4215 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
08c2568c | 4216 | if ${ac_cv_path_GREP+:} false; then : |
030272f3 | 4217 | $as_echo_n "(cached) " >&6 |
db137867 | 4218 | else |
030272f3 | 4219 | if test -z "$GREP"; then |
db137867 | 4220 | ac_path_GREP_found=false |
030272f3 VY |
4221 | # Loop through the user's path and test for each of PROGNAME-LIST |
4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
4223 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4227 | for ac_prog in grep ggrep; do |
030272f3 VY |
4228 | for ac_exec_ext in '' $ac_executable_extensions; do |
4229 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4230 | as_fn_executable_p "$ac_path_GREP" || continue |
030272f3 | 4231 | # Check for GNU ac_path_GREP and select it if it is found. |
db137867 AC |
4232 | # Check for GNU $ac_path_GREP |
4233 | case `"$ac_path_GREP" --version 2>&1` in | |
4234 | *GNU*) | |
4235 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4236 | *) | |
4237 | ac_count=0 | |
030272f3 | 4238 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
4239 | while : |
4240 | do | |
4241 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4242 | mv "conftest.tmp" "conftest.in" | |
4243 | cp "conftest.in" "conftest.nl" | |
030272f3 | 4244 | $as_echo 'GREP' >> "conftest.nl" |
db137867 AC |
4245 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4246 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4247 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
db137867 AC |
4248 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4249 | # Best one so far, save it but keep looking for a better one | |
4250 | ac_cv_path_GREP="$ac_path_GREP" | |
4251 | ac_path_GREP_max=$ac_count | |
4252 | fi | |
4253 | # 10*(2^10) chars as input seems more than enough | |
4254 | test $ac_count -gt 10 && break | |
4255 | done | |
4256 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4257 | esac | |
4258 | ||
030272f3 VY |
4259 | $ac_path_GREP_found && break 3 |
4260 | done | |
db137867 | 4261 | done |
7083c021 | 4262 | done |
db137867 | 4263 | IFS=$as_save_IFS |
030272f3 | 4264 | if test -z "$ac_cv_path_GREP"; then |
08c2568c | 4265 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4266 | fi |
db137867 AC |
4267 | else |
4268 | ac_cv_path_GREP=$GREP | |
4269 | fi | |
4270 | ||
db137867 | 4271 | fi |
7083c021 | 4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
030272f3 | 4273 | $as_echo "$ac_cv_path_GREP" >&6; } |
db137867 AC |
4274 | GREP="$ac_cv_path_GREP" |
4275 | ||
4276 | ||
7083c021 | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
030272f3 | 4278 | $as_echo_n "checking for egrep... " >&6; } |
08c2568c | 4279 | if ${ac_cv_path_EGREP+:} false; then : |
030272f3 | 4280 | $as_echo_n "(cached) " >&6 |
db137867 AC |
4281 | else |
4282 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4283 | then ac_cv_path_EGREP="$GREP -E" | |
4284 | else | |
030272f3 | 4285 | if test -z "$EGREP"; then |
db137867 | 4286 | ac_path_EGREP_found=false |
030272f3 VY |
4287 | # Loop through the user's path and test for each of PROGNAME-LIST |
4288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
4289 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4290 | do | |
4291 | IFS=$as_save_IFS | |
4292 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4293 | for ac_prog in egrep; do |
030272f3 VY |
4294 | for ac_exec_ext in '' $ac_executable_extensions; do |
4295 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4296 | as_fn_executable_p "$ac_path_EGREP" || continue |
030272f3 | 4297 | # Check for GNU ac_path_EGREP and select it if it is found. |
db137867 AC |
4298 | # Check for GNU $ac_path_EGREP |
4299 | case `"$ac_path_EGREP" --version 2>&1` in | |
4300 | *GNU*) | |
4301 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4302 | *) | |
4303 | ac_count=0 | |
030272f3 | 4304 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
4305 | while : |
4306 | do | |
4307 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4308 | mv "conftest.tmp" "conftest.in" | |
4309 | cp "conftest.in" "conftest.nl" | |
030272f3 | 4310 | $as_echo 'EGREP' >> "conftest.nl" |
db137867 AC |
4311 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4312 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4313 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
db137867 AC |
4314 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4315 | # Best one so far, save it but keep looking for a better one | |
4316 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4317 | ac_path_EGREP_max=$ac_count | |
4318 | fi | |
4319 | # 10*(2^10) chars as input seems more than enough | |
4320 | test $ac_count -gt 10 && break | |
4321 | done | |
4322 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4323 | esac | |
4324 | ||
030272f3 VY |
4325 | $ac_path_EGREP_found && break 3 |
4326 | done | |
db137867 | 4327 | done |
7083c021 | 4328 | done |
db137867 | 4329 | IFS=$as_save_IFS |
030272f3 | 4330 | if test -z "$ac_cv_path_EGREP"; then |
08c2568c | 4331 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4332 | fi |
db137867 AC |
4333 | else |
4334 | ac_cv_path_EGREP=$EGREP | |
4335 | fi | |
4336 | ||
db137867 AC |
4337 | fi |
4338 | fi | |
7083c021 | 4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
030272f3 | 4340 | $as_echo "$ac_cv_path_EGREP" >&6; } |
db137867 AC |
4341 | EGREP="$ac_cv_path_EGREP" |
4342 | ||
4343 | ||
7083c021 | 4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
030272f3 | 4345 | $as_echo_n "checking for ANSI C header files... " >&6; } |
08c2568c | 4346 | if ${ac_cv_header_stdc+:} false; then : |
030272f3 | 4347 | $as_echo_n "(cached) " >&6 |
db137867 | 4348 | else |
7083c021 | 4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4350 | /* end confdefs.h. */ |
030272f3 VY |
4351 | #include <stdlib.h> |
4352 | #include <stdarg.h> | |
4353 | #include <string.h> | |
4354 | #include <float.h> | |
db137867 | 4355 | |
db137867 AC |
4356 | int |
4357 | main () | |
4358 | { | |
030272f3 | 4359 | |
db137867 AC |
4360 | ; |
4361 | return 0; | |
4362 | } | |
4363 | _ACEOF | |
7083c021 | 4364 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4365 | ac_cv_header_stdc=yes |
db137867 | 4366 | else |
7083c021 | 4367 | ac_cv_header_stdc=no |
db137867 | 4368 | fi |
030272f3 VY |
4369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4370 | ||
4371 | if test $ac_cv_header_stdc = yes; then | |
4372 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7083c021 | 4373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4374 | /* end confdefs.h. */ |
4375 | #include <string.h> | |
4376 | ||
4377 | _ACEOF | |
4378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 AC |
4379 | $EGREP "memchr" >/dev/null 2>&1; then : |
4380 | ||
db137867 | 4381 | else |
030272f3 | 4382 | ac_cv_header_stdc=no |
db137867 | 4383 | fi |
030272f3 | 4384 | rm -f conftest* |
db137867 AC |
4385 | |
4386 | fi | |
4387 | ||
030272f3 VY |
4388 | if test $ac_cv_header_stdc = yes; then |
4389 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7083c021 | 4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4391 | /* end confdefs.h. */ |
030272f3 | 4392 | #include <stdlib.h> |
db137867 AC |
4393 | |
4394 | _ACEOF | |
030272f3 | 4395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7083c021 AC |
4396 | $EGREP "free" >/dev/null 2>&1; then : |
4397 | ||
db137867 | 4398 | else |
030272f3 | 4399 | ac_cv_header_stdc=no |
db137867 | 4400 | fi |
030272f3 | 4401 | rm -f conftest* |
db137867 AC |
4402 | |
4403 | fi | |
db137867 | 4404 | |
030272f3 VY |
4405 | if test $ac_cv_header_stdc = yes; then |
4406 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7083c021 | 4407 | if test "$cross_compiling" = yes; then : |
030272f3 | 4408 | : |
db137867 | 4409 | else |
7083c021 | 4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4411 | /* end confdefs.h. */ |
030272f3 VY |
4412 | #include <ctype.h> |
4413 | #include <stdlib.h> | |
4414 | #if ((' ' & 0x0FF) == 0x020) | |
4415 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4416 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4417 | #else | |
4418 | # define ISLOWER(c) \ | |
4419 | (('a' <= (c) && (c) <= 'i') \ | |
4420 | || ('j' <= (c) && (c) <= 'r') \ | |
4421 | || ('s' <= (c) && (c) <= 'z')) | |
4422 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
4423 | #endif |
4424 | ||
030272f3 VY |
4425 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4426 | int | |
4427 | main () | |
4428 | { | |
4429 | int i; | |
4430 | for (i = 0; i < 256; i++) | |
4431 | if (XOR (islower (i), ISLOWER (i)) | |
4432 | || toupper (i) != TOUPPER (i)) | |
4433 | return 2; | |
db137867 AC |
4434 | return 0; |
4435 | } | |
4436 | _ACEOF | |
7083c021 | 4437 | if ac_fn_c_try_run "$LINENO"; then : |
030272f3 | 4438 | |
7083c021 AC |
4439 | else |
4440 | ac_cv_header_stdc=no | |
030272f3 | 4441 | fi |
7083c021 AC |
4442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4443 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
030272f3 VY |
4444 | fi |
4445 | ||
030272f3 VY |
4446 | fi |
4447 | fi | |
7083c021 | 4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
030272f3 VY |
4449 | $as_echo "$ac_cv_header_stdc" >&6; } |
4450 | if test $ac_cv_header_stdc = yes; then | |
4451 | ||
7083c021 | 4452 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
030272f3 VY |
4453 | |
4454 | fi | |
4455 | ||
4456 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7083c021 AC |
4457 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4458 | inttypes.h stdint.h unistd.h | |
4459 | do : | |
4460 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4461 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4462 | " | |
08c2568c | 4463 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
4464 | cat >>confdefs.h <<_ACEOF |
4465 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4466 | _ACEOF | |
030272f3 | 4467 | |
7083c021 | 4468 | fi |
030272f3 | 4469 | |
7083c021 | 4470 | done |
030272f3 VY |
4471 | |
4472 | ||
4473 | ||
7083c021 | 4474 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
08c2568c | 4475 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 AC |
4476 | MINIX=yes |
4477 | else | |
4478 | MINIX= | |
4479 | fi | |
030272f3 VY |
4480 | |
4481 | ||
7083c021 | 4482 | if test "$MINIX" = yes; then |
030272f3 | 4483 | |
7083c021 | 4484 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
030272f3 | 4485 | |
db137867 | 4486 | |
7083c021 | 4487 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
db137867 | 4488 | |
db137867 | 4489 | |
7083c021 | 4490 | $as_echo "#define _MINIX 1" >>confdefs.h |
030272f3 | 4491 | |
7083c021 | 4492 | fi |
030272f3 VY |
4493 | |
4494 | ||
7083c021 | 4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
030272f3 | 4496 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
08c2568c | 4497 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
030272f3 | 4498 | $as_echo_n "(cached) " >&6 |
db137867 | 4499 | else |
7083c021 | 4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 | 4501 | /* end confdefs.h. */ |
db137867 | 4502 | |
bf4e01a4 AC |
4503 | # define __EXTENSIONS__ 1 |
4504 | $ac_includes_default | |
030272f3 VY |
4505 | int |
4506 | main () | |
4507 | { | |
4508 | ||
4509 | ; | |
4510 | return 0; | |
4511 | } | |
4512 | _ACEOF | |
7083c021 | 4513 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4514 | ac_cv_safe_to_define___extensions__=yes |
db137867 | 4515 | else |
7083c021 | 4516 | ac_cv_safe_to_define___extensions__=no |
db137867 | 4517 | fi |
030272f3 VY |
4518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4519 | fi | |
7083c021 | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
030272f3 VY |
4521 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4522 | test $ac_cv_safe_to_define___extensions__ = yes && | |
7083c021 | 4523 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
db137867 | 4524 | |
7083c021 | 4525 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
030272f3 | 4526 | |
7083c021 | 4527 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
030272f3 | 4528 | |
7083c021 AC |
4529 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4530 | ||
4531 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
030272f3 | 4532 | |
030272f3 VY |
4533 | |
4534 | ||
4535 | ||
7083c021 | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
030272f3 | 4537 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
08c2568c | 4538 | if ${ac_cv_prog_cc_c99+:} false; then : |
030272f3 | 4539 | $as_echo_n "(cached) " >&6 |
db137867 | 4540 | else |
030272f3 VY |
4541 | ac_cv_prog_cc_c99=no |
4542 | ac_save_CC=$CC | |
7083c021 | 4543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4544 | /* end confdefs.h. */ |
4545 | #include <stdarg.h> | |
4546 | #include <stdbool.h> | |
4547 | #include <stdlib.h> | |
4548 | #include <wchar.h> | |
4549 | #include <stdio.h> | |
db137867 | 4550 | |
030272f3 VY |
4551 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
4552 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4553 | #define showlist(...) puts (#__VA_ARGS__) | |
4554 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4555 | static void | |
4556 | test_varargs_macros (void) | |
4557 | { | |
4558 | int x = 1234; | |
4559 | int y = 5678; | |
4560 | debug ("Flag"); | |
4561 | debug ("X = %d\n", x); | |
4562 | showlist (The first, second, and third items.); | |
4563 | report (x>y, "x is %d but y is %d", x, y); | |
4564 | } | |
db137867 | 4565 | |
030272f3 VY |
4566 | // Check long long types. |
4567 | #define BIG64 18446744073709551615ull | |
4568 | #define BIG32 4294967295ul | |
4569 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4570 | #if !BIG_OK | |
4571 | your preprocessor is broken; | |
4572 | #endif | |
4573 | #if BIG_OK | |
4574 | #else | |
4575 | your preprocessor is broken; | |
4576 | #endif | |
4577 | static long long int bignum = -9223372036854775807LL; | |
4578 | static unsigned long long int ubignum = BIG64; | |
db137867 | 4579 | |
030272f3 VY |
4580 | struct incomplete_array |
4581 | { | |
4582 | int datasize; | |
4583 | double data[]; | |
4584 | }; | |
db137867 | 4585 | |
030272f3 VY |
4586 | struct named_init { |
4587 | int number; | |
4588 | const wchar_t *name; | |
4589 | double average; | |
4590 | }; | |
db137867 | 4591 | |
030272f3 | 4592 | typedef const char *ccp; |
db137867 | 4593 | |
030272f3 VY |
4594 | static inline int |
4595 | test_restrict (ccp restrict text) | |
4596 | { | |
4597 | // See if C++-style comments work. | |
4598 | // Iterate through items via the restricted pointer. | |
4599 | // Also check for declarations in for loops. | |
4600 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4601 | continue; | |
4602 | return 0; | |
4603 | } | |
db137867 | 4604 | |
030272f3 VY |
4605 | // Check varargs and va_copy. |
4606 | static void | |
4607 | test_varargs (const char *format, ...) | |
4608 | { | |
4609 | va_list args; | |
4610 | va_start (args, format); | |
4611 | va_list args_copy; | |
4612 | va_copy (args_copy, args); | |
db137867 | 4613 | |
030272f3 VY |
4614 | const char *str; |
4615 | int number; | |
4616 | float fnumber; | |
db137867 | 4617 | |
030272f3 VY |
4618 | while (*format) |
4619 | { | |
4620 | switch (*format++) | |
4621 | { | |
4622 | case 's': // string | |
4623 | str = va_arg (args_copy, const char *); | |
4624 | break; | |
4625 | case 'd': // int | |
4626 | number = va_arg (args_copy, int); | |
4627 | break; | |
4628 | case 'f': // float | |
4629 | fnumber = va_arg (args_copy, double); | |
4630 | break; | |
4631 | default: | |
4632 | break; | |
4633 | } | |
4634 | } | |
4635 | va_end (args_copy); | |
4636 | va_end (args); | |
4637 | } | |
db137867 | 4638 | |
030272f3 VY |
4639 | int |
4640 | main () | |
4641 | { | |
db137867 | 4642 | |
030272f3 VY |
4643 | // Check bool. |
4644 | _Bool success = false; | |
db137867 | 4645 | |
030272f3 VY |
4646 | // Check restrict. |
4647 | if (test_restrict ("String literal") == 0) | |
4648 | success = true; | |
4649 | char *restrict newvar = "Another string"; | |
db137867 | 4650 | |
030272f3 VY |
4651 | // Check varargs. |
4652 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4653 | test_varargs_macros (); | |
db137867 | 4654 | |
030272f3 VY |
4655 | // Check flexible array members. |
4656 | struct incomplete_array *ia = | |
4657 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4658 | ia->datasize = 10; | |
4659 | for (int i = 0; i < ia->datasize; ++i) | |
4660 | ia->data[i] = i * 1.234; | |
db137867 | 4661 | |
030272f3 VY |
4662 | // Check named initializers. |
4663 | struct named_init ni = { | |
4664 | .number = 34, | |
4665 | .name = L"Test wide string", | |
4666 | .average = 543.34343, | |
4667 | }; | |
db137867 | 4668 | |
030272f3 | 4669 | ni.number = 58; |
db137867 | 4670 | |
030272f3 VY |
4671 | int dynamic_array[ni.number]; |
4672 | dynamic_array[ni.number - 1] = 543; | |
4673 | ||
4674 | // work around unused variable warnings | |
4675 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4676 | || dynamic_array[ni.number - 1] != 543); | |
4677 | ||
4678 | ; | |
4679 | return 0; | |
4680 | } | |
4681 | _ACEOF | |
bf4e01a4 | 4682 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
030272f3 VY |
4683 | do |
4684 | CC="$ac_save_CC $ac_arg" | |
7083c021 | 4685 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4686 | ac_cv_prog_cc_c99=$ac_arg |
db137867 | 4687 | fi |
030272f3 VY |
4688 | rm -f core conftest.err conftest.$ac_objext |
4689 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4690 | done | |
4691 | rm -f conftest.$ac_ext | |
4692 | CC=$ac_save_CC | |
4693 | ||
db137867 | 4694 | fi |
030272f3 VY |
4695 | # AC_CACHE_VAL |
4696 | case "x$ac_cv_prog_cc_c99" in | |
4697 | x) | |
7083c021 | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
030272f3 VY |
4699 | $as_echo "none needed" >&6; } ;; |
4700 | xno) | |
7083c021 | 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
030272f3 VY |
4702 | $as_echo "unsupported" >&6; } ;; |
4703 | *) | |
4704 | CC="$CC $ac_cv_prog_cc_c99" | |
7083c021 | 4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
030272f3 | 4706 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
db137867 | 4707 | esac |
7083c021 | 4708 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
db137867 | 4709 | |
030272f3 VY |
4710 | fi |
4711 | ||
4712 | ||
030272f3 | 4713 | |
7083c021 | 4714 | if test x"$ac_cv_prog_cc_c99" = "xno"; then |
08c2568c | 4715 | as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5 |
030272f3 | 4716 | fi |
db137867 | 4717 | |
db137867 AC |
4718 | |
4719 | ||
7083c021 | 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
030272f3 | 4721 | $as_echo_n "checking for egrep... " >&6; } |
08c2568c | 4722 | if ${ac_cv_path_EGREP+:} false; then : |
030272f3 | 4723 | $as_echo_n "(cached) " >&6 |
db137867 | 4724 | else |
030272f3 VY |
4725 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4726 | then ac_cv_path_EGREP="$GREP -E" | |
4727 | else | |
4728 | if test -z "$EGREP"; then | |
4729 | ac_path_EGREP_found=false | |
4730 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4732 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4733 | do | |
4734 | IFS=$as_save_IFS | |
4735 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4736 | for ac_prog in egrep; do |
030272f3 VY |
4737 | for ac_exec_ext in '' $ac_executable_extensions; do |
4738 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4739 | as_fn_executable_p "$ac_path_EGREP" || continue |
030272f3 VY |
4740 | # Check for GNU ac_path_EGREP and select it if it is found. |
4741 | # Check for GNU $ac_path_EGREP | |
4742 | case `"$ac_path_EGREP" --version 2>&1` in | |
4743 | *GNU*) | |
4744 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4745 | *) | |
4746 | ac_count=0 | |
4747 | $as_echo_n 0123456789 >"conftest.in" | |
4748 | while : | |
4749 | do | |
4750 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4751 | mv "conftest.tmp" "conftest.in" | |
4752 | cp "conftest.in" "conftest.nl" | |
4753 | $as_echo 'EGREP' >> "conftest.nl" | |
4754 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4755 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4756 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
030272f3 VY |
4757 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4758 | # Best one so far, save it but keep looking for a better one | |
4759 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4760 | ac_path_EGREP_max=$ac_count | |
4761 | fi | |
4762 | # 10*(2^10) chars as input seems more than enough | |
4763 | test $ac_count -gt 10 && break | |
4764 | done | |
4765 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4766 | esac | |
db137867 | 4767 | |
030272f3 VY |
4768 | $ac_path_EGREP_found && break 3 |
4769 | done | |
4770 | done | |
7083c021 | 4771 | done |
030272f3 VY |
4772 | IFS=$as_save_IFS |
4773 | if test -z "$ac_cv_path_EGREP"; then | |
08c2568c | 4774 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4775 | fi |
db137867 | 4776 | else |
030272f3 | 4777 | ac_cv_path_EGREP=$EGREP |
db137867 | 4778 | fi |
030272f3 VY |
4779 | |
4780 | fi | |
4781 | fi | |
7083c021 | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
030272f3 VY |
4783 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4784 | EGREP="$ac_cv_path_EGREP" | |
4785 | ||
4786 | ||
7083c021 | 4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
030272f3 | 4788 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
08c2568c | 4789 | if ${ac_cv_path_SED+:} false; then : |
030272f3 VY |
4790 | $as_echo_n "(cached) " >&6 |
4791 | else | |
4792 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4793 | for ac_i in 1 2 3 4 5 6 7; do | |
4794 | ac_script="$ac_script$as_nl$ac_script" | |
4795 | done | |
4796 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
7083c021 | 4797 | { ac_script=; unset ac_script;} |
030272f3 VY |
4798 | if test -z "$SED"; then |
4799 | ac_path_SED_found=false | |
4800 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4802 | for as_dir in $PATH | |
4803 | do | |
4804 | IFS=$as_save_IFS | |
4805 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4806 | for ac_prog in sed gsed; do |
030272f3 VY |
4807 | for ac_exec_ext in '' $ac_executable_extensions; do |
4808 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4809 | as_fn_executable_p "$ac_path_SED" || continue |
030272f3 VY |
4810 | # Check for GNU ac_path_SED and select it if it is found. |
4811 | # Check for GNU $ac_path_SED | |
4812 | case `"$ac_path_SED" --version 2>&1` in | |
4813 | *GNU*) | |
4814 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4815 | *) | |
4816 | ac_count=0 | |
4817 | $as_echo_n 0123456789 >"conftest.in" | |
4818 | while : | |
4819 | do | |
4820 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4821 | mv "conftest.tmp" "conftest.in" | |
4822 | cp "conftest.in" "conftest.nl" | |
4823 | $as_echo '' >> "conftest.nl" | |
4824 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4825 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4826 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
030272f3 VY |
4827 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4828 | # Best one so far, save it but keep looking for a better one | |
4829 | ac_cv_path_SED="$ac_path_SED" | |
4830 | ac_path_SED_max=$ac_count | |
db137867 | 4831 | fi |
030272f3 VY |
4832 | # 10*(2^10) chars as input seems more than enough |
4833 | test $ac_count -gt 10 && break | |
db137867 | 4834 | done |
030272f3 VY |
4835 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4836 | esac | |
4837 | ||
4838 | $ac_path_SED_found && break 3 | |
4839 | done | |
4840 | done | |
7083c021 | 4841 | done |
030272f3 VY |
4842 | IFS=$as_save_IFS |
4843 | if test -z "$ac_cv_path_SED"; then | |
08c2568c | 4844 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
030272f3 | 4845 | fi |
db137867 | 4846 | else |
030272f3 | 4847 | ac_cv_path_SED=$SED |
db137867 | 4848 | fi |
030272f3 | 4849 | |
db137867 | 4850 | fi |
7083c021 | 4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
030272f3 VY |
4852 | $as_echo "$ac_cv_path_SED" >&6; } |
4853 | SED="$ac_cv_path_SED" | |
4854 | rm -f conftest.sed | |
db137867 | 4855 | |
030272f3 VY |
4856 | |
4857 | F77=no | |
4858 | CXX=no | |
4859 | GCJ=no | |
4860 | ||
4861 | # Check whether --enable-static was given. | |
7083c021 | 4862 | if test "${enable_static+set}" = set; then : |
030272f3 VY |
4863 | enableval=$enable_static; p=${PACKAGE-default} |
4864 | case $enableval in | |
4865 | yes) enable_static=yes ;; | |
4866 | no) enable_static=no ;; | |
4867 | *) | |
4868 | enable_static=no | |
4869 | # Look at the argument we got. We use all the common list separators. | |
6f57a957 | 4870 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
030272f3 | 4871 | for pkg in $enableval; do |
6f57a957 | 4872 | IFS=$lt_save_ifs |
030272f3 VY |
4873 | if test "X$pkg" = "X$p"; then |
4874 | enable_static=yes | |
4875 | fi | |
4876 | done | |
6f57a957 | 4877 | IFS=$lt_save_ifs |
030272f3 VY |
4878 | ;; |
4879 | esac | |
db137867 | 4880 | else |
030272f3 | 4881 | enable_static=no |
db137867 | 4882 | fi |
030272f3 VY |
4883 | |
4884 | ||
4885 | ||
7083c021 AC |
4886 | |
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
030272f3 | 4892 | # Check whether --enable-shared was given. |
7083c021 | 4893 | if test "${enable_shared+set}" = set; then : |
030272f3 VY |
4894 | enableval=$enable_shared; p=${PACKAGE-default} |
4895 | case $enableval in | |
4896 | yes) enable_shared=yes ;; | |
4897 | no) enable_shared=no ;; | |
4898 | *) | |
4899 | enable_shared=no | |
4900 | # Look at the argument we got. We use all the common list separators. | |
6f57a957 | 4901 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
030272f3 | 4902 | for pkg in $enableval; do |
6f57a957 | 4903 | IFS=$lt_save_ifs |
030272f3 VY |
4904 | if test "X$pkg" = "X$p"; then |
4905 | enable_shared=yes | |
4906 | fi | |
4907 | done | |
6f57a957 | 4908 | IFS=$lt_save_ifs |
030272f3 VY |
4909 | ;; |
4910 | esac | |
db137867 | 4911 | else |
030272f3 | 4912 | enable_shared=yes |
db137867 | 4913 | fi |
db137867 AC |
4914 | |
4915 | ||
7083c021 AC |
4916 | |
4917 | ||
4918 | ||
4919 | ||
4920 | ||
4921 | ||
4922 | ||
4923 | ||
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
030272f3 VY |
4925 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
4926 | # Check whether --enable-maintainer-mode was given. | |
7083c021 | 4927 | if test "${enable_maintainer_mode+set}" = set; then : |
030272f3 | 4928 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
db137867 | 4929 | else |
030272f3 | 4930 | USE_MAINTAINER_MODE=no |
db137867 | 4931 | fi |
030272f3 | 4932 | |
7083c021 | 4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
030272f3 VY |
4934 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
4935 | if test $USE_MAINTAINER_MODE = yes; then | |
4936 | MAINTAINER_MODE_TRUE= | |
4937 | MAINTAINER_MODE_FALSE='#' | |
4938 | else | |
4939 | MAINTAINER_MODE_TRUE='#' | |
4940 | MAINTAINER_MODE_FALSE= | |
4941 | fi | |
4942 | ||
4943 | MAINT=$MAINTAINER_MODE_TRUE | |
4944 | ||
4945 | ||
4946 | ||
7083c021 | 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
030272f3 | 4948 | $as_echo_n "checking for library containing strerror... " >&6; } |
08c2568c | 4949 | if ${ac_cv_search_strerror+:} false; then : |
030272f3 VY |
4950 | $as_echo_n "(cached) " >&6 |
4951 | else | |
4952 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 4953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4954 | /* end confdefs.h. */ |
4955 | ||
4956 | /* Override any GCC internal prototype to avoid an error. | |
4957 | Use char because int might match the return type of a GCC | |
4958 | builtin and then its argument prototype would still apply. */ | |
4959 | #ifdef __cplusplus | |
4960 | extern "C" | |
4961 | #endif | |
4962 | char strerror (); | |
4963 | int | |
4964 | main () | |
4965 | { | |
4966 | return strerror (); | |
4967 | ; | |
4968 | return 0; | |
4969 | } | |
4970 | _ACEOF | |
4971 | for ac_lib in '' cposix; do | |
4972 | if test -z "$ac_lib"; then | |
4973 | ac_res="none required" | |
4974 | else | |
4975 | ac_res=-l$ac_lib | |
4976 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4977 | fi | |
7083c021 | 4978 | if ac_fn_c_try_link "$LINENO"; then : |
030272f3 | 4979 | ac_cv_search_strerror=$ac_res |
030272f3 | 4980 | fi |
7083c021 AC |
4981 | rm -f core conftest.err conftest.$ac_objext \ |
4982 | conftest$ac_exeext | |
08c2568c | 4983 | if ${ac_cv_search_strerror+:} false; then : |
030272f3 VY |
4984 | break |
4985 | fi | |
4986 | done | |
08c2568c | 4987 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4988 | |
030272f3 VY |
4989 | else |
4990 | ac_cv_search_strerror=no | |
4991 | fi | |
4992 | rm conftest.$ac_ext | |
4993 | LIBS=$ac_func_search_save_LIBS | |
4994 | fi | |
7083c021 | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
030272f3 VY |
4996 | $as_echo "$ac_cv_search_strerror" >&6; } |
4997 | ac_res=$ac_cv_search_strerror | |
7083c021 | 4998 | if test "$ac_res" != no; then : |
030272f3 VY |
4999 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5000 | ||
5001 | fi | |
5002 | ||
7083c021 | 5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
030272f3 | 5004 | $as_echo_n "checking for inline... " >&6; } |
08c2568c | 5005 | if ${ac_cv_c_inline+:} false; then : |
030272f3 VY |
5006 | $as_echo_n "(cached) " >&6 |
5007 | else | |
5008 | ac_cv_c_inline=no | |
5009 | for ac_kw in inline __inline__ __inline; do | |
7083c021 | 5010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
5011 | /* end confdefs.h. */ |
5012 | #ifndef __cplusplus | |
5013 | typedef int foo_t; | |
5014 | static $ac_kw foo_t static_foo () {return 0; } | |
5015 | $ac_kw foo_t foo () {return 0; } | |
5016 | #endif | |
5017 | ||
5018 | _ACEOF | |
7083c021 | 5019 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 5020 | ac_cv_c_inline=$ac_kw |
030272f3 | 5021 | fi |
030272f3 VY |
5022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5023 | test "$ac_cv_c_inline" != no && break | |
5024 | done | |
5025 | ||
5026 | fi | |
7083c021 | 5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
030272f3 VY |
5028 | $as_echo "$ac_cv_c_inline" >&6; } |
5029 | ||
030272f3 VY |
5030 | case $ac_cv_c_inline in |
5031 | inline | yes) ;; | |
5032 | *) | |
5033 | case $ac_cv_c_inline in | |
5034 | no) ac_val=;; | |
5035 | *) ac_val=$ac_cv_c_inline;; | |
5036 | esac | |
5037 | cat >>confdefs.h <<_ACEOF | |
5038 | #ifndef __cplusplus | |
5039 | #define inline $ac_val | |
5040 | #endif | |
5041 | _ACEOF | |
db137867 AC |
5042 | ;; |
5043 | esac | |
5044 | ||
7083c021 | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
030272f3 | 5046 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
08c2568c | 5047 | if ${ac_cv_c_const+:} false; then : |
030272f3 | 5048 | $as_echo_n "(cached) " >&6 |
db137867 | 5049 | else |
7083c021 | 5050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
5051 | /* end confdefs.h. */ |
5052 | ||
5053 | int | |
5054 | main () | |
5055 | { | |
bf4e01a4 | 5056 | |
030272f3 | 5057 | #ifndef __cplusplus |
bf4e01a4 | 5058 | /* Ultrix mips cc rejects this sort of thing. */ |
030272f3 | 5059 | typedef int charset[2]; |
bf4e01a4 | 5060 | const charset cs = { 0, 0 }; |
030272f3 VY |
5061 | /* SunOS 4.1.1 cc rejects this. */ |
5062 | char const *const *pcpcc; | |
5063 | char **ppc; | |
5064 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5065 | struct point {int x, y;}; | |
5066 | static struct point const zero = {0,0}; | |
5067 | /* AIX XL C 1.02.0.0 rejects this. | |
5068 | It does not let you subtract one const X* pointer from another in | |
5069 | an arm of an if-expression whose if-part is not a constant | |
5070 | expression */ | |
5071 | const char *g = "string"; | |
5072 | pcpcc = &g + (g ? g-g : 0); | |
5073 | /* HPUX 7.0 cc rejects these. */ | |
5074 | ++pcpcc; | |
5075 | ppc = (char**) pcpcc; | |
5076 | pcpcc = (char const *const *) ppc; | |
bf4e01a4 AC |
5077 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
5078 | char tx; | |
5079 | char *t = &tx; | |
030272f3 VY |
5080 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
5081 | ||
5082 | *t++ = 0; | |
5083 | if (s) return 0; | |
5084 | } | |
5085 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5086 | int x[] = {25, 17}; | |
5087 | const int *foo = &x[0]; | |
5088 | ++foo; | |
5089 | } | |
5090 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5091 | typedef const int *iptr; | |
5092 | iptr p = 0; | |
5093 | ++p; | |
5094 | } | |
bf4e01a4 | 5095 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
030272f3 | 5096 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
bf4e01a4 AC |
5097 | struct s { int j; const int *ap[3]; } bx; |
5098 | struct s *b = &bx; b->j = 5; | |
030272f3 VY |
5099 | } |
5100 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5101 | const int foo = 10; | |
5102 | if (!foo) return 0; | |
5103 | } | |
5104 | return !cs[0] && !zero.x; | |
5105 | #endif | |
5106 | ||
5107 | ; | |
5108 | return 0; | |
5109 | } | |
5110 | _ACEOF | |
7083c021 | 5111 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 5112 | ac_cv_c_const=yes |
db137867 | 5113 | else |
7083c021 | 5114 | ac_cv_c_const=no |
030272f3 | 5115 | fi |
030272f3 VY |
5116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5117 | fi | |
7083c021 | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
030272f3 VY |
5119 | $as_echo "$ac_cv_c_const" >&6; } |
5120 | if test $ac_cv_c_const = no; then | |
5121 | ||
7083c021 | 5122 | $as_echo "#define const /**/" >>confdefs.h |
030272f3 VY |
5123 | |
5124 | fi | |
5125 | ||
f171dafb EM |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5127 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5128 | if ${ac_cv_c_bigendian+:} false; then : | |
5129 | $as_echo_n "(cached) " >&6 | |
5130 | else | |
5131 | ac_cv_c_bigendian=unknown | |
5132 | # See if we're dealing with a universal compiler. | |
5133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5134 | /* end confdefs.h. */ | |
5135 | #ifndef __APPLE_CC__ | |
5136 | not a universal capable compiler | |
5137 | #endif | |
5138 | typedef int dummy; | |
5139 | ||
5140 | _ACEOF | |
5141 | if ac_fn_c_try_compile "$LINENO"; then : | |
5142 | ||
5143 | # Check for potential -arch flags. It is not universal unless | |
5144 | # there are at least two -arch flags with different values. | |
5145 | ac_arch= | |
5146 | ac_prev= | |
5147 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5148 | if test -n "$ac_prev"; then | |
5149 | case $ac_word in | |
5150 | i?86 | x86_64 | ppc | ppc64) | |
5151 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5152 | ac_arch=$ac_word | |
5153 | else | |
5154 | ac_cv_c_bigendian=universal | |
5155 | break | |
5156 | fi | |
5157 | ;; | |
5158 | esac | |
5159 | ac_prev= | |
5160 | elif test "x$ac_word" = "x-arch"; then | |
5161 | ac_prev=arch | |
5162 | fi | |
5163 | done | |
5164 | fi | |
5165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5166 | if test $ac_cv_c_bigendian = unknown; then | |
5167 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5169 | /* end confdefs.h. */ | |
5170 | #include <sys/types.h> | |
5171 | #include <sys/param.h> | |
5172 | ||
5173 | int | |
5174 | main () | |
5175 | { | |
5176 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5177 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5178 | && LITTLE_ENDIAN) | |
5179 | bogus endian macros | |
5180 | #endif | |
5181 | ||
5182 | ; | |
5183 | return 0; | |
5184 | } | |
5185 | _ACEOF | |
5186 | if ac_fn_c_try_compile "$LINENO"; then : | |
5187 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5189 | /* end confdefs.h. */ | |
5190 | #include <sys/types.h> | |
5191 | #include <sys/param.h> | |
5192 | ||
5193 | int | |
5194 | main () | |
5195 | { | |
5196 | #if BYTE_ORDER != BIG_ENDIAN | |
5197 | not big endian | |
5198 | #endif | |
5199 | ||
5200 | ; | |
5201 | return 0; | |
5202 | } | |
5203 | _ACEOF | |
5204 | if ac_fn_c_try_compile "$LINENO"; then : | |
5205 | ac_cv_c_bigendian=yes | |
5206 | else | |
5207 | ac_cv_c_bigendian=no | |
5208 | fi | |
5209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5210 | fi | |
5211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5212 | fi | |
5213 | if test $ac_cv_c_bigendian = unknown; then | |
5214 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5216 | /* end confdefs.h. */ | |
5217 | #include <limits.h> | |
5218 | ||
5219 | int | |
5220 | main () | |
5221 | { | |
5222 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5223 | bogus endian macros | |
5224 | #endif | |
5225 | ||
5226 | ; | |
5227 | return 0; | |
5228 | } | |
5229 | _ACEOF | |
5230 | if ac_fn_c_try_compile "$LINENO"; then : | |
5231 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5233 | /* end confdefs.h. */ | |
5234 | #include <limits.h> | |
5235 | ||
5236 | int | |
5237 | main () | |
5238 | { | |
5239 | #ifndef _BIG_ENDIAN | |
5240 | not big endian | |
5241 | #endif | |
5242 | ||
5243 | ; | |
5244 | return 0; | |
5245 | } | |
5246 | _ACEOF | |
5247 | if ac_fn_c_try_compile "$LINENO"; then : | |
5248 | ac_cv_c_bigendian=yes | |
5249 | else | |
5250 | ac_cv_c_bigendian=no | |
5251 | fi | |
5252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5253 | fi | |
5254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5255 | fi | |
5256 | if test $ac_cv_c_bigendian = unknown; then | |
5257 | # Compile a test program. | |
5258 | if test "$cross_compiling" = yes; then : | |
5259 | # Try to guess by grepping values from an object file. | |
5260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5261 | /* end confdefs.h. */ | |
5262 | short int ascii_mm[] = | |
5263 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5264 | short int ascii_ii[] = | |
5265 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5266 | int use_ascii (int i) { | |
5267 | return ascii_mm[i] + ascii_ii[i]; | |
5268 | } | |
5269 | short int ebcdic_ii[] = | |
5270 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5271 | short int ebcdic_mm[] = | |
5272 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5273 | int use_ebcdic (int i) { | |
5274 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5275 | } | |
5276 | extern int foo; | |
5277 | ||
5278 | int | |
5279 | main () | |
5280 | { | |
5281 | return use_ascii (foo) == use_ebcdic (foo); | |
5282 | ; | |
5283 | return 0; | |
5284 | } | |
5285 | _ACEOF | |
5286 | if ac_fn_c_try_compile "$LINENO"; then : | |
5287 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5288 | ac_cv_c_bigendian=yes | |
5289 | fi | |
5290 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5291 | if test "$ac_cv_c_bigendian" = unknown; then | |
5292 | ac_cv_c_bigendian=no | |
5293 | else | |
5294 | # finding both strings is unlikely to happen, but who knows? | |
5295 | ac_cv_c_bigendian=unknown | |
5296 | fi | |
5297 | fi | |
5298 | fi | |
5299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5300 | else | |
5301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5302 | /* end confdefs.h. */ | |
5303 | $ac_includes_default | |
5304 | int | |
5305 | main () | |
5306 | { | |
5307 | ||
5308 | /* Are we little or big endian? From Harbison&Steele. */ | |
5309 | union | |
5310 | { | |
5311 | long int l; | |
5312 | char c[sizeof (long int)]; | |
5313 | } u; | |
5314 | u.l = 1; | |
5315 | return u.c[sizeof (long int) - 1] == 1; | |
5316 | ||
5317 | ; | |
5318 | return 0; | |
5319 | } | |
5320 | _ACEOF | |
5321 | if ac_fn_c_try_run "$LINENO"; then : | |
5322 | ac_cv_c_bigendian=no | |
5323 | else | |
5324 | ac_cv_c_bigendian=yes | |
5325 | fi | |
5326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5327 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5328 | fi | |
5329 | ||
5330 | fi | |
5331 | fi | |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5333 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5334 | case $ac_cv_c_bigendian in #( | |
5335 | yes) | |
5336 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5337 | ;; #( | |
5338 | no) | |
5339 | ;; #( | |
5340 | universal) | |
5341 | ||
5342 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5343 | ||
5344 | ;; #( | |
5345 | *) | |
5346 | as_fn_error $? "unknown endianness | |
5347 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5348 | esac | |
5349 | ||
7083c021 | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
030272f3 VY |
5351 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
5352 | set x ${MAKE-make} | |
5353 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
08c2568c | 5354 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
030272f3 VY |
5355 | $as_echo_n "(cached) " >&6 |
5356 | else | |
5357 | cat >conftest.make <<\_ACEOF | |
5358 | SHELL = /bin/sh | |
5359 | all: | |
5360 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5361 | _ACEOF | |
08c2568c | 5362 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
030272f3 VY |
5363 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5364 | *@@@%%%=?*=@@@%%%*) | |
5365 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5366 | *) | |
5367 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5368 | esac | |
5369 | rm -f conftest.make | |
5370 | fi | |
5371 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7083c021 | 5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 VY |
5373 | $as_echo "yes" >&6; } |
5374 | SET_MAKE= | |
5375 | else | |
7083c021 | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5377 | $as_echo "no" >&6; } |
5378 | SET_MAKE="MAKE=${MAKE-make}" | |
5379 | fi | |
5380 | ||
db137867 | 5381 | |
030272f3 VY |
5382 | # Extract the first word of "automake", so it can be a program name with args. |
5383 | set dummy automake; ac_word=$2 | |
7083c021 | 5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5385 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5386 | if ${ac_cv_path_AUTOMAKE+:} false; then : |
030272f3 VY |
5387 | $as_echo_n "(cached) " >&6 |
5388 | else | |
5389 | case $AUTOMAKE in | |
5390 | [\\/]* | ?:[\\/]*) | |
5391 | ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path. | |
db137867 | 5392 | ;; |
030272f3 VY |
5393 | *) |
5394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5395 | for as_dir in $PATH | |
5396 | do | |
5397 | IFS=$as_save_IFS | |
5398 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5399 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5401 | ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5403 | break 2 |
5404 | fi | |
5405 | done | |
7083c021 | 5406 | done |
030272f3 | 5407 | IFS=$as_save_IFS |
db137867 | 5408 | |
db137867 | 5409 | ;; |
030272f3 VY |
5410 | esac |
5411 | fi | |
5412 | AUTOMAKE=$ac_cv_path_AUTOMAKE | |
5413 | if test -n "$AUTOMAKE"; then | |
7083c021 | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5 |
030272f3 VY |
5415 | $as_echo "$AUTOMAKE" >&6; } |
5416 | else | |
7083c021 | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5418 | $as_echo "no" >&6; } |
5419 | fi | |
db137867 | 5420 | |
db137867 | 5421 | |
030272f3 VY |
5422 | # Extract the first word of "aclocal", so it can be a program name with args. |
5423 | set dummy aclocal; ac_word=$2 | |
7083c021 | 5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5425 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5426 | if ${ac_cv_path_ACLOCAL+:} false; then : |
030272f3 VY |
5427 | $as_echo_n "(cached) " >&6 |
5428 | else | |
5429 | case $ACLOCAL in | |
5430 | [\\/]* | ?:[\\/]*) | |
5431 | ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. | |
db137867 | 5432 | ;; |
db137867 | 5433 | *) |
030272f3 VY |
5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5435 | for as_dir in $PATH | |
5436 | do | |
5437 | IFS=$as_save_IFS | |
5438 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5441 | ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5443 | break 2 |
5444 | fi | |
5445 | done | |
7083c021 | 5446 | done |
030272f3 | 5447 | IFS=$as_save_IFS |
db137867 | 5448 | |
db137867 | 5449 | ;; |
030272f3 VY |
5450 | esac |
5451 | fi | |
5452 | ACLOCAL=$ac_cv_path_ACLOCAL | |
5453 | if test -n "$ACLOCAL"; then | |
7083c021 | 5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 |
030272f3 VY |
5455 | $as_echo "$ACLOCAL" >&6; } |
5456 | else | |
7083c021 | 5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5458 | $as_echo "no" >&6; } |
5459 | fi | |
db137867 | 5460 | |
db137867 | 5461 | |
030272f3 VY |
5462 | # Extract the first word of "autoheader", so it can be a program name with args. |
5463 | set dummy autoheader; ac_word=$2 | |
7083c021 | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5465 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5466 | if ${ac_cv_path_AUTOHEADER+:} false; then : |
030272f3 VY |
5467 | $as_echo_n "(cached) " >&6 |
5468 | else | |
5469 | case $AUTOHEADER in | |
5470 | [\\/]* | ?:[\\/]*) | |
5471 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. | |
db137867 | 5472 | ;; |
030272f3 VY |
5473 | *) |
5474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5475 | for as_dir in $PATH | |
5476 | do | |
5477 | IFS=$as_save_IFS | |
5478 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5479 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5481 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 | 5483 | break 2 |
db137867 | 5484 | fi |
030272f3 | 5485 | done |
7083c021 | 5486 | done |
030272f3 VY |
5487 | IFS=$as_save_IFS |
5488 | ||
db137867 | 5489 | ;; |
030272f3 VY |
5490 | esac |
5491 | fi | |
5492 | AUTOHEADER=$ac_cv_path_AUTOHEADER | |
5493 | if test -n "$AUTOHEADER"; then | |
7083c021 | 5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 |
030272f3 VY |
5495 | $as_echo "$AUTOHEADER" >&6; } |
5496 | else | |
7083c021 | 5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5498 | $as_echo "no" >&6; } |
5499 | fi | |
db137867 | 5500 | |
030272f3 VY |
5501 | |
5502 | # Extract the first word of "as", so it can be a program name with args. | |
5503 | set dummy as; ac_word=$2 | |
7083c021 | 5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5505 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5506 | if ${ac_cv_path_AS+:} false; then : |
030272f3 VY |
5507 | $as_echo_n "(cached) " >&6 |
5508 | else | |
5509 | case $AS in | |
5510 | [\\/]* | ?:[\\/]*) | |
5511 | ac_cv_path_AS="$AS" # Let the user override the test with a path. | |
db137867 | 5512 | ;; |
030272f3 VY |
5513 | *) |
5514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5515 | for as_dir in $PATH | |
5516 | do | |
5517 | IFS=$as_save_IFS | |
5518 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5519 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5521 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5523 | break 2 |
5524 | fi | |
5525 | done | |
7083c021 | 5526 | done |
030272f3 | 5527 | IFS=$as_save_IFS |
db137867 | 5528 | |
db137867 | 5529 | ;; |
030272f3 VY |
5530 | esac |
5531 | fi | |
5532 | AS=$ac_cv_path_AS | |
5533 | if test -n "$AS"; then | |
7083c021 | 5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
030272f3 VY |
5535 | $as_echo "$AS" >&6; } |
5536 | else | |
7083c021 | 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5538 | $as_echo "no" >&6; } |
5539 | fi | |
db137867 | 5540 | |
db137867 | 5541 | |
030272f3 VY |
5542 | # Extract the first word of "rm", so it can be a program name with args. |
5543 | set dummy rm; ac_word=$2 | |
7083c021 | 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5545 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5546 | if ${ac_cv_path_RM+:} false; then : |
030272f3 VY |
5547 | $as_echo_n "(cached) " >&6 |
5548 | else | |
5549 | case $RM in | |
5550 | [\\/]* | ?:[\\/]*) | |
5551 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
db137867 | 5552 | ;; |
030272f3 VY |
5553 | *) |
5554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5555 | for as_dir in $PATH | |
5556 | do | |
5557 | IFS=$as_save_IFS | |
5558 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5559 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5561 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5563 | break 2 |
5564 | fi | |
5565 | done | |
7083c021 | 5566 | done |
030272f3 | 5567 | IFS=$as_save_IFS |
db137867 | 5568 | |
db137867 | 5569 | ;; |
030272f3 VY |
5570 | esac |
5571 | fi | |
5572 | RM=$ac_cv_path_RM | |
5573 | if test -n "$RM"; then | |
7083c021 | 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
030272f3 VY |
5575 | $as_echo "$RM" >&6; } |
5576 | else | |
7083c021 | 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5578 | $as_echo "no" >&6; } |
5579 | fi | |
db137867 | 5580 | |
db137867 | 5581 | |
030272f3 VY |
5582 | # Extract the first word of "cp", so it can be a program name with args. |
5583 | set dummy cp; ac_word=$2 | |
7083c021 | 5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5585 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5586 | if ${ac_cv_path_CP+:} false; then : |
030272f3 VY |
5587 | $as_echo_n "(cached) " >&6 |
5588 | else | |
5589 | case $CP in | |
5590 | [\\/]* | ?:[\\/]*) | |
5591 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
db137867 | 5592 | ;; |
030272f3 VY |
5593 | *) |
5594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5595 | for as_dir in $PATH | |
5596 | do | |
5597 | IFS=$as_save_IFS | |
5598 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5599 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5601 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5603 | break 2 |
5604 | fi | |
5605 | done | |
7083c021 | 5606 | done |
030272f3 | 5607 | IFS=$as_save_IFS |
db137867 | 5608 | |
db137867 AC |
5609 | ;; |
5610 | esac | |
db137867 | 5611 | fi |
030272f3 VY |
5612 | CP=$ac_cv_path_CP |
5613 | if test -n "$CP"; then | |
7083c021 | 5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
030272f3 VY |
5615 | $as_echo "$CP" >&6; } |
5616 | else | |
7083c021 | 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5618 | $as_echo "no" >&6; } |
db137867 AC |
5619 | fi |
5620 | ||
db137867 | 5621 | |
030272f3 VY |
5622 | # Extract the first word of "mv", so it can be a program name with args. |
5623 | set dummy mv; ac_word=$2 | |
7083c021 | 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5625 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5626 | if ${ac_cv_path_MV+:} false; then : |
030272f3 VY |
5627 | $as_echo_n "(cached) " >&6 |
5628 | else | |
5629 | case $MV in | |
5630 | [\\/]* | ?:[\\/]*) | |
5631 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
db137867 | 5632 | ;; |
030272f3 VY |
5633 | *) |
5634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5635 | for as_dir in $PATH | |
5636 | do | |
5637 | IFS=$as_save_IFS | |
5638 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5639 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5640 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5641 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 | 5643 | break 2 |
db137867 | 5644 | fi |
030272f3 | 5645 | done |
7083c021 | 5646 | done |
030272f3 | 5647 | IFS=$as_save_IFS |
db137867 | 5648 | |
db137867 | 5649 | ;; |
030272f3 VY |
5650 | esac |
5651 | fi | |
5652 | MV=$ac_cv_path_MV | |
5653 | if test -n "$MV"; then | |
7083c021 | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
030272f3 VY |
5655 | $as_echo "$MV" >&6; } |
5656 | else | |
7083c021 | 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5658 | $as_echo "no" >&6; } |
5659 | fi | |
5660 | ||
5661 | ||
5662 | # Extract the first word of "ln", so it can be a program name with args. | |
5663 | set dummy ln; ac_word=$2 | |
7083c021 | 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5665 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5666 | if ${ac_cv_path_LN+:} false; then : |
030272f3 VY |
5667 | $as_echo_n "(cached) " >&6 |
5668 | else | |
5669 | case $LN in | |
5670 | [\\/]* | ?:[\\/]*) | |
5671 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
5672 | ;; | |
5673 | *) | |
5674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5675 | for as_dir in $PATH | |
5676 | do | |
5677 | IFS=$as_save_IFS | |
5678 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5679 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5681 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5683 | break 2 |
5684 | fi | |
5685 | done | |
7083c021 | 5686 | done |
030272f3 | 5687 | IFS=$as_save_IFS |
db137867 | 5688 | |
030272f3 VY |
5689 | ;; |
5690 | esac | |
5691 | fi | |
5692 | LN=$ac_cv_path_LN | |
5693 | if test -n "$LN"; then | |
7083c021 | 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
030272f3 | 5695 | $as_echo "$LN" >&6; } |
db137867 | 5696 | else |
7083c021 | 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5698 | $as_echo "no" >&6; } |
5699 | fi | |
db137867 | 5700 | |
db137867 | 5701 | |
030272f3 VY |
5702 | # Extract the first word of "touch", so it can be a program name with args. |
5703 | set dummy touch; ac_word=$2 | |
7083c021 | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5705 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5706 | if ${ac_cv_path_TOUCH+:} false; then : |
030272f3 VY |
5707 | $as_echo_n "(cached) " >&6 |
5708 | else | |
5709 | case $TOUCH in | |
5710 | [\\/]* | ?:[\\/]*) | |
5711 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5712 | ;; | |
5713 | *) | |
5714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5715 | for as_dir in $PATH | |
5716 | do | |
5717 | IFS=$as_save_IFS | |
5718 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5719 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5721 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5723 | break 2 |
5724 | fi | |
5725 | done | |
7083c021 | 5726 | done |
030272f3 | 5727 | IFS=$as_save_IFS |
db137867 | 5728 | |
030272f3 | 5729 | ;; |
db137867 | 5730 | esac |
030272f3 VY |
5731 | fi |
5732 | TOUCH=$ac_cv_path_TOUCH | |
5733 | if test -n "$TOUCH"; then | |
7083c021 | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 |
030272f3 | 5735 | $as_echo "$TOUCH" >&6; } |
db137867 | 5736 | else |
7083c021 | 5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5738 | $as_echo "no" >&6; } |
db137867 AC |
5739 | fi |
5740 | ||
030272f3 VY |
5741 | |
5742 | ac_ext=c | |
db137867 AC |
5743 | ac_cpp='$CPP $CPPFLAGS' |
5744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5747 | ||
030272f3 | 5748 | |
7083c021 AC |
5749 | case `pwd` in |
5750 | *\ * | *\ *) | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5752 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5753 | esac | |
5754 | ||
5755 | ||
5756 | ||
6f57a957 AC |
5757 | macro_version='2.4.6' |
5758 | macro_revision='2.4.6' | |
7083c021 AC |
5759 | |
5760 | ||
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
030272f3 VY |
5768 | |
5769 | ||
7083c021 AC |
5770 | |
5771 | ||
6f57a957 | 5772 | ltmain=$ac_aux_dir/ltmain.sh |
7083c021 | 5773 | |
030272f3 VY |
5774 | # Make sure we can run config.sub. |
5775 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
08c2568c | 5776 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
030272f3 | 5777 | |
7083c021 | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
030272f3 | 5779 | $as_echo_n "checking build system type... " >&6; } |
08c2568c | 5780 | if ${ac_cv_build+:} false; then : |
030272f3 VY |
5781 | $as_echo_n "(cached) " >&6 |
5782 | else | |
5783 | ac_build_alias=$build_alias | |
5784 | test "x$ac_build_alias" = x && | |
5785 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5786 | test "x$ac_build_alias" = x && | |
08c2568c | 5787 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
030272f3 | 5788 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
08c2568c | 5789 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
030272f3 VY |
5790 | |
5791 | fi | |
7083c021 | 5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
030272f3 VY |
5793 | $as_echo "$ac_cv_build" >&6; } |
5794 | case $ac_cv_build in | |
5795 | *-*-*) ;; | |
08c2568c | 5796 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
030272f3 VY |
5797 | esac |
5798 | build=$ac_cv_build | |
5799 | ac_save_IFS=$IFS; IFS='-' | |
5800 | set x $ac_cv_build | |
5801 | shift | |
5802 | build_cpu=$1 | |
5803 | build_vendor=$2 | |
5804 | shift; shift | |
5805 | # Remember, the first character of IFS is used to create $*, | |
5806 | # except with old shells: | |
5807 | build_os=$* | |
5808 | IFS=$ac_save_IFS | |
5809 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5810 | ||
5811 | ||
7083c021 | 5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
030272f3 | 5813 | $as_echo_n "checking host system type... " >&6; } |
08c2568c | 5814 | if ${ac_cv_host+:} false; then : |
030272f3 VY |
5815 | $as_echo_n "(cached) " >&6 |
5816 | else | |
5817 | if test "x$host_alias" = x; then | |
5818 | ac_cv_host=$ac_cv_build | |
5819 | else | |
5820 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
08c2568c | 5821 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
030272f3 VY |
5822 | fi |
5823 | ||
5824 | fi | |
7083c021 | 5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
030272f3 VY |
5826 | $as_echo "$ac_cv_host" >&6; } |
5827 | case $ac_cv_host in | |
5828 | *-*-*) ;; | |
08c2568c | 5829 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
030272f3 VY |
5830 | esac |
5831 | host=$ac_cv_host | |
5832 | ac_save_IFS=$IFS; IFS='-' | |
5833 | set x $ac_cv_host | |
5834 | shift | |
5835 | host_cpu=$1 | |
5836 | host_vendor=$2 | |
5837 | shift; shift | |
5838 | # Remember, the first character of IFS is used to create $*, | |
5839 | # except with old shells: | |
5840 | host_os=$* | |
5841 | IFS=$ac_save_IFS | |
5842 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5843 | ||
5844 | ||
b6d0720c AC |
5845 | # Backslashify metacharacters that are still active within |
5846 | # double-quoted strings. | |
5847 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5848 | ||
5849 | # Same as above, but do not quote variable references. | |
5850 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5851 | ||
5852 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5853 | # double_quote_subst'ed string. | |
5854 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5855 | ||
5856 | # Sed substitution to delay expansion of an escaped single quote. | |
5857 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5858 | ||
5859 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5860 | no_glob_subst='s/\*/\\\*/g' | |
5861 | ||
5862 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5863 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5864 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5865 | ||
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5867 | $as_echo_n "checking how to print strings... " >&6; } | |
5868 | # Test print first, because it will be a builtin if present. | |
5869 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5870 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5871 | ECHO='print -r --' | |
5872 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5873 | ECHO='printf %s\n' | |
5874 | else | |
5875 | # Use this function as a fallback that always works. | |
5876 | func_fallback_echo () | |
5877 | { | |
5878 | eval 'cat <<_LTECHO_EOF | |
5879 | $1 | |
5880 | _LTECHO_EOF' | |
5881 | } | |
5882 | ECHO='func_fallback_echo' | |
5883 | fi | |
5884 | ||
5885 | # func_echo_all arg... | |
5886 | # Invoke $ECHO with all args, space-separated. | |
5887 | func_echo_all () | |
5888 | { | |
5889 | $ECHO "" | |
5890 | } | |
5891 | ||
6f57a957 | 5892 | case $ECHO in |
b6d0720c AC |
5893 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
5894 | $as_echo "printf" >&6; } ;; | |
5895 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5896 | $as_echo "print -r" >&6; } ;; | |
5897 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5898 | $as_echo "cat" >&6; } ;; | |
5899 | esac | |
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
7083c021 | 5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
030272f3 | 5915 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
08c2568c | 5916 | if ${ac_cv_path_SED+:} false; then : |
030272f3 VY |
5917 | $as_echo_n "(cached) " >&6 |
5918 | else | |
7083c021 AC |
5919 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5920 | for ac_i in 1 2 3 4 5 6 7; do | |
5921 | ac_script="$ac_script$as_nl$ac_script" | |
5922 | done | |
5923 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5924 | { ac_script=; unset ac_script;} | |
5925 | if test -z "$SED"; then | |
5926 | ac_path_SED_found=false | |
5927 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
030272f3 VY |
5929 | for as_dir in $PATH |
5930 | do | |
5931 | IFS=$as_save_IFS | |
5932 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5933 | for ac_prog in sed gsed; do |
030272f3 | 5934 | for ac_exec_ext in '' $ac_executable_extensions; do |
7083c021 | 5935 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
bf4e01a4 | 5936 | as_fn_executable_p "$ac_path_SED" || continue |
7083c021 AC |
5937 | # Check for GNU ac_path_SED and select it if it is found. |
5938 | # Check for GNU $ac_path_SED | |
5939 | case `"$ac_path_SED" --version 2>&1` in | |
5940 | *GNU*) | |
5941 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5942 | *) | |
5943 | ac_count=0 | |
5944 | $as_echo_n 0123456789 >"conftest.in" | |
5945 | while : | |
5946 | do | |
5947 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5948 | mv "conftest.tmp" "conftest.in" | |
5949 | cp "conftest.in" "conftest.nl" | |
5950 | $as_echo '' >> "conftest.nl" | |
5951 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5952 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5953 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5954 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5955 | # Best one so far, save it but keep looking for a better one | |
5956 | ac_cv_path_SED="$ac_path_SED" | |
5957 | ac_path_SED_max=$ac_count | |
5958 | fi | |
5959 | # 10*(2^10) chars as input seems more than enough | |
5960 | test $ac_count -gt 10 && break | |
5961 | done | |
5962 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5963 | esac | |
5964 | ||
5965 | $ac_path_SED_found && break 3 | |
030272f3 VY |
5966 | done |
5967 | done | |
7083c021 | 5968 | done |
030272f3 | 5969 | IFS=$as_save_IFS |
7083c021 | 5970 | if test -z "$ac_cv_path_SED"; then |
08c2568c | 5971 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
db137867 | 5972 | fi |
7083c021 AC |
5973 | else |
5974 | ac_cv_path_SED=$SED | |
5975 | fi | |
db137867 | 5976 | |
030272f3 | 5977 | fi |
7083c021 AC |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5979 | $as_echo "$ac_cv_path_SED" >&6; } | |
5980 | SED="$ac_cv_path_SED" | |
5981 | rm -f conftest.sed | |
db137867 | 5982 | |
7083c021 AC |
5983 | test -z "$SED" && SED=sed |
5984 | Xsed="$SED -e 1s/^X//" | |
db137867 | 5985 | |
db137867 AC |
5986 | |
5987 | ||
db137867 | 5988 | |
7083c021 AC |
5989 | |
5990 | ||
5991 | ||
5992 | ||
5993 | ||
5994 | ||
5995 | ||
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5997 | $as_echo_n "checking for fgrep... " >&6; } | |
08c2568c | 5998 | if ${ac_cv_path_FGREP+:} false; then : |
7083c021 AC |
5999 | $as_echo_n "(cached) " >&6 |
6000 | else | |
6001 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
6002 | then ac_cv_path_FGREP="$GREP -F" | |
6003 | else | |
6004 | if test -z "$FGREP"; then | |
6005 | ac_path_FGREP_found=false | |
6006 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6008 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6009 | do | |
6010 | IFS=$as_save_IFS | |
6011 | test -z "$as_dir" && as_dir=. | |
6012 | for ac_prog in fgrep; do | |
6013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6014 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 6015 | as_fn_executable_p "$ac_path_FGREP" || continue |
7083c021 AC |
6016 | # Check for GNU ac_path_FGREP and select it if it is found. |
6017 | # Check for GNU $ac_path_FGREP | |
6018 | case `"$ac_path_FGREP" --version 2>&1` in | |
6019 | *GNU*) | |
6020 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6021 | *) | |
6022 | ac_count=0 | |
6023 | $as_echo_n 0123456789 >"conftest.in" | |
6024 | while : | |
6025 | do | |
6026 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6027 | mv "conftest.tmp" "conftest.in" | |
6028 | cp "conftest.in" "conftest.nl" | |
6029 | $as_echo 'FGREP' >> "conftest.nl" | |
6030 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6031 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6032 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6033 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6034 | # Best one so far, save it but keep looking for a better one | |
6035 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6036 | ac_path_FGREP_max=$ac_count | |
6037 | fi | |
6038 | # 10*(2^10) chars as input seems more than enough | |
6039 | test $ac_count -gt 10 && break | |
6040 | done | |
6041 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6042 | esac | |
6043 | ||
6044 | $ac_path_FGREP_found && break 3 | |
6045 | done | |
6046 | done | |
6047 | done | |
6048 | IFS=$as_save_IFS | |
6049 | if test -z "$ac_cv_path_FGREP"; then | |
08c2568c | 6050 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 AC |
6051 | fi |
6052 | else | |
6053 | ac_cv_path_FGREP=$FGREP | |
6054 | fi | |
6055 | ||
6056 | fi | |
6057 | fi | |
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
6059 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6060 | FGREP="$ac_cv_path_FGREP" | |
6061 | ||
6062 | ||
6063 | test -z "$GREP" && GREP=grep | |
6064 | ||
6065 | ||
6066 | ||
6067 | ||
6068 | ||
6069 | ||
6070 | ||
6071 | ||
6072 | ||
6073 | ||
6074 | ||
6075 | ||
6076 | ||
6077 | ||
6078 | ||
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | # Check whether --with-gnu-ld was given. | |
6084 | if test "${with_gnu_ld+set}" = set; then : | |
6f57a957 | 6085 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
7083c021 AC |
6086 | else |
6087 | with_gnu_ld=no | |
6088 | fi | |
6089 | ||
6090 | ac_prog=ld | |
6f57a957 | 6091 | if test yes = "$GCC"; then |
7083c021 AC |
6092 | # Check if gcc -print-prog-name=ld gives a path. |
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6094 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6095 | case $host in | |
6096 | *-*-mingw*) | |
6f57a957 | 6097 | # gcc leaves a trailing carriage return, which upsets mingw |
7083c021 AC |
6098 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
6099 | *) | |
6100 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6101 | esac | |
6102 | case $ac_prog in | |
6103 | # Accept absolute paths. | |
6104 | [\\/]* | ?:[\\/]*) | |
6105 | re_direlt='/[^/][^/]*/\.\./' | |
6106 | # Canonicalize the pathname of ld | |
6107 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6108 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6109 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6110 | done | |
6f57a957 | 6111 | test -z "$LD" && LD=$ac_prog |
7083c021 AC |
6112 | ;; |
6113 | "") | |
6114 | # If it fails, then pretend we aren't using GCC. | |
6115 | ac_prog=ld | |
6116 | ;; | |
6117 | *) | |
6118 | # If it is relative, then search for the first ld in PATH. | |
6119 | with_gnu_ld=unknown | |
6120 | ;; | |
6121 | esac | |
6f57a957 | 6122 | elif test yes = "$with_gnu_ld"; then |
7083c021 AC |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6124 | $as_echo_n "checking for GNU ld... " >&6; } | |
6125 | else | |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
030272f3 | 6127 | $as_echo_n "checking for non-GNU ld... " >&6; } |
db137867 | 6128 | fi |
08c2568c | 6129 | if ${lt_cv_path_LD+:} false; then : |
030272f3 VY |
6130 | $as_echo_n "(cached) " >&6 |
6131 | else | |
6132 | if test -z "$LD"; then | |
6f57a957 | 6133 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
030272f3 | 6134 | for ac_dir in $PATH; do |
6f57a957 | 6135 | IFS=$lt_save_ifs |
030272f3 VY |
6136 | test -z "$ac_dir" && ac_dir=. |
6137 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6f57a957 | 6138 | lt_cv_path_LD=$ac_dir/$ac_prog |
030272f3 VY |
6139 | # Check to see if the program is GNU ld. I'd rather use --version, |
6140 | # but apparently some variants of GNU ld only accept -v. | |
6141 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6142 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6143 | *GNU* | *'with BFD'*) | |
6f57a957 | 6144 | test no != "$with_gnu_ld" && break |
030272f3 VY |
6145 | ;; |
6146 | *) | |
6f57a957 | 6147 | test yes != "$with_gnu_ld" && break |
030272f3 VY |
6148 | ;; |
6149 | esac | |
6150 | fi | |
6151 | done | |
6f57a957 | 6152 | IFS=$lt_save_ifs |
030272f3 | 6153 | else |
6f57a957 | 6154 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
db137867 | 6155 | fi |
db137867 | 6156 | fi |
030272f3 | 6157 | |
6f57a957 | 6158 | LD=$lt_cv_path_LD |
030272f3 | 6159 | if test -n "$LD"; then |
7083c021 | 6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
030272f3 | 6161 | $as_echo "$LD" >&6; } |
db137867 | 6162 | else |
7083c021 | 6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6164 | $as_echo "no" >&6; } |
db137867 | 6165 | fi |
08c2568c | 6166 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
7083c021 | 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
030272f3 | 6168 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
08c2568c | 6169 | if ${lt_cv_prog_gnu_ld+:} false; then : |
030272f3 | 6170 | $as_echo_n "(cached) " >&6 |
db137867 | 6171 | else |
030272f3 VY |
6172 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6173 | case `$LD -v 2>&1 </dev/null` in | |
6174 | *GNU* | *'with BFD'*) | |
6175 | lt_cv_prog_gnu_ld=yes | |
6176 | ;; | |
6177 | *) | |
6178 | lt_cv_prog_gnu_ld=no | |
6179 | ;; | |
6180 | esac | |
db137867 | 6181 | fi |
7083c021 | 6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
030272f3 VY |
6183 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
6184 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
db137867 | 6185 | |
db137867 | 6186 | |
db137867 | 6187 | |
7083c021 AC |
6188 | |
6189 | ||
6190 | ||
6191 | ||
6192 | ||
6193 | ||
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6195 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
08c2568c | 6196 | if ${lt_cv_path_NM+:} false; then : |
030272f3 VY |
6197 | $as_echo_n "(cached) " >&6 |
6198 | else | |
6199 | if test -n "$NM"; then | |
6200 | # Let the user override the test. | |
6f57a957 | 6201 | lt_cv_path_NM=$NM |
030272f3 | 6202 | else |
6f57a957 | 6203 | lt_nm_to_check=${ac_tool_prefix}nm |
030272f3 VY |
6204 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
6205 | lt_nm_to_check="$lt_nm_to_check nm" | |
6206 | fi | |
6207 | for lt_tmp_nm in $lt_nm_to_check; do | |
6f57a957 | 6208 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
030272f3 | 6209 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
6f57a957 | 6210 | IFS=$lt_save_ifs |
030272f3 | 6211 | test -z "$ac_dir" && ac_dir=. |
6f57a957 AC |
6212 | tmp_nm=$ac_dir/$lt_tmp_nm |
6213 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
030272f3 | 6214 | # Check to see if the nm accepts a BSD-compat flag. |
6f57a957 | 6215 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
030272f3 VY |
6216 | # nm: unknown option "B" ignored |
6217 | # Tru64's nm complains that /dev/null is an invalid object file | |
6f57a957 AC |
6218 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
6219 | case $build_os in | |
6220 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
6221 | *) lt_bad_file=/dev/null ;; | |
6222 | esac | |
6223 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
6224 | *$lt_bad_file* | *'Invalid file or object type'*) | |
030272f3 | 6225 | lt_cv_path_NM="$tmp_nm -B" |
6f57a957 | 6226 | break 2 |
030272f3 VY |
6227 | ;; |
6228 | *) | |
6229 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6230 | */dev/null*) | |
6231 | lt_cv_path_NM="$tmp_nm -p" | |
6f57a957 | 6232 | break 2 |
030272f3 VY |
6233 | ;; |
6234 | *) | |
6235 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6236 | continue # so that we can try to find one that supports BSD flags | |
6237 | ;; | |
6238 | esac | |
6239 | ;; | |
6240 | esac | |
6241 | fi | |
6242 | done | |
6f57a957 | 6243 | IFS=$lt_save_ifs |
030272f3 | 6244 | done |
7083c021 | 6245 | : ${lt_cv_path_NM=no} |
db137867 | 6246 | fi |
030272f3 | 6247 | fi |
7083c021 | 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
030272f3 | 6249 | $as_echo "$lt_cv_path_NM" >&6; } |
6f57a957 AC |
6250 | if test no != "$lt_cv_path_NM"; then |
6251 | NM=$lt_cv_path_NM | |
7083c021 AC |
6252 | else |
6253 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b6d0720c AC |
6254 | if test -n "$DUMPBIN"; then : |
6255 | # Let the user override the test. | |
6256 | else | |
6257 | if test -n "$ac_tool_prefix"; then | |
6258 | for ac_prog in dumpbin "link -dump" | |
7083c021 AC |
6259 | do |
6260 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6261 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6263 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 6264 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
7083c021 AC |
6265 | $as_echo_n "(cached) " >&6 |
6266 | else | |
6267 | if test -n "$DUMPBIN"; then | |
6268 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6269 | else | |
6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6271 | for as_dir in $PATH | |
6272 | do | |
6273 | IFS=$as_save_IFS | |
6274 | test -z "$as_dir" && as_dir=. | |
6275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 6276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6277 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
6278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6279 | break 2 | |
6280 | fi | |
6281 | done | |
6282 | done | |
6283 | IFS=$as_save_IFS | |
db137867 | 6284 | |
7083c021 AC |
6285 | fi |
6286 | fi | |
6287 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6288 | if test -n "$DUMPBIN"; then | |
6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6290 | $as_echo "$DUMPBIN" >&6; } | |
db137867 | 6291 | else |
7083c021 AC |
6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6293 | $as_echo "no" >&6; } | |
db137867 AC |
6294 | fi |
6295 | ||
7083c021 AC |
6296 | |
6297 | test -n "$DUMPBIN" && break | |
6298 | done | |
6299 | fi | |
6300 | if test -z "$DUMPBIN"; then | |
6301 | ac_ct_DUMPBIN=$DUMPBIN | |
b6d0720c | 6302 | for ac_prog in dumpbin "link -dump" |
7083c021 AC |
6303 | do |
6304 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6305 | set dummy $ac_prog; ac_word=$2 | |
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6307 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 6308 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
030272f3 VY |
6309 | $as_echo_n "(cached) " >&6 |
6310 | else | |
7083c021 AC |
6311 | if test -n "$ac_ct_DUMPBIN"; then |
6312 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6313 | else | |
6314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6315 | for as_dir in $PATH | |
6316 | do | |
6317 | IFS=$as_save_IFS | |
6318 | test -z "$as_dir" && as_dir=. | |
6319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 6320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6321 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
6322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6323 | break 2 | |
6324 | fi | |
6325 | done | |
6326 | done | |
6327 | IFS=$as_save_IFS | |
db137867 | 6328 | |
7083c021 AC |
6329 | fi |
6330 | fi | |
6331 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6332 | if test -n "$ac_ct_DUMPBIN"; then | |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6334 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6335 | else | |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6337 | $as_echo "no" >&6; } | |
6338 | fi | |
db137867 | 6339 | |
db137867 | 6340 | |
7083c021 AC |
6341 | test -n "$ac_ct_DUMPBIN" && break |
6342 | done | |
db137867 | 6343 | |
7083c021 AC |
6344 | if test "x$ac_ct_DUMPBIN" = x; then |
6345 | DUMPBIN=":" | |
030272f3 | 6346 | else |
7083c021 AC |
6347 | case $cross_compiling:$ac_tool_warned in |
6348 | yes:) | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6350 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6351 | ac_tool_warned=yes ;; | |
6352 | esac | |
6353 | DUMPBIN=$ac_ct_DUMPBIN | |
030272f3 | 6354 | fi |
7083c021 | 6355 | fi |
db137867 | 6356 | |
6f57a957 | 6357 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b6d0720c | 6358 | *COFF*) |
6f57a957 | 6359 | DUMPBIN="$DUMPBIN -symbols -headers" |
b6d0720c AC |
6360 | ;; |
6361 | *) | |
6362 | DUMPBIN=: | |
6363 | ;; | |
6364 | esac | |
6365 | fi | |
db137867 | 6366 | |
6f57a957 AC |
6367 | if test : != "$DUMPBIN"; then |
6368 | NM=$DUMPBIN | |
030272f3 | 6369 | fi |
7083c021 AC |
6370 | fi |
6371 | test -z "$NM" && NM=nm | |
db137867 | 6372 | |
db137867 | 6373 | |
db137867 | 6374 | |
db137867 | 6375 | |
030272f3 | 6376 | |
030272f3 | 6377 | |
7083c021 AC |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6379 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
08c2568c | 6380 | if ${lt_cv_nm_interface+:} false; then : |
7083c021 AC |
6381 | $as_echo_n "(cached) " >&6 |
6382 | else | |
6383 | lt_cv_nm_interface="BSD nm" | |
6384 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b6d0720c | 6385 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7083c021 AC |
6386 | (eval "$ac_compile" 2>conftest.err) |
6387 | cat conftest.err >&5 | |
b6d0720c | 6388 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7083c021 AC |
6389 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6390 | cat conftest.err >&5 | |
b6d0720c | 6391 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7083c021 AC |
6392 | cat conftest.out >&5 |
6393 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6394 | lt_cv_nm_interface="MS dumpbin" | |
030272f3 | 6395 | fi |
7083c021 AC |
6396 | rm -f conftest* |
6397 | fi | |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6399 | $as_echo "$lt_cv_nm_interface" >&6; } | |
db137867 | 6400 | |
7083c021 AC |
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6402 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6403 | LN_S=$as_ln_s | |
6404 | if test "$LN_S" = "ln -s"; then | |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6406 | $as_echo "yes" >&6; } | |
6407 | else | |
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6409 | $as_echo "no, using $LN_S" >&6; } | |
6410 | fi | |
db137867 | 6411 | |
7083c021 AC |
6412 | # find the maximum length of command line arguments |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6414 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
08c2568c | 6415 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
7083c021 AC |
6416 | $as_echo_n "(cached) " >&6 |
6417 | else | |
6418 | i=0 | |
6f57a957 | 6419 | teststring=ABCD |
db137867 | 6420 | |
7083c021 AC |
6421 | case $build_os in |
6422 | msdosdjgpp*) | |
6423 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6424 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6425 | # during glob expansion). Even if it were fixed, the result of this | |
6426 | # check would be larger than it should be. | |
6427 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6428 | ;; | |
db137867 | 6429 | |
7083c021 AC |
6430 | gnu*) |
6431 | # Under GNU Hurd, this test is not required because there is | |
6432 | # no limit to the length of command line arguments. | |
6433 | # Libtool will interpret -1 as no limit whatsoever | |
6434 | lt_cv_sys_max_cmd_len=-1; | |
6435 | ;; | |
db137867 | 6436 | |
7083c021 AC |
6437 | cygwin* | mingw* | cegcc*) |
6438 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6439 | # about 5 minutes as the teststring grows exponentially. | |
6440 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6441 | # you end up with a "frozen" computer, even though with patience | |
6442 | # the test eventually succeeds (with a max line length of 256k). | |
6443 | # Instead, let's just punt: use the minimum linelength reported by | |
6444 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6445 | lt_cv_sys_max_cmd_len=8192; | |
6446 | ;; | |
db137867 | 6447 | |
b6d0720c AC |
6448 | mint*) |
6449 | # On MiNT this can take a long time and run out of memory. | |
6450 | lt_cv_sys_max_cmd_len=8192; | |
6451 | ;; | |
6452 | ||
7083c021 AC |
6453 | amigaos*) |
6454 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6455 | # So we just punt and use a minimum line length of 8192. | |
6456 | lt_cv_sys_max_cmd_len=8192; | |
6457 | ;; | |
db137867 | 6458 | |
6f57a957 | 6459 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
7083c021 AC |
6460 | # This has been around since 386BSD, at least. Likely further. |
6461 | if test -x /sbin/sysctl; then | |
6462 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6463 | elif test -x /usr/sbin/sysctl; then | |
6464 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6465 | else | |
6466 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6467 | fi | |
6468 | # And add a safety zone | |
6469 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6470 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
030272f3 | 6471 | ;; |
7083c021 AC |
6472 | |
6473 | interix*) | |
6474 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6475 | lt_cv_sys_max_cmd_len=196608 | |
030272f3 | 6476 | ;; |
7083c021 | 6477 | |
a949ab1a AC |
6478 | os2*) |
6479 | # The test takes a long time on OS/2. | |
6480 | lt_cv_sys_max_cmd_len=8192 | |
6481 | ;; | |
6482 | ||
7083c021 AC |
6483 | osf*) |
6484 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6485 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6486 | # nice to cause kernel panics so lets avoid the loop below. | |
6487 | # First set a reasonable default. | |
6488 | lt_cv_sys_max_cmd_len=16384 | |
6489 | # | |
6490 | if test -x /sbin/sysconfig; then | |
6491 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6492 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6493 | esac | |
6494 | fi | |
030272f3 | 6495 | ;; |
7083c021 AC |
6496 | sco3.2v5*) |
6497 | lt_cv_sys_max_cmd_len=102400 | |
030272f3 | 6498 | ;; |
7083c021 AC |
6499 | sysv5* | sco5v6* | sysv4.2uw2*) |
6500 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6501 | if test -n "$kargmax"; then | |
6502 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6503 | else | |
6504 | lt_cv_sys_max_cmd_len=32768 | |
6505 | fi | |
030272f3 | 6506 | ;; |
7083c021 AC |
6507 | *) |
6508 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6f57a957 AC |
6509 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
6510 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
7083c021 AC |
6511 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6512 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6513 | else | |
6514 | # Make teststring a little bigger before we do anything with it. | |
6515 | # a 1K string should be a reasonable start. | |
6f57a957 | 6516 | for i in 1 2 3 4 5 6 7 8; do |
7083c021 AC |
6517 | teststring=$teststring$teststring |
6518 | done | |
6519 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6520 | # If test is not a shell built-in, we'll probably end up computing a | |
6521 | # maximum length that is only half of the actual maximum length, but | |
6522 | # we can't tell. | |
6f57a957 | 6523 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b6d0720c | 6524 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
6f57a957 | 6525 | test 17 != "$i" # 1/2 MB should be enough |
7083c021 AC |
6526 | do |
6527 | i=`expr $i + 1` | |
6528 | teststring=$teststring$teststring | |
6529 | done | |
6530 | # Only check the string length outside the loop. | |
6531 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6532 | teststring= | |
6533 | # Add a significant safety factor because C++ compilers can tack on | |
6534 | # massive amounts of additional arguments before passing them to the | |
6535 | # linker. It appears as though 1/2 is a usable value. | |
6536 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6537 | fi | |
030272f3 VY |
6538 | ;; |
6539 | esac | |
030272f3 | 6540 | |
7083c021 | 6541 | fi |
db137867 | 6542 | |
6f57a957 | 6543 | if test -n "$lt_cv_sys_max_cmd_len"; then |
7083c021 AC |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6545 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6546 | else | |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6548 | $as_echo "none" >&6; } | |
db137867 | 6549 | fi |
7083c021 | 6550 | max_cmd_len=$lt_cv_sys_max_cmd_len |
030272f3 | 6551 | |
db137867 | 6552 | |
db137867 AC |
6553 | |
6554 | ||
6555 | ||
6556 | ||
7083c021 AC |
6557 | : ${CP="cp -f"} |
6558 | : ${MV="mv -f"} | |
6559 | : ${RM="rm -f"} | |
db137867 | 6560 | |
7083c021 AC |
6561 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6562 | lt_unset=unset | |
6563 | else | |
6564 | lt_unset=false | |
030272f3 | 6565 | fi |
db137867 AC |
6566 | |
6567 | ||
7083c021 AC |
6568 | |
6569 | ||
6570 | ||
6571 | # test EBCDIC or ASCII | |
6572 | case `echo X|tr X '\101'` in | |
6573 | A) # ASCII based system | |
6574 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6575 | lt_SP2NL='tr \040 \012' | |
6576 | lt_NL2SP='tr \015\012 \040\040' | |
030272f3 | 6577 | ;; |
7083c021 AC |
6578 | *) # EBCDIC based system |
6579 | lt_SP2NL='tr \100 \n' | |
6580 | lt_NL2SP='tr \r\n \100\100' | |
030272f3 | 6581 | ;; |
7083c021 | 6582 | esac |
db137867 | 6583 | |
db137867 | 6584 | |
db137867 | 6585 | |
db137867 | 6586 | |
030272f3 | 6587 | |
030272f3 | 6588 | |
db137867 AC |
6589 | |
6590 | ||
6591 | ||
b6d0720c AC |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6593 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6594 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6595 | $as_echo_n "(cached) " >&6 | |
6596 | else | |
6597 | case $host in | |
6598 | *-*-mingw* ) | |
6599 | case $build in | |
6600 | *-*-mingw* ) # actually msys | |
6601 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6602 | ;; | |
6603 | *-*-cygwin* ) | |
6604 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6605 | ;; | |
6606 | * ) # otherwise, assume *nix | |
6607 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6608 | ;; | |
6609 | esac | |
6610 | ;; | |
6611 | *-*-cygwin* ) | |
6612 | case $build in | |
6613 | *-*-mingw* ) # actually msys | |
6614 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6615 | ;; | |
6616 | *-*-cygwin* ) | |
6617 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6618 | ;; | |
6619 | * ) # otherwise, assume *nix | |
6620 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6621 | ;; | |
6622 | esac | |
6623 | ;; | |
6624 | * ) # unhandled hosts (and "normal" native builds) | |
6625 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6626 | ;; | |
6627 | esac | |
6628 | ||
6629 | fi | |
6630 | ||
6631 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6633 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6634 | ||
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6640 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6641 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6642 | $as_echo_n "(cached) " >&6 | |
6643 | else | |
6644 | #assume ordinary cross tools, or native build. | |
6645 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6646 | case $host in | |
6647 | *-*-mingw* ) | |
6648 | case $build in | |
6649 | *-*-mingw* ) # actually msys | |
6650 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6651 | ;; | |
6652 | esac | |
6653 | ;; | |
6654 | esac | |
6655 | ||
6656 | fi | |
6657 | ||
6658 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6660 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6661 | ||
6662 | ||
6663 | ||
6664 | ||
6665 | ||
7083c021 AC |
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6667 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
08c2568c | 6668 | if ${lt_cv_ld_reload_flag+:} false; then : |
030272f3 | 6669 | $as_echo_n "(cached) " >&6 |
db137867 | 6670 | else |
7083c021 | 6671 | lt_cv_ld_reload_flag='-r' |
db137867 | 6672 | fi |
7083c021 AC |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6674 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6675 | reload_flag=$lt_cv_ld_reload_flag | |
6676 | case $reload_flag in | |
6677 | "" | " "*) ;; | |
6678 | *) reload_flag=" $reload_flag" ;; | |
6679 | esac | |
6680 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6681 | case $host_os in | |
b6d0720c | 6682 | cygwin* | mingw* | pw32* | cegcc*) |
6f57a957 | 6683 | if test yes != "$GCC"; then |
b6d0720c AC |
6684 | reload_cmds=false |
6685 | fi | |
6686 | ;; | |
7083c021 | 6687 | darwin*) |
6f57a957 AC |
6688 | if test yes = "$GCC"; then |
6689 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
7083c021 AC |
6690 | else |
6691 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6692 | fi | |
6693 | ;; | |
db137867 | 6694 | esac |
db137867 | 6695 | |
db137867 | 6696 | |
db137867 | 6697 | |
db137867 | 6698 | |
db137867 | 6699 | |
db137867 | 6700 | |
db137867 | 6701 | |
db137867 | 6702 | |
7083c021 AC |
6703 | |
6704 | if test -n "$ac_tool_prefix"; then | |
6705 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6706 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 6708 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 6709 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
030272f3 | 6710 | $as_echo_n "(cached) " >&6 |
db137867 | 6711 | else |
7083c021 AC |
6712 | if test -n "$OBJDUMP"; then |
6713 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
db137867 AC |
6714 | else |
6715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6716 | for as_dir in $PATH | |
6717 | do | |
6718 | IFS=$as_save_IFS | |
6719 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6720 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 6721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6722 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
6724 | break 2 |
6725 | fi | |
6726 | done | |
7083c021 | 6727 | done |
db137867 AC |
6728 | IFS=$as_save_IFS |
6729 | ||
6730 | fi | |
6731 | fi | |
7083c021 AC |
6732 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6733 | if test -n "$OBJDUMP"; then | |
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6735 | $as_echo "$OBJDUMP" >&6; } | |
db137867 | 6736 | else |
7083c021 | 6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6738 | $as_echo "no" >&6; } |
db137867 AC |
6739 | fi |
6740 | ||
6741 | ||
db137867 | 6742 | fi |
7083c021 AC |
6743 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6744 | ac_ct_OBJDUMP=$OBJDUMP | |
6745 | # Extract the first word of "objdump", so it can be a program name with args. | |
6746 | set dummy objdump; ac_word=$2 | |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 6748 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 6749 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
030272f3 | 6750 | $as_echo_n "(cached) " >&6 |
db137867 | 6751 | else |
7083c021 AC |
6752 | if test -n "$ac_ct_OBJDUMP"; then |
6753 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
db137867 AC |
6754 | else |
6755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6756 | for as_dir in $PATH | |
6757 | do | |
6758 | IFS=$as_save_IFS | |
6759 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6760 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 6761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6762 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
6764 | break 2 |
6765 | fi | |
6766 | done | |
7083c021 | 6767 | done |
db137867 AC |
6768 | IFS=$as_save_IFS |
6769 | ||
6770 | fi | |
6771 | fi | |
7083c021 AC |
6772 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6773 | if test -n "$ac_ct_OBJDUMP"; then | |
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6775 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
db137867 | 6776 | else |
7083c021 | 6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6778 | $as_echo "no" >&6; } |
db137867 AC |
6779 | fi |
6780 | ||
7083c021 AC |
6781 | if test "x$ac_ct_OBJDUMP" = x; then |
6782 | OBJDUMP="false" | |
db137867 AC |
6783 | else |
6784 | case $cross_compiling:$ac_tool_warned in | |
6785 | yes:) | |
7083c021 | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 6787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
6788 | ac_tool_warned=yes ;; |
6789 | esac | |
7083c021 | 6790 | OBJDUMP=$ac_ct_OBJDUMP |
db137867 | 6791 | fi |
7083c021 AC |
6792 | else |
6793 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
db137867 | 6794 | fi |
db137867 | 6795 | |
7083c021 | 6796 | test -z "$OBJDUMP" && OBJDUMP=objdump |
db137867 | 6797 | |
db137867 | 6798 | |
db137867 | 6799 | |
db137867 | 6800 | |
db137867 | 6801 | |
db137867 | 6802 | |
db137867 | 6803 | |
db137867 | 6804 | |
db137867 | 6805 | |
7083c021 AC |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6807 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
08c2568c | 6808 | if ${lt_cv_deplibs_check_method+:} false; then : |
7083c021 | 6809 | $as_echo_n "(cached) " >&6 |
db137867 | 6810 | else |
7083c021 AC |
6811 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6812 | lt_cv_file_magic_test_file= | |
6813 | lt_cv_deplibs_check_method='unknown' | |
6814 | # Need to set the preceding variable on all platforms that support | |
6815 | # interlibrary dependencies. | |
6816 | # 'none' -- dependencies not supported. | |
6f57a957 | 6817 | # 'unknown' -- same as none, but documents that we really don't know. |
7083c021 AC |
6818 | # 'pass_all' -- all dependencies passed with no checks. |
6819 | # 'test_compile' -- check by making test program. | |
6820 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6f57a957 AC |
6821 | # that responds to the $file_magic_cmd with a given extended regex. |
6822 | # If you have 'file' or equivalent on your system and you're not sure | |
6823 | # whether 'pass_all' will *always* work, you probably want this one. | |
db137867 | 6824 | |
7083c021 AC |
6825 | case $host_os in |
6826 | aix[4-9]*) | |
6827 | lt_cv_deplibs_check_method=pass_all | |
6828 | ;; | |
db137867 | 6829 | |
7083c021 AC |
6830 | beos*) |
6831 | lt_cv_deplibs_check_method=pass_all | |
6832 | ;; | |
db137867 | 6833 | |
7083c021 AC |
6834 | bsdi[45]*) |
6835 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6836 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6837 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6838 | ;; | |
db137867 | 6839 | |
7083c021 AC |
6840 | cygwin*) |
6841 | # func_win32_libid is a shell function defined in ltmain.sh | |
6842 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6843 | lt_cv_file_magic_cmd='func_win32_libid' | |
6844 | ;; | |
db137867 | 6845 | |
7083c021 AC |
6846 | mingw* | pw32*) |
6847 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6848 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6849 | # unless we find 'file', for example because we are cross-compiling. | |
6f57a957 | 6850 | if ( file / ) >/dev/null 2>&1; then |
7083c021 AC |
6851 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6852 | lt_cv_file_magic_cmd='func_win32_libid' | |
6853 | else | |
b6d0720c AC |
6854 | # Keep this pattern in sync with the one in func_win32_libid. |
6855 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
7083c021 AC |
6856 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6857 | fi | |
6858 | ;; | |
db137867 | 6859 | |
b6d0720c | 6860 | cegcc*) |
7083c021 AC |
6861 | # use the weaker test based on 'objdump'. See mingw*. |
6862 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6863 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6864 | ;; | |
db137867 | 6865 | |
7083c021 AC |
6866 | darwin* | rhapsody*) |
6867 | lt_cv_deplibs_check_method=pass_all | |
6868 | ;; | |
db137867 | 6869 | |
7083c021 AC |
6870 | freebsd* | dragonfly*) |
6871 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6872 | case $host_cpu in | |
6873 | i*86 ) | |
6874 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6875 | # Let's accept both of them until this is cleared up. | |
6876 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6877 | lt_cv_file_magic_cmd=/usr/bin/file | |
6878 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6879 | ;; | |
6880 | esac | |
db137867 | 6881 | else |
7083c021 | 6882 | lt_cv_deplibs_check_method=pass_all |
db137867 | 6883 | fi |
7083c021 | 6884 | ;; |
db137867 | 6885 | |
b6d0720c AC |
6886 | haiku*) |
6887 | lt_cv_deplibs_check_method=pass_all | |
6888 | ;; | |
6889 | ||
7083c021 AC |
6890 | hpux10.20* | hpux11*) |
6891 | lt_cv_file_magic_cmd=/usr/bin/file | |
6892 | case $host_cpu in | |
6893 | ia64*) | |
6894 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6895 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6896 | ;; | |
6897 | hppa*64*) | |
b6d0720c | 6898 | 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]' |
7083c021 AC |
6899 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6900 | ;; | |
6901 | *) | |
b6d0720c | 6902 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7083c021 AC |
6903 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6904 | ;; | |
6905 | esac | |
6906 | ;; | |
db137867 | 6907 | |
7083c021 AC |
6908 | interix[3-9]*) |
6909 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6910 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6911 | ;; | |
db137867 | 6912 | |
7083c021 AC |
6913 | irix5* | irix6* | nonstopux*) |
6914 | case $LD in | |
6915 | *-32|*"-32 ") libmagic=32-bit;; | |
6916 | *-n32|*"-n32 ") libmagic=N32;; | |
6917 | *-64|*"-64 ") libmagic=64-bit;; | |
6918 | *) libmagic=never-match;; | |
6919 | esac | |
6920 | lt_cv_deplibs_check_method=pass_all | |
6921 | ;; | |
db137867 | 6922 | |
a949ab1a | 6923 | # This must be glibc/ELF. |
6f57a957 | 6924 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
7083c021 AC |
6925 | lt_cv_deplibs_check_method=pass_all |
6926 | ;; | |
db137867 | 6927 | |
96f4052b | 6928 | netbsd*) |
7083c021 AC |
6929 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6930 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6931 | else | |
6932 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6933 | fi | |
6934 | ;; | |
db137867 | 6935 | |
7083c021 AC |
6936 | newos6*) |
6937 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6938 | lt_cv_file_magic_cmd=/usr/bin/file | |
6939 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6940 | ;; | |
db137867 | 6941 | |
7083c021 AC |
6942 | *nto* | *qnx*) |
6943 | lt_cv_deplibs_check_method=pass_all | |
6944 | ;; | |
db137867 | 6945 | |
6f57a957 AC |
6946 | openbsd* | bitrig*) |
6947 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
7083c021 AC |
6948 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
6949 | else | |
6950 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6951 | fi | |
6952 | ;; | |
db137867 | 6953 | |
7083c021 AC |
6954 | osf3* | osf4* | osf5*) |
6955 | lt_cv_deplibs_check_method=pass_all | |
6956 | ;; | |
db137867 | 6957 | |
7083c021 AC |
6958 | rdos*) |
6959 | lt_cv_deplibs_check_method=pass_all | |
6960 | ;; | |
db137867 | 6961 | |
7083c021 AC |
6962 | solaris*) |
6963 | lt_cv_deplibs_check_method=pass_all | |
6964 | ;; | |
db137867 | 6965 | |
7083c021 AC |
6966 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6967 | lt_cv_deplibs_check_method=pass_all | |
6968 | ;; | |
db137867 | 6969 | |
7083c021 AC |
6970 | sysv4 | sysv4.3*) |
6971 | case $host_vendor in | |
6972 | motorola) | |
6973 | 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]' | |
6974 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6975 | ;; | |
6976 | ncr) | |
6977 | lt_cv_deplibs_check_method=pass_all | |
6978 | ;; | |
6979 | sequent) | |
6980 | lt_cv_file_magic_cmd='/bin/file' | |
6981 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6982 | ;; | |
6983 | sni) | |
6984 | lt_cv_file_magic_cmd='/bin/file' | |
6985 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6986 | lt_cv_file_magic_test_file=/lib/libc.so | |
6987 | ;; | |
6988 | siemens) | |
6989 | lt_cv_deplibs_check_method=pass_all | |
6990 | ;; | |
6991 | pc) | |
6992 | lt_cv_deplibs_check_method=pass_all | |
6993 | ;; | |
6994 | esac | |
6995 | ;; | |
db137867 | 6996 | |
7083c021 AC |
6997 | tpf*) |
6998 | lt_cv_deplibs_check_method=pass_all | |
6999 | ;; | |
6f57a957 AC |
7000 | os2*) |
7001 | lt_cv_deplibs_check_method=pass_all | |
7002 | ;; | |
7083c021 | 7003 | esac |
db137867 | 7004 | |
db137867 | 7005 | fi |
7083c021 AC |
7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7007 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
b6d0720c AC |
7008 | |
7009 | file_magic_glob= | |
7010 | want_nocaseglob=no | |
7011 | if test "$build" = "$host"; then | |
7012 | case $host_os in | |
7013 | mingw* | pw32*) | |
7014 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
7015 | want_nocaseglob=yes | |
7016 | else | |
7017 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
7018 | fi | |
7019 | ;; | |
7020 | esac | |
7021 | fi | |
7022 | ||
7083c021 AC |
7023 | file_magic_cmd=$lt_cv_file_magic_cmd |
7024 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7025 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
db137867 | 7026 | |
db137867 | 7027 | |
db137867 | 7028 | |
db137867 | 7029 | |
db137867 | 7030 | |
db137867 | 7031 | |
db137867 | 7032 | |
db137867 | 7033 | |
db137867 | 7034 | |
db137867 | 7035 | |
b6d0720c AC |
7036 | |
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
db137867 AC |
7046 | |
7047 | ||
db137867 | 7048 | if test -n "$ac_tool_prefix"; then |
b6d0720c AC |
7049 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
7050 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7083c021 | 7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 7052 | $as_echo_n "checking for $ac_word... " >&6; } |
b6d0720c | 7053 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
030272f3 | 7054 | $as_echo_n "(cached) " >&6 |
db137867 | 7055 | else |
b6d0720c AC |
7056 | if test -n "$DLLTOOL"; then |
7057 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
db137867 AC |
7058 | else |
7059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7060 | for as_dir in $PATH | |
7061 | do | |
7062 | IFS=$as_save_IFS | |
7063 | test -z "$as_dir" && as_dir=. | |
7083c021 | 7064 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 7065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7066 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
7083c021 | 7067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
7068 | break 2 |
7069 | fi | |
7070 | done | |
7083c021 | 7071 | done |
db137867 AC |
7072 | IFS=$as_save_IFS |
7073 | ||
7074 | fi | |
7075 | fi | |
b6d0720c AC |
7076 | DLLTOOL=$ac_cv_prog_DLLTOOL |
7077 | if test -n "$DLLTOOL"; then | |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
7079 | $as_echo "$DLLTOOL" >&6; } | |
db137867 | 7080 | else |
7083c021 | 7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 7082 | $as_echo "no" >&6; } |
db137867 AC |
7083 | fi |
7084 | ||
7085 | ||
db137867 | 7086 | fi |
b6d0720c AC |
7087 | if test -z "$ac_cv_prog_DLLTOOL"; then |
7088 | ac_ct_DLLTOOL=$DLLTOOL | |
7089 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7090 | set dummy dlltool; ac_word=$2 | |
7083c021 | 7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 7092 | $as_echo_n "checking for $ac_word... " >&6; } |
b6d0720c | 7093 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
030272f3 | 7094 | $as_echo_n "(cached) " >&6 |
db137867 | 7095 | else |
b6d0720c AC |
7096 | if test -n "$ac_ct_DLLTOOL"; then |
7097 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
db137867 AC |
7098 | else |
7099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7100 | for as_dir in $PATH | |
7101 | do | |
7102 | IFS=$as_save_IFS | |
7103 | test -z "$as_dir" && as_dir=. | |
7083c021 | 7104 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 7105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7106 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
7083c021 | 7107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
7108 | break 2 |
7109 | fi | |
7110 | done | |
7083c021 | 7111 | done |
db137867 AC |
7112 | IFS=$as_save_IFS |
7113 | ||
7114 | fi | |
7115 | fi | |
b6d0720c AC |
7116 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
7117 | if test -n "$ac_ct_DLLTOOL"; then | |
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
7119 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
db137867 | 7120 | else |
7083c021 | 7121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 7122 | $as_echo "no" >&6; } |
db137867 AC |
7123 | fi |
7124 | ||
b6d0720c AC |
7125 | if test "x$ac_ct_DLLTOOL" = x; then |
7126 | DLLTOOL="false" | |
db137867 AC |
7127 | else |
7128 | case $cross_compiling:$ac_tool_warned in | |
7129 | yes:) | |
7083c021 | 7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 7131 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
7132 | ac_tool_warned=yes ;; |
7133 | esac | |
b6d0720c | 7134 | DLLTOOL=$ac_ct_DLLTOOL |
db137867 | 7135 | fi |
7083c021 | 7136 | else |
b6d0720c | 7137 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
db137867 AC |
7138 | fi |
7139 | ||
b6d0720c AC |
7140 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
db137867 | 7148 | |
db137867 | 7149 | |
db137867 | 7150 | |
b6d0720c AC |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
7152 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
7153 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
7154 | $as_echo_n "(cached) " >&6 | |
7155 | else | |
7156 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
7157 | ||
7158 | case $host_os in | |
7159 | cygwin* | mingw* | pw32* | cegcc*) | |
6f57a957 AC |
7160 | # two different shell functions defined in ltmain.sh; |
7161 | # decide which one to use based on capabilities of $DLLTOOL | |
b6d0720c AC |
7162 | case `$DLLTOOL --help 2>&1` in |
7163 | *--identify-strict*) | |
7164 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
7165 | ;; | |
7166 | *) | |
7167 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
7168 | ;; | |
7169 | esac | |
7170 | ;; | |
7171 | *) | |
7172 | # fallback: assume linklib IS sharedlib | |
6f57a957 | 7173 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b6d0720c AC |
7174 | ;; |
7175 | esac | |
db137867 | 7176 | |
b6d0720c AC |
7177 | fi |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
7179 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
7180 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
7181 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
db137867 | 7182 | |
db137867 | 7183 | |
db137867 | 7184 | |
db137867 | 7185 | |
7083c021 AC |
7186 | |
7187 | ||
7188 | ||
7189 | if test -n "$ac_tool_prefix"; then | |
b6d0720c AC |
7190 | for ac_prog in ar |
7191 | do | |
7192 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7193 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7195 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 7196 | if ${ac_cv_prog_AR+:} false; then : |
7083c021 AC |
7197 | $as_echo_n "(cached) " >&6 |
7198 | else | |
b6d0720c AC |
7199 | if test -n "$AR"; then |
7200 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7083c021 AC |
7201 | else |
7202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7203 | for as_dir in $PATH | |
7204 | do | |
7205 | IFS=$as_save_IFS | |
7206 | test -z "$as_dir" && as_dir=. | |
7207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7209 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
7083c021 AC |
7210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7211 | break 2 | |
db137867 | 7212 | fi |
7083c021 AC |
7213 | done |
7214 | done | |
7215 | IFS=$as_save_IFS | |
7216 | ||
7217 | fi | |
7218 | fi | |
b6d0720c AC |
7219 | AR=$ac_cv_prog_AR |
7220 | if test -n "$AR"; then | |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7222 | $as_echo "$AR" >&6; } | |
db137867 | 7223 | else |
7083c021 AC |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7225 | $as_echo "no" >&6; } | |
7226 | fi | |
7227 | ||
7228 | ||
b6d0720c AC |
7229 | test -n "$AR" && break |
7230 | done | |
7083c021 | 7231 | fi |
b6d0720c AC |
7232 | if test -z "$AR"; then |
7233 | ac_ct_AR=$AR | |
7234 | for ac_prog in ar | |
7235 | do | |
7236 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7237 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7239 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 7240 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
7083c021 AC |
7241 | $as_echo_n "(cached) " >&6 |
7242 | else | |
b6d0720c AC |
7243 | if test -n "$ac_ct_AR"; then |
7244 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7083c021 AC |
7245 | else |
7246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7247 | for as_dir in $PATH | |
7248 | do | |
7249 | IFS=$as_save_IFS | |
7250 | test -z "$as_dir" && as_dir=. | |
7251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7253 | ac_cv_prog_ac_ct_AR="$ac_prog" |
7083c021 AC |
7254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7255 | break 2 | |
db137867 | 7256 | fi |
7083c021 AC |
7257 | done |
7258 | done | |
7259 | IFS=$as_save_IFS | |
7260 | ||
7261 | fi | |
7262 | fi | |
b6d0720c AC |
7263 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7264 | if test -n "$ac_ct_AR"; then | |
7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7266 | $as_echo "$ac_ct_AR" >&6; } | |
7083c021 AC |
7267 | else |
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7269 | $as_echo "no" >&6; } | |
db137867 AC |
7270 | fi |
7271 | ||
b6d0720c AC |
7272 | |
7273 | test -n "$ac_ct_AR" && break | |
7274 | done | |
7275 | ||
7276 | if test "x$ac_ct_AR" = x; then | |
7277 | AR="false" | |
7278 | else | |
7279 | case $cross_compiling:$ac_tool_warned in | |
7280 | yes:) | |
7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7282 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7283 | ac_tool_warned=yes ;; | |
7284 | esac | |
7285 | AR=$ac_ct_AR | |
7286 | fi | |
7287 | fi | |
7288 | ||
7289 | : ${AR=ar} | |
7290 | : ${AR_FLAGS=cru} | |
7291 | ||
7292 | ||
7293 | ||
7294 | ||
7295 | ||
7296 | ||
7297 | ||
7298 | ||
7299 | ||
7300 | ||
7301 | ||
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
7303 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
7304 | if ${lt_cv_ar_at_file+:} false; then : | |
7305 | $as_echo_n "(cached) " >&6 | |
7306 | else | |
7307 | lt_cv_ar_at_file=no | |
7308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7309 | /* end confdefs.h. */ | |
7310 | ||
7311 | int | |
7312 | main () | |
7313 | { | |
7314 | ||
7315 | ; | |
7316 | return 0; | |
7317 | } | |
7318 | _ACEOF | |
7319 | if ac_fn_c_try_compile "$LINENO"; then : | |
7320 | echo conftest.$ac_objext > conftest.lst | |
7321 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
7322 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7323 | (eval $lt_ar_try) 2>&5 | |
7324 | ac_status=$? | |
7325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7326 | test $ac_status = 0; } | |
6f57a957 | 7327 | if test 0 -eq "$ac_status"; then |
b6d0720c AC |
7328 | # Ensure the archiver fails upon bogus file names. |
7329 | rm -f conftest.$ac_objext libconftest.a | |
7330 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7331 | (eval $lt_ar_try) 2>&5 | |
7332 | ac_status=$? | |
7333 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7334 | test $ac_status = 0; } | |
6f57a957 | 7335 | if test 0 -ne "$ac_status"; then |
b6d0720c AC |
7336 | lt_cv_ar_at_file=@ |
7337 | fi | |
7338 | fi | |
7339 | rm -f conftest.* libconftest.a | |
7340 | ||
7341 | fi | |
7342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7343 | ||
7344 | fi | |
7345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
7346 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
7347 | ||
6f57a957 | 7348 | if test no = "$lt_cv_ar_at_file"; then |
b6d0720c AC |
7349 | archiver_list_spec= |
7350 | else | |
7351 | archiver_list_spec=$lt_cv_ar_at_file | |
7352 | fi | |
7353 | ||
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | if test -n "$ac_tool_prefix"; then | |
7361 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7362 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7364 | $as_echo_n "checking for $ac_word... " >&6; } | |
7365 | if ${ac_cv_prog_STRIP+:} false; then : | |
7366 | $as_echo_n "(cached) " >&6 | |
7367 | else | |
7368 | if test -n "$STRIP"; then | |
7369 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7370 | else | |
7371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7372 | for as_dir in $PATH | |
7373 | do | |
7374 | IFS=$as_save_IFS | |
7375 | test -z "$as_dir" && as_dir=. | |
7376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
7378 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7380 | break 2 | |
7381 | fi | |
7382 | done | |
7383 | done | |
7384 | IFS=$as_save_IFS | |
7385 | ||
7386 | fi | |
7387 | fi | |
7388 | STRIP=$ac_cv_prog_STRIP | |
7389 | if test -n "$STRIP"; then | |
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7391 | $as_echo "$STRIP" >&6; } | |
7392 | else | |
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7394 | $as_echo "no" >&6; } | |
7395 | fi | |
7396 | ||
7397 | ||
7398 | fi | |
7399 | if test -z "$ac_cv_prog_STRIP"; then | |
7400 | ac_ct_STRIP=$STRIP | |
7401 | # Extract the first word of "strip", so it can be a program name with args. | |
7402 | set dummy strip; ac_word=$2 | |
7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7404 | $as_echo_n "checking for $ac_word... " >&6; } | |
7405 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7406 | $as_echo_n "(cached) " >&6 | |
7407 | else | |
7408 | if test -n "$ac_ct_STRIP"; then | |
7409 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7410 | else | |
7411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7412 | for as_dir in $PATH | |
7413 | do | |
7414 | IFS=$as_save_IFS | |
7415 | test -z "$as_dir" && as_dir=. | |
7416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
7418 | ac_cv_prog_ac_ct_STRIP="strip" |
7419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7420 | break 2 | |
7421 | fi | |
7422 | done | |
7423 | done | |
7424 | IFS=$as_save_IFS | |
7425 | ||
7426 | fi | |
7427 | fi | |
7428 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7429 | if test -n "$ac_ct_STRIP"; then | |
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7431 | $as_echo "$ac_ct_STRIP" >&6; } | |
7432 | else | |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7434 | $as_echo "no" >&6; } | |
7435 | fi | |
7436 | ||
7437 | if test "x$ac_ct_STRIP" = x; then | |
7438 | STRIP=":" | |
7439 | else | |
7440 | case $cross_compiling:$ac_tool_warned in | |
7441 | yes:) | |
7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7083c021 AC |
7443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7444 | ac_tool_warned=yes ;; | |
7445 | esac | |
7446 | STRIP=$ac_ct_STRIP | |
7447 | fi | |
030272f3 | 7448 | else |
7083c021 | 7449 | STRIP="$ac_cv_prog_STRIP" |
030272f3 | 7450 | fi |
db137867 | 7451 | |
7083c021 | 7452 | test -z "$STRIP" && STRIP=: |
db137867 AC |
7453 | |
7454 | ||
db137867 | 7455 | |
db137867 | 7456 | |
db137867 | 7457 | |
db137867 | 7458 | |
7083c021 AC |
7459 | if test -n "$ac_tool_prefix"; then |
7460 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7461 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7463 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 7464 | if ${ac_cv_prog_RANLIB+:} false; then : |
7083c021 AC |
7465 | $as_echo_n "(cached) " >&6 |
7466 | else | |
7467 | if test -n "$RANLIB"; then | |
7468 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7469 | else | |
7470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7471 | for as_dir in $PATH | |
7472 | do | |
7473 | IFS=$as_save_IFS | |
7474 | test -z "$as_dir" && as_dir=. | |
7475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
7477 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7479 | break 2 | |
7480 | fi | |
7481 | done | |
7482 | done | |
7483 | IFS=$as_save_IFS | |
db137867 | 7484 | |
7083c021 AC |
7485 | fi |
7486 | fi | |
7487 | RANLIB=$ac_cv_prog_RANLIB | |
7488 | if test -n "$RANLIB"; then | |
7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7490 | $as_echo "$RANLIB" >&6; } | |
7491 | else | |
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7493 | $as_echo "no" >&6; } | |
7494 | fi | |
db137867 | 7495 | |
db137867 | 7496 | |
7083c021 AC |
7497 | fi |
7498 | if test -z "$ac_cv_prog_RANLIB"; then | |
7499 | ac_ct_RANLIB=$RANLIB | |
7500 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7501 | set dummy ranlib; ac_word=$2 | |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7503 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 7504 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
7083c021 AC |
7505 | $as_echo_n "(cached) " >&6 |
7506 | else | |
7507 | if test -n "$ac_ct_RANLIB"; then | |
7508 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7509 | else | |
7510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7511 | for as_dir in $PATH | |
7512 | do | |
7513 | IFS=$as_save_IFS | |
7514 | test -z "$as_dir" && as_dir=. | |
7515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
7517 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7519 | break 2 | |
7520 | fi | |
7521 | done | |
7522 | done | |
7523 | IFS=$as_save_IFS | |
db137867 | 7524 | |
7083c021 AC |
7525 | fi |
7526 | fi | |
7527 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7528 | if test -n "$ac_ct_RANLIB"; then | |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7530 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7531 | else | |
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7533 | $as_echo "no" >&6; } | |
db137867 AC |
7534 | fi |
7535 | ||
7083c021 AC |
7536 | if test "x$ac_ct_RANLIB" = x; then |
7537 | RANLIB=":" | |
7538 | else | |
7539 | case $cross_compiling:$ac_tool_warned in | |
7540 | yes:) | |
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7543 | ac_tool_warned=yes ;; | |
7544 | esac | |
7545 | RANLIB=$ac_ct_RANLIB | |
7546 | fi | |
db137867 | 7547 | else |
7083c021 | 7548 | RANLIB="$ac_cv_prog_RANLIB" |
db137867 AC |
7549 | fi |
7550 | ||
7083c021 | 7551 | test -z "$RANLIB" && RANLIB=: |
db137867 AC |
7552 | |
7553 | ||
7554 | ||
7555 | ||
7083c021 AC |
7556 | |
7557 | ||
7558 | # Determine commands to create old-style static archives. | |
7559 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7560 | old_postinstall_cmds='chmod 644 $oldlib' | |
7561 | old_postuninstall_cmds= | |
7562 | ||
7563 | if test -n "$RANLIB"; then | |
7564 | case $host_os in | |
6f57a957 | 7565 | bitrig* | openbsd*) |
a949ab1a | 7566 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
7083c021 AC |
7567 | ;; |
7568 | *) | |
a949ab1a | 7569 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
7083c021 AC |
7570 | ;; |
7571 | esac | |
a949ab1a | 7572 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
7083c021 AC |
7573 | fi |
7574 | ||
b6d0720c AC |
7575 | case $host_os in |
7576 | darwin*) | |
7577 | lock_old_archive_extraction=yes ;; | |
7578 | *) | |
7579 | lock_old_archive_extraction=no ;; | |
7580 | esac | |
7581 | ||
7582 | ||
7583 | ||
7584 | ||
7585 | ||
7586 | ||
7083c021 AC |
7587 | |
7588 | ||
7589 | ||
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7594 | ||
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | ||
7620 | # If no C compiler was specified, use CC. | |
7621 | LTCC=${LTCC-"$CC"} | |
7622 | ||
7623 | # If no C compiler flags were specified, use CFLAGS. | |
7624 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7625 | ||
7626 | # Allow CC to be a program name with arguments. | |
7627 | compiler=$CC | |
7628 | ||
7629 | ||
7630 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7632 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
08c2568c | 7633 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
030272f3 | 7634 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7635 | else |
7636 | ||
7637 | # These are sane defaults that work on at least a few old systems. | |
7638 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7639 | ||
7640 | # Character class describing NM global symbol codes. | |
7641 | symcode='[BCDEGRST]' | |
7642 | ||
7643 | # Regexp to match symbols that can be accessed directly from C. | |
7644 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7645 | ||
db137867 AC |
7646 | # Define system-specific variables. |
7647 | case $host_os in | |
7648 | aix*) | |
7649 | symcode='[BCDT]' | |
7650 | ;; | |
7083c021 | 7651 | cygwin* | mingw* | pw32* | cegcc*) |
db137867 AC |
7652 | symcode='[ABCDGISTW]' |
7653 | ;; | |
7083c021 | 7654 | hpux*) |
6f57a957 | 7655 | if test ia64 = "$host_cpu"; then |
db137867 AC |
7656 | symcode='[ABCDEGRST]' |
7657 | fi | |
db137867 AC |
7658 | ;; |
7659 | irix* | nonstopux*) | |
7660 | symcode='[BCDEGRST]' | |
7661 | ;; | |
7662 | osf*) | |
7663 | symcode='[BCDEGQRST]' | |
7664 | ;; | |
7665 | solaris*) | |
7666 | symcode='[BDRT]' | |
7667 | ;; | |
7668 | sco3.2v5*) | |
7669 | symcode='[DT]' | |
7670 | ;; | |
7671 | sysv4.2uw2*) | |
7672 | symcode='[DT]' | |
7673 | ;; | |
7674 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7675 | symcode='[ABDT]' | |
7676 | ;; | |
7677 | sysv4) | |
7678 | symcode='[DFNSTU]' | |
7679 | ;; | |
7680 | esac | |
7681 | ||
7083c021 AC |
7682 | # If we're using GNU nm, then use its standard symbol codes. |
7683 | case `$NM -V 2>&1` in | |
7684 | *GNU* | *'with BFD'*) | |
7685 | symcode='[ABCDGIRSTW]' ;; | |
7686 | esac | |
7687 | ||
6f57a957 AC |
7688 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7689 | # Gets list of data symbols to import. | |
7690 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
7691 | # Adjust the below global symbol transforms to fixup imported variables. | |
7692 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
7693 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
7694 | lt_c_name_lib_hook="\ | |
7695 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
7696 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
7697 | else | |
7698 | # Disable hooks by default. | |
7699 | lt_cv_sys_global_symbol_to_import= | |
7700 | lt_cdecl_hook= | |
7701 | lt_c_name_hook= | |
7702 | lt_c_name_lib_hook= | |
7703 | fi | |
7704 | ||
7083c021 AC |
7705 | # Transform an extracted symbol line into a proper C declaration. |
7706 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7707 | # so use this general approach. | |
6f57a957 AC |
7708 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
7709 | $lt_cdecl_hook\ | |
7710 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
7711 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
7083c021 AC |
7712 | |
7713 | # Transform an extracted symbol line into symbol name and symbol address | |
6f57a957 AC |
7714 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
7715 | $lt_c_name_hook\ | |
7716 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7717 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
7718 | ||
7719 | # Transform an extracted symbol line into symbol name with lib prefix and | |
7720 | # symbol address. | |
7721 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
7722 | $lt_c_name_lib_hook\ | |
7723 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7724 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
7725 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
7083c021 | 7726 | |
db137867 AC |
7727 | # Handle CRLF in mingw tool chain |
7728 | opt_cr= | |
7729 | case $build_os in | |
7730 | mingw*) | |
7083c021 | 7731 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
db137867 AC |
7732 | ;; |
7733 | esac | |
7734 | ||
7083c021 | 7735 | # Try without a prefix underscore, then with it. |
db137867 AC |
7736 | for ac_symprfx in "" "_"; do |
7737 | ||
7738 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7739 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7740 | ||
7741 | # Write the raw and C identifiers. | |
7083c021 | 7742 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6f57a957 AC |
7743 | # Fake it for dumpbin and say T for any non-static function, |
7744 | # D for any global variable and I for any imported variable. | |
7083c021 AC |
7745 | # Also find C++ and __fastcall symbols from MSVC++, |
7746 | # which start with @ or ?. | |
7747 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7748 | " {last_section=section; section=\$ 3};"\ | |
a949ab1a | 7749 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
7083c021 | 7750 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6f57a957 AC |
7751 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
7752 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
7753 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
7083c021 AC |
7754 | " \$ 0!~/External *\|/{next};"\ |
7755 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7756 | " {if(hide[section]) next};"\ | |
6f57a957 AC |
7757 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
7758 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
7759 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
7760 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
7083c021 AC |
7761 | " ' prfx=^$ac_symprfx" |
7762 | else | |
7763 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7764 | fi | |
b6d0720c | 7765 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
db137867 AC |
7766 | |
7767 | # Check to see that the pipe works correctly. | |
7768 | pipe_works=no | |
7769 | ||
7770 | rm -f conftest* | |
7083c021 | 7771 | cat > conftest.$ac_ext <<_LT_EOF |
db137867 AC |
7772 | #ifdef __cplusplus |
7773 | extern "C" { | |
7774 | #endif | |
7775 | char nm_test_var; | |
7083c021 AC |
7776 | void nm_test_func(void); |
7777 | void nm_test_func(void){} | |
db137867 AC |
7778 | #ifdef __cplusplus |
7779 | } | |
7780 | #endif | |
7781 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7083c021 | 7782 | _LT_EOF |
db137867 | 7783 | |
7083c021 | 7784 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
db137867 AC |
7785 | (eval $ac_compile) 2>&5 |
7786 | ac_status=$? | |
7083c021 AC |
7787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7788 | test $ac_status = 0; }; then | |
db137867 AC |
7789 | # Now try to grab the symbols. |
7790 | nlist=conftest.nm | |
b6d0720c AC |
7791 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7792 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
db137867 | 7793 | ac_status=$? |
7083c021 AC |
7794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7795 | test $ac_status = 0; } && test -s "$nlist"; then | |
db137867 AC |
7796 | # Try sorting and uniquifying the output. |
7797 | if sort "$nlist" | uniq > "$nlist"T; then | |
7798 | mv -f "$nlist"T "$nlist" | |
7799 | else | |
7800 | rm -f "$nlist"T | |
7801 | fi | |
7802 | ||
7803 | # Make sure that we snagged all the symbols we need. | |
7083c021 AC |
7804 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
7805 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7806 | cat <<_LT_EOF > conftest.$ac_ext | |
b6d0720c | 7807 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6f57a957 AC |
7808 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
7809 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b6d0720c AC |
7810 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
7811 | # define LT_DLSYM_CONST | |
6f57a957 | 7812 | #elif defined __osf__ |
b6d0720c AC |
7813 | /* This system does not cope well with relocations in const data. */ |
7814 | # define LT_DLSYM_CONST | |
7815 | #else | |
7816 | # define LT_DLSYM_CONST const | |
7817 | #endif | |
7818 | ||
db137867 AC |
7819 | #ifdef __cplusplus |
7820 | extern "C" { | |
7821 | #endif | |
7822 | ||
7083c021 | 7823 | _LT_EOF |
db137867 | 7824 | # Now generate the symbol file. |
7083c021 | 7825 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
db137867 | 7826 | |
7083c021 | 7827 | cat <<_LT_EOF >> conftest.$ac_ext |
db137867 | 7828 | |
7083c021 | 7829 | /* The mapping between symbol names and symbols. */ |
b6d0720c | 7830 | LT_DLSYM_CONST struct { |
db137867 | 7831 | const char *name; |
7083c021 | 7832 | void *address; |
db137867 | 7833 | } |
7083c021 | 7834 | lt__PROGRAM__LTX_preloaded_symbols[] = |
db137867 | 7835 | { |
7083c021 AC |
7836 | { "@PROGRAM@", (void *) 0 }, |
7837 | _LT_EOF | |
6f57a957 | 7838 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
7083c021 AC |
7839 | cat <<\_LT_EOF >> conftest.$ac_ext |
7840 | {0, (void *) 0} | |
db137867 AC |
7841 | }; |
7842 | ||
7083c021 AC |
7843 | /* This works around a problem in FreeBSD linker */ |
7844 | #ifdef FREEBSD_WORKAROUND | |
7845 | static const void *lt_preloaded_setup() { | |
7846 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7847 | } | |
7848 | #endif | |
7849 | ||
db137867 AC |
7850 | #ifdef __cplusplus |
7851 | } | |
7852 | #endif | |
7083c021 | 7853 | _LT_EOF |
db137867 AC |
7854 | # Now try linking the two files. |
7855 | mv conftest.$ac_objext conftstm.$ac_objext | |
b6d0720c AC |
7856 | lt_globsym_save_LIBS=$LIBS |
7857 | lt_globsym_save_CFLAGS=$CFLAGS | |
6f57a957 | 7858 | LIBS=conftstm.$ac_objext |
db137867 | 7859 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
7083c021 | 7860 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
db137867 AC |
7861 | (eval $ac_link) 2>&5 |
7862 | ac_status=$? | |
7083c021 | 7863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6f57a957 | 7864 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
db137867 AC |
7865 | pipe_works=yes |
7866 | fi | |
b6d0720c AC |
7867 | LIBS=$lt_globsym_save_LIBS |
7868 | CFLAGS=$lt_globsym_save_CFLAGS | |
db137867 AC |
7869 | else |
7870 | echo "cannot find nm_test_func in $nlist" >&5 | |
7871 | fi | |
7872 | else | |
7873 | echo "cannot find nm_test_var in $nlist" >&5 | |
7874 | fi | |
7875 | else | |
7876 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7877 | fi | |
7878 | else | |
7879 | echo "$progname: failed program was:" >&5 | |
7880 | cat conftest.$ac_ext >&5 | |
7881 | fi | |
b676ea3b | 7882 | rm -rf conftest* conftst* |
db137867 AC |
7883 | |
7884 | # Do not use the global_symbol_pipe unless it works. | |
6f57a957 | 7885 | if test yes = "$pipe_works"; then |
db137867 AC |
7886 | break |
7887 | else | |
7888 | lt_cv_sys_global_symbol_pipe= | |
7889 | fi | |
7890 | done | |
7891 | ||
7892 | fi | |
7893 | ||
7894 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7895 | lt_cv_sys_global_symbol_to_cdecl= | |
7896 | fi | |
7897 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7083c021 | 7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
030272f3 | 7899 | $as_echo "failed" >&6; } |
db137867 | 7900 | else |
7083c021 | 7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
030272f3 | 7902 | $as_echo "ok" >&6; } |
db137867 AC |
7903 | fi |
7904 | ||
b6d0720c AC |
7905 | # Response file support. |
7906 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7907 | nm_file_list_spec='@' | |
7908 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7909 | nm_file_list_spec='@' | |
7910 | fi | |
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
db137867 AC |
7918 | |
7919 | ||
7920 | ||
7921 | ||
7922 | ||
db137867 | 7923 | |
db137867 | 7924 | |
db137867 | 7925 | |
db137867 | 7926 | |
6f57a957 AC |
7927 | |
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7933 | ||
7934 | ||
7935 | ||
7936 | ||
db137867 | 7937 | |
db137867 | 7938 | |
db137867 | 7939 | |
db137867 | 7940 | |
db137867 | 7941 | |
db137867 AC |
7942 | |
7943 | ||
b6d0720c AC |
7944 | |
7945 | ||
7946 | ||
7947 | ||
7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7949 | $as_echo_n "checking for sysroot... " >&6; } | |
7950 | ||
7951 | # Check whether --with-sysroot was given. | |
7952 | if test "${with_sysroot+set}" = set; then : | |
7953 | withval=$with_sysroot; | |
7954 | else | |
7955 | with_sysroot=no | |
7956 | fi | |
7957 | ||
7958 | ||
7959 | lt_sysroot= | |
6f57a957 | 7960 | case $with_sysroot in #( |
b6d0720c | 7961 | yes) |
6f57a957 | 7962 | if test yes = "$GCC"; then |
b6d0720c AC |
7963 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
7964 | fi | |
7965 | ;; #( | |
7966 | /*) | |
7967 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7968 | ;; #( | |
7969 | no|'') | |
7970 | ;; #( | |
7971 | *) | |
6f57a957 AC |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
7973 | $as_echo "$with_sysroot" >&6; } | |
b6d0720c AC |
7974 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
7975 | ;; | |
7976 | esac | |
7977 | ||
7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7979 | $as_echo "${lt_sysroot:-no}" >&6; } | |
db137867 | 7980 | |
db137867 | 7981 | |
db137867 | 7982 | |
db137867 | 7983 | |
7083c021 | 7984 | |
6f57a957 AC |
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
7986 | $as_echo_n "checking for a working dd... " >&6; } | |
7987 | if ${ac_cv_path_lt_DD+:} false; then : | |
7988 | $as_echo_n "(cached) " >&6 | |
7989 | else | |
7990 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7991 | cat conftest.i conftest.i >conftest2.i | |
7992 | : ${lt_DD:=$DD} | |
7993 | if test -z "$lt_DD"; then | |
7994 | ac_path_lt_DD_found=false | |
7995 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7997 | for as_dir in $PATH | |
7998 | do | |
7999 | IFS=$as_save_IFS | |
8000 | test -z "$as_dir" && as_dir=. | |
8001 | for ac_prog in dd; do | |
8002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8003 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
8004 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
8005 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
8006 | cmp -s conftest.i conftest.out \ | |
8007 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
8008 | fi | |
8009 | $ac_path_lt_DD_found && break 3 | |
8010 | done | |
8011 | done | |
8012 | done | |
8013 | IFS=$as_save_IFS | |
8014 | if test -z "$ac_cv_path_lt_DD"; then | |
8015 | : | |
8016 | fi | |
8017 | else | |
8018 | ac_cv_path_lt_DD=$lt_DD | |
8019 | fi | |
8020 | ||
8021 | rm -f conftest.i conftest2.i conftest.out | |
8022 | fi | |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
8024 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
8025 | ||
8026 | ||
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
8028 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
8029 | if ${lt_cv_truncate_bin+:} false; then : | |
8030 | $as_echo_n "(cached) " >&6 | |
8031 | else | |
8032 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
8033 | cat conftest.i conftest.i >conftest2.i | |
8034 | lt_cv_truncate_bin= | |
8035 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
8036 | cmp -s conftest.i conftest.out \ | |
8037 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
8038 | fi | |
8039 | rm -f conftest.i conftest2.i conftest.out | |
8040 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
8041 | fi | |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
8043 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
8052 | func_cc_basename () | |
8053 | { | |
8054 | for cc_temp in $*""; do | |
8055 | case $cc_temp in | |
8056 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8057 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8058 | \-*) ;; | |
8059 | *) break;; | |
8060 | esac | |
8061 | done | |
8062 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8063 | } | |
8064 | ||
7083c021 AC |
8065 | # Check whether --enable-libtool-lock was given. |
8066 | if test "${enable_libtool_lock+set}" = set; then : | |
8067 | enableval=$enable_libtool_lock; | |
db137867 AC |
8068 | fi |
8069 | ||
6f57a957 | 8070 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
db137867 | 8071 | |
7083c021 AC |
8072 | # Some flags need to be propagated to the compiler or linker for good |
8073 | # libtool support. | |
8074 | case $host in | |
8075 | ia64-*-hpux*) | |
6f57a957 AC |
8076 | # Find out what ABI is being produced by ac_compile, and set mode |
8077 | # options accordingly. | |
7083c021 AC |
8078 | echo 'int i;' > conftest.$ac_ext |
8079 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8080 | (eval $ac_compile) 2>&5 | |
8081 | ac_status=$? | |
8082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8083 | test $ac_status = 0; }; then | |
8084 | case `/usr/bin/file conftest.$ac_objext` in | |
8085 | *ELF-32*) | |
6f57a957 | 8086 | HPUX_IA64_MODE=32 |
7083c021 AC |
8087 | ;; |
8088 | *ELF-64*) | |
6f57a957 | 8089 | HPUX_IA64_MODE=64 |
7083c021 AC |
8090 | ;; |
8091 | esac | |
8092 | fi | |
8093 | rm -rf conftest* | |
8094 | ;; | |
8095 | *-*-irix6*) | |
6f57a957 AC |
8096 | # Find out what ABI is being produced by ac_compile, and set linker |
8097 | # options accordingly. | |
b6d0720c | 8098 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7083c021 AC |
8099 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8100 | (eval $ac_compile) 2>&5 | |
8101 | ac_status=$? | |
8102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8103 | test $ac_status = 0; }; then | |
6f57a957 | 8104 | if test yes = "$lt_cv_prog_gnu_ld"; then |
7083c021 AC |
8105 | case `/usr/bin/file conftest.$ac_objext` in |
8106 | *32-bit*) | |
8107 | LD="${LD-ld} -melf32bsmip" | |
8108 | ;; | |
8109 | *N32*) | |
8110 | LD="${LD-ld} -melf32bmipn32" | |
8111 | ;; | |
8112 | *64-bit*) | |
8113 | LD="${LD-ld} -melf64bmip" | |
8114 | ;; | |
8115 | esac | |
8116 | else | |
8117 | case `/usr/bin/file conftest.$ac_objext` in | |
8118 | *32-bit*) | |
8119 | LD="${LD-ld} -32" | |
8120 | ;; | |
8121 | *N32*) | |
8122 | LD="${LD-ld} -n32" | |
8123 | ;; | |
8124 | *64-bit*) | |
8125 | LD="${LD-ld} -64" | |
8126 | ;; | |
8127 | esac | |
8128 | fi | |
8129 | fi | |
8130 | rm -rf conftest* | |
8131 | ;; | |
8132 | ||
6f57a957 AC |
8133 | mips64*-*linux*) |
8134 | # Find out what ABI is being produced by ac_compile, and set linker | |
8135 | # options accordingly. | |
8136 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
8137 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8138 | (eval $ac_compile) 2>&5 | |
8139 | ac_status=$? | |
8140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8141 | test $ac_status = 0; }; then | |
8142 | emul=elf | |
8143 | case `/usr/bin/file conftest.$ac_objext` in | |
8144 | *32-bit*) | |
8145 | emul="${emul}32" | |
8146 | ;; | |
8147 | *64-bit*) | |
8148 | emul="${emul}64" | |
8149 | ;; | |
8150 | esac | |
8151 | case `/usr/bin/file conftest.$ac_objext` in | |
8152 | *MSB*) | |
8153 | emul="${emul}btsmip" | |
8154 | ;; | |
8155 | *LSB*) | |
8156 | emul="${emul}ltsmip" | |
8157 | ;; | |
8158 | esac | |
8159 | case `/usr/bin/file conftest.$ac_objext` in | |
8160 | *N32*) | |
8161 | emul="${emul}n32" | |
8162 | ;; | |
8163 | esac | |
8164 | LD="${LD-ld} -m $emul" | |
8165 | fi | |
8166 | rm -rf conftest* | |
8167 | ;; | |
8168 | ||
8169 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7083c021 | 8170 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6f57a957 AC |
8171 | # Find out what ABI is being produced by ac_compile, and set linker |
8172 | # options accordingly. Note that the listed cases only cover the | |
8173 | # situations where additional linker options are needed (such as when | |
8174 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
8175 | # vice versa); the common cases where no linker options are needed do | |
8176 | # not appear in the list. | |
7083c021 AC |
8177 | echo 'int i;' > conftest.$ac_ext |
8178 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8179 | (eval $ac_compile) 2>&5 | |
8180 | ac_status=$? | |
8181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8182 | test $ac_status = 0; }; then | |
8183 | case `/usr/bin/file conftest.o` in | |
8184 | *32-bit*) | |
8185 | case $host in | |
8186 | x86_64-*kfreebsd*-gnu) | |
8187 | LD="${LD-ld} -m elf_i386_fbsd" | |
8188 | ;; | |
8189 | x86_64-*linux*) | |
6f57a957 AC |
8190 | case `/usr/bin/file conftest.o` in |
8191 | *x86-64*) | |
8192 | LD="${LD-ld} -m elf32_x86_64" | |
8193 | ;; | |
8194 | *) | |
8195 | LD="${LD-ld} -m elf_i386" | |
8196 | ;; | |
8197 | esac | |
8198 | ;; | |
8199 | powerpc64le-*linux*) | |
8200 | LD="${LD-ld} -m elf32lppclinux" | |
7083c021 | 8201 | ;; |
6f57a957 | 8202 | powerpc64-*linux*) |
7083c021 AC |
8203 | LD="${LD-ld} -m elf32ppclinux" |
8204 | ;; | |
8205 | s390x-*linux*) | |
8206 | LD="${LD-ld} -m elf_s390" | |
8207 | ;; | |
8208 | sparc64-*linux*) | |
8209 | LD="${LD-ld} -m elf32_sparc" | |
8210 | ;; | |
8211 | esac | |
8212 | ;; | |
8213 | *64-bit*) | |
8214 | case $host in | |
8215 | x86_64-*kfreebsd*-gnu) | |
8216 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8217 | ;; | |
8218 | x86_64-*linux*) | |
8219 | LD="${LD-ld} -m elf_x86_64" | |
8220 | ;; | |
6f57a957 AC |
8221 | powerpcle-*linux*) |
8222 | LD="${LD-ld} -m elf64lppc" | |
8223 | ;; | |
8224 | powerpc-*linux*) | |
7083c021 AC |
8225 | LD="${LD-ld} -m elf64ppc" |
8226 | ;; | |
8227 | s390*-*linux*|s390*-*tpf*) | |
8228 | LD="${LD-ld} -m elf64_s390" | |
8229 | ;; | |
8230 | sparc*-*linux*) | |
8231 | LD="${LD-ld} -m elf64_sparc" | |
8232 | ;; | |
8233 | esac | |
8234 | ;; | |
8235 | esac | |
8236 | fi | |
8237 | rm -rf conftest* | |
8238 | ;; | |
8239 | ||
8240 | *-*-sco3.2v5*) | |
8241 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6f57a957 | 8242 | SAVE_CFLAGS=$CFLAGS |
7083c021 AC |
8243 | CFLAGS="$CFLAGS -belf" |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
8245 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
08c2568c | 8246 | if ${lt_cv_cc_needs_belf+:} false; then : |
7083c021 AC |
8247 | $as_echo_n "(cached) " >&6 |
8248 | else | |
8249 | ac_ext=c | |
8250 | ac_cpp='$CPP $CPPFLAGS' | |
8251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8254 | ||
8255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8256 | /* end confdefs.h. */ | |
8257 | ||
8258 | int | |
8259 | main () | |
8260 | { | |
8261 | ||
8262 | ; | |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
8266 | if ac_fn_c_try_link "$LINENO"; then : | |
8267 | lt_cv_cc_needs_belf=yes | |
8268 | else | |
8269 | lt_cv_cc_needs_belf=no | |
8270 | fi | |
8271 | rm -f core conftest.err conftest.$ac_objext \ | |
8272 | conftest$ac_exeext conftest.$ac_ext | |
8273 | ac_ext=c | |
8274 | ac_cpp='$CPP $CPPFLAGS' | |
8275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8278 | ||
8279 | fi | |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
8281 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6f57a957 | 8282 | if test yes != "$lt_cv_cc_needs_belf"; then |
7083c021 | 8283 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6f57a957 | 8284 | CFLAGS=$SAVE_CFLAGS |
7083c021 AC |
8285 | fi |
8286 | ;; | |
a949ab1a | 8287 | *-*solaris*) |
6f57a957 AC |
8288 | # Find out what ABI is being produced by ac_compile, and set linker |
8289 | # options accordingly. | |
7083c021 AC |
8290 | echo 'int i;' > conftest.$ac_ext |
8291 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8292 | (eval $ac_compile) 2>&5 | |
8293 | ac_status=$? | |
8294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8295 | test $ac_status = 0; }; then | |
8296 | case `/usr/bin/file conftest.o` in | |
8297 | *64-bit*) | |
8298 | case $lt_cv_prog_gnu_ld in | |
a949ab1a AC |
8299 | yes*) |
8300 | case $host in | |
6f57a957 | 8301 | i?86-*-solaris*|x86_64-*-solaris*) |
a949ab1a AC |
8302 | LD="${LD-ld} -m elf_x86_64" |
8303 | ;; | |
8304 | sparc*-*-solaris*) | |
8305 | LD="${LD-ld} -m elf64_sparc" | |
8306 | ;; | |
8307 | esac | |
8308 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
8309 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6f57a957 | 8310 | LD=${LD-ld}_sol2 |
a949ab1a AC |
8311 | fi |
8312 | ;; | |
7083c021 AC |
8313 | *) |
8314 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8315 | LD="${LD-ld} -64" | |
8316 | fi | |
8317 | ;; | |
8318 | esac | |
8319 | ;; | |
8320 | esac | |
8321 | fi | |
8322 | rm -rf conftest* | |
8323 | ;; | |
8324 | esac | |
8325 | ||
6f57a957 | 8326 | need_locks=$enable_libtool_lock |
7083c021 | 8327 | |
b6d0720c AC |
8328 | if test -n "$ac_tool_prefix"; then |
8329 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
8330 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8332 | $as_echo_n "checking for $ac_word... " >&6; } | |
8333 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
8334 | $as_echo_n "(cached) " >&6 | |
8335 | else | |
8336 | if test -n "$MANIFEST_TOOL"; then | |
8337 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
8338 | else | |
8339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8340 | for as_dir in $PATH | |
8341 | do | |
8342 | IFS=$as_save_IFS | |
8343 | test -z "$as_dir" && as_dir=. | |
8344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
8346 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
8347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8348 | break 2 | |
8349 | fi | |
8350 | done | |
8351 | done | |
8352 | IFS=$as_save_IFS | |
8353 | ||
8354 | fi | |
8355 | fi | |
8356 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
8357 | if test -n "$MANIFEST_TOOL"; then | |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
8359 | $as_echo "$MANIFEST_TOOL" >&6; } | |
8360 | else | |
8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8362 | $as_echo "no" >&6; } | |
8363 | fi | |
8364 | ||
8365 | ||
8366 | fi | |
8367 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
8368 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
8369 | # Extract the first word of "mt", so it can be a program name with args. | |
8370 | set dummy mt; ac_word=$2 | |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8372 | $as_echo_n "checking for $ac_word... " >&6; } | |
8373 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
8374 | $as_echo_n "(cached) " >&6 | |
8375 | else | |
8376 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8377 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
8378 | else | |
8379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8380 | for as_dir in $PATH | |
8381 | do | |
8382 | IFS=$as_save_IFS | |
8383 | test -z "$as_dir" && as_dir=. | |
8384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
8386 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
8387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8388 | break 2 | |
8389 | fi | |
8390 | done | |
8391 | done | |
8392 | IFS=$as_save_IFS | |
8393 | ||
8394 | fi | |
8395 | fi | |
8396 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
8397 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
8399 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
8400 | else | |
8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8402 | $as_echo "no" >&6; } | |
8403 | fi | |
8404 | ||
8405 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
8406 | MANIFEST_TOOL=":" | |
8407 | else | |
8408 | case $cross_compiling:$ac_tool_warned in | |
8409 | yes:) | |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8411 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8412 | ac_tool_warned=yes ;; | |
8413 | esac | |
8414 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
8415 | fi | |
8416 | else | |
8417 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
8418 | fi | |
8419 | ||
8420 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
8422 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
8423 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
8424 | $as_echo_n "(cached) " >&6 | |
8425 | else | |
8426 | lt_cv_path_mainfest_tool=no | |
8427 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
8428 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
8429 | cat conftest.err >&5 | |
8430 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
8431 | lt_cv_path_mainfest_tool=yes | |
8432 | fi | |
8433 | rm -f conftest* | |
8434 | fi | |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
8436 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6f57a957 | 8437 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b6d0720c AC |
8438 | MANIFEST_TOOL=: |
8439 | fi | |
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
7083c021 AC |
8445 | |
8446 | case $host_os in | |
8447 | rhapsody* | darwin*) | |
8448 | if test -n "$ac_tool_prefix"; then | |
8449 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8450 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8452 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8453 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
7083c021 AC |
8454 | $as_echo_n "(cached) " >&6 |
8455 | else | |
8456 | if test -n "$DSYMUTIL"; then | |
8457 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8458 | else | |
8459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8460 | for as_dir in $PATH | |
db137867 AC |
8461 | do |
8462 | IFS=$as_save_IFS | |
8463 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8464 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8466 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
8467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8468 | break 2 |
8469 | fi | |
8470 | done | |
7083c021 AC |
8471 | done |
8472 | IFS=$as_save_IFS | |
8473 | ||
8474 | fi | |
8475 | fi | |
8476 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8477 | if test -n "$DSYMUTIL"; then | |
8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8479 | $as_echo "$DSYMUTIL" >&6; } | |
8480 | else | |
8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8482 | $as_echo "no" >&6; } | |
8483 | fi | |
8484 | ||
8485 | ||
8486 | fi | |
8487 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8488 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8489 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8490 | set dummy dsymutil; ac_word=$2 | |
8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8492 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8493 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
7083c021 AC |
8494 | $as_echo_n "(cached) " >&6 |
8495 | else | |
8496 | if test -n "$ac_ct_DSYMUTIL"; then | |
8497 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8498 | else | |
8499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8500 | for as_dir in $PATH | |
8501 | do | |
8502 | IFS=$as_save_IFS | |
8503 | test -z "$as_dir" && as_dir=. | |
8504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8506 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
8507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8508 | break 2 | |
8509 | fi | |
db137867 | 8510 | done |
7083c021 | 8511 | done |
db137867 AC |
8512 | IFS=$as_save_IFS |
8513 | ||
8514 | fi | |
8515 | fi | |
7083c021 AC |
8516 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8517 | if test -n "$ac_ct_DSYMUTIL"; then | |
8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8519 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
db137867 | 8520 | else |
7083c021 | 8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8522 | $as_echo "no" >&6; } |
db137867 AC |
8523 | fi |
8524 | ||
7083c021 AC |
8525 | if test "x$ac_ct_DSYMUTIL" = x; then |
8526 | DSYMUTIL=":" | |
db137867 AC |
8527 | else |
8528 | case $cross_compiling:$ac_tool_warned in | |
8529 | yes:) | |
7083c021 | 8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8531 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
8532 | ac_tool_warned=yes ;; |
8533 | esac | |
7083c021 | 8534 | DSYMUTIL=$ac_ct_DSYMUTIL |
db137867 AC |
8535 | fi |
8536 | else | |
7083c021 | 8537 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
db137867 AC |
8538 | fi |
8539 | ||
7083c021 AC |
8540 | if test -n "$ac_tool_prefix"; then |
8541 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8542 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8544 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8545 | if ${ac_cv_prog_NMEDIT+:} false; then : |
030272f3 | 8546 | $as_echo_n "(cached) " >&6 |
db137867 | 8547 | else |
7083c021 AC |
8548 | if test -n "$NMEDIT"; then |
8549 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
db137867 AC |
8550 | else |
8551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8552 | for as_dir in $PATH | |
8553 | do | |
8554 | IFS=$as_save_IFS | |
8555 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8556 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8558 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
8559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8560 | break 2 |
8561 | fi | |
8562 | done | |
7083c021 | 8563 | done |
db137867 AC |
8564 | IFS=$as_save_IFS |
8565 | ||
8566 | fi | |
8567 | fi | |
7083c021 AC |
8568 | NMEDIT=$ac_cv_prog_NMEDIT |
8569 | if test -n "$NMEDIT"; then | |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8571 | $as_echo "$NMEDIT" >&6; } | |
db137867 | 8572 | else |
7083c021 | 8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8574 | $as_echo "no" >&6; } |
db137867 AC |
8575 | fi |
8576 | ||
8577 | ||
8578 | fi | |
7083c021 AC |
8579 | if test -z "$ac_cv_prog_NMEDIT"; then |
8580 | ac_ct_NMEDIT=$NMEDIT | |
8581 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8582 | set dummy nmedit; ac_word=$2 | |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8584 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8585 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
030272f3 | 8586 | $as_echo_n "(cached) " >&6 |
db137867 | 8587 | else |
7083c021 AC |
8588 | if test -n "$ac_ct_NMEDIT"; then |
8589 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
db137867 AC |
8590 | else |
8591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8592 | for as_dir in $PATH | |
8593 | do | |
8594 | IFS=$as_save_IFS | |
8595 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8596 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8598 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
8599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8600 | break 2 |
8601 | fi | |
8602 | done | |
7083c021 | 8603 | done |
db137867 AC |
8604 | IFS=$as_save_IFS |
8605 | ||
8606 | fi | |
8607 | fi | |
7083c021 AC |
8608 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8609 | if test -n "$ac_ct_NMEDIT"; then | |
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8611 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
db137867 | 8612 | else |
7083c021 | 8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8614 | $as_echo "no" >&6; } |
db137867 AC |
8615 | fi |
8616 | ||
7083c021 AC |
8617 | if test "x$ac_ct_NMEDIT" = x; then |
8618 | NMEDIT=":" | |
db137867 AC |
8619 | else |
8620 | case $cross_compiling:$ac_tool_warned in | |
8621 | yes:) | |
7083c021 | 8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8623 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
8624 | ac_tool_warned=yes ;; |
8625 | esac | |
7083c021 | 8626 | NMEDIT=$ac_ct_NMEDIT |
db137867 AC |
8627 | fi |
8628 | else | |
7083c021 | 8629 | NMEDIT="$ac_cv_prog_NMEDIT" |
db137867 AC |
8630 | fi |
8631 | ||
7083c021 AC |
8632 | if test -n "$ac_tool_prefix"; then |
8633 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8634 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8636 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8637 | if ${ac_cv_prog_LIPO+:} false; then : |
7083c021 AC |
8638 | $as_echo_n "(cached) " >&6 |
8639 | else | |
8640 | if test -n "$LIPO"; then | |
8641 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8642 | else | |
8643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8644 | for as_dir in $PATH | |
8645 | do | |
8646 | IFS=$as_save_IFS | |
8647 | test -z "$as_dir" && as_dir=. | |
8648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8650 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
8651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8652 | break 2 | |
8653 | fi | |
8654 | done | |
8655 | done | |
8656 | IFS=$as_save_IFS | |
db137867 | 8657 | |
db137867 | 8658 | fi |
db137867 | 8659 | fi |
7083c021 AC |
8660 | LIPO=$ac_cv_prog_LIPO |
8661 | if test -n "$LIPO"; then | |
8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8663 | $as_echo "$LIPO" >&6; } | |
db137867 | 8664 | else |
7083c021 | 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8666 | $as_echo "no" >&6; } |
db137867 AC |
8667 | fi |
8668 | ||
7083c021 AC |
8669 | |
8670 | fi | |
8671 | if test -z "$ac_cv_prog_LIPO"; then | |
8672 | ac_ct_LIPO=$LIPO | |
8673 | # Extract the first word of "lipo", so it can be a program name with args. | |
8674 | set dummy lipo; ac_word=$2 | |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8676 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8677 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
030272f3 | 8678 | $as_echo_n "(cached) " >&6 |
db137867 | 8679 | else |
7083c021 AC |
8680 | if test -n "$ac_ct_LIPO"; then |
8681 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8682 | else | |
8683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8684 | for as_dir in $PATH | |
8685 | do | |
8686 | IFS=$as_save_IFS | |
8687 | test -z "$as_dir" && as_dir=. | |
8688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8690 | ac_cv_prog_ac_ct_LIPO="lipo" |
8691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8692 | break 2 | |
8693 | fi | |
8694 | done | |
db137867 | 8695 | done |
7083c021 | 8696 | IFS=$as_save_IFS |
db137867 | 8697 | |
7083c021 AC |
8698 | fi |
8699 | fi | |
8700 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8701 | if test -n "$ac_ct_LIPO"; then | |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8703 | $as_echo "$ac_ct_LIPO" >&6; } | |
db137867 | 8704 | else |
7083c021 | 8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8706 | $as_echo "no" >&6; } |
db137867 AC |
8707 | fi |
8708 | ||
7083c021 AC |
8709 | if test "x$ac_ct_LIPO" = x; then |
8710 | LIPO=":" | |
db137867 | 8711 | else |
7083c021 AC |
8712 | case $cross_compiling:$ac_tool_warned in |
8713 | yes:) | |
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8715 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8716 | ac_tool_warned=yes ;; | |
8717 | esac | |
8718 | LIPO=$ac_ct_LIPO | |
db137867 | 8719 | fi |
7083c021 AC |
8720 | else |
8721 | LIPO="$ac_cv_prog_LIPO" | |
db137867 AC |
8722 | fi |
8723 | ||
b676ea3b | 8724 | if test -n "$ac_tool_prefix"; then |
7083c021 AC |
8725 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
8726 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8728 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8729 | if ${ac_cv_prog_OTOOL+:} false; then : |
030272f3 | 8730 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8731 | else |
7083c021 AC |
8732 | if test -n "$OTOOL"; then |
8733 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
b676ea3b AC |
8734 | else |
8735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8736 | for as_dir in $PATH | |
8737 | do | |
8738 | IFS=$as_save_IFS | |
8739 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8740 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8742 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8744 | break 2 |
8745 | fi | |
8746 | done | |
7083c021 | 8747 | done |
b676ea3b AC |
8748 | IFS=$as_save_IFS |
8749 | ||
8750 | fi | |
8751 | fi | |
7083c021 AC |
8752 | OTOOL=$ac_cv_prog_OTOOL |
8753 | if test -n "$OTOOL"; then | |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8755 | $as_echo "$OTOOL" >&6; } | |
b676ea3b | 8756 | else |
7083c021 | 8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8758 | $as_echo "no" >&6; } |
b676ea3b AC |
8759 | fi |
8760 | ||
8761 | ||
8762 | fi | |
7083c021 AC |
8763 | if test -z "$ac_cv_prog_OTOOL"; then |
8764 | ac_ct_OTOOL=$OTOOL | |
8765 | # Extract the first word of "otool", so it can be a program name with args. | |
8766 | set dummy otool; ac_word=$2 | |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8768 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8769 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
030272f3 | 8770 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8771 | else |
7083c021 AC |
8772 | if test -n "$ac_ct_OTOOL"; then |
8773 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
b676ea3b AC |
8774 | else |
8775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8776 | for as_dir in $PATH | |
8777 | do | |
8778 | IFS=$as_save_IFS | |
8779 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8780 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8782 | ac_cv_prog_ac_ct_OTOOL="otool" |
8783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8784 | break 2 |
8785 | fi | |
8786 | done | |
7083c021 | 8787 | done |
b676ea3b AC |
8788 | IFS=$as_save_IFS |
8789 | ||
8790 | fi | |
8791 | fi | |
7083c021 AC |
8792 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
8793 | if test -n "$ac_ct_OTOOL"; then | |
8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8795 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b676ea3b | 8796 | else |
7083c021 | 8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8798 | $as_echo "no" >&6; } |
b676ea3b AC |
8799 | fi |
8800 | ||
7083c021 AC |
8801 | if test "x$ac_ct_OTOOL" = x; then |
8802 | OTOOL=":" | |
b676ea3b AC |
8803 | else |
8804 | case $cross_compiling:$ac_tool_warned in | |
8805 | yes:) | |
7083c021 | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8807 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b676ea3b AC |
8808 | ac_tool_warned=yes ;; |
8809 | esac | |
7083c021 | 8810 | OTOOL=$ac_ct_OTOOL |
b676ea3b AC |
8811 | fi |
8812 | else | |
7083c021 | 8813 | OTOOL="$ac_cv_prog_OTOOL" |
b676ea3b AC |
8814 | fi |
8815 | ||
8816 | if test -n "$ac_tool_prefix"; then | |
7083c021 AC |
8817 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
8818 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8820 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8821 | if ${ac_cv_prog_OTOOL64+:} false; then : |
030272f3 | 8822 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8823 | else |
7083c021 AC |
8824 | if test -n "$OTOOL64"; then |
8825 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
b676ea3b AC |
8826 | else |
8827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8828 | for as_dir in $PATH | |
8829 | do | |
8830 | IFS=$as_save_IFS | |
8831 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8832 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8834 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8836 | break 2 |
8837 | fi | |
8838 | done | |
7083c021 | 8839 | done |
b676ea3b AC |
8840 | IFS=$as_save_IFS |
8841 | ||
8842 | fi | |
8843 | fi | |
7083c021 AC |
8844 | OTOOL64=$ac_cv_prog_OTOOL64 |
8845 | if test -n "$OTOOL64"; then | |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8847 | $as_echo "$OTOOL64" >&6; } | |
b676ea3b | 8848 | else |
7083c021 | 8849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8850 | $as_echo "no" >&6; } |
b676ea3b AC |
8851 | fi |
8852 | ||
8853 | ||
8854 | fi | |
7083c021 AC |
8855 | if test -z "$ac_cv_prog_OTOOL64"; then |
8856 | ac_ct_OTOOL64=$OTOOL64 | |
8857 | # Extract the first word of "otool64", so it can be a program name with args. | |
8858 | set dummy otool64; ac_word=$2 | |
8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8860 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8861 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
030272f3 | 8862 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8863 | else |
7083c021 AC |
8864 | if test -n "$ac_ct_OTOOL64"; then |
8865 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
b676ea3b AC |
8866 | else |
8867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8868 | for as_dir in $PATH | |
8869 | do | |
8870 | IFS=$as_save_IFS | |
8871 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8872 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8874 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8876 | break 2 |
8877 | fi | |
8878 | done | |
7083c021 | 8879 | done |
b676ea3b AC |
8880 | IFS=$as_save_IFS |
8881 | ||
8882 | fi | |
8883 | fi | |
7083c021 AC |
8884 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
8885 | if test -n "$ac_ct_OTOOL64"; then | |
8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8887 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b676ea3b | 8888 | else |
7083c021 | 8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8890 | $as_echo "no" >&6; } |
b676ea3b AC |
8891 | fi |
8892 | ||
7083c021 AC |
8893 | if test "x$ac_ct_OTOOL64" = x; then |
8894 | OTOOL64=":" | |
b676ea3b AC |
8895 | else |
8896 | case $cross_compiling:$ac_tool_warned in | |
8897 | yes:) | |
7083c021 | 8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b676ea3b AC |
8900 | ac_tool_warned=yes ;; |
8901 | esac | |
7083c021 | 8902 | OTOOL64=$ac_ct_OTOOL64 |
b676ea3b AC |
8903 | fi |
8904 | else | |
7083c021 | 8905 | OTOOL64="$ac_cv_prog_OTOOL64" |
b676ea3b AC |
8906 | fi |
8907 | ||
8908 | ||
b676ea3b | 8909 | |
b676ea3b | 8910 | |
7083c021 AC |
8911 | |
8912 | ||
8913 | ||
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | ||
8919 | ||
8920 | ||
8921 | ||
8922 | ||
8923 | ||
8924 | ||
8925 | ||
8926 | ||
8927 | ||
8928 | ||
8929 | ||
8930 | ||
8931 | ||
8932 | ||
8933 | ||
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8935 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
08c2568c | 8936 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
7083c021 AC |
8937 | $as_echo_n "(cached) " >&6 |
8938 | else | |
8939 | lt_cv_apple_cc_single_mod=no | |
6f57a957 | 8940 | if test -z "$LT_MULTI_MODULE"; then |
7083c021 AC |
8941 | # By default we will add the -single_module flag. You can override |
8942 | # by either setting the environment variable LT_MULTI_MODULE | |
8943 | # non-empty at configure time, or by adding -multi_module to the | |
8944 | # link flags. | |
8945 | rm -rf libconftest.dylib* | |
8946 | echo "int foo(void){return 1;}" > conftest.c | |
8947 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8948 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8949 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8950 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8951 | _lt_result=$? | |
a949ab1a AC |
8952 | # If there is a non-empty error log, and "single_module" |
8953 | # appears in it, assume the flag caused a linker warning | |
8954 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8955 | cat conftest.err >&5 | |
8956 | # Otherwise, if the output was created with a 0 exit code from | |
8957 | # the compiler, it worked. | |
6f57a957 | 8958 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
7083c021 AC |
8959 | lt_cv_apple_cc_single_mod=yes |
8960 | else | |
8961 | cat conftest.err >&5 | |
8962 | fi | |
8963 | rm -rf libconftest.dylib* | |
8964 | rm -f conftest.* | |
8965 | fi | |
8966 | fi | |
8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8968 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
a949ab1a | 8969 | |
7083c021 AC |
8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8971 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
08c2568c | 8972 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7083c021 AC |
8973 | $as_echo_n "(cached) " >&6 |
8974 | else | |
8975 | lt_cv_ld_exported_symbols_list=no | |
8976 | save_LDFLAGS=$LDFLAGS | |
8977 | echo "_main" > conftest.sym | |
8978 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8980 | /* end confdefs.h. */ | |
8981 | ||
8982 | int | |
8983 | main () | |
8984 | { | |
8985 | ||
8986 | ; | |
8987 | return 0; | |
b676ea3b AC |
8988 | } |
8989 | _ACEOF | |
7083c021 | 8990 | if ac_fn_c_try_link "$LINENO"; then : |
b676ea3b AC |
8991 | lt_cv_ld_exported_symbols_list=yes |
8992 | else | |
7083c021 | 8993 | lt_cv_ld_exported_symbols_list=no |
b676ea3b | 8994 | fi |
7083c021 AC |
8995 | rm -f core conftest.err conftest.$ac_objext \ |
8996 | conftest$ac_exeext conftest.$ac_ext | |
6f57a957 | 8997 | LDFLAGS=$save_LDFLAGS |
b676ea3b AC |
8998 | |
8999 | fi | |
7083c021 | 9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
030272f3 | 9001 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
a949ab1a | 9002 | |
b6d0720c AC |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
9004 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
9005 | if ${lt_cv_ld_force_load+:} false; then : | |
9006 | $as_echo_n "(cached) " >&6 | |
9007 | else | |
9008 | lt_cv_ld_force_load=no | |
9009 | cat > conftest.c << _LT_EOF | |
9010 | int forced_loaded() { return 2;} | |
9011 | _LT_EOF | |
9012 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9013 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9014 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9015 | $AR cru libconftest.a conftest.o 2>&5 | |
9016 | echo "$RANLIB libconftest.a" >&5 | |
9017 | $RANLIB libconftest.a 2>&5 | |
9018 | cat > conftest.c << _LT_EOF | |
9019 | int main() { return 0;} | |
9020 | _LT_EOF | |
9021 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9022 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9023 | _lt_result=$? | |
a949ab1a AC |
9024 | if test -s conftest.err && $GREP force_load conftest.err; then |
9025 | cat conftest.err >&5 | |
6f57a957 | 9026 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b6d0720c AC |
9027 | lt_cv_ld_force_load=yes |
9028 | else | |
9029 | cat conftest.err >&5 | |
9030 | fi | |
9031 | rm -f conftest.err libconftest.a conftest conftest.c | |
9032 | rm -rf conftest.dSYM | |
9033 | ||
9034 | fi | |
9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
9036 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b676ea3b | 9037 | case $host_os in |
7083c021 | 9038 | rhapsody* | darwin1.[012]) |
6f57a957 | 9039 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
b676ea3b | 9040 | darwin1.*) |
6f57a957 | 9041 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7083c021 | 9042 | darwin*) # darwin 5.x on |
b676ea3b AC |
9043 | # if running on 10.5 or later, the deployment target defaults |
9044 | # to the OS version, if on x86, and 10.4, the deployment | |
9045 | # target defaults to 10.4. Don't you love it? | |
9046 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7083c021 | 9047 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
6f57a957 AC |
9048 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
9049 | 10.[012][,.]*) | |
9050 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7083c021 | 9051 | 10.*) |
6f57a957 | 9052 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
b676ea3b AC |
9053 | esac |
9054 | ;; | |
9055 | esac | |
6f57a957 | 9056 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
b676ea3b AC |
9057 | _lt_dar_single_mod='$single_module' |
9058 | fi | |
6f57a957 AC |
9059 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
9060 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
b676ea3b | 9061 | else |
6f57a957 | 9062 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
b676ea3b | 9063 | fi |
6f57a957 | 9064 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
7083c021 | 9065 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
b676ea3b AC |
9066 | else |
9067 | _lt_dsymutil= | |
9068 | fi | |
9069 | ;; | |
9070 | esac | |
9071 | ||
6f57a957 AC |
9072 | # func_munge_path_list VARIABLE PATH |
9073 | # ----------------------------------- | |
9074 | # VARIABLE is name of variable containing _space_ separated list of | |
9075 | # directories to be munged by the contents of PATH, which is string | |
9076 | # having a format: | |
9077 | # "DIR[:DIR]:" | |
9078 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
9079 | # ":DIR[:DIR]" | |
9080 | # string "DIR[ DIR]" will be appended to VARIABLE | |
9081 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
9082 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
9083 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
9084 | # "DIR[:DIR]" | |
9085 | # VARIABLE will be replaced by "DIR[ DIR]" | |
9086 | func_munge_path_list () | |
9087 | { | |
9088 | case x$2 in | |
9089 | x) | |
9090 | ;; | |
9091 | *:) | |
9092 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
9093 | ;; | |
9094 | x:*) | |
9095 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
9096 | ;; | |
9097 | *::*) | |
9098 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
9099 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
9100 | ;; | |
9101 | *) | |
9102 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
9103 | ;; | |
9104 | esac | |
9105 | } | |
9106 | ||
7083c021 AC |
9107 | for ac_header in dlfcn.h |
9108 | do : | |
9109 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9110 | " | |
08c2568c | 9111 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7083c021 AC |
9112 | cat >>confdefs.h <<_ACEOF |
9113 | #define HAVE_DLFCN_H 1 | |
9114 | _ACEOF | |
b676ea3b | 9115 | |
db137867 AC |
9116 | fi |
9117 | ||
7083c021 AC |
9118 | done |
9119 | ||
9120 | ||
9121 | ||
b6d0720c AC |
9122 | |
9123 | ||
7083c021 AC |
9124 | # Set options |
9125 | ||
9126 | ||
9127 | ||
9128 | enable_dlopen=no | |
9129 | ||
9130 | ||
9131 | enable_win32_dll=no | |
9132 | ||
9133 | ||
9134 | ||
db137867 AC |
9135 | |
9136 | ||
9137 | # Check whether --with-pic was given. | |
7083c021 | 9138 | if test "${with_pic+set}" = set; then : |
a949ab1a AC |
9139 | withval=$with_pic; lt_p=${PACKAGE-default} |
9140 | case $withval in | |
9141 | yes|no) pic_mode=$withval ;; | |
9142 | *) | |
9143 | pic_mode=default | |
9144 | # Look at the argument we got. We use all the common list separators. | |
6f57a957 | 9145 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a949ab1a | 9146 | for lt_pkg in $withval; do |
6f57a957 | 9147 | IFS=$lt_save_ifs |
a949ab1a AC |
9148 | if test "X$lt_pkg" = "X$lt_p"; then |
9149 | pic_mode=yes | |
9150 | fi | |
9151 | done | |
6f57a957 | 9152 | IFS=$lt_save_ifs |
a949ab1a AC |
9153 | ;; |
9154 | esac | |
db137867 AC |
9155 | else |
9156 | pic_mode=default | |
9157 | fi | |
9158 | ||
7083c021 | 9159 | |
db137867 AC |
9160 | |
9161 | ||
db137867 | 9162 | |
db137867 | 9163 | |
db137867 | 9164 | |
db137867 | 9165 | |
7083c021 AC |
9166 | # Check whether --enable-fast-install was given. |
9167 | if test "${enable_fast_install+set}" = set; then : | |
9168 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9169 | case $enableval in | |
9170 | yes) enable_fast_install=yes ;; | |
9171 | no) enable_fast_install=no ;; | |
9172 | *) | |
9173 | enable_fast_install=no | |
9174 | # Look at the argument we got. We use all the common list separators. | |
6f57a957 | 9175 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7083c021 | 9176 | for pkg in $enableval; do |
6f57a957 | 9177 | IFS=$lt_save_ifs |
7083c021 AC |
9178 | if test "X$pkg" = "X$p"; then |
9179 | enable_fast_install=yes | |
9180 | fi | |
9181 | done | |
6f57a957 | 9182 | IFS=$lt_save_ifs |
7083c021 AC |
9183 | ;; |
9184 | esac | |
9185 | else | |
9186 | enable_fast_install=yes | |
9187 | fi | |
db137867 | 9188 | |
db137867 | 9189 | |
db137867 | 9190 | |
db137867 AC |
9191 | |
9192 | ||
db137867 | 9193 | |
db137867 AC |
9194 | |
9195 | ||
6f57a957 AC |
9196 | shared_archive_member_spec= |
9197 | case $host,$enable_shared in | |
9198 | power*-*-aix[5-9]*,yes) | |
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
9200 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
9201 | ||
9202 | # Check whether --with-aix-soname was given. | |
9203 | if test "${with_aix_soname+set}" = set; then : | |
9204 | withval=$with_aix_soname; case $withval in | |
9205 | aix|svr4|both) | |
9206 | ;; | |
9207 | *) | |
9208 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
9209 | ;; | |
9210 | esac | |
9211 | lt_cv_with_aix_soname=$with_aix_soname | |
9212 | else | |
9213 | if ${lt_cv_with_aix_soname+:} false; then : | |
9214 | $as_echo_n "(cached) " >&6 | |
9215 | else | |
9216 | lt_cv_with_aix_soname=aix | |
9217 | fi | |
9218 | ||
9219 | with_aix_soname=$lt_cv_with_aix_soname | |
9220 | fi | |
9221 | ||
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
9223 | $as_echo "$with_aix_soname" >&6; } | |
9224 | if test aix != "$with_aix_soname"; then | |
9225 | # For the AIX way of multilib, we name the shared archive member | |
9226 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
9227 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
9228 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
9229 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
9230 | if test 64 = "${OBJECT_MODE-32}"; then | |
9231 | shared_archive_member_spec=shr_64 | |
9232 | else | |
9233 | shared_archive_member_spec=shr | |
9234 | fi | |
9235 | fi | |
9236 | ;; | |
9237 | *) | |
9238 | with_aix_soname=aix | |
9239 | ;; | |
9240 | esac | |
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
db137867 | 9248 | |
db137867 | 9249 | |
db137867 | 9250 | |
7083c021 | 9251 | # This can be used to rebuild libtool when needed |
6f57a957 | 9252 | LIBTOOL_DEPS=$ltmain |
db137867 | 9253 | |
7083c021 AC |
9254 | # Always use our own libtool. |
9255 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
db137867 | 9256 | |
db137867 | 9257 | |
db137867 | 9258 | |
db137867 | 9259 | |
db137867 | 9260 | |
db137867 | 9261 | |
db137867 | 9262 | |
db137867 | 9263 | |
db137867 | 9264 | |
db137867 | 9265 | |
db137867 | 9266 | |
db137867 | 9267 | |
db137867 | 9268 | |
db137867 | 9269 | |
db137867 | 9270 | |
db137867 | 9271 | |
db137867 | 9272 | |
db137867 | 9273 | |
db137867 | 9274 | |
db137867 | 9275 | |
db137867 | 9276 | |
a949ab1a AC |
9277 | |
9278 | ||
9279 | ||
9280 | ||
db137867 | 9281 | |
db137867 | 9282 | |
b6d0720c | 9283 | |
db137867 | 9284 | |
db137867 | 9285 | |
7083c021 | 9286 | test -z "$LN_S" && LN_S="ln -s" |
db137867 | 9287 | |
db137867 | 9288 | |
db137867 | 9289 | |
db137867 | 9290 | |
db137867 | 9291 | |
db137867 | 9292 | |
db137867 | 9293 | |
db137867 | 9294 | |
db137867 | 9295 | |
db137867 | 9296 | |
db137867 | 9297 | |
db137867 | 9298 | |
db137867 | 9299 | |
db137867 | 9300 | |
6f57a957 | 9301 | if test -n "${ZSH_VERSION+set}"; then |
7083c021 | 9302 | setopt NO_GLOB_SUBST |
db137867 | 9303 | fi |
db137867 | 9304 | |
7083c021 AC |
9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9306 | $as_echo_n "checking for objdir... " >&6; } | |
08c2568c | 9307 | if ${lt_cv_objdir+:} false; then : |
7083c021 | 9308 | $as_echo_n "(cached) " >&6 |
db137867 | 9309 | else |
7083c021 AC |
9310 | rm -f .libs 2>/dev/null |
9311 | mkdir .libs 2>/dev/null | |
9312 | if test -d .libs; then | |
9313 | lt_cv_objdir=.libs | |
9314 | else | |
9315 | # MS-DOS does not allow filenames that begin with a dot. | |
9316 | lt_cv_objdir=_libs | |
9317 | fi | |
9318 | rmdir .libs 2>/dev/null | |
db137867 | 9319 | fi |
7083c021 AC |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9321 | $as_echo "$lt_cv_objdir" >&6; } | |
9322 | objdir=$lt_cv_objdir | |
db137867 AC |
9323 | |
9324 | ||
db137867 | 9325 | |
db137867 | 9326 | |
db137867 | 9327 | |
7083c021 AC |
9328 | cat >>confdefs.h <<_ACEOF |
9329 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9330 | _ACEOF | |
db137867 | 9331 | |
db137867 | 9332 | |
db137867 | 9333 | |
db137867 | 9334 | |
7083c021 AC |
9335 | case $host_os in |
9336 | aix3*) | |
9337 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9338 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9339 | # vanish in a puff of smoke. | |
6f57a957 | 9340 | if test set != "${COLLECT_NAMES+set}"; then |
7083c021 AC |
9341 | COLLECT_NAMES= |
9342 | export COLLECT_NAMES | |
9343 | fi | |
9344 | ;; | |
9345 | esac | |
db137867 | 9346 | |
7083c021 AC |
9347 | # Global variables: |
9348 | ofile=libtool | |
9349 | can_build_shared=yes | |
db137867 | 9350 | |
6f57a957 | 9351 | # All known linkers require a '.a' archive for static linking (except MSVC, |
7083c021 AC |
9352 | # which needs '.lib'). |
9353 | libext=a | |
db137867 | 9354 | |
6f57a957 | 9355 | with_gnu_ld=$lt_cv_prog_gnu_ld |
db137867 | 9356 | |
6f57a957 AC |
9357 | old_CC=$CC |
9358 | old_CFLAGS=$CFLAGS | |
db137867 | 9359 | |
7083c021 AC |
9360 | # Set sane defaults for various variables |
9361 | test -z "$CC" && CC=cc | |
9362 | test -z "$LTCC" && LTCC=$CC | |
9363 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9364 | test -z "$LD" && LD=ld | |
9365 | test -z "$ac_objext" && ac_objext=o | |
db137867 | 9366 | |
6f57a957 AC |
9367 | func_cc_basename $compiler |
9368 | cc_basename=$func_cc_basename_result | |
db137867 | 9369 | |
db137867 | 9370 | |
7083c021 AC |
9371 | # Only perform the check for file, if the check method requires it |
9372 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9373 | case $deplibs_check_method in | |
9374 | file_magic*) | |
9375 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9377 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
08c2568c | 9378 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
7083c021 AC |
9379 | $as_echo_n "(cached) " >&6 |
9380 | else | |
9381 | case $MAGIC_CMD in | |
9382 | [\\/*] | ?:[\\/]*) | |
6f57a957 | 9383 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
7083c021 AC |
9384 | ;; |
9385 | *) | |
6f57a957 AC |
9386 | lt_save_MAGIC_CMD=$MAGIC_CMD |
9387 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
7083c021 AC |
9388 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
9389 | for ac_dir in $ac_dummy; do | |
6f57a957 | 9390 | IFS=$lt_save_ifs |
7083c021 | 9391 | test -z "$ac_dir" && ac_dir=. |
6f57a957 AC |
9392 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
9393 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
7083c021 AC |
9394 | if test -n "$file_magic_test_file"; then |
9395 | case $deplibs_check_method in | |
9396 | "file_magic "*) | |
9397 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6f57a957 | 9398 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
7083c021 AC |
9399 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
9400 | $EGREP "$file_magic_regex" > /dev/null; then | |
9401 | : | |
9402 | else | |
9403 | cat <<_LT_EOF 1>&2 | |
db137867 | 9404 | |
7083c021 AC |
9405 | *** Warning: the command libtool uses to detect shared libraries, |
9406 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9407 | *** The result is that libtool may fail to recognize shared libraries | |
9408 | *** as such. This will affect the creation of libtool libraries that | |
9409 | *** depend on shared libraries, but programs linked with such libtool | |
9410 | *** libraries will work regardless of this problem. Nevertheless, you | |
9411 | *** may want to report the problem to your system manager and/or to | |
9412 | *** bug-libtool@gnu.org | |
db137867 | 9413 | |
7083c021 AC |
9414 | _LT_EOF |
9415 | fi ;; | |
db137867 | 9416 | esac |
db137867 | 9417 | fi |
7083c021 AC |
9418 | break |
9419 | fi | |
9420 | done | |
6f57a957 AC |
9421 | IFS=$lt_save_ifs |
9422 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
7083c021 AC |
9423 | ;; |
9424 | esac | |
9425 | fi | |
db137867 | 9426 | |
6f57a957 | 9427 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
7083c021 AC |
9428 | if test -n "$MAGIC_CMD"; then |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9430 | $as_echo "$MAGIC_CMD" >&6; } | |
9431 | else | |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9433 | $as_echo "no" >&6; } | |
9434 | fi | |
db137867 | 9435 | |
db137867 | 9436 | |
db137867 | 9437 | |
7083c021 AC |
9438 | |
9439 | ||
9440 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9441 | if test -n "$ac_tool_prefix"; then | |
9442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9443 | $as_echo_n "checking for file... " >&6; } | |
08c2568c | 9444 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
7083c021 | 9445 | $as_echo_n "(cached) " >&6 |
db137867 | 9446 | else |
7083c021 AC |
9447 | case $MAGIC_CMD in |
9448 | [\\/*] | ?:[\\/]*) | |
6f57a957 | 9449 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
7083c021 AC |
9450 | ;; |
9451 | *) | |
6f57a957 AC |
9452 | lt_save_MAGIC_CMD=$MAGIC_CMD |
9453 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
7083c021 AC |
9454 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
9455 | for ac_dir in $ac_dummy; do | |
6f57a957 | 9456 | IFS=$lt_save_ifs |
7083c021 | 9457 | test -z "$ac_dir" && ac_dir=. |
6f57a957 AC |
9458 | if test -f "$ac_dir/file"; then |
9459 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
7083c021 AC |
9460 | if test -n "$file_magic_test_file"; then |
9461 | case $deplibs_check_method in | |
9462 | "file_magic "*) | |
9463 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6f57a957 | 9464 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
7083c021 AC |
9465 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
9466 | $EGREP "$file_magic_regex" > /dev/null; then | |
9467 | : | |
9468 | else | |
9469 | cat <<_LT_EOF 1>&2 | |
db137867 | 9470 | |
7083c021 AC |
9471 | *** Warning: the command libtool uses to detect shared libraries, |
9472 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9473 | *** The result is that libtool may fail to recognize shared libraries | |
9474 | *** as such. This will affect the creation of libtool libraries that | |
9475 | *** depend on shared libraries, but programs linked with such libtool | |
9476 | *** libraries will work regardless of this problem. Nevertheless, you | |
9477 | *** may want to report the problem to your system manager and/or to | |
9478 | *** bug-libtool@gnu.org | |
db137867 | 9479 | |
7083c021 AC |
9480 | _LT_EOF |
9481 | fi ;; | |
9482 | esac | |
9483 | fi | |
9484 | break | |
9485 | fi | |
9486 | done | |
6f57a957 AC |
9487 | IFS=$lt_save_ifs |
9488 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
7083c021 AC |
9489 | ;; |
9490 | esac | |
db137867 AC |
9491 | fi |
9492 | ||
6f57a957 | 9493 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
7083c021 AC |
9494 | if test -n "$MAGIC_CMD"; then |
9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9496 | $as_echo "$MAGIC_CMD" >&6; } | |
9497 | else | |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9499 | $as_echo "no" >&6; } | |
9500 | fi | |
db137867 | 9501 | |
db137867 | 9502 | |
7083c021 AC |
9503 | else |
9504 | MAGIC_CMD=: | |
9505 | fi | |
9506 | fi | |
db137867 | 9507 | |
7083c021 AC |
9508 | fi |
9509 | ;; | |
db137867 | 9510 | esac |
db137867 | 9511 | |
7083c021 AC |
9512 | # Use C for the default configuration in the libtool script |
9513 | ||
6f57a957 | 9514 | lt_save_CC=$CC |
7083c021 AC |
9515 | ac_ext=c |
9516 | ac_cpp='$CPP $CPPFLAGS' | |
9517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9520 | ||
9521 | ||
9522 | # Source file extension for C test sources. | |
9523 | ac_ext=c | |
9524 | ||
9525 | # Object file extension for compiled C test sources. | |
9526 | objext=o | |
9527 | objext=$objext | |
9528 | ||
9529 | # Code to be used in simple compile tests | |
9530 | lt_simple_compile_test_code="int some_variable = 0;" | |
9531 | ||
9532 | # Code to be used in simple link tests | |
9533 | lt_simple_link_test_code='int main(){return(0);}' | |
9534 | ||
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | # If no C compiler was specified, use CC. | |
9542 | LTCC=${LTCC-"$CC"} | |
9543 | ||
9544 | # If no C compiler flags were specified, use CFLAGS. | |
9545 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9546 | ||
9547 | # Allow CC to be a program name with arguments. | |
9548 | compiler=$CC | |
9549 | ||
9550 | # Save the default compiler, since it gets overwritten when the other | |
9551 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9552 | compiler_DEFAULT=$CC | |
9553 | ||
9554 | # save warnings/boilerplate of simple test code | |
9555 | ac_outfile=conftest.$ac_objext | |
9556 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9557 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9558 | _lt_compiler_boilerplate=`cat conftest.err` | |
9559 | $RM conftest* | |
9560 | ||
9561 | ac_outfile=conftest.$ac_objext | |
9562 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9563 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9564 | _lt_linker_boilerplate=`cat conftest.err` | |
9565 | $RM -r conftest* | |
9566 | ||
9567 | ||
9568 | if test -n "$compiler"; then | |
9569 | ||
9570 | lt_prog_compiler_no_builtin_flag= | |
9571 | ||
6f57a957 | 9572 | if test yes = "$GCC"; then |
b6d0720c AC |
9573 | case $cc_basename in |
9574 | nvcc*) | |
9575 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9576 | *) | |
9577 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9578 | esac | |
7083c021 AC |
9579 | |
9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9581 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
08c2568c | 9582 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
7083c021 | 9583 | $as_echo_n "(cached) " >&6 |
db137867 | 9584 | else |
7083c021 AC |
9585 | lt_cv_prog_compiler_rtti_exceptions=no |
9586 | ac_outfile=conftest.$ac_objext | |
9587 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6f57a957 | 9588 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
7083c021 AC |
9589 | # Insert the option either (1) after the last *FLAGS variable, or |
9590 | # (2) before a word containing "conftest.", or (3) at the end. | |
9591 | # Note that $ac_compile itself does not contain backslashes and begins | |
9592 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9593 | # The option is referenced via a variable to avoid confusing sed. | |
9594 | lt_compile=`echo "$ac_compile" | $SED \ | |
9595 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9596 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9597 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9598 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9599 | (eval "$lt_compile" 2>conftest.err) |
9600 | ac_status=$? | |
9601 | cat conftest.err >&5 | |
b6d0720c | 9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9603 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9604 | # The compiler can only warn and ignore the option if not recognized | |
9605 | # So say no if there are warnings other than the usual output. | |
b6d0720c | 9606 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
7083c021 AC |
9607 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9608 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9609 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9610 | fi | |
9611 | fi | |
9612 | $RM conftest* | |
db137867 | 9613 | |
7083c021 AC |
9614 | fi |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9616 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
db137867 | 9617 | |
6f57a957 | 9618 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
7083c021 AC |
9619 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
9620 | else | |
9621 | : | |
db137867 AC |
9622 | fi |
9623 | ||
7083c021 | 9624 | fi |
db137867 | 9625 | |
7083c021 AC |
9626 | |
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | lt_prog_compiler_wl= | |
9632 | lt_prog_compiler_pic= | |
9633 | lt_prog_compiler_static= | |
9634 | ||
7083c021 | 9635 | |
6f57a957 | 9636 | if test yes = "$GCC"; then |
7083c021 AC |
9637 | lt_prog_compiler_wl='-Wl,' |
9638 | lt_prog_compiler_static='-static' | |
9639 | ||
9640 | case $host_os in | |
9641 | aix*) | |
9642 | # All AIX code is PIC. | |
6f57a957 | 9643 | if test ia64 = "$host_cpu"; then |
7083c021 AC |
9644 | # AIX 5 now supports IA64 processor |
9645 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9646 | fi |
6f57a957 | 9647 | lt_prog_compiler_pic='-fPIC' |
db137867 AC |
9648 | ;; |
9649 | ||
9650 | amigaos*) | |
7083c021 AC |
9651 | case $host_cpu in |
9652 | powerpc) | |
9653 | # see comment about AmigaOS4 .so support | |
9654 | lt_prog_compiler_pic='-fPIC' | |
9655 | ;; | |
9656 | m68k) | |
9657 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6f57a957 AC |
9658 | # adding the '-m68020' flag to GCC prevents building anything better, |
9659 | # like '-m68040'. | |
7083c021 AC |
9660 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
9661 | ;; | |
9662 | esac | |
db137867 AC |
9663 | ;; |
9664 | ||
7083c021 AC |
9665 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9666 | # PIC is the default for these OSes. | |
db137867 AC |
9667 | ;; |
9668 | ||
7083c021 AC |
9669 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9670 | # This hack is so that the source file can tell whether it is being | |
9671 | # built for inclusion in a dll (and should export symbols for example). | |
9672 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9673 | # (--disable-auto-import) libraries | |
9674 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6f57a957 AC |
9675 | case $host_os in |
9676 | os2*) | |
9677 | lt_prog_compiler_static='$wl-static' | |
9678 | ;; | |
9679 | esac | |
db137867 AC |
9680 | ;; |
9681 | ||
9682 | darwin* | rhapsody*) | |
7083c021 AC |
9683 | # PIC is the default on this platform |
9684 | # Common symbols not allowed in MH_DYLIB files | |
9685 | lt_prog_compiler_pic='-fno-common' | |
db137867 AC |
9686 | ;; |
9687 | ||
b6d0720c AC |
9688 | haiku*) |
9689 | # PIC is the default for Haiku. | |
9690 | # The "-static" flag exists, but is broken. | |
9691 | lt_prog_compiler_static= | |
9692 | ;; | |
9693 | ||
7083c021 AC |
9694 | hpux*) |
9695 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9696 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9697 | # sets the default TLS model and affects inlining. | |
9698 | case $host_cpu in | |
9699 | hppa*64*) | |
9700 | # +Z the default | |
9701 | ;; | |
9702 | *) | |
9703 | lt_prog_compiler_pic='-fPIC' | |
9704 | ;; | |
9705 | esac | |
db137867 AC |
9706 | ;; |
9707 | ||
7083c021 AC |
9708 | interix[3-9]*) |
9709 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9710 | # Instead, we relocate shared libraries at runtime. | |
db137867 AC |
9711 | ;; |
9712 | ||
7083c021 AC |
9713 | msdosdjgpp*) |
9714 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9715 | # on systems that don't support them. | |
9716 | lt_prog_compiler_can_build_shared=no | |
9717 | enable_shared=no | |
db137867 AC |
9718 | ;; |
9719 | ||
7083c021 AC |
9720 | *nto* | *qnx*) |
9721 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9722 | # it will coredump. | |
9723 | lt_prog_compiler_pic='-fPIC -shared' | |
db137867 AC |
9724 | ;; |
9725 | ||
7083c021 AC |
9726 | sysv4*MP*) |
9727 | if test -d /usr/nec; then | |
9728 | lt_prog_compiler_pic=-Kconform_pic | |
9729 | fi | |
db137867 AC |
9730 | ;; |
9731 | ||
7083c021 AC |
9732 | *) |
9733 | lt_prog_compiler_pic='-fPIC' | |
9734 | ;; | |
9735 | esac | |
b6d0720c AC |
9736 | |
9737 | case $cc_basename in | |
9738 | nvcc*) # Cuda Compiler Driver 2.2 | |
9739 | lt_prog_compiler_wl='-Xlinker ' | |
a949ab1a AC |
9740 | if test -n "$lt_prog_compiler_pic"; then |
9741 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9742 | fi | |
b6d0720c AC |
9743 | ;; |
9744 | esac | |
7083c021 AC |
9745 | else |
9746 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9747 | case $host_os in | |
9748 | aix*) | |
9749 | lt_prog_compiler_wl='-Wl,' | |
6f57a957 | 9750 | if test ia64 = "$host_cpu"; then |
7083c021 AC |
9751 | # AIX 5 now supports IA64 processor |
9752 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9753 | else |
7083c021 | 9754 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
db137867 | 9755 | fi |
db137867 AC |
9756 | ;; |
9757 | ||
6f57a957 AC |
9758 | darwin* | rhapsody*) |
9759 | # PIC is the default on this platform | |
9760 | # Common symbols not allowed in MH_DYLIB files | |
9761 | lt_prog_compiler_pic='-fno-common' | |
9762 | case $cc_basename in | |
9763 | nagfor*) | |
9764 | # NAG Fortran compiler | |
9765 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9766 | lt_prog_compiler_pic='-PIC' | |
9767 | lt_prog_compiler_static='-Bstatic' | |
9768 | ;; | |
9769 | esac | |
9770 | ;; | |
9771 | ||
7083c021 AC |
9772 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9773 | # This hack is so that the source file can tell whether it is being | |
9774 | # built for inclusion in a dll (and should export symbols for example). | |
9775 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6f57a957 AC |
9776 | case $host_os in |
9777 | os2*) | |
9778 | lt_prog_compiler_static='$wl-static' | |
9779 | ;; | |
9780 | esac | |
7083c021 | 9781 | ;; |
db137867 | 9782 | |
7083c021 AC |
9783 | hpux9* | hpux10* | hpux11*) |
9784 | lt_prog_compiler_wl='-Wl,' | |
9785 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9786 | # not for PA HP-UX. | |
9787 | case $host_cpu in | |
9788 | hppa*64*|ia64*) | |
9789 | # +Z the default | |
9790 | ;; | |
9791 | *) | |
9792 | lt_prog_compiler_pic='+Z' | |
9793 | ;; | |
9794 | esac | |
9795 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6f57a957 | 9796 | lt_prog_compiler_static='$wl-a ${wl}archive' |
7083c021 | 9797 | ;; |
db137867 | 9798 | |
7083c021 AC |
9799 | irix5* | irix6* | nonstopux*) |
9800 | lt_prog_compiler_wl='-Wl,' | |
9801 | # PIC (with -KPIC) is the default. | |
9802 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9803 | ;; |
9804 | ||
6f57a957 | 9805 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
7083c021 | 9806 | case $cc_basename in |
6f57a957 | 9807 | # old Intel for x86_64, which still supported -KPIC. |
7083c021 AC |
9808 | ecc*) |
9809 | lt_prog_compiler_wl='-Wl,' | |
9810 | lt_prog_compiler_pic='-KPIC' | |
9811 | lt_prog_compiler_static='-static' | |
9812 | ;; | |
9813 | # icc used to be incompatible with GCC. | |
9814 | # ICC 10 doesn't accept -KPIC any more. | |
9815 | icc* | ifort*) | |
9816 | lt_prog_compiler_wl='-Wl,' | |
9817 | lt_prog_compiler_pic='-fPIC' | |
9818 | lt_prog_compiler_static='-static' | |
9819 | ;; | |
9820 | # Lahey Fortran 8.1. | |
9821 | lf95*) | |
9822 | lt_prog_compiler_wl='-Wl,' | |
9823 | lt_prog_compiler_pic='--shared' | |
9824 | lt_prog_compiler_static='--static' | |
9825 | ;; | |
b6d0720c AC |
9826 | nagfor*) |
9827 | # NAG Fortran compiler | |
9828 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9829 | lt_prog_compiler_pic='-PIC' | |
9830 | lt_prog_compiler_static='-Bstatic' | |
9831 | ;; | |
6f57a957 AC |
9832 | tcc*) |
9833 | # Fabrice Bellard et al's Tiny C Compiler | |
9834 | lt_prog_compiler_wl='-Wl,' | |
9835 | lt_prog_compiler_pic='-fPIC' | |
9836 | lt_prog_compiler_static='-static' | |
9837 | ;; | |
b6d0720c | 9838 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
7083c021 AC |
9839 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9840 | # which looks to be a dead project) | |
9841 | lt_prog_compiler_wl='-Wl,' | |
9842 | lt_prog_compiler_pic='-fpic' | |
9843 | lt_prog_compiler_static='-Bstatic' | |
9844 | ;; | |
9845 | ccc*) | |
9846 | lt_prog_compiler_wl='-Wl,' | |
9847 | # All Alpha code is PIC. | |
9848 | lt_prog_compiler_static='-non_shared' | |
9849 | ;; | |
b6d0720c AC |
9850 | xl* | bgxl* | bgf* | mpixl*) |
9851 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
7083c021 AC |
9852 | lt_prog_compiler_wl='-Wl,' |
9853 | lt_prog_compiler_pic='-qpic' | |
9854 | lt_prog_compiler_static='-qstaticlink' | |
9855 | ;; | |
9856 | *) | |
9857 | case `$CC -V 2>&1 | sed 5q` in | |
a949ab1a | 9858 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
b6d0720c | 9859 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7083c021 AC |
9860 | lt_prog_compiler_pic='-KPIC' |
9861 | lt_prog_compiler_static='-Bstatic' | |
b6d0720c | 9862 | lt_prog_compiler_wl='' |
db137867 | 9863 | ;; |
a949ab1a AC |
9864 | *Sun\ F* | *Sun*Fortran*) |
9865 | lt_prog_compiler_pic='-KPIC' | |
9866 | lt_prog_compiler_static='-Bstatic' | |
9867 | lt_prog_compiler_wl='-Qoption ld ' | |
9868 | ;; | |
b6d0720c AC |
9869 | *Sun\ C*) |
9870 | # Sun C 5.9 | |
7083c021 AC |
9871 | lt_prog_compiler_pic='-KPIC' |
9872 | lt_prog_compiler_static='-Bstatic' | |
b6d0720c | 9873 | lt_prog_compiler_wl='-Wl,' |
db137867 | 9874 | ;; |
a949ab1a AC |
9875 | *Intel*\ [CF]*Compiler*) |
9876 | lt_prog_compiler_wl='-Wl,' | |
9877 | lt_prog_compiler_pic='-fPIC' | |
9878 | lt_prog_compiler_static='-static' | |
9879 | ;; | |
9880 | *Portland\ Group*) | |
9881 | lt_prog_compiler_wl='-Wl,' | |
9882 | lt_prog_compiler_pic='-fpic' | |
9883 | lt_prog_compiler_static='-Bstatic' | |
9884 | ;; | |
db137867 | 9885 | esac |
7083c021 AC |
9886 | ;; |
9887 | esac | |
9888 | ;; | |
db137867 | 9889 | |
7083c021 AC |
9890 | newsos6) |
9891 | lt_prog_compiler_pic='-KPIC' | |
9892 | lt_prog_compiler_static='-Bstatic' | |
9893 | ;; | |
db137867 | 9894 | |
7083c021 AC |
9895 | *nto* | *qnx*) |
9896 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9897 | # it will coredump. | |
9898 | lt_prog_compiler_pic='-fPIC -shared' | |
db137867 AC |
9899 | ;; |
9900 | ||
7083c021 AC |
9901 | osf3* | osf4* | osf5*) |
9902 | lt_prog_compiler_wl='-Wl,' | |
9903 | # All OSF/1 code is PIC. | |
9904 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9905 | ;; |
9906 | ||
7083c021 AC |
9907 | rdos*) |
9908 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9909 | ;; |
9910 | ||
7083c021 AC |
9911 | solaris*) |
9912 | lt_prog_compiler_pic='-KPIC' | |
9913 | lt_prog_compiler_static='-Bstatic' | |
9914 | case $cc_basename in | |
b6d0720c | 9915 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
7083c021 AC |
9916 | lt_prog_compiler_wl='-Qoption ld ';; |
9917 | *) | |
9918 | lt_prog_compiler_wl='-Wl,';; | |
9919 | esac | |
db137867 AC |
9920 | ;; |
9921 | ||
7083c021 AC |
9922 | sunos4*) |
9923 | lt_prog_compiler_wl='-Qoption ld ' | |
9924 | lt_prog_compiler_pic='-PIC' | |
9925 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9926 | ;; |
9927 | ||
7083c021 AC |
9928 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9929 | lt_prog_compiler_wl='-Wl,' | |
9930 | lt_prog_compiler_pic='-KPIC' | |
9931 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9932 | ;; |
9933 | ||
7083c021 | 9934 | sysv4*MP*) |
6f57a957 | 9935 | if test -d /usr/nec; then |
7083c021 AC |
9936 | lt_prog_compiler_pic='-Kconform_pic' |
9937 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9938 | fi |
db137867 AC |
9939 | ;; |
9940 | ||
7083c021 AC |
9941 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9942 | lt_prog_compiler_wl='-Wl,' | |
9943 | lt_prog_compiler_pic='-KPIC' | |
9944 | lt_prog_compiler_static='-Bstatic' | |
9945 | ;; | |
db137867 | 9946 | |
7083c021 AC |
9947 | unicos*) |
9948 | lt_prog_compiler_wl='-Wl,' | |
9949 | lt_prog_compiler_can_build_shared=no | |
db137867 AC |
9950 | ;; |
9951 | ||
7083c021 AC |
9952 | uts4*) |
9953 | lt_prog_compiler_pic='-pic' | |
9954 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9955 | ;; |
9956 | ||
7083c021 AC |
9957 | *) |
9958 | lt_prog_compiler_can_build_shared=no | |
db137867 | 9959 | ;; |
7083c021 AC |
9960 | esac |
9961 | fi | |
db137867 | 9962 | |
7083c021 | 9963 | case $host_os in |
6f57a957 | 9964 | # For platforms that do not support PIC, -DPIC is meaningless: |
7083c021 AC |
9965 | *djgpp*) |
9966 | lt_prog_compiler_pic= | |
9967 | ;; | |
9968 | *) | |
9969 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9970 | ;; | |
9971 | esac | |
db137867 | 9972 | |
b6d0720c AC |
9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9974 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9975 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9976 | $as_echo_n "(cached) " >&6 | |
9977 | else | |
9978 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9979 | fi | |
9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9981 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9982 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
db137867 | 9983 | |
7083c021 AC |
9984 | # |
9985 | # Check to make sure the PIC flag actually works. | |
9986 | # | |
9987 | if test -n "$lt_prog_compiler_pic"; then | |
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9989 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
08c2568c | 9990 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
7083c021 AC |
9991 | $as_echo_n "(cached) " >&6 |
9992 | else | |
9993 | lt_cv_prog_compiler_pic_works=no | |
9994 | ac_outfile=conftest.$ac_objext | |
9995 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6f57a957 | 9996 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
7083c021 AC |
9997 | # Insert the option either (1) after the last *FLAGS variable, or |
9998 | # (2) before a word containing "conftest.", or (3) at the end. | |
9999 | # Note that $ac_compile itself does not contain backslashes and begins | |
10000 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10001 | # The option is referenced via a variable to avoid confusing sed. | |
10002 | lt_compile=`echo "$ac_compile" | $SED \ | |
10003 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10004 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10005 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 10006 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
10007 | (eval "$lt_compile" 2>conftest.err) |
10008 | ac_status=$? | |
10009 | cat conftest.err >&5 | |
b6d0720c | 10010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
10011 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10012 | # The compiler can only warn and ignore the option if not recognized | |
10013 | # So say no if there are warnings other than the usual output. | |
b6d0720c | 10014 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
7083c021 AC |
10015 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10016 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10017 | lt_cv_prog_compiler_pic_works=yes | |
10018 | fi | |
10019 | fi | |
10020 | $RM conftest* | |
10021 | ||
10022 | fi | |
10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
10024 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
10025 | ||
6f57a957 | 10026 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
7083c021 AC |
10027 | case $lt_prog_compiler_pic in |
10028 | "" | " "*) ;; | |
10029 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10030 | esac | |
10031 | else | |
10032 | lt_prog_compiler_pic= | |
10033 | lt_prog_compiler_can_build_shared=no | |
10034 | fi | |
10035 | ||
10036 | fi | |
10037 | ||
10038 | ||
db137867 | 10039 | |
db137867 | 10040 | |
db137867 | 10041 | |
db137867 | 10042 | |
b6d0720c AC |
10043 | |
10044 | ||
10045 | ||
10046 | ||
10047 | ||
db137867 | 10048 | # |
7083c021 | 10049 | # Check to make sure the static flag actually works. |
db137867 | 10050 | # |
7083c021 AC |
10051 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10053 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
08c2568c | 10054 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
7083c021 AC |
10055 | $as_echo_n "(cached) " >&6 |
10056 | else | |
10057 | lt_cv_prog_compiler_static_works=no | |
6f57a957 | 10058 | save_LDFLAGS=$LDFLAGS |
7083c021 AC |
10059 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
10060 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10061 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10062 | # The linker can only warn and ignore the option if not recognized | |
10063 | # So say no if there are warnings | |
10064 | if test -s conftest.err; then | |
10065 | # Append any errors to the config.log. | |
10066 | cat conftest.err 1>&5 | |
b6d0720c | 10067 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
7083c021 AC |
10068 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10069 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10070 | lt_cv_prog_compiler_static_works=yes | |
10071 | fi | |
10072 | else | |
10073 | lt_cv_prog_compiler_static_works=yes | |
10074 | fi | |
10075 | fi | |
10076 | $RM -r conftest* | |
6f57a957 | 10077 | LDFLAGS=$save_LDFLAGS |
db137867 | 10078 | |
7083c021 AC |
10079 | fi |
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
10081 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
db137867 | 10082 | |
6f57a957 | 10083 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
7083c021 AC |
10084 | : |
10085 | else | |
10086 | lt_prog_compiler_static= | |
10087 | fi | |
db137867 | 10088 | |
db137867 | 10089 | |
db137867 | 10090 | |
db137867 | 10091 | |
db137867 | 10092 | |
db137867 | 10093 | |
db137867 | 10094 | |
7083c021 AC |
10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10096 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
08c2568c | 10097 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
7083c021 AC |
10098 | $as_echo_n "(cached) " >&6 |
10099 | else | |
10100 | lt_cv_prog_compiler_c_o=no | |
10101 | $RM -r conftest 2>/dev/null | |
10102 | mkdir conftest | |
10103 | cd conftest | |
10104 | mkdir out | |
10105 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 10106 | |
7083c021 AC |
10107 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
10108 | # Insert the option either (1) after the last *FLAGS variable, or | |
10109 | # (2) before a word containing "conftest.", or (3) at the end. | |
10110 | # Note that $ac_compile itself does not contain backslashes and begins | |
10111 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10112 | lt_compile=`echo "$ac_compile" | $SED \ | |
10113 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10114 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10115 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 10116 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
10117 | (eval "$lt_compile" 2>out/conftest.err) |
10118 | ac_status=$? | |
10119 | cat out/conftest.err >&5 | |
b6d0720c | 10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
10121 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10122 | then | |
10123 | # The compiler can only warn and ignore the option if not recognized | |
10124 | # So say no if there are warnings | |
b6d0720c | 10125 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
7083c021 AC |
10126 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10127 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10128 | lt_cv_prog_compiler_c_o=yes | |
10129 | fi | |
10130 | fi | |
10131 | chmod u+w . 2>&5 | |
10132 | $RM conftest* | |
10133 | # SGI C++ compiler will create directory out/ii_files/ for | |
10134 | # template instantiation | |
10135 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10136 | $RM out/* && rmdir out | |
10137 | cd .. | |
10138 | $RM -r conftest | |
10139 | $RM conftest* | |
db137867 | 10140 | |
7083c021 AC |
10141 | fi |
10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10143 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
db137867 | 10144 | |
db137867 | 10145 | |
db137867 | 10146 | |
db137867 | 10147 | |
db137867 | 10148 | |
db137867 | 10149 | |
7083c021 AC |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10151 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
08c2568c | 10152 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
7083c021 AC |
10153 | $as_echo_n "(cached) " >&6 |
10154 | else | |
10155 | lt_cv_prog_compiler_c_o=no | |
10156 | $RM -r conftest 2>/dev/null | |
10157 | mkdir conftest | |
10158 | cd conftest | |
10159 | mkdir out | |
10160 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 10161 | |
7083c021 AC |
10162 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
10163 | # Insert the option either (1) after the last *FLAGS variable, or | |
10164 | # (2) before a word containing "conftest.", or (3) at the end. | |
10165 | # Note that $ac_compile itself does not contain backslashes and begins | |
10166 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10167 | lt_compile=`echo "$ac_compile" | $SED \ | |
10168 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10169 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10170 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 10171 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
10172 | (eval "$lt_compile" 2>out/conftest.err) |
10173 | ac_status=$? | |
10174 | cat out/conftest.err >&5 | |
b6d0720c | 10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
10176 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10177 | then | |
10178 | # The compiler can only warn and ignore the option if not recognized | |
10179 | # So say no if there are warnings | |
b6d0720c | 10180 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
7083c021 AC |
10181 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10182 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10183 | lt_cv_prog_compiler_c_o=yes | |
10184 | fi | |
10185 | fi | |
10186 | chmod u+w . 2>&5 | |
10187 | $RM conftest* | |
10188 | # SGI C++ compiler will create directory out/ii_files/ for | |
10189 | # template instantiation | |
10190 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10191 | $RM out/* && rmdir out | |
10192 | cd .. | |
10193 | $RM -r conftest | |
10194 | $RM conftest* | |
db137867 | 10195 | |
7083c021 AC |
10196 | fi |
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10198 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10199 | ||
10200 | ||
10201 | ||
10202 | ||
6f57a957 AC |
10203 | hard_links=nottested |
10204 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
7083c021 AC |
10205 | # do not overwrite the value of need_locks provided by the user |
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10207 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10208 | hard_links=yes | |
10209 | $RM conftest* | |
10210 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10211 | touch conftest.a | |
10212 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10213 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10215 | $as_echo "$hard_links" >&6; } | |
6f57a957 AC |
10216 | if test no = "$hard_links"; then |
10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
10218 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
7083c021 AC |
10219 | need_locks=warn |
10220 | fi | |
10221 | else | |
10222 | need_locks=no | |
10223 | fi | |
10224 | ||
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | ||
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10231 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10232 | ||
10233 | runpath_var= | |
10234 | allow_undefined_flag= | |
10235 | always_export_symbols=no | |
10236 | archive_cmds= | |
10237 | archive_expsym_cmds= | |
10238 | compiler_needs_object=no | |
10239 | enable_shared_with_static_runtimes=no | |
10240 | export_dynamic_flag_spec= | |
10241 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10242 | hardcode_automatic=no | |
10243 | hardcode_direct=no | |
10244 | hardcode_direct_absolute=no | |
10245 | hardcode_libdir_flag_spec= | |
7083c021 AC |
10246 | hardcode_libdir_separator= |
10247 | hardcode_minus_L=no | |
10248 | hardcode_shlibpath_var=unsupported | |
10249 | inherit_rpath=no | |
10250 | link_all_deplibs=unknown | |
10251 | module_cmds= | |
10252 | module_expsym_cmds= | |
10253 | old_archive_from_new_cmds= | |
10254 | old_archive_from_expsyms_cmds= | |
10255 | thread_safe_flag_spec= | |
10256 | whole_archive_flag_spec= | |
10257 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10258 | # included in the symbol list | |
10259 | include_expsyms= | |
10260 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
6f57a957 AC |
10261 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
10262 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
10263 | # as well as any symbol that contains 'd'. | |
7083c021 AC |
10264 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
10265 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10266 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10267 | # the symbol is explicitly referenced. Since portable code cannot | |
10268 | # rely on this symbol name, it's probably fine to never include it in | |
10269 | # preloaded symbol tables. | |
10270 | # Exclude shared library initialization/finalization symbols. | |
10271 | extract_expsyms_cmds= | |
db137867 | 10272 | |
db137867 | 10273 | case $host_os in |
7083c021 AC |
10274 | cygwin* | mingw* | pw32* | cegcc*) |
10275 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10276 | # When not using gcc, we currently assume that we are using | |
10277 | # Microsoft Visual C++. | |
6f57a957 | 10278 | if test yes != "$GCC"; then |
7083c021 AC |
10279 | with_gnu_ld=no |
10280 | fi | |
db137867 | 10281 | ;; |
7083c021 AC |
10282 | interix*) |
10283 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10284 | with_gnu_ld=yes | |
db137867 | 10285 | ;; |
6f57a957 | 10286 | openbsd* | bitrig*) |
7083c021 | 10287 | with_gnu_ld=no |
db137867 | 10288 | ;; |
db137867 | 10289 | esac |
db137867 | 10290 | |
7083c021 | 10291 | ld_shlibs=yes |
b6d0720c AC |
10292 | |
10293 | # On some targets, GNU ld is compatible enough with the native linker | |
10294 | # that we're better off using the native interface for both. | |
10295 | lt_use_gnu_ld_interface=no | |
6f57a957 | 10296 | if test yes = "$with_gnu_ld"; then |
b6d0720c AC |
10297 | case $host_os in |
10298 | aix*) | |
10299 | # The AIX port of GNU ld has always aspired to compatibility | |
10300 | # with the native linker. However, as the warning in the GNU ld | |
10301 | # block says, versions before 2.19.5* couldn't really create working | |
10302 | # shared libraries, regardless of the interface used. | |
10303 | case `$LD -v 2>&1` in | |
10304 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10305 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10306 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10307 | *) | |
10308 | lt_use_gnu_ld_interface=yes | |
10309 | ;; | |
10310 | esac | |
10311 | ;; | |
10312 | *) | |
10313 | lt_use_gnu_ld_interface=yes | |
10314 | ;; | |
10315 | esac | |
10316 | fi | |
10317 | ||
6f57a957 | 10318 | if test yes = "$lt_use_gnu_ld_interface"; then |
7083c021 | 10319 | # If archive_cmds runs LD, not CC, wlarc should be empty |
6f57a957 | 10320 | wlarc='$wl' |
db137867 | 10321 | |
7083c021 AC |
10322 | # Set some defaults for GNU ld with shared library support. These |
10323 | # are reset later if shared libraries are not supported. Putting them | |
10324 | # here allows them to be overridden if necessary. | |
10325 | runpath_var=LD_RUN_PATH | |
6f57a957 AC |
10326 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10327 | export_dynamic_flag_spec='$wl--export-dynamic' | |
7083c021 AC |
10328 | # ancient GNU ld didn't support --whole-archive et. al. |
10329 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
6f57a957 | 10330 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
db137867 | 10331 | else |
7083c021 | 10332 | whole_archive_flag_spec= |
db137867 | 10333 | fi |
7083c021 | 10334 | supports_anon_versioning=no |
6f57a957 | 10335 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b6d0720c | 10336 | *GNU\ gold*) supports_anon_versioning=yes ;; |
7083c021 AC |
10337 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10338 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10339 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10340 | *\ 2.11.*) ;; # other 2.11 versions | |
10341 | *) supports_anon_versioning=yes ;; | |
db137867 | 10342 | esac |
db137867 | 10343 | |
7083c021 AC |
10344 | # See if GNU ld supports shared libraries. |
10345 | case $host_os in | |
10346 | aix[3-9]*) | |
10347 | # On AIX/PPC, the GNU linker is very broken | |
6f57a957 | 10348 | if test ia64 != "$host_cpu"; then |
7083c021 AC |
10349 | ld_shlibs=no |
10350 | cat <<_LT_EOF 1>&2 | |
db137867 | 10351 | |
b6d0720c | 10352 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
7083c021 AC |
10353 | *** to be unable to reliably create shared libraries on AIX. |
10354 | *** Therefore, libtool is disabling shared libraries support. If you | |
b6d0720c AC |
10355 | *** really care for shared libraries, you may want to install binutils |
10356 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10357 | *** You will then need to restart the configuration process. | |
db137867 | 10358 | |
7083c021 AC |
10359 | _LT_EOF |
10360 | fi | |
10361 | ;; | |
db137867 AC |
10362 | |
10363 | amigaos*) | |
7083c021 AC |
10364 | case $host_cpu in |
10365 | powerpc) | |
10366 | # see comment about AmigaOS4 .so support | |
6f57a957 | 10367 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
7083c021 AC |
10368 | archive_expsym_cmds='' |
10369 | ;; | |
10370 | m68k) | |
10371 | 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)' | |
10372 | hardcode_libdir_flag_spec='-L$libdir' | |
10373 | hardcode_minus_L=yes | |
10374 | ;; | |
10375 | esac | |
db137867 AC |
10376 | ;; |
10377 | ||
10378 | beos*) | |
7083c021 AC |
10379 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
10380 | allow_undefined_flag=unsupported | |
db137867 AC |
10381 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10382 | # support --undefined. This deserves some investigation. FIXME | |
6f57a957 | 10383 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
db137867 | 10384 | else |
7083c021 | 10385 | ld_shlibs=no |
db137867 AC |
10386 | fi |
10387 | ;; | |
10388 | ||
7083c021 AC |
10389 | cygwin* | mingw* | pw32* | cegcc*) |
10390 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
db137867 | 10391 | # as there is no search path for DLLs. |
7083c021 | 10392 | hardcode_libdir_flag_spec='-L$libdir' |
6f57a957 | 10393 | export_dynamic_flag_spec='$wl--export-all-symbols' |
7083c021 AC |
10394 | allow_undefined_flag=unsupported |
10395 | always_export_symbols=no | |
10396 | enable_shared_with_static_runtimes=yes | |
b6d0720c AC |
10397 | 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' |
10398 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
7083c021 AC |
10399 | |
10400 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
6f57a957 AC |
10401 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10402 | # If the export-symbols file already is a .def file, use it as | |
10403 | # is; otherwise, prepend EXPORTS... | |
10404 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10405 | cp $export_symbols $output_objdir/$soname.def; | |
10406 | else | |
10407 | echo EXPORTS > $output_objdir/$soname.def; | |
10408 | cat $export_symbols >> $output_objdir/$soname.def; | |
10409 | fi~ | |
10410 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
db137867 | 10411 | else |
7083c021 | 10412 | ld_shlibs=no |
db137867 AC |
10413 | fi |
10414 | ;; | |
10415 | ||
b6d0720c | 10416 | haiku*) |
6f57a957 | 10417 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b6d0720c AC |
10418 | link_all_deplibs=yes |
10419 | ;; | |
10420 | ||
6f57a957 AC |
10421 | os2*) |
10422 | hardcode_libdir_flag_spec='-L$libdir' | |
10423 | hardcode_minus_L=yes | |
10424 | allow_undefined_flag=unsupported | |
10425 | shrext_cmds=.dll | |
10426 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10427 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10428 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10429 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10430 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10431 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10432 | emximp -o $lib $output_objdir/$libname.def' | |
10433 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10434 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10435 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10436 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10437 | prefix_cmds="$SED"~ | |
10438 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10439 | prefix_cmds="$prefix_cmds -e 1d"; | |
10440 | fi~ | |
10441 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10442 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10443 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10444 | emximp -o $lib $output_objdir/$libname.def' | |
10445 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10446 | enable_shared_with_static_runtimes=yes | |
10447 | ;; | |
10448 | ||
db137867 | 10449 | interix[3-9]*) |
7083c021 AC |
10450 | hardcode_direct=no |
10451 | hardcode_shlibpath_var=no | |
6f57a957 AC |
10452 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10453 | export_dynamic_flag_spec='$wl-E' | |
db137867 AC |
10454 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10455 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10456 | # default) and relocated if they conflict, which is a slow very memory | |
10457 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10458 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10459 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
6f57a957 AC |
10460 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10461 | 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' | |
db137867 AC |
10462 | ;; |
10463 | ||
b6d0720c | 10464 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 | 10465 | tmp_diet=no |
6f57a957 | 10466 | if test linux-dietlibc = "$host_os"; then |
7083c021 AC |
10467 | case $cc_basename in |
10468 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10469 | esac | |
10470 | fi | |
10471 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
6f57a957 | 10472 | && test no = "$tmp_diet" |
7083c021 | 10473 | then |
b6d0720c | 10474 | tmp_addflag=' $pic_flag' |
7083c021 | 10475 | tmp_sharedflag='-shared' |
db137867 | 10476 | case $cc_basename,$host_cpu in |
7083c021 | 10477 | pgcc*) # Portland Group C compiler |
6f57a957 | 10478 | 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' |
db137867 AC |
10479 | tmp_addflag=' $pic_flag' |
10480 | ;; | |
b6d0720c AC |
10481 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10482 | # Portland Group f77 and f90 compilers | |
6f57a957 | 10483 | 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' |
db137867 | 10484 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7083c021 | 10485 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
db137867 AC |
10486 | tmp_addflag=' -i_dynamic' ;; |
10487 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10488 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10489 | ifc* | ifort*) # Intel Fortran compiler | |
10490 | tmp_addflag=' -nofor_main' ;; | |
7083c021 AC |
10491 | lf95*) # Lahey Fortran 8.1 |
10492 | whole_archive_flag_spec= | |
10493 | tmp_sharedflag='--shared' ;; | |
6f57a957 AC |
10494 | nagfor*) # NAGFOR 5.3 |
10495 | tmp_sharedflag='-Wl,-shared' ;; | |
b6d0720c | 10496 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
7083c021 AC |
10497 | tmp_sharedflag='-qmkshrobj' |
10498 | tmp_addflag= ;; | |
b6d0720c | 10499 | nvcc*) # Cuda Compiler Driver 2.2 |
6f57a957 | 10500 | 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' |
b6d0720c AC |
10501 | compiler_needs_object=yes |
10502 | ;; | |
db137867 AC |
10503 | esac |
10504 | case `$CC -V 2>&1 | sed 5q` in | |
10505 | *Sun\ C*) # Sun C 5.9 | |
6f57a957 | 10506 | 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' |
7083c021 | 10507 | compiler_needs_object=yes |
db137867 AC |
10508 | tmp_sharedflag='-G' ;; |
10509 | *Sun\ F*) # Sun Fortran 8.3 | |
10510 | tmp_sharedflag='-G' ;; | |
db137867 | 10511 | esac |
6f57a957 | 10512 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
db137867 | 10513 | |
6f57a957 | 10514 | if test yes = "$supports_anon_versioning"; then |
7083c021 | 10515 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
6f57a957 AC |
10516 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10517 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10518 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
7083c021 AC |
10519 | fi |
10520 | ||
10521 | case $cc_basename in | |
6f57a957 AC |
10522 | tcc*) |
10523 | export_dynamic_flag_spec='-rdynamic' | |
10524 | ;; | |
b6d0720c | 10525 | xlf* | bgf* | bgxlf* | mpixlf*) |
7083c021 AC |
10526 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10527 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
6f57a957 | 10528 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b6d0720c | 10529 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
6f57a957 | 10530 | if test yes = "$supports_anon_versioning"; then |
7083c021 | 10531 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
6f57a957 AC |
10532 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10533 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10534 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7083c021 AC |
10535 | fi |
10536 | ;; | |
10537 | esac | |
db137867 | 10538 | else |
7083c021 | 10539 | ld_shlibs=no |
db137867 AC |
10540 | fi |
10541 | ;; | |
10542 | ||
96f4052b | 10543 | netbsd*) |
7083c021 AC |
10544 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10545 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
db137867 AC |
10546 | wlarc= |
10547 | else | |
6f57a957 AC |
10548 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10549 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 AC |
10550 | fi |
10551 | ;; | |
10552 | ||
10553 | solaris*) | |
7083c021 AC |
10554 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
10555 | ld_shlibs=no | |
10556 | cat <<_LT_EOF 1>&2 | |
db137867 AC |
10557 | |
10558 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10559 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10560 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10561 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10562 | *** your PATH or compiler configuration so that the native linker is | |
10563 | *** used, and then restart. | |
10564 | ||
7083c021 AC |
10565 | _LT_EOF |
10566 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
6f57a957 AC |
10567 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10568 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10569 | else |
7083c021 | 10570 | ld_shlibs=no |
db137867 AC |
10571 | fi |
10572 | ;; | |
10573 | ||
10574 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10575 | case `$LD -v 2>&1` in | |
10576 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7083c021 | 10577 | ld_shlibs=no |
db137867 AC |
10578 | cat <<_LT_EOF 1>&2 |
10579 | ||
6f57a957 | 10580 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
db137867 AC |
10581 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
10582 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10583 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10584 | *** your PATH or compiler configuration so that the native linker is | |
10585 | *** used, and then restart. | |
10586 | ||
10587 | _LT_EOF | |
10588 | ;; | |
10589 | *) | |
7083c021 AC |
10590 | # For security reasons, it is highly recommended that you always |
10591 | # use absolute paths for naming shared libraries, and exclude the | |
10592 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10593 | # requires that you compile everything twice, which is a pain. | |
10594 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
6f57a957 AC |
10595 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10596 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10597 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10598 | else |
7083c021 | 10599 | ld_shlibs=no |
db137867 AC |
10600 | fi |
10601 | ;; | |
10602 | esac | |
10603 | ;; | |
10604 | ||
10605 | sunos4*) | |
7083c021 | 10606 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 10607 | wlarc= |
7083c021 AC |
10608 | hardcode_direct=yes |
10609 | hardcode_shlibpath_var=no | |
db137867 AC |
10610 | ;; |
10611 | ||
10612 | *) | |
7083c021 | 10613 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
6f57a957 AC |
10614 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10615 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10616 | else |
7083c021 | 10617 | ld_shlibs=no |
db137867 AC |
10618 | fi |
10619 | ;; | |
10620 | esac | |
10621 | ||
6f57a957 | 10622 | if test no = "$ld_shlibs"; then |
db137867 | 10623 | runpath_var= |
7083c021 AC |
10624 | hardcode_libdir_flag_spec= |
10625 | export_dynamic_flag_spec= | |
10626 | whole_archive_flag_spec= | |
db137867 AC |
10627 | fi |
10628 | else | |
10629 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10630 | case $host_os in | |
10631 | aix3*) | |
7083c021 AC |
10632 | allow_undefined_flag=unsupported |
10633 | always_export_symbols=yes | |
10634 | 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' | |
db137867 AC |
10635 | # Note: this linker hardcodes the directories in LIBPATH if there |
10636 | # are no directories specified by -L. | |
7083c021 | 10637 | hardcode_minus_L=yes |
6f57a957 | 10638 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
db137867 AC |
10639 | # Neither direct hardcoding nor static linking is supported with a |
10640 | # broken collect2. | |
7083c021 | 10641 | hardcode_direct=unsupported |
db137867 AC |
10642 | fi |
10643 | ;; | |
10644 | ||
b676ea3b | 10645 | aix[4-9]*) |
6f57a957 | 10646 | if test ia64 = "$host_cpu"; then |
db137867 AC |
10647 | # On IA64, the linker does run time linking by default, so we don't |
10648 | # have to do anything special. | |
10649 | aix_use_runtimelinking=no | |
10650 | exp_sym_flag='-Bexport' | |
6f57a957 | 10651 | no_entry_flag= |
db137867 AC |
10652 | else |
10653 | # If we're using GNU nm, then we don't want the "-C" option. | |
6f57a957 AC |
10654 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
10655 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10656 | # weak defined symbols like other global defined symbols, whereas | |
10657 | # GNU nm marks them as "W". | |
10658 | # While the 'weak' keyword is ignored in the Export File, we need | |
10659 | # it in the Import File for the 'aix-soname' feature, so we have | |
10660 | # to replace the "-B" option with "-P" for AIX nm. | |
7083c021 | 10661 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
6f57a957 | 10662 | 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' |
db137867 | 10663 | else |
6f57a957 | 10664 | 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' |
db137867 AC |
10665 | fi |
10666 | aix_use_runtimelinking=no | |
10667 | ||
10668 | # Test if we are trying to use run time linking or normal | |
10669 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6f57a957 AC |
10670 | # have runtime linking enabled, and use it for executables. |
10671 | # For shared libraries, we enable/disable runtime linking | |
10672 | # depending on the kind of the shared library created - | |
10673 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10674 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10675 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10676 | # lib.a static archive | |
10677 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10678 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10679 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10680 | # lib.a(lib.so.V) shared, rtl:no | |
10681 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10682 | # lib.a static archive | |
b676ea3b | 10683 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 | 10684 | for ld_flag in $LDFLAGS; do |
6f57a957 | 10685 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
7083c021 AC |
10686 | aix_use_runtimelinking=yes |
10687 | break | |
10688 | fi | |
db137867 | 10689 | done |
6f57a957 AC |
10690 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
10691 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10692 | # so we don't have lib.a shared libs to link our executables. | |
10693 | # We have to force runtime linking in this case. | |
10694 | aix_use_runtimelinking=yes | |
10695 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10696 | fi | |
db137867 AC |
10697 | ;; |
10698 | esac | |
10699 | ||
10700 | exp_sym_flag='-bexport' | |
10701 | no_entry_flag='-bnoentry' | |
10702 | fi | |
10703 | ||
10704 | # When large executables or shared objects are built, AIX ld can | |
10705 | # have problems creating the table of contents. If linking a library | |
10706 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10707 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10708 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10709 | ||
7083c021 AC |
10710 | archive_cmds='' |
10711 | hardcode_direct=yes | |
10712 | hardcode_direct_absolute=yes | |
10713 | hardcode_libdir_separator=':' | |
10714 | link_all_deplibs=yes | |
6f57a957 AC |
10715 | file_list_spec='$wl-f,' |
10716 | case $with_aix_soname,$aix_use_runtimelinking in | |
10717 | aix,*) ;; # traditional, no import file | |
10718 | svr4,* | *,yes) # use import file | |
10719 | # The Import File defines what to hardcode. | |
10720 | hardcode_direct=no | |
10721 | hardcode_direct_absolute=no | |
10722 | ;; | |
10723 | esac | |
db137867 | 10724 | |
6f57a957 | 10725 | if test yes = "$GCC"; then |
db137867 AC |
10726 | case $host_os in aix4.[012]|aix4.[012].*) |
10727 | # We only want to do this on AIX 4.2 and lower, the check | |
10728 | # below for broken collect2 doesn't work under 4.3+ | |
6f57a957 | 10729 | collect2name=`$CC -print-prog-name=collect2` |
7083c021 AC |
10730 | if test -f "$collect2name" && |
10731 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
db137867 | 10732 | then |
7083c021 AC |
10733 | # We have reworked collect2 |
10734 | : | |
db137867 | 10735 | else |
7083c021 AC |
10736 | # We have old collect2 |
10737 | hardcode_direct=unsupported | |
10738 | # It fails to find uninstalled libraries when the uninstalled | |
10739 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10740 | # to unsupported forces relinking | |
10741 | hardcode_minus_L=yes | |
10742 | hardcode_libdir_flag_spec='-L$libdir' | |
10743 | hardcode_libdir_separator= | |
db137867 AC |
10744 | fi |
10745 | ;; | |
10746 | esac | |
10747 | shared_flag='-shared' | |
6f57a957 AC |
10748 | if test yes = "$aix_use_runtimelinking"; then |
10749 | shared_flag="$shared_flag "'$wl-G' | |
db137867 | 10750 | fi |
6f57a957 AC |
10751 | # Need to ensure runtime linking is disabled for the traditional |
10752 | # shared library, or the linker may eventually find shared libraries | |
10753 | # /with/ Import File - we do not want to mix them. | |
10754 | shared_flag_aix='-shared' | |
10755 | shared_flag_svr4='-shared $wl-G' | |
db137867 AC |
10756 | else |
10757 | # not using gcc | |
6f57a957 | 10758 | if test ia64 = "$host_cpu"; then |
7083c021 AC |
10759 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10760 | # chokes on -Wl,-G. The following line is correct: | |
db137867 AC |
10761 | shared_flag='-G' |
10762 | else | |
6f57a957 AC |
10763 | if test yes = "$aix_use_runtimelinking"; then |
10764 | shared_flag='$wl-G' | |
db137867 | 10765 | else |
6f57a957 | 10766 | shared_flag='$wl-bM:SRE' |
db137867 | 10767 | fi |
6f57a957 AC |
10768 | shared_flag_aix='$wl-bM:SRE' |
10769 | shared_flag_svr4='$wl-G' | |
db137867 AC |
10770 | fi |
10771 | fi | |
10772 | ||
6f57a957 | 10773 | export_dynamic_flag_spec='$wl-bexpall' |
db137867 AC |
10774 | # It seems that -bexpall does not export symbols beginning with |
10775 | # underscore (_), so it is better to generate a list of symbols to export. | |
7083c021 | 10776 | always_export_symbols=yes |
6f57a957 | 10777 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
db137867 AC |
10778 | # Warning - without using the other runtime loading flags (-brtl), |
10779 | # -berok will link without error, but may produce a broken library. | |
7083c021 AC |
10780 | allow_undefined_flag='-berok' |
10781 | # Determine the default libpath from the value encoded in an | |
10782 | # empty executable. | |
6f57a957 | 10783 | if test set = "${lt_cv_aix_libpath+set}"; then |
b6d0720c AC |
10784 | aix_libpath=$lt_cv_aix_libpath |
10785 | else | |
10786 | if ${lt_cv_aix_libpath_+:} false; then : | |
10787 | $as_echo_n "(cached) " >&6 | |
10788 | else | |
10789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
10790 | /* end confdefs.h. */ |
10791 | ||
10792 | int | |
10793 | main () | |
10794 | { | |
10795 | ||
10796 | ; | |
10797 | return 0; | |
10798 | } | |
10799 | _ACEOF | |
7083c021 | 10800 | if ac_fn_c_try_link "$LINENO"; then : |
db137867 | 10801 | |
b6d0720c AC |
10802 | lt_aix_libpath_sed=' |
10803 | /Import File Strings/,/^$/ { | |
10804 | /^0/ { | |
10805 | s/^0 *\([^ ]*\) *$/\1/ | |
10806 | p | |
10807 | } | |
10808 | }' | |
10809 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10810 | # Check for a 64-bit object if we didn't find anything. | |
10811 | if test -z "$lt_cv_aix_libpath_"; then | |
10812 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10813 | fi | |
db137867 | 10814 | fi |
7083c021 AC |
10815 | rm -f core conftest.err conftest.$ac_objext \ |
10816 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c | 10817 | if test -z "$lt_cv_aix_libpath_"; then |
6f57a957 | 10818 | lt_cv_aix_libpath_=/usr/lib:/lib |
b6d0720c AC |
10819 | fi |
10820 | ||
10821 | fi | |
10822 | ||
10823 | aix_libpath=$lt_cv_aix_libpath_ | |
10824 | fi | |
db137867 | 10825 | |
6f57a957 AC |
10826 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10827 | 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 | |
7083c021 | 10828 | else |
6f57a957 AC |
10829 | if test ia64 = "$host_cpu"; then |
10830 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
7083c021 | 10831 | allow_undefined_flag="-z nodefs" |
6f57a957 | 10832 | 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" |
db137867 | 10833 | else |
7083c021 AC |
10834 | # Determine the default libpath from the value encoded in an |
10835 | # empty executable. | |
6f57a957 | 10836 | if test set = "${lt_cv_aix_libpath+set}"; then |
b6d0720c AC |
10837 | aix_libpath=$lt_cv_aix_libpath |
10838 | else | |
10839 | if ${lt_cv_aix_libpath_+:} false; then : | |
10840 | $as_echo_n "(cached) " >&6 | |
10841 | else | |
10842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
10843 | /* end confdefs.h. */ |
10844 | ||
10845 | int | |
10846 | main () | |
10847 | { | |
10848 | ||
10849 | ; | |
10850 | return 0; | |
10851 | } | |
10852 | _ACEOF | |
7083c021 | 10853 | if ac_fn_c_try_link "$LINENO"; then : |
db137867 | 10854 | |
b6d0720c AC |
10855 | lt_aix_libpath_sed=' |
10856 | /Import File Strings/,/^$/ { | |
10857 | /^0/ { | |
10858 | s/^0 *\([^ ]*\) *$/\1/ | |
10859 | p | |
10860 | } | |
10861 | }' | |
10862 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10863 | # Check for a 64-bit object if we didn't find anything. | |
10864 | if test -z "$lt_cv_aix_libpath_"; then | |
10865 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10866 | fi | |
db137867 | 10867 | fi |
7083c021 AC |
10868 | rm -f core conftest.err conftest.$ac_objext \ |
10869 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c | 10870 | if test -z "$lt_cv_aix_libpath_"; then |
6f57a957 | 10871 | lt_cv_aix_libpath_=/usr/lib:/lib |
b6d0720c AC |
10872 | fi |
10873 | ||
10874 | fi | |
10875 | ||
10876 | aix_libpath=$lt_cv_aix_libpath_ | |
10877 | fi | |
db137867 | 10878 | |
6f57a957 | 10879 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
db137867 AC |
10880 | # Warning - without using the other run time loading flags, |
10881 | # -berok will link without error, but may produce a broken library. | |
6f57a957 AC |
10882 | no_undefined_flag=' $wl-bernotok' |
10883 | allow_undefined_flag=' $wl-berok' | |
10884 | if test yes = "$with_gnu_ld"; then | |
b6d0720c | 10885 | # We only use this code for GNU lds that support --whole-archive. |
6f57a957 | 10886 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b6d0720c AC |
10887 | else |
10888 | # Exported symbols can be pulled into shared objects from archives | |
10889 | whole_archive_flag_spec='$convenience' | |
10890 | fi | |
7083c021 | 10891 | archive_cmds_need_lc=yes |
6f57a957 AC |
10892 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
10893 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10894 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10895 | if test svr4 != "$with_aix_soname"; then | |
10896 | # This is similar to how AIX traditionally builds its shared libraries. | |
10897 | 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' | |
10898 | fi | |
10899 | if test aix != "$with_aix_soname"; then | |
10900 | 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' | |
10901 | else | |
10902 | # used by -dlpreopen to get the symbols | |
10903 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10904 | fi | |
10905 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
db137867 AC |
10906 | fi |
10907 | fi | |
10908 | ;; | |
10909 | ||
10910 | amigaos*) | |
7083c021 AC |
10911 | case $host_cpu in |
10912 | powerpc) | |
10913 | # see comment about AmigaOS4 .so support | |
6f57a957 | 10914 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
7083c021 AC |
10915 | archive_expsym_cmds='' |
10916 | ;; | |
10917 | m68k) | |
10918 | 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)' | |
10919 | hardcode_libdir_flag_spec='-L$libdir' | |
10920 | hardcode_minus_L=yes | |
10921 | ;; | |
10922 | esac | |
db137867 AC |
10923 | ;; |
10924 | ||
10925 | bsdi[45]*) | |
7083c021 | 10926 | export_dynamic_flag_spec=-rdynamic |
db137867 AC |
10927 | ;; |
10928 | ||
7083c021 | 10929 | cygwin* | mingw* | pw32* | cegcc*) |
db137867 AC |
10930 | # When not using gcc, we currently assume that we are using |
10931 | # Microsoft Visual C++. | |
10932 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10933 | # no search path for DLLs. | |
b6d0720c AC |
10934 | case $cc_basename in |
10935 | cl*) | |
10936 | # Native MSVC | |
10937 | hardcode_libdir_flag_spec=' ' | |
10938 | allow_undefined_flag=unsupported | |
10939 | always_export_symbols=yes | |
10940 | file_list_spec='@' | |
10941 | # Tell ltmain to make .lib files, not .a files. | |
10942 | libext=lib | |
10943 | # Tell ltmain to make .dll files, not .so files. | |
6f57a957 | 10944 | shrext_cmds=.dll |
b6d0720c | 10945 | # FIXME: Setting linknames here is a bad hack. |
6f57a957 AC |
10946 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
10947 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10948 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10949 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10950 | else | |
10951 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10952 | fi~ | |
10953 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10954 | linknames=' | |
b6d0720c AC |
10955 | # The linker will not automatically build a static lib if we build a DLL. |
10956 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10957 | enable_shared_with_static_runtimes=yes | |
a949ab1a | 10958 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
b6d0720c AC |
10959 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
10960 | # Don't use ranlib | |
10961 | old_postinstall_cmds='chmod 644 $oldlib' | |
10962 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
6f57a957 AC |
10963 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10964 | case $lt_outputfile in | |
10965 | *.exe|*.EXE) ;; | |
10966 | *) | |
10967 | lt_outputfile=$lt_outputfile.exe | |
10968 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10969 | ;; | |
10970 | esac~ | |
10971 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10972 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10973 | $RM "$lt_outputfile.manifest"; | |
10974 | fi' | |
b6d0720c AC |
10975 | ;; |
10976 | *) | |
10977 | # Assume MSVC wrapper | |
10978 | hardcode_libdir_flag_spec=' ' | |
10979 | allow_undefined_flag=unsupported | |
10980 | # Tell ltmain to make .lib files, not .a files. | |
10981 | libext=lib | |
10982 | # Tell ltmain to make .dll files, not .so files. | |
6f57a957 | 10983 | shrext_cmds=.dll |
b6d0720c AC |
10984 | # FIXME: Setting linknames here is a bad hack. |
10985 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10986 | # The linker will automatically build a .lib file if we build a DLL. | |
10987 | old_archive_from_new_cmds='true' | |
10988 | # FIXME: Should let the user specify the lib program. | |
10989 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10990 | enable_shared_with_static_runtimes=yes | |
10991 | ;; | |
10992 | esac | |
db137867 AC |
10993 | ;; |
10994 | ||
7083c021 AC |
10995 | darwin* | rhapsody*) |
10996 | ||
10997 | ||
10998 | archive_cmds_need_lc=no | |
10999 | hardcode_direct=no | |
11000 | hardcode_automatic=yes | |
11001 | hardcode_shlibpath_var=unsupported | |
6f57a957 AC |
11002 | if test yes = "$lt_cv_ld_force_load"; then |
11003 | 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\"`' | |
a949ab1a | 11004 | |
b6d0720c AC |
11005 | else |
11006 | whole_archive_flag_spec='' | |
11007 | fi | |
7083c021 | 11008 | link_all_deplibs=yes |
6f57a957 | 11009 | allow_undefined_flag=$_lt_dar_allow_undefined |
7083c021 | 11010 | case $cc_basename in |
6f57a957 | 11011 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
7083c021 AC |
11012 | *) _lt_dar_can_shared=$GCC ;; |
11013 | esac | |
6f57a957 | 11014 | if test yes = "$_lt_dar_can_shared"; then |
b6d0720c | 11015 | output_verbose_link_cmd=func_echo_all |
6f57a957 AC |
11016 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
11017 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
11018 | 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" | |
11019 | 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" | |
7083c021 AC |
11020 | |
11021 | else | |
11022 | ld_shlibs=no | |
11023 | fi | |
11024 | ||
db137867 AC |
11025 | ;; |
11026 | ||
11027 | dgux*) | |
7083c021 AC |
11028 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11029 | hardcode_libdir_flag_spec='-L$libdir' | |
11030 | hardcode_shlibpath_var=no | |
db137867 AC |
11031 | ;; |
11032 | ||
db137867 AC |
11033 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
11034 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11035 | # does not break anything, and helps significantly (at the cost of a little | |
11036 | # extra space). | |
11037 | freebsd2.2*) | |
7083c021 AC |
11038 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
11039 | hardcode_libdir_flag_spec='-R$libdir' | |
11040 | hardcode_direct=yes | |
11041 | hardcode_shlibpath_var=no | |
db137867 AC |
11042 | ;; |
11043 | ||
11044 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
a949ab1a | 11045 | freebsd2.*) |
7083c021 AC |
11046 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
11047 | hardcode_direct=yes | |
11048 | hardcode_minus_L=yes | |
11049 | hardcode_shlibpath_var=no | |
db137867 AC |
11050 | ;; |
11051 | ||
11052 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11053 | freebsd* | dragonfly*) | |
b6d0720c | 11054 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7083c021 AC |
11055 | hardcode_libdir_flag_spec='-R$libdir' |
11056 | hardcode_direct=yes | |
11057 | hardcode_shlibpath_var=no | |
db137867 AC |
11058 | ;; |
11059 | ||
11060 | hpux9*) | |
6f57a957 AC |
11061 | if test yes = "$GCC"; then |
11062 | 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' | |
db137867 | 11063 | else |
6f57a957 | 11064 | 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' |
db137867 | 11065 | fi |
6f57a957 | 11066 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
7083c021 AC |
11067 | hardcode_libdir_separator=: |
11068 | hardcode_direct=yes | |
db137867 AC |
11069 | |
11070 | # hardcode_minus_L: Not really in the search PATH, | |
11071 | # but as the default location of the library. | |
7083c021 | 11072 | hardcode_minus_L=yes |
6f57a957 | 11073 | export_dynamic_flag_spec='$wl-E' |
db137867 AC |
11074 | ;; |
11075 | ||
11076 | hpux10*) | |
6f57a957 AC |
11077 | if test yes,no = "$GCC,$with_gnu_ld"; then |
11078 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 11079 | else |
7083c021 | 11080 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 11081 | fi |
6f57a957 AC |
11082 | if test no = "$with_gnu_ld"; then |
11083 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
7083c021 AC |
11084 | hardcode_libdir_separator=: |
11085 | hardcode_direct=yes | |
11086 | hardcode_direct_absolute=yes | |
6f57a957 | 11087 | export_dynamic_flag_spec='$wl-E' |
db137867 AC |
11088 | # hardcode_minus_L: Not really in the search PATH, |
11089 | # but as the default location of the library. | |
7083c021 | 11090 | hardcode_minus_L=yes |
db137867 AC |
11091 | fi |
11092 | ;; | |
11093 | ||
11094 | hpux11*) | |
6f57a957 | 11095 | if test yes,no = "$GCC,$with_gnu_ld"; then |
db137867 AC |
11096 | case $host_cpu in |
11097 | hppa*64*) | |
6f57a957 | 11098 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
11099 | ;; |
11100 | ia64*) | |
6f57a957 | 11101 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
11102 | ;; |
11103 | *) | |
6f57a957 | 11104 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
11105 | ;; |
11106 | esac | |
11107 | else | |
11108 | case $host_cpu in | |
11109 | hppa*64*) | |
6f57a957 | 11110 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
11111 | ;; |
11112 | ia64*) | |
6f57a957 | 11113 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
11114 | ;; |
11115 | *) | |
b6d0720c AC |
11116 | |
11117 | # Older versions of the 11.00 compiler do not understand -b yet | |
11118 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11120 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
11121 | if ${lt_cv_prog_compiler__b+:} false; then : | |
11122 | $as_echo_n "(cached) " >&6 | |
11123 | else | |
11124 | lt_cv_prog_compiler__b=no | |
6f57a957 | 11125 | save_LDFLAGS=$LDFLAGS |
b6d0720c AC |
11126 | LDFLAGS="$LDFLAGS -b" |
11127 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11128 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11129 | # The linker can only warn and ignore the option if not recognized | |
11130 | # So say no if there are warnings | |
11131 | if test -s conftest.err; then | |
11132 | # Append any errors to the config.log. | |
11133 | cat conftest.err 1>&5 | |
11134 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11135 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11136 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11137 | lt_cv_prog_compiler__b=yes | |
11138 | fi | |
11139 | else | |
11140 | lt_cv_prog_compiler__b=yes | |
11141 | fi | |
11142 | fi | |
11143 | $RM -r conftest* | |
6f57a957 | 11144 | LDFLAGS=$save_LDFLAGS |
b6d0720c AC |
11145 | |
11146 | fi | |
11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11148 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11149 | ||
6f57a957 AC |
11150 | if test yes = "$lt_cv_prog_compiler__b"; then |
11151 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b6d0720c AC |
11152 | else |
11153 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11154 | fi | |
11155 | ||
db137867 AC |
11156 | ;; |
11157 | esac | |
11158 | fi | |
6f57a957 AC |
11159 | if test no = "$with_gnu_ld"; then |
11160 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
7083c021 | 11161 | hardcode_libdir_separator=: |
db137867 AC |
11162 | |
11163 | case $host_cpu in | |
11164 | hppa*64*|ia64*) | |
7083c021 AC |
11165 | hardcode_direct=no |
11166 | hardcode_shlibpath_var=no | |
db137867 AC |
11167 | ;; |
11168 | *) | |
7083c021 AC |
11169 | hardcode_direct=yes |
11170 | hardcode_direct_absolute=yes | |
6f57a957 | 11171 | export_dynamic_flag_spec='$wl-E' |
db137867 AC |
11172 | |
11173 | # hardcode_minus_L: Not really in the search PATH, | |
11174 | # but as the default location of the library. | |
7083c021 | 11175 | hardcode_minus_L=yes |
db137867 AC |
11176 | ;; |
11177 | esac | |
11178 | fi | |
11179 | ;; | |
11180 | ||
11181 | irix5* | irix6* | nonstopux*) | |
6f57a957 AC |
11182 | if test yes = "$GCC"; then |
11183 | 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' | |
7083c021 AC |
11184 | # Try to use the -exported_symbol ld option, if it does not |
11185 | # work, assume that -exports_file does not work either and | |
11186 | # implicitly export all symbols. | |
b6d0720c AC |
11187 | # This should be the same for all languages, so no per-tag cache variable. |
11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
11189 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
11190 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
11191 | $as_echo_n "(cached) " >&6 | |
11192 | else | |
6f57a957 AC |
11193 | save_LDFLAGS=$LDFLAGS |
11194 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b6d0720c | 11195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 | 11196 | /* end confdefs.h. */ |
b6d0720c | 11197 | int foo (void) { return 0; } |
7083c021 AC |
11198 | _ACEOF |
11199 | if ac_fn_c_try_link "$LINENO"; then : | |
b6d0720c AC |
11200 | lt_cv_irix_exported_symbol=yes |
11201 | else | |
11202 | lt_cv_irix_exported_symbol=no | |
7083c021 AC |
11203 | fi |
11204 | rm -f core conftest.err conftest.$ac_objext \ | |
11205 | conftest$ac_exeext conftest.$ac_ext | |
6f57a957 | 11206 | LDFLAGS=$save_LDFLAGS |
b6d0720c AC |
11207 | fi |
11208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
11209 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
6f57a957 AC |
11210 | if test yes = "$lt_cv_irix_exported_symbol"; then |
11211 | 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' | |
b6d0720c | 11212 | fi |
db137867 | 11213 | else |
6f57a957 AC |
11214 | 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' |
11215 | 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' | |
db137867 | 11216 | fi |
7083c021 | 11217 | archive_cmds_need_lc='no' |
6f57a957 | 11218 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
7083c021 AC |
11219 | hardcode_libdir_separator=: |
11220 | inherit_rpath=yes | |
11221 | link_all_deplibs=yes | |
db137867 AC |
11222 | ;; |
11223 | ||
6f57a957 AC |
11224 | linux*) |
11225 | case $cc_basename in | |
11226 | tcc*) | |
11227 | # Fabrice Bellard et al's Tiny C Compiler | |
11228 | ld_shlibs=yes | |
11229 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11230 | ;; | |
11231 | esac | |
11232 | ;; | |
11233 | ||
96f4052b | 11234 | netbsd*) |
7083c021 AC |
11235 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
11236 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
db137867 | 11237 | else |
7083c021 | 11238 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
db137867 | 11239 | fi |
7083c021 AC |
11240 | hardcode_libdir_flag_spec='-R$libdir' |
11241 | hardcode_direct=yes | |
11242 | hardcode_shlibpath_var=no | |
db137867 AC |
11243 | ;; |
11244 | ||
11245 | newsos6) | |
7083c021 AC |
11246 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11247 | hardcode_direct=yes | |
6f57a957 | 11248 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
7083c021 AC |
11249 | hardcode_libdir_separator=: |
11250 | hardcode_shlibpath_var=no | |
11251 | ;; | |
11252 | ||
11253 | *nto* | *qnx*) | |
db137867 AC |
11254 | ;; |
11255 | ||
6f57a957 | 11256 | openbsd* | bitrig*) |
db137867 | 11257 | if test -f /usr/libexec/ld.so; then |
7083c021 AC |
11258 | hardcode_direct=yes |
11259 | hardcode_shlibpath_var=no | |
11260 | hardcode_direct_absolute=yes | |
6f57a957 | 11261 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
7083c021 | 11262 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6f57a957 AC |
11263 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
11264 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
11265 | export_dynamic_flag_spec='$wl-E' | |
db137867 | 11266 | else |
6f57a957 AC |
11267 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
11268 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
7083c021 | 11269 | fi |
db137867 | 11270 | else |
7083c021 | 11271 | ld_shlibs=no |
db137867 AC |
11272 | fi |
11273 | ;; | |
11274 | ||
11275 | os2*) | |
7083c021 AC |
11276 | hardcode_libdir_flag_spec='-L$libdir' |
11277 | hardcode_minus_L=yes | |
11278 | allow_undefined_flag=unsupported | |
6f57a957 AC |
11279 | shrext_cmds=.dll |
11280 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11281 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11282 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11283 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11284 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
11285 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11286 | emximp -o $lib $output_objdir/$libname.def' | |
11287 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11288 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11289 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11290 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11291 | prefix_cmds="$SED"~ | |
11292 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
11293 | prefix_cmds="$prefix_cmds -e 1d"; | |
11294 | fi~ | |
11295 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
11296 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
11297 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11298 | emximp -o $lib $output_objdir/$libname.def' | |
11299 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
11300 | enable_shared_with_static_runtimes=yes | |
db137867 AC |
11301 | ;; |
11302 | ||
11303 | osf3*) | |
6f57a957 AC |
11304 | if test yes = "$GCC"; then |
11305 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11306 | 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' | |
db137867 | 11307 | else |
7083c021 | 11308 | allow_undefined_flag=' -expect_unresolved \*' |
6f57a957 | 11309 | 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' |
db137867 | 11310 | fi |
7083c021 | 11311 | archive_cmds_need_lc='no' |
6f57a957 | 11312 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
7083c021 | 11313 | hardcode_libdir_separator=: |
db137867 AC |
11314 | ;; |
11315 | ||
11316 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
6f57a957 AC |
11317 | if test yes = "$GCC"; then |
11318 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11319 | 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' | |
11320 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
db137867 | 11321 | else |
7083c021 | 11322 | allow_undefined_flag=' -expect_unresolved \*' |
6f57a957 | 11323 | 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' |
7083c021 | 11324 | 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~ |
6f57a957 | 11325 | $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' |
db137867 AC |
11326 | |
11327 | # Both c and cxx compiler support -rpath directly | |
7083c021 | 11328 | hardcode_libdir_flag_spec='-rpath $libdir' |
db137867 | 11329 | fi |
7083c021 AC |
11330 | archive_cmds_need_lc='no' |
11331 | hardcode_libdir_separator=: | |
db137867 AC |
11332 | ;; |
11333 | ||
11334 | solaris*) | |
7083c021 | 11335 | no_undefined_flag=' -z defs' |
6f57a957 AC |
11336 | if test yes = "$GCC"; then |
11337 | wlarc='$wl' | |
11338 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7083c021 | 11339 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6f57a957 | 11340 | $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' |
db137867 | 11341 | else |
7083c021 AC |
11342 | case `$CC -V 2>&1` in |
11343 | *"Compilers 5.0"*) | |
11344 | wlarc='' | |
6f57a957 | 11345 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7083c021 | 11346 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6f57a957 | 11347 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
7083c021 AC |
11348 | ;; |
11349 | *) | |
6f57a957 AC |
11350 | wlarc='$wl' |
11351 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7083c021 | 11352 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6f57a957 | 11353 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
7083c021 AC |
11354 | ;; |
11355 | esac | |
db137867 | 11356 | fi |
7083c021 AC |
11357 | hardcode_libdir_flag_spec='-R$libdir' |
11358 | hardcode_shlibpath_var=no | |
db137867 AC |
11359 | case $host_os in |
11360 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11361 | *) | |
11362 | # The compiler driver will combine and reorder linker options, | |
6f57a957 | 11363 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
db137867 | 11364 | # but is careful enough not to reorder. |
7083c021 | 11365 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
6f57a957 AC |
11366 | if test yes = "$GCC"; then |
11367 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
db137867 | 11368 | else |
7083c021 | 11369 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
db137867 AC |
11370 | fi |
11371 | ;; | |
11372 | esac | |
7083c021 | 11373 | link_all_deplibs=yes |
db137867 AC |
11374 | ;; |
11375 | ||
11376 | sunos4*) | |
6f57a957 | 11377 | if test sequent = "$host_vendor"; then |
db137867 AC |
11378 | # Use $CC to link under sequent, because it throws in some extra .o |
11379 | # files that make .init and .fini sections work. | |
6f57a957 | 11380 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 | 11381 | else |
7083c021 | 11382 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 11383 | fi |
7083c021 AC |
11384 | hardcode_libdir_flag_spec='-L$libdir' |
11385 | hardcode_direct=yes | |
11386 | hardcode_minus_L=yes | |
11387 | hardcode_shlibpath_var=no | |
db137867 AC |
11388 | ;; |
11389 | ||
11390 | sysv4) | |
11391 | case $host_vendor in | |
11392 | sni) | |
7083c021 AC |
11393 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11394 | hardcode_direct=yes # is this really true??? | |
db137867 AC |
11395 | ;; |
11396 | siemens) | |
11397 | ## LD is ld it makes a PLAMLIB | |
11398 | ## CC just makes a GrossModule. | |
7083c021 AC |
11399 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
11400 | reload_cmds='$CC -r -o $output$reload_objs' | |
11401 | hardcode_direct=no | |
db137867 AC |
11402 | ;; |
11403 | motorola) | |
7083c021 AC |
11404 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11405 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
db137867 AC |
11406 | ;; |
11407 | esac | |
11408 | runpath_var='LD_RUN_PATH' | |
7083c021 | 11409 | hardcode_shlibpath_var=no |
db137867 AC |
11410 | ;; |
11411 | ||
11412 | sysv4.3*) | |
7083c021 AC |
11413 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11414 | hardcode_shlibpath_var=no | |
11415 | export_dynamic_flag_spec='-Bexport' | |
db137867 AC |
11416 | ;; |
11417 | ||
11418 | sysv4*MP*) | |
11419 | if test -d /usr/nec; then | |
7083c021 AC |
11420 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11421 | hardcode_shlibpath_var=no | |
db137867 AC |
11422 | runpath_var=LD_RUN_PATH |
11423 | hardcode_runpath_var=yes | |
7083c021 | 11424 | ld_shlibs=yes |
db137867 AC |
11425 | fi |
11426 | ;; | |
11427 | ||
11428 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
6f57a957 | 11429 | no_undefined_flag='$wl-z,text' |
7083c021 AC |
11430 | archive_cmds_need_lc=no |
11431 | hardcode_shlibpath_var=no | |
db137867 AC |
11432 | runpath_var='LD_RUN_PATH' |
11433 | ||
6f57a957 AC |
11434 | if test yes = "$GCC"; then |
11435 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11436 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 11437 | else |
6f57a957 AC |
11438 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11439 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 AC |
11440 | fi |
11441 | ;; | |
11442 | ||
11443 | sysv5* | sco3.2v5* | sco5v6*) | |
6f57a957 | 11444 | # Note: We CANNOT use -z defs as we might desire, because we do not |
db137867 AC |
11445 | # link with -lc, and that would cause any symbols used from libc to |
11446 | # always be unresolved, which means just about no library would | |
11447 | # ever link correctly. If we're not using GNU ld we use -z text | |
11448 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11449 | # as -z defs. | |
6f57a957 AC |
11450 | no_undefined_flag='$wl-z,text' |
11451 | allow_undefined_flag='$wl-z,nodefs' | |
7083c021 AC |
11452 | archive_cmds_need_lc=no |
11453 | hardcode_shlibpath_var=no | |
6f57a957 | 11454 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
7083c021 AC |
11455 | hardcode_libdir_separator=':' |
11456 | link_all_deplibs=yes | |
6f57a957 | 11457 | export_dynamic_flag_spec='$wl-Bexport' |
db137867 AC |
11458 | runpath_var='LD_RUN_PATH' |
11459 | ||
6f57a957 AC |
11460 | if test yes = "$GCC"; then |
11461 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11462 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 11463 | else |
6f57a957 AC |
11464 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11465 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 AC |
11466 | fi |
11467 | ;; | |
11468 | ||
11469 | uts4*) | |
7083c021 AC |
11470 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11471 | hardcode_libdir_flag_spec='-L$libdir' | |
11472 | hardcode_shlibpath_var=no | |
db137867 AC |
11473 | ;; |
11474 | ||
11475 | *) | |
7083c021 | 11476 | ld_shlibs=no |
db137867 AC |
11477 | ;; |
11478 | esac | |
7083c021 | 11479 | |
6f57a957 | 11480 | if test sni = "$host_vendor"; then |
7083c021 AC |
11481 | case $host in |
11482 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6f57a957 | 11483 | export_dynamic_flag_spec='$wl-Blargedynsym' |
7083c021 AC |
11484 | ;; |
11485 | esac | |
11486 | fi | |
db137867 AC |
11487 | fi |
11488 | ||
7083c021 AC |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11490 | $as_echo "$ld_shlibs" >&6; } | |
6f57a957 | 11491 | test no = "$ld_shlibs" && can_build_shared=no |
7083c021 AC |
11492 | |
11493 | with_gnu_ld=$with_gnu_ld | |
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
db137867 AC |
11508 | |
11509 | # | |
11510 | # Do we need to explicitly link libc? | |
11511 | # | |
7083c021 | 11512 | case "x$archive_cmds_need_lc" in |
db137867 AC |
11513 | x|xyes) |
11514 | # Assume -lc should be added | |
7083c021 | 11515 | archive_cmds_need_lc=yes |
db137867 | 11516 | |
6f57a957 | 11517 | if test yes,yes = "$GCC,$enable_shared"; then |
7083c021 | 11518 | case $archive_cmds in |
db137867 AC |
11519 | *'~'*) |
11520 | # FIXME: we may have to deal with multi-command sequences. | |
11521 | ;; | |
11522 | '$CC '*) | |
11523 | # Test whether the compiler implicitly links with -lc since on some | |
11524 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11525 | # to ld, don't add -lc before -lgcc. | |
7083c021 | 11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
030272f3 | 11527 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b6d0720c AC |
11528 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
11529 | $as_echo_n "(cached) " >&6 | |
11530 | else | |
11531 | $RM conftest* | |
11532 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 11533 | |
b6d0720c | 11534 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
db137867 AC |
11535 | (eval $ac_compile) 2>&5 |
11536 | ac_status=$? | |
7083c021 AC |
11537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11538 | test $ac_status = 0; } 2>conftest.err; then | |
b6d0720c AC |
11539 | soname=conftest |
11540 | lib=conftest | |
11541 | libobjs=conftest.$ac_objext | |
11542 | deplibs= | |
11543 | wl=$lt_prog_compiler_wl | |
11544 | pic_flag=$lt_prog_compiler_pic | |
11545 | compiler_flags=-v | |
11546 | linker_flags=-v | |
11547 | verstring= | |
11548 | output_objdir=. | |
11549 | libname=conftest | |
11550 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11551 | allow_undefined_flag= | |
11552 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
7083c021 | 11553 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
db137867 | 11554 | ac_status=$? |
7083c021 AC |
11555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11556 | test $ac_status = 0; } | |
b6d0720c AC |
11557 | then |
11558 | lt_cv_archive_cmds_need_lc=no | |
11559 | else | |
11560 | lt_cv_archive_cmds_need_lc=yes | |
11561 | fi | |
11562 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11563 | else | |
11564 | cat conftest.err 1>&5 | |
11565 | fi | |
11566 | $RM conftest* | |
11567 | ||
11568 | fi | |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11570 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11571 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
db137867 AC |
11572 | ;; |
11573 | esac | |
11574 | fi | |
11575 | ;; | |
11576 | esac | |
11577 | ||
db137867 | 11578 | |
db137867 | 11579 | |
db137867 | 11580 | |
db137867 | 11581 | |
db137867 | 11582 | |
db137867 | 11583 | |
db137867 | 11584 | |
db137867 | 11585 | |
db137867 | 11586 | |
db137867 | 11587 | |
db137867 | 11588 | |
db137867 | 11589 | |
db137867 | 11590 | |
db137867 | 11591 | |
db137867 | 11592 | |
db137867 | 11593 | |
db137867 | 11594 | |
db137867 | 11595 | |
db137867 | 11596 | |
db137867 | 11597 | |
db137867 | 11598 | |
db137867 | 11599 | |
db137867 | 11600 | |
db137867 | 11601 | |
db137867 | 11602 | |
db137867 | 11603 | |
db137867 | 11604 | |
db137867 | 11605 | |
db137867 | 11606 | |
db137867 | 11607 | |
db137867 | 11608 | |
db137867 | 11609 | |
db137867 | 11610 | |
db137867 | 11611 | |
db137867 | 11612 | |
db137867 | 11613 | |
db137867 | 11614 | |
db137867 | 11615 | |
db137867 | 11616 | |
db137867 | 11617 | |
db137867 | 11618 | |
b676ea3b | 11619 | |
b676ea3b | 11620 | |
b676ea3b | 11621 | |
db137867 | 11622 | |
db137867 | 11623 | |
db137867 | 11624 | |
db137867 AC |
11625 | |
11626 | ||
db137867 | 11627 | |
db137867 | 11628 | |
db137867 | 11629 | |
db137867 | 11630 | |
db137867 | 11631 | |
db137867 | 11632 | |
db137867 | 11633 | |
db137867 | 11634 | |
db137867 | 11635 | |
db137867 | 11636 | |
db137867 | 11637 | |
db137867 | 11638 | |
db137867 | 11639 | |
db137867 | 11640 | |
db137867 | 11641 | |
db137867 | 11642 | |
db137867 | 11643 | |
db137867 | 11644 | |
db137867 | 11645 | |
db137867 | 11646 | |
db137867 | 11647 | |
db137867 | 11648 | |
db137867 | 11649 | |
db137867 | 11650 | |
db137867 | 11651 | |
db137867 | 11652 | |
db137867 | 11653 | |
db137867 | 11654 | |
db137867 | 11655 | |
db137867 | 11656 | |
db137867 | 11657 | |
db137867 | 11658 | |
db137867 | 11659 | |
db137867 | 11660 | |
db137867 | 11661 | |
db137867 | 11662 | |
db137867 | 11663 | |
db137867 | 11664 | |
db137867 | 11665 | |
db137867 | 11666 | |
db137867 | 11667 | |
db137867 | 11668 | |
db137867 | 11669 | |
db137867 | 11670 | |
db137867 | 11671 | |
db137867 | 11672 | |
db137867 | 11673 | |
db137867 | 11674 | |
db137867 | 11675 | |
db137867 | 11676 | |
db137867 | 11677 | |
db137867 | 11678 | |
db137867 | 11679 | |
db137867 | 11680 | |
db137867 | 11681 | |
db137867 | 11682 | |
db137867 | 11683 | |
db137867 | 11684 | |
db137867 | 11685 | |
db137867 | 11686 | |
db137867 | 11687 | |
db137867 | 11688 | |
db137867 | 11689 | |
b676ea3b | 11690 | |
db137867 | 11691 | |
db137867 | 11692 | |
db137867 | 11693 | |
db137867 | 11694 | |
db137867 | 11695 | |
db137867 | 11696 | |
db137867 | 11697 | |
db137867 | 11698 | |
db137867 | 11699 | |
db137867 | 11700 | |
db137867 | 11701 | |
db137867 | 11702 | |
db137867 | 11703 | |
db137867 | 11704 | |
db137867 | 11705 | |
db137867 | 11706 | |
db137867 | 11707 | |
db137867 | 11708 | |
db137867 | 11709 | |
db137867 | 11710 | |
db137867 | 11711 | |
db137867 | 11712 | |
db137867 | 11713 | |
db137867 | 11714 | |
db137867 | 11715 | |
db137867 | 11716 | |
db137867 | 11717 | |
db137867 | 11718 | |
db137867 | 11719 | |
db137867 | 11720 | |
db137867 | 11721 | |
db137867 | 11722 | |
7083c021 AC |
11723 | |
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11730 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11731 | ||
6f57a957 | 11732 | if test yes = "$GCC"; then |
7083c021 | 11733 | case $host_os in |
6f57a957 AC |
11734 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
11735 | *) lt_awk_arg='/^libraries:/' ;; | |
7083c021 | 11736 | esac |
b6d0720c | 11737 | case $host_os in |
6f57a957 AC |
11738 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
11739 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b6d0720c AC |
11740 | esac |
11741 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11742 | case $lt_search_path_spec in | |
11743 | *\;*) | |
7083c021 AC |
11744 | # if the path contains ";" then we assume it to be the separator |
11745 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11746 | # assumed that no part of a normal pathname contains ";" but that should | |
11747 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b6d0720c AC |
11748 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11749 | ;; | |
11750 | *) | |
11751 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11752 | ;; | |
11753 | esac | |
7083c021 | 11754 | # Ok, now we have the path, separated by spaces, we can step through it |
6f57a957 | 11755 | # and add multilib dir if necessary... |
7083c021 | 11756 | lt_tmp_lt_search_path_spec= |
6f57a957 AC |
11757 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
11758 | # ...but if some path component already ends with the multilib dir we assume | |
11759 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11760 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11761 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11762 | lt_multi_os_dir= | |
11763 | ;; | |
11764 | esac | |
7083c021 | 11765 | for lt_sys_path in $lt_search_path_spec; do |
6f57a957 AC |
11766 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
11767 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11768 | elif test -n "$lt_multi_os_dir"; then | |
7083c021 AC |
11769 | test -d "$lt_sys_path" && \ |
11770 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11771 | fi | |
11772 | done | |
b6d0720c | 11773 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
6f57a957 AC |
11774 | BEGIN {RS = " "; FS = "/|\n";} { |
11775 | lt_foo = ""; | |
11776 | lt_count = 0; | |
7083c021 AC |
11777 | for (lt_i = NF; lt_i > 0; lt_i--) { |
11778 | if ($lt_i != "" && $lt_i != ".") { | |
11779 | if ($lt_i == "..") { | |
11780 | lt_count++; | |
11781 | } else { | |
11782 | if (lt_count == 0) { | |
6f57a957 | 11783 | lt_foo = "/" $lt_i lt_foo; |
7083c021 AC |
11784 | } else { |
11785 | lt_count--; | |
11786 | } | |
11787 | } | |
11788 | } | |
11789 | } | |
11790 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11791 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11792 | }'` | |
b6d0720c AC |
11793 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11794 | # for these hosts. | |
11795 | case $host_os in | |
11796 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
6f57a957 | 11797 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b6d0720c AC |
11798 | esac |
11799 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
7083c021 AC |
11800 | else |
11801 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11802 | fi | |
11803 | library_names_spec= | |
11804 | libname_spec='lib$name' | |
11805 | soname_spec= | |
6f57a957 | 11806 | shrext_cmds=.so |
7083c021 AC |
11807 | postinstall_cmds= |
11808 | postuninstall_cmds= | |
11809 | finish_cmds= | |
11810 | finish_eval= | |
11811 | shlibpath_var= | |
11812 | shlibpath_overrides_runpath=unknown | |
11813 | version_type=none | |
11814 | dynamic_linker="$host_os ld.so" | |
11815 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11816 | need_lib_prefix=unknown | |
11817 | hardcode_into_libs=no | |
11818 | ||
11819 | # when you set need_version to no, make sure it does not cause -set_version | |
11820 | # flags to be left without arguments | |
11821 | need_version=unknown | |
11822 | ||
6f57a957 AC |
11823 | |
11824 | ||
7083c021 AC |
11825 | case $host_os in |
11826 | aix3*) | |
a949ab1a | 11827 | version_type=linux # correct to gnu/linux during the next big refactor |
6f57a957 | 11828 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
7083c021 AC |
11829 | shlibpath_var=LIBPATH |
11830 | ||
11831 | # AIX 3 has no versioning support, so we append a major version to the name. | |
6f57a957 | 11832 | soname_spec='$libname$release$shared_ext$major' |
7083c021 AC |
11833 | ;; |
11834 | ||
11835 | aix[4-9]*) | |
a949ab1a | 11836 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11837 | need_lib_prefix=no |
11838 | need_version=no | |
11839 | hardcode_into_libs=yes | |
6f57a957 | 11840 | if test ia64 = "$host_cpu"; then |
7083c021 | 11841 | # AIX 5 supports IA64 |
6f57a957 | 11842 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
7083c021 AC |
11843 | shlibpath_var=LD_LIBRARY_PATH |
11844 | else | |
11845 | # With GCC up to 2.95.x, collect2 would create an import file | |
11846 | # for dependence libraries. The import file would start with | |
6f57a957 AC |
11847 | # the line '#! .'. This would cause the generated library to |
11848 | # depend on '.', always an invalid library. This was fixed in | |
7083c021 AC |
11849 | # development snapshots of GCC prior to 3.0. |
11850 | case $host_os in | |
11851 | aix4 | aix4.[01] | aix4.[01].*) | |
11852 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11853 | echo ' yes ' | |
6f57a957 | 11854 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
7083c021 AC |
11855 | : |
11856 | else | |
11857 | can_build_shared=no | |
11858 | fi | |
11859 | ;; | |
11860 | esac | |
6f57a957 AC |
11861 | # Using Import Files as archive members, it is possible to support |
11862 | # filename-based versioning of shared library archives on AIX. While | |
11863 | # this would work for both with and without runtime linking, it will | |
11864 | # prevent static linking of such archives. So we do filename-based | |
11865 | # shared library versioning with .so extension only, which is used | |
11866 | # when both runtime linking and shared linking is enabled. | |
11867 | # Unfortunately, runtime linking may impact performance, so we do | |
11868 | # not want this to be the default eventually. Also, we use the | |
11869 | # versioned .so libs for executables only if there is the -brtl | |
11870 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11871 | # To allow for filename-based versioning support, we need to create | |
11872 | # libNAME.so.V as an archive file, containing: | |
11873 | # *) an Import File, referring to the versioned filename of the | |
11874 | # archive as well as the shared archive member, telling the | |
11875 | # bitwidth (32 or 64) of that shared object, and providing the | |
11876 | # list of exported symbols of that shared object, eventually | |
11877 | # decorated with the 'weak' keyword | |
11878 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11879 | # it being seen by the linker. | |
11880 | # At run time we better use the real file rather than another symlink, | |
11881 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11882 | ||
11883 | case $with_aix_soname,$aix_use_runtimelinking in | |
11884 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
7083c021 AC |
11885 | # soname into executable. Probably we can add versioning support to |
11886 | # collect2, so additional links can be useful in future. | |
6f57a957 AC |
11887 | aix,yes) # traditional libtool |
11888 | dynamic_linker='AIX unversionable lib.so' | |
7083c021 AC |
11889 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11890 | # instead of lib<name>.a to let people know that these are not | |
11891 | # typical AIX shared libraries. | |
6f57a957 AC |
11892 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11893 | ;; | |
11894 | aix,no) # traditional AIX only | |
11895 | dynamic_linker='AIX lib.a(lib.so.V)' | |
7083c021 AC |
11896 | # We preserve .a as extension for shared libraries through AIX4.2 |
11897 | # and later when we are not doing run time linking. | |
6f57a957 AC |
11898 | library_names_spec='$libname$release.a $libname.a' |
11899 | soname_spec='$libname$release$shared_ext$major' | |
11900 | ;; | |
11901 | svr4,*) # full svr4 only | |
11902 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11903 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11904 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11905 | shlibpath_overrides_runpath=yes | |
11906 | ;; | |
11907 | *,yes) # both, prefer svr4 | |
11908 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11909 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11910 | # unpreferred sharedlib libNAME.a needs extra handling | |
11911 | 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"' | |
11912 | 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"' | |
11913 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11914 | shlibpath_overrides_runpath=yes | |
11915 | ;; | |
11916 | *,no) # both, prefer aix | |
11917 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11918 | library_names_spec='$libname$release.a $libname.a' | |
11919 | soname_spec='$libname$release$shared_ext$major' | |
11920 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11921 | 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)' | |
11922 | 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"' | |
11923 | ;; | |
11924 | esac | |
7083c021 AC |
11925 | shlibpath_var=LIBPATH |
11926 | fi | |
11927 | ;; | |
11928 | ||
11929 | amigaos*) | |
11930 | case $host_cpu in | |
11931 | powerpc) | |
11932 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11933 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
6f57a957 | 11934 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
7083c021 AC |
11935 | ;; |
11936 | m68k) | |
11937 | library_names_spec='$libname.ixlibrary $libname.a' | |
11938 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
6f57a957 | 11939 | 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' |
7083c021 AC |
11940 | ;; |
11941 | esac | |
11942 | ;; | |
11943 | ||
11944 | beos*) | |
6f57a957 | 11945 | library_names_spec='$libname$shared_ext' |
7083c021 AC |
11946 | dynamic_linker="$host_os ld.so" |
11947 | shlibpath_var=LIBRARY_PATH | |
11948 | ;; | |
11949 | ||
11950 | bsdi[45]*) | |
a949ab1a | 11951 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 | 11952 | need_version=no |
6f57a957 AC |
11953 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11954 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
11955 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11956 | shlibpath_var=LD_LIBRARY_PATH | |
11957 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11958 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11959 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11960 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11961 | # libtool to hard-code these into programs | |
11962 | ;; | |
11963 | ||
11964 | cygwin* | mingw* | pw32* | cegcc*) | |
11965 | version_type=windows | |
6f57a957 | 11966 | shrext_cmds=.dll |
7083c021 AC |
11967 | need_version=no |
11968 | need_lib_prefix=no | |
11969 | ||
b6d0720c AC |
11970 | case $GCC,$cc_basename in |
11971 | yes,*) | |
11972 | # gcc | |
7083c021 AC |
11973 | library_names_spec='$libname.dll.a' |
11974 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
6f57a957 AC |
11975 | postinstall_cmds='base_file=`basename \$file`~ |
11976 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
7083c021 AC |
11977 | dldir=$destdir/`dirname \$dlpath`~ |
11978 | test -d \$dldir || mkdir -p \$dldir~ | |
11979 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11980 | chmod a+x \$dldir/$dlname~ | |
11981 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11982 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11983 | fi' | |
11984 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11985 | dlpath=$dir/\$dldll~ | |
11986 | $RM \$dlpath' | |
11987 | shlibpath_overrides_runpath=yes | |
11988 | ||
11989 | case $host_os in | |
11990 | cygwin*) | |
11991 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
6f57a957 | 11992 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b6d0720c AC |
11993 | |
11994 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
7083c021 AC |
11995 | ;; |
11996 | mingw* | cegcc*) | |
11997 | # MinGW DLLs use traditional 'lib' prefix | |
6f57a957 | 11998 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
7083c021 AC |
11999 | ;; |
12000 | pw32*) | |
12001 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
6f57a957 | 12002 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
7083c021 AC |
12003 | ;; |
12004 | esac | |
b6d0720c AC |
12005 | dynamic_linker='Win32 ld.exe' |
12006 | ;; | |
12007 | ||
12008 | *,cl*) | |
12009 | # Native MSVC | |
12010 | libname_spec='$name' | |
6f57a957 AC |
12011 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
12012 | library_names_spec='$libname.dll.lib' | |
b6d0720c AC |
12013 | |
12014 | case $build_os in | |
12015 | mingw*) | |
12016 | sys_lib_search_path_spec= | |
12017 | lt_save_ifs=$IFS | |
12018 | IFS=';' | |
12019 | for lt_path in $LIB | |
12020 | do | |
12021 | IFS=$lt_save_ifs | |
12022 | # Let DOS variable expansion print the short 8.3 style file name. | |
12023 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
12024 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
12025 | done | |
12026 | IFS=$lt_save_ifs | |
12027 | # Convert to MSYS style. | |
12028 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
12029 | ;; | |
12030 | cygwin*) | |
12031 | # Convert to unix form, then to dos form, then back to unix form | |
12032 | # but this time dos style (no spaces!) so that the unix form looks | |
12033 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
12034 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
12035 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
12036 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12037 | ;; | |
12038 | *) | |
6f57a957 | 12039 | sys_lib_search_path_spec=$LIB |
b6d0720c AC |
12040 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
12041 | # It is most probably a Windows format PATH. | |
12042 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12043 | else | |
12044 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12045 | fi | |
12046 | # FIXME: find the short name or the path components, as spaces are | |
12047 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
12048 | ;; | |
12049 | esac | |
12050 | ||
12051 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
6f57a957 AC |
12052 | postinstall_cmds='base_file=`basename \$file`~ |
12053 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b6d0720c AC |
12054 | dldir=$destdir/`dirname \$dlpath`~ |
12055 | test -d \$dldir || mkdir -p \$dldir~ | |
12056 | $install_prog $dir/$dlname \$dldir/$dlname' | |
12057 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12058 | dlpath=$dir/\$dldll~ | |
12059 | $RM \$dlpath' | |
12060 | shlibpath_overrides_runpath=yes | |
12061 | dynamic_linker='Win32 link.exe' | |
7083c021 AC |
12062 | ;; |
12063 | ||
12064 | *) | |
b6d0720c | 12065 | # Assume MSVC wrapper |
6f57a957 | 12066 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b6d0720c | 12067 | dynamic_linker='Win32 ld.exe' |
7083c021 AC |
12068 | ;; |
12069 | esac | |
7083c021 AC |
12070 | # FIXME: first we should search . and the directory the executable is in |
12071 | shlibpath_var=PATH | |
12072 | ;; | |
12073 | ||
12074 | darwin* | rhapsody*) | |
12075 | dynamic_linker="$host_os dyld" | |
12076 | version_type=darwin | |
12077 | need_lib_prefix=no | |
12078 | need_version=no | |
6f57a957 AC |
12079 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
12080 | soname_spec='$libname$release$major$shared_ext' | |
7083c021 AC |
12081 | shlibpath_overrides_runpath=yes |
12082 | shlibpath_var=DYLD_LIBRARY_PATH | |
12083 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12084 | ||
12085 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
12086 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12087 | ;; | |
12088 | ||
12089 | dgux*) | |
a949ab1a | 12090 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12091 | need_lib_prefix=no |
12092 | need_version=no | |
6f57a957 AC |
12093 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12094 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12095 | shlibpath_var=LD_LIBRARY_PATH |
12096 | ;; | |
12097 | ||
7083c021 AC |
12098 | freebsd* | dragonfly*) |
12099 | # DragonFly does not have aout. When/if they implement a new | |
12100 | # versioning mechanism, adjust this. | |
12101 | if test -x /usr/bin/objformat; then | |
12102 | objformat=`/usr/bin/objformat` | |
12103 | else | |
12104 | case $host_os in | |
a949ab1a | 12105 | freebsd[23].*) objformat=aout ;; |
7083c021 AC |
12106 | *) objformat=elf ;; |
12107 | esac | |
db137867 | 12108 | fi |
f0718c93 | 12109 | version_type=freebsd-$objformat |
7083c021 AC |
12110 | case $version_type in |
12111 | freebsd-elf*) | |
6f57a957 AC |
12112 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12113 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12114 | need_version=no |
12115 | need_lib_prefix=no | |
12116 | ;; | |
12117 | freebsd-*) | |
6f57a957 | 12118 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
7083c021 AC |
12119 | need_version=yes |
12120 | ;; | |
12121 | esac | |
12122 | shlibpath_var=LD_LIBRARY_PATH | |
12123 | case $host_os in | |
a949ab1a | 12124 | freebsd2.*) |
7083c021 AC |
12125 | shlibpath_overrides_runpath=yes |
12126 | ;; | |
12127 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12128 | shlibpath_overrides_runpath=yes | |
12129 | hardcode_into_libs=yes | |
12130 | ;; | |
12131 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12132 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12133 | shlibpath_overrides_runpath=no | |
12134 | hardcode_into_libs=yes | |
12135 | ;; | |
12136 | *) # from 4.6 on, and DragonFly | |
12137 | shlibpath_overrides_runpath=yes | |
12138 | hardcode_into_libs=yes | |
12139 | ;; | |
12140 | esac | |
12141 | ;; | |
db137867 | 12142 | |
b6d0720c | 12143 | haiku*) |
a949ab1a | 12144 | version_type=linux # correct to gnu/linux during the next big refactor |
b6d0720c AC |
12145 | need_lib_prefix=no |
12146 | need_version=no | |
12147 | dynamic_linker="$host_os runtime_loader" | |
6f57a957 AC |
12148 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12149 | soname_spec='$libname$release$shared_ext$major' | |
b6d0720c | 12150 | shlibpath_var=LIBRARY_PATH |
6f57a957 | 12151 | shlibpath_overrides_runpath=no |
b6d0720c AC |
12152 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
12153 | hardcode_into_libs=yes | |
12154 | ;; | |
12155 | ||
7083c021 AC |
12156 | hpux9* | hpux10* | hpux11*) |
12157 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12158 | # link against other versions. | |
12159 | version_type=sunos | |
12160 | need_lib_prefix=no | |
12161 | need_version=no | |
12162 | case $host_cpu in | |
12163 | ia64*) | |
12164 | shrext_cmds='.so' | |
12165 | hardcode_into_libs=yes | |
12166 | dynamic_linker="$host_os dld.so" | |
12167 | shlibpath_var=LD_LIBRARY_PATH | |
12168 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
6f57a957 AC |
12169 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12170 | soname_spec='$libname$release$shared_ext$major' | |
12171 | if test 32 = "$HPUX_IA64_MODE"; then | |
7083c021 | 12172 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
6f57a957 | 12173 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
7083c021 AC |
12174 | else |
12175 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
6f57a957 | 12176 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
7083c021 | 12177 | fi |
7083c021 AC |
12178 | ;; |
12179 | hppa*64*) | |
12180 | shrext_cmds='.sl' | |
12181 | hardcode_into_libs=yes | |
12182 | dynamic_linker="$host_os dld.sl" | |
12183 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12184 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
6f57a957 AC |
12185 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12186 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12187 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12189 | ;; | |
12190 | *) | |
12191 | shrext_cmds='.sl' | |
12192 | dynamic_linker="$host_os dld.sl" | |
12193 | shlibpath_var=SHLIB_PATH | |
12194 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
6f57a957 AC |
12195 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12196 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12197 | ;; |
12198 | esac | |
b6d0720c | 12199 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
7083c021 | 12200 | postinstall_cmds='chmod 555 $lib' |
b6d0720c AC |
12201 | # or fails outright, so override atomically: |
12202 | install_override_mode=555 | |
7083c021 | 12203 | ;; |
db137867 | 12204 | |
7083c021 | 12205 | interix[3-9]*) |
a949ab1a | 12206 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12207 | need_lib_prefix=no |
12208 | need_version=no | |
6f57a957 AC |
12209 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12210 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12211 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12212 | shlibpath_var=LD_LIBRARY_PATH | |
12213 | shlibpath_overrides_runpath=no | |
12214 | hardcode_into_libs=yes | |
12215 | ;; | |
db137867 | 12216 | |
7083c021 AC |
12217 | irix5* | irix6* | nonstopux*) |
12218 | case $host_os in | |
12219 | nonstopux*) version_type=nonstopux ;; | |
12220 | *) | |
6f57a957 | 12221 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a949ab1a | 12222 | version_type=linux # correct to gnu/linux during the next big refactor |
db137867 | 12223 | else |
7083c021 AC |
12224 | version_type=irix |
12225 | fi ;; | |
12226 | esac | |
12227 | need_lib_prefix=no | |
12228 | need_version=no | |
6f57a957 AC |
12229 | soname_spec='$libname$release$shared_ext$major' |
12230 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
7083c021 AC |
12231 | case $host_os in |
12232 | irix5* | nonstopux*) | |
12233 | libsuff= shlibsuff= | |
12234 | ;; | |
12235 | *) | |
12236 | case $LD in # libtool.m4 will add one of these switches to LD | |
12237 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12238 | libsuff= shlibsuff= libmagic=32-bit;; | |
12239 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12240 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12241 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12242 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12243 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12244 | esac | |
12245 | ;; | |
12246 | esac | |
12247 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12248 | shlibpath_overrides_runpath=no | |
6f57a957 AC |
12249 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
12250 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
7083c021 AC |
12251 | hardcode_into_libs=yes |
12252 | ;; | |
db137867 | 12253 | |
7083c021 AC |
12254 | # No shared lib support for Linux oldld, aout, or coff. |
12255 | linux*oldld* | linux*aout* | linux*coff*) | |
12256 | dynamic_linker=no | |
12257 | ;; | |
db137867 | 12258 | |
6f57a957 AC |
12259 | linux*android*) |
12260 | version_type=none # Android doesn't support versioned libraries. | |
12261 | need_lib_prefix=no | |
12262 | need_version=no | |
12263 | library_names_spec='$libname$release$shared_ext' | |
12264 | soname_spec='$libname$release$shared_ext' | |
12265 | finish_cmds= | |
12266 | shlibpath_var=LD_LIBRARY_PATH | |
12267 | shlibpath_overrides_runpath=yes | |
12268 | ||
12269 | # This implies no fast_install, which is unacceptable. | |
12270 | # Some rework will be needed to allow for fast_install | |
12271 | # before this can be enabled. | |
12272 | hardcode_into_libs=yes | |
12273 | ||
12274 | dynamic_linker='Android linker' | |
12275 | # Don't embed -rpath directories since the linker doesn't support them. | |
12276 | hardcode_libdir_flag_spec='-L$libdir' | |
12277 | ;; | |
12278 | ||
a949ab1a | 12279 | # This must be glibc/ELF. |
6f57a957 | 12280 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a949ab1a | 12281 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12282 | need_lib_prefix=no |
12283 | need_version=no | |
6f57a957 AC |
12284 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12285 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12286 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12287 | shlibpath_var=LD_LIBRARY_PATH | |
12288 | shlibpath_overrides_runpath=no | |
b6d0720c | 12289 | |
7083c021 | 12290 | # Some binutils ld are patched to set DT_RUNPATH |
b6d0720c AC |
12291 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
12292 | $as_echo_n "(cached) " >&6 | |
12293 | else | |
12294 | lt_cv_shlibpath_overrides_runpath=no | |
12295 | save_LDFLAGS=$LDFLAGS | |
12296 | save_libdir=$libdir | |
12297 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12298 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 | 12300 | /* end confdefs.h. */ |
db137867 | 12301 | |
7083c021 AC |
12302 | int |
12303 | main () | |
12304 | { | |
db137867 | 12305 | |
7083c021 AC |
12306 | ; |
12307 | return 0; | |
12308 | } | |
12309 | _ACEOF | |
12310 | if ac_fn_c_try_link "$LINENO"; then : | |
12311 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
b6d0720c | 12312 | lt_cv_shlibpath_overrides_runpath=yes |
7083c021 AC |
12313 | fi |
12314 | fi | |
12315 | rm -f core conftest.err conftest.$ac_objext \ | |
12316 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
12317 | LDFLAGS=$save_LDFLAGS |
12318 | libdir=$save_libdir | |
12319 | ||
12320 | fi | |
12321 | ||
12322 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
db137867 | 12323 | |
7083c021 AC |
12324 | # This implies no fast_install, which is unacceptable. |
12325 | # Some rework will be needed to allow for fast_install | |
12326 | # before this can be enabled. | |
12327 | hardcode_into_libs=yes | |
db137867 | 12328 | |
6f57a957 AC |
12329 | # Ideally, we could use ldconfig to report *all* directores which are |
12330 | # searched for libraries, however this is still not possible. Aside from not | |
12331 | # being certain /sbin/ldconfig is available, command | |
12332 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
12333 | # even though it is searched at run-time. Try to do the best guess by | |
12334 | # appending ld.so.conf contents (and includes) to the search path. | |
7083c021 | 12335 | if test -f /etc/ld.so.conf; then |
b6d0720c AC |
12336 | 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' ' '` |
12337 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
db137867 | 12338 | fi |
db137867 | 12339 | |
7083c021 AC |
12340 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12341 | # powerpc, because MkLinux only supported shared libraries with the | |
12342 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12343 | # most powerpc-linux boxes support dynamic linking these days and | |
12344 | # people can always --disable-shared, the test was removed, and we | |
12345 | # assume the GNU/Linux dynamic linker is in use. | |
12346 | dynamic_linker='GNU/Linux ld.so' | |
12347 | ;; | |
12348 | ||
7083c021 AC |
12349 | netbsd*) |
12350 | version_type=sunos | |
12351 | need_lib_prefix=no | |
12352 | need_version=no | |
12353 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
6f57a957 | 12354 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
7083c021 AC |
12355 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12356 | dynamic_linker='NetBSD (a.out) ld.so' | |
12357 | else | |
6f57a957 AC |
12358 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12359 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12360 | dynamic_linker='NetBSD ld.elf_so' |
12361 | fi | |
12362 | shlibpath_var=LD_LIBRARY_PATH | |
12363 | shlibpath_overrides_runpath=yes | |
12364 | hardcode_into_libs=yes | |
12365 | ;; | |
db137867 | 12366 | |
7083c021 | 12367 | newsos6) |
a949ab1a | 12368 | version_type=linux # correct to gnu/linux during the next big refactor |
6f57a957 | 12369 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
7083c021 AC |
12370 | shlibpath_var=LD_LIBRARY_PATH |
12371 | shlibpath_overrides_runpath=yes | |
12372 | ;; | |
db137867 | 12373 | |
7083c021 AC |
12374 | *nto* | *qnx*) |
12375 | version_type=qnx | |
12376 | need_lib_prefix=no | |
12377 | need_version=no | |
6f57a957 AC |
12378 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12379 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12380 | shlibpath_var=LD_LIBRARY_PATH |
12381 | shlibpath_overrides_runpath=no | |
12382 | hardcode_into_libs=yes | |
12383 | dynamic_linker='ldqnx.so' | |
12384 | ;; | |
db137867 | 12385 | |
6f57a957 | 12386 | openbsd* | bitrig*) |
7083c021 | 12387 | version_type=sunos |
6f57a957 | 12388 | sys_lib_dlsearch_path_spec=/usr/lib |
7083c021 | 12389 | need_lib_prefix=no |
6f57a957 AC |
12390 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
12391 | need_version=no | |
7083c021 | 12392 | else |
6f57a957 | 12393 | need_version=yes |
7083c021 | 12394 | fi |
6f57a957 AC |
12395 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
12396 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12397 | shlibpath_var=LD_LIBRARY_PATH | |
12398 | shlibpath_overrides_runpath=yes | |
7083c021 | 12399 | ;; |
db137867 | 12400 | |
7083c021 AC |
12401 | os2*) |
12402 | libname_spec='$name' | |
6f57a957 AC |
12403 | version_type=windows |
12404 | shrext_cmds=.dll | |
12405 | need_version=no | |
7083c021 | 12406 | need_lib_prefix=no |
6f57a957 AC |
12407 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
12408 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
12409 | v=$($ECHO $release$versuffix | tr -d .-); | |
12410 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
12411 | $ECHO $n$v`$shared_ext' | |
12412 | library_names_spec='${libname}_dll.$libext' | |
7083c021 | 12413 | dynamic_linker='OS/2 ld.exe' |
6f57a957 AC |
12414 | shlibpath_var=BEGINLIBPATH |
12415 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12416 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12417 | postinstall_cmds='base_file=`basename \$file`~ | |
12418 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
12419 | dldir=$destdir/`dirname \$dlpath`~ | |
12420 | test -d \$dldir || mkdir -p \$dldir~ | |
12421 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12422 | chmod a+x \$dldir/$dlname~ | |
12423 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12424 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12425 | fi' | |
12426 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
12427 | dlpath=$dir/\$dldll~ | |
12428 | $RM \$dlpath' | |
7083c021 | 12429 | ;; |
db137867 | 12430 | |
7083c021 AC |
12431 | osf3* | osf4* | osf5*) |
12432 | version_type=osf | |
12433 | need_lib_prefix=no | |
12434 | need_version=no | |
6f57a957 AC |
12435 | soname_spec='$libname$release$shared_ext$major' |
12436 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
7083c021 AC |
12437 | shlibpath_var=LD_LIBRARY_PATH |
12438 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
6f57a957 | 12439 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
7083c021 | 12440 | ;; |
db137867 | 12441 | |
7083c021 AC |
12442 | rdos*) |
12443 | dynamic_linker=no | |
12444 | ;; | |
db137867 | 12445 | |
7083c021 | 12446 | solaris*) |
a949ab1a | 12447 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12448 | need_lib_prefix=no |
12449 | need_version=no | |
6f57a957 AC |
12450 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12451 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12452 | shlibpath_var=LD_LIBRARY_PATH |
12453 | shlibpath_overrides_runpath=yes | |
12454 | hardcode_into_libs=yes | |
12455 | # ldd complains unless libraries are executable | |
12456 | postinstall_cmds='chmod +x $lib' | |
12457 | ;; | |
db137867 | 12458 | |
7083c021 AC |
12459 | sunos4*) |
12460 | version_type=sunos | |
6f57a957 | 12461 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
7083c021 AC |
12462 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12463 | shlibpath_var=LD_LIBRARY_PATH | |
12464 | shlibpath_overrides_runpath=yes | |
6f57a957 | 12465 | if test yes = "$with_gnu_ld"; then |
7083c021 AC |
12466 | need_lib_prefix=no |
12467 | fi | |
12468 | need_version=yes | |
12469 | ;; | |
db137867 | 12470 | |
7083c021 | 12471 | sysv4 | sysv4.3*) |
a949ab1a | 12472 | version_type=linux # correct to gnu/linux during the next big refactor |
6f57a957 AC |
12473 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12474 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12475 | shlibpath_var=LD_LIBRARY_PATH |
12476 | case $host_vendor in | |
12477 | sni) | |
12478 | shlibpath_overrides_runpath=no | |
12479 | need_lib_prefix=no | |
12480 | runpath_var=LD_RUN_PATH | |
12481 | ;; | |
12482 | siemens) | |
12483 | need_lib_prefix=no | |
12484 | ;; | |
12485 | motorola) | |
12486 | need_lib_prefix=no | |
12487 | need_version=no | |
12488 | shlibpath_overrides_runpath=no | |
12489 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12490 | ;; | |
12491 | esac | |
12492 | ;; | |
db137867 | 12493 | |
7083c021 | 12494 | sysv4*MP*) |
6f57a957 | 12495 | if test -d /usr/nec; then |
a949ab1a | 12496 | version_type=linux # correct to gnu/linux during the next big refactor |
6f57a957 AC |
12497 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
12498 | soname_spec='$libname$shared_ext.$major' | |
7083c021 AC |
12499 | shlibpath_var=LD_LIBRARY_PATH |
12500 | fi | |
12501 | ;; | |
db137867 | 12502 | |
7083c021 | 12503 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6f57a957 | 12504 | version_type=sco |
7083c021 AC |
12505 | need_lib_prefix=no |
12506 | need_version=no | |
6f57a957 AC |
12507 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
12508 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12509 | shlibpath_var=LD_LIBRARY_PATH |
12510 | shlibpath_overrides_runpath=yes | |
12511 | hardcode_into_libs=yes | |
6f57a957 | 12512 | if test yes = "$with_gnu_ld"; then |
7083c021 AC |
12513 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12514 | else | |
12515 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12516 | case $host_os in | |
12517 | sco3.2v5*) | |
12518 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12519 | ;; | |
12520 | esac | |
12521 | fi | |
12522 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12523 | ;; | |
db137867 | 12524 | |
7083c021 AC |
12525 | tpf*) |
12526 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
a949ab1a | 12527 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12528 | need_lib_prefix=no |
12529 | need_version=no | |
6f57a957 | 12530 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
7083c021 AC |
12531 | shlibpath_var=LD_LIBRARY_PATH |
12532 | shlibpath_overrides_runpath=no | |
12533 | hardcode_into_libs=yes | |
12534 | ;; | |
db137867 | 12535 | |
7083c021 | 12536 | uts4*) |
a949ab1a | 12537 | version_type=linux # correct to gnu/linux during the next big refactor |
6f57a957 AC |
12538 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12539 | soname_spec='$libname$release$shared_ext$major' | |
7083c021 AC |
12540 | shlibpath_var=LD_LIBRARY_PATH |
12541 | ;; | |
db137867 | 12542 | |
7083c021 AC |
12543 | *) |
12544 | dynamic_linker=no | |
12545 | ;; | |
12546 | esac | |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12548 | $as_echo "$dynamic_linker" >&6; } | |
6f57a957 | 12549 | test no = "$dynamic_linker" && can_build_shared=no |
db137867 | 12550 | |
7083c021 | 12551 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
6f57a957 | 12552 | if test yes = "$GCC"; then |
7083c021 AC |
12553 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12554 | fi | |
db137867 | 12555 | |
6f57a957 AC |
12556 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
12557 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
7083c021 | 12558 | fi |
6f57a957 AC |
12559 | |
12560 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
12561 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
7083c021 | 12562 | fi |
db137867 | 12563 | |
6f57a957 AC |
12564 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
12565 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12566 | ||
12567 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12568 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12569 | ||
12570 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12571 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12572 | ||
12573 | ||
12574 | ||
12575 | ||
12576 | ||
12577 | ||
db137867 | 12578 | |
db137867 | 12579 | |
db137867 | 12580 | |
db137867 | 12581 | |
db137867 | 12582 | |
db137867 | 12583 | |
db137867 | 12584 | |
db137867 | 12585 | |
db137867 | 12586 | |
db137867 | 12587 | |
db137867 | 12588 | |
db137867 | 12589 | |
db137867 | 12590 | |
db137867 | 12591 | |
db137867 | 12592 | |
db137867 | 12593 | |
db137867 | 12594 | |
db137867 | 12595 | |
db137867 | 12596 | |
db137867 | 12597 | |
db137867 | 12598 | |
db137867 | 12599 | |
db137867 | 12600 | |
db137867 | 12601 | |
db137867 | 12602 | |
db137867 | 12603 | |
db137867 | 12604 | |
db137867 | 12605 | |
db137867 | 12606 | |
db137867 | 12607 | |
db137867 | 12608 | |
db137867 | 12609 | |
db137867 | 12610 | |
db137867 | 12611 | |
db137867 | 12612 | |
db137867 | 12613 | |
db137867 | 12614 | |
db137867 | 12615 | |
db137867 | 12616 | |
db137867 | 12617 | |
db137867 | 12618 | |
db137867 | 12619 | |
db137867 | 12620 | |
db137867 | 12621 | |
b676ea3b | 12622 | |
db137867 | 12623 | |
db137867 | 12624 | |
db137867 | 12625 | |
db137867 | 12626 | |
db137867 | 12627 | |
db137867 | 12628 | |
db137867 | 12629 | |
db137867 | 12630 | |
db137867 | 12631 | |
db137867 | 12632 | |
db137867 | 12633 | |
db137867 | 12634 | |
db137867 | 12635 | |
db137867 | 12636 | |
db137867 | 12637 | |
db137867 | 12638 | |
db137867 | 12639 | |
db137867 | 12640 | |
db137867 | 12641 | |
db137867 | 12642 | |
db137867 | 12643 | |
db137867 | 12644 | |
db137867 | 12645 | |
db137867 | 12646 | |
db137867 | 12647 | |
db137867 | 12648 | |
db137867 | 12649 | |
db137867 | 12650 | |
db137867 | 12651 | |
db137867 | 12652 | |
db137867 | 12653 | |
db137867 | 12654 | |
db137867 | 12655 | |
db137867 AC |
12656 | |
12657 | ||
b6d0720c AC |
12658 | |
12659 | ||
12660 | ||
12661 | ||
12662 | ||
db137867 AC |
12663 | |
12664 | ||
db137867 | 12665 | |
db137867 | 12666 | |
db137867 | 12667 | |
db137867 | 12668 | |
7083c021 AC |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12670 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12671 | hardcode_action= | |
12672 | if test -n "$hardcode_libdir_flag_spec" || | |
12673 | test -n "$runpath_var" || | |
6f57a957 | 12674 | test yes = "$hardcode_automatic"; then |
db137867 | 12675 | |
7083c021 | 12676 | # We can hardcode non-existent directories. |
6f57a957 | 12677 | if test no != "$hardcode_direct" && |
7083c021 AC |
12678 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12679 | # have to relink, otherwise we might link with an installed library | |
12680 | # when we should be linking with a yet-to-be-installed one | |
6f57a957 AC |
12681 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
12682 | test no != "$hardcode_minus_L"; then | |
7083c021 AC |
12683 | # Linking always hardcodes the temporary library directory. |
12684 | hardcode_action=relink | |
db137867 | 12685 | else |
7083c021 AC |
12686 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12687 | hardcode_action=immediate | |
db137867 | 12688 | fi |
7083c021 AC |
12689 | else |
12690 | # We cannot hardcode anything, or else we can only hardcode existing | |
12691 | # directories. | |
12692 | hardcode_action=unsupported | |
12693 | fi | |
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12695 | $as_echo "$hardcode_action" >&6; } | |
12696 | ||
6f57a957 AC |
12697 | if test relink = "$hardcode_action" || |
12698 | test yes = "$inherit_rpath"; then | |
7083c021 AC |
12699 | # Fast installation is not supported |
12700 | enable_fast_install=no | |
6f57a957 AC |
12701 | elif test yes = "$shlibpath_overrides_runpath" || |
12702 | test no = "$enable_shared"; then | |
7083c021 AC |
12703 | # Fast installation is not necessary |
12704 | enable_fast_install=needless | |
db137867 AC |
12705 | fi |
12706 | ||
12707 | ||
12708 | ||
db137867 | 12709 | |
db137867 | 12710 | |
db137867 | 12711 | |
6f57a957 | 12712 | if test yes != "$enable_dlopen"; then |
7083c021 AC |
12713 | enable_dlopen=unknown |
12714 | enable_dlopen_self=unknown | |
12715 | enable_dlopen_self_static=unknown | |
12716 | else | |
12717 | lt_cv_dlopen=no | |
12718 | lt_cv_dlopen_libs= | |
db137867 | 12719 | |
7083c021 AC |
12720 | case $host_os in |
12721 | beos*) | |
6f57a957 | 12722 | lt_cv_dlopen=load_add_on |
7083c021 AC |
12723 | lt_cv_dlopen_libs= |
12724 | lt_cv_dlopen_self=yes | |
12725 | ;; | |
db137867 | 12726 | |
7083c021 | 12727 | mingw* | pw32* | cegcc*) |
6f57a957 | 12728 | lt_cv_dlopen=LoadLibrary |
7083c021 AC |
12729 | lt_cv_dlopen_libs= |
12730 | ;; | |
db137867 | 12731 | |
7083c021 | 12732 | cygwin*) |
6f57a957 | 12733 | lt_cv_dlopen=dlopen |
7083c021 AC |
12734 | lt_cv_dlopen_libs= |
12735 | ;; | |
db137867 | 12736 | |
7083c021 | 12737 | darwin*) |
6f57a957 | 12738 | # if libdl is installed we need to link against it |
7083c021 AC |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12740 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
08c2568c | 12741 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
7083c021 AC |
12742 | $as_echo_n "(cached) " >&6 |
12743 | else | |
12744 | ac_check_lib_save_LIBS=$LIBS | |
12745 | LIBS="-ldl $LIBS" | |
12746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12747 | /* end confdefs.h. */ | |
db137867 | 12748 | |
7083c021 AC |
12749 | /* Override any GCC internal prototype to avoid an error. |
12750 | Use char because int might match the return type of a GCC | |
12751 | builtin and then its argument prototype would still apply. */ | |
12752 | #ifdef __cplusplus | |
12753 | extern "C" | |
12754 | #endif | |
12755 | char dlopen (); | |
12756 | int | |
12757 | main () | |
12758 | { | |
12759 | return dlopen (); | |
12760 | ; | |
12761 | return 0; | |
12762 | } | |
12763 | _ACEOF | |
12764 | if ac_fn_c_try_link "$LINENO"; then : | |
12765 | ac_cv_lib_dl_dlopen=yes | |
12766 | else | |
12767 | ac_cv_lib_dl_dlopen=no | |
12768 | fi | |
12769 | rm -f core conftest.err conftest.$ac_objext \ | |
12770 | conftest$ac_exeext conftest.$ac_ext | |
12771 | LIBS=$ac_check_lib_save_LIBS | |
12772 | fi | |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12774 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
08c2568c | 12775 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
6f57a957 | 12776 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
7083c021 | 12777 | else |
db137867 | 12778 | |
6f57a957 | 12779 | lt_cv_dlopen=dyld |
7083c021 AC |
12780 | lt_cv_dlopen_libs= |
12781 | lt_cv_dlopen_self=yes | |
db137867 | 12782 | |
7083c021 | 12783 | fi |
db137867 | 12784 | |
7083c021 | 12785 | ;; |
db137867 | 12786 | |
6f57a957 AC |
12787 | tpf*) |
12788 | # Don't try to run any link tests for TPF. We know it's impossible | |
12789 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12790 | lt_cv_dlopen=dlopen | |
12791 | lt_cv_dlopen_libs= | |
12792 | lt_cv_dlopen_self=no | |
12793 | ;; | |
12794 | ||
7083c021 AC |
12795 | *) |
12796 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
08c2568c | 12797 | if test "x$ac_cv_func_shl_load" = xyes; then : |
6f57a957 | 12798 | lt_cv_dlopen=shl_load |
7083c021 AC |
12799 | else |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12801 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
08c2568c | 12802 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
7083c021 AC |
12803 | $as_echo_n "(cached) " >&6 |
12804 | else | |
12805 | ac_check_lib_save_LIBS=$LIBS | |
12806 | LIBS="-ldld $LIBS" | |
12807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12808 | /* end confdefs.h. */ | |
db137867 | 12809 | |
7083c021 AC |
12810 | /* Override any GCC internal prototype to avoid an error. |
12811 | Use char because int might match the return type of a GCC | |
12812 | builtin and then its argument prototype would still apply. */ | |
12813 | #ifdef __cplusplus | |
12814 | extern "C" | |
12815 | #endif | |
12816 | char shl_load (); | |
12817 | int | |
12818 | main () | |
12819 | { | |
12820 | return shl_load (); | |
12821 | ; | |
12822 | return 0; | |
12823 | } | |
12824 | _ACEOF | |
12825 | if ac_fn_c_try_link "$LINENO"; then : | |
12826 | ac_cv_lib_dld_shl_load=yes | |
12827 | else | |
12828 | ac_cv_lib_dld_shl_load=no | |
12829 | fi | |
12830 | rm -f core conftest.err conftest.$ac_objext \ | |
12831 | conftest$ac_exeext conftest.$ac_ext | |
12832 | LIBS=$ac_check_lib_save_LIBS | |
12833 | fi | |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12835 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
08c2568c | 12836 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
6f57a957 | 12837 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
7083c021 AC |
12838 | else |
12839 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
08c2568c | 12840 | if test "x$ac_cv_func_dlopen" = xyes; then : |
6f57a957 | 12841 | lt_cv_dlopen=dlopen |
7083c021 AC |
12842 | else |
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12844 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
08c2568c | 12845 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
7083c021 AC |
12846 | $as_echo_n "(cached) " >&6 |
12847 | else | |
12848 | ac_check_lib_save_LIBS=$LIBS | |
12849 | LIBS="-ldl $LIBS" | |
12850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12851 | /* end confdefs.h. */ | |
db137867 | 12852 | |
7083c021 AC |
12853 | /* Override any GCC internal prototype to avoid an error. |
12854 | Use char because int might match the return type of a GCC | |
12855 | builtin and then its argument prototype would still apply. */ | |
12856 | #ifdef __cplusplus | |
12857 | extern "C" | |
12858 | #endif | |
12859 | char dlopen (); | |
12860 | int | |
12861 | main () | |
12862 | { | |
12863 | return dlopen (); | |
12864 | ; | |
12865 | return 0; | |
12866 | } | |
12867 | _ACEOF | |
12868 | if ac_fn_c_try_link "$LINENO"; then : | |
12869 | ac_cv_lib_dl_dlopen=yes | |
12870 | else | |
12871 | ac_cv_lib_dl_dlopen=no | |
12872 | fi | |
12873 | rm -f core conftest.err conftest.$ac_objext \ | |
12874 | conftest$ac_exeext conftest.$ac_ext | |
12875 | LIBS=$ac_check_lib_save_LIBS | |
12876 | fi | |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12878 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
08c2568c | 12879 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
6f57a957 | 12880 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
7083c021 AC |
12881 | else |
12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12883 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
08c2568c | 12884 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
7083c021 AC |
12885 | $as_echo_n "(cached) " >&6 |
12886 | else | |
12887 | ac_check_lib_save_LIBS=$LIBS | |
12888 | LIBS="-lsvld $LIBS" | |
12889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12890 | /* end confdefs.h. */ | |
db137867 | 12891 | |
7083c021 AC |
12892 | /* Override any GCC internal prototype to avoid an error. |
12893 | Use char because int might match the return type of a GCC | |
12894 | builtin and then its argument prototype would still apply. */ | |
12895 | #ifdef __cplusplus | |
12896 | extern "C" | |
12897 | #endif | |
12898 | char dlopen (); | |
12899 | int | |
12900 | main () | |
12901 | { | |
12902 | return dlopen (); | |
12903 | ; | |
12904 | return 0; | |
12905 | } | |
12906 | _ACEOF | |
12907 | if ac_fn_c_try_link "$LINENO"; then : | |
12908 | ac_cv_lib_svld_dlopen=yes | |
12909 | else | |
12910 | ac_cv_lib_svld_dlopen=no | |
12911 | fi | |
12912 | rm -f core conftest.err conftest.$ac_objext \ | |
12913 | conftest$ac_exeext conftest.$ac_ext | |
12914 | LIBS=$ac_check_lib_save_LIBS | |
12915 | fi | |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12917 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
08c2568c | 12918 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
6f57a957 | 12919 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
7083c021 AC |
12920 | else |
12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12922 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
08c2568c | 12923 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
7083c021 AC |
12924 | $as_echo_n "(cached) " >&6 |
12925 | else | |
12926 | ac_check_lib_save_LIBS=$LIBS | |
12927 | LIBS="-ldld $LIBS" | |
12928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12929 | /* end confdefs.h. */ | |
db137867 | 12930 | |
7083c021 AC |
12931 | /* Override any GCC internal prototype to avoid an error. |
12932 | Use char because int might match the return type of a GCC | |
12933 | builtin and then its argument prototype would still apply. */ | |
12934 | #ifdef __cplusplus | |
12935 | extern "C" | |
12936 | #endif | |
12937 | char dld_link (); | |
12938 | int | |
12939 | main () | |
12940 | { | |
12941 | return dld_link (); | |
12942 | ; | |
12943 | return 0; | |
12944 | } | |
12945 | _ACEOF | |
12946 | if ac_fn_c_try_link "$LINENO"; then : | |
12947 | ac_cv_lib_dld_dld_link=yes | |
12948 | else | |
12949 | ac_cv_lib_dld_dld_link=no | |
12950 | fi | |
12951 | rm -f core conftest.err conftest.$ac_objext \ | |
12952 | conftest$ac_exeext conftest.$ac_ext | |
12953 | LIBS=$ac_check_lib_save_LIBS | |
12954 | fi | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12956 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
08c2568c | 12957 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
6f57a957 | 12958 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
7083c021 | 12959 | fi |
db137867 AC |
12960 | |
12961 | ||
7083c021 | 12962 | fi |
db137867 AC |
12963 | |
12964 | ||
7083c021 | 12965 | fi |
db137867 AC |
12966 | |
12967 | ||
7083c021 | 12968 | fi |
db137867 | 12969 | |
db137867 | 12970 | |
7083c021 | 12971 | fi |
db137867 | 12972 | |
db137867 | 12973 | |
7083c021 | 12974 | fi |
db137867 | 12975 | |
7083c021 AC |
12976 | ;; |
12977 | esac | |
db137867 | 12978 | |
6f57a957 | 12979 | if test no = "$lt_cv_dlopen"; then |
7083c021 | 12980 | enable_dlopen=no |
6f57a957 AC |
12981 | else |
12982 | enable_dlopen=yes | |
7083c021 | 12983 | fi |
db137867 | 12984 | |
7083c021 AC |
12985 | case $lt_cv_dlopen in |
12986 | dlopen) | |
6f57a957 AC |
12987 | save_CPPFLAGS=$CPPFLAGS |
12988 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
db137867 | 12989 | |
6f57a957 | 12990 | save_LDFLAGS=$LDFLAGS |
7083c021 | 12991 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
db137867 | 12992 | |
6f57a957 | 12993 | save_LIBS=$LIBS |
7083c021 | 12994 | LIBS="$lt_cv_dlopen_libs $LIBS" |
db137867 | 12995 | |
7083c021 AC |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12997 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
08c2568c | 12998 | if ${lt_cv_dlopen_self+:} false; then : |
030272f3 | 12999 | $as_echo_n "(cached) " >&6 |
db137867 | 13000 | else |
6f57a957 | 13001 | if test yes = "$cross_compiling"; then : |
7083c021 | 13002 | lt_cv_dlopen_self=cross |
db137867 | 13003 | else |
7083c021 AC |
13004 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
13005 | lt_status=$lt_dlunknown | |
13006 | cat > conftest.$ac_ext <<_LT_EOF | |
b6d0720c | 13007 | #line $LINENO "configure" |
7083c021 | 13008 | #include "confdefs.h" |
db137867 | 13009 | |
7083c021 AC |
13010 | #if HAVE_DLFCN_H |
13011 | #include <dlfcn.h> | |
13012 | #endif | |
db137867 | 13013 | |
7083c021 | 13014 | #include <stdio.h> |
db137867 | 13015 | |
7083c021 AC |
13016 | #ifdef RTLD_GLOBAL |
13017 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13018 | #else | |
13019 | # ifdef DL_GLOBAL | |
13020 | # define LT_DLGLOBAL DL_GLOBAL | |
13021 | # else | |
13022 | # define LT_DLGLOBAL 0 | |
13023 | # endif | |
13024 | #endif | |
db137867 | 13025 | |
7083c021 AC |
13026 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13027 | find out it does not work in some platform. */ | |
13028 | #ifndef LT_DLLAZY_OR_NOW | |
13029 | # ifdef RTLD_LAZY | |
13030 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13031 | # else | |
13032 | # ifdef DL_LAZY | |
13033 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13034 | # else | |
13035 | # ifdef RTLD_NOW | |
13036 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13037 | # else | |
13038 | # ifdef DL_NOW | |
13039 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13040 | # else | |
13041 | # define LT_DLLAZY_OR_NOW 0 | |
13042 | # endif | |
13043 | # endif | |
13044 | # endif | |
13045 | # endif | |
13046 | #endif | |
db137867 | 13047 | |
6f57a957 | 13048 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b6d0720c | 13049 | correspondingly for the symbols needed. */ |
6f57a957 | 13050 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b6d0720c AC |
13051 | int fnord () __attribute__((visibility("default"))); |
13052 | #endif | |
13053 | ||
13054 | int fnord () { return 42; } | |
7083c021 AC |
13055 | int main () |
13056 | { | |
13057 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13058 | int status = $lt_dlunknown; | |
db137867 | 13059 | |
7083c021 AC |
13060 | if (self) |
13061 | { | |
13062 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b6d0720c AC |
13063 | else |
13064 | { | |
13065 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13066 | else puts (dlerror ()); | |
13067 | } | |
7083c021 AC |
13068 | /* dlclose (self); */ |
13069 | } | |
13070 | else | |
13071 | puts (dlerror ()); | |
db137867 | 13072 | |
7083c021 AC |
13073 | return status; |
13074 | } | |
13075 | _LT_EOF | |
13076 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13077 | (eval $ac_link) 2>&5 | |
13078 | ac_status=$? | |
13079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6f57a957 | 13080 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
7083c021 AC |
13081 | (./conftest; exit; ) >&5 2>/dev/null |
13082 | lt_status=$? | |
13083 | case x$lt_status in | |
13084 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13085 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13086 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
13087 | esac | |
13088 | else : | |
13089 | # compilation failed | |
13090 | lt_cv_dlopen_self=no | |
13091 | fi | |
db137867 | 13092 | fi |
7083c021 | 13093 | rm -fr conftest* |
db137867 | 13094 | |
db137867 | 13095 | |
7083c021 AC |
13096 | fi |
13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
13098 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
db137867 | 13099 | |
6f57a957 | 13100 | if test yes = "$lt_cv_dlopen_self"; then |
7083c021 AC |
13101 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
13103 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
08c2568c | 13104 | if ${lt_cv_dlopen_self_static+:} false; then : |
030272f3 | 13105 | $as_echo_n "(cached) " >&6 |
db137867 | 13106 | else |
6f57a957 | 13107 | if test yes = "$cross_compiling"; then : |
7083c021 | 13108 | lt_cv_dlopen_self_static=cross |
db137867 | 13109 | else |
7083c021 AC |
13110 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
13111 | lt_status=$lt_dlunknown | |
13112 | cat > conftest.$ac_ext <<_LT_EOF | |
b6d0720c | 13113 | #line $LINENO "configure" |
7083c021 | 13114 | #include "confdefs.h" |
db137867 | 13115 | |
7083c021 AC |
13116 | #if HAVE_DLFCN_H |
13117 | #include <dlfcn.h> | |
13118 | #endif | |
db137867 | 13119 | |
7083c021 | 13120 | #include <stdio.h> |
db137867 | 13121 | |
7083c021 AC |
13122 | #ifdef RTLD_GLOBAL |
13123 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13124 | #else | |
13125 | # ifdef DL_GLOBAL | |
13126 | # define LT_DLGLOBAL DL_GLOBAL | |
13127 | # else | |
13128 | # define LT_DLGLOBAL 0 | |
13129 | # endif | |
13130 | #endif | |
db137867 | 13131 | |
7083c021 AC |
13132 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13133 | find out it does not work in some platform. */ | |
13134 | #ifndef LT_DLLAZY_OR_NOW | |
13135 | # ifdef RTLD_LAZY | |
13136 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13137 | # else | |
13138 | # ifdef DL_LAZY | |
13139 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13140 | # else | |
13141 | # ifdef RTLD_NOW | |
13142 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13143 | # else | |
13144 | # ifdef DL_NOW | |
13145 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13146 | # else | |
13147 | # define LT_DLLAZY_OR_NOW 0 | |
13148 | # endif | |
13149 | # endif | |
13150 | # endif | |
13151 | # endif | |
13152 | #endif | |
db137867 | 13153 | |
6f57a957 | 13154 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b6d0720c | 13155 | correspondingly for the symbols needed. */ |
6f57a957 | 13156 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b6d0720c AC |
13157 | int fnord () __attribute__((visibility("default"))); |
13158 | #endif | |
13159 | ||
13160 | int fnord () { return 42; } | |
7083c021 AC |
13161 | int main () |
13162 | { | |
13163 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13164 | int status = $lt_dlunknown; | |
db137867 | 13165 | |
7083c021 AC |
13166 | if (self) |
13167 | { | |
13168 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b6d0720c AC |
13169 | else |
13170 | { | |
13171 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13172 | else puts (dlerror ()); | |
13173 | } | |
7083c021 AC |
13174 | /* dlclose (self); */ |
13175 | } | |
13176 | else | |
13177 | puts (dlerror ()); | |
db137867 | 13178 | |
7083c021 AC |
13179 | return status; |
13180 | } | |
13181 | _LT_EOF | |
13182 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13183 | (eval $ac_link) 2>&5 | |
13184 | ac_status=$? | |
13185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6f57a957 | 13186 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
7083c021 AC |
13187 | (./conftest; exit; ) >&5 2>/dev/null |
13188 | lt_status=$? | |
13189 | case x$lt_status in | |
13190 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13191 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13192 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13193 | esac | |
13194 | else : | |
13195 | # compilation failed | |
13196 | lt_cv_dlopen_self_static=no | |
13197 | fi | |
db137867 | 13198 | fi |
7083c021 | 13199 | rm -fr conftest* |
3202e249 | 13200 | |
db137867 | 13201 | |
db137867 | 13202 | fi |
7083c021 AC |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
13204 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13205 | fi | |
db137867 | 13206 | |
6f57a957 AC |
13207 | CPPFLAGS=$save_CPPFLAGS |
13208 | LDFLAGS=$save_LDFLAGS | |
13209 | LIBS=$save_LIBS | |
7083c021 AC |
13210 | ;; |
13211 | esac | |
db137867 | 13212 | |
7083c021 AC |
13213 | case $lt_cv_dlopen_self in |
13214 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13215 | *) enable_dlopen_self=unknown ;; | |
13216 | esac | |
db137867 | 13217 | |
7083c021 AC |
13218 | case $lt_cv_dlopen_self_static in |
13219 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13220 | *) enable_dlopen_self_static=unknown ;; | |
13221 | esac | |
db137867 AC |
13222 | fi |
13223 | ||
db137867 | 13224 | |
db137867 | 13225 | |
030272f3 VY |
13226 | |
13227 | ||
030272f3 | 13228 | |
db137867 | 13229 | |
db137867 | 13230 | |
db137867 | 13231 | |
030272f3 | 13232 | |
030272f3 | 13233 | |
db137867 | 13234 | |
030272f3 | 13235 | |
db137867 | 13236 | |
db137867 | 13237 | |
db137867 | 13238 | |
db137867 | 13239 | |
7083c021 AC |
13240 | striplib= |
13241 | old_striplib= | |
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13243 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13244 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13245 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13246 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13248 | $as_echo "yes" >&6; } | |
030272f3 | 13249 | else |
7083c021 AC |
13250 | # FIXME - insert some real tests, host_os isn't really good enough |
13251 | case $host_os in | |
13252 | darwin*) | |
6f57a957 | 13253 | if test -n "$STRIP"; then |
7083c021 AC |
13254 | striplib="$STRIP -x" |
13255 | old_striplib="$STRIP -S" | |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13257 | $as_echo "yes" >&6; } | |
13258 | else | |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13260 | $as_echo "no" >&6; } | |
13261 | fi | |
13262 | ;; | |
13263 | *) | |
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13265 | $as_echo "no" >&6; } | |
13266 | ;; | |
13267 | esac | |
030272f3 VY |
13268 | fi |
13269 | ||
db137867 | 13270 | |
030272f3 | 13271 | |
db137867 | 13272 | |
db137867 | 13273 | |
db137867 | 13274 | |
db137867 | 13275 | |
db137867 | 13276 | |
db137867 | 13277 | |
db137867 | 13278 | |
db137867 AC |
13279 | |
13280 | ||
6f57a957 | 13281 | # Report what library types will actually be built |
7083c021 AC |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13283 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13285 | $as_echo "$can_build_shared" >&6; } | |
db137867 | 13286 | |
7083c021 AC |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13288 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
6f57a957 | 13289 | test no = "$can_build_shared" && enable_shared=no |
db137867 | 13290 | |
7083c021 AC |
13291 | # On AIX, shared libraries and static libraries use the same namespace, and |
13292 | # are all built from PIC. | |
13293 | case $host_os in | |
13294 | aix3*) | |
6f57a957 | 13295 | test yes = "$enable_shared" && enable_static=no |
7083c021 AC |
13296 | if test -n "$RANLIB"; then |
13297 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13298 | postinstall_cmds='$RANLIB $lib' | |
13299 | fi | |
13300 | ;; | |
db137867 | 13301 | |
7083c021 | 13302 | aix[4-9]*) |
6f57a957 AC |
13303 | if test ia64 != "$host_cpu"; then |
13304 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
13305 | yes,aix,yes) ;; # shared object as lib.so file only | |
13306 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
13307 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
13308 | esac | |
7083c021 AC |
13309 | fi |
13310 | ;; | |
13311 | esac | |
13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13313 | $as_echo "$enable_shared" >&6; } | |
13314 | ||
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
13316 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13317 | # Make sure either enable_shared or enable_static is yes. | |
6f57a957 | 13318 | test yes = "$enable_shared" || enable_static=yes |
7083c021 AC |
13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13320 | $as_echo "$enable_static" >&6; } | |
db137867 | 13321 | |
db137867 | 13322 | |
db137867 | 13323 | |
db137867 | 13324 | |
db137867 | 13325 | fi |
7083c021 AC |
13326 | ac_ext=c |
13327 | ac_cpp='$CPP $CPPFLAGS' | |
13328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 | 13331 | |
6f57a957 | 13332 | CC=$lt_save_CC |
db137867 | 13333 | |
db137867 | 13334 | |
db137867 | 13335 | |
db137867 | 13336 | |
db137867 | 13337 | |
db137867 | 13338 | |
db137867 | 13339 | |
db137867 | 13340 | |
db137867 | 13341 | |
db137867 AC |
13342 | |
13343 | ||
db137867 | 13344 | |
db137867 | 13345 | |
a949ab1a AC |
13346 | |
13347 | ||
7083c021 | 13348 | ac_config_commands="$ac_config_commands libtool" |
db137867 AC |
13349 | |
13350 | ||
13351 | ||
13352 | ||
7083c021 | 13353 | # Only expand once: |
db137867 AC |
13354 | |
13355 | ||
13356 | ||
7083c021 | 13357 | LIBTOOL="$LIBTOOL --silent" |
db137867 | 13358 | |
7083c021 AC |
13359 | case "$host_os" in |
13360 | *cygwin*) | |
db137867 | 13361 | |
7083c021 AC |
13362 | cat >>confdefs.h <<_ACEOF |
13363 | #define CYGWIN 1 | |
13364 | _ACEOF | |
db137867 AC |
13365 | |
13366 | ||
7083c021 AC |
13367 | cat >>confdefs.h <<_ACEOF |
13368 | #define WINDOWS 1 | |
13369 | _ACEOF | |
db137867 | 13370 | |
7083c021 AC |
13371 | ;; |
13372 | *mingw*) | |
db137867 | 13373 | |
7083c021 AC |
13374 | cat >>confdefs.h <<_ACEOF |
13375 | #define MINGW 1 | |
13376 | _ACEOF | |
db137867 AC |
13377 | |
13378 | ||
7083c021 AC |
13379 | cat >>confdefs.h <<_ACEOF |
13380 | #define WINDOWS 1 | |
13381 | _ACEOF | |
db137867 | 13382 | |
7083c021 | 13383 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
08c2568c | 13384 | if test "x$ac_cv_header_windows_h" = xyes; then : |
db137867 | 13385 | |
7083c021 | 13386 | else |
08c2568c | 13387 | as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5 |
7083c021 | 13388 | fi |
db137867 AC |
13389 | |
13390 | ||
7083c021 | 13391 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
08c2568c | 13392 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
db137867 | 13393 | |
7083c021 | 13394 | else |
08c2568c | 13395 | as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5 |
7083c021 | 13396 | fi |
db137867 | 13397 | |
3202e249 | 13398 | |
7083c021 AC |
13399 | |
13400 | cat >>confdefs.h <<_ACEOF | |
13401 | #define HAVE_WINSOCK2_H 1 | |
db137867 | 13402 | _ACEOF |
7083c021 AC |
13403 | |
13404 | ||
13405 | cat >>confdefs.h <<_ACEOF | |
13406 | #define HAVE_WINSOCK_H 1 | |
db137867 | 13407 | _ACEOF |
7083c021 AC |
13408 | |
13409 | LIBS="$LIBS -lws2_32 -liphlpapi" | |
13410 | is_mingw="yes" | |
13411 | ;; | |
13412 | *interix*) | |
13413 | CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500" | |
13414 | ;; | |
13415 | *solaris*) | |
13416 | CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2" | |
13417 | ;; | |
13418 | *) | |
13419 | ;; | |
db137867 | 13420 | esac |
db137867 | 13421 | |
7083c021 AC |
13422 | if test "$is_mingw" = "yes"; then |
13423 | MINGW_TRUE= | |
13424 | MINGW_FALSE='#' | |
13425 | else | |
13426 | MINGW_TRUE='#' | |
13427 | MINGW_FALSE= | |
db137867 AC |
13428 | fi |
13429 | ||
db137867 | 13430 | |
db137867 | 13431 | |
7083c021 AC |
13432 | # backwards support for IRC_CFLAGS |
13433 | CFLAGS="$IRC_CFLAGS $CFLAGS -Wall" | |
13434 | ||
13435 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
13436 | test "$localstatedir" = '${prefix}/var'; then | |
13437 | libexecdir='${bindir}' | |
13438 | localstatedir='${prefix}' | |
db137867 AC |
13439 | fi |
13440 | ||
7083c021 | 13441 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
08c2568c | 13442 | if test "x$ac_cv_type_pid_t" = xyes; then : |
db137867 | 13443 | |
db137867 | 13444 | else |
7083c021 AC |
13445 | |
13446 | cat >>confdefs.h <<_ACEOF | |
13447 | #define pid_t int | |
13448 | _ACEOF | |
db137867 AC |
13449 | |
13450 | fi | |
7083c021 AC |
13451 | |
13452 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
08c2568c | 13453 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 AC |
13454 | |
13455 | else | |
13456 | ||
13457 | cat >>confdefs.h <<_ACEOF | |
13458 | #define size_t unsigned int | |
db137867 AC |
13459 | _ACEOF |
13460 | ||
13461 | fi | |
13462 | ||
7083c021 | 13463 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
08c2568c | 13464 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
db137867 | 13465 | |
db137867 | 13466 | else |
7083c021 AC |
13467 | |
13468 | cat >>confdefs.h <<_ACEOF | |
13469 | #define ssize_t int | |
db137867 | 13470 | _ACEOF |
7083c021 AC |
13471 | |
13472 | fi | |
13473 | ||
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
13475 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
08c2568c | 13476 | if ${ac_cv_type_uid_t+:} false; then : |
7083c021 AC |
13477 | $as_echo_n "(cached) " >&6 |
13478 | else | |
13479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
13480 | /* end confdefs.h. */ |
13481 | #include <sys/types.h> | |
db137867 | 13482 | |
db137867 | 13483 | _ACEOF |
7083c021 AC |
13484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13485 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
13486 | ac_cv_type_uid_t=yes | |
db137867 | 13487 | else |
7083c021 | 13488 | ac_cv_type_uid_t=no |
db137867 | 13489 | fi |
7083c021 | 13490 | rm -f conftest* |
db137867 | 13491 | |
db137867 | 13492 | fi |
7083c021 AC |
13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
13494 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
13495 | if test $ac_cv_type_uid_t = no; then | |
db137867 | 13496 | |
7083c021 AC |
13497 | $as_echo "#define uid_t int" >>confdefs.h |
13498 | ||
13499 | ||
13500 | $as_echo "#define gid_t int" >>confdefs.h | |
db137867 AC |
13501 | |
13502 | fi | |
13503 | ||
13504 | ||
13505 | ||
7083c021 AC |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
13507 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
08c2568c | 13508 | if ${ac_cv_header_stdc+:} false; then : |
030272f3 | 13509 | $as_echo_n "(cached) " >&6 |
db137867 | 13510 | else |
7083c021 | 13511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13512 | /* end confdefs.h. */ |
7083c021 AC |
13513 | #include <stdlib.h> |
13514 | #include <stdarg.h> | |
13515 | #include <string.h> | |
13516 | #include <float.h> | |
db137867 | 13517 | |
db137867 AC |
13518 | int |
13519 | main () | |
13520 | { | |
7083c021 | 13521 | |
db137867 AC |
13522 | ; |
13523 | return 0; | |
13524 | } | |
13525 | _ACEOF | |
7083c021 AC |
13526 | if ac_fn_c_try_compile "$LINENO"; then : |
13527 | ac_cv_header_stdc=yes | |
db137867 | 13528 | else |
7083c021 AC |
13529 | ac_cv_header_stdc=no |
13530 | fi | |
13531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 13532 | |
7083c021 AC |
13533 | if test $ac_cv_header_stdc = yes; then |
13534 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13536 | /* end confdefs.h. */ | |
13537 | #include <string.h> | |
db137867 | 13538 | |
7083c021 AC |
13539 | _ACEOF |
13540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13541 | $EGREP "memchr" >/dev/null 2>&1; then : | |
db137867 | 13542 | |
db137867 | 13543 | else |
7083c021 | 13544 | ac_cv_header_stdc=no |
db137867 | 13545 | fi |
7083c021 | 13546 | rm -f conftest* |
db137867 AC |
13547 | |
13548 | fi | |
13549 | ||
7083c021 AC |
13550 | if test $ac_cv_header_stdc = yes; then |
13551 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13553 | /* end confdefs.h. */ | |
13554 | #include <stdlib.h> | |
db137867 | 13555 | |
db137867 | 13556 | _ACEOF |
7083c021 AC |
13557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13558 | $EGREP "free" >/dev/null 2>&1; then : | |
db137867 | 13559 | |
7083c021 AC |
13560 | else |
13561 | ac_cv_header_stdc=no | |
13562 | fi | |
13563 | rm -f conftest* | |
db137867 | 13564 | |
7083c021 | 13565 | fi |
db137867 | 13566 | |
7083c021 AC |
13567 | if test $ac_cv_header_stdc = yes; then |
13568 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13569 | if test "$cross_compiling" = yes; then : | |
13570 | : | |
db137867 | 13571 | else |
7083c021 | 13572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13573 | /* end confdefs.h. */ |
7083c021 AC |
13574 | #include <ctype.h> |
13575 | #include <stdlib.h> | |
13576 | #if ((' ' & 0x0FF) == 0x020) | |
13577 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13578 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13579 | #else | |
13580 | # define ISLOWER(c) \ | |
13581 | (('a' <= (c) && (c) <= 'i') \ | |
13582 | || ('j' <= (c) && (c) <= 'r') \ | |
13583 | || ('s' <= (c) && (c) <= 'z')) | |
13584 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
13585 | #endif |
13586 | ||
7083c021 | 13587 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
db137867 AC |
13588 | int |
13589 | main () | |
13590 | { | |
7083c021 AC |
13591 | int i; |
13592 | for (i = 0; i < 256; i++) | |
13593 | if (XOR (islower (i), ISLOWER (i)) | |
13594 | || toupper (i) != TOUPPER (i)) | |
13595 | return 2; | |
db137867 AC |
13596 | return 0; |
13597 | } | |
13598 | _ACEOF | |
7083c021 | 13599 | if ac_fn_c_try_run "$LINENO"; then : |
db137867 | 13600 | |
7083c021 AC |
13601 | else |
13602 | ac_cv_header_stdc=no | |
13603 | fi | |
13604 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13605 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
13606 | fi |
13607 | ||
db137867 | 13608 | fi |
7083c021 AC |
13609 | fi |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
13611 | $as_echo "$ac_cv_header_stdc" >&6; } | |
13612 | if test $ac_cv_header_stdc = yes; then | |
13613 | ||
13614 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
db137867 | 13615 | |
db137867 | 13616 | fi |
db137867 | 13617 | |
7083c021 | 13618 | |
77cb59b3 | 13619 | for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h linux/tcp.h |
7083c021 AC |
13620 | do : |
13621 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13622 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
08c2568c | 13623 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
13624 | cat >>confdefs.h <<_ACEOF |
13625 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
db137867 AC |
13626 | _ACEOF |
13627 | ||
13628 | fi | |
13629 | ||
7083c021 | 13630 | done |
db137867 | 13631 | |
7083c021 AC |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13633 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
08c2568c | 13634 | if ${ac_cv_header_time+:} false; then : |
030272f3 | 13635 | $as_echo_n "(cached) " >&6 |
db137867 | 13636 | else |
7083c021 | 13637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13638 | /* end confdefs.h. */ |
db137867 | 13639 | #include <sys/types.h> |
7083c021 AC |
13640 | #include <sys/time.h> |
13641 | #include <time.h> | |
db137867 | 13642 | |
db137867 AC |
13643 | int |
13644 | main () | |
13645 | { | |
7083c021 AC |
13646 | if ((struct tm *) 0) |
13647 | return 0; | |
030272f3 | 13648 | ; |
db137867 | 13649 | return 0; |
7083c021 | 13650 | } |
030272f3 | 13651 | _ACEOF |
7083c021 AC |
13652 | if ac_fn_c_try_compile "$LINENO"; then : |
13653 | ac_cv_header_time=yes | |
13654 | else | |
13655 | ac_cv_header_time=no | |
13656 | fi | |
13657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13658 | fi | |
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
13660 | $as_echo "$ac_cv_header_time" >&6; } | |
13661 | if test $ac_cv_header_time = yes; then | |
13662 | ||
13663 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
13664 | ||
13665 | fi | |
13666 | ||
13667 | ||
13668 | ||
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
13670 | $as_echo_n "checking for library containing socket... " >&6; } | |
08c2568c | 13671 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
13672 | $as_echo_n "(cached) " >&6 |
13673 | else | |
13674 | ac_func_search_save_LIBS=$LIBS | |
13675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
030272f3 | 13676 | /* end confdefs.h. */ |
030272f3 | 13677 | |
7083c021 AC |
13678 | /* Override any GCC internal prototype to avoid an error. |
13679 | Use char because int might match the return type of a GCC | |
13680 | builtin and then its argument prototype would still apply. */ | |
13681 | #ifdef __cplusplus | |
13682 | extern "C" | |
13683 | #endif | |
13684 | char socket (); | |
030272f3 VY |
13685 | int |
13686 | main () | |
13687 | { | |
7083c021 | 13688 | return socket (); |
db137867 AC |
13689 | ; |
13690 | return 0; | |
13691 | } | |
13692 | _ACEOF | |
7083c021 AC |
13693 | for ac_lib in '' socket; do |
13694 | if test -z "$ac_lib"; then | |
13695 | ac_res="none required" | |
13696 | else | |
13697 | ac_res=-l$ac_lib | |
13698 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13699 | fi | |
13700 | if ac_fn_c_try_link "$LINENO"; then : | |
13701 | ac_cv_search_socket=$ac_res | |
13702 | fi | |
13703 | rm -f core conftest.err conftest.$ac_objext \ | |
13704 | conftest$ac_exeext | |
08c2568c | 13705 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
13706 | break |
13707 | fi | |
13708 | done | |
08c2568c | 13709 | if ${ac_cv_search_socket+:} false; then : |
7083c021 | 13710 | |
db137867 | 13711 | else |
7083c021 AC |
13712 | ac_cv_search_socket=no |
13713 | fi | |
13714 | rm conftest.$ac_ext | |
13715 | LIBS=$ac_func_search_save_LIBS | |
13716 | fi | |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
13718 | $as_echo "$ac_cv_search_socket" >&6; } | |
13719 | ac_res=$ac_cv_search_socket | |
13720 | if test "$ac_res" != no; then : | |
13721 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
db137867 | 13722 | |
db137867 AC |
13723 | fi |
13724 | ||
030272f3 VY |
13725 | |
13726 | ||
7083c021 AC |
13727 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " |
13728 | #ifdef HAVE_SYS_TYPES_H | |
13729 | #include <sys/types.h> | |
13730 | #endif | |
13731 | #ifdef HAVE_SYS_SOCKET_H | |
13732 | #include <sys/socket.h> | |
13733 | #endif | |
13734 | #ifdef HAVE_WINSOCK2_H | |
13735 | #include <winsock2.h> | |
13736 | #endif | |
13737 | ||
13738 | " | |
08c2568c | 13739 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
7083c021 AC |
13740 | |
13741 | $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h | |
030272f3 | 13742 | |
030272f3 | 13743 | fi |
7083c021 AC |
13744 | |
13745 | ||
13746 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
13747 | #include <sys/socket.h> | |
13748 | " | |
08c2568c | 13749 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
030272f3 | 13750 | rb_cv_socklen_t=socklen_t |
db137867 AC |
13751 | else |
13752 | ||
7083c021 | 13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
030272f3 | 13754 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
08c2568c | 13755 | if ${rb_cv_socklen_t+:} false; then : |
030272f3 | 13756 | $as_echo_n "(cached) " >&6 |
a9fb3ed0 VY |
13757 | else |
13758 | ||
13759 | # Systems have either "struct sockaddr *" or | |
13760 | # "void *" as the second argument to getpeername | |
030272f3 | 13761 | rb_cv_socklen_t= |
a9fb3ed0 VY |
13762 | for arg2 in "struct sockaddr" void; do |
13763 | for t in int size_t unsigned long "unsigned long"; do | |
7083c021 | 13764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9fb3ed0 VY |
13765 | /* end confdefs.h. */ |
13766 | ||
3202e249 | 13767 | #ifdef HAVE_SYS_TYPES_H |
a9fb3ed0 | 13768 | #include <sys/types.h> |
3202e249 VY |
13769 | #endif |
13770 | #ifdef HAVE_SYS_SOCKET_H | |
a9fb3ed0 | 13771 | #include <sys/socket.h> |
3202e249 VY |
13772 | #endif |
13773 | #ifdef HAVE_WINSOCK2_H | |
13774 | #include <winsock2.h> | |
13775 | #endif | |
a9fb3ed0 VY |
13776 | int getpeername (int, $arg2 *, $t *); |
13777 | ||
13778 | int | |
13779 | main () | |
13780 | { | |
13781 | ||
13782 | $t len; | |
13783 | getpeername(0,0,&len); | |
13784 | ||
13785 | ; | |
13786 | return 0; | |
13787 | } | |
db137867 | 13788 | _ACEOF |
7083c021 | 13789 | if ac_fn_c_try_compile "$LINENO"; then : |
a9fb3ed0 | 13790 | |
030272f3 | 13791 | rb_cv_socklen_t="$t" |
a9fb3ed0 VY |
13792 | break |
13793 | ||
a9fb3ed0 | 13794 | fi |
a9fb3ed0 VY |
13795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13796 | done | |
13797 | done | |
13798 | ||
030272f3 | 13799 | if test "x$rb_cv_socklen_t" = x; then |
7083c021 | 13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5 |
030272f3 VY |
13801 | $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;} |
13802 | rb_cv_socklen_t=int | |
a9fb3ed0 VY |
13803 | fi |
13804 | ||
13805 | fi | |
13806 | ||
7083c021 AC |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5 |
13808 | $as_echo "$rb_cv_socklen_t" >&6; } | |
13809 | fi | |
13810 | ||
13811 | ||
13812 | rb_socklen_t=$rb_cv_socklen_t | |
13813 | ||
13814 | ||
13815 | ||
13816 | ||
13817 | ||
13818 | # Check whether --enable-ipv6 was given. | |
13819 | if test "${enable_ipv6+set}" = set; then : | |
13820 | enableval=$enable_ipv6; ipv6=$enableval | |
13821 | else | |
13822 | ipv6=yes | |
13823 | fi | |
13824 | ||
13825 | ||
13826 | if test x$ipv6 != xyes; then | |
13827 | have_v6="no" | |
13828 | else | |
13829 | ||
13830 | have_v6=yes | |
13831 | ||
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5 | |
13833 | $as_echo_n "checking for INET6 protocol support... " >&6; } | |
08c2568c | 13834 | if ${rb_cv_proto_inet6+:} false; then : |
7083c021 AC |
13835 | $as_echo_n "(cached) " >&6 |
13836 | else | |
13837 | ||
13838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13839 | /* end confdefs.h. */ | |
13840 | ||
13841 | #include <sys/types.h> | |
13842 | #include <sys/socket.h> | |
13843 | ||
13844 | #ifndef PF_INET6 | |
13845 | #error Missing PF_INET6 | |
13846 | #endif | |
13847 | #ifndef AF_INET6 | |
13848 | #error Mlssing AF_INET6 | |
13849 | #endif | |
13850 | ||
13851 | _ACEOF | |
13852 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13853 | ||
13854 | rb_cv_proto_inet6=yes | |
13855 | ||
13856 | else | |
13857 | ||
13858 | rb_cv_proto_inet6=no | |
13859 | ||
13860 | fi | |
08c2568c | 13861 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
13862 | |
13863 | fi | |
13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5 | |
13865 | $as_echo "$rb_cv_proto_inet6" >&6; } | |
13866 | ||
13867 | if test "X$rb_cv_proto_inet6" = "Xyes"; then : | |
13868 | ||
13869 | else : | |
13870 | ||
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5 | |
13872 | $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;} | |
13873 | have_v6=no | |
13874 | ||
13875 | fi | |
13876 | ||
13877 | ||
13878 | if test "X$have_v6" = "Xyes"; then | |
13879 | ||
13880 | rb_have_sockaddr_in6= | |
13881 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" " | |
13882 | #include <sys/types.h> | |
13883 | #include <sys/socket.h> | |
13884 | #include <netinet/in.h> | |
13885 | ||
13886 | " | |
08c2568c | 13887 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
7083c021 AC |
13888 | |
13889 | cat >>confdefs.h <<_ACEOF | |
13890 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | |
13891 | _ACEOF | |
13892 | ||
13893 | ||
13894 | rb_have_sockaddr_in6=yes | |
13895 | ||
13896 | else | |
13897 | ||
13898 | rb_have_sockaddr_in6=no | |
13899 | ||
13900 | fi | |
13901 | ||
13902 | ||
13903 | if test "X$rb_have_sockaddr_in6" = "Xyes"; then : | |
13904 | ||
13905 | else : | |
13906 | ||
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5 | |
13908 | $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;} | |
13909 | have_v6=no | |
13910 | ||
13911 | fi | |
13912 | ||
13913 | fi | |
13914 | ||
13915 | fi | |
13916 | ||
13917 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " | |
13918 | #include <sys/types.h> | |
13919 | #include <sys/socket.h> | |
13920 | ||
13921 | " | |
08c2568c | 13922 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
7083c021 AC |
13923 | |
13924 | cat >>confdefs.h <<_ACEOF | |
13925 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
13926 | _ACEOF | |
13927 | ||
13928 | ||
13929 | rb_have_sockaddr_storage=yes | |
13930 | ||
13931 | fi | |
13932 | ||
13933 | ||
13934 | ||
7083c021 | 13935 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
08c2568c | 13936 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
db137867 | 13937 | |
7083c021 | 13938 | else |
08c2568c | 13939 | as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5 |
7083c021 | 13940 | fi |
db137867 | 13941 | |
db137867 | 13942 | |
db137867 | 13943 | |
7083c021 AC |
13944 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
13945 | #include <sys/socket.h> | |
13946 | " | |
08c2568c | 13947 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
db137867 AC |
13948 | |
13949 | else | |
db137867 | 13950 | |
7083c021 | 13951 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
db137867 AC |
13952 | |
13953 | fi | |
db137867 | 13954 | |
db137867 | 13955 | |
db137867 | 13956 | |
5203cba5 | 13957 | for ac_func in snprintf vsnprintf socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create |
7083c021 AC |
13958 | do : |
13959 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13960 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13961 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
13962 | cat >>confdefs.h <<_ACEOF |
13963 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13964 | _ACEOF | |
db137867 | 13965 | |
7083c021 AC |
13966 | fi |
13967 | done | |
db137867 | 13968 | |
db137867 | 13969 | |
7083c021 AC |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
13971 | $as_echo_n "checking for library containing nanosleep... " >&6; } | |
08c2568c | 13972 | if ${ac_cv_search_nanosleep+:} false; then : |
030272f3 | 13973 | $as_echo_n "(cached) " >&6 |
db137867 | 13974 | else |
7083c021 AC |
13975 | ac_func_search_save_LIBS=$LIBS |
13976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
13977 | /* end confdefs.h. */ |
13978 | ||
7083c021 AC |
13979 | /* Override any GCC internal prototype to avoid an error. |
13980 | Use char because int might match the return type of a GCC | |
13981 | builtin and then its argument prototype would still apply. */ | |
13982 | #ifdef __cplusplus | |
13983 | extern "C" | |
13984 | #endif | |
13985 | char nanosleep (); | |
db137867 AC |
13986 | int |
13987 | main () | |
13988 | { | |
7083c021 | 13989 | return nanosleep (); |
030272f3 | 13990 | ; |
db137867 | 13991 | return 0; |
030272f3 VY |
13992 | } |
13993 | _ACEOF | |
7083c021 AC |
13994 | for ac_lib in '' rt posix4; do |
13995 | if test -z "$ac_lib"; then | |
13996 | ac_res="none required" | |
13997 | else | |
13998 | ac_res=-l$ac_lib | |
13999 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14000 | fi | |
14001 | if ac_fn_c_try_link "$LINENO"; then : | |
14002 | ac_cv_search_nanosleep=$ac_res | |
14003 | fi | |
14004 | rm -f core conftest.err conftest.$ac_objext \ | |
14005 | conftest$ac_exeext | |
08c2568c | 14006 | if ${ac_cv_search_nanosleep+:} false; then : |
7083c021 AC |
14007 | break |
14008 | fi | |
14009 | done | |
08c2568c | 14010 | if ${ac_cv_search_nanosleep+:} false; then : |
030272f3 | 14011 | |
7083c021 AC |
14012 | else |
14013 | ac_cv_search_nanosleep=no | |
14014 | fi | |
14015 | rm conftest.$ac_ext | |
14016 | LIBS=$ac_func_search_save_LIBS | |
14017 | fi | |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | |
14019 | $as_echo "$ac_cv_search_nanosleep" >&6; } | |
14020 | ac_res=$ac_cv_search_nanosleep | |
14021 | if test "$ac_res" != no; then : | |
14022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
030272f3 | 14023 | |
7083c021 AC |
14024 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
14025 | ||
14026 | fi | |
14027 | ||
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5 | |
14029 | $as_echo_n "checking for library containing timer_create... " >&6; } | |
08c2568c | 14030 | if ${ac_cv_search_timer_create+:} false; then : |
7083c021 AC |
14031 | $as_echo_n "(cached) " >&6 |
14032 | else | |
14033 | ac_func_search_save_LIBS=$LIBS | |
14034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14035 | /* end confdefs.h. */ | |
030272f3 | 14036 | |
7083c021 AC |
14037 | /* Override any GCC internal prototype to avoid an error. |
14038 | Use char because int might match the return type of a GCC | |
14039 | builtin and then its argument prototype would still apply. */ | |
14040 | #ifdef __cplusplus | |
14041 | extern "C" | |
14042 | #endif | |
14043 | char timer_create (); | |
030272f3 VY |
14044 | int |
14045 | main () | |
14046 | { | |
7083c021 | 14047 | return timer_create (); |
db137867 AC |
14048 | ; |
14049 | return 0; | |
14050 | } | |
14051 | _ACEOF | |
7083c021 AC |
14052 | for ac_lib in '' rt; do |
14053 | if test -z "$ac_lib"; then | |
14054 | ac_res="none required" | |
14055 | else | |
14056 | ac_res=-l$ac_lib | |
14057 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14058 | fi | |
14059 | if ac_fn_c_try_link "$LINENO"; then : | |
14060 | ac_cv_search_timer_create=$ac_res | |
14061 | fi | |
14062 | rm -f core conftest.err conftest.$ac_objext \ | |
14063 | conftest$ac_exeext | |
08c2568c | 14064 | if ${ac_cv_search_timer_create+:} false; then : |
7083c021 | 14065 | break |
030272f3 | 14066 | fi |
7083c021 | 14067 | done |
08c2568c | 14068 | if ${ac_cv_search_timer_create+:} false; then : |
030272f3 | 14069 | |
db137867 | 14070 | else |
7083c021 | 14071 | ac_cv_search_timer_create=no |
db137867 | 14072 | fi |
7083c021 AC |
14073 | rm conftest.$ac_ext |
14074 | LIBS=$ac_func_search_save_LIBS | |
db137867 | 14075 | fi |
7083c021 AC |
14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5 |
14077 | $as_echo "$ac_cv_search_timer_create" >&6; } | |
14078 | ac_res=$ac_cv_search_timer_create | |
14079 | if test "$ac_res" != no; then : | |
14080 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
db137867 | 14081 | |
7083c021 | 14082 | $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
db137867 | 14083 | |
7083c021 | 14084 | fi |
db137867 | 14085 | |
7083c021 AC |
14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5 |
14087 | $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; } | |
08c2568c | 14088 | if ${rb__cv_timer_create_works+:} false; then : |
7083c021 AC |
14089 | $as_echo_n "(cached) " >&6 |
14090 | else | |
14091 | if test "$cross_compiling" = yes; then : | |
14092 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c EM |
14094 | as_fn_error $? "cannot run test program while cross compiling |
14095 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 14096 | else |
7083c021 AC |
14097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14098 | /* end confdefs.h. */ | |
db137867 | 14099 | |
7083c021 AC |
14100 | #ifdef HAVE_TIME_H |
14101 | #include <time.h> | |
14102 | #endif | |
14103 | #ifdef HAVE_SIGNAL_H | |
14104 | #include <signal.h> | |
14105 | #endif | |
14106 | #ifdef HAVE_UNISTD_H | |
14107 | #include <unistd.h> | |
14108 | #endif | |
14109 | int main(int argc, char *argv[]) | |
14110 | { | |
14111 | #if HAVE_TIMER_CREATE | |
14112 | struct sigevent ev; | |
14113 | timer_t timer; | |
14114 | ev.sigev_notify = SIGEV_SIGNAL; | |
14115 | ev.sigev_signo = SIGVTALRM; | |
14116 | if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) { | |
14117 | return 1; | |
14118 | } | |
14119 | #else | |
14120 | return 1; | |
14121 | #endif | |
14122 | return 0; | |
14123 | } | |
db137867 | 14124 | |
7083c021 AC |
14125 | _ACEOF |
14126 | if ac_fn_c_try_run "$LINENO"; then : | |
14127 | rb__cv_timer_create_works=yes | |
14128 | else | |
14129 | rb__cv_timer_create_works=no | |
14130 | fi | |
14131 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14132 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
14133 | fi |
14134 | ||
14135 | ||
7083c021 AC |
14136 | fi |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5 | |
14138 | $as_echo "$rb__cv_timer_create_works" >&6; } | |
14139 | case $rb__cv_timer_create_works in | |
14140 | yes) | |
14141 | $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h | |
14142 | ;; | |
14143 | esac | |
db137867 | 14144 | |
7083c021 AC |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5 |
14146 | $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; } | |
08c2568c | 14147 | if ${rb__cv_timerfd_create_works+:} false; then : |
7083c021 AC |
14148 | $as_echo_n "(cached) " >&6 |
14149 | else | |
14150 | if test "$cross_compiling" = yes; then : | |
14151 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14152 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c EM |
14153 | as_fn_error $? "cannot run test program while cross compiling |
14154 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14155 | else |
14156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14157 | /* end confdefs.h. */ | |
db137867 | 14158 | |
7083c021 AC |
14159 | #ifdef HAVE_TIME_H |
14160 | #include <time.h> | |
14161 | #endif | |
14162 | #ifdef HAVE_SIGNAL_H | |
14163 | #include <signal.h> | |
14164 | #endif | |
14165 | #ifdef HAVE_UNISTD_H | |
14166 | #include <unistd.h> | |
14167 | #endif | |
14168 | #ifdef HAVE_SYS_TIMERFD_H | |
14169 | #include <sys/timerfd.h> | |
14170 | #endif | |
14171 | int main(int argc, char *argv[]) | |
14172 | { | |
14173 | #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H) | |
14174 | if (timerfd_create(CLOCK_REALTIME, 0) < 0) { | |
14175 | return 1; | |
14176 | } | |
14177 | #else | |
14178 | return 1; | |
14179 | #endif | |
14180 | return 0; | |
14181 | } | |
db137867 | 14182 | |
7083c021 AC |
14183 | _ACEOF |
14184 | if ac_fn_c_try_run "$LINENO"; then : | |
14185 | rb__cv_timerfd_create_works=yes | |
14186 | else | |
14187 | rb__cv_timerfd_create_works=no | |
14188 | fi | |
14189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14190 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14191 | fi | |
db137867 | 14192 | |
db137867 AC |
14193 | |
14194 | fi | |
7083c021 AC |
14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5 |
14196 | $as_echo "$rb__cv_timerfd_create_works" >&6; } | |
14197 | case $rb__cv_timerfd_create_works in | |
14198 | yes) | |
14199 | $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h | |
14200 | ;; | |
14201 | esac | |
db137867 | 14202 | |
7083c021 AC |
14203 | |
14204 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
14205 | # for constant arguments. Useless! | |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
14207 | $as_echo_n "checking for working alloca.h... " >&6; } | |
08c2568c | 14208 | if ${ac_cv_working_alloca_h+:} false; then : |
030272f3 | 14209 | $as_echo_n "(cached) " >&6 |
db137867 | 14210 | else |
7083c021 | 14211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 | 14212 | /* end confdefs.h. */ |
7083c021 | 14213 | #include <alloca.h> |
030272f3 VY |
14214 | int |
14215 | main () | |
14216 | { | |
7083c021 AC |
14217 | char *p = (char *) alloca (2 * sizeof (int)); |
14218 | if (p) return 0; | |
db137867 AC |
14219 | ; |
14220 | return 0; | |
14221 | } | |
14222 | _ACEOF | |
7083c021 AC |
14223 | if ac_fn_c_try_link "$LINENO"; then : |
14224 | ac_cv_working_alloca_h=yes | |
030272f3 | 14225 | else |
7083c021 | 14226 | ac_cv_working_alloca_h=no |
db137867 | 14227 | fi |
7083c021 AC |
14228 | rm -f core conftest.err conftest.$ac_objext \ |
14229 | conftest$ac_exeext conftest.$ac_ext | |
030272f3 | 14230 | fi |
7083c021 AC |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
14232 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
14233 | if test $ac_cv_working_alloca_h = yes; then | |
db137867 | 14234 | |
7083c021 | 14235 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
db137867 AC |
14236 | |
14237 | fi | |
14238 | ||
7083c021 AC |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
14240 | $as_echo_n "checking for alloca... " >&6; } | |
08c2568c | 14241 | if ${ac_cv_func_alloca_works+:} false; then : |
030272f3 | 14242 | $as_echo_n "(cached) " >&6 |
db137867 | 14243 | else |
7083c021 | 14244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 14245 | /* end confdefs.h. */ |
7083c021 AC |
14246 | #ifdef __GNUC__ |
14247 | # define alloca __builtin_alloca | |
14248 | #else | |
14249 | # ifdef _MSC_VER | |
14250 | # include <malloc.h> | |
14251 | # define alloca _alloca | |
14252 | # else | |
14253 | # ifdef HAVE_ALLOCA_H | |
14254 | # include <alloca.h> | |
14255 | # else | |
14256 | # ifdef _AIX | |
14257 | #pragma alloca | |
14258 | # else | |
14259 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
08c2568c | 14260 | void *alloca (size_t); |
7083c021 AC |
14261 | # endif |
14262 | # endif | |
14263 | # endif | |
14264 | # endif | |
db137867 | 14265 | #endif |
7083c021 | 14266 | |
db137867 AC |
14267 | int |
14268 | main () | |
14269 | { | |
7083c021 AC |
14270 | char *p = (char *) alloca (1); |
14271 | if (p) return 0; | |
db137867 AC |
14272 | ; |
14273 | return 0; | |
14274 | } | |
14275 | _ACEOF | |
7083c021 AC |
14276 | if ac_fn_c_try_link "$LINENO"; then : |
14277 | ac_cv_func_alloca_works=yes | |
db137867 | 14278 | else |
7083c021 | 14279 | ac_cv_func_alloca_works=no |
db137867 | 14280 | fi |
7083c021 AC |
14281 | rm -f core conftest.err conftest.$ac_objext \ |
14282 | conftest$ac_exeext conftest.$ac_ext | |
db137867 | 14283 | fi |
7083c021 AC |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
14285 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
db137867 | 14286 | |
7083c021 | 14287 | if test $ac_cv_func_alloca_works = yes; then |
db137867 | 14288 | |
7083c021 | 14289 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
db137867 | 14290 | |
db137867 | 14291 | else |
7083c021 AC |
14292 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
14293 | # that cause trouble. Some versions do not even contain alloca or | |
14294 | # contain a buggy version. If you still want to use their alloca, | |
14295 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
db137867 | 14296 | |
7083c021 | 14297 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
db137867 | 14298 | |
7083c021 | 14299 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
db137867 AC |
14300 | |
14301 | ||
7083c021 AC |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
14303 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
08c2568c | 14304 | if ${ac_cv_os_cray+:} false; then : |
030272f3 | 14305 | $as_echo_n "(cached) " >&6 |
db137867 | 14306 | else |
7083c021 | 14307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 14308 | /* end confdefs.h. */ |
7083c021 AC |
14309 | #if defined CRAY && ! defined CRAY2 |
14310 | webecray | |
14311 | #else | |
14312 | wenotbecray | |
14313 | #endif | |
db137867 | 14314 | |
db137867 | 14315 | _ACEOF |
7083c021 AC |
14316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14317 | $EGREP "webecray" >/dev/null 2>&1; then : | |
14318 | ac_cv_os_cray=yes | |
db137867 | 14319 | else |
7083c021 | 14320 | ac_cv_os_cray=no |
db137867 | 14321 | fi |
7083c021 | 14322 | rm -f conftest* |
db137867 | 14323 | |
db137867 | 14324 | fi |
7083c021 AC |
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
14326 | $as_echo "$ac_cv_os_cray" >&6; } | |
14327 | if test $ac_cv_os_cray = yes; then | |
14328 | for ac_func in _getb67 GETB67 getb67; do | |
14329 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14330 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 14331 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
db137867 | 14332 | |
7083c021 AC |
14333 | cat >>confdefs.h <<_ACEOF |
14334 | #define CRAY_STACKSEG_END $ac_func | |
14335 | _ACEOF | |
db137867 | 14336 | |
7083c021 AC |
14337 | break |
14338 | fi | |
db137867 | 14339 | |
7083c021 AC |
14340 | done |
14341 | fi | |
db137867 | 14342 | |
7083c021 AC |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
14344 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
08c2568c | 14345 | if ${ac_cv_c_stack_direction+:} false; then : |
030272f3 | 14346 | $as_echo_n "(cached) " >&6 |
db137867 | 14347 | else |
7083c021 AC |
14348 | if test "$cross_compiling" = yes; then : |
14349 | ac_cv_c_stack_direction=0 | |
14350 | else | |
14351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14352 | /* end confdefs.h. */ |
7083c021 | 14353 | $ac_includes_default |
db137867 | 14354 | int |
bf4e01a4 | 14355 | find_stack_direction (int *addr, int depth) |
db137867 | 14356 | { |
bf4e01a4 AC |
14357 | int dir, dummy = 0; |
14358 | if (! addr) | |
14359 | addr = &dummy; | |
14360 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
14361 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
14362 | return dir + dummy; | |
030272f3 | 14363 | } |
030272f3 VY |
14364 | |
14365 | int | |
bf4e01a4 | 14366 | main (int argc, char **argv) |
030272f3 | 14367 | { |
bf4e01a4 | 14368 | return find_stack_direction (0, argc + !argv + 20) < 0; |
db137867 AC |
14369 | } |
14370 | _ACEOF | |
7083c021 AC |
14371 | if ac_fn_c_try_run "$LINENO"; then : |
14372 | ac_cv_c_stack_direction=1 | |
030272f3 | 14373 | else |
7083c021 | 14374 | ac_cv_c_stack_direction=-1 |
030272f3 | 14375 | fi |
7083c021 AC |
14376 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14377 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
14378 | fi |
14379 | ||
db137867 | 14380 | fi |
7083c021 AC |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
14382 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
14383 | cat >>confdefs.h <<_ACEOF | |
14384 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
db137867 AC |
14385 | _ACEOF |
14386 | ||
db137867 | 14387 | |
7083c021 | 14388 | fi |
db137867 | 14389 | |
7083c021 AC |
14390 | for ac_header in vfork.h |
14391 | do : | |
14392 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
08c2568c | 14393 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
7083c021 AC |
14394 | cat >>confdefs.h <<_ACEOF |
14395 | #define HAVE_VFORK_H 1 | |
14396 | _ACEOF | |
db137867 | 14397 | |
7083c021 | 14398 | fi |
db137867 | 14399 | |
7083c021 | 14400 | done |
a9fb3ed0 | 14401 | |
7083c021 AC |
14402 | for ac_func in fork vfork |
14403 | do : | |
14404 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14405 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 14406 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
14407 | cat >>confdefs.h <<_ACEOF |
14408 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14409 | _ACEOF | |
a9fb3ed0 | 14410 | |
7083c021 AC |
14411 | fi |
14412 | done | |
3202e249 | 14413 | |
7083c021 AC |
14414 | if test "x$ac_cv_func_fork" = xyes; then |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
14416 | $as_echo_n "checking for working fork... " >&6; } | |
08c2568c | 14417 | if ${ac_cv_func_fork_works+:} false; then : |
030272f3 | 14418 | $as_echo_n "(cached) " >&6 |
db137867 | 14419 | else |
7083c021 AC |
14420 | if test "$cross_compiling" = yes; then : |
14421 | ac_cv_func_fork_works=cross | |
14422 | else | |
14423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14424 | /* end confdefs.h. */ |
7083c021 | 14425 | $ac_includes_default |
db137867 AC |
14426 | int |
14427 | main () | |
14428 | { | |
7083c021 AC |
14429 | |
14430 | /* By Ruediger Kuhlmann. */ | |
14431 | return fork () < 0; | |
14432 | ||
db137867 AC |
14433 | ; |
14434 | return 0; | |
14435 | } | |
14436 | _ACEOF | |
7083c021 AC |
14437 | if ac_fn_c_try_run "$LINENO"; then : |
14438 | ac_cv_func_fork_works=yes | |
db137867 | 14439 | else |
7083c021 | 14440 | ac_cv_func_fork_works=no |
db137867 | 14441 | fi |
7083c021 AC |
14442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14443 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 | 14444 | fi |
db137867 AC |
14445 | |
14446 | fi | |
7083c021 AC |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
14448 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
db137867 | 14449 | |
7083c021 AC |
14450 | else |
14451 | ac_cv_func_fork_works=$ac_cv_func_fork | |
14452 | fi | |
14453 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14454 | case $host in | |
14455 | *-*-amigaos* | *-*-msdosdjgpp*) | |
14456 | # Override, as these systems have only a dummy fork() stub | |
14457 | ac_cv_func_fork_works=no | |
14458 | ;; | |
14459 | *) | |
14460 | ac_cv_func_fork_works=yes | |
14461 | ;; | |
14462 | esac | |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
14464 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
14465 | fi | |
14466 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
14467 | if test "x$ac_cv_func_vfork" = xyes; then | |
14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
14469 | $as_echo_n "checking for working vfork... " >&6; } | |
08c2568c | 14470 | if ${ac_cv_func_vfork_works+:} false; then : |
030272f3 | 14471 | $as_echo_n "(cached) " >&6 |
db137867 | 14472 | else |
7083c021 AC |
14473 | if test "$cross_compiling" = yes; then : |
14474 | ac_cv_func_vfork_works=cross | |
14475 | else | |
14476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14477 | /* end confdefs.h. */ |
7083c021 AC |
14478 | /* Thanks to Paul Eggert for this test. */ |
14479 | $ac_includes_default | |
14480 | #include <sys/wait.h> | |
14481 | #ifdef HAVE_VFORK_H | |
14482 | # include <vfork.h> | |
14483 | #endif | |
14484 | /* On some sparc systems, changes by the child to local and incoming | |
14485 | argument registers are propagated back to the parent. The compiler | |
14486 | is told about this with #include <vfork.h>, but some compilers | |
14487 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
14488 | static variable whose address is put into a register that is | |
14489 | clobbered by the vfork. */ | |
14490 | static void | |
db137867 | 14491 | #ifdef __cplusplus |
7083c021 AC |
14492 | sparc_address_test (int arg) |
14493 | # else | |
14494 | sparc_address_test (arg) int arg; | |
db137867 | 14495 | #endif |
7083c021 AC |
14496 | { |
14497 | static pid_t child; | |
14498 | if (!child) { | |
14499 | child = vfork (); | |
14500 | if (child < 0) { | |
14501 | perror ("vfork"); | |
14502 | _exit(2); | |
14503 | } | |
14504 | if (!child) { | |
14505 | arg = getpid(); | |
14506 | write(-1, "", 0); | |
14507 | _exit (arg); | |
14508 | } | |
14509 | } | |
14510 | } | |
14511 | ||
db137867 AC |
14512 | int |
14513 | main () | |
14514 | { | |
7083c021 AC |
14515 | pid_t parent = getpid (); |
14516 | pid_t child; | |
14517 | ||
14518 | sparc_address_test (0); | |
14519 | ||
14520 | child = vfork (); | |
14521 | ||
14522 | if (child == 0) { | |
14523 | /* Here is another test for sparc vfork register problems. This | |
14524 | test uses lots of local variables, at least as many local | |
14525 | variables as main has allocated so far including compiler | |
14526 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
14527 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
14528 | reuse the register of parent for one of the local variables, | |
14529 | since it will think that parent can't possibly be used any more | |
14530 | in this routine. Assigning to the local variable will thus | |
14531 | munge parent in the parent process. */ | |
14532 | pid_t | |
14533 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
14534 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
14535 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
14536 | use the same hardware register for all 8 local variables. */ | |
14537 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
14538 | || p != p5 || p != p6 || p != p7) | |
14539 | _exit(1); | |
db137867 | 14540 | |
7083c021 AC |
14541 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
14542 | from child file descriptors. If the child closes a descriptor | |
14543 | before it execs or exits, this munges the parent's descriptor | |
14544 | as well. Test for this by closing stdout in the child. */ | |
14545 | _exit(close(fileno(stdout)) != 0); | |
14546 | } else { | |
14547 | int status; | |
14548 | struct stat st; | |
db137867 | 14549 | |
7083c021 AC |
14550 | while (wait(&status) != child) |
14551 | ; | |
14552 | return ( | |
14553 | /* Was there some problem with vforking? */ | |
14554 | child < 0 | |
db137867 | 14555 | |
7083c021 AC |
14556 | /* Did the child fail? (This shouldn't happen.) */ |
14557 | || status | |
14558 | ||
14559 | /* Did the vfork/compiler bug occur? */ | |
14560 | || parent != getpid() | |
14561 | ||
14562 | /* Did the file descriptor bug occur? */ | |
14563 | || fstat(fileno(stdout), &st) != 0 | |
14564 | ); | |
14565 | } | |
14566 | } | |
14567 | _ACEOF | |
14568 | if ac_fn_c_try_run "$LINENO"; then : | |
14569 | ac_cv_func_vfork_works=yes | |
db137867 | 14570 | else |
7083c021 | 14571 | ac_cv_func_vfork_works=no |
db137867 | 14572 | fi |
7083c021 AC |
14573 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14574 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 | 14575 | fi |
db137867 | 14576 | |
7083c021 AC |
14577 | fi |
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
14579 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
db137867 | 14580 | |
7083c021 AC |
14581 | fi; |
14582 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14583 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
14584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
14585 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
db137867 AC |
14586 | fi |
14587 | ||
7083c021 AC |
14588 | if test "x$ac_cv_func_vfork_works" = xyes; then |
14589 | ||
14590 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
db137867 | 14591 | |
db137867 | 14592 | else |
db137867 | 14593 | |
7083c021 | 14594 | $as_echo "#define vfork fork" >>confdefs.h |
db137867 AC |
14595 | |
14596 | fi | |
7083c021 AC |
14597 | if test "x$ac_cv_func_fork_works" = xyes; then |
14598 | ||
14599 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
db137867 | 14600 | |
db137867 | 14601 | fi |
7083c021 | 14602 | |
96f4052b AC |
14603 | |
14604 | ||
14605 | ||
14606 | for ac_header in $ac_header_list | |
7083c021 AC |
14607 | do : |
14608 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
96f4052b AC |
14609 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
14610 | " | |
08c2568c | 14611 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14612 | cat >>confdefs.h <<_ACEOF |
14613 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14614 | _ACEOF | |
14615 | ||
db137867 | 14616 | fi |
db137867 | 14617 | |
7083c021 AC |
14618 | done |
14619 | ||
96f4052b AC |
14620 | |
14621 | ||
14622 | ||
14623 | ||
14624 | ||
14625 | ||
14626 | ||
7083c021 AC |
14627 | for ac_func in getpagesize |
14628 | do : | |
14629 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
08c2568c | 14630 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
7083c021 AC |
14631 | cat >>confdefs.h <<_ACEOF |
14632 | #define HAVE_GETPAGESIZE 1 | |
db137867 AC |
14633 | _ACEOF |
14634 | ||
14635 | fi | |
7083c021 | 14636 | done |
db137867 | 14637 | |
7083c021 AC |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
14639 | $as_echo_n "checking for working mmap... " >&6; } | |
08c2568c | 14640 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
030272f3 | 14641 | $as_echo_n "(cached) " >&6 |
db137867 | 14642 | else |
7083c021 AC |
14643 | if test "$cross_compiling" = yes; then : |
14644 | ac_cv_func_mmap_fixed_mapped=no | |
14645 | else | |
14646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14647 | /* end confdefs.h. */ |
7083c021 AC |
14648 | $ac_includes_default |
14649 | /* malloc might have been renamed as rpl_malloc. */ | |
14650 | #undef malloc | |
db137867 | 14651 | |
7083c021 AC |
14652 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14653 | Here is a matrix of mmap possibilities: | |
14654 | mmap private not fixed | |
14655 | mmap private fixed at somewhere currently unmapped | |
14656 | mmap private fixed at somewhere already mapped | |
14657 | mmap shared not fixed | |
14658 | mmap shared fixed at somewhere currently unmapped | |
14659 | mmap shared fixed at somewhere already mapped | |
14660 | For private mappings, we should verify that changes cannot be read() | |
14661 | back from the file, nor mmap's back from the file at a different | |
14662 | address. (There have been systems where private was not correctly | |
14663 | implemented like the infamous i386 svr4.0, and systems where the | |
14664 | VM page cache was not coherent with the file system buffer cache | |
14665 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
14666 | For shared mappings, we should conversely verify that changes get | |
14667 | propagated back to all the places they're supposed to be. | |
14668 | ||
14669 | Grep wants private fixed already mapped. | |
14670 | The main things grep needs to know about mmap are: | |
14671 | * does it exist and is it safe to write into the mmap'd area | |
14672 | * how to use it (BSD variants) */ | |
14673 | ||
14674 | #include <fcntl.h> | |
14675 | #include <sys/mman.h> | |
14676 | ||
14677 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
14678 | char *malloc (); | |
db137867 | 14679 | #endif |
7083c021 AC |
14680 | |
14681 | /* This mess was copied from the GNU getpagesize.h. */ | |
14682 | #ifndef HAVE_GETPAGESIZE | |
7083c021 AC |
14683 | # ifdef _SC_PAGESIZE |
14684 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14685 | # else /* no _SC_PAGESIZE */ | |
14686 | # ifdef HAVE_SYS_PARAM_H | |
14687 | # include <sys/param.h> | |
14688 | # ifdef EXEC_PAGESIZE | |
14689 | # define getpagesize() EXEC_PAGESIZE | |
14690 | # else /* no EXEC_PAGESIZE */ | |
14691 | # ifdef NBPG | |
14692 | # define getpagesize() NBPG * CLSIZE | |
14693 | # ifndef CLSIZE | |
14694 | # define CLSIZE 1 | |
14695 | # endif /* no CLSIZE */ | |
14696 | # else /* no NBPG */ | |
14697 | # ifdef NBPC | |
14698 | # define getpagesize() NBPC | |
14699 | # else /* no NBPC */ | |
14700 | # ifdef PAGESIZE | |
14701 | # define getpagesize() PAGESIZE | |
14702 | # endif /* PAGESIZE */ | |
14703 | # endif /* no NBPC */ | |
14704 | # endif /* no NBPG */ | |
14705 | # endif /* no EXEC_PAGESIZE */ | |
14706 | # else /* no HAVE_SYS_PARAM_H */ | |
14707 | # define getpagesize() 8192 /* punt totally */ | |
14708 | # endif /* no HAVE_SYS_PARAM_H */ | |
14709 | # endif /* no _SC_PAGESIZE */ | |
14710 | ||
14711 | #endif /* no HAVE_GETPAGESIZE */ | |
14712 | ||
14713 | int | |
14714 | main () | |
db137867 | 14715 | { |
7083c021 | 14716 | char *data, *data2, *data3; |
5a241f54 | 14717 | const char *cdata2; |
7083c021 | 14718 | int i, pagesize; |
96f4052b | 14719 | int fd, fd2; |
7083c021 AC |
14720 | |
14721 | pagesize = getpagesize (); | |
14722 | ||
14723 | /* First, make a file with some known garbage in it. */ | |
14724 | data = (char *) malloc (pagesize); | |
14725 | if (!data) | |
14726 | return 1; | |
14727 | for (i = 0; i < pagesize; ++i) | |
14728 | *(data + i) = rand (); | |
14729 | umask (0); | |
14730 | fd = creat ("conftest.mmap", 0600); | |
14731 | if (fd < 0) | |
96f4052b | 14732 | return 2; |
7083c021 | 14733 | if (write (fd, data, pagesize) != pagesize) |
96f4052b | 14734 | return 3; |
7083c021 AC |
14735 | close (fd); |
14736 | ||
96f4052b AC |
14737 | /* Next, check that the tail of a page is zero-filled. File must have |
14738 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
14739 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
14740 | if (fd2 < 0) | |
14741 | return 4; | |
5a241f54 AC |
14742 | cdata2 = ""; |
14743 | if (write (fd2, cdata2, 1) != 1) | |
96f4052b | 14744 | return 5; |
5a241f54 | 14745 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
96f4052b AC |
14746 | if (data2 == MAP_FAILED) |
14747 | return 6; | |
14748 | for (i = 0; i < pagesize; ++i) | |
14749 | if (*(data2 + i)) | |
14750 | return 7; | |
14751 | close (fd2); | |
14752 | if (munmap (data2, pagesize)) | |
14753 | return 8; | |
14754 | ||
7083c021 AC |
14755 | /* Next, try to mmap the file at a fixed address which already has |
14756 | something else allocated at it. If we can, also make sure that | |
14757 | we see the same garbage. */ | |
14758 | fd = open ("conftest.mmap", O_RDWR); | |
14759 | if (fd < 0) | |
96f4052b | 14760 | return 9; |
7083c021 AC |
14761 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
14762 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
96f4052b | 14763 | return 10; |
7083c021 AC |
14764 | for (i = 0; i < pagesize; ++i) |
14765 | if (*(data + i) != *(data2 + i)) | |
96f4052b | 14766 | return 11; |
7083c021 AC |
14767 | |
14768 | /* Finally, make sure that changes to the mapped area do not | |
14769 | percolate back to the file as seen by read(). (This is a bug on | |
14770 | some variants of i386 svr4.0.) */ | |
14771 | for (i = 0; i < pagesize; ++i) | |
14772 | *(data2 + i) = *(data2 + i) + 1; | |
14773 | data3 = (char *) malloc (pagesize); | |
14774 | if (!data3) | |
96f4052b | 14775 | return 12; |
7083c021 | 14776 | if (read (fd, data3, pagesize) != pagesize) |
96f4052b | 14777 | return 13; |
7083c021 AC |
14778 | for (i = 0; i < pagesize; ++i) |
14779 | if (*(data + i) != *(data3 + i)) | |
96f4052b | 14780 | return 14; |
7083c021 AC |
14781 | close (fd); |
14782 | return 0; | |
db137867 | 14783 | } |
db137867 | 14784 | _ACEOF |
7083c021 AC |
14785 | if ac_fn_c_try_run "$LINENO"; then : |
14786 | ac_cv_func_mmap_fixed_mapped=yes | |
db137867 | 14787 | else |
7083c021 | 14788 | ac_cv_func_mmap_fixed_mapped=no |
db137867 | 14789 | fi |
7083c021 AC |
14790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14791 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
14792 | fi |
14793 | ||
7083c021 AC |
14794 | fi |
14795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14796 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
14797 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
db137867 | 14798 | |
7083c021 | 14799 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
db137867 AC |
14800 | |
14801 | fi | |
96f4052b | 14802 | rm -f conftest.mmap conftest.txt |
db137867 | 14803 | |
3202e249 | 14804 | |
7083c021 AC |
14805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 |
14806 | $as_echo_n "checking for /dev/poll... " >&6; } | |
14807 | if test -c "/dev/poll"; then | |
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14809 | $as_echo "yes" >&6; } | |
3202e249 | 14810 | |
7083c021 | 14811 | $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h |
3202e249 | 14812 | |
7083c021 AC |
14813 | else |
14814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14815 | $as_echo "no" >&6; } | |
3202e249 VY |
14816 | fi |
14817 | ||
14818 | ||
7083c021 AC |
14819 | if test "$is_mingw" = "yes"; then |
14820 | ||
14821 | $as_echo "#define HAVE_WIN32 1" >>confdefs.h | |
3202e249 VY |
14822 | |
14823 | fi | |
3202e249 | 14824 | |
db137867 | 14825 | |
7083c021 AC |
14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
14827 | $as_echo_n "checking for OpenSSL... " >&6; } | |
14828 | # Check whether --enable-openssl was given. | |
14829 | if test "${enable_openssl+set}" = set; then : | |
14830 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
db137867 | 14831 | else |
7083c021 | 14832 | cf_enable_openssl="auto" |
db137867 AC |
14833 | fi |
14834 | ||
db137867 | 14835 | |
7083c021 AC |
14836 | if test "$cf_enable_openssl" != "no" ; then |
14837 | cf_openssl_basedir="" | |
14838 | if test "$cf_enable_openssl" != "auto" && | |
14839 | test "$cf_enable_openssl" != "yes" ; then | |
14840 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
14841 | else | |
14842 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
14843 | /usr/local/openssl ; do | |
14844 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
14845 | cf_openssl_basedir="${dirs}" | |
14846 | break | |
14847 | fi | |
14848 | done | |
14849 | unset dirs | |
14850 | fi | |
14851 | if test ! -z "$cf_openssl_basedir"; then | |
14852 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
14853 | SSL_CFLAGS="-I${cf_openssl_basedir}/include" | |
14854 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
14855 | else | |
14856 | cf_openssl_basedir="" | |
14857 | fi | |
14858 | else | |
14859 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
14860 | cf_openssl_basedir="/usr" | |
14861 | fi | |
14862 | fi | |
db137867 | 14863 | |
7083c021 AC |
14864 | if test ! -z "$cf_openssl_basedir"; then |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 | |
14866 | $as_echo "$cf_openssl_basedir" >&6; } | |
14867 | cf_enable_openssl="yes" | |
14868 | else | |
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 | |
14870 | $as_echo "not found. Specify a correct path?" >&6; } | |
14871 | cf_enable_openssl="no" | |
14872 | fi | |
14873 | unset cf_openssl_basedir | |
14874 | else | |
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14876 | $as_echo "disabled" >&6; } | |
db137867 AC |
14877 | fi |
14878 | ||
7083c021 AC |
14879 | save_CPPFLAGS="$CPPFLAGS" |
14880 | CPPFLAGS="$CPPFLAGS $SSL_CFLAGS" | |
14881 | save_LIBS="$LIBS" | |
14882 | LIBS="$LIBS $SSL_LIBS" | |
14883 | if test "$cf_enable_openssl" != no; then | |
14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 | |
14885 | $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } | |
14886 | if test "$cross_compiling" = yes; then : | |
14887 | cf_enable_openssl=no | |
db137867 | 14888 | else |
7083c021 | 14889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 14890 | /* end confdefs.h. */ |
7083c021 AC |
14891 | #include <openssl/opensslv.h> |
14892 | #include <stdlib.h> | |
db137867 AC |
14893 | int |
14894 | main () | |
14895 | { | |
7083c021 AC |
14896 | if (OPENSSL_VERSION_NUMBER >= 0x00907000) |
14897 | exit(0); else exit(1); | |
14898 | ; | |
14899 | return 0; | |
14900 | } | |
db137867 | 14901 | _ACEOF |
7083c021 AC |
14902 | if ac_fn_c_try_run "$LINENO"; then : |
14903 | cf_enable_openssl=yes | |
14904 | else | |
14905 | cf_enable_openssl=no | |
14906 | fi | |
14907 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14908 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14909 | fi | |
db137867 AC |
14910 | |
14911 | ||
7083c021 AC |
14912 | if test "$cf_enable_openssl" != no; then |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
14914 | $as_echo "found" >&6; } | |
14915 | else | |
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 | |
14917 | $as_echo "no - OpenSSL support disabled" >&6; } | |
14918 | fi | |
db137867 | 14919 | |
db137867 | 14920 | fi |
db137867 | 14921 | |
7083c021 AC |
14922 | |
14923 | if test "$cf_enable_openssl" != no; then | |
14924 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5 | |
14926 | $as_echo_n "checking for RAND_status in -lcrypto... " >&6; } | |
08c2568c | 14927 | if ${ac_cv_lib_crypto_RAND_status+:} false; then : |
030272f3 | 14928 | $as_echo_n "(cached) " >&6 |
db137867 | 14929 | else |
7083c021 AC |
14930 | ac_check_lib_save_LIBS=$LIBS |
14931 | LIBS="-lcrypto $LIBS" | |
14932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14933 | /* end confdefs.h. */ |
db137867 AC |
14934 | |
14935 | /* Override any GCC internal prototype to avoid an error. | |
14936 | Use char because int might match the return type of a GCC | |
14937 | builtin and then its argument prototype would still apply. */ | |
14938 | #ifdef __cplusplus | |
14939 | extern "C" | |
14940 | #endif | |
7083c021 | 14941 | char RAND_status (); |
db137867 AC |
14942 | int |
14943 | main () | |
14944 | { | |
7083c021 | 14945 | return RAND_status (); |
db137867 AC |
14946 | ; |
14947 | return 0; | |
14948 | } | |
14949 | _ACEOF | |
7083c021 AC |
14950 | if ac_fn_c_try_link "$LINENO"; then : |
14951 | ac_cv_lib_crypto_RAND_status=yes | |
db137867 | 14952 | else |
7083c021 | 14953 | ac_cv_lib_crypto_RAND_status=no |
db137867 | 14954 | fi |
7083c021 AC |
14955 | rm -f core conftest.err conftest.$ac_objext \ |
14956 | conftest$ac_exeext conftest.$ac_ext | |
14957 | LIBS=$ac_check_lib_save_LIBS | |
db137867 | 14958 | fi |
7083c021 AC |
14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5 |
14960 | $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; } | |
08c2568c | 14961 | if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then : |
7083c021 AC |
14962 | cf_enable_openssl=yes |
14963 | else | |
14964 | cf_enable_openssl=no | |
db137867 AC |
14965 | fi |
14966 | ||
db137867 AC |
14967 | fi |
14968 | ||
7083c021 AC |
14969 | if test "$cf_enable_openssl" != no; then |
14970 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5 | |
14972 | $as_echo_n "checking for SSL_read in -lssl... " >&6; } | |
08c2568c | 14973 | if ${ac_cv_lib_ssl_SSL_read+:} false; then : |
030272f3 | 14974 | $as_echo_n "(cached) " >&6 |
db137867 | 14975 | else |
7083c021 AC |
14976 | ac_check_lib_save_LIBS=$LIBS |
14977 | LIBS="-lssl -lcrypto $LIBS" | |
14978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14979 | /* end confdefs.h. */ |
db137867 | 14980 | |
7083c021 AC |
14981 | /* Override any GCC internal prototype to avoid an error. |
14982 | Use char because int might match the return type of a GCC | |
14983 | builtin and then its argument prototype would still apply. */ | |
14984 | #ifdef __cplusplus | |
14985 | extern "C" | |
14986 | #endif | |
14987 | char SSL_read (); | |
db137867 AC |
14988 | int |
14989 | main () | |
14990 | { | |
7083c021 AC |
14991 | return SSL_read (); |
14992 | ; | |
14993 | return 0; | |
db137867 AC |
14994 | } |
14995 | _ACEOF | |
7083c021 AC |
14996 | if ac_fn_c_try_link "$LINENO"; then : |
14997 | ac_cv_lib_ssl_SSL_read=yes | |
db137867 | 14998 | else |
7083c021 | 14999 | ac_cv_lib_ssl_SSL_read=no |
db137867 | 15000 | fi |
7083c021 AC |
15001 | rm -f core conftest.err conftest.$ac_objext \ |
15002 | conftest$ac_exeext conftest.$ac_ext | |
15003 | LIBS=$ac_check_lib_save_LIBS | |
15004 | fi | |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5 | |
15006 | $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; } | |
08c2568c | 15007 | if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then : |
7083c021 AC |
15008 | SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
15009 | else | |
15010 | cf_enable_openssl=no | |
db137867 | 15011 | fi |
db137867 AC |
15012 | |
15013 | fi | |
db137867 | 15014 | |
db137867 | 15015 | |
6f57a957 AC |
15016 | # Check whether --enable-mbedtls was given. |
15017 | if test "${enable_mbedtls+set}" = set; then : | |
15018 | enableval=$enable_mbedtls; cf_enable_mbedtls=$enableval | |
15019 | else | |
15020 | cf_enable_mbedtls="auto" | |
15021 | fi | |
15022 | ||
15023 | ||
15024 | if test "$cf_enable_mbedtls" != no; then | |
15025 | save_CPPFLAGS="$CPPFLAGS" | |
15026 | save_LIBS="$LIBS" | |
15027 | LIBS="$LIBS $MBEDTLS_LIBS" | |
15028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5 | |
15029 | $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; } | |
15030 | if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then : | |
15031 | $as_echo_n "(cached) " >&6 | |
15032 | else | |
15033 | ac_check_lib_save_LIBS=$LIBS | |
15034 | LIBS="-lmbedtls -lmbedcrypto -lmbedx509 $LIBS" | |
15035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15036 | /* end confdefs.h. */ | |
15037 | ||
15038 | /* Override any GCC internal prototype to avoid an error. | |
15039 | Use char because int might match the return type of a GCC | |
15040 | builtin and then its argument prototype would still apply. */ | |
15041 | #ifdef __cplusplus | |
15042 | extern "C" | |
15043 | #endif | |
15044 | char mbedtls_ssl_init (); | |
15045 | int | |
15046 | main () | |
15047 | { | |
15048 | return mbedtls_ssl_init (); | |
15049 | ; | |
15050 | return 0; | |
15051 | } | |
15052 | _ACEOF | |
15053 | if ac_fn_c_try_link "$LINENO"; then : | |
15054 | ac_cv_lib_mbedtls_mbedtls_ssl_init=yes | |
15055 | else | |
15056 | ac_cv_lib_mbedtls_mbedtls_ssl_init=no | |
15057 | fi | |
15058 | rm -f core conftest.err conftest.$ac_objext \ | |
15059 | conftest$ac_exeext conftest.$ac_ext | |
15060 | LIBS=$ac_check_lib_save_LIBS | |
15061 | fi | |
15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5 | |
15063 | $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; } | |
15064 | if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then : | |
15065 | ||
15066 | MBEDTLS_LIBS="$MBEDTLS_LIBS -lmbedtls -lmbedcrypto -lmbedx509" | |
15067 | cf_enable_mbedtls=yes | |
15068 | ||
15069 | else | |
15070 | cf_enable_mbedtls=no | |
15071 | fi | |
15072 | ||
15073 | fi | |
db137867 | 15074 | |
bf4e01a4 AC |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5 |
15076 | $as_echo_n "checking for GnuTLS... " >&6; } | |
15077 | # Check whether --enable-gnutls was given. | |
15078 | if test "${enable_gnutls+set}" = set; then : | |
15079 | enableval=$enable_gnutls; cf_enable_gnutls=$enableval | |
15080 | else | |
15081 | cf_enable_gnutls="auto" | |
15082 | fi | |
15083 | ||
15084 | ||
15085 | if test "$cf_enable_gnutls" != no; then | |
15086 | ||
15087 | ||
15088 | ||
15089 | ||
15090 | ||
15091 | ||
15092 | ||
15093 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15094 | if test -n "$ac_tool_prefix"; then | |
15095 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15096 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15098 | $as_echo_n "checking for $ac_word... " >&6; } | |
15099 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15100 | $as_echo_n "(cached) " >&6 | |
15101 | else | |
15102 | case $PKG_CONFIG in | |
15103 | [\\/]* | ?:[\\/]*) | |
15104 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15105 | ;; | |
15106 | *) | |
15107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15108 | for as_dir in $PATH | |
15109 | do | |
15110 | IFS=$as_save_IFS | |
15111 | test -z "$as_dir" && as_dir=. | |
15112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15114 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15116 | break 2 | |
15117 | fi | |
15118 | done | |
15119 | done | |
15120 | IFS=$as_save_IFS | |
15121 | ||
15122 | ;; | |
15123 | esac | |
15124 | fi | |
15125 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15126 | if test -n "$PKG_CONFIG"; then | |
15127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15128 | $as_echo "$PKG_CONFIG" >&6; } | |
15129 | else | |
15130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15131 | $as_echo "no" >&6; } | |
15132 | fi | |
15133 | ||
15134 | ||
15135 | fi | |
15136 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15137 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15138 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15139 | set dummy pkg-config; ac_word=$2 | |
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15141 | $as_echo_n "checking for $ac_word... " >&6; } | |
15142 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15143 | $as_echo_n "(cached) " >&6 | |
15144 | else | |
15145 | case $ac_pt_PKG_CONFIG in | |
15146 | [\\/]* | ?:[\\/]*) | |
15147 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15148 | ;; | |
15149 | *) | |
15150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15151 | for as_dir in $PATH | |
15152 | do | |
15153 | IFS=$as_save_IFS | |
15154 | test -z "$as_dir" && as_dir=. | |
15155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15157 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15159 | break 2 | |
15160 | fi | |
15161 | done | |
15162 | done | |
15163 | IFS=$as_save_IFS | |
15164 | ||
15165 | ;; | |
15166 | esac | |
15167 | fi | |
15168 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15169 | if test -n "$ac_pt_PKG_CONFIG"; then | |
15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
15171 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
15172 | else | |
15173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15174 | $as_echo "no" >&6; } | |
15175 | fi | |
15176 | ||
15177 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
15178 | PKG_CONFIG="" | |
15179 | else | |
15180 | case $cross_compiling:$ac_tool_warned in | |
15181 | yes:) | |
15182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15183 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15184 | ac_tool_warned=yes ;; | |
15185 | esac | |
15186 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15187 | fi | |
15188 | else | |
15189 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15190 | fi | |
15191 | ||
15192 | fi | |
15193 | if test -n "$PKG_CONFIG"; then | |
15194 | _pkg_min_version=0.9.0 | |
15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
15196 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
15197 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15199 | $as_echo "yes" >&6; } | |
15200 | else | |
15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15202 | $as_echo "no" >&6; } | |
15203 | PKG_CONFIG="" | |
15204 | fi | |
15205 | fi | |
15206 | ||
15207 | pkg_failed=no | |
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 | |
15209 | $as_echo_n "checking for GNUTLS... " >&6; } | |
15210 | ||
15211 | if test -n "$GNUTLS_CFLAGS"; then | |
15212 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | |
15213 | elif test -n "$PKG_CONFIG"; then | |
15214 | if test -n "$PKG_CONFIG" && \ | |
15215 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 | |
15216 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
15217 | ac_status=$? | |
15218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15219 | test $ac_status = 0; }; then | |
15220 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` | |
15221 | test "x$?" != "x0" && pkg_failed=yes | |
15222 | else | |
15223 | pkg_failed=yes | |
15224 | fi | |
15225 | else | |
15226 | pkg_failed=untried | |
15227 | fi | |
15228 | if test -n "$GNUTLS_LIBS"; then | |
15229 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | |
15230 | elif test -n "$PKG_CONFIG"; then | |
15231 | if test -n "$PKG_CONFIG" && \ | |
15232 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 | |
15233 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
15234 | ac_status=$? | |
15235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15236 | test $ac_status = 0; }; then | |
15237 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` | |
15238 | test "x$?" != "x0" && pkg_failed=yes | |
15239 | else | |
15240 | pkg_failed=yes | |
15241 | fi | |
15242 | else | |
15243 | pkg_failed=untried | |
15244 | fi | |
15245 | ||
15246 | ||
15247 | ||
15248 | if test $pkg_failed = yes; then | |
15249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15250 | $as_echo "no" >&6; } | |
15251 | ||
15252 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15253 | _pkg_short_errors_supported=yes | |
15254 | else | |
15255 | _pkg_short_errors_supported=no | |
15256 | fi | |
15257 | if test $_pkg_short_errors_supported = yes; then | |
15258 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1` | |
15259 | else | |
15260 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1` | |
15261 | fi | |
15262 | # Put the nasty error message in config.log where it belongs | |
15263 | echo "$GNUTLS_PKG_ERRORS" >&5 | |
15264 | ||
15265 | cf_enable_gnutls="no" | |
15266 | elif test $pkg_failed = untried; then | |
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15268 | $as_echo "no" >&6; } | |
15269 | cf_enable_gnutls="no" | |
15270 | else | |
15271 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | |
15272 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | |
15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15274 | $as_echo "yes" >&6; } | |
15275 | ||
15276 | cf_enable_gnutls="yes" | |
15277 | ||
15278 | fi | |
15279 | fi | |
15280 | ||
6f57a957 AC |
15281 | if test "$cf_enable_openssl" = "auto" -a "$cf_enable_mbedtls" = "yes"; then |
15282 | cf_enable_openssl="no" | |
15283 | fi | |
15284 | ||
15285 | if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes" -a "$cf_enable_mbedtls" = "yes"; then | |
bf4e01a4 AC |
15286 | cf_enable_gnutls="no" |
15287 | fi | |
15288 | ||
7083c021 | 15289 | if test x"$cf_enable_openssl" != xno; then |
db137867 | 15290 | |
7083c021 | 15291 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
db137867 | 15292 | |
bf4e01a4 AC |
15293 | GNUTLS_CFLAGS="" |
15294 | GNUTLS_LIBS="" | |
6f57a957 AC |
15295 | MBEDTLS_LIBS="" |
15296 | MBEDTLS_CFLAGS="" | |
7083c021 | 15297 | SSL_TYPE="openssl" |
6f57a957 AC |
15298 | elif test x"$cf_enable_mbedtls" != xno; then |
15299 | ||
15300 | $as_echo "#define HAVE_MBEDTLS 1" >>confdefs.h | |
15301 | ||
15302 | SSL_LIBS="" | |
15303 | SSL_CFLAGS="" | |
15304 | GNUTLS_CFLAGS="" | |
15305 | GNUTLS_LIBS="" | |
15306 | SSL_TYPE="mbedtls" | |
bf4e01a4 AC |
15307 | elif test x"$cf_enable_gnutls" != xno; then |
15308 | ||
15309 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
15310 | ||
15311 | SSL_LIBS="" | |
15312 | SSL_CFLAGS="" | |
6f57a957 AC |
15313 | MBEDTLS_LIBS="" |
15314 | MBEDTLS_CFLAGS="" | |
bf4e01a4 | 15315 | SSL_TYPE="gnutls" |
db137867 | 15316 | fi |
db137867 | 15317 | |
db137867 | 15318 | |
db137867 | 15319 | |
db137867 | 15320 | |
7083c021 AC |
15321 | CPPFLAGS="$save_CPPFLAGS" |
15322 | LIBS="$save_LIBS" | |
15323 | ||
15324 | ||
db137867 AC |
15325 | |
15326 | ||
db137867 | 15327 | |
db137867 | 15328 | |
7083c021 AC |
15329 | # Check whether --enable-assert was given. |
15330 | if test "${enable_assert+set}" = set; then : | |
15331 | enableval=$enable_assert; assert=$enableval | |
15332 | else | |
15333 | assert=no | |
15334 | fi | |
db137867 | 15335 | |
db137867 | 15336 | |
7083c021 | 15337 | if test "$assert" = no; then |
db137867 | 15338 | |
7083c021 | 15339 | $as_echo "#define NDEBUG 1" >>confdefs.h |
db137867 | 15340 | |
7083c021 | 15341 | elif test "$assert" = soft; then |
db137867 | 15342 | |
7083c021 | 15343 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
db137867 | 15344 | |
db137867 | 15345 | |
7083c021 | 15346 | $as_echo "#define NDEBUG 1" >>confdefs.h |
db137867 | 15347 | |
7083c021 AC |
15348 | elif test "$assert" = yes; then |
15349 | assert = "hard"; | |
15350 | fi | |
15351 | ||
15352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 | |
15353 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
15354 | # Check whether --enable-profile was given. | |
15355 | if test "${enable_profile+set}" = set; then : | |
15356 | enableval=$enable_profile; profile=$enableval | |
db137867 | 15357 | else |
7083c021 AC |
15358 | profile=no |
15359 | fi | |
15360 | ||
15361 | ||
15362 | if test "$profile" = yes; then | |
15363 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
15364 | CFLAGS="$CFLAGS -pg -static" | |
15365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5 | |
15366 | $as_echo "yes, adding -pg -static" >&6; } | |
db137867 | 15367 | |
7083c021 AC |
15368 | $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h |
15369 | ||
15370 | else | |
15371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 | |
15372 | $as_echo "no, profile builds only work with gcc" >&6; } | |
15373 | fi | |
15374 | else | |
15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15376 | $as_echo "no" >&6; } | |
db137867 | 15377 | fi |
7083c021 | 15378 | |
7083c021 AC |
15379 | # Check whether --enable-warnings was given. |
15380 | if test "${enable_warnings+set}" = set; then : | |
15381 | enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable" | |
db137867 AC |
15382 | fi |
15383 | ||
db137867 | 15384 | |
db137867 | 15385 | |
db137867 | 15386 | |
db137867 | 15387 | |
db137867 | 15388 | |
db137867 | 15389 | |
db137867 AC |
15390 | |
15391 | ||
bf4e01a4 AC |
15392 | |
15393 | ||
cd492e44 AC |
15394 | |
15395 | ||
7083c021 AC |
15396 | if test "$prefix" = "NONE"; then |
15397 | ||
15398 | cat >>confdefs.h <<_ACEOF | |
15399 | #define RB_PREFIX "$ac_default_prefix" | |
db137867 | 15400 | _ACEOF |
7083c021 AC |
15401 | |
15402 | ||
db137867 | 15403 | else |
db137867 | 15404 | |
db137867 | 15405 | |
7083c021 | 15406 | prefix=`echo $prefix | sed 's/\/$//'` |
db137867 | 15407 | |
7083c021 AC |
15408 | cat >>confdefs.h <<_ACEOF |
15409 | #define RB_PREFIX "$prefix" | |
db137867 | 15410 | _ACEOF |
db137867 | 15411 | |
7083c021 | 15412 | |
db137867 AC |
15413 | fi |
15414 | ||
db137867 | 15415 | |
db137867 | 15416 | |
7083c021 | 15417 | ac_config_commands="$ac_config_commands include/librb-config.h" |
db137867 | 15418 | |
db137867 | 15419 | |
db137867 | 15420 | |
7083c021 | 15421 | ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc" |
db137867 AC |
15422 | |
15423 | ||
7083c021 AC |
15424 | cat >confcache <<\_ACEOF |
15425 | # This file is a shell script that caches the results of configure | |
15426 | # tests run on this system so they can be shared between configure | |
15427 | # scripts and configure runs, see configure's option --config-cache. | |
15428 | # It is not useful on other systems. If it contains results you don't | |
15429 | # want to keep, you may remove or edit it. | |
15430 | # | |
15431 | # config.status only pays attention to the cache file if you give it | |
15432 | # the --recheck option to rerun configure. | |
15433 | # | |
15434 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15435 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15436 | # following values. | |
15437 | ||
db137867 | 15438 | _ACEOF |
db137867 | 15439 | |
7083c021 AC |
15440 | # The following way of writing the cache mishandles newlines in values, |
15441 | # but we know of no workaround that is simple, portable, and efficient. | |
15442 | # So, we kill variables containing newlines. | |
15443 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15444 | # and sets the high bit in the cache file unless we assign to the vars. | |
15445 | ( | |
15446 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15447 | eval ac_val=\$$ac_var | |
15448 | case $ac_val in #( | |
15449 | *${as_nl}*) | |
15450 | case $ac_var in #( | |
15451 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15452 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15453 | esac | |
15454 | case $ac_var in #( | |
15455 | _ | IFS | as_nl) ;; #( | |
15456 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15457 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15458 | esac ;; | |
15459 | esac | |
15460 | done | |
15461 | ||
15462 | (set) 2>&1 | | |
15463 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15464 | *${as_nl}ac_space=\ *) | |
15465 | # `set' does not quote correctly, so add quotes: double-quote | |
15466 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15467 | sed -n \ | |
15468 | "s/'/'\\\\''/g; | |
15469 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15470 | ;; #( | |
15471 | *) | |
15472 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15473 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15474 | ;; | |
15475 | esac | | |
15476 | sort | |
15477 | ) | | |
15478 | sed ' | |
15479 | /^ac_cv_env_/b end | |
15480 | t clear | |
15481 | :clear | |
15482 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15483 | t end | |
15484 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15485 | :end' >>confcache | |
15486 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15487 | if test -w "$cache_file"; then | |
08c2568c | 15488 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
15489 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15490 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
08c2568c EM |
15491 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15492 | cat confcache >"$cache_file" | |
15493 | else | |
15494 | case $cache_file in #( | |
15495 | */* | ?:*) | |
15496 | mv -f confcache "$cache_file"$$ && | |
15497 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15498 | *) | |
15499 | mv -f confcache "$cache_file" ;; | |
15500 | esac | |
15501 | fi | |
15502 | fi | |
7083c021 AC |
15503 | else |
15504 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15505 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15506 | fi | |
15507 | fi | |
15508 | rm -f confcache | |
15509 | ||
15510 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15511 | # Let make expand exec_prefix. | |
15512 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
db137867 | 15513 | |
7083c021 | 15514 | DEFS=-DHAVE_CONFIG_H |
db137867 | 15515 | |
7083c021 AC |
15516 | ac_libobjs= |
15517 | ac_ltlibobjs= | |
15518 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15519 | # 1. Remove the extension, and $U if already installed. | |
15520 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15521 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15522 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15523 | # will be set to the directory where LIBOBJS objects are built. | |
15524 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15525 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
15526 | done | |
15527 | LIBOBJS=$ac_libobjs | |
db137867 | 15528 | |
7083c021 | 15529 | LTLIBOBJS=$ac_ltlibobjs |
db137867 | 15530 | |
db137867 | 15531 | |
bf4e01a4 AC |
15532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
15533 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15534 | if test -n "$am_sleep_pid"; then | |
15535 | # Hide warnings about reused PIDs. | |
15536 | wait $am_sleep_pid 2>/dev/null | |
15537 | fi | |
15538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15539 | $as_echo "done" >&6; } | |
7083c021 AC |
15540 | if test -n "$EXEEXT"; then |
15541 | am__EXEEXT_TRUE= | |
15542 | am__EXEEXT_FALSE='#' | |
15543 | else | |
15544 | am__EXEEXT_TRUE='#' | |
15545 | am__EXEEXT_FALSE= | |
db137867 AC |
15546 | fi |
15547 | ||
7083c021 | 15548 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
08c2568c | 15549 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
7083c021 | 15550 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
db137867 | 15551 | fi |
7083c021 | 15552 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
08c2568c | 15553 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
7083c021 AC |
15554 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15555 | fi | |
15556 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
08c2568c | 15557 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
7083c021 AC |
15558 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15559 | fi | |
f171dafb | 15560 | |
7083c021 | 15561 | if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then |
08c2568c | 15562 | as_fn_error $? "conditional \"MINGW\" was never defined. |
7083c021 | 15563 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
db137867 | 15564 | fi |
db137867 | 15565 | |
08c2568c | 15566 | : "${CONFIG_STATUS=./config.status}" |
7083c021 AC |
15567 | ac_write_fail=0 |
15568 | ac_clean_files_save=$ac_clean_files | |
15569 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15570 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
15571 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15572 | as_write_fail=0 | |
15573 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
15574 | #! $SHELL | |
15575 | # Generated by $as_me. | |
15576 | # Run this file to recreate the current configuration. | |
15577 | # Compiler output produced by configure, useful for debugging | |
15578 | # configure, is in config.log if it exists. | |
db137867 | 15579 | |
7083c021 AC |
15580 | debug=false |
15581 | ac_cs_recheck=false | |
15582 | ac_cs_silent=false | |
db137867 | 15583 | |
7083c021 AC |
15584 | SHELL=\${CONFIG_SHELL-$SHELL} |
15585 | export SHELL | |
15586 | _ASEOF | |
15587 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15588 | ## -------------------- ## | |
15589 | ## M4sh Initialization. ## | |
15590 | ## -------------------- ## | |
db137867 | 15591 | |
7083c021 AC |
15592 | # Be more Bourne compatible |
15593 | DUALCASE=1; export DUALCASE # for MKS sh | |
15594 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15595 | emulate sh | |
15596 | NULLCMD=: | |
15597 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15598 | # is contrary to our usage. Disable this feature. | |
15599 | alias -g '${1+"$@"}'='"$@"' | |
15600 | setopt NO_GLOB_SUBST | |
15601 | else | |
15602 | case `(set -o) 2>/dev/null` in #( | |
15603 | *posix*) : | |
15604 | set -o posix ;; #( | |
15605 | *) : | |
15606 | ;; | |
15607 | esac | |
15608 | fi | |
db137867 | 15609 | |
db137867 | 15610 | |
7083c021 AC |
15611 | as_nl=' |
15612 | ' | |
15613 | export as_nl | |
15614 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15615 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15616 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15617 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15618 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15619 | # but without wasting forks for bash or zsh. | |
15620 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15621 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15622 | as_echo='print -r --' | |
15623 | as_echo_n='print -rn --' | |
15624 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15625 | as_echo='printf %s\n' | |
15626 | as_echo_n='printf %s' | |
db137867 | 15627 | else |
7083c021 AC |
15628 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
15629 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15630 | as_echo_n='/usr/ucb/echo -n' | |
15631 | else | |
15632 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15633 | as_echo_n_body='eval | |
15634 | arg=$1; | |
15635 | case $arg in #( | |
15636 | *"$as_nl"*) | |
15637 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15638 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15639 | esac; | |
15640 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15641 | ' | |
15642 | export as_echo_n_body | |
15643 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15644 | fi | |
15645 | export as_echo_body | |
15646 | as_echo='sh -c $as_echo_body as_echo' | |
db137867 | 15647 | fi |
7083c021 AC |
15648 | |
15649 | # The user is always right. | |
15650 | if test "${PATH_SEPARATOR+set}" != set; then | |
15651 | PATH_SEPARATOR=: | |
15652 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15653 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15654 | PATH_SEPARATOR=';' | |
15655 | } | |
db137867 AC |
15656 | fi |
15657 | ||
15658 | ||
7083c021 AC |
15659 | # IFS |
15660 | # We need space, tab and new line, in precisely that order. Quoting is | |
15661 | # there to prevent editors from complaining about space-tab. | |
15662 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15663 | # splitting by setting IFS to empty value.) | |
15664 | IFS=" "" $as_nl" | |
db137867 | 15665 | |
7083c021 | 15666 | # Find who we are. Look in the path if we contain no directory separator. |
08c2568c | 15667 | as_myself= |
7083c021 AC |
15668 | case $0 in #(( |
15669 | *[\\/]* ) as_myself=$0 ;; | |
15670 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15671 | for as_dir in $PATH | |
15672 | do | |
15673 | IFS=$as_save_IFS | |
15674 | test -z "$as_dir" && as_dir=. | |
15675 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15676 | done | |
15677 | IFS=$as_save_IFS | |
db137867 | 15678 | |
7083c021 AC |
15679 | ;; |
15680 | esac | |
15681 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15682 | # in which case we are not to be found in the path. | |
15683 | if test "x$as_myself" = x; then | |
15684 | as_myself=$0 | |
15685 | fi | |
15686 | if test ! -f "$as_myself"; then | |
15687 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15688 | exit 1 | |
db137867 | 15689 | fi |
db137867 | 15690 | |
7083c021 AC |
15691 | # Unset variables that we do not need and which cause bugs (e.g. in |
15692 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15693 | # suppresses any "Segmentation fault" message there. '((' could | |
15694 | # trigger a bug in pdksh 5.2.14. | |
15695 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15696 | do eval test x\${$as_var+set} = xset \ | |
15697 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15698 | done | |
15699 | PS1='$ ' | |
15700 | PS2='> ' | |
15701 | PS4='+ ' | |
db137867 | 15702 | |
7083c021 AC |
15703 | # NLS nuisances. |
15704 | LC_ALL=C | |
15705 | export LC_ALL | |
15706 | LANGUAGE=C | |
15707 | export LANGUAGE | |
db137867 | 15708 | |
7083c021 AC |
15709 | # CDPATH. |
15710 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
db137867 | 15711 | |
db137867 | 15712 | |
08c2568c EM |
15713 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15714 | # ---------------------------------------- | |
7083c021 AC |
15715 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15716 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
08c2568c | 15717 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
15718 | as_fn_error () |
15719 | { | |
08c2568c EM |
15720 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15721 | if test "$4"; then | |
15722 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15723 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 15724 | fi |
08c2568c | 15725 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
15726 | as_fn_exit $as_status |
15727 | } # as_fn_error | |
db137867 | 15728 | |
db137867 | 15729 | |
7083c021 AC |
15730 | # as_fn_set_status STATUS |
15731 | # ----------------------- | |
15732 | # Set $? to STATUS, without forking. | |
15733 | as_fn_set_status () | |
15734 | { | |
15735 | return $1 | |
15736 | } # as_fn_set_status | |
15737 | ||
15738 | # as_fn_exit STATUS | |
15739 | # ----------------- | |
15740 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15741 | as_fn_exit () | |
15742 | { | |
15743 | set +e | |
15744 | as_fn_set_status $1 | |
15745 | exit $1 | |
15746 | } # as_fn_exit | |
15747 | ||
15748 | # as_fn_unset VAR | |
15749 | # --------------- | |
15750 | # Portably unset VAR. | |
15751 | as_fn_unset () | |
15752 | { | |
15753 | { eval $1=; unset $1;} | |
15754 | } | |
15755 | as_unset=as_fn_unset | |
15756 | # as_fn_append VAR VALUE | |
15757 | # ---------------------- | |
15758 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15759 | # advantage of any shell optimizations that allow amortized linear growth over | |
15760 | # repeated appends, instead of the typical quadratic growth present in naive | |
15761 | # implementations. | |
15762 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15763 | eval 'as_fn_append () | |
15764 | { | |
15765 | eval $1+=\$2 | |
15766 | }' | |
15767 | else | |
15768 | as_fn_append () | |
15769 | { | |
15770 | eval $1=\$$1\$2 | |
15771 | } | |
15772 | fi # as_fn_append | |
15773 | ||
15774 | # as_fn_arith ARG... | |
15775 | # ------------------ | |
15776 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15777 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15778 | # must be portable across $(()) and expr. | |
15779 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15780 | eval 'as_fn_arith () | |
15781 | { | |
15782 | as_val=$(( $* )) | |
15783 | }' | |
15784 | else | |
15785 | as_fn_arith () | |
15786 | { | |
15787 | as_val=`expr "$@" || test $? -eq 1` | |
15788 | } | |
15789 | fi # as_fn_arith | |
15790 | ||
db137867 | 15791 | |
7083c021 AC |
15792 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15793 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
15794 | as_expr=expr | |
15795 | else | |
15796 | as_expr=false | |
db137867 AC |
15797 | fi |
15798 | ||
7083c021 AC |
15799 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
15800 | as_basename=basename | |
15801 | else | |
15802 | as_basename=false | |
15803 | fi | |
db137867 | 15804 | |
7083c021 AC |
15805 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15806 | as_dirname=dirname | |
db137867 | 15807 | else |
7083c021 | 15808 | as_dirname=false |
db137867 AC |
15809 | fi |
15810 | ||
7083c021 AC |
15811 | as_me=`$as_basename -- "$0" || |
15812 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15813 | X"$0" : 'X\(//\)$' \| \ | |
15814 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
15815 | $as_echo X/"$0" | | |
15816 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15817 | s//\1/ | |
15818 | q | |
15819 | } | |
15820 | /^X\/\(\/\/\)$/{ | |
15821 | s//\1/ | |
15822 | q | |
15823 | } | |
15824 | /^X\/\(\/\).*/{ | |
15825 | s//\1/ | |
15826 | q | |
15827 | } | |
15828 | s/.*/./; q'` | |
db137867 | 15829 | |
7083c021 AC |
15830 | # Avoid depending upon Character Ranges. |
15831 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15832 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15833 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15834 | as_cr_digits='0123456789' | |
15835 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
db137867 | 15836 | |
7083c021 AC |
15837 | ECHO_C= ECHO_N= ECHO_T= |
15838 | case `echo -n x` in #((((( | |
15839 | -n*) | |
15840 | case `echo 'xy\c'` in | |
15841 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15842 | xy) ECHO_C='\c';; | |
15843 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15844 | ECHO_T=' ';; | |
15845 | esac;; | |
15846 | *) | |
15847 | ECHO_N='-n';; | |
15848 | esac | |
15849 | ||
15850 | rm -f conf$$ conf$$.exe conf$$.file | |
15851 | if test -d conf$$.dir; then | |
15852 | rm -f conf$$.dir/conf$$.file | |
db137867 | 15853 | else |
7083c021 AC |
15854 | rm -f conf$$.dir |
15855 | mkdir conf$$.dir 2>/dev/null | |
db137867 | 15856 | fi |
7083c021 AC |
15857 | if (echo >conf$$.file) 2>/dev/null; then |
15858 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15859 | as_ln_s='ln -s' | |
15860 | # ... but there are two gotchas: | |
15861 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15862 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
bf4e01a4 | 15863 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 15864 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bf4e01a4 | 15865 | as_ln_s='cp -pR' |
7083c021 AC |
15866 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15867 | as_ln_s=ln | |
15868 | else | |
bf4e01a4 | 15869 | as_ln_s='cp -pR' |
7083c021 | 15870 | fi |
db137867 | 15871 | else |
bf4e01a4 | 15872 | as_ln_s='cp -pR' |
7083c021 AC |
15873 | fi |
15874 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
15875 | rmdir conf$$.dir 2>/dev/null | |
15876 | ||
15877 | ||
15878 | # as_fn_mkdir_p | |
15879 | # ------------- | |
15880 | # Create "$as_dir" as a directory, including parents if necessary. | |
15881 | as_fn_mkdir_p () | |
db137867 | 15882 | { |
db137867 | 15883 | |
7083c021 AC |
15884 | case $as_dir in #( |
15885 | -*) as_dir=./$as_dir;; | |
15886 | esac | |
15887 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15888 | as_dirs= | |
15889 | while :; do | |
15890 | case $as_dir in #( | |
15891 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15892 | *) as_qdir=$as_dir;; | |
15893 | esac | |
15894 | as_dirs="'$as_qdir' $as_dirs" | |
15895 | as_dir=`$as_dirname -- "$as_dir" || | |
15896 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15897 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15898 | X"$as_dir" : 'X\(//\)$' \| \ | |
15899 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15900 | $as_echo X"$as_dir" | | |
15901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15902 | s//\1/ | |
15903 | q | |
15904 | } | |
15905 | /^X\(\/\/\)[^/].*/{ | |
15906 | s//\1/ | |
15907 | q | |
15908 | } | |
15909 | /^X\(\/\/\)$/{ | |
15910 | s//\1/ | |
15911 | q | |
15912 | } | |
15913 | /^X\(\/\).*/{ | |
15914 | s//\1/ | |
15915 | q | |
15916 | } | |
15917 | s/.*/./; q'` | |
15918 | test -d "$as_dir" && break | |
15919 | done | |
15920 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
08c2568c | 15921 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
15922 | |
15923 | ||
15924 | } # as_fn_mkdir_p | |
15925 | if mkdir -p . 2>/dev/null; then | |
15926 | as_mkdir_p='mkdir -p "$as_dir"' | |
15927 | else | |
15928 | test -d ./-p && rmdir ./-p | |
15929 | as_mkdir_p=false | |
db137867 | 15930 | fi |
7083c021 | 15931 | |
bf4e01a4 AC |
15932 | |
15933 | # as_fn_executable_p FILE | |
15934 | # ----------------------- | |
15935 | # Test if FILE is an executable regular file. | |
15936 | as_fn_executable_p () | |
15937 | { | |
15938 | test -f "$1" && test -x "$1" | |
15939 | } # as_fn_executable_p | |
15940 | as_test_x='test -x' | |
15941 | as_executable_p=as_fn_executable_p | |
db137867 | 15942 | |
7083c021 AC |
15943 | # Sed expression to map a string onto a valid CPP name. |
15944 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 15945 | |
7083c021 AC |
15946 | # Sed expression to map a string onto a valid variable name. |
15947 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 15948 | |
db137867 | 15949 | |
7083c021 AC |
15950 | exec 6>&1 |
15951 | ## ----------------------------------- ## | |
15952 | ## Main body of $CONFIG_STATUS script. ## | |
15953 | ## ----------------------------------- ## | |
15954 | _ASEOF | |
15955 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
db137867 | 15956 | |
7083c021 AC |
15957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15958 | # Save the log message, to keep $0 and so on meaningful, and to | |
15959 | # report actual input values of CONFIG_FILES etc. instead of their | |
15960 | # values after options handling. | |
15961 | ac_log=" | |
15962 | This file was extended by libratbox $as_me devel, which was | |
bf4e01a4 | 15963 | generated by GNU Autoconf 2.69. Invocation command line was |
db137867 | 15964 | |
7083c021 AC |
15965 | CONFIG_FILES = $CONFIG_FILES |
15966 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15967 | CONFIG_LINKS = $CONFIG_LINKS | |
15968 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15969 | $ $0 $@ | |
15970 | ||
15971 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
15972 | " | |
db137867 | 15973 | |
db137867 | 15974 | _ACEOF |
7083c021 AC |
15975 | |
15976 | case $ac_config_files in *" | |
15977 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
db137867 | 15978 | esac |
db137867 | 15979 | |
7083c021 AC |
15980 | case $ac_config_headers in *" |
15981 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15982 | esac | |
db137867 | 15983 | |
db137867 | 15984 | |
7083c021 AC |
15985 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15986 | # Files that config.status was made for. | |
15987 | config_files="$ac_config_files" | |
15988 | config_headers="$ac_config_headers" | |
15989 | config_commands="$ac_config_commands" | |
db137867 | 15990 | |
db137867 | 15991 | _ACEOF |
db137867 | 15992 | |
7083c021 AC |
15993 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15994 | ac_cs_usage="\ | |
15995 | \`$as_me' instantiates files and other configuration actions | |
15996 | from templates according to the current configuration. Unless the files | |
15997 | and actions are specified as TAGs, all are instantiated by default. | |
15998 | ||
15999 | Usage: $0 [OPTION]... [TAG]... | |
16000 | ||
16001 | -h, --help print this help, then exit | |
16002 | -V, --version print version number and configuration settings, then exit | |
96f4052b | 16003 | --config print configuration, then exit |
7083c021 AC |
16004 | -q, --quiet, --silent |
16005 | do not print progress messages | |
16006 | -d, --debug don't remove temporary files | |
16007 | --recheck update $as_me by reconfiguring in the same conditions | |
16008 | --file=FILE[:TEMPLATE] | |
16009 | instantiate the configuration file FILE | |
16010 | --header=FILE[:TEMPLATE] | |
16011 | instantiate the configuration header FILE | |
16012 | ||
16013 | Configuration files: | |
16014 | $config_files | |
16015 | ||
16016 | Configuration headers: | |
16017 | $config_headers | |
16018 | ||
16019 | Configuration commands: | |
16020 | $config_commands | |
16021 | ||
16022 | Report bugs to the package provider." | |
16023 | ||
db137867 | 16024 | _ACEOF |
7083c021 | 16025 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
96f4052b | 16026 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
7083c021 AC |
16027 | ac_cs_version="\\ |
16028 | libratbox config.status devel | |
bf4e01a4 | 16029 | configured by $0, generated by GNU Autoconf 2.69, |
96f4052b | 16030 | with options \\"\$ac_cs_config\\" |
db137867 | 16031 | |
bf4e01a4 | 16032 | Copyright (C) 2012 Free Software Foundation, Inc. |
7083c021 AC |
16033 | This config.status script is free software; the Free Software Foundation |
16034 | gives unlimited permission to copy, distribute and modify it." | |
db137867 | 16035 | |
7083c021 AC |
16036 | ac_pwd='$ac_pwd' |
16037 | srcdir='$srcdir' | |
16038 | INSTALL='$INSTALL' | |
16039 | MKDIR_P='$MKDIR_P' | |
16040 | AWK='$AWK' | |
16041 | test -n "\$AWK" || AWK=awk | |
16042 | _ACEOF | |
db137867 | 16043 | |
7083c021 AC |
16044 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16045 | # The default lists apply if the user does not specify any file. | |
16046 | ac_need_defaults=: | |
16047 | while test $# != 0 | |
16048 | do | |
16049 | case $1 in | |
08c2568c | 16050 | --*=?*) |
7083c021 AC |
16051 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16052 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16053 | ac_shift=: | |
16054 | ;; | |
08c2568c EM |
16055 | --*=) |
16056 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16057 | ac_optarg= | |
16058 | ac_shift=: | |
16059 | ;; | |
7083c021 AC |
16060 | *) |
16061 | ac_option=$1 | |
16062 | ac_optarg=$2 | |
16063 | ac_shift=shift | |
16064 | ;; | |
16065 | esac | |
16066 | ||
16067 | case $ac_option in | |
16068 | # Handling of the options. | |
16069 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16070 | ac_cs_recheck=: ;; | |
16071 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16072 | $as_echo "$ac_cs_version"; exit ;; | |
96f4052b AC |
16073 | --config | --confi | --conf | --con | --co | --c ) |
16074 | $as_echo "$ac_cs_config"; exit ;; | |
7083c021 AC |
16075 | --debug | --debu | --deb | --de | --d | -d ) |
16076 | debug=: ;; | |
16077 | --file | --fil | --fi | --f ) | |
16078 | $ac_shift | |
16079 | case $ac_optarg in | |
16080 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
08c2568c | 16081 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
16082 | esac |
16083 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16084 | ac_need_defaults=false;; | |
16085 | --header | --heade | --head | --hea ) | |
16086 | $ac_shift | |
16087 | case $ac_optarg in | |
16088 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16089 | esac | |
16090 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16091 | ac_need_defaults=false;; | |
16092 | --he | --h) | |
16093 | # Conflict between --help and --header | |
08c2568c | 16094 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 AC |
16095 | Try \`$0 --help' for more information.";; |
16096 | --help | --hel | -h ) | |
16097 | $as_echo "$ac_cs_usage"; exit ;; | |
16098 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16099 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16100 | ac_cs_silent=: ;; | |
16101 | ||
16102 | # This is an error. | |
08c2568c | 16103 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 AC |
16104 | Try \`$0 --help' for more information." ;; |
16105 | ||
16106 | *) as_fn_append ac_config_targets " $1" | |
16107 | ac_need_defaults=false ;; | |
16108 | ||
16109 | esac | |
16110 | shift | |
16111 | done | |
db137867 | 16112 | |
7083c021 | 16113 | ac_configure_extra_args= |
c2ac22cc | 16114 | |
7083c021 AC |
16115 | if $ac_cs_silent; then |
16116 | exec 6>/dev/null | |
16117 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16118 | fi | |
c2ac22cc | 16119 | |
7083c021 AC |
16120 | _ACEOF |
16121 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16122 | if \$ac_cs_recheck; then | |
bf4e01a4 | 16123 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
16124 | shift |
16125 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16126 | CONFIG_SHELL='$SHELL' | |
16127 | export CONFIG_SHELL | |
16128 | exec "\$@" | |
c2ac22cc VY |
16129 | fi |
16130 | ||
7083c021 AC |
16131 | _ACEOF |
16132 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16133 | exec 5>>config.log | |
16134 | { | |
16135 | echo | |
16136 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16137 | ## Running $as_me. ## | |
16138 | _ASBOX | |
16139 | $as_echo "$ac_log" | |
16140 | } >&5 | |
c2ac22cc | 16141 | |
7083c021 AC |
16142 | _ACEOF |
16143 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16144 | # | |
16145 | # INIT-COMMANDS | |
16146 | # | |
16147 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
c2ac22cc VY |
16148 | |
16149 | ||
7083c021 AC |
16150 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
16151 | # if CDPATH is set. | |
16152 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16153 | ||
16154 | sed_quote_subst='$sed_quote_subst' | |
16155 | double_quote_subst='$double_quote_subst' | |
16156 | delay_variable_subst='$delay_variable_subst' | |
b6d0720c AC |
16157 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
16158 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16159 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16160 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16161 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16162 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
6f57a957 | 16163 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
16164 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
16165 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
a949ab1a | 16166 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
16167 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
16168 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16169 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16170 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16171 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16172 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16173 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16174 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16175 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16176 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16177 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16178 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16179 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16180 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16181 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16182 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16183 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16184 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16185 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16186 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16187 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16188 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16189 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16190 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16191 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16192 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16193 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16194 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
16195 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
16196 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
16197 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
16198 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16199 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16200 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
16201 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16202 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16203 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16204 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16205 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16206 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16207 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16208 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16209 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16210 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16211 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16212 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
6f57a957 | 16213 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
16214 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
16215 | 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"`' | |
6f57a957 | 16216 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
16217 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
16218 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
6f57a957 | 16219 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
16220 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
16221 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16222 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16223 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16224 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16225 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16226 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16227 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16228 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
16229 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16230 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16231 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16232 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16233 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16234 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16235 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16236 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16237 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16238 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16239 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16240 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16241 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16242 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16243 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16244 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16245 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16246 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16247 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16248 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16249 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16250 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16251 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
b6d0720c AC |
16252 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
16253 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16254 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16255 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16256 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16257 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16258 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16259 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16260 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16261 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16262 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16263 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16264 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16265 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
16266 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16267 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16268 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16269 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16270 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16271 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16272 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16273 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16274 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16275 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16276 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16277 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16278 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16279 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16280 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16281 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16282 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16283 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
6f57a957 AC |
16284 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
16285 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b6d0720c AC |
16286 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
16287 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16288 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16289 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16290 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16291 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
7083c021 AC |
16292 | |
16293 | LTCC='$LTCC' | |
16294 | LTCFLAGS='$LTCFLAGS' | |
16295 | compiler='$compiler_DEFAULT' | |
16296 | ||
b6d0720c AC |
16297 | # A function that is used when there is no print builtin or printf. |
16298 | func_fallback_echo () | |
16299 | { | |
16300 | eval 'cat <<_LTECHO_EOF | |
16301 | \$1 | |
16302 | _LTECHO_EOF' | |
16303 | } | |
16304 | ||
7083c021 | 16305 | # Quote evaled strings. |
b6d0720c AC |
16306 | for var in SHELL \ |
16307 | ECHO \ | |
a949ab1a | 16308 | PATH_SEPARATOR \ |
b6d0720c | 16309 | SED \ |
7083c021 AC |
16310 | GREP \ |
16311 | EGREP \ | |
16312 | FGREP \ | |
16313 | LD \ | |
16314 | NM \ | |
16315 | LN_S \ | |
16316 | lt_SP2NL \ | |
16317 | lt_NL2SP \ | |
16318 | reload_flag \ | |
16319 | OBJDUMP \ | |
16320 | deplibs_check_method \ | |
16321 | file_magic_cmd \ | |
b6d0720c AC |
16322 | file_magic_glob \ |
16323 | want_nocaseglob \ | |
16324 | DLLTOOL \ | |
16325 | sharedlib_from_linklib_cmd \ | |
7083c021 AC |
16326 | AR \ |
16327 | AR_FLAGS \ | |
b6d0720c | 16328 | archiver_list_spec \ |
7083c021 AC |
16329 | STRIP \ |
16330 | RANLIB \ | |
16331 | CC \ | |
16332 | CFLAGS \ | |
16333 | compiler \ | |
16334 | lt_cv_sys_global_symbol_pipe \ | |
16335 | lt_cv_sys_global_symbol_to_cdecl \ | |
6f57a957 | 16336 | lt_cv_sys_global_symbol_to_import \ |
7083c021 AC |
16337 | lt_cv_sys_global_symbol_to_c_name_address \ |
16338 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
6f57a957 | 16339 | lt_cv_nm_interface \ |
b6d0720c | 16340 | nm_file_list_spec \ |
6f57a957 | 16341 | lt_cv_truncate_bin \ |
7083c021 | 16342 | lt_prog_compiler_no_builtin_flag \ |
7083c021 | 16343 | lt_prog_compiler_pic \ |
b6d0720c | 16344 | lt_prog_compiler_wl \ |
7083c021 AC |
16345 | lt_prog_compiler_static \ |
16346 | lt_cv_prog_compiler_c_o \ | |
16347 | need_locks \ | |
b6d0720c | 16348 | MANIFEST_TOOL \ |
7083c021 AC |
16349 | DSYMUTIL \ |
16350 | NMEDIT \ | |
16351 | LIPO \ | |
16352 | OTOOL \ | |
16353 | OTOOL64 \ | |
16354 | shrext_cmds \ | |
16355 | export_dynamic_flag_spec \ | |
16356 | whole_archive_flag_spec \ | |
16357 | compiler_needs_object \ | |
16358 | with_gnu_ld \ | |
16359 | allow_undefined_flag \ | |
16360 | no_undefined_flag \ | |
16361 | hardcode_libdir_flag_spec \ | |
7083c021 | 16362 | hardcode_libdir_separator \ |
7083c021 AC |
16363 | exclude_expsyms \ |
16364 | include_expsyms \ | |
16365 | file_list_spec \ | |
16366 | variables_saved_for_relink \ | |
16367 | libname_spec \ | |
16368 | library_names_spec \ | |
16369 | soname_spec \ | |
b6d0720c | 16370 | install_override_mode \ |
7083c021 AC |
16371 | finish_eval \ |
16372 | old_striplib \ | |
16373 | striplib; do | |
b6d0720c | 16374 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
7083c021 | 16375 | *[\\\\\\\`\\"\\\$]*) |
6f57a957 | 16376 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
7083c021 AC |
16377 | ;; |
16378 | *) | |
16379 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16380 | ;; | |
16381 | esac | |
c2ac22cc | 16382 | done |
7083c021 AC |
16383 | |
16384 | # Double-quote double-evaled strings. | |
16385 | for var in reload_cmds \ | |
16386 | old_postinstall_cmds \ | |
16387 | old_postuninstall_cmds \ | |
16388 | old_archive_cmds \ | |
16389 | extract_expsyms_cmds \ | |
16390 | old_archive_from_new_cmds \ | |
16391 | old_archive_from_expsyms_cmds \ | |
16392 | archive_cmds \ | |
16393 | archive_expsym_cmds \ | |
16394 | module_cmds \ | |
16395 | module_expsym_cmds \ | |
16396 | export_symbols_cmds \ | |
16397 | prelink_cmds \ | |
b6d0720c | 16398 | postlink_cmds \ |
7083c021 AC |
16399 | postinstall_cmds \ |
16400 | postuninstall_cmds \ | |
16401 | finish_cmds \ | |
16402 | sys_lib_search_path_spec \ | |
6f57a957 AC |
16403 | configure_time_dlsearch_path \ |
16404 | configure_time_lt_sys_library_path; do | |
b6d0720c | 16405 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
7083c021 | 16406 | *[\\\\\\\`\\"\\\$]*) |
6f57a957 | 16407 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
7083c021 AC |
16408 | ;; |
16409 | *) | |
16410 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16411 | ;; | |
16412 | esac | |
c2ac22cc | 16413 | done |
c2ac22cc | 16414 | |
7083c021 | 16415 | ac_aux_dir='$ac_aux_dir' |
c2ac22cc | 16416 | |
6f57a957 | 16417 | # See if we are running on zsh, and set the options that allow our |
7083c021 | 16418 | # commands through without removal of \ escapes INIT. |
6f57a957 | 16419 | if test -n "\${ZSH_VERSION+set}"; then |
7083c021 | 16420 | setopt NO_GLOB_SUBST |
c2ac22cc | 16421 | fi |
c2ac22cc | 16422 | |
c2ac22cc | 16423 | |
7083c021 AC |
16424 | PACKAGE='$PACKAGE' |
16425 | VERSION='$VERSION' | |
7083c021 AC |
16426 | RM='$RM' |
16427 | ofile='$ofile' | |
c2ac22cc | 16428 | |
c2ac22cc | 16429 | |
c2ac22cc | 16430 | |
c2ac22cc | 16431 | |
7083c021 AC |
16432 | if test x$ac_cv_header_stdc = xyes; then |
16433 | rb_header_stdc=yes | |
16434 | fi | |
16435 | if test x$ac_cv_header_stdlib_h = xyes; then | |
16436 | rb_header_stdlib_h=yes | |
16437 | fi | |
16438 | if test x$ac_cv_header_string_h = xyes; then | |
16439 | rb_header_string_h=yes | |
16440 | fi | |
16441 | if test x$ac_cv_header_memory_h = xyes; then | |
16442 | rb_header_memory_h=yes | |
16443 | fi | |
16444 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then | |
16445 | rb_alloca_h="$ac_cv_working_alloca_h" | |
16446 | else | |
16447 | rb_alloc_h="$ac_cv_header_alloca_h" | |
16448 | fi | |
16449 | if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then | |
16450 | rb_sockaddr_sa_len=yes | |
16451 | fi | |
16452 | if test x$ac_cv_header_sys_socket_h = xyes; then | |
16453 | rb_sys_socket_h=yes | |
16454 | fi | |
16455 | if test x$ac_cv_header_sys_types_h = xyes; then | |
16456 | rb_sys_types_h=yes | |
16457 | fi | |
16458 | if test x$ac_cv_header_sys_stat_h = xyes; then | |
16459 | rb_sys_stat_h=yes | |
16460 | fi | |
16461 | if test x$ac_cv_header_sys_time_h = xyes; then | |
16462 | rb_sys_time_h=yes | |
16463 | fi | |
16464 | if test x$ac_cv_header_time = xyes; then | |
16465 | rb_time_h=yes | |
16466 | fi | |
c2ac22cc | 16467 | |
7083c021 AC |
16468 | if test x$ac_cv_header_stdint_h = xyes; then |
16469 | rb_stdint_h=yes | |
16470 | fi | |
16471 | if test x$ac_cv_header_inttypes_h = xyes; then | |
16472 | rb_inttypes_h=yes | |
16473 | fi | |
16474 | if test x$ac_cv_header_netinet_in_h = xyes; then | |
16475 | rb_netinet_in_h=yes | |
16476 | fi | |
c2ac22cc | 16477 | |
7083c021 AC |
16478 | if test x$ac_cv_header_crypt_h = xyes; then |
16479 | rb_crypt_h=yes | |
16480 | fi | |
16481 | if test x$ac_cv_header_errno_h = xyes; then | |
16482 | rb_errno_h=yes | |
16483 | fi | |
16484 | if test x$ac_cv_header_unistd_h = xyes; then | |
16485 | rb_unistd_h=yes | |
16486 | fi | |
16487 | if test x$ac_cv_header_windows_h = xyes; then | |
16488 | rb_windows_h=yes | |
16489 | fi | |
16490 | if test x$ac_cv_header_winsock2_h = xyes; then | |
16491 | rb_winsock2_h=yes | |
16492 | fi | |
c2ac22cc | 16493 | |
7083c021 | 16494 | rb_socklen_t=$rb_socklen_t |
c2ac22cc | 16495 | |
7083c021 AC |
16496 | if test "x$rb_have_sockaddr_storage" = "xyes"; then |
16497 | rb_sockaddr_storage="yes" | |
16498 | else | |
16499 | rb_sockaddr_storage="no" | |
16500 | fi | |
c2ac22cc | 16501 | |
7083c021 | 16502 | rb_have_ipv6="$have_v6" |
c2ac22cc | 16503 | |
7083c021 AC |
16504 | rb_mv="$MV" |
16505 | rb_rm="$RM" | |
c2ac22cc | 16506 | |
c2ac22cc | 16507 | |
c2ac22cc | 16508 | |
db137867 | 16509 | |
db137867 | 16510 | |
c2ac22cc | 16511 | |
c2ac22cc VY |
16512 | _ACEOF |
16513 | ||
7083c021 | 16514 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 | 16515 | |
7083c021 AC |
16516 | # Handling of arguments. |
16517 | for ac_config_target in $ac_config_targets | |
16518 | do | |
16519 | case $ac_config_target in | |
16520 | "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;; | |
16521 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
16522 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16523 | "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;; | |
16524 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
16525 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16526 | "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;; | |
c2ac22cc | 16527 | |
08c2568c | 16528 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
7083c021 AC |
16529 | esac |
16530 | done | |
c2ac22cc | 16531 | |
db137867 | 16532 | |
7083c021 AC |
16533 | # If the user did not use the arguments to specify the items to instantiate, |
16534 | # then the envvar interface is used. Set only those that are not. | |
16535 | # We use the long form for the default assignment because of an extremely | |
16536 | # bizarre bug on SunOS 4.1.3. | |
16537 | if $ac_need_defaults; then | |
16538 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16539 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16540 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16541 | fi | |
db137867 | 16542 | |
7083c021 AC |
16543 | # Have a temporary directory for convenience. Make it in the build tree |
16544 | # simply because there is no reason against having it here, and in addition, | |
16545 | # creating and moving files from /tmp can sometimes cause problems. | |
16546 | # Hook for its removal unless debugging. | |
16547 | # Note that there is a small window in which the directory will not be cleaned: | |
16548 | # after its creation but before its name has been assigned to `$tmp'. | |
16549 | $debug || | |
16550 | { | |
08c2568c | 16551 | tmp= ac_tmp= |
7083c021 | 16552 | trap 'exit_status=$? |
08c2568c EM |
16553 | : "${ac_tmp:=$tmp}" |
16554 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7083c021 AC |
16555 | ' 0 |
16556 | trap 'as_fn_exit 1' 1 2 13 15 | |
16557 | } | |
16558 | # Create a (secure) tmp directory for tmp files. | |
db137867 | 16559 | |
7083c021 AC |
16560 | { |
16561 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
08c2568c | 16562 | test -d "$tmp" |
7083c021 AC |
16563 | } || |
16564 | { | |
16565 | tmp=./conf$$-$RANDOM | |
16566 | (umask 077 && mkdir "$tmp") | |
08c2568c EM |
16567 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16568 | ac_tmp=$tmp | |
db137867 | 16569 | |
7083c021 AC |
16570 | # Set up the scripts for CONFIG_FILES section. |
16571 | # No need to generate them if there are no CONFIG_FILES. | |
16572 | # This happens for instance with `./config.status config.h'. | |
16573 | if test -n "$CONFIG_FILES"; then | |
db137867 AC |
16574 | |
16575 | ||
7083c021 AC |
16576 | ac_cr=`echo X | tr X '\015'` |
16577 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16578 | # But we know of no other shell where ac_cr would be empty at this | |
16579 | # point, so we can use a bashism as a fallback. | |
16580 | if test "x$ac_cr" = x; then | |
16581 | eval ac_cr=\$\'\\r\' | |
16582 | fi | |
16583 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16584 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
08c2568c | 16585 | ac_cs_awk_cr='\\r' |
db137867 | 16586 | else |
7083c021 | 16587 | ac_cs_awk_cr=$ac_cr |
db137867 AC |
16588 | fi |
16589 | ||
08c2568c | 16590 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
db137867 AC |
16591 | _ACEOF |
16592 | ||
db137867 | 16593 | |
7083c021 AC |
16594 | { |
16595 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16596 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16597 | echo "_ACEOF" | |
16598 | } >conf$$subs.sh || | |
08c2568c EM |
16599 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16600 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7083c021 AC |
16601 | ac_delim='%!_!# ' |
16602 | for ac_last_try in false false false false false :; do | |
16603 | . ./conf$$subs.sh || | |
08c2568c | 16604 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
db137867 | 16605 | |
7083c021 AC |
16606 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
16607 | if test $ac_delim_n = $ac_delim_num; then | |
16608 | break | |
16609 | elif $ac_last_try; then | |
08c2568c | 16610 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
16611 | else |
16612 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16613 | fi | |
16614 | done | |
16615 | rm -f conf$$subs.sh | |
db137867 | 16616 | |
7083c021 | 16617 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
08c2568c | 16618 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
db137867 | 16619 | _ACEOF |
7083c021 AC |
16620 | sed -n ' |
16621 | h | |
16622 | s/^/S["/; s/!.*/"]=/ | |
16623 | p | |
16624 | g | |
16625 | s/^[^!]*!// | |
16626 | :repl | |
16627 | t repl | |
16628 | s/'"$ac_delim"'$// | |
16629 | t delim | |
16630 | :nl | |
16631 | h | |
96f4052b | 16632 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
16633 | t more1 |
16634 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16635 | p | |
16636 | n | |
16637 | b repl | |
16638 | :more1 | |
16639 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16640 | p | |
16641 | g | |
16642 | s/.\{148\}// | |
16643 | t nl | |
16644 | :delim | |
16645 | h | |
96f4052b | 16646 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
16647 | t more2 |
16648 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16649 | p | |
16650 | b | |
16651 | :more2 | |
16652 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16653 | p | |
16654 | g | |
16655 | s/.\{148\}// | |
16656 | t delim | |
16657 | ' <conf$$subs.awk | sed ' | |
16658 | /^[^""]/{ | |
16659 | N | |
16660 | s/\n// | |
16661 | } | |
16662 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16663 | rm -f conf$$subs.awk | |
16664 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16665 | _ACAWK | |
08c2568c | 16666 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
16667 | for (key in S) S_is_set[key] = 1 |
16668 | FS = "\a" | |
db137867 | 16669 | |
7083c021 AC |
16670 | } |
16671 | { | |
16672 | line = $ 0 | |
16673 | nfields = split(line, field, "@") | |
16674 | substed = 0 | |
16675 | len = length(field[1]) | |
16676 | for (i = 2; i < nfields; i++) { | |
16677 | key = field[i] | |
16678 | keylen = length(key) | |
16679 | if (S_is_set[key]) { | |
16680 | value = S[key] | |
16681 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16682 | len += length(value) + length(field[++i]) | |
16683 | substed = 1 | |
16684 | } else | |
16685 | len += 1 + keylen | |
16686 | } | |
db137867 | 16687 | |
7083c021 AC |
16688 | print line |
16689 | } | |
16690 | ||
16691 | _ACAWK | |
16692 | _ACEOF | |
16693 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16694 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16695 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
db137867 | 16696 | else |
7083c021 | 16697 | cat |
08c2568c EM |
16698 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16699 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
7083c021 | 16700 | _ACEOF |
db137867 | 16701 | |
08c2568c EM |
16702 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16703 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7083c021 AC |
16704 | # trailing colons and then remove the whole line if VPATH becomes empty |
16705 | # (actually we leave an empty line to preserve line numbers). | |
16706 | if test "x$srcdir" = x.; then | |
08c2568c EM |
16707 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16708 | h | |
16709 | s/// | |
16710 | s/^/:/ | |
16711 | s/[ ]*$/:/ | |
16712 | s/:\$(srcdir):/:/g | |
16713 | s/:\${srcdir}:/:/g | |
16714 | s/:@srcdir@:/:/g | |
16715 | s/^:*// | |
7083c021 | 16716 | s/:*$// |
08c2568c EM |
16717 | x |
16718 | s/\(=[ ]*\).*/\1/ | |
16719 | G | |
16720 | s/\n// | |
7083c021 AC |
16721 | s/^[^=]*=[ ]*$// |
16722 | }' | |
16723 | fi | |
db137867 | 16724 | |
7083c021 AC |
16725 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16726 | fi # test -n "$CONFIG_FILES" | |
db137867 | 16727 | |
7083c021 AC |
16728 | # Set up the scripts for CONFIG_HEADERS section. |
16729 | # No need to generate them if there are no CONFIG_HEADERS. | |
16730 | # This happens for instance with `./config.status Makefile'. | |
16731 | if test -n "$CONFIG_HEADERS"; then | |
08c2568c | 16732 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 | 16733 | BEGIN { |
db137867 AC |
16734 | _ACEOF |
16735 | ||
7083c021 AC |
16736 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
16737 | # here-document in config.status, that substitutes the proper values into | |
16738 | # config.h.in to produce config.h. | |
db137867 | 16739 | |
7083c021 AC |
16740 | # Create a delimiter string that does not exist in confdefs.h, to ease |
16741 | # handling of long lines. | |
16742 | ac_delim='%!_!# ' | |
16743 | for ac_last_try in false false :; do | |
08c2568c EM |
16744 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16745 | if test -z "$ac_tt"; then | |
7083c021 AC |
16746 | break |
16747 | elif $ac_last_try; then | |
08c2568c | 16748 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
16749 | else |
16750 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16751 | fi | |
16752 | done | |
db137867 | 16753 | |
7083c021 AC |
16754 | # For the awk script, D is an array of macro values keyed by name, |
16755 | # likewise P contains macro parameters if any. Preserve backslash | |
16756 | # newline sequences. | |
db137867 | 16757 | |
7083c021 AC |
16758 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
16759 | sed -n ' | |
16760 | s/.\{148\}/&'"$ac_delim"'/g | |
16761 | t rset | |
16762 | :rset | |
16763 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16764 | t def | |
16765 | d | |
16766 | :def | |
16767 | s/\\$// | |
16768 | t bsnl | |
16769 | s/["\\]/\\&/g | |
16770 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16771 | D["\1"]=" \3"/p | |
16772 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16773 | d | |
16774 | :bsnl | |
16775 | s/["\\]/\\&/g | |
16776 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16777 | D["\1"]=" \3\\\\\\n"\\/p | |
16778 | t cont | |
16779 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16780 | t cont | |
16781 | d | |
16782 | :cont | |
16783 | n | |
16784 | s/.\{148\}/&'"$ac_delim"'/g | |
16785 | t clear | |
16786 | :clear | |
16787 | s/\\$// | |
16788 | t bsnlc | |
16789 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16790 | d | |
16791 | :bsnlc | |
16792 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16793 | b cont | |
16794 | ' <confdefs.h | sed ' | |
16795 | s/'"$ac_delim"'/"\\\ | |
16796 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
db137867 | 16797 | |
7083c021 AC |
16798 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16799 | for (key in D) D_is_set[key] = 1 | |
16800 | FS = "\a" | |
16801 | } | |
16802 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16803 | line = \$ 0 | |
16804 | split(line, arg, " ") | |
16805 | if (arg[1] == "#") { | |
16806 | defundef = arg[2] | |
16807 | mac1 = arg[3] | |
16808 | } else { | |
16809 | defundef = substr(arg[1], 2) | |
16810 | mac1 = arg[2] | |
16811 | } | |
16812 | split(mac1, mac2, "(") #) | |
16813 | macro = mac2[1] | |
16814 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16815 | if (D_is_set[macro]) { | |
16816 | # Preserve the white space surrounding the "#". | |
16817 | print prefix "define", macro P[macro] D[macro] | |
16818 | next | |
16819 | } else { | |
16820 | # Replace #undef with comments. This is necessary, for example, | |
16821 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16822 | # on some systems where configure will not decide to define it. | |
16823 | if (defundef == "undef") { | |
16824 | print "/*", prefix defundef, macro, "*/" | |
16825 | next | |
16826 | } | |
16827 | } | |
16828 | } | |
16829 | { print } | |
16830 | _ACAWK | |
db137867 | 16831 | _ACEOF |
7083c021 | 16832 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
08c2568c | 16833 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 | 16834 | fi # test -n "$CONFIG_HEADERS" |
db137867 AC |
16835 | |
16836 | ||
7083c021 AC |
16837 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
16838 | shift | |
16839 | for ac_tag | |
16840 | do | |
16841 | case $ac_tag in | |
16842 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16843 | esac | |
16844 | case $ac_mode$ac_tag in | |
16845 | :[FHL]*:*);; | |
08c2568c | 16846 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7083c021 AC |
16847 | :[FH]-) ac_tag=-:-;; |
16848 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16849 | esac | |
16850 | ac_save_IFS=$IFS | |
16851 | IFS=: | |
16852 | set x $ac_tag | |
16853 | IFS=$ac_save_IFS | |
16854 | shift | |
16855 | ac_file=$1 | |
16856 | shift | |
db137867 | 16857 | |
7083c021 AC |
16858 | case $ac_mode in |
16859 | :L) ac_source=$1;; | |
16860 | :[FH]) | |
16861 | ac_file_inputs= | |
16862 | for ac_f | |
16863 | do | |
16864 | case $ac_f in | |
08c2568c | 16865 | -) ac_f="$ac_tmp/stdin";; |
7083c021 AC |
16866 | *) # Look for the file first in the build tree, then in the source tree |
16867 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16868 | # because $ac_f cannot contain `:'. | |
16869 | test -f "$ac_f" || | |
16870 | case $ac_f in | |
16871 | [\\/$]*) false;; | |
16872 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16873 | esac || | |
08c2568c | 16874 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7083c021 AC |
16875 | esac |
16876 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16877 | as_fn_append ac_file_inputs " '$ac_f'" | |
16878 | done | |
db137867 | 16879 | |
7083c021 AC |
16880 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16881 | # use $as_me), people would be surprised to read: | |
16882 | # /* config.h. Generated by config.status. */ | |
16883 | configure_input='Generated from '` | |
16884 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16885 | `' by configure.' | |
16886 | if test x"$ac_file" != x-; then | |
16887 | configure_input="$ac_file. $configure_input" | |
16888 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16889 | $as_echo "$as_me: creating $ac_file" >&6;} | |
16890 | fi | |
16891 | # Neutralize special characters interpreted by sed in replacement strings. | |
16892 | case $configure_input in #( | |
16893 | *\&* | *\|* | *\\* ) | |
16894 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16895 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16896 | *) ac_sed_conf_input=$configure_input;; | |
16897 | esac | |
db137867 | 16898 | |
7083c021 | 16899 | case $ac_tag in |
08c2568c EM |
16900 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16901 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
7083c021 AC |
16902 | esac |
16903 | ;; | |
16904 | esac | |
db137867 | 16905 | |
7083c021 AC |
16906 | ac_dir=`$as_dirname -- "$ac_file" || |
16907 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16908 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16909 | X"$ac_file" : 'X\(//\)$' \| \ | |
16910 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
16911 | $as_echo X"$ac_file" | | |
16912 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16913 | s//\1/ | |
16914 | q | |
16915 | } | |
16916 | /^X\(\/\/\)[^/].*/{ | |
16917 | s//\1/ | |
16918 | q | |
16919 | } | |
16920 | /^X\(\/\/\)$/{ | |
16921 | s//\1/ | |
16922 | q | |
16923 | } | |
16924 | /^X\(\/\).*/{ | |
16925 | s//\1/ | |
16926 | q | |
16927 | } | |
16928 | s/.*/./; q'` | |
16929 | as_dir="$ac_dir"; as_fn_mkdir_p | |
16930 | ac_builddir=. | |
db137867 | 16931 | |
7083c021 AC |
16932 | case "$ac_dir" in |
16933 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16934 | *) | |
16935 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16936 | # A ".." for each directory in $ac_dir_suffix. | |
16937 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16938 | case $ac_top_builddir_sub in | |
16939 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16940 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16941 | esac ;; | |
16942 | esac | |
16943 | ac_abs_top_builddir=$ac_pwd | |
16944 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16945 | # for backward compatibility: | |
16946 | ac_top_builddir=$ac_top_build_prefix | |
db137867 | 16947 | |
7083c021 AC |
16948 | case $srcdir in |
16949 | .) # We are building in place. | |
16950 | ac_srcdir=. | |
16951 | ac_top_srcdir=$ac_top_builddir_sub | |
16952 | ac_abs_top_srcdir=$ac_pwd ;; | |
16953 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
16954 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16955 | ac_top_srcdir=$srcdir | |
16956 | ac_abs_top_srcdir=$srcdir ;; | |
16957 | *) # Relative name. | |
16958 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16959 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16960 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
16961 | esac | |
16962 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
db137867 | 16963 | |
c2ac22cc | 16964 | |
7083c021 AC |
16965 | case $ac_mode in |
16966 | :F) | |
16967 | # | |
16968 | # CONFIG_FILE | |
16969 | # | |
db137867 | 16970 | |
7083c021 AC |
16971 | case $INSTALL in |
16972 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16973 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
16974 | esac | |
16975 | ac_MKDIR_P=$MKDIR_P | |
16976 | case $MKDIR_P in | |
16977 | [\\/$]* | ?:[\\/]* ) ;; | |
16978 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16979 | esac | |
db137867 AC |
16980 | _ACEOF |
16981 | ||
7083c021 AC |
16982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16983 | # If the template does not know about datarootdir, expand it. | |
16984 | # FIXME: This hack should be removed a few years after 2.60. | |
16985 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16986 | ac_sed_dataroot=' | |
16987 | /datarootdir/ { | |
16988 | p | |
16989 | q | |
16990 | } | |
16991 | /@datadir@/p | |
16992 | /@docdir@/p | |
16993 | /@infodir@/p | |
16994 | /@localedir@/p | |
16995 | /@mandir@/p' | |
16996 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16997 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16998 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17000 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17001 | _ACEOF | |
17002 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17003 | ac_datarootdir_hack=' | |
17004 | s&@datadir@&$datadir&g | |
17005 | s&@docdir@&$docdir&g | |
17006 | s&@infodir@&$infodir&g | |
17007 | s&@localedir@&$localedir&g | |
17008 | s&@mandir@&$mandir&g | |
17009 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17010 | esac | |
db137867 AC |
17011 | _ACEOF |
17012 | ||
7083c021 AC |
17013 | # Neutralize VPATH when `$srcdir' = `.'. |
17014 | # Shell code in configure.ac might set extrasub. | |
17015 | # FIXME: do we really want to maintain this feature? | |
17016 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17017 | ac_sed_extra="$ac_vpsub | |
17018 | $extrasub | |
17019 | _ACEOF | |
17020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17021 | :t | |
17022 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17023 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17024 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17025 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17026 | s&@srcdir@&$ac_srcdir&;t t | |
17027 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17028 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17029 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17030 | s&@builddir@&$ac_builddir&;t t | |
17031 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17032 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17033 | s&@INSTALL@&$ac_INSTALL&;t t | |
17034 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17035 | $ac_datarootdir_hack | |
17036 | " | |
08c2568c EM |
17037 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
17038 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
db137867 | 17039 | |
7083c021 | 17040 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
08c2568c EM |
17041 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17042 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17043 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 17044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
08c2568c | 17045 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 17046 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
08c2568c | 17047 | which seems to be undefined. Please make sure it is defined" >&2;} |
db137867 | 17048 | |
08c2568c | 17049 | rm -f "$ac_tmp/stdin" |
7083c021 | 17050 | case $ac_file in |
08c2568c EM |
17051 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17052 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 17053 | esac \ |
08c2568c | 17054 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7083c021 AC |
17055 | ;; |
17056 | :H) | |
17057 | # | |
17058 | # CONFIG_HEADER | |
17059 | # | |
17060 | if test x"$ac_file" != x-; then | |
17061 | { | |
17062 | $as_echo "/* $configure_input */" \ | |
08c2568c EM |
17063 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17064 | } >"$ac_tmp/config.h" \ | |
17065 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17066 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
17067 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
17068 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
17069 | else | |
17070 | rm -f "$ac_file" | |
08c2568c EM |
17071 | mv "$ac_tmp/config.h" "$ac_file" \ |
17072 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7083c021 AC |
17073 | fi |
17074 | else | |
17075 | $as_echo "/* $configure_input */" \ | |
08c2568c EM |
17076 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17077 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
7083c021 AC |
17078 | fi |
17079 | # Compute "$ac_file"'s index in $config_headers. | |
17080 | _am_arg="$ac_file" | |
17081 | _am_stamp_count=1 | |
17082 | for _am_header in $config_headers :; do | |
17083 | case $_am_header in | |
17084 | $_am_arg | $_am_arg:* ) | |
17085 | break ;; | |
17086 | * ) | |
17087 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17088 | esac | |
17089 | done | |
17090 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17091 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17092 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17093 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17094 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17095 | $as_echo X"$_am_arg" | | |
17096 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17097 | s//\1/ | |
17098 | q | |
17099 | } | |
17100 | /^X\(\/\/\)[^/].*/{ | |
17101 | s//\1/ | |
17102 | q | |
17103 | } | |
17104 | /^X\(\/\/\)$/{ | |
17105 | s//\1/ | |
17106 | q | |
17107 | } | |
17108 | /^X\(\/\).*/{ | |
17109 | s//\1/ | |
17110 | q | |
17111 | } | |
17112 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17113 | ;; | |
db137867 | 17114 | |
7083c021 AC |
17115 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
17116 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17117 | ;; | |
17118 | esac | |
db137867 | 17119 | |
db137867 | 17120 | |
7083c021 AC |
17121 | case $ac_file$ac_mode in |
17122 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
bf4e01a4 | 17123 | # Older Autoconf quotes --file arguments for eval, but not when files |
7083c021 AC |
17124 | # are listed without --file. Let's play safe and only enable the eval |
17125 | # if we detect the quoting. | |
17126 | case $CONFIG_FILES in | |
17127 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17128 | *) set x $CONFIG_FILES ;; | |
17129 | esac | |
17130 | shift | |
17131 | for mf | |
17132 | do | |
17133 | # Strip MF so we end up with the name of the file. | |
17134 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17135 | # Check whether this is an Automake generated Makefile or not. | |
bf4e01a4 | 17136 | # We used to match only the files named 'Makefile.in', but |
7083c021 AC |
17137 | # some people rename them; so instead we look at the file content. |
17138 | # Grep'ing the first line is not enough: some people post-process | |
17139 | # each Makefile.in and add a new line on top of each file to say so. | |
17140 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17141 | # limit of 2048, but all sed's we know have understand at least 4000. | |
17142 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17143 | dirpart=`$as_dirname -- "$mf" || | |
17144 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17145 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17146 | X"$mf" : 'X\(//\)$' \| \ | |
17147 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17148 | $as_echo X"$mf" | | |
17149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17150 | s//\1/ | |
17151 | q | |
17152 | } | |
17153 | /^X\(\/\/\)[^/].*/{ | |
17154 | s//\1/ | |
17155 | q | |
17156 | } | |
17157 | /^X\(\/\/\)$/{ | |
17158 | s//\1/ | |
17159 | q | |
17160 | } | |
17161 | /^X\(\/\).*/{ | |
17162 | s//\1/ | |
17163 | q | |
17164 | } | |
17165 | s/.*/./; q'` | |
17166 | else | |
17167 | continue | |
17168 | fi | |
17169 | # Extract the definition of DEPDIR, am__include, and am__quote | |
bf4e01a4 | 17170 | # from the Makefile without running 'make'. |
7083c021 AC |
17171 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
17172 | test -z "$DEPDIR" && continue | |
17173 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
bf4e01a4 | 17174 | test -z "$am__include" && continue |
7083c021 | 17175 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
7083c021 AC |
17176 | # Find all dependency output files, they are included files with |
17177 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17178 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17179 | # expansion. | |
17180 | for file in `sed -n " | |
17181 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
bf4e01a4 | 17182 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
7083c021 AC |
17183 | # Make sure the directory exists. |
17184 | test -f "$dirpart/$file" && continue | |
17185 | fdir=`$as_dirname -- "$file" || | |
17186 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17187 | X"$file" : 'X\(//\)[^/]' \| \ | |
17188 | X"$file" : 'X\(//\)$' \| \ | |
17189 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17190 | $as_echo X"$file" | | |
17191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17192 | s//\1/ | |
17193 | q | |
17194 | } | |
17195 | /^X\(\/\/\)[^/].*/{ | |
17196 | s//\1/ | |
17197 | q | |
17198 | } | |
17199 | /^X\(\/\/\)$/{ | |
17200 | s//\1/ | |
17201 | q | |
17202 | } | |
17203 | /^X\(\/\).*/{ | |
17204 | s//\1/ | |
17205 | q | |
17206 | } | |
17207 | s/.*/./; q'` | |
17208 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
17209 | # echo "creating $dirpart/$file" | |
17210 | echo '# dummy' > "$dirpart/$file" | |
17211 | done | |
17212 | done | |
17213 | } | |
17214 | ;; | |
17215 | "libtool":C) | |
db137867 | 17216 | |
6f57a957 | 17217 | # See if we are running on zsh, and set the options that allow our |
7083c021 | 17218 | # commands through without removal of \ escapes. |
6f57a957 | 17219 | if test -n "${ZSH_VERSION+set}"; then |
7083c021 AC |
17220 | setopt NO_GLOB_SUBST |
17221 | fi | |
c2ac22cc | 17222 | |
6f57a957 | 17223 | cfgfile=${ofile}T |
7083c021 AC |
17224 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
17225 | $RM "$cfgfile" | |
db137867 | 17226 | |
7083c021 AC |
17227 | cat <<_LT_EOF >> "$cfgfile" |
17228 | #! $SHELL | |
6f57a957 | 17229 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
7083c021 AC |
17230 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17231 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
6f57a957 AC |
17232 | |
17233 | # Provide generalized library-building support services. | |
17234 | # Written by Gordon Matzigkeit, 1996 | |
17235 | ||
17236 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
17237 | # This is free software; see the source for copying conditions. There is NO | |
17238 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
17239 | ||
17240 | # GNU Libtool is free software; you can redistribute it and/or modify | |
17241 | # it under the terms of the GNU General Public License as published by | |
17242 | # the Free Software Foundation; either version 2 of of the License, or | |
17243 | # (at your option) any later version. | |
db137867 | 17244 | # |
6f57a957 AC |
17245 | # As a special exception to the GNU General Public License, if you |
17246 | # distribute this file as part of a program or library that is built | |
17247 | # using GNU Libtool, you may include this file under the same | |
17248 | # distribution terms that you use for the rest of that program. | |
7083c021 | 17249 | # |
6f57a957 AC |
17250 | # GNU Libtool is distributed in the hope that it will be useful, but |
17251 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
7083c021 AC |
17252 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17253 | # GNU General Public License for more details. | |
17254 | # | |
17255 | # You should have received a copy of the GNU General Public License | |
6f57a957 | 17256 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
db137867 | 17257 | |
db137867 | 17258 | |
7083c021 | 17259 | # The names of the tagged configurations supported by this script. |
6f57a957 AC |
17260 | available_tags='' |
17261 | ||
17262 | # Configured defaults for sys_lib_dlsearch_path munging. | |
17263 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
db137867 | 17264 | |
7083c021 | 17265 | # ### BEGIN LIBTOOL CONFIG |
db137867 | 17266 | |
7083c021 AC |
17267 | # Whether or not to build static libraries. |
17268 | build_old_libs=$enable_static | |
db137867 | 17269 | |
7083c021 AC |
17270 | # Whether or not to build shared libraries. |
17271 | build_libtool_libs=$enable_shared | |
db137867 | 17272 | |
7083c021 AC |
17273 | # Which release of libtool.m4 was used? |
17274 | macro_version=$macro_version | |
17275 | macro_revision=$macro_revision | |
db137867 | 17276 | |
7083c021 AC |
17277 | # What type of objects to build. |
17278 | pic_mode=$pic_mode | |
db137867 | 17279 | |
7083c021 AC |
17280 | # Whether or not to optimize for fast installation. |
17281 | fast_install=$enable_fast_install | |
db137867 | 17282 | |
6f57a957 AC |
17283 | # Shared archive member basename,for filename based shared library versioning on AIX. |
17284 | shared_archive_member_spec=$shared_archive_member_spec | |
17285 | ||
b6d0720c AC |
17286 | # Shell to use when invoking shell scripts. |
17287 | SHELL=$lt_SHELL | |
17288 | ||
17289 | # An echo program that protects backslashes. | |
17290 | ECHO=$lt_ECHO | |
17291 | ||
a949ab1a AC |
17292 | # The PATH separator for the build system. |
17293 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
17294 | ||
7083c021 AC |
17295 | # The host system. |
17296 | host_alias=$host_alias | |
17297 | host=$host | |
17298 | host_os=$host_os | |
db137867 | 17299 | |
7083c021 AC |
17300 | # The build system. |
17301 | build_alias=$build_alias | |
17302 | build=$build | |
17303 | build_os=$build_os | |
db137867 | 17304 | |
7083c021 AC |
17305 | # A sed program that does not truncate output. |
17306 | SED=$lt_SED | |
db137867 | 17307 | |
7083c021 AC |
17308 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
17309 | Xsed="\$SED -e 1s/^X//" | |
db137867 | 17310 | |
7083c021 AC |
17311 | # A grep program that handles long lines. |
17312 | GREP=$lt_GREP | |
db137867 | 17313 | |
7083c021 AC |
17314 | # An ERE matcher. |
17315 | EGREP=$lt_EGREP | |
db137867 | 17316 | |
7083c021 AC |
17317 | # A literal string matcher. |
17318 | FGREP=$lt_FGREP | |
db137867 | 17319 | |
7083c021 AC |
17320 | # A BSD- or MS-compatible name lister. |
17321 | NM=$lt_NM | |
030272f3 | 17322 | |
7083c021 AC |
17323 | # Whether we need soft or hard links. |
17324 | LN_S=$lt_LN_S | |
db137867 | 17325 | |
7083c021 AC |
17326 | # What is the maximum length of a command? |
17327 | max_cmd_len=$max_cmd_len | |
db137867 | 17328 | |
7083c021 AC |
17329 | # Object file suffix (normally "o"). |
17330 | objext=$ac_objext | |
db137867 | 17331 | |
7083c021 AC |
17332 | # Executable file suffix (normally ""). |
17333 | exeext=$exeext | |
db137867 | 17334 | |
7083c021 AC |
17335 | # whether the shell understands "unset". |
17336 | lt_unset=$lt_unset | |
db137867 | 17337 | |
7083c021 AC |
17338 | # turn spaces into newlines. |
17339 | SP2NL=$lt_lt_SP2NL | |
db137867 | 17340 | |
7083c021 AC |
17341 | # turn newlines into spaces. |
17342 | NL2SP=$lt_lt_NL2SP | |
db137867 | 17343 | |
b6d0720c AC |
17344 | # convert \$build file names to \$host format. |
17345 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
17346 | ||
17347 | # convert \$build files to toolchain format. | |
17348 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
db137867 | 17349 | |
7083c021 AC |
17350 | # An object symbol dumper. |
17351 | OBJDUMP=$lt_OBJDUMP | |
db137867 | 17352 | |
7083c021 AC |
17353 | # Method to check whether dependent libraries are shared objects. |
17354 | deplibs_check_method=$lt_deplibs_check_method | |
db137867 | 17355 | |
b6d0720c | 17356 | # Command to use when deplibs_check_method = "file_magic". |
7083c021 | 17357 | file_magic_cmd=$lt_file_magic_cmd |
db137867 | 17358 | |
b6d0720c AC |
17359 | # How to find potential files when deplibs_check_method = "file_magic". |
17360 | file_magic_glob=$lt_file_magic_glob | |
17361 | ||
17362 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
17363 | want_nocaseglob=$lt_want_nocaseglob | |
17364 | ||
17365 | # DLL creation program. | |
17366 | DLLTOOL=$lt_DLLTOOL | |
17367 | ||
17368 | # Command to associate shared and link libraries. | |
17369 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
17370 | ||
7083c021 AC |
17371 | # The archiver. |
17372 | AR=$lt_AR | |
b6d0720c AC |
17373 | |
17374 | # Flags to create an archive. | |
7083c021 | 17375 | AR_FLAGS=$lt_AR_FLAGS |
db137867 | 17376 | |
b6d0720c AC |
17377 | # How to feed a file listing to the archiver. |
17378 | archiver_list_spec=$lt_archiver_list_spec | |
17379 | ||
7083c021 AC |
17380 | # A symbol stripping program. |
17381 | STRIP=$lt_STRIP | |
db137867 | 17382 | |
7083c021 AC |
17383 | # Commands used to install an old-style archive. |
17384 | RANLIB=$lt_RANLIB | |
17385 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17386 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
db137867 | 17387 | |
b6d0720c AC |
17388 | # Whether to use a lock for old archive extraction. |
17389 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17390 | ||
7083c021 AC |
17391 | # A C compiler. |
17392 | LTCC=$lt_CC | |
db137867 | 17393 | |
7083c021 AC |
17394 | # LTCC compiler flags. |
17395 | LTCFLAGS=$lt_CFLAGS | |
db137867 | 17396 | |
7083c021 AC |
17397 | # Take the output of nm and produce a listing of raw symbols and C names. |
17398 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
db137867 | 17399 | |
7083c021 AC |
17400 | # Transform the output of nm in a proper C declaration. |
17401 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
db137867 | 17402 | |
6f57a957 AC |
17403 | # Transform the output of nm into a list of symbols to manually relocate. |
17404 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
17405 | ||
7083c021 AC |
17406 | # Transform the output of nm in a C name address pair. |
17407 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
db137867 | 17408 | |
7083c021 AC |
17409 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
17410 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
db137867 | 17411 | |
6f57a957 AC |
17412 | # The name lister interface. |
17413 | nm_interface=$lt_lt_cv_nm_interface | |
17414 | ||
b6d0720c AC |
17415 | # Specify filename containing input files for \$NM. |
17416 | nm_file_list_spec=$lt_nm_file_list_spec | |
db137867 | 17417 | |
6f57a957 | 17418 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b6d0720c | 17419 | lt_sysroot=$lt_sysroot |
db137867 | 17420 | |
6f57a957 AC |
17421 | # Command to truncate a binary pipe. |
17422 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
17423 | ||
b6d0720c AC |
17424 | # The name of the directory that contains temporary libtool files. |
17425 | objdir=$objdir | |
db137867 | 17426 | |
7083c021 AC |
17427 | # Used to examine libraries when file_magic_cmd begins with "file". |
17428 | MAGIC_CMD=$MAGIC_CMD | |
17429 | ||
17430 | # Must we lock files when doing compilation? | |
17431 | need_locks=$lt_need_locks | |
db137867 | 17432 | |
b6d0720c AC |
17433 | # Manifest tool. |
17434 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
17435 | ||
7083c021 AC |
17436 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
17437 | DSYMUTIL=$lt_DSYMUTIL | |
db137867 | 17438 | |
7083c021 AC |
17439 | # Tool to change global to local symbols on Mac OS X. |
17440 | NMEDIT=$lt_NMEDIT | |
db137867 | 17441 | |
7083c021 AC |
17442 | # Tool to manipulate fat objects and archives on Mac OS X. |
17443 | LIPO=$lt_LIPO | |
db137867 | 17444 | |
7083c021 AC |
17445 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
17446 | OTOOL=$lt_OTOOL | |
db137867 | 17447 | |
7083c021 AC |
17448 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
17449 | OTOOL64=$lt_OTOOL64 | |
db137867 | 17450 | |
7083c021 AC |
17451 | # Old archive suffix (normally "a"). |
17452 | libext=$libext | |
db137867 | 17453 | |
7083c021 AC |
17454 | # Shared library suffix (normally ".so"). |
17455 | shrext_cmds=$lt_shrext_cmds | |
db137867 | 17456 | |
7083c021 AC |
17457 | # The commands to extract the exported symbol list from a shared archive. |
17458 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
db137867 | 17459 | |
7083c021 AC |
17460 | # Variables whose values should be saved in libtool wrapper scripts and |
17461 | # restored at link time. | |
17462 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
030272f3 | 17463 | |
7083c021 AC |
17464 | # Do we need the "lib" prefix for modules? |
17465 | need_lib_prefix=$need_lib_prefix | |
030272f3 | 17466 | |
7083c021 AC |
17467 | # Do we need a version for libraries? |
17468 | need_version=$need_version | |
030272f3 | 17469 | |
7083c021 AC |
17470 | # Library versioning type. |
17471 | version_type=$version_type | |
db137867 | 17472 | |
7083c021 AC |
17473 | # Shared library runtime path variable. |
17474 | runpath_var=$runpath_var | |
db137867 | 17475 | |
7083c021 AC |
17476 | # Shared library path variable. |
17477 | shlibpath_var=$shlibpath_var | |
db137867 | 17478 | |
7083c021 AC |
17479 | # Is shlibpath searched before the hard-coded library search path? |
17480 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
db137867 | 17481 | |
7083c021 AC |
17482 | # Format of library name prefix. |
17483 | libname_spec=$lt_libname_spec | |
db137867 | 17484 | |
7083c021 AC |
17485 | # List of archive names. First name is the real one, the rest are links. |
17486 | # The last name is the one that the linker finds with -lNAME | |
17487 | library_names_spec=$lt_library_names_spec | |
db137867 | 17488 | |
7083c021 AC |
17489 | # The coded name of the library, if different from the real name. |
17490 | soname_spec=$lt_soname_spec | |
db137867 | 17491 | |
b6d0720c AC |
17492 | # Permission mode override for installation of shared libraries. |
17493 | install_override_mode=$lt_install_override_mode | |
17494 | ||
7083c021 AC |
17495 | # Command to use after installation of a shared archive. |
17496 | postinstall_cmds=$lt_postinstall_cmds | |
db137867 | 17497 | |
7083c021 AC |
17498 | # Command to use after uninstallation of a shared archive. |
17499 | postuninstall_cmds=$lt_postuninstall_cmds | |
db137867 | 17500 | |
7083c021 AC |
17501 | # Commands used to finish a libtool library installation in a directory. |
17502 | finish_cmds=$lt_finish_cmds | |
db137867 | 17503 | |
7083c021 AC |
17504 | # As "finish_cmds", except a single script fragment to be evaled but |
17505 | # not shown. | |
17506 | finish_eval=$lt_finish_eval | |
db137867 | 17507 | |
7083c021 AC |
17508 | # Whether we should hardcode library paths into libraries. |
17509 | hardcode_into_libs=$hardcode_into_libs | |
db137867 | 17510 | |
7083c021 AC |
17511 | # Compile-time system search path for libraries. |
17512 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
db137867 | 17513 | |
6f57a957 AC |
17514 | # Detected run-time system search path for libraries. |
17515 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
17516 | ||
17517 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
17518 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
db137867 | 17519 | |
7083c021 AC |
17520 | # Whether dlopen is supported. |
17521 | dlopen_support=$enable_dlopen | |
db137867 | 17522 | |
7083c021 AC |
17523 | # Whether dlopen of programs is supported. |
17524 | dlopen_self=$enable_dlopen_self | |
db137867 | 17525 | |
7083c021 AC |
17526 | # Whether dlopen of statically linked programs is supported. |
17527 | dlopen_self_static=$enable_dlopen_self_static | |
db137867 | 17528 | |
7083c021 AC |
17529 | # Commands to strip libraries. |
17530 | old_striplib=$lt_old_striplib | |
17531 | striplib=$lt_striplib | |
db137867 | 17532 | |
db137867 | 17533 | |
7083c021 AC |
17534 | # The linker used to build libraries. |
17535 | LD=$lt_LD | |
db137867 | 17536 | |
b6d0720c AC |
17537 | # How to create reloadable object files. |
17538 | reload_flag=$lt_reload_flag | |
17539 | reload_cmds=$lt_reload_cmds | |
17540 | ||
7083c021 AC |
17541 | # Commands used to build an old-style archive. |
17542 | old_archive_cmds=$lt_old_archive_cmds | |
db137867 | 17543 | |
7083c021 AC |
17544 | # A language specific compiler. |
17545 | CC=$lt_compiler | |
db137867 | 17546 | |
7083c021 AC |
17547 | # Is the compiler the GNU compiler? |
17548 | with_gcc=$GCC | |
db137867 | 17549 | |
7083c021 AC |
17550 | # Compiler flag to turn off builtin functions. |
17551 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
db137867 | 17552 | |
7083c021 AC |
17553 | # Additional compiler flags for building library objects. |
17554 | pic_flag=$lt_lt_prog_compiler_pic | |
17555 | ||
b6d0720c AC |
17556 | # How to pass a linker flag through the compiler. |
17557 | wl=$lt_lt_prog_compiler_wl | |
17558 | ||
7083c021 AC |
17559 | # Compiler flag to prevent dynamic linking. |
17560 | link_static_flag=$lt_lt_prog_compiler_static | |
17561 | ||
17562 | # Does compiler simultaneously support -c and -o options? | |
17563 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
a9fb3ed0 | 17564 | |
7083c021 AC |
17565 | # Whether or not to add -lc for building shared libraries. |
17566 | build_libtool_need_lc=$archive_cmds_need_lc | |
a9fb3ed0 | 17567 | |
7083c021 AC |
17568 | # Whether or not to disallow shared libs when runtime libs are static. |
17569 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
db137867 | 17570 | |
7083c021 AC |
17571 | # Compiler flag to allow reflexive dlopens. |
17572 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
db137867 | 17573 | |
7083c021 AC |
17574 | # Compiler flag to generate shared objects directly from archives. |
17575 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
db137867 | 17576 | |
7083c021 AC |
17577 | # Whether the compiler copes with passing no objects directly. |
17578 | compiler_needs_object=$lt_compiler_needs_object | |
db137867 | 17579 | |
7083c021 AC |
17580 | # Create an old-style archive from a shared archive. |
17581 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
db137867 | 17582 | |
7083c021 AC |
17583 | # Create a temporary old-style archive to link instead of a shared archive. |
17584 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
db137867 | 17585 | |
7083c021 AC |
17586 | # Commands used to build a shared archive. |
17587 | archive_cmds=$lt_archive_cmds | |
17588 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
db137867 | 17589 | |
7083c021 AC |
17590 | # Commands used to build a loadable module if different from building |
17591 | # a shared archive. | |
17592 | module_cmds=$lt_module_cmds | |
17593 | module_expsym_cmds=$lt_module_expsym_cmds | |
db137867 | 17594 | |
7083c021 AC |
17595 | # Whether we are building with GNU ld or not. |
17596 | with_gnu_ld=$lt_with_gnu_ld | |
db137867 | 17597 | |
7083c021 AC |
17598 | # Flag that allows shared libraries with undefined symbols to be built. |
17599 | allow_undefined_flag=$lt_allow_undefined_flag | |
db137867 | 17600 | |
7083c021 AC |
17601 | # Flag that enforces no undefined symbols. |
17602 | no_undefined_flag=$lt_no_undefined_flag | |
db137867 | 17603 | |
7083c021 AC |
17604 | # Flag to hardcode \$libdir into a binary during linking. |
17605 | # This must work even if \$libdir does not exist | |
17606 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
db137867 | 17607 | |
7083c021 AC |
17608 | # Whether we need a single "-rpath" flag with a separated argument. |
17609 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
db137867 | 17610 | |
6f57a957 | 17611 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
7083c021 AC |
17612 | # DIR into the resulting binary. |
17613 | hardcode_direct=$hardcode_direct | |
db137867 | 17614 | |
6f57a957 | 17615 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
7083c021 | 17616 | # DIR into the resulting binary and the resulting library dependency is |
6f57a957 | 17617 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
7083c021 AC |
17618 | # library is relocated. |
17619 | hardcode_direct_absolute=$hardcode_direct_absolute | |
db137867 | 17620 | |
7083c021 AC |
17621 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
17622 | # into the resulting binary. | |
17623 | hardcode_minus_L=$hardcode_minus_L | |
db137867 | 17624 | |
7083c021 AC |
17625 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
17626 | # into the resulting binary. | |
17627 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
db137867 | 17628 | |
7083c021 AC |
17629 | # Set to "yes" if building a shared library automatically hardcodes DIR |
17630 | # into the library and all subsequent libraries and executables linked | |
17631 | # against it. | |
17632 | hardcode_automatic=$hardcode_automatic | |
db137867 | 17633 | |
7083c021 AC |
17634 | # Set to yes if linker adds runtime paths of dependent libraries |
17635 | # to runtime path list. | |
17636 | inherit_rpath=$inherit_rpath | |
db137867 | 17637 | |
7083c021 AC |
17638 | # Whether libtool must link a program against all its dependency libraries. |
17639 | link_all_deplibs=$link_all_deplibs | |
db137867 | 17640 | |
7083c021 AC |
17641 | # Set to "yes" if exported symbols are required. |
17642 | always_export_symbols=$always_export_symbols | |
030272f3 | 17643 | |
7083c021 AC |
17644 | # The commands to list exported symbols. |
17645 | export_symbols_cmds=$lt_export_symbols_cmds | |
db137867 | 17646 | |
7083c021 AC |
17647 | # Symbols that should not be listed in the preloaded symbols. |
17648 | exclude_expsyms=$lt_exclude_expsyms | |
030272f3 | 17649 | |
7083c021 AC |
17650 | # Symbols that must always be exported. |
17651 | include_expsyms=$lt_include_expsyms | |
db137867 | 17652 | |
7083c021 AC |
17653 | # Commands necessary for linking programs (against libraries) with templates. |
17654 | prelink_cmds=$lt_prelink_cmds | |
db137867 | 17655 | |
b6d0720c AC |
17656 | # Commands necessary for finishing linking programs. |
17657 | postlink_cmds=$lt_postlink_cmds | |
17658 | ||
7083c021 AC |
17659 | # Specify filename containing input files. |
17660 | file_list_spec=$lt_file_list_spec | |
db137867 | 17661 | |
7083c021 AC |
17662 | # How to hardcode a shared library path into an executable. |
17663 | hardcode_action=$hardcode_action | |
db137867 | 17664 | |
7083c021 | 17665 | # ### END LIBTOOL CONFIG |
030272f3 | 17666 | |
6f57a957 AC |
17667 | _LT_EOF |
17668 | ||
17669 | cat <<'_LT_EOF' >> "$cfgfile" | |
17670 | ||
17671 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
17672 | ||
17673 | # func_munge_path_list VARIABLE PATH | |
17674 | # ----------------------------------- | |
17675 | # VARIABLE is name of variable containing _space_ separated list of | |
17676 | # directories to be munged by the contents of PATH, which is string | |
17677 | # having a format: | |
17678 | # "DIR[:DIR]:" | |
17679 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
17680 | # ":DIR[:DIR]" | |
17681 | # string "DIR[ DIR]" will be appended to VARIABLE | |
17682 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
17683 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
17684 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
17685 | # "DIR[:DIR]" | |
17686 | # VARIABLE will be replaced by "DIR[ DIR]" | |
17687 | func_munge_path_list () | |
17688 | { | |
17689 | case x$2 in | |
17690 | x) | |
17691 | ;; | |
17692 | *:) | |
17693 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
17694 | ;; | |
17695 | x:*) | |
17696 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
17697 | ;; | |
17698 | *::*) | |
17699 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
17700 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
17701 | ;; | |
17702 | *) | |
17703 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
17704 | ;; | |
17705 | esac | |
17706 | } | |
17707 | ||
17708 | ||
17709 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
17710 | func_cc_basename () | |
17711 | { | |
17712 | for cc_temp in $*""; do | |
17713 | case $cc_temp in | |
17714 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
17715 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
17716 | \-*) ;; | |
17717 | *) break;; | |
17718 | esac | |
17719 | done | |
17720 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
17721 | } | |
17722 | ||
17723 | ||
17724 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
17725 | ||
7083c021 AC |
17726 | _LT_EOF |
17727 | ||
17728 | case $host_os in | |
17729 | aix3*) | |
17730 | cat <<\_LT_EOF >> "$cfgfile" | |
17731 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17732 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17733 | # vanish in a puff of smoke. | |
6f57a957 | 17734 | if test set != "${COLLECT_NAMES+set}"; then |
7083c021 AC |
17735 | COLLECT_NAMES= |
17736 | export COLLECT_NAMES | |
17737 | fi | |
17738 | _LT_EOF | |
17739 | ;; | |
17740 | esac | |
030272f3 | 17741 | |
030272f3 | 17742 | |
6f57a957 | 17743 | ltmain=$ac_aux_dir/ltmain.sh |
030272f3 | 17744 | |
030272f3 | 17745 | |
7083c021 AC |
17746 | # We use sed instead of cat because bash on DJGPP gets confused if |
17747 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17748 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17749 | # is reportedly fixed, but why not run on old versions too? | |
b6d0720c AC |
17750 | sed '$q' "$ltmain" >> "$cfgfile" \ |
17751 | || (rm -f "$cfgfile"; exit 1) | |
17752 | ||
b6d0720c | 17753 | mv -f "$cfgfile" "$ofile" || |
7083c021 AC |
17754 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
17755 | chmod +x "$ofile" | |
17756 | ||
db137867 AC |
17757 | ;; |
17758 | "include/librb-config.h":C) | |
17759 | outfile=include/librb-config.h.tmp | |
17760 | cat > $outfile <<\_______EOF | |
17761 | /* | |
17762 | * librb-config.h: libratbox config file. Please modify configure.ac | |
17763 | */ | |
17764 | ||
17765 | #ifndef __LIBRB_CONFIG_H | |
17766 | #define __LIBRB_CONFIG_H | |
17767 | ||
17768 | _______EOF | |
17769 | ||
17770 | if test "x$rb_have_ipv6" = "xyes"; then | |
17771 | echo "#define RB_IPV6 1" >> $outfile | |
17772 | fi | |
17773 | ||
17774 | if test "x$rb_windows_h" = "xyes"; then | |
17775 | echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile | |
17776 | echo '#include <windows.h>' >> $outfile | |
17777 | echo '#include <winsock2.h>' >> $outfile | |
17778 | echo '#include <iphlpapi.h>' >> $outfile | |
17779 | fi | |
17780 | ||
17781 | if test "x$rb_alloca_h" = "xyes"; then | |
17782 | echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile | |
17783 | fi | |
17784 | ||
17785 | if test "x$rb_header_stdc" = "xyes"; then | |
17786 | echo '#include <stdlib.h>' >> $outfile | |
17787 | echo '#include <stddef.h>' >> $outfile | |
17788 | elif test "x$rb_header_stdlib" = "xyes"; then | |
17789 | echo '#include <stdlib.h>' >> $outfile | |
17790 | fi | |
17791 | ||
17792 | if test "x$rb_header_string_h" = "xyes"; then | |
17793 | echo '#include <string.h>' >> $outfile | |
17794 | fi | |
17795 | ||
17796 | if test "x$rb_stdint_h" = "xyes"; then | |
17797 | echo '#include <stdint.h>' >> $outfile | |
17798 | fi | |
17799 | ||
17800 | if test "x$rb_inttypes_h" = "xyes"; then | |
17801 | echo '#include <inttypes.h>' >> $outfile | |
17802 | fi | |
17803 | ||
17804 | if test "x$rb_sys_types_h" = "xyes"; then | |
17805 | echo '#include <sys/types.h>' >> $outfile | |
17806 | fi | |
17807 | if test "x$rb_sys_time_h" = "xyes"; then | |
17808 | echo '#include <sys/time.h>' >> $outfile | |
17809 | fi | |
17810 | if test "x$rb_sys_stat_h" = "xyes"; then | |
17811 | echo '#include <sys/stat.h>' >> $outfile | |
17812 | fi | |
17813 | if test "x$rb_time_h" = "xyes"; then | |
17814 | echo '#include <time.h>' >> $outfile | |
17815 | fi | |
17816 | ||
17817 | if test "x$rb_sys_socket_h" = "xyes"; then | |
17818 | echo '#include <sys/socket.h>' >> $outfile | |
17819 | fi | |
17820 | ||
17821 | if test "x$rb_netinet_in_h" = "xyes"; then | |
17822 | echo '#include <netinet/in.h>' >> $outfile | |
17823 | fi | |
17824 | ||
17825 | if test "x$rb_arpa_inet_h" = "xyes"; then | |
17826 | echo '#include <arpa/inet.h>' >> $outfile | |
17827 | fi | |
17828 | ||
17829 | if test "x$rb_unistd_h" = "xyes"; then | |
17830 | echo '#include <unistd.h>' >> $outfile | |
17831 | fi | |
17832 | ||
17833 | if test "x$rb_crypt_h" = "xyes"; then | |
17834 | echo '#include <crypt.h>' >> $outfile | |
17835 | fi | |
17836 | ||
17837 | if test "x$rb_errno_h" = "xyes"; then | |
17838 | echo '#include <errno.h>' >> $outfile | |
17839 | fi | |
17840 | ||
a9fb3ed0 VY |
17841 | echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile |
17842 | ||
17843 | ||
db137867 AC |
17844 | if test "x$rb_sockaddr_sa_len" = "xyes"; then |
17845 | echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile | |
17846 | fi | |
17847 | ||
db137867 AC |
17848 | if test "x$rb_sockaddr_storage" = "xyes"; then |
17849 | echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile | |
17850 | else | |
3202e249 | 17851 | echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile |
db137867 AC |
17852 | fi |
17853 | ||
17854 | cat >> $outfile <<\_______EOF | |
17855 | #endif /* __LIBRB_CONFIG_H */ | |
17856 | _______EOF | |
17857 | ||
17858 | if cmp -s $outfile include/librb-config.h; then | |
7083c021 | 17859 | { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5 |
030272f3 | 17860 | $as_echo "$as_me: include/librb-config.h is unchanged" >&6;} |
db137867 AC |
17861 | ${rb_rm} -f $outfile |
17862 | else | |
17863 | ${rb_mv} $outfile include/librb-config.h | |
17864 | fi | |
17865 | ||
17866 | ;; | |
17867 | ||
17868 | esac | |
17869 | done # for ac_tag | |
17870 | ||
17871 | ||
7083c021 | 17872 | as_fn_exit 0 |
db137867 | 17873 | _ACEOF |
db137867 AC |
17874 | ac_clean_files=$ac_clean_files_save |
17875 | ||
030272f3 | 17876 | test $ac_write_fail = 0 || |
08c2568c | 17877 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
030272f3 | 17878 | |
db137867 AC |
17879 | |
17880 | # configure is writing to config.log, and then calls config.status. | |
17881 | # config.status does its own redirection, appending to config.log. | |
17882 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17883 | # by configure, so config.status won't be able to write to it; its | |
17884 | # output is simply discarded. So we exec the FD to /dev/null, | |
17885 | # effectively closing config.log, so it can be properly (re)opened and | |
17886 | # appended to by config.status. When coming back to configure, we | |
17887 | # need to make the FD available again. | |
17888 | if test "$no_create" != yes; then | |
17889 | ac_cs_success=: | |
17890 | ac_config_status_args= | |
17891 | test "$silent" = yes && | |
17892 | ac_config_status_args="$ac_config_status_args --quiet" | |
17893 | exec 5>/dev/null | |
17894 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17895 | exec 5>>config.log | |
17896 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17897 | # would make configure fail if this is the last instruction. | |
08c2568c | 17898 | $ac_cs_success || as_fn_exit 1 |
db137867 | 17899 | fi |
030272f3 | 17900 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7083c021 | 17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
030272f3 VY |
17902 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
17903 | fi | |
db137867 | 17904 | |
db137867 AC |
17905 | |
17906 | ||
17907 | echo | |
17908 | echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" | |
17909 | echo | |
17910 | ||
17911 | echo "Installing into: $prefix" | |
17912 | ||
17913 | echo "IPv6 support ................... $have_v6" | |
17914 | echo "Assert debugging ............... $assert" | |
c2ac22cc | 17915 | echo "SSL Type........................ $SSL_TYPE" |
db137867 | 17916 | echo |