]>
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 | |
640 | SSL_LIBS | |
641 | SSL_CFLAGS | |
642 | SEDOBJ | |
643 | PICFLAGS | |
bf4e01a4 AC |
644 | GNUTLS_LIBS |
645 | GNUTLS_CFLAGS | |
646 | PKG_CONFIG_LIBDIR | |
647 | PKG_CONFIG_PATH | |
648 | PKG_CONFIG | |
030272f3 | 649 | ALLOCA |
030272f3 VY |
650 | MINGW_FALSE |
651 | MINGW_TRUE | |
7083c021 AC |
652 | OTOOL64 |
653 | OTOOL | |
654 | LIPO | |
030272f3 VY |
655 | NMEDIT |
656 | DSYMUTIL | |
b6d0720c | 657 | MANIFEST_TOOL |
030272f3 | 658 | RANLIB |
b6d0720c | 659 | ac_ct_AR |
030272f3 | 660 | AR |
b6d0720c | 661 | DLLTOOL |
7083c021 | 662 | OBJDUMP |
030272f3 | 663 | LN_S |
7083c021 AC |
664 | NM |
665 | ac_ct_DUMPBIN | |
666 | DUMPBIN | |
667 | LD | |
668 | FGREP | |
030272f3 VY |
669 | host_os |
670 | host_vendor | |
671 | host_cpu | |
672 | host | |
673 | build_os | |
674 | build_vendor | |
675 | build_cpu | |
676 | build | |
7083c021 | 677 | LIBTOOL |
030272f3 VY |
678 | TOUCH |
679 | LN | |
680 | MV | |
681 | CP | |
682 | RM | |
683 | AS | |
684 | MAINT | |
685 | MAINTAINER_MODE_FALSE | |
686 | MAINTAINER_MODE_TRUE | |
687 | SED | |
688 | EGREP | |
689 | GREP | |
690 | CPP | |
691 | am__fastdepCC_FALSE | |
692 | am__fastdepCC_TRUE | |
693 | CCDEPMODE | |
bf4e01a4 | 694 | am__nodep |
030272f3 VY |
695 | AMDEPBACKSLASH |
696 | AMDEP_FALSE | |
697 | AMDEP_TRUE | |
698 | am__quote | |
699 | am__include | |
700 | DEPDIR | |
701 | OBJEXT | |
702 | EXEEXT | |
703 | ac_ct_CC | |
704 | CPPFLAGS | |
705 | LDFLAGS | |
706 | CFLAGS | |
707 | CC | |
bf4e01a4 AC |
708 | AM_BACKSLASH |
709 | AM_DEFAULT_VERBOSITY | |
710 | AM_DEFAULT_V | |
711 | AM_V | |
030272f3 VY |
712 | am__untar |
713 | am__tar | |
714 | AMTAR | |
715 | am__leading_dot | |
716 | SET_MAKE | |
717 | AWK | |
718 | mkdir_p | |
719 | MKDIR_P | |
720 | INSTALL_STRIP_PROGRAM | |
721 | STRIP | |
722 | install_sh | |
723 | MAKEINFO | |
724 | AUTOHEADER | |
725 | AUTOMAKE | |
726 | AUTOCONF | |
727 | ACLOCAL | |
728 | VERSION | |
729 | PACKAGE | |
730 | CYGPATH_W | |
731 | am__isrc | |
732 | INSTALL_DATA | |
733 | INSTALL_SCRIPT | |
734 | INSTALL_PROGRAM | |
735 | target_alias | |
736 | host_alias | |
db137867 | 737 | build_alias |
030272f3 VY |
738 | LIBS |
739 | ECHO_T | |
740 | ECHO_N | |
741 | ECHO_C | |
742 | DEFS | |
743 | mandir | |
744 | localedir | |
745 | libdir | |
746 | psdir | |
747 | pdfdir | |
748 | dvidir | |
749 | htmldir | |
750 | infodir | |
751 | docdir | |
752 | oldincludedir | |
753 | includedir | |
754 | localstatedir | |
755 | sharedstatedir | |
756 | sysconfdir | |
757 | datadir | |
758 | datarootdir | |
759 | libexecdir | |
760 | sbindir | |
761 | bindir | |
762 | program_transform_name | |
763 | prefix | |
764 | exec_prefix | |
7083c021 | 765 | PACKAGE_URL |
030272f3 VY |
766 | PACKAGE_BUGREPORT |
767 | PACKAGE_STRING | |
768 | PACKAGE_VERSION | |
769 | PACKAGE_TARNAME | |
770 | PACKAGE_NAME | |
771 | PATH_SEPARATOR | |
772 | SHELL' | |
773 | ac_subst_files='' | |
774 | ac_user_opts=' | |
775 | enable_option_checking | |
bf4e01a4 | 776 | enable_silent_rules |
030272f3 VY |
777 | enable_dependency_tracking |
778 | enable_static | |
779 | enable_shared | |
780 | enable_maintainer_mode | |
7083c021 | 781 | with_pic |
030272f3 VY |
782 | enable_fast_install |
783 | with_gnu_ld | |
b6d0720c | 784 | with_sysroot |
030272f3 | 785 | enable_libtool_lock |
030272f3 VY |
786 | enable_ipv6 |
787 | enable_openssl | |
bf4e01a4 | 788 | enable_gnutls |
030272f3 VY |
789 | enable_assert |
790 | enable_profile | |
791 | enable_balloc | |
792 | enable_warnings | |
793 | ' | |
794 | ac_precious_vars='build_alias | |
db137867 AC |
795 | host_alias |
796 | target_alias | |
db137867 AC |
797 | CC |
798 | CFLAGS | |
799 | LDFLAGS | |
030272f3 | 800 | LIBS |
db137867 | 801 | CPPFLAGS |
bf4e01a4 AC |
802 | CPP |
803 | PKG_CONFIG | |
804 | PKG_CONFIG_PATH | |
805 | PKG_CONFIG_LIBDIR | |
806 | GNUTLS_CFLAGS | |
807 | GNUTLS_LIBS' | |
3202e249 | 808 | |
db137867 AC |
809 | |
810 | # Initialize some variables set by options. | |
811 | ac_init_help= | |
812 | ac_init_version=false | |
030272f3 VY |
813 | ac_unrecognized_opts= |
814 | ac_unrecognized_sep= | |
db137867 AC |
815 | # The variables have the same names as the options, with |
816 | # dashes changed to underlines. | |
817 | cache_file=/dev/null | |
818 | exec_prefix=NONE | |
819 | no_create= | |
820 | no_recursion= | |
821 | prefix=NONE | |
822 | program_prefix=NONE | |
823 | program_suffix=NONE | |
824 | program_transform_name=s,x,x, | |
825 | silent= | |
826 | site= | |
827 | srcdir= | |
828 | verbose= | |
829 | x_includes=NONE | |
830 | x_libraries=NONE | |
831 | ||
832 | # Installation directory options. | |
833 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
834 | # and all the variables that are supposed to be based on exec_prefix | |
835 | # by default will actually change. | |
836 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
837 | # (The list follows the same order as the GNU Coding Standards.) | |
838 | bindir='${exec_prefix}/bin' | |
839 | sbindir='${exec_prefix}/sbin' | |
840 | libexecdir='${exec_prefix}/libexec' | |
841 | datarootdir='${prefix}/share' | |
842 | datadir='${datarootdir}' | |
843 | sysconfdir='${prefix}/etc' | |
844 | sharedstatedir='${prefix}/com' | |
845 | localstatedir='${prefix}/var' | |
846 | includedir='${prefix}/include' | |
847 | oldincludedir='/usr/include' | |
848 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
849 | infodir='${datarootdir}/info' | |
850 | htmldir='${docdir}' | |
851 | dvidir='${docdir}' | |
852 | pdfdir='${docdir}' | |
853 | psdir='${docdir}' | |
854 | libdir='${exec_prefix}/lib' | |
855 | localedir='${datarootdir}/locale' | |
856 | mandir='${datarootdir}/man' | |
857 | ||
858 | ac_prev= | |
859 | ac_dashdash= | |
860 | for ac_option | |
861 | do | |
862 | # If the previous option needs an argument, assign it. | |
863 | if test -n "$ac_prev"; then | |
864 | eval $ac_prev=\$ac_option | |
865 | ac_prev= | |
866 | continue | |
867 | fi | |
868 | ||
869 | case $ac_option in | |
08c2568c EM |
870 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
871 | *=) ac_optarg= ;; | |
872 | *) ac_optarg=yes ;; | |
db137867 AC |
873 | esac |
874 | ||
875 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
876 | ||
877 | case $ac_dashdash$ac_option in | |
878 | --) | |
879 | ac_dashdash=yes ;; | |
880 | ||
881 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
882 | ac_prev=bindir ;; | |
883 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
884 | bindir=$ac_optarg ;; | |
885 | ||
886 | -build | --build | --buil | --bui | --bu) | |
887 | ac_prev=build_alias ;; | |
888 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
889 | build_alias=$ac_optarg ;; | |
890 | ||
891 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
892 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
893 | ac_prev=cache_file ;; | |
894 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
895 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
896 | cache_file=$ac_optarg ;; | |
897 | ||
898 | --config-cache | -C) | |
899 | cache_file=config.cache ;; | |
900 | ||
901 | -datadir | --datadir | --datadi | --datad) | |
902 | ac_prev=datadir ;; | |
903 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
904 | datadir=$ac_optarg ;; | |
905 | ||
906 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
907 | | --dataroo | --dataro | --datar) | |
908 | ac_prev=datarootdir ;; | |
909 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
910 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
911 | datarootdir=$ac_optarg ;; | |
912 | ||
913 | -disable-* | --disable-*) | |
030272f3 | 914 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
db137867 | 915 | # Reject names that are not valid shell variable names. |
030272f3 | 916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 917 | as_fn_error $? "invalid feature name: $ac_useropt" |
030272f3 VY |
918 | ac_useropt_orig=$ac_useropt |
919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
920 | case $ac_user_opts in | |
921 | *" | |
922 | "enable_$ac_useropt" | |
923 | "*) ;; | |
924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
925 | ac_unrecognized_sep=', ';; | |
926 | esac | |
927 | eval enable_$ac_useropt=no ;; | |
db137867 AC |
928 | |
929 | -docdir | --docdir | --docdi | --doc | --do) | |
930 | ac_prev=docdir ;; | |
931 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
932 | docdir=$ac_optarg ;; | |
933 | ||
934 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
935 | ac_prev=dvidir ;; | |
936 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
937 | dvidir=$ac_optarg ;; | |
938 | ||
939 | -enable-* | --enable-*) | |
030272f3 | 940 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
db137867 | 941 | # Reject names that are not valid shell variable names. |
030272f3 | 942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 943 | as_fn_error $? "invalid feature name: $ac_useropt" |
030272f3 VY |
944 | ac_useropt_orig=$ac_useropt |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
954 | |
955 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
956 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
957 | | --exec | --exe | --ex) | |
958 | ac_prev=exec_prefix ;; | |
959 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
960 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
961 | | --exec=* | --exe=* | --ex=*) | |
962 | exec_prefix=$ac_optarg ;; | |
963 | ||
964 | -gas | --gas | --ga | --g) | |
965 | # Obsolete; use --with-gas. | |
966 | with_gas=yes ;; | |
967 | ||
968 | -help | --help | --hel | --he | -h) | |
969 | ac_init_help=long ;; | |
970 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
971 | ac_init_help=recursive ;; | |
972 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
973 | ac_init_help=short ;; | |
974 | ||
975 | -host | --host | --hos | --ho) | |
976 | ac_prev=host_alias ;; | |
977 | -host=* | --host=* | --hos=* | --ho=*) | |
978 | host_alias=$ac_optarg ;; | |
979 | ||
980 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
981 | ac_prev=htmldir ;; | |
982 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
983 | | --ht=*) | |
984 | htmldir=$ac_optarg ;; | |
985 | ||
986 | -includedir | --includedir | --includedi | --included | --include \ | |
987 | | --includ | --inclu | --incl | --inc) | |
988 | ac_prev=includedir ;; | |
989 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
990 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
991 | includedir=$ac_optarg ;; | |
992 | ||
993 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
994 | ac_prev=infodir ;; | |
995 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
996 | infodir=$ac_optarg ;; | |
997 | ||
998 | -libdir | --libdir | --libdi | --libd) | |
999 | ac_prev=libdir ;; | |
1000 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1001 | libdir=$ac_optarg ;; | |
1002 | ||
1003 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1004 | | --libexe | --libex | --libe) | |
1005 | ac_prev=libexecdir ;; | |
1006 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1007 | | --libexe=* | --libex=* | --libe=*) | |
1008 | libexecdir=$ac_optarg ;; | |
1009 | ||
1010 | -localedir | --localedir | --localedi | --localed | --locale) | |
1011 | ac_prev=localedir ;; | |
1012 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1013 | localedir=$ac_optarg ;; | |
1014 | ||
1015 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1016 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1017 | ac_prev=localstatedir ;; | |
1018 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1019 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1020 | localstatedir=$ac_optarg ;; | |
1021 | ||
1022 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1023 | ac_prev=mandir ;; | |
1024 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1025 | mandir=$ac_optarg ;; | |
1026 | ||
1027 | -nfp | --nfp | --nf) | |
1028 | # Obsolete; use --without-fp. | |
1029 | with_fp=no ;; | |
1030 | ||
1031 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1032 | | --no-cr | --no-c | -n) | |
1033 | no_create=yes ;; | |
1034 | ||
1035 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1036 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1037 | no_recursion=yes ;; | |
1038 | ||
1039 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1040 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1041 | | --oldin | --oldi | --old | --ol | --o) | |
1042 | ac_prev=oldincludedir ;; | |
1043 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1044 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1045 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1046 | oldincludedir=$ac_optarg ;; | |
1047 | ||
1048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1049 | ac_prev=prefix ;; | |
1050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1051 | prefix=$ac_optarg ;; | |
1052 | ||
1053 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1054 | | --program-pre | --program-pr | --program-p) | |
1055 | ac_prev=program_prefix ;; | |
1056 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1057 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1058 | program_prefix=$ac_optarg ;; | |
1059 | ||
1060 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1061 | | --program-suf | --program-su | --program-s) | |
1062 | ac_prev=program_suffix ;; | |
1063 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1064 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1065 | program_suffix=$ac_optarg ;; | |
1066 | ||
1067 | -program-transform-name | --program-transform-name \ | |
1068 | | --program-transform-nam | --program-transform-na \ | |
1069 | | --program-transform-n | --program-transform- \ | |
1070 | | --program-transform | --program-transfor \ | |
1071 | | --program-transfo | --program-transf \ | |
1072 | | --program-trans | --program-tran \ | |
1073 | | --progr-tra | --program-tr | --program-t) | |
1074 | ac_prev=program_transform_name ;; | |
1075 | -program-transform-name=* | --program-transform-name=* \ | |
1076 | | --program-transform-nam=* | --program-transform-na=* \ | |
1077 | | --program-transform-n=* | --program-transform-=* \ | |
1078 | | --program-transform=* | --program-transfor=* \ | |
1079 | | --program-transfo=* | --program-transf=* \ | |
1080 | | --program-trans=* | --program-tran=* \ | |
1081 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1082 | program_transform_name=$ac_optarg ;; | |
1083 | ||
1084 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1085 | ac_prev=pdfdir ;; | |
1086 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1087 | pdfdir=$ac_optarg ;; | |
1088 | ||
1089 | -psdir | --psdir | --psdi | --psd | --ps) | |
1090 | ac_prev=psdir ;; | |
1091 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1092 | psdir=$ac_optarg ;; | |
1093 | ||
1094 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1095 | | -silent | --silent | --silen | --sile | --sil) | |
1096 | silent=yes ;; | |
1097 | ||
1098 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1099 | ac_prev=sbindir ;; | |
1100 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1101 | | --sbi=* | --sb=*) | |
1102 | sbindir=$ac_optarg ;; | |
1103 | ||
1104 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1105 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1106 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1107 | | --sha | --sh) | |
1108 | ac_prev=sharedstatedir ;; | |
1109 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1110 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1111 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1112 | | --sha=* | --sh=*) | |
1113 | sharedstatedir=$ac_optarg ;; | |
1114 | ||
1115 | -site | --site | --sit) | |
1116 | ac_prev=site ;; | |
1117 | -site=* | --site=* | --sit=*) | |
1118 | site=$ac_optarg ;; | |
1119 | ||
1120 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1121 | ac_prev=srcdir ;; | |
1122 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1123 | srcdir=$ac_optarg ;; | |
1124 | ||
1125 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1126 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1127 | ac_prev=sysconfdir ;; | |
1128 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1129 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1130 | sysconfdir=$ac_optarg ;; | |
1131 | ||
1132 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1133 | ac_prev=target_alias ;; | |
1134 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1135 | target_alias=$ac_optarg ;; | |
1136 | ||
1137 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1138 | verbose=yes ;; | |
1139 | ||
1140 | -version | --version | --versio | --versi | --vers | -V) | |
1141 | ac_init_version=: ;; | |
1142 | ||
1143 | -with-* | --with-*) | |
030272f3 | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
db137867 | 1145 | # Reject names that are not valid shell variable names. |
030272f3 | 1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 1147 | as_fn_error $? "invalid package name: $ac_useropt" |
030272f3 VY |
1148 | ac_useropt_orig=$ac_useropt |
1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 | case $ac_user_opts in | |
1151 | *" | |
1152 | "with_$ac_useropt" | |
1153 | "*) ;; | |
1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1155 | ac_unrecognized_sep=', ';; | |
1156 | esac | |
1157 | eval with_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
1158 | |
1159 | -without-* | --without-*) | |
030272f3 | 1160 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
db137867 | 1161 | # Reject names that are not valid shell variable names. |
030272f3 | 1162 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 1163 | as_fn_error $? "invalid package name: $ac_useropt" |
030272f3 VY |
1164 | ac_useropt_orig=$ac_useropt |
1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1166 | case $ac_user_opts in | |
1167 | *" | |
1168 | "with_$ac_useropt" | |
1169 | "*) ;; | |
1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1171 | ac_unrecognized_sep=', ';; | |
1172 | esac | |
1173 | eval with_$ac_useropt=no ;; | |
db137867 AC |
1174 | |
1175 | --x) | |
1176 | # Obsolete; use --with-x. | |
1177 | with_x=yes ;; | |
1178 | ||
1179 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1180 | | --x-incl | --x-inc | --x-in | --x-i) | |
1181 | ac_prev=x_includes ;; | |
1182 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1183 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1184 | x_includes=$ac_optarg ;; | |
1185 | ||
1186 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1187 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1188 | ac_prev=x_libraries ;; | |
1189 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1190 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1191 | x_libraries=$ac_optarg ;; | |
1192 | ||
08c2568c EM |
1193 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1194 | Try \`$0 --help' for more information" | |
db137867 AC |
1195 | ;; |
1196 | ||
1197 | *=*) | |
1198 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1199 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1200 | case $ac_envvar in #( |
1201 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
08c2568c | 1202 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1203 | esac |
db137867 AC |
1204 | eval $ac_envvar=\$ac_optarg |
1205 | export $ac_envvar ;; | |
1206 | ||
1207 | *) | |
1208 | # FIXME: should be removed in autoconf 3.0. | |
030272f3 | 1209 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
db137867 | 1210 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
030272f3 | 1211 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
08c2568c | 1212 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
db137867 AC |
1213 | ;; |
1214 | ||
1215 | esac | |
1216 | done | |
1217 | ||
1218 | if test -n "$ac_prev"; then | |
1219 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
08c2568c | 1220 | as_fn_error $? "missing argument to $ac_option" |
db137867 AC |
1221 | fi |
1222 | ||
030272f3 VY |
1223 | if test -n "$ac_unrecognized_opts"; then |
1224 | case $enable_option_checking in | |
1225 | no) ;; | |
08c2568c | 1226 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
030272f3 VY |
1227 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1228 | esac | |
1229 | fi | |
1230 | ||
1231 | # Check all directory arguments for consistency. | |
db137867 AC |
1232 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1233 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1234 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1235 | libdir localedir mandir | |
1236 | do | |
1237 | eval ac_val=\$$ac_var | |
030272f3 VY |
1238 | # Remove trailing slashes. |
1239 | case $ac_val in | |
1240 | */ ) | |
1241 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1242 | eval $ac_var=\$ac_val;; | |
1243 | esac | |
1244 | # Be sure to have absolute directory names. | |
db137867 AC |
1245 | case $ac_val in |
1246 | [\\/$]* | ?:[\\/]* ) continue;; | |
1247 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1248 | esac | |
08c2568c | 1249 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
db137867 AC |
1250 | done |
1251 | ||
1252 | # There might be people who depend on the old broken behavior: `$host' | |
1253 | # used to hold the argument of --host etc. | |
1254 | # FIXME: To remove some day. | |
1255 | build=$build_alias | |
1256 | host=$host_alias | |
1257 | target=$target_alias | |
1258 | ||
1259 | # FIXME: To remove some day. | |
1260 | if test "x$host_alias" != x; then | |
1261 | if test "x$build_alias" = x; then | |
1262 | cross_compiling=maybe | |
db137867 AC |
1263 | elif test "x$build_alias" != "x$host_alias"; then |
1264 | cross_compiling=yes | |
1265 | fi | |
1266 | fi | |
1267 | ||
1268 | ac_tool_prefix= | |
1269 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1270 | ||
1271 | test "$silent" = yes && exec 6>/dev/null | |
1272 | ||
1273 | ||
1274 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1275 | ac_ls_di=`ls -di .` && | |
1276 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
08c2568c | 1277 | as_fn_error $? "working directory cannot be determined" |
db137867 | 1278 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
08c2568c | 1279 | as_fn_error $? "pwd does not report name of working directory" |
db137867 AC |
1280 | |
1281 | ||
1282 | # Find the source files, if location was not specified. | |
1283 | if test -z "$srcdir"; then | |
1284 | ac_srcdir_defaulted=yes | |
1285 | # Try the directory containing this script, then the parent directory. | |
030272f3 VY |
1286 | ac_confdir=`$as_dirname -- "$as_myself" || |
1287 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1288 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1289 | X"$as_myself" : 'X\(//\)$' \| \ | |
1290 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1291 | $as_echo X"$as_myself" | | |
db137867 AC |
1292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1293 | s//\1/ | |
1294 | q | |
1295 | } | |
1296 | /^X\(\/\/\)[^/].*/{ | |
1297 | s//\1/ | |
1298 | q | |
1299 | } | |
1300 | /^X\(\/\/\)$/{ | |
1301 | s//\1/ | |
1302 | q | |
1303 | } | |
1304 | /^X\(\/\).*/{ | |
1305 | s//\1/ | |
1306 | q | |
1307 | } | |
1308 | s/.*/./; q'` | |
1309 | srcdir=$ac_confdir | |
1310 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1311 | srcdir=.. | |
1312 | fi | |
1313 | else | |
1314 | ac_srcdir_defaulted=no | |
1315 | fi | |
1316 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1317 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
08c2568c | 1318 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
db137867 AC |
1319 | fi |
1320 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1321 | ac_abs_confdir=`( | |
08c2568c | 1322 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
db137867 AC |
1323 | pwd)` |
1324 | # When building in place, set srcdir=. | |
1325 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1326 | srcdir=. | |
1327 | fi | |
1328 | # Remove unnecessary trailing slashes from srcdir. | |
1329 | # Double slashes in file names in object file debugging info | |
1330 | # mess up M-x gdb in Emacs. | |
1331 | case $srcdir in | |
1332 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1333 | esac | |
1334 | for ac_var in $ac_precious_vars; do | |
1335 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1336 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1337 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1338 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1339 | done | |
1340 | ||
1341 | # | |
1342 | # Report the --help message. | |
1343 | # | |
1344 | if test "$ac_init_help" = "long"; then | |
1345 | # Omit some internal or obsolete options to make the list less imposing. | |
1346 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1347 | cat <<_ACEOF | |
1348 | \`configure' configures libratbox devel to adapt to many kinds of systems. | |
1349 | ||
1350 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1351 | ||
1352 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1353 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1354 | ||
1355 | Defaults for the options are specified in brackets. | |
1356 | ||
1357 | Configuration: | |
1358 | -h, --help display this help and exit | |
1359 | --help=short display options specific to this package | |
1360 | --help=recursive display the short help of all the included packages | |
1361 | -V, --version display version information and exit | |
08c2568c | 1362 | -q, --quiet, --silent do not print \`checking ...' messages |
db137867 AC |
1363 | --cache-file=FILE cache test results in FILE [disabled] |
1364 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1365 | -n, --no-create do not create output files | |
1366 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1367 | ||
1368 | Installation directories: | |
1369 | --prefix=PREFIX install architecture-independent files in PREFIX | |
030272f3 | 1370 | [$ac_default_prefix] |
db137867 | 1371 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
030272f3 | 1372 | [PREFIX] |
db137867 AC |
1373 | |
1374 | By default, \`make install' will install all the files in | |
1375 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1376 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1377 | for instance \`--prefix=\$HOME'. | |
1378 | ||
1379 | For better control, use the options below. | |
1380 | ||
1381 | Fine tuning of the installation directories: | |
030272f3 VY |
1382 | --bindir=DIR user executables [EPREFIX/bin] |
1383 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1384 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1385 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1386 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1387 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1388 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1389 | --includedir=DIR C header files [PREFIX/include] | |
1390 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1391 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1392 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1393 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1394 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1395 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1396 | --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox] | |
1397 | --htmldir=DIR html documentation [DOCDIR] | |
1398 | --dvidir=DIR dvi documentation [DOCDIR] | |
1399 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1400 | --psdir=DIR ps documentation [DOCDIR] | |
db137867 AC |
1401 | _ACEOF |
1402 | ||
1403 | cat <<\_ACEOF | |
1404 | ||
1405 | Program names: | |
1406 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1407 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1408 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1409 | ||
1410 | System types: | |
1411 | --build=BUILD configure for building on BUILD [guessed] | |
1412 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1413 | _ACEOF | |
1414 | fi | |
1415 | ||
1416 | if test -n "$ac_init_help"; then | |
1417 | case $ac_init_help in | |
1418 | short | recursive ) echo "Configuration of libratbox devel:";; | |
1419 | esac | |
1420 | cat <<\_ACEOF | |
1421 | ||
1422 | Optional Features: | |
030272f3 | 1423 | --disable-option-checking ignore unrecognized --enable/--with options |
db137867 AC |
1424 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1425 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
bf4e01a4 AC |
1426 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1427 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1428 | --enable-dependency-tracking | |
1429 | do not reject slow dependency extractors | |
1430 | --disable-dependency-tracking | |
1431 | speeds up one-time build | |
db137867 AC |
1432 | --enable-static[=PKGS] build static libraries [default=no] |
1433 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
bf4e01a4 AC |
1434 | --enable-maintainer-mode |
1435 | enable make rules and dependencies not useful (and | |
1436 | sometimes confusing) to the casual installer | |
db137867 AC |
1437 | --enable-fast-install[=PKGS] |
1438 | optimize for fast installation [default=yes] | |
1439 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1440 | --disable-ipv6 Disable IPv6 support | |
1441 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1442 | --disable-openssl Disable OpenSSL support. | |
bf4e01a4 AC |
1443 | --enable-gnutls Enable GnuTLS support. |
1444 | --disable-gnutls Disable GnuTLS support. | |
db137867 AC |
1445 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1446 | hard(aborts the daemon) | |
1447 | --enable-profile Enable profiling | |
1448 | --disable-balloc Disable the block allocator. | |
1449 | --enable-warnings Enable all sorts of warnings for debugging. | |
1450 | ||
1451 | Optional Packages: | |
1452 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1453 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
a949ab1a | 1454 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
db137867 | 1455 | both] |
7083c021 | 1456 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b6d0720c AC |
1457 | --with-sysroot=DIR Search for dependent libraries within DIR |
1458 | (or the compiler's sysroot if not specified). | |
db137867 AC |
1459 | |
1460 | Some influential environment variables: | |
1461 | CC C compiler command | |
1462 | CFLAGS C compiler flags | |
1463 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1464 | nonstandard directory <lib dir> | |
1465 | LIBS libraries to pass to the linker, e.g. -l<library> | |
96f4052b | 1466 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
db137867 AC |
1467 | you have headers in a nonstandard directory <include dir> |
1468 | CPP C preprocessor | |
bf4e01a4 AC |
1469 | PKG_CONFIG path to pkg-config utility |
1470 | PKG_CONFIG_PATH | |
1471 | directories to add to pkg-config's search path | |
1472 | PKG_CONFIG_LIBDIR | |
1473 | path overriding pkg-config's built-in search path | |
1474 | GNUTLS_CFLAGS | |
1475 | C compiler flags for GNUTLS, overriding pkg-config | |
1476 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | |
db137867 AC |
1477 | |
1478 | Use these variables to override the choices made by `configure' or to help | |
1479 | it to find libraries and programs with nonstandard names/locations. | |
1480 | ||
7083c021 | 1481 | Report bugs to the package provider. |
db137867 AC |
1482 | _ACEOF |
1483 | ac_status=$? | |
1484 | fi | |
1485 | ||
1486 | if test "$ac_init_help" = "recursive"; then | |
1487 | # If there are subdirs, report their specific --help. | |
1488 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
030272f3 VY |
1489 | test -d "$ac_dir" || |
1490 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1491 | continue | |
db137867 AC |
1492 | ac_builddir=. |
1493 | ||
1494 | case "$ac_dir" in | |
1495 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1496 | *) | |
030272f3 | 1497 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
db137867 | 1498 | # A ".." for each directory in $ac_dir_suffix. |
030272f3 | 1499 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
db137867 AC |
1500 | case $ac_top_builddir_sub in |
1501 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1502 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1503 | esac ;; | |
1504 | esac | |
1505 | ac_abs_top_builddir=$ac_pwd | |
1506 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1507 | # for backward compatibility: | |
1508 | ac_top_builddir=$ac_top_build_prefix | |
1509 | ||
1510 | case $srcdir in | |
1511 | .) # We are building in place. | |
1512 | ac_srcdir=. | |
1513 | ac_top_srcdir=$ac_top_builddir_sub | |
1514 | ac_abs_top_srcdir=$ac_pwd ;; | |
1515 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1516 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1517 | ac_top_srcdir=$srcdir | |
1518 | ac_abs_top_srcdir=$srcdir ;; | |
1519 | *) # Relative name. | |
1520 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1521 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1522 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1523 | esac | |
1524 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1525 | ||
1526 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1527 | # Check for guested configure. | |
1528 | if test -f "$ac_srcdir/configure.gnu"; then | |
1529 | echo && | |
1530 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1531 | elif test -f "$ac_srcdir/configure"; then | |
1532 | echo && | |
1533 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1534 | else | |
030272f3 | 1535 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
db137867 AC |
1536 | fi || ac_status=$? |
1537 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1538 | done | |
1539 | fi | |
1540 | ||
1541 | test -n "$ac_init_help" && exit $ac_status | |
1542 | if $ac_init_version; then | |
1543 | cat <<\_ACEOF | |
1544 | libratbox configure devel | |
bf4e01a4 | 1545 | generated by GNU Autoconf 2.69 |
db137867 | 1546 | |
bf4e01a4 | 1547 | Copyright (C) 2012 Free Software Foundation, Inc. |
db137867 AC |
1548 | This configure script is free software; the Free Software Foundation |
1549 | gives unlimited permission to copy, distribute and modify it. | |
1550 | ||
030272f3 | 1551 | $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 AC |
1552 | _ACEOF |
1553 | exit | |
1554 | fi | |
7083c021 AC |
1555 | |
1556 | ## ------------------------ ## | |
1557 | ## Autoconf initialization. ## | |
1558 | ## ------------------------ ## | |
1559 | ||
1560 | # ac_fn_c_try_compile LINENO | |
1561 | # -------------------------- | |
1562 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1563 | ac_fn_c_try_compile () | |
1564 | { | |
1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1566 | rm -f conftest.$ac_objext | |
1567 | if { { ac_try="$ac_compile" | |
1568 | case "(($ac_try" in | |
1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1570 | *) ac_try_echo=$ac_try;; | |
1571 | esac | |
1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1573 | $as_echo "$ac_try_echo"; } >&5 | |
1574 | (eval "$ac_compile") 2>conftest.err | |
1575 | ac_status=$? | |
1576 | if test -s conftest.err; then | |
1577 | grep -v '^ *+' conftest.err >conftest.er1 | |
1578 | cat conftest.er1 >&5 | |
1579 | mv -f conftest.er1 conftest.err | |
1580 | fi | |
1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1582 | test $ac_status = 0; } && { | |
1583 | test -z "$ac_c_werror_flag" || | |
1584 | test ! -s conftest.err | |
1585 | } && test -s conftest.$ac_objext; then : | |
1586 | ac_retval=0 | |
1587 | else | |
1588 | $as_echo "$as_me: failed program was:" >&5 | |
1589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1590 | ||
1591 | ac_retval=1 | |
1592 | fi | |
08c2568c | 1593 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1594 | as_fn_set_status $ac_retval |
7083c021 AC |
1595 | |
1596 | } # ac_fn_c_try_compile | |
1597 | ||
1598 | # ac_fn_c_try_cpp LINENO | |
1599 | # ---------------------- | |
1600 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1601 | ac_fn_c_try_cpp () | |
1602 | { | |
1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1604 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1605 | case "(($ac_try" in | |
1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1607 | *) ac_try_echo=$ac_try;; | |
1608 | esac | |
1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1610 | $as_echo "$ac_try_echo"; } >&5 | |
1611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1612 | ac_status=$? | |
1613 | if test -s conftest.err; then | |
1614 | grep -v '^ *+' conftest.err >conftest.er1 | |
1615 | cat conftest.er1 >&5 | |
1616 | mv -f conftest.er1 conftest.err | |
1617 | fi | |
1618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
08c2568c | 1619 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1620 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1621 | test ! -s conftest.err | |
1622 | }; then : | |
1623 | ac_retval=0 | |
1624 | else | |
1625 | $as_echo "$as_me: failed program was:" >&5 | |
1626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1627 | ||
1628 | ac_retval=1 | |
1629 | fi | |
08c2568c | 1630 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1631 | as_fn_set_status $ac_retval |
7083c021 AC |
1632 | |
1633 | } # ac_fn_c_try_cpp | |
1634 | ||
1635 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1636 | # ------------------------------------------------------- | |
1637 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1638 | # the include files in INCLUDES and setting the cache variable VAR | |
1639 | # accordingly. | |
1640 | ac_fn_c_check_header_mongrel () | |
1641 | { | |
1642 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
08c2568c | 1643 | if eval \${$3+:} false; then : |
7083c021 AC |
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1645 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1646 | if eval \${$3+:} false; then : |
7083c021 AC |
1647 | $as_echo_n "(cached) " >&6 |
1648 | fi | |
1649 | eval ac_res=\$$3 | |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1651 | $as_echo "$ac_res" >&6; } | |
1652 | else | |
1653 | # Is the header compilable? | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1655 | $as_echo_n "checking $2 usability... " >&6; } | |
1656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1657 | /* end confdefs.h. */ | |
1658 | $4 | |
1659 | #include <$2> | |
1660 | _ACEOF | |
1661 | if ac_fn_c_try_compile "$LINENO"; then : | |
1662 | ac_header_compiler=yes | |
1663 | else | |
1664 | ac_header_compiler=no | |
1665 | fi | |
1666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1668 | $as_echo "$ac_header_compiler" >&6; } | |
1669 | ||
1670 | # Is the header present? | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1672 | $as_echo_n "checking $2 presence... " >&6; } | |
1673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1674 | /* end confdefs.h. */ | |
1675 | #include <$2> | |
1676 | _ACEOF | |
1677 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1678 | ac_header_preproc=yes | |
1679 | else | |
1680 | ac_header_preproc=no | |
1681 | fi | |
08c2568c | 1682 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1684 | $as_echo "$ac_header_preproc" >&6; } | |
1685 | ||
1686 | # So? What about this header? | |
1687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1688 | yes:no: ) | |
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1690 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1692 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1693 | ;; | |
1694 | no:yes:* ) | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1696 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1698 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1700 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1702 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1704 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1705 | ;; | |
1706 | esac | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1708 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1709 | if eval \${$3+:} false; then : |
7083c021 AC |
1710 | $as_echo_n "(cached) " >&6 |
1711 | else | |
1712 | eval "$3=\$ac_header_compiler" | |
1713 | fi | |
1714 | eval ac_res=\$$3 | |
1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1716 | $as_echo "$ac_res" >&6; } | |
1717 | fi | |
08c2568c | 1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1719 | |
1720 | } # ac_fn_c_check_header_mongrel | |
1721 | ||
1722 | # ac_fn_c_try_run LINENO | |
1723 | # ---------------------- | |
1724 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1725 | # that executables *can* be run. | |
1726 | ac_fn_c_try_run () | |
1727 | { | |
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1729 | if { { ac_try="$ac_link" | |
1730 | case "(($ac_try" in | |
1731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1732 | *) ac_try_echo=$ac_try;; | |
1733 | esac | |
1734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1735 | $as_echo "$ac_try_echo"; } >&5 | |
1736 | (eval "$ac_link") 2>&5 | |
1737 | ac_status=$? | |
1738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1739 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1740 | { { case "(($ac_try" in | |
1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1742 | *) ac_try_echo=$ac_try;; | |
1743 | esac | |
1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1745 | $as_echo "$ac_try_echo"; } >&5 | |
1746 | (eval "$ac_try") 2>&5 | |
1747 | ac_status=$? | |
1748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1749 | test $ac_status = 0; }; }; then : | |
1750 | ac_retval=0 | |
1751 | else | |
1752 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1753 | $as_echo "$as_me: failed program was:" >&5 | |
1754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1755 | ||
1756 | ac_retval=$ac_status | |
1757 | fi | |
1758 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
08c2568c | 1759 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1760 | as_fn_set_status $ac_retval |
7083c021 AC |
1761 | |
1762 | } # ac_fn_c_try_run | |
1763 | ||
1764 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1765 | # ------------------------------------------------------- | |
1766 | # Tests whether HEADER exists and can be compiled using the include files in | |
1767 | # INCLUDES, setting the cache variable VAR accordingly. | |
1768 | ac_fn_c_check_header_compile () | |
1769 | { | |
1770 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1772 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1773 | if eval \${$3+:} false; then : |
7083c021 AC |
1774 | $as_echo_n "(cached) " >&6 |
1775 | else | |
1776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1777 | /* end confdefs.h. */ | |
1778 | $4 | |
1779 | #include <$2> | |
1780 | _ACEOF | |
1781 | if ac_fn_c_try_compile "$LINENO"; then : | |
1782 | eval "$3=yes" | |
1783 | else | |
1784 | eval "$3=no" | |
1785 | fi | |
1786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1787 | fi | |
1788 | eval ac_res=\$$3 | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1790 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1792 | |
1793 | } # ac_fn_c_check_header_compile | |
1794 | ||
1795 | # ac_fn_c_try_link LINENO | |
1796 | # ----------------------- | |
1797 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1798 | ac_fn_c_try_link () | |
1799 | { | |
1800 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1802 | if { { ac_try="$ac_link" | |
1803 | case "(($ac_try" in | |
1804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1805 | *) ac_try_echo=$ac_try;; | |
1806 | esac | |
1807 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1808 | $as_echo "$ac_try_echo"; } >&5 | |
1809 | (eval "$ac_link") 2>conftest.err | |
1810 | ac_status=$? | |
1811 | if test -s conftest.err; then | |
1812 | grep -v '^ *+' conftest.err >conftest.er1 | |
1813 | cat conftest.er1 >&5 | |
1814 | mv -f conftest.er1 conftest.err | |
1815 | fi | |
1816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1817 | test $ac_status = 0; } && { | |
1818 | test -z "$ac_c_werror_flag" || | |
1819 | test ! -s conftest.err | |
1820 | } && test -s conftest$ac_exeext && { | |
1821 | test "$cross_compiling" = yes || | |
bf4e01a4 | 1822 | test -x conftest$ac_exeext |
7083c021 AC |
1823 | }; then : |
1824 | ac_retval=0 | |
1825 | else | |
1826 | $as_echo "$as_me: failed program was:" >&5 | |
1827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1828 | ||
1829 | ac_retval=1 | |
1830 | fi | |
1831 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1832 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1833 | # interfere with the next link command; also delete a directory that is | |
1834 | # left behind by Apple's compiler. We do this before executing the actions. | |
1835 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
08c2568c | 1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1837 | as_fn_set_status $ac_retval |
7083c021 AC |
1838 | |
1839 | } # ac_fn_c_try_link | |
1840 | ||
1841 | # ac_fn_c_check_func LINENO FUNC VAR | |
1842 | # ---------------------------------- | |
1843 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1844 | ac_fn_c_check_func () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1848 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1849 | if eval \${$3+:} false; then : |
7083c021 AC |
1850 | $as_echo_n "(cached) " >&6 |
1851 | else | |
1852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1853 | /* end confdefs.h. */ | |
1854 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1856 | #define $2 innocuous_$2 | |
1857 | ||
1858 | /* System header to define __stub macros and hopefully few prototypes, | |
1859 | which can conflict with char $2 (); below. | |
1860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1861 | <limits.h> exists even on freestanding compilers. */ | |
1862 | ||
1863 | #ifdef __STDC__ | |
1864 | # include <limits.h> | |
1865 | #else | |
1866 | # include <assert.h> | |
1867 | #endif | |
1868 | ||
1869 | #undef $2 | |
1870 | ||
1871 | /* Override any GCC internal prototype to avoid an error. | |
1872 | Use char because int might match the return type of a GCC | |
1873 | builtin and then its argument prototype would still apply. */ | |
1874 | #ifdef __cplusplus | |
1875 | extern "C" | |
1876 | #endif | |
1877 | char $2 (); | |
1878 | /* The GNU C library defines this for functions which it implements | |
1879 | to always fail with ENOSYS. Some functions are actually named | |
1880 | something starting with __ and the normal name is an alias. */ | |
1881 | #if defined __stub_$2 || defined __stub___$2 | |
1882 | choke me | |
1883 | #endif | |
1884 | ||
1885 | int | |
1886 | main () | |
1887 | { | |
1888 | return $2 (); | |
1889 | ; | |
1890 | return 0; | |
1891 | } | |
1892 | _ACEOF | |
1893 | if ac_fn_c_try_link "$LINENO"; then : | |
1894 | eval "$3=yes" | |
1895 | else | |
1896 | eval "$3=no" | |
1897 | fi | |
1898 | rm -f core conftest.err conftest.$ac_objext \ | |
1899 | conftest$ac_exeext conftest.$ac_ext | |
1900 | fi | |
1901 | eval ac_res=\$$3 | |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1903 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1904 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1905 | |
1906 | } # ac_fn_c_check_func | |
1907 | ||
1908 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1909 | # ------------------------------------------- | |
1910 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1911 | # variable VAR accordingly. | |
1912 | ac_fn_c_check_type () | |
1913 | { | |
1914 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1916 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1917 | if eval \${$3+:} false; then : |
7083c021 AC |
1918 | $as_echo_n "(cached) " >&6 |
1919 | else | |
1920 | eval "$3=no" | |
1921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1922 | /* end confdefs.h. */ | |
1923 | $4 | |
1924 | int | |
1925 | main () | |
1926 | { | |
1927 | if (sizeof ($2)) | |
1928 | return 0; | |
1929 | ; | |
1930 | return 0; | |
1931 | } | |
1932 | _ACEOF | |
1933 | if ac_fn_c_try_compile "$LINENO"; then : | |
1934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1935 | /* end confdefs.h. */ | |
1936 | $4 | |
1937 | int | |
1938 | main () | |
1939 | { | |
1940 | if (sizeof (($2))) | |
1941 | return 0; | |
1942 | ; | |
1943 | return 0; | |
1944 | } | |
1945 | _ACEOF | |
1946 | if ac_fn_c_try_compile "$LINENO"; then : | |
1947 | ||
1948 | else | |
1949 | eval "$3=yes" | |
1950 | fi | |
1951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1952 | fi | |
1953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1954 | fi | |
1955 | eval ac_res=\$$3 | |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1957 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1958 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1959 | |
1960 | } # ac_fn_c_check_type | |
1961 | ||
1962 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1963 | # ---------------------------------------------------- | |
1964 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1965 | # INCLUDES, setting cache variable VAR accordingly. | |
1966 | ac_fn_c_check_member () | |
1967 | { | |
1968 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1970 | $as_echo_n "checking for $2.$3... " >&6; } | |
08c2568c | 1971 | if eval \${$4+:} false; then : |
7083c021 AC |
1972 | $as_echo_n "(cached) " >&6 |
1973 | else | |
1974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1975 | /* end confdefs.h. */ | |
1976 | $5 | |
1977 | int | |
1978 | main () | |
1979 | { | |
1980 | static $2 ac_aggr; | |
1981 | if (ac_aggr.$3) | |
1982 | return 0; | |
1983 | ; | |
1984 | return 0; | |
1985 | } | |
1986 | _ACEOF | |
1987 | if ac_fn_c_try_compile "$LINENO"; then : | |
1988 | eval "$4=yes" | |
1989 | else | |
1990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1991 | /* end confdefs.h. */ | |
1992 | $5 | |
1993 | int | |
1994 | main () | |
1995 | { | |
1996 | static $2 ac_aggr; | |
1997 | if (sizeof ac_aggr.$3) | |
1998 | return 0; | |
1999 | ; | |
2000 | return 0; | |
2001 | } | |
2002 | _ACEOF | |
2003 | if ac_fn_c_try_compile "$LINENO"; then : | |
2004 | eval "$4=yes" | |
2005 | else | |
2006 | eval "$4=no" | |
2007 | fi | |
2008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2009 | fi | |
2010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2011 | fi | |
2012 | eval ac_res=\$$4 | |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2014 | $as_echo "$ac_res" >&6; } | |
08c2568c | 2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
2016 | |
2017 | } # ac_fn_c_check_member | |
db137867 AC |
2018 | cat >config.log <<_ACEOF |
2019 | This file contains any messages produced by compilers while | |
2020 | running configure, to aid debugging if configure makes a mistake. | |
2021 | ||
2022 | It was created by libratbox $as_me devel, which was | |
bf4e01a4 | 2023 | generated by GNU Autoconf 2.69. Invocation command line was |
db137867 AC |
2024 | |
2025 | $ $0 $@ | |
2026 | ||
2027 | _ACEOF | |
2028 | exec 5>>config.log | |
2029 | { | |
2030 | cat <<_ASUNAME | |
2031 | ## --------- ## | |
2032 | ## Platform. ## | |
2033 | ## --------- ## | |
2034 | ||
2035 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2036 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2037 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2038 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2039 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2040 | ||
2041 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2042 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2043 | ||
2044 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2045 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2046 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2047 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2048 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2049 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2050 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2051 | ||
2052 | _ASUNAME | |
2053 | ||
2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2055 | for as_dir in $PATH | |
2056 | do | |
2057 | IFS=$as_save_IFS | |
2058 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
2059 | $as_echo "PATH: $as_dir" |
2060 | done | |
db137867 AC |
2061 | IFS=$as_save_IFS |
2062 | ||
2063 | } >&5 | |
2064 | ||
2065 | cat >&5 <<_ACEOF | |
2066 | ||
2067 | ||
2068 | ## ----------- ## | |
2069 | ## Core tests. ## | |
2070 | ## ----------- ## | |
2071 | ||
2072 | _ACEOF | |
2073 | ||
2074 | ||
2075 | # Keep a trace of the command line. | |
2076 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2077 | # Strip out --silent because we don't want to record it for future runs. | |
2078 | # Also quote any args containing shell meta-characters. | |
2079 | # Make two passes to allow for proper duplicate-argument suppression. | |
2080 | ac_configure_args= | |
2081 | ac_configure_args0= | |
2082 | ac_configure_args1= | |
2083 | ac_must_keep_next=false | |
2084 | for ac_pass in 1 2 | |
2085 | do | |
2086 | for ac_arg | |
2087 | do | |
2088 | case $ac_arg in | |
2089 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2090 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2091 | | -silent | --silent | --silen | --sile | --sil) | |
2092 | continue ;; | |
2093 | *\'*) | |
030272f3 | 2094 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2095 | esac |
2096 | case $ac_pass in | |
7083c021 | 2097 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
db137867 | 2098 | 2) |
7083c021 | 2099 | as_fn_append ac_configure_args1 " '$ac_arg'" |
db137867 AC |
2100 | if test $ac_must_keep_next = true; then |
2101 | ac_must_keep_next=false # Got value, back to normal. | |
2102 | else | |
2103 | case $ac_arg in | |
2104 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2105 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2106 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2107 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2108 | case "$ac_configure_args0 " in | |
2109 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2110 | esac | |
2111 | ;; | |
2112 | -* ) ac_must_keep_next=true ;; | |
2113 | esac | |
2114 | fi | |
7083c021 | 2115 | as_fn_append ac_configure_args " '$ac_arg'" |
db137867 AC |
2116 | ;; |
2117 | esac | |
2118 | done | |
2119 | done | |
7083c021 AC |
2120 | { ac_configure_args0=; unset ac_configure_args0;} |
2121 | { ac_configure_args1=; unset ac_configure_args1;} | |
db137867 AC |
2122 | |
2123 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2124 | # config.log. We remove comments because anyway the quotes in there | |
2125 | # would cause problems or look ugly. | |
2126 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2127 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2128 | trap 'exit_status=$? | |
2129 | # Save into config.log some information that might help in debugging. | |
2130 | { | |
2131 | echo | |
2132 | ||
08c2568c | 2133 | $as_echo "## ---------------- ## |
db137867 | 2134 | ## Cache variables. ## |
08c2568c | 2135 | ## ---------------- ##" |
db137867 AC |
2136 | echo |
2137 | # The following way of writing the cache mishandles newlines in values, | |
2138 | ( | |
2139 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2140 | eval ac_val=\$$ac_var | |
2141 | case $ac_val in #( | |
2142 | *${as_nl}*) | |
2143 | case $ac_var in #( | |
7083c021 | 2144 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
030272f3 | 2145 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
db137867 AC |
2146 | esac |
2147 | case $ac_var in #( | |
2148 | _ | IFS | as_nl) ;; #( | |
030272f3 | 2149 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7083c021 | 2150 | *) { eval $ac_var=; unset $ac_var;} ;; |
db137867 AC |
2151 | esac ;; |
2152 | esac | |
2153 | done | |
2154 | (set) 2>&1 | | |
2155 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2156 | *${as_nl}ac_space=\ *) | |
2157 | sed -n \ | |
2158 | "s/'\''/'\''\\\\'\'''\''/g; | |
2159 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2160 | ;; #( | |
2161 | *) | |
2162 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2163 | ;; | |
2164 | esac | | |
2165 | sort | |
2166 | ) | |
2167 | echo | |
2168 | ||
08c2568c | 2169 | $as_echo "## ----------------- ## |
db137867 | 2170 | ## Output variables. ## |
08c2568c | 2171 | ## ----------------- ##" |
db137867 AC |
2172 | echo |
2173 | for ac_var in $ac_subst_vars | |
2174 | do | |
2175 | eval ac_val=\$$ac_var | |
2176 | case $ac_val in | |
030272f3 | 2177 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 2178 | esac |
030272f3 | 2179 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
2180 | done | sort |
2181 | echo | |
2182 | ||
2183 | if test -n "$ac_subst_files"; then | |
08c2568c | 2184 | $as_echo "## ------------------- ## |
db137867 | 2185 | ## File substitutions. ## |
08c2568c | 2186 | ## ------------------- ##" |
db137867 AC |
2187 | echo |
2188 | for ac_var in $ac_subst_files | |
2189 | do | |
2190 | eval ac_val=\$$ac_var | |
2191 | case $ac_val in | |
030272f3 | 2192 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 2193 | esac |
030272f3 | 2194 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
2195 | done | sort |
2196 | echo | |
2197 | fi | |
2198 | ||
2199 | if test -s confdefs.h; then | |
08c2568c | 2200 | $as_echo "## ----------- ## |
db137867 | 2201 | ## confdefs.h. ## |
08c2568c | 2202 | ## ----------- ##" |
db137867 AC |
2203 | echo |
2204 | cat confdefs.h | |
2205 | echo | |
2206 | fi | |
2207 | test "$ac_signal" != 0 && | |
030272f3 VY |
2208 | $as_echo "$as_me: caught signal $ac_signal" |
2209 | $as_echo "$as_me: exit $exit_status" | |
db137867 AC |
2210 | } >&5 |
2211 | rm -f core *.core core.conftest.* && | |
2212 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2213 | exit $exit_status | |
2214 | ' 0 | |
2215 | for ac_signal in 1 2 13 15; do | |
7083c021 | 2216 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
db137867 AC |
2217 | done |
2218 | ac_signal=0 | |
2219 | ||
2220 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2221 | rm -f -r conftest* confdefs.h | |
2222 | ||
7083c021 AC |
2223 | $as_echo "/* confdefs.h */" > confdefs.h |
2224 | ||
db137867 AC |
2225 | # Predefined preprocessor variables. |
2226 | ||
2227 | cat >>confdefs.h <<_ACEOF | |
2228 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2229 | _ACEOF | |
2230 | ||
db137867 AC |
2231 | cat >>confdefs.h <<_ACEOF |
2232 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2233 | _ACEOF | |
2234 | ||
db137867 AC |
2235 | cat >>confdefs.h <<_ACEOF |
2236 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2237 | _ACEOF | |
2238 | ||
db137867 AC |
2239 | cat >>confdefs.h <<_ACEOF |
2240 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2241 | _ACEOF | |
2242 | ||
db137867 AC |
2243 | cat >>confdefs.h <<_ACEOF |
2244 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2245 | _ACEOF | |
2246 | ||
7083c021 AC |
2247 | cat >>confdefs.h <<_ACEOF |
2248 | #define PACKAGE_URL "$PACKAGE_URL" | |
2249 | _ACEOF | |
2250 | ||
db137867 AC |
2251 | |
2252 | # Let the site file select an alternate cache file if it wants to. | |
030272f3 VY |
2253 | # Prefer an explicitly selected file to automatically selected ones. |
2254 | ac_site_file1=NONE | |
2255 | ac_site_file2=NONE | |
db137867 | 2256 | if test -n "$CONFIG_SITE"; then |
08c2568c EM |
2257 | # We do not want a PATH search for config.site. |
2258 | case $CONFIG_SITE in #(( | |
2259 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2260 | */*) ac_site_file1=$CONFIG_SITE;; | |
2261 | *) ac_site_file1=./$CONFIG_SITE;; | |
2262 | esac | |
db137867 | 2263 | elif test "x$prefix" != xNONE; then |
030272f3 VY |
2264 | ac_site_file1=$prefix/share/config.site |
2265 | ac_site_file2=$prefix/etc/config.site | |
db137867 | 2266 | else |
030272f3 VY |
2267 | ac_site_file1=$ac_default_prefix/share/config.site |
2268 | ac_site_file2=$ac_default_prefix/etc/config.site | |
db137867 | 2269 | fi |
030272f3 | 2270 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
db137867 | 2271 | do |
030272f3 | 2272 | test "x$ac_site_file" = xNONE && continue |
96f4052b | 2273 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 | 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
030272f3 | 2275 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
db137867 | 2276 | sed 's/^/| /' "$ac_site_file" >&5 |
08c2568c EM |
2277 | . "$ac_site_file" \ |
2278 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2279 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2280 | as_fn_error $? "failed to load site script $ac_site_file | |
2281 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 AC |
2282 | fi |
2283 | done | |
2284 | ||
2285 | if test -r "$cache_file"; then | |
96f4052b AC |
2286 | # Some versions of bash will fail to source /dev/null (special files |
2287 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2288 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 | 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
030272f3 | 2290 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
db137867 AC |
2291 | case $cache_file in |
2292 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2293 | *) . "./$cache_file";; | |
2294 | esac | |
2295 | fi | |
2296 | else | |
7083c021 | 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
030272f3 | 2298 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
db137867 AC |
2299 | >$cache_file |
2300 | fi | |
2301 | ||
96f4052b AC |
2302 | as_fn_append ac_header_list " stdlib.h" |
2303 | as_fn_append ac_header_list " unistd.h" | |
2304 | as_fn_append ac_header_list " sys/param.h" | |
db137867 AC |
2305 | # Check that the precious variables saved in the cache have kept the same |
2306 | # value. | |
2307 | ac_cache_corrupted=false | |
2308 | for ac_var in $ac_precious_vars; do | |
2309 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2310 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2311 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2312 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2313 | case $ac_old_set,$ac_new_set in | |
2314 | set,) | |
7083c021 | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
030272f3 | 2316 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
db137867 AC |
2317 | ac_cache_corrupted=: ;; |
2318 | ,set) | |
7083c021 | 2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
030272f3 | 2320 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
db137867 AC |
2321 | ac_cache_corrupted=: ;; |
2322 | ,);; | |
2323 | *) | |
2324 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
030272f3 VY |
2325 | # differences in whitespace do not lead to failure. |
2326 | ac_old_val_w=`echo x $ac_old_val` | |
2327 | ac_new_val_w=`echo x $ac_new_val` | |
2328 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
7083c021 | 2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
030272f3 VY |
2330 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2331 | ac_cache_corrupted=: | |
2332 | else | |
7083c021 | 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
030272f3 VY |
2334 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2335 | eval $ac_var=\$ac_old_val | |
2336 | fi | |
7083c021 | 2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
030272f3 | 2338 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
7083c021 | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
030272f3 | 2340 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
db137867 AC |
2341 | fi;; |
2342 | esac | |
2343 | # Pass precious variables to config.status. | |
2344 | if test "$ac_new_set" = set; then | |
2345 | case $ac_new_val in | |
030272f3 | 2346 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2347 | *) ac_arg=$ac_var=$ac_new_val ;; |
2348 | esac | |
2349 | case " $ac_configure_args " in | |
2350 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
7083c021 | 2351 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
db137867 AC |
2352 | esac |
2353 | fi | |
2354 | done | |
2355 | if $ac_cache_corrupted; then | |
7083c021 | 2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 2357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7083c021 | 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
030272f3 | 2359 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
08c2568c | 2360 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
db137867 | 2361 | fi |
7083c021 AC |
2362 | ## -------------------- ## |
2363 | ## Main body of script. ## | |
2364 | ## -------------------- ## | |
db137867 | 2365 | |
7083c021 AC |
2366 | ac_ext=c |
2367 | ac_cpp='$CPP $CPPFLAGS' | |
2368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 AC |
2371 | |
2372 | ||
bf4e01a4 | 2373 | am__api_version='1.14' |
db137867 | 2374 | |
7083c021 AC |
2375 | ac_aux_dir= |
2376 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
08c2568c EM |
2377 | if test -f "$ac_dir/install-sh"; then |
2378 | ac_aux_dir=$ac_dir | |
2379 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2380 | break | |
2381 | elif test -f "$ac_dir/install.sh"; then | |
2382 | ac_aux_dir=$ac_dir | |
2383 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2384 | break | |
2385 | elif test -f "$ac_dir/shtool"; then | |
2386 | ac_aux_dir=$ac_dir | |
2387 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2388 | break | |
2389 | fi | |
7083c021 AC |
2390 | done |
2391 | if test -z "$ac_aux_dir"; then | |
08c2568c | 2392 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7083c021 | 2393 | fi |
db137867 | 2394 | |
7083c021 AC |
2395 | # These three variables are undocumented and unsupported, |
2396 | # and are intended to be withdrawn in a future Autoconf release. | |
2397 | # They can cause serious problems if a builder's source tree is in a directory | |
2398 | # whose full name contains unusual characters. | |
2399 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2400 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2401 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
db137867 AC |
2402 | |
2403 | ||
2404 | # Find a good install program. We prefer a C program (faster), | |
2405 | # so one script is as good as another. But avoid the broken or | |
2406 | # incompatible versions: | |
2407 | # SysV /etc/install, /usr/sbin/install | |
2408 | # SunOS /usr/etc/install | |
2409 | # IRIX /sbin/install | |
2410 | # AIX /bin/install | |
2411 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2412 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2413 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2414 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2415 | # OS/2's system install, which has a completely different semantic | |
2416 | # ./install, which can be erroneously created by make from ./install.sh. | |
030272f3 | 2417 | # Reject install programs that cannot install multiple files. |
7083c021 | 2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
030272f3 | 2419 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
db137867 | 2420 | if test -z "$INSTALL"; then |
08c2568c | 2421 | if ${ac_cv_path_install+:} false; then : |
030272f3 | 2422 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2423 | else |
2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2425 | for as_dir in $PATH | |
2426 | do | |
2427 | IFS=$as_save_IFS | |
2428 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
2429 | # Account for people who put trailing slashes in PATH elements. |
2430 | case $as_dir/ in #(( | |
2431 | ./ | .// | /[cC]/* | \ | |
db137867 | 2432 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
7083c021 | 2433 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
db137867 AC |
2434 | /usr/ucb/* ) ;; |
2435 | *) | |
2436 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2437 | # Don't use installbsd from OSF since it installs stuff as root | |
2438 | # by default. | |
2439 | for ac_prog in ginstall scoinst install; do | |
2440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 2441 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
db137867 AC |
2442 | if test $ac_prog = install && |
2443 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2444 | # AIX install. It has an incompatible calling convention. | |
2445 | : | |
2446 | elif test $ac_prog = install && | |
2447 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2448 | # program-specific install script used by HP pwplus--don't use. | |
2449 | : | |
2450 | else | |
030272f3 VY |
2451 | rm -rf conftest.one conftest.two conftest.dir |
2452 | echo one > conftest.one | |
2453 | echo two > conftest.two | |
2454 | mkdir conftest.dir | |
2455 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2456 | test -s conftest.one && test -s conftest.two && | |
2457 | test -s conftest.dir/conftest.one && | |
2458 | test -s conftest.dir/conftest.two | |
2459 | then | |
2460 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2461 | break 3 | |
2462 | fi | |
db137867 AC |
2463 | fi |
2464 | fi | |
2465 | done | |
2466 | done | |
2467 | ;; | |
2468 | esac | |
030272f3 | 2469 | |
7083c021 | 2470 | done |
db137867 AC |
2471 | IFS=$as_save_IFS |
2472 | ||
030272f3 | 2473 | rm -rf conftest.one conftest.two conftest.dir |
db137867 AC |
2474 | |
2475 | fi | |
2476 | if test "${ac_cv_path_install+set}" = set; then | |
2477 | INSTALL=$ac_cv_path_install | |
2478 | else | |
2479 | # As a last resort, use the slow shell script. Don't cache a | |
2480 | # value for INSTALL within a source directory, because that will | |
2481 | # break other packages using the cache if that directory is | |
2482 | # removed, or if the value is a relative name. | |
2483 | INSTALL=$ac_install_sh | |
2484 | fi | |
2485 | fi | |
7083c021 | 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
030272f3 | 2487 | $as_echo "$INSTALL" >&6; } |
db137867 AC |
2488 | |
2489 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2490 | # It thinks the first close brace ends the variable substitution. | |
2491 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2492 | ||
2493 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2494 | ||
2495 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2496 | ||
7083c021 | 2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
030272f3 | 2498 | $as_echo_n "checking whether build environment is sane... " >&6; } |
7083c021 AC |
2499 | # Reject unsafe characters in $srcdir or the absolute working directory |
2500 | # name. Accept space and tab only in the latter. | |
2501 | am_lf=' | |
2502 | ' | |
2503 | case `pwd` in | |
2504 | *[\\\"\#\$\&\'\`$am_lf]*) | |
08c2568c | 2505 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
7083c021 AC |
2506 | esac |
2507 | case $srcdir in | |
2508 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
bf4e01a4 | 2509 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
7083c021 AC |
2510 | esac |
2511 | ||
bf4e01a4 | 2512 | # Do 'set' in a subshell so we don't clobber the current shell's |
db137867 AC |
2513 | # arguments. Must try -L first in case configure is actually a |
2514 | # symlink; some systems play weird games with the mod time of symlinks | |
2515 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2516 | # directory). | |
2517 | if ( | |
bf4e01a4 AC |
2518 | am_has_slept=no |
2519 | for am_try in 1 2; do | |
2520 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2521 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2522 | if test "$*" = "X"; then | |
2523 | # -L didn't work. | |
2524 | set X `ls -t "$srcdir/configure" conftest.file` | |
2525 | fi | |
2526 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2527 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2528 | ||
2529 | # If neither matched, then we have a broken ls. This can happen | |
2530 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2531 | # broken ls alias from the environment. This has actually | |
2532 | # happened. Such a system could not be considered "sane". | |
2533 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2534 | alias in your environment" "$LINENO" 5 | |
2535 | fi | |
2536 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2537 | break | |
2538 | fi | |
2539 | # Just in case. | |
2540 | sleep 1 | |
2541 | am_has_slept=yes | |
2542 | done | |
db137867 AC |
2543 | test "$2" = conftest.file |
2544 | ) | |
2545 | then | |
2546 | # Ok. | |
2547 | : | |
2548 | else | |
08c2568c | 2549 | as_fn_error $? "newly created file is older than distributed files! |
7083c021 | 2550 | Check your system clock" "$LINENO" 5 |
db137867 | 2551 | fi |
7083c021 | 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 | 2553 | $as_echo "yes" >&6; } |
bf4e01a4 AC |
2554 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2555 | # generated files are strictly newer. | |
2556 | am_sleep_pid= | |
2557 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2558 | ( sleep 1 ) & | |
2559 | am_sleep_pid=$! | |
2560 | fi | |
2561 | ||
2562 | rm -f conftest.file | |
2563 | ||
db137867 AC |
2564 | test "$program_prefix" != NONE && |
2565 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2566 | # Use a double $ so make ignores it. | |
2567 | test "$program_suffix" != NONE && | |
2568 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
030272f3 | 2569 | # Double any \ or $. |
db137867 | 2570 | # By default was `s,x,x', remove it if useless. |
030272f3 VY |
2571 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2572 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
db137867 AC |
2573 | |
2574 | # expand $ac_aux_dir to an absolute path | |
2575 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2576 | ||
7083c021 AC |
2577 | if test x"${MISSING+set}" != xset; then |
2578 | case $am_aux_dir in | |
2579 | *\ * | *\ *) | |
2580 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2581 | *) | |
2582 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2583 | esac | |
2584 | fi | |
db137867 | 2585 | # Use eval to expand $SHELL |
bf4e01a4 AC |
2586 | if eval "$MISSING --is-lightweight"; then |
2587 | am_missing_run="$MISSING " | |
db137867 AC |
2588 | else |
2589 | am_missing_run= | |
bf4e01a4 AC |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2591 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
db137867 AC |
2592 | fi |
2593 | ||
7083c021 AC |
2594 | if test x"${install_sh}" != xset; then |
2595 | case $am_aux_dir in | |
2596 | *\ * | *\ *) | |
2597 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2598 | *) | |
2599 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2600 | esac | |
2601 | fi | |
2602 | ||
bf4e01a4 AC |
2603 | # Installed binaries are usually stripped using 'strip' when the user |
2604 | # run "make install-strip". However 'strip' might not be the right | |
7083c021 | 2605 | # tool to use in cross-compilation environments, therefore Automake |
bf4e01a4 | 2606 | # will honor the 'STRIP' environment variable to overrule this program. |
7083c021 AC |
2607 | if test "$cross_compiling" != no; then |
2608 | if test -n "$ac_tool_prefix"; then | |
2609 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2610 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2612 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 2613 | if ${ac_cv_prog_STRIP+:} false; then : |
7083c021 AC |
2614 | $as_echo_n "(cached) " >&6 |
2615 | else | |
2616 | if test -n "$STRIP"; then | |
2617 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2618 | else | |
2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2620 | for as_dir in $PATH | |
2621 | do | |
2622 | IFS=$as_save_IFS | |
2623 | test -z "$as_dir" && as_dir=. | |
2624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 2625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2626 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2628 | break 2 | |
2629 | fi | |
2630 | done | |
2631 | done | |
2632 | IFS=$as_save_IFS | |
2633 | ||
2634 | fi | |
2635 | fi | |
2636 | STRIP=$ac_cv_prog_STRIP | |
2637 | if test -n "$STRIP"; then | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2639 | $as_echo "$STRIP" >&6; } | |
2640 | else | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2642 | $as_echo "no" >&6; } | |
2643 | fi | |
2644 | ||
2645 | ||
2646 | fi | |
2647 | if test -z "$ac_cv_prog_STRIP"; then | |
2648 | ac_ct_STRIP=$STRIP | |
2649 | # Extract the first word of "strip", so it can be a program name with args. | |
2650 | set dummy strip; ac_word=$2 | |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2652 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 2653 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
7083c021 AC |
2654 | $as_echo_n "(cached) " >&6 |
2655 | else | |
2656 | if test -n "$ac_ct_STRIP"; then | |
2657 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2658 | else | |
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2660 | for as_dir in $PATH | |
2661 | do | |
2662 | IFS=$as_save_IFS | |
2663 | test -z "$as_dir" && as_dir=. | |
2664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 2665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2666 | ac_cv_prog_ac_ct_STRIP="strip" |
2667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2668 | break 2 | |
2669 | fi | |
2670 | done | |
2671 | done | |
2672 | IFS=$as_save_IFS | |
2673 | ||
2674 | fi | |
2675 | fi | |
2676 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2677 | if test -n "$ac_ct_STRIP"; then | |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2679 | $as_echo "$ac_ct_STRIP" >&6; } | |
2680 | else | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2682 | $as_echo "no" >&6; } | |
2683 | fi | |
2684 | ||
2685 | if test "x$ac_ct_STRIP" = x; then | |
2686 | STRIP=":" | |
2687 | else | |
2688 | case $cross_compiling:$ac_tool_warned in | |
2689 | yes:) | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2692 | ac_tool_warned=yes ;; | |
2693 | esac | |
2694 | STRIP=$ac_ct_STRIP | |
2695 | fi | |
2696 | else | |
2697 | STRIP="$ac_cv_prog_STRIP" | |
2698 | fi | |
2699 | ||
2700 | fi | |
2701 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2702 | ||
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
030272f3 | 2704 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
db137867 | 2705 | if test -z "$MKDIR_P"; then |
08c2568c | 2706 | if ${ac_cv_path_mkdir+:} false; then : |
030272f3 | 2707 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2708 | else |
2709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2710 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2711 | do | |
2712 | IFS=$as_save_IFS | |
2713 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2714 | for ac_prog in mkdir gmkdir; do |
db137867 | 2715 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 2716 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
db137867 AC |
2717 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2718 | 'mkdir (GNU coreutils) '* | \ | |
2719 | 'mkdir (coreutils) '* | \ | |
2720 | 'mkdir (fileutils) '4.1*) | |
2721 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2722 | break 3;; | |
2723 | esac | |
2724 | done | |
2725 | done | |
7083c021 | 2726 | done |
db137867 AC |
2727 | IFS=$as_save_IFS |
2728 | ||
2729 | fi | |
2730 | ||
96f4052b | 2731 | test -d ./--version && rmdir ./--version |
db137867 AC |
2732 | if test "${ac_cv_path_mkdir+set}" = set; then |
2733 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2734 | else | |
2735 | # As a last resort, use the slow shell script. Don't cache a | |
2736 | # value for MKDIR_P within a source directory, because that will | |
2737 | # break other packages using the cache if that directory is | |
2738 | # removed, or if the value is a relative name. | |
db137867 AC |
2739 | MKDIR_P="$ac_install_sh -d" |
2740 | fi | |
2741 | fi | |
7083c021 | 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
030272f3 | 2743 | $as_echo "$MKDIR_P" >&6; } |
db137867 | 2744 | |
db137867 AC |
2745 | for ac_prog in gawk mawk nawk awk |
2746 | do | |
2747 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2748 | set dummy $ac_prog; ac_word=$2 | |
7083c021 | 2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 2750 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 2751 | if ${ac_cv_prog_AWK+:} false; then : |
030272f3 | 2752 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2753 | else |
2754 | if test -n "$AWK"; then | |
2755 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2756 | else | |
2757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2758 | for as_dir in $PATH | |
2759 | do | |
2760 | IFS=$as_save_IFS | |
2761 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2762 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 2763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 2764 | ac_cv_prog_AWK="$ac_prog" |
7083c021 | 2765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2766 | break 2 |
2767 | fi | |
2768 | done | |
7083c021 | 2769 | done |
db137867 AC |
2770 | IFS=$as_save_IFS |
2771 | ||
2772 | fi | |
2773 | fi | |
2774 | AWK=$ac_cv_prog_AWK | |
2775 | if test -n "$AWK"; then | |
7083c021 | 2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
030272f3 | 2777 | $as_echo "$AWK" >&6; } |
db137867 | 2778 | else |
7083c021 | 2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2780 | $as_echo "no" >&6; } |
db137867 AC |
2781 | fi |
2782 | ||
2783 | ||
2784 | test -n "$AWK" && break | |
2785 | done | |
2786 | ||
7083c021 | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
030272f3 VY |
2788 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2789 | set x ${MAKE-make} | |
2790 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
08c2568c | 2791 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
030272f3 | 2792 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2793 | else |
2794 | cat >conftest.make <<\_ACEOF | |
2795 | SHELL = /bin/sh | |
2796 | all: | |
2797 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2798 | _ACEOF | |
08c2568c | 2799 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
db137867 AC |
2800 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2801 | *@@@%%%=?*=@@@%%%*) | |
2802 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2803 | *) | |
2804 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2805 | esac | |
2806 | rm -f conftest.make | |
2807 | fi | |
2808 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7083c021 | 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 | 2810 | $as_echo "yes" >&6; } |
db137867 AC |
2811 | SET_MAKE= |
2812 | else | |
7083c021 | 2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2814 | $as_echo "no" >&6; } |
db137867 AC |
2815 | SET_MAKE="MAKE=${MAKE-make}" |
2816 | fi | |
2817 | ||
2818 | rm -rf .tst 2>/dev/null | |
2819 | mkdir .tst 2>/dev/null | |
2820 | if test -d .tst; then | |
2821 | am__leading_dot=. | |
2822 | else | |
2823 | am__leading_dot=_ | |
2824 | fi | |
2825 | rmdir .tst 2>/dev/null | |
2826 | ||
bf4e01a4 AC |
2827 | # Check whether --enable-silent-rules was given. |
2828 | if test "${enable_silent_rules+set}" = set; then : | |
2829 | enableval=$enable_silent_rules; | |
2830 | fi | |
2831 | ||
2832 | case $enable_silent_rules in # ((( | |
2833 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2834 | no) AM_DEFAULT_VERBOSITY=1;; | |
2835 | *) AM_DEFAULT_VERBOSITY=1;; | |
2836 | esac | |
2837 | am_make=${MAKE-make} | |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2839 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2840 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2841 | $as_echo_n "(cached) " >&6 | |
2842 | else | |
2843 | if $as_echo 'TRUE=$(BAR$(V)) | |
2844 | BAR0=false | |
2845 | BAR1=true | |
2846 | V=1 | |
2847 | am__doit: | |
2848 | @$(TRUE) | |
2849 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2850 | am_cv_make_support_nested_variables=yes | |
2851 | else | |
2852 | am_cv_make_support_nested_variables=no | |
2853 | fi | |
2854 | fi | |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2856 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2857 | if test $am_cv_make_support_nested_variables = yes; then | |
2858 | AM_V='$(V)' | |
2859 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2860 | else | |
2861 | AM_V=$AM_DEFAULT_VERBOSITY | |
2862 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2863 | fi | |
2864 | AM_BACKSLASH='\' | |
2865 | ||
db137867 AC |
2866 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2867 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2868 | # is not polluted with repeated "-I." | |
2869 | am__isrc=' -I$(srcdir)' | |
2870 | # test to see if srcdir already configured | |
2871 | if test -f $srcdir/config.status; then | |
08c2568c | 2872 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
db137867 AC |
2873 | fi |
2874 | fi | |
2875 | ||
2876 | # test whether we have cygpath | |
2877 | if test -z "$CYGPATH_W"; then | |
2878 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2879 | CYGPATH_W='cygpath -w' | |
2880 | else | |
2881 | CYGPATH_W=echo | |
2882 | fi | |
2883 | fi | |
2884 | ||
2885 | ||
2886 | # Define the identity of the package. | |
bf4e01a4 | 2887 | |
db137867 AC |
2888 | PACKAGE=libratbox |
2889 | VERSION=devel | |
2890 | ||
2891 | ||
2892 | # Some tools Automake needs. | |
2893 | ||
2894 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2895 | ||
2896 | ||
2897 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2898 | ||
2899 | ||
2900 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2901 | ||
2902 | ||
2903 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2904 | ||
2905 | ||
2906 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2907 | ||
bf4e01a4 AC |
2908 | # For better backward compatibility. To be removed once Automake 1.9.x |
2909 | # dies out for good. For more background, see: | |
2910 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2911 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2912 | mkdir_p='$(MKDIR_P)' | |
2913 | ||
db137867 AC |
2914 | # We need awk for the "check" target. The system "awk" is bad on |
2915 | # some platforms. | |
bf4e01a4 AC |
2916 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2917 | # in the wild :-( We should find a proper way to deprecate it ... | |
2918 | AMTAR='$${TAR-tar}' | |
2919 | ||
2920 | ||
2921 | # We'll loop over all known methods to create a tar archive until one works. | |
2922 | _am_tools='gnutar pax cpio none' | |
2923 | ||
2924 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
271a98fe | 2925 | |
db137867 | 2926 | |
db137867 AC |
2927 | |
2928 | ||
2929 | ||
2930 | ||
bf4e01a4 AC |
2931 | # POSIX will say in a future version that running "rm -f" with no argument |
2932 | # is OK; and we want to be able to make that assumption in our Makefile | |
2933 | # recipes. So use an aggressive probe to check that the usage we want is | |
2934 | # actually supported "in the wild" to an acceptable degree. | |
2935 | # See automake bug#10828. | |
2936 | # To make any issue more visible, cause the running configure to be aborted | |
2937 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2938 | # user can still override this though. | |
2939 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2940 | cat >&2 <<'END' | |
2941 | Oops! | |
db137867 | 2942 | |
bf4e01a4 AC |
2943 | Your 'rm' program seems unable to run without file operands specified |
2944 | on the command line, even when the '-f' option is present. This is contrary | |
2945 | to the behaviour of most rm programs out there, and not conforming with | |
2946 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2947 | ||
2948 | Please tell bug-automake@gnu.org about your system, including the value | |
2949 | of your $PATH and any error possibly output before this message. This | |
2950 | can help us improve future automake versions. | |
2951 | ||
2952 | END | |
2953 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2954 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2955 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2956 | echo >&2 | |
2957 | else | |
2958 | cat >&2 <<'END' | |
2959 | Aborting the configuration process, to ensure you take notice of the issue. | |
2960 | ||
2961 | You can download and install GNU coreutils to get an 'rm' implementation | |
2962 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2963 | ||
2964 | If you want to complete the configuration process using your problematic | |
2965 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2966 | to "yes", and re-run configure. | |
2967 | ||
2968 | END | |
2969 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2970 | fi | |
2971 | fi | |
db137867 AC |
2972 | |
2973 | ac_config_headers="$ac_config_headers include/libratbox_config.h" | |
2974 | ||
2975 | ||
2976 | ||
db137867 AC |
2977 | DEPDIR="${am__leading_dot}deps" |
2978 | ||
2979 | ac_config_commands="$ac_config_commands depfiles" | |
2980 | ||
2981 | ||
2982 | am_make=${MAKE-make} | |
2983 | cat > confinc << 'END' | |
2984 | am__doit: | |
7083c021 | 2985 | @echo this is the am__doit target |
db137867 AC |
2986 | .PHONY: am__doit |
2987 | END | |
2988 | # If we don't find an include directive, just comment out the code. | |
7083c021 | 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
030272f3 | 2990 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
db137867 AC |
2991 | am__include="#" |
2992 | am__quote= | |
2993 | _am_result=none | |
2994 | # First try GNU make style include. | |
2995 | echo "include confinc" > confmf | |
bf4e01a4 | 2996 | # Ignore all kinds of additional output from 'make'. |
7083c021 AC |
2997 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2998 | *the\ am__doit\ target*) | |
2999 | am__include=include | |
3000 | am__quote= | |
3001 | _am_result=GNU | |
3002 | ;; | |
3003 | esac | |
db137867 AC |
3004 | # Now try BSD make style include. |
3005 | if test "$am__include" = "#"; then | |
3006 | echo '.include "confinc"' > confmf | |
7083c021 AC |
3007 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3008 | *the\ am__doit\ target*) | |
3009 | am__include=.include | |
3010 | am__quote="\"" | |
3011 | _am_result=BSD | |
3012 | ;; | |
3013 | esac | |
db137867 AC |
3014 | fi |
3015 | ||
3016 | ||
7083c021 | 3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
030272f3 | 3018 | $as_echo "$_am_result" >&6; } |
db137867 AC |
3019 | rm -f confinc confmf |
3020 | ||
3021 | # Check whether --enable-dependency-tracking was given. | |
7083c021 | 3022 | if test "${enable_dependency_tracking+set}" = set; then : |
db137867 AC |
3023 | enableval=$enable_dependency_tracking; |
3024 | fi | |
3025 | ||
3026 | if test "x$enable_dependency_tracking" != xno; then | |
3027 | am_depcomp="$ac_aux_dir/depcomp" | |
3028 | AMDEPBACKSLASH='\' | |
bf4e01a4 | 3029 | am__nodep='_no' |
db137867 AC |
3030 | fi |
3031 | if test "x$enable_dependency_tracking" != xno; then | |
3032 | AMDEP_TRUE= | |
3033 | AMDEP_FALSE='#' | |
3034 | else | |
3035 | AMDEP_TRUE='#' | |
3036 | AMDEP_FALSE= | |
3037 | fi | |
3038 | ||
3039 | ||
3040 | ac_ext=c | |
3041 | ac_cpp='$CPP $CPPFLAGS' | |
3042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3045 | if test -n "$ac_tool_prefix"; then | |
3046 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3047 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7083c021 | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3049 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3050 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3051 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3052 | else |
3053 | if test -n "$CC"; then | |
3054 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3055 | else | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3061 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3063 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
7083c021 | 3064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3065 | break 2 |
3066 | fi | |
3067 | done | |
7083c021 | 3068 | done |
db137867 AC |
3069 | IFS=$as_save_IFS |
3070 | ||
3071 | fi | |
3072 | fi | |
3073 | CC=$ac_cv_prog_CC | |
3074 | if test -n "$CC"; then | |
7083c021 | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3076 | $as_echo "$CC" >&6; } |
db137867 | 3077 | else |
7083c021 | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3079 | $as_echo "no" >&6; } |
db137867 AC |
3080 | fi |
3081 | ||
3082 | ||
3083 | fi | |
3084 | if test -z "$ac_cv_prog_CC"; then | |
3085 | ac_ct_CC=$CC | |
3086 | # Extract the first word of "gcc", so it can be a program name with args. | |
3087 | set dummy gcc; ac_word=$2 | |
7083c021 | 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3089 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3090 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
030272f3 | 3091 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3092 | else |
3093 | if test -n "$ac_ct_CC"; then | |
3094 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3095 | else | |
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3097 | for as_dir in $PATH | |
3098 | do | |
3099 | IFS=$as_save_IFS | |
3100 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3101 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3103 | ac_cv_prog_ac_ct_CC="gcc" |
7083c021 | 3104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3105 | break 2 |
3106 | fi | |
3107 | done | |
7083c021 | 3108 | done |
db137867 AC |
3109 | IFS=$as_save_IFS |
3110 | ||
3111 | fi | |
3112 | fi | |
3113 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3114 | if test -n "$ac_ct_CC"; then | |
7083c021 | 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
030272f3 | 3116 | $as_echo "$ac_ct_CC" >&6; } |
db137867 | 3117 | else |
7083c021 | 3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3119 | $as_echo "no" >&6; } |
db137867 AC |
3120 | fi |
3121 | ||
3122 | if test "x$ac_ct_CC" = x; then | |
3123 | CC="" | |
3124 | else | |
3125 | case $cross_compiling:$ac_tool_warned in | |
3126 | yes:) | |
7083c021 | 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 3128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
3129 | ac_tool_warned=yes ;; |
3130 | esac | |
3131 | CC=$ac_ct_CC | |
3132 | fi | |
3133 | else | |
3134 | CC="$ac_cv_prog_CC" | |
3135 | fi | |
3136 | ||
3137 | if test -z "$CC"; then | |
3138 | if test -n "$ac_tool_prefix"; then | |
3139 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3140 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 | 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3142 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3143 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3144 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3145 | else |
3146 | if test -n "$CC"; then | |
3147 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3148 | else | |
3149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3150 | for as_dir in $PATH | |
3151 | do | |
3152 | IFS=$as_save_IFS | |
3153 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3154 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3156 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 3157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3158 | break 2 |
3159 | fi | |
3160 | done | |
7083c021 | 3161 | done |
db137867 AC |
3162 | IFS=$as_save_IFS |
3163 | ||
3164 | fi | |
3165 | fi | |
3166 | CC=$ac_cv_prog_CC | |
3167 | if test -n "$CC"; then | |
7083c021 | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3169 | $as_echo "$CC" >&6; } |
db137867 | 3170 | else |
7083c021 | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3172 | $as_echo "no" >&6; } |
db137867 AC |
3173 | fi |
3174 | ||
3175 | ||
3176 | fi | |
3177 | fi | |
3178 | if test -z "$CC"; then | |
3179 | # Extract the first word of "cc", so it can be a program name with args. | |
3180 | set dummy cc; ac_word=$2 | |
7083c021 | 3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3182 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3183 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3184 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3185 | else |
3186 | if test -n "$CC"; then | |
3187 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3188 | else | |
3189 | ac_prog_rejected=no | |
3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3191 | for as_dir in $PATH | |
3192 | do | |
3193 | IFS=$as_save_IFS | |
3194 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3195 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 AC |
3197 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3198 | ac_prog_rejected=yes | |
3199 | continue | |
3200 | fi | |
3201 | ac_cv_prog_CC="cc" | |
7083c021 | 3202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3203 | break 2 |
3204 | fi | |
3205 | done | |
7083c021 | 3206 | done |
db137867 AC |
3207 | IFS=$as_save_IFS |
3208 | ||
3209 | if test $ac_prog_rejected = yes; then | |
3210 | # We found a bogon in the path, so make sure we never use it. | |
3211 | set dummy $ac_cv_prog_CC | |
3212 | shift | |
3213 | if test $# != 0; then | |
3214 | # We chose a different compiler from the bogus one. | |
3215 | # However, it has the same basename, so the bogon will be chosen | |
3216 | # first if we set CC to just the basename; use the full file name. | |
3217 | shift | |
3218 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3219 | fi | |
3220 | fi | |
3221 | fi | |
3222 | fi | |
3223 | CC=$ac_cv_prog_CC | |
3224 | if test -n "$CC"; then | |
7083c021 | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3226 | $as_echo "$CC" >&6; } |
db137867 | 3227 | else |
7083c021 | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3229 | $as_echo "no" >&6; } |
db137867 AC |
3230 | fi |
3231 | ||
3232 | ||
3233 | fi | |
3234 | if test -z "$CC"; then | |
3235 | if test -n "$ac_tool_prefix"; then | |
3236 | for ac_prog in cl.exe | |
3237 | do | |
3238 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3239 | set dummy $ac_tool_prefix$ac_prog; 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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3249 | for as_dir in $PATH | |
3250 | do | |
3251 | IFS=$as_save_IFS | |
3252 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3253 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3255 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 3256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3257 | break 2 |
3258 | fi | |
3259 | done | |
7083c021 | 3260 | done |
db137867 AC |
3261 | IFS=$as_save_IFS |
3262 | ||
3263 | fi | |
3264 | fi | |
3265 | CC=$ac_cv_prog_CC | |
3266 | if test -n "$CC"; then | |
7083c021 | 3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3268 | $as_echo "$CC" >&6; } |
db137867 | 3269 | else |
7083c021 | 3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3271 | $as_echo "no" >&6; } |
db137867 AC |
3272 | fi |
3273 | ||
3274 | ||
3275 | test -n "$CC" && break | |
3276 | done | |
3277 | fi | |
3278 | if test -z "$CC"; then | |
3279 | ac_ct_CC=$CC | |
3280 | for ac_prog in cl.exe | |
3281 | do | |
3282 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3283 | set dummy $ac_prog; ac_word=$2 | |
7083c021 | 3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3285 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3286 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
030272f3 | 3287 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3288 | else |
3289 | if test -n "$ac_ct_CC"; then | |
3290 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3291 | else | |
3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3293 | for as_dir in $PATH | |
3294 | do | |
3295 | IFS=$as_save_IFS | |
3296 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3297 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 3298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
db137867 | 3299 | ac_cv_prog_ac_ct_CC="$ac_prog" |
7083c021 | 3300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3301 | break 2 |
3302 | fi | |
3303 | done | |
7083c021 | 3304 | done |
db137867 AC |
3305 | IFS=$as_save_IFS |
3306 | ||
3307 | fi | |
3308 | fi | |
3309 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3310 | if test -n "$ac_ct_CC"; then | |
7083c021 | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
030272f3 | 3312 | $as_echo "$ac_ct_CC" >&6; } |
db137867 | 3313 | else |
7083c021 | 3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3315 | $as_echo "no" >&6; } |
db137867 AC |
3316 | fi |
3317 | ||
3318 | ||
3319 | test -n "$ac_ct_CC" && break | |
3320 | done | |
3321 | ||
3322 | if test "x$ac_ct_CC" = x; then | |
3323 | CC="" | |
3324 | else | |
3325 | case $cross_compiling:$ac_tool_warned in | |
3326 | yes:) | |
7083c021 | 3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 3328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
3329 | ac_tool_warned=yes ;; |
3330 | esac | |
3331 | CC=$ac_ct_CC | |
3332 | fi | |
3333 | fi | |
3334 | ||
3335 | fi | |
3336 | ||
3337 | ||
7083c021 | 3338 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3340 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3341 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 AC |
3342 | |
3343 | # Provide some information about the compiler. | |
7083c021 | 3344 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
030272f3 VY |
3345 | set X $ac_compile |
3346 | ac_compiler=$2 | |
7083c021 AC |
3347 | for ac_option in --version -v -V -qversion; do |
3348 | { { ac_try="$ac_compiler $ac_option >&5" | |
db137867 AC |
3349 | case "(($ac_try" in |
3350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3351 | *) ac_try_echo=$ac_try;; | |
3352 | esac | |
7083c021 AC |
3353 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3354 | $as_echo "$ac_try_echo"; } >&5 | |
3355 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
db137867 | 3356 | ac_status=$? |
7083c021 AC |
3357 | if test -s conftest.err; then |
3358 | sed '10a\ | |
3359 | ... rest of stderr output deleted ... | |
3360 | 10q' conftest.err >conftest.er1 | |
3361 | cat conftest.er1 >&5 | |
7083c021 | 3362 | fi |
96f4052b | 3363 | rm -f conftest.er1 conftest.err |
7083c021 AC |
3364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3365 | test $ac_status = 0; } | |
3366 | done | |
db137867 | 3367 | |
7083c021 | 3368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 3369 | /* end confdefs.h. */ |
96f4052b | 3370 | |
db137867 AC |
3371 | int |
3372 | main () | |
3373 | { | |
3374 | ||
3375 | ; | |
3376 | return 0; | |
3377 | } | |
3378 | _ACEOF | |
3379 | ac_clean_files_save=$ac_clean_files | |
96f4052b | 3380 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
db137867 AC |
3381 | # Try to create an executable without -o first, disregard a.out. |
3382 | # It will help us diagnose broken compilers, and finding out an intuition | |
3383 | # of exeext. | |
96f4052b AC |
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3385 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
030272f3 VY |
3386 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3387 | ||
3388 | # The possible output files: | |
3389 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3390 | ||
db137867 AC |
3391 | ac_rmfiles= |
3392 | for ac_file in $ac_files | |
3393 | do | |
3394 | case $ac_file in | |
030272f3 | 3395 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3396 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3397 | esac | |
3398 | done | |
3399 | rm -f $ac_rmfiles | |
3400 | ||
7083c021 | 3401 | if { { ac_try="$ac_link_default" |
db137867 AC |
3402 | case "(($ac_try" in |
3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3404 | *) ac_try_echo=$ac_try;; | |
3405 | esac | |
7083c021 AC |
3406 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3407 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3408 | (eval "$ac_link_default") 2>&5 |
3409 | ac_status=$? | |
7083c021 AC |
3410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3411 | test $ac_status = 0; }; then : | |
db137867 AC |
3412 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3413 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3414 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3415 | # so that the user can short-circuit this test for compilers unknown to | |
3416 | # Autoconf. | |
3417 | for ac_file in $ac_files '' | |
3418 | do | |
3419 | test -f "$ac_file" || continue | |
3420 | case $ac_file in | |
030272f3 | 3421 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
db137867 AC |
3422 | ;; |
3423 | [ab].out ) | |
3424 | # We found the default executable, but exeext='' is most | |
3425 | # certainly right. | |
3426 | break;; | |
3427 | *.* ) | |
7083c021 | 3428 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
db137867 AC |
3429 | then :; else |
3430 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3431 | fi | |
3432 | # We set ac_cv_exeext here because the later test for it is not | |
3433 | # safe: cross compilers may not add the suffix if given an `-o' | |
3434 | # argument, so we may need to know it at that point already. | |
3435 | # Even if this section looks crufty: it has the advantage of | |
3436 | # actually working. | |
3437 | break;; | |
3438 | * ) | |
3439 | break;; | |
3440 | esac | |
3441 | done | |
3442 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3443 | ||
3444 | else | |
3445 | ac_file='' | |
3446 | fi | |
7083c021 | 3447 | if test -z "$ac_file"; then : |
96f4052b AC |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3449 | $as_echo "no" >&6; } | |
3450 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
3451 | sed 's/^/| /' conftest.$ac_ext >&5 |
3452 | ||
7083c021 | 3453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3455 | as_fn_error 77 "C compiler cannot create executables |
3456 | See \`config.log' for more details" "$LINENO" 5; } | |
96f4052b AC |
3457 | else |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3459 | $as_echo "yes" >&6; } | |
db137867 | 3460 | fi |
96f4052b AC |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3462 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3464 | $as_echo "$ac_file" >&6; } | |
db137867 AC |
3465 | ac_exeext=$ac_cv_exeext |
3466 | ||
96f4052b | 3467 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
db137867 | 3468 | ac_clean_files=$ac_clean_files_save |
7083c021 | 3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
030272f3 | 3470 | $as_echo_n "checking for suffix of executables... " >&6; } |
7083c021 | 3471 | if { { ac_try="$ac_link" |
db137867 AC |
3472 | case "(($ac_try" in |
3473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3474 | *) ac_try_echo=$ac_try;; | |
3475 | esac | |
7083c021 AC |
3476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3477 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3478 | (eval "$ac_link") 2>&5 |
3479 | ac_status=$? | |
7083c021 AC |
3480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3481 | test $ac_status = 0; }; then : | |
db137867 AC |
3482 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3483 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3484 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3485 | # `rm'. | |
3486 | for ac_file in conftest.exe conftest conftest.*; do | |
3487 | test -f "$ac_file" || continue | |
3488 | case $ac_file in | |
030272f3 | 3489 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3490 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3491 | break;; | |
3492 | * ) break;; | |
3493 | esac | |
3494 | done | |
3495 | else | |
7083c021 | 3496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3498 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3499 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 3500 | fi |
96f4052b | 3501 | rm -f conftest conftest$ac_cv_exeext |
7083c021 | 3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
030272f3 | 3503 | $as_echo "$ac_cv_exeext" >&6; } |
db137867 AC |
3504 | |
3505 | rm -f conftest.$ac_ext | |
3506 | EXEEXT=$ac_cv_exeext | |
3507 | ac_exeext=$EXEEXT | |
96f4052b AC |
3508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3509 | /* end confdefs.h. */ | |
3510 | #include <stdio.h> | |
3511 | int | |
3512 | main () | |
3513 | { | |
3514 | FILE *f = fopen ("conftest.out", "w"); | |
3515 | return ferror (f) || fclose (f) != 0; | |
3516 | ||
3517 | ; | |
3518 | return 0; | |
3519 | } | |
3520 | _ACEOF | |
3521 | ac_clean_files="$ac_clean_files conftest.out" | |
3522 | # Check that the compiler produces executables we can run. If not, either | |
3523 | # the compiler is broken, or we cross compile. | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3525 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3526 | if test "$cross_compiling" != yes; then | |
3527 | { { ac_try="$ac_link" | |
3528 | case "(($ac_try" in | |
3529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3530 | *) ac_try_echo=$ac_try;; | |
3531 | esac | |
3532 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3533 | $as_echo "$ac_try_echo"; } >&5 | |
3534 | (eval "$ac_link") 2>&5 | |
3535 | ac_status=$? | |
3536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3537 | test $ac_status = 0; } | |
3538 | if { ac_try='./conftest$ac_cv_exeext' | |
3539 | { { case "(($ac_try" in | |
3540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3541 | *) ac_try_echo=$ac_try;; | |
3542 | esac | |
3543 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3544 | $as_echo "$ac_try_echo"; } >&5 | |
3545 | (eval "$ac_try") 2>&5 | |
3546 | ac_status=$? | |
3547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3548 | test $ac_status = 0; }; }; then | |
3549 | cross_compiling=no | |
3550 | else | |
3551 | if test "$cross_compiling" = maybe; then | |
3552 | cross_compiling=yes | |
3553 | else | |
3554 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3555 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c | 3556 | as_fn_error $? "cannot run C compiled programs. |
96f4052b | 3557 | If you meant to cross compile, use \`--host'. |
08c2568c | 3558 | See \`config.log' for more details" "$LINENO" 5; } |
96f4052b AC |
3559 | fi |
3560 | fi | |
3561 | fi | |
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3563 | $as_echo "$cross_compiling" >&6; } | |
3564 | ||
3565 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3566 | ac_clean_files=$ac_clean_files_save | |
7083c021 | 3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
030272f3 | 3568 | $as_echo_n "checking for suffix of object files... " >&6; } |
08c2568c | 3569 | if ${ac_cv_objext+:} false; then : |
030272f3 | 3570 | $as_echo_n "(cached) " >&6 |
db137867 | 3571 | else |
7083c021 | 3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3573 | /* end confdefs.h. */ |
3574 | ||
3575 | int | |
3576 | main () | |
3577 | { | |
3578 | ||
3579 | ; | |
3580 | return 0; | |
3581 | } | |
3582 | _ACEOF | |
3583 | rm -f conftest.o conftest.obj | |
7083c021 | 3584 | if { { ac_try="$ac_compile" |
db137867 AC |
3585 | case "(($ac_try" in |
3586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3587 | *) ac_try_echo=$ac_try;; | |
3588 | esac | |
7083c021 AC |
3589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3590 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3591 | (eval "$ac_compile") 2>&5 |
3592 | ac_status=$? | |
7083c021 AC |
3593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3594 | test $ac_status = 0; }; then : | |
db137867 AC |
3595 | for ac_file in conftest.o conftest.obj conftest.*; do |
3596 | test -f "$ac_file" || continue; | |
3597 | case $ac_file in | |
030272f3 | 3598 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
db137867 AC |
3599 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3600 | break;; | |
3601 | esac | |
3602 | done | |
3603 | else | |
030272f3 | 3604 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
3606 | ||
7083c021 | 3607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3609 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3610 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 3611 | fi |
db137867 AC |
3612 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3613 | fi | |
7083c021 | 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
030272f3 | 3615 | $as_echo "$ac_cv_objext" >&6; } |
db137867 AC |
3616 | OBJEXT=$ac_cv_objext |
3617 | ac_objext=$OBJEXT | |
7083c021 | 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
030272f3 | 3619 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
08c2568c | 3620 | if ${ac_cv_c_compiler_gnu+:} false; then : |
030272f3 | 3621 | $as_echo_n "(cached) " >&6 |
db137867 | 3622 | else |
7083c021 | 3623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3624 | /* end confdefs.h. */ |
3625 | ||
3626 | int | |
3627 | main () | |
3628 | { | |
3629 | #ifndef __GNUC__ | |
3630 | choke me | |
3631 | #endif | |
3632 | ||
3633 | ; | |
3634 | return 0; | |
3635 | } | |
3636 | _ACEOF | |
7083c021 | 3637 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 AC |
3638 | ac_compiler_gnu=yes |
3639 | else | |
7083c021 | 3640 | ac_compiler_gnu=no |
db137867 | 3641 | fi |
db137867 AC |
3642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3643 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3644 | ||
3645 | fi | |
7083c021 | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
030272f3 VY |
3647 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3648 | if test $ac_compiler_gnu = yes; then | |
3649 | GCC=yes | |
3650 | else | |
3651 | GCC= | |
3652 | fi | |
db137867 AC |
3653 | ac_test_CFLAGS=${CFLAGS+set} |
3654 | ac_save_CFLAGS=$CFLAGS | |
7083c021 | 3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
030272f3 | 3656 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
08c2568c | 3657 | if ${ac_cv_prog_cc_g+:} false; then : |
030272f3 | 3658 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3659 | else |
3660 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3661 | ac_c_werror_flag=yes | |
3662 | ac_cv_prog_cc_g=no | |
3663 | CFLAGS="-g" | |
7083c021 | 3664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3665 | /* end confdefs.h. */ |
3666 | ||
3667 | int | |
3668 | main () | |
3669 | { | |
3670 | ||
3671 | ; | |
3672 | return 0; | |
3673 | } | |
3674 | _ACEOF | |
7083c021 | 3675 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 AC |
3676 | ac_cv_prog_cc_g=yes |
3677 | else | |
7083c021 AC |
3678 | CFLAGS="" |
3679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
3680 | /* end confdefs.h. */ |
3681 | ||
3682 | int | |
3683 | main () | |
3684 | { | |
3685 | ||
3686 | ; | |
3687 | return 0; | |
3688 | } | |
3689 | _ACEOF | |
7083c021 | 3690 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3691 | |
7083c021 AC |
3692 | else |
3693 | ac_c_werror_flag=$ac_save_c_werror_flag | |
db137867 | 3694 | CFLAGS="-g" |
7083c021 | 3695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3696 | /* end confdefs.h. */ |
3697 | ||
3698 | int | |
3699 | main () | |
3700 | { | |
3701 | ||
3702 | ; | |
3703 | return 0; | |
3704 | } | |
3705 | _ACEOF | |
7083c021 | 3706 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3707 | ac_cv_prog_cc_g=yes |
db137867 | 3708 | fi |
db137867 AC |
3709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3710 | fi | |
db137867 AC |
3711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3712 | fi | |
db137867 AC |
3713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3714 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3715 | fi | |
7083c021 | 3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
030272f3 | 3717 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
db137867 AC |
3718 | if test "$ac_test_CFLAGS" = set; then |
3719 | CFLAGS=$ac_save_CFLAGS | |
3720 | elif test $ac_cv_prog_cc_g = yes; then | |
3721 | if test "$GCC" = yes; then | |
3722 | CFLAGS="-g -O2" | |
3723 | else | |
3724 | CFLAGS="-g" | |
3725 | fi | |
3726 | else | |
3727 | if test "$GCC" = yes; then | |
3728 | CFLAGS="-O2" | |
3729 | else | |
3730 | CFLAGS= | |
3731 | fi | |
3732 | fi | |
7083c021 | 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
030272f3 | 3734 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
08c2568c | 3735 | if ${ac_cv_prog_cc_c89+:} false; then : |
030272f3 | 3736 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3737 | else |
3738 | ac_cv_prog_cc_c89=no | |
3739 | ac_save_CC=$CC | |
7083c021 | 3740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3741 | /* end confdefs.h. */ |
3742 | #include <stdarg.h> | |
3743 | #include <stdio.h> | |
bf4e01a4 | 3744 | struct stat; |
db137867 AC |
3745 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3746 | struct buf { int x; }; | |
3747 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3748 | static char *e (p, i) | |
3749 | char **p; | |
3750 | int i; | |
3751 | { | |
3752 | return p[i]; | |
3753 | } | |
3754 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3755 | { | |
3756 | char *s; | |
3757 | va_list v; | |
3758 | va_start (v,p); | |
3759 | s = g (p, va_arg (v,int)); | |
3760 | va_end (v); | |
3761 | return s; | |
3762 | } | |
3763 | ||
3764 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3765 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3766 | These don't provoke an error unfortunately, instead are silently treated | |
3767 | as 'x'. The following induces an error, until -std is added to get | |
3768 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3769 | array size at least. It's necessary to write '\x00'==0 to get something | |
3770 | that's true only with -std. */ | |
3771 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3772 | ||
3773 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3774 | inside strings and character constants. */ | |
3775 | #define FOO(x) 'x' | |
3776 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3777 | ||
3778 | int test (int i, double x); | |
3779 | struct s1 {int (*f) (int a);}; | |
3780 | struct s2 {int (*f) (double a);}; | |
3781 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3782 | int argc; | |
3783 | char **argv; | |
3784 | int | |
3785 | main () | |
3786 | { | |
3787 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3788 | ; | |
3789 | return 0; | |
3790 | } | |
3791 | _ACEOF | |
3792 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3793 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3794 | do | |
3795 | CC="$ac_save_CC $ac_arg" | |
7083c021 | 3796 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3797 | ac_cv_prog_cc_c89=$ac_arg |
db137867 | 3798 | fi |
db137867 AC |
3799 | rm -f core conftest.err conftest.$ac_objext |
3800 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3801 | done | |
3802 | rm -f conftest.$ac_ext | |
3803 | CC=$ac_save_CC | |
3804 | ||
3805 | fi | |
3806 | # AC_CACHE_VAL | |
3807 | case "x$ac_cv_prog_cc_c89" in | |
3808 | x) | |
7083c021 | 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
030272f3 | 3810 | $as_echo "none needed" >&6; } ;; |
db137867 | 3811 | xno) |
7083c021 | 3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
030272f3 | 3813 | $as_echo "unsupported" >&6; } ;; |
db137867 AC |
3814 | *) |
3815 | CC="$CC $ac_cv_prog_cc_c89" | |
7083c021 | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
030272f3 | 3817 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
db137867 | 3818 | esac |
7083c021 | 3819 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
db137867 | 3820 | |
7083c021 | 3821 | fi |
db137867 AC |
3822 | |
3823 | ac_ext=c | |
3824 | ac_cpp='$CPP $CPPFLAGS' | |
3825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3828 | ||
bf4e01a4 AC |
3829 | ac_ext=c |
3830 | ac_cpp='$CPP $CPPFLAGS' | |
3831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3835 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3836 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3837 | $as_echo_n "(cached) " >&6 | |
3838 | else | |
3839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3840 | /* end confdefs.h. */ | |
3841 | ||
3842 | int | |
3843 | main () | |
3844 | { | |
3845 | ||
3846 | ; | |
3847 | return 0; | |
3848 | } | |
3849 | _ACEOF | |
3850 | # Make sure it works both with $CC and with simple cc. | |
3851 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3852 | # compilers refuse to overwrite an existing .o file with -o, | |
3853 | # though they will create one. | |
3854 | am_cv_prog_cc_c_o=yes | |
3855 | for am_i in 1 2; do | |
3856 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3857 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3858 | ac_status=$? | |
3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3860 | (exit $ac_status); } \ | |
3861 | && test -f conftest2.$ac_objext; then | |
3862 | : OK | |
3863 | else | |
3864 | am_cv_prog_cc_c_o=no | |
3865 | break | |
3866 | fi | |
3867 | done | |
3868 | rm -f core conftest* | |
3869 | unset am_i | |
3870 | fi | |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3872 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3873 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3874 | # Losing compiler, so override with the script. | |
3875 | # FIXME: It is wrong to rewrite CC. | |
3876 | # But if we don't then we get into trouble of one sort or another. | |
3877 | # A longer-term fix would be to have automake use am__CC in this case, | |
3878 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3879 | CC="$am_aux_dir/compile $CC" | |
3880 | fi | |
3881 | ac_ext=c | |
3882 | ac_cpp='$CPP $CPPFLAGS' | |
3883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3886 | ||
3887 | ||
db137867 AC |
3888 | depcc="$CC" am_compiler_list= |
3889 | ||
7083c021 | 3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
030272f3 | 3891 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
08c2568c | 3892 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
030272f3 | 3893 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3894 | else |
3895 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3896 | # We make a subdir and do the tests there. Otherwise we can end up | |
3897 | # making bogus files that we don't know about and never remove. For | |
3898 | # instance it was reported that on HP-UX the gcc test will end up | |
bf4e01a4 AC |
3899 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3900 | # in D". | |
3901 | rm -rf conftest.dir | |
db137867 AC |
3902 | mkdir conftest.dir |
3903 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3904 | # using a relative directory. | |
3905 | cp "$am_depcomp" conftest.dir | |
3906 | cd conftest.dir | |
3907 | # We will build objects and dependencies in a subdirectory because | |
3908 | # it helps to detect inapplicable dependency modes. For instance | |
3909 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3910 | # side effect of compilation, but ICC will put the dependencies in | |
3911 | # the current directory while Tru64 will put them in the object | |
3912 | # directory. | |
3913 | mkdir sub | |
3914 | ||
3915 | am_cv_CC_dependencies_compiler_type=none | |
3916 | if test "$am_compiler_list" = ""; then | |
3917 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3918 | fi | |
7083c021 AC |
3919 | am__universal=false |
3920 | case " $depcc " in #( | |
3921 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3922 | esac | |
3923 | ||
db137867 AC |
3924 | for depmode in $am_compiler_list; do |
3925 | # Setup a source with many dependencies, because some compilers | |
3926 | # like to wrap large dependency lists on column 80 (with \), and | |
3927 | # we should not choose a depcomp mode which is confused by this. | |
3928 | # | |
3929 | # We need to recreate these files for each test, as the compiler may | |
3930 | # overwrite some of them when testing with obscure command lines. | |
3931 | # This happens at least with the AIX C compiler. | |
3932 | : > sub/conftest.c | |
3933 | for i in 1 2 3 4 5 6; do | |
3934 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
bf4e01a4 AC |
3935 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3936 | # Solaris 10 /bin/sh. | |
3937 | echo '/* dummy */' > sub/conftst$i.h | |
db137867 AC |
3938 | done |
3939 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3940 | ||
bf4e01a4 | 3941 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
7083c021 | 3942 | # mode. It turns out that the SunPro C++ compiler does not properly |
bf4e01a4 AC |
3943 | # handle '-M -o', and we need to detect this. Also, some Intel |
3944 | # versions had trouble with output in subdirs. | |
7083c021 AC |
3945 | am__obj=sub/conftest.${OBJEXT-o} |
3946 | am__minus_obj="-o $am__obj" | |
db137867 | 3947 | case $depmode in |
7083c021 AC |
3948 | gcc) |
3949 | # This depmode causes a compiler race in universal mode. | |
3950 | test "$am__universal" = false || continue | |
3951 | ;; | |
db137867 | 3952 | nosideeffect) |
bf4e01a4 AC |
3953 | # After this tag, mechanisms are not by side-effect, so they'll |
3954 | # only be used when explicitly requested. | |
db137867 AC |
3955 | if test "x$enable_dependency_tracking" = xyes; then |
3956 | continue | |
3957 | else | |
3958 | break | |
3959 | fi | |
3960 | ;; | |
bf4e01a4 AC |
3961 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3962 | # This compiler won't grok '-c -o', but also, the minuso test has | |
7083c021 AC |
3963 | # not run yet. These depmodes are late enough in the game, and |
3964 | # so weak that their functioning should not be impacted. | |
3965 | am__obj=conftest.${OBJEXT-o} | |
3966 | am__minus_obj= | |
3967 | ;; | |
db137867 AC |
3968 | none) break ;; |
3969 | esac | |
db137867 | 3970 | if depmode=$depmode \ |
7083c021 | 3971 | source=sub/conftest.c object=$am__obj \ |
db137867 | 3972 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
7083c021 | 3973 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
db137867 AC |
3974 | >/dev/null 2>conftest.err && |
3975 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3976 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7083c021 | 3977 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
db137867 AC |
3978 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3979 | # icc doesn't choke on unknown options, it will just issue warnings | |
3980 | # or remarks (even with -Werror). So we grep stderr for any message | |
3981 | # that says an option was ignored or not supported. | |
3982 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3983 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3984 | # The diagnosis changed in icc 8.0: | |
3985 | # icc: Command line remark: option '-MP' not supported | |
3986 | if (grep 'ignoring option' conftest.err || | |
3987 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3988 | am_cv_CC_dependencies_compiler_type=$depmode | |
3989 | break | |
3990 | fi | |
3991 | fi | |
3992 | done | |
3993 | ||
3994 | cd .. | |
3995 | rm -rf conftest.dir | |
3996 | else | |
3997 | am_cv_CC_dependencies_compiler_type=none | |
3998 | fi | |
3999 | ||
4000 | fi | |
7083c021 | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
030272f3 | 4002 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
db137867 AC |
4003 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4004 | ||
4005 | if | |
4006 | test "x$enable_dependency_tracking" != xno \ | |
4007 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4008 | am__fastdepCC_TRUE= | |
4009 | am__fastdepCC_FALSE='#' | |
4010 | else | |
4011 | am__fastdepCC_TRUE='#' | |
4012 | am__fastdepCC_FALSE= | |
4013 | fi | |
4014 | ||
4015 | ||
030272f3 VY |
4016 | |
4017 | ac_ext=c | |
4018 | ac_cpp='$CPP $CPPFLAGS' | |
4019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7083c021 | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
030272f3 VY |
4023 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
4024 | # On Suns, sometimes $CPP names a directory. | |
4025 | if test -n "$CPP" && test -d "$CPP"; then | |
4026 | CPP= | |
4027 | fi | |
4028 | if test -z "$CPP"; then | |
08c2568c | 4029 | if ${ac_cv_prog_CPP+:} false; then : |
030272f3 | 4030 | $as_echo_n "(cached) " >&6 |
db137867 | 4031 | else |
030272f3 VY |
4032 | # Double quotes because CPP needs to be expanded |
4033 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4034 | do | |
4035 | ac_preproc_ok=false | |
4036 | for ac_c_preproc_warn_flag in '' yes | |
4037 | do | |
4038 | # Use a header file that comes with gcc, so configuring glibc | |
4039 | # with a fresh cross-compiler works. | |
4040 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4041 | # <limits.h> exists even on freestanding compilers. | |
4042 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4043 | # not just through cpp. "Syntax error" is here to catch this case. | |
7083c021 | 4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4045 | /* end confdefs.h. */ |
030272f3 VY |
4046 | #ifdef __STDC__ |
4047 | # include <limits.h> | |
db137867 | 4048 | #else |
030272f3 | 4049 | # include <assert.h> |
db137867 | 4050 | #endif |
030272f3 | 4051 | Syntax error |
db137867 | 4052 | _ACEOF |
7083c021 | 4053 | if ac_fn_c_try_cpp "$LINENO"; then : |
db137867 | 4054 | |
7083c021 | 4055 | else |
030272f3 VY |
4056 | # Broken: fails on valid input. |
4057 | continue | |
db137867 | 4058 | fi |
08c2568c | 4059 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 4060 | |
030272f3 VY |
4061 | # OK, works on sane cases. Now check whether nonexistent headers |
4062 | # can be detected and how. | |
7083c021 | 4063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4064 | /* end confdefs.h. */ |
4065 | #include <ac_nonexistent.h> | |
4066 | _ACEOF | |
7083c021 | 4067 | if ac_fn_c_try_cpp "$LINENO"; then : |
030272f3 VY |
4068 | # Broken: success on invalid input. |
4069 | continue | |
4070 | else | |
030272f3 VY |
4071 | # Passes both tests. |
4072 | ac_preproc_ok=: | |
4073 | break | |
4074 | fi | |
08c2568c | 4075 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 4076 | |
030272f3 VY |
4077 | done |
4078 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
08c2568c | 4079 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 4080 | if $ac_preproc_ok; then : |
030272f3 | 4081 | break |
db137867 AC |
4082 | fi |
4083 | ||
030272f3 VY |
4084 | done |
4085 | ac_cv_prog_CPP=$CPP | |
db137867 | 4086 | |
030272f3 VY |
4087 | fi |
4088 | CPP=$ac_cv_prog_CPP | |
db137867 | 4089 | else |
030272f3 VY |
4090 | ac_cv_prog_CPP=$CPP |
4091 | fi | |
7083c021 | 4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
030272f3 VY |
4093 | $as_echo "$CPP" >&6; } |
4094 | ac_preproc_ok=false | |
4095 | for ac_c_preproc_warn_flag in '' yes | |
db137867 | 4096 | do |
030272f3 VY |
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 |
030272f3 VY |
4104 | /* end confdefs.h. */ |
4105 | #ifdef __STDC__ | |
4106 | # include <limits.h> | |
4107 | #else | |
4108 | # include <assert.h> | |
4109 | #endif | |
4110 | Syntax error | |
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 |
030272f3 VY |
4135 | |
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 AC |
4139 | if $ac_preproc_ok; then : |
4140 | ||
db137867 | 4141 | else |
7083c021 | 4142 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 4143 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
4144 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4145 | See \`config.log' for more details" "$LINENO" 5; } | |
030272f3 VY |
4146 | fi |
4147 | ||
4148 | ac_ext=c | |
4149 | ac_cpp='$CPP $CPPFLAGS' | |
4150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4153 | ||
4154 | ||
7083c021 | 4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
030272f3 | 4156 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
08c2568c | 4157 | if ${ac_cv_path_GREP+:} false; then : |
030272f3 | 4158 | $as_echo_n "(cached) " >&6 |
db137867 | 4159 | else |
030272f3 | 4160 | if test -z "$GREP"; then |
db137867 | 4161 | ac_path_GREP_found=false |
030272f3 VY |
4162 | # Loop through the user's path and test for each of PROGNAME-LIST |
4163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
4164 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4165 | do | |
4166 | IFS=$as_save_IFS | |
4167 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4168 | for ac_prog in grep ggrep; do |
030272f3 VY |
4169 | for ac_exec_ext in '' $ac_executable_extensions; do |
4170 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4171 | as_fn_executable_p "$ac_path_GREP" || continue |
030272f3 | 4172 | # Check for GNU ac_path_GREP and select it if it is found. |
db137867 AC |
4173 | # Check for GNU $ac_path_GREP |
4174 | case `"$ac_path_GREP" --version 2>&1` in | |
4175 | *GNU*) | |
4176 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4177 | *) | |
4178 | ac_count=0 | |
030272f3 | 4179 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
4180 | while : |
4181 | do | |
4182 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4183 | mv "conftest.tmp" "conftest.in" | |
4184 | cp "conftest.in" "conftest.nl" | |
030272f3 | 4185 | $as_echo 'GREP' >> "conftest.nl" |
db137867 AC |
4186 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4187 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4188 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
db137867 AC |
4189 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4190 | # Best one so far, save it but keep looking for a better one | |
4191 | ac_cv_path_GREP="$ac_path_GREP" | |
4192 | ac_path_GREP_max=$ac_count | |
4193 | fi | |
4194 | # 10*(2^10) chars as input seems more than enough | |
4195 | test $ac_count -gt 10 && break | |
4196 | done | |
4197 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4198 | esac | |
4199 | ||
030272f3 VY |
4200 | $ac_path_GREP_found && break 3 |
4201 | done | |
db137867 | 4202 | done |
7083c021 | 4203 | done |
db137867 | 4204 | IFS=$as_save_IFS |
030272f3 | 4205 | if test -z "$ac_cv_path_GREP"; then |
08c2568c | 4206 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4207 | fi |
db137867 AC |
4208 | else |
4209 | ac_cv_path_GREP=$GREP | |
4210 | fi | |
4211 | ||
db137867 | 4212 | fi |
7083c021 | 4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
030272f3 | 4214 | $as_echo "$ac_cv_path_GREP" >&6; } |
db137867 AC |
4215 | GREP="$ac_cv_path_GREP" |
4216 | ||
4217 | ||
7083c021 | 4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
030272f3 | 4219 | $as_echo_n "checking for egrep... " >&6; } |
08c2568c | 4220 | if ${ac_cv_path_EGREP+:} false; then : |
030272f3 | 4221 | $as_echo_n "(cached) " >&6 |
db137867 AC |
4222 | else |
4223 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4224 | then ac_cv_path_EGREP="$GREP -E" | |
4225 | else | |
030272f3 | 4226 | if test -z "$EGREP"; then |
db137867 | 4227 | ac_path_EGREP_found=false |
030272f3 VY |
4228 | # Loop through the user's path and test for each of PROGNAME-LIST |
4229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
4230 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4231 | do | |
4232 | IFS=$as_save_IFS | |
4233 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4234 | for ac_prog in egrep; do |
030272f3 VY |
4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
4236 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4237 | as_fn_executable_p "$ac_path_EGREP" || continue |
030272f3 | 4238 | # Check for GNU ac_path_EGREP and select it if it is found. |
db137867 AC |
4239 | # Check for GNU $ac_path_EGREP |
4240 | case `"$ac_path_EGREP" --version 2>&1` in | |
4241 | *GNU*) | |
4242 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4243 | *) | |
4244 | ac_count=0 | |
030272f3 | 4245 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
4246 | while : |
4247 | do | |
4248 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4249 | mv "conftest.tmp" "conftest.in" | |
4250 | cp "conftest.in" "conftest.nl" | |
030272f3 | 4251 | $as_echo 'EGREP' >> "conftest.nl" |
db137867 AC |
4252 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4253 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4254 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
db137867 AC |
4255 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4256 | # Best one so far, save it but keep looking for a better one | |
4257 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4258 | ac_path_EGREP_max=$ac_count | |
4259 | fi | |
4260 | # 10*(2^10) chars as input seems more than enough | |
4261 | test $ac_count -gt 10 && break | |
4262 | done | |
4263 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4264 | esac | |
4265 | ||
030272f3 VY |
4266 | $ac_path_EGREP_found && break 3 |
4267 | done | |
db137867 | 4268 | done |
7083c021 | 4269 | done |
db137867 | 4270 | IFS=$as_save_IFS |
030272f3 | 4271 | if test -z "$ac_cv_path_EGREP"; then |
08c2568c | 4272 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4273 | fi |
db137867 AC |
4274 | else |
4275 | ac_cv_path_EGREP=$EGREP | |
4276 | fi | |
4277 | ||
db137867 AC |
4278 | fi |
4279 | fi | |
7083c021 | 4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
030272f3 | 4281 | $as_echo "$ac_cv_path_EGREP" >&6; } |
db137867 AC |
4282 | EGREP="$ac_cv_path_EGREP" |
4283 | ||
4284 | ||
7083c021 | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
030272f3 | 4286 | $as_echo_n "checking for ANSI C header files... " >&6; } |
08c2568c | 4287 | if ${ac_cv_header_stdc+:} false; then : |
030272f3 | 4288 | $as_echo_n "(cached) " >&6 |
db137867 | 4289 | else |
7083c021 | 4290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4291 | /* end confdefs.h. */ |
030272f3 VY |
4292 | #include <stdlib.h> |
4293 | #include <stdarg.h> | |
4294 | #include <string.h> | |
4295 | #include <float.h> | |
db137867 | 4296 | |
db137867 AC |
4297 | int |
4298 | main () | |
4299 | { | |
030272f3 | 4300 | |
db137867 AC |
4301 | ; |
4302 | return 0; | |
4303 | } | |
4304 | _ACEOF | |
7083c021 | 4305 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4306 | ac_cv_header_stdc=yes |
db137867 | 4307 | else |
7083c021 | 4308 | ac_cv_header_stdc=no |
db137867 | 4309 | fi |
030272f3 VY |
4310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4311 | ||
4312 | if test $ac_cv_header_stdc = yes; then | |
4313 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7083c021 | 4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4315 | /* end confdefs.h. */ |
4316 | #include <string.h> | |
4317 | ||
4318 | _ACEOF | |
4319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 AC |
4320 | $EGREP "memchr" >/dev/null 2>&1; then : |
4321 | ||
db137867 | 4322 | else |
030272f3 | 4323 | ac_cv_header_stdc=no |
db137867 | 4324 | fi |
030272f3 | 4325 | rm -f conftest* |
db137867 AC |
4326 | |
4327 | fi | |
4328 | ||
030272f3 VY |
4329 | if test $ac_cv_header_stdc = yes; then |
4330 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7083c021 | 4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4332 | /* end confdefs.h. */ |
030272f3 | 4333 | #include <stdlib.h> |
db137867 AC |
4334 | |
4335 | _ACEOF | |
030272f3 | 4336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7083c021 AC |
4337 | $EGREP "free" >/dev/null 2>&1; then : |
4338 | ||
db137867 | 4339 | else |
030272f3 | 4340 | ac_cv_header_stdc=no |
db137867 | 4341 | fi |
030272f3 | 4342 | rm -f conftest* |
db137867 AC |
4343 | |
4344 | fi | |
db137867 | 4345 | |
030272f3 VY |
4346 | if test $ac_cv_header_stdc = yes; then |
4347 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7083c021 | 4348 | if test "$cross_compiling" = yes; then : |
030272f3 | 4349 | : |
db137867 | 4350 | else |
7083c021 | 4351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4352 | /* end confdefs.h. */ |
030272f3 VY |
4353 | #include <ctype.h> |
4354 | #include <stdlib.h> | |
4355 | #if ((' ' & 0x0FF) == 0x020) | |
4356 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4357 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4358 | #else | |
4359 | # define ISLOWER(c) \ | |
4360 | (('a' <= (c) && (c) <= 'i') \ | |
4361 | || ('j' <= (c) && (c) <= 'r') \ | |
4362 | || ('s' <= (c) && (c) <= 'z')) | |
4363 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
4364 | #endif |
4365 | ||
030272f3 VY |
4366 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4367 | int | |
4368 | main () | |
4369 | { | |
4370 | int i; | |
4371 | for (i = 0; i < 256; i++) | |
4372 | if (XOR (islower (i), ISLOWER (i)) | |
4373 | || toupper (i) != TOUPPER (i)) | |
4374 | return 2; | |
db137867 AC |
4375 | return 0; |
4376 | } | |
4377 | _ACEOF | |
7083c021 | 4378 | if ac_fn_c_try_run "$LINENO"; then : |
030272f3 | 4379 | |
7083c021 AC |
4380 | else |
4381 | ac_cv_header_stdc=no | |
030272f3 | 4382 | fi |
7083c021 AC |
4383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4384 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
030272f3 VY |
4385 | fi |
4386 | ||
030272f3 VY |
4387 | fi |
4388 | fi | |
7083c021 | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
030272f3 VY |
4390 | $as_echo "$ac_cv_header_stdc" >&6; } |
4391 | if test $ac_cv_header_stdc = yes; then | |
4392 | ||
7083c021 | 4393 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
030272f3 VY |
4394 | |
4395 | fi | |
4396 | ||
4397 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7083c021 AC |
4398 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4399 | inttypes.h stdint.h unistd.h | |
4400 | do : | |
4401 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4402 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4403 | " | |
08c2568c | 4404 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
4405 | cat >>confdefs.h <<_ACEOF |
4406 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4407 | _ACEOF | |
030272f3 | 4408 | |
7083c021 | 4409 | fi |
030272f3 | 4410 | |
7083c021 | 4411 | done |
030272f3 VY |
4412 | |
4413 | ||
4414 | ||
7083c021 | 4415 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
08c2568c | 4416 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 AC |
4417 | MINIX=yes |
4418 | else | |
4419 | MINIX= | |
4420 | fi | |
030272f3 VY |
4421 | |
4422 | ||
7083c021 | 4423 | if test "$MINIX" = yes; then |
030272f3 | 4424 | |
7083c021 | 4425 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
030272f3 | 4426 | |
db137867 | 4427 | |
7083c021 | 4428 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
db137867 | 4429 | |
db137867 | 4430 | |
7083c021 | 4431 | $as_echo "#define _MINIX 1" >>confdefs.h |
030272f3 | 4432 | |
7083c021 | 4433 | fi |
030272f3 VY |
4434 | |
4435 | ||
7083c021 | 4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
030272f3 | 4437 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
08c2568c | 4438 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
030272f3 | 4439 | $as_echo_n "(cached) " >&6 |
db137867 | 4440 | else |
7083c021 | 4441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 | 4442 | /* end confdefs.h. */ |
db137867 | 4443 | |
bf4e01a4 AC |
4444 | # define __EXTENSIONS__ 1 |
4445 | $ac_includes_default | |
030272f3 VY |
4446 | int |
4447 | main () | |
4448 | { | |
4449 | ||
4450 | ; | |
4451 | return 0; | |
4452 | } | |
4453 | _ACEOF | |
7083c021 | 4454 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4455 | ac_cv_safe_to_define___extensions__=yes |
db137867 | 4456 | else |
7083c021 | 4457 | ac_cv_safe_to_define___extensions__=no |
db137867 | 4458 | fi |
030272f3 VY |
4459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4460 | fi | |
7083c021 | 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
030272f3 VY |
4462 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4463 | test $ac_cv_safe_to_define___extensions__ = yes && | |
7083c021 | 4464 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
db137867 | 4465 | |
7083c021 | 4466 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
030272f3 | 4467 | |
7083c021 | 4468 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
030272f3 | 4469 | |
7083c021 AC |
4470 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4471 | ||
4472 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
030272f3 | 4473 | |
030272f3 VY |
4474 | |
4475 | ||
4476 | ||
7083c021 | 4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
030272f3 | 4478 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
08c2568c | 4479 | if ${ac_cv_prog_cc_c99+:} false; then : |
030272f3 | 4480 | $as_echo_n "(cached) " >&6 |
db137867 | 4481 | else |
030272f3 VY |
4482 | ac_cv_prog_cc_c99=no |
4483 | ac_save_CC=$CC | |
7083c021 | 4484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4485 | /* end confdefs.h. */ |
4486 | #include <stdarg.h> | |
4487 | #include <stdbool.h> | |
4488 | #include <stdlib.h> | |
4489 | #include <wchar.h> | |
4490 | #include <stdio.h> | |
db137867 | 4491 | |
030272f3 VY |
4492 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
4493 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4494 | #define showlist(...) puts (#__VA_ARGS__) | |
4495 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4496 | static void | |
4497 | test_varargs_macros (void) | |
4498 | { | |
4499 | int x = 1234; | |
4500 | int y = 5678; | |
4501 | debug ("Flag"); | |
4502 | debug ("X = %d\n", x); | |
4503 | showlist (The first, second, and third items.); | |
4504 | report (x>y, "x is %d but y is %d", x, y); | |
4505 | } | |
db137867 | 4506 | |
030272f3 VY |
4507 | // Check long long types. |
4508 | #define BIG64 18446744073709551615ull | |
4509 | #define BIG32 4294967295ul | |
4510 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4511 | #if !BIG_OK | |
4512 | your preprocessor is broken; | |
4513 | #endif | |
4514 | #if BIG_OK | |
4515 | #else | |
4516 | your preprocessor is broken; | |
4517 | #endif | |
4518 | static long long int bignum = -9223372036854775807LL; | |
4519 | static unsigned long long int ubignum = BIG64; | |
db137867 | 4520 | |
030272f3 VY |
4521 | struct incomplete_array |
4522 | { | |
4523 | int datasize; | |
4524 | double data[]; | |
4525 | }; | |
db137867 | 4526 | |
030272f3 VY |
4527 | struct named_init { |
4528 | int number; | |
4529 | const wchar_t *name; | |
4530 | double average; | |
4531 | }; | |
db137867 | 4532 | |
030272f3 | 4533 | typedef const char *ccp; |
db137867 | 4534 | |
030272f3 VY |
4535 | static inline int |
4536 | test_restrict (ccp restrict text) | |
4537 | { | |
4538 | // See if C++-style comments work. | |
4539 | // Iterate through items via the restricted pointer. | |
4540 | // Also check for declarations in for loops. | |
4541 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4542 | continue; | |
4543 | return 0; | |
4544 | } | |
db137867 | 4545 | |
030272f3 VY |
4546 | // Check varargs and va_copy. |
4547 | static void | |
4548 | test_varargs (const char *format, ...) | |
4549 | { | |
4550 | va_list args; | |
4551 | va_start (args, format); | |
4552 | va_list args_copy; | |
4553 | va_copy (args_copy, args); | |
db137867 | 4554 | |
030272f3 VY |
4555 | const char *str; |
4556 | int number; | |
4557 | float fnumber; | |
db137867 | 4558 | |
030272f3 VY |
4559 | while (*format) |
4560 | { | |
4561 | switch (*format++) | |
4562 | { | |
4563 | case 's': // string | |
4564 | str = va_arg (args_copy, const char *); | |
4565 | break; | |
4566 | case 'd': // int | |
4567 | number = va_arg (args_copy, int); | |
4568 | break; | |
4569 | case 'f': // float | |
4570 | fnumber = va_arg (args_copy, double); | |
4571 | break; | |
4572 | default: | |
4573 | break; | |
4574 | } | |
4575 | } | |
4576 | va_end (args_copy); | |
4577 | va_end (args); | |
4578 | } | |
db137867 | 4579 | |
030272f3 VY |
4580 | int |
4581 | main () | |
4582 | { | |
db137867 | 4583 | |
030272f3 VY |
4584 | // Check bool. |
4585 | _Bool success = false; | |
db137867 | 4586 | |
030272f3 VY |
4587 | // Check restrict. |
4588 | if (test_restrict ("String literal") == 0) | |
4589 | success = true; | |
4590 | char *restrict newvar = "Another string"; | |
db137867 | 4591 | |
030272f3 VY |
4592 | // Check varargs. |
4593 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4594 | test_varargs_macros (); | |
db137867 | 4595 | |
030272f3 VY |
4596 | // Check flexible array members. |
4597 | struct incomplete_array *ia = | |
4598 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4599 | ia->datasize = 10; | |
4600 | for (int i = 0; i < ia->datasize; ++i) | |
4601 | ia->data[i] = i * 1.234; | |
db137867 | 4602 | |
030272f3 VY |
4603 | // Check named initializers. |
4604 | struct named_init ni = { | |
4605 | .number = 34, | |
4606 | .name = L"Test wide string", | |
4607 | .average = 543.34343, | |
4608 | }; | |
db137867 | 4609 | |
030272f3 | 4610 | ni.number = 58; |
db137867 | 4611 | |
030272f3 VY |
4612 | int dynamic_array[ni.number]; |
4613 | dynamic_array[ni.number - 1] = 543; | |
4614 | ||
4615 | // work around unused variable warnings | |
4616 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4617 | || dynamic_array[ni.number - 1] != 543); | |
4618 | ||
4619 | ; | |
4620 | return 0; | |
4621 | } | |
4622 | _ACEOF | |
bf4e01a4 | 4623 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
030272f3 VY |
4624 | do |
4625 | CC="$ac_save_CC $ac_arg" | |
7083c021 | 4626 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4627 | ac_cv_prog_cc_c99=$ac_arg |
db137867 | 4628 | fi |
030272f3 VY |
4629 | rm -f core conftest.err conftest.$ac_objext |
4630 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4631 | done | |
4632 | rm -f conftest.$ac_ext | |
4633 | CC=$ac_save_CC | |
4634 | ||
db137867 | 4635 | fi |
030272f3 VY |
4636 | # AC_CACHE_VAL |
4637 | case "x$ac_cv_prog_cc_c99" in | |
4638 | x) | |
7083c021 | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
030272f3 VY |
4640 | $as_echo "none needed" >&6; } ;; |
4641 | xno) | |
7083c021 | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
030272f3 VY |
4643 | $as_echo "unsupported" >&6; } ;; |
4644 | *) | |
4645 | CC="$CC $ac_cv_prog_cc_c99" | |
7083c021 | 4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
030272f3 | 4647 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
db137867 | 4648 | esac |
7083c021 | 4649 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
db137867 | 4650 | |
030272f3 VY |
4651 | fi |
4652 | ||
4653 | ||
030272f3 | 4654 | |
7083c021 | 4655 | if test x"$ac_cv_prog_cc_c99" = "xno"; then |
08c2568c | 4656 | as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5 |
030272f3 | 4657 | fi |
db137867 | 4658 | |
db137867 AC |
4659 | |
4660 | ||
7083c021 | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
030272f3 | 4662 | $as_echo_n "checking for egrep... " >&6; } |
08c2568c | 4663 | if ${ac_cv_path_EGREP+:} false; then : |
030272f3 | 4664 | $as_echo_n "(cached) " >&6 |
db137867 | 4665 | else |
030272f3 VY |
4666 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4667 | then ac_cv_path_EGREP="$GREP -E" | |
4668 | else | |
4669 | if test -z "$EGREP"; then | |
4670 | ac_path_EGREP_found=false | |
4671 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4673 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4674 | do | |
4675 | IFS=$as_save_IFS | |
4676 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4677 | for ac_prog in egrep; do |
030272f3 VY |
4678 | for ac_exec_ext in '' $ac_executable_extensions; do |
4679 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4680 | as_fn_executable_p "$ac_path_EGREP" || continue |
030272f3 VY |
4681 | # Check for GNU ac_path_EGREP and select it if it is found. |
4682 | # Check for GNU $ac_path_EGREP | |
4683 | case `"$ac_path_EGREP" --version 2>&1` in | |
4684 | *GNU*) | |
4685 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4686 | *) | |
4687 | ac_count=0 | |
4688 | $as_echo_n 0123456789 >"conftest.in" | |
4689 | while : | |
4690 | do | |
4691 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4692 | mv "conftest.tmp" "conftest.in" | |
4693 | cp "conftest.in" "conftest.nl" | |
4694 | $as_echo 'EGREP' >> "conftest.nl" | |
4695 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4696 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4697 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
030272f3 VY |
4698 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4699 | # Best one so far, save it but keep looking for a better one | |
4700 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4701 | ac_path_EGREP_max=$ac_count | |
4702 | fi | |
4703 | # 10*(2^10) chars as input seems more than enough | |
4704 | test $ac_count -gt 10 && break | |
4705 | done | |
4706 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4707 | esac | |
db137867 | 4708 | |
030272f3 VY |
4709 | $ac_path_EGREP_found && break 3 |
4710 | done | |
4711 | done | |
7083c021 | 4712 | done |
030272f3 VY |
4713 | IFS=$as_save_IFS |
4714 | if test -z "$ac_cv_path_EGREP"; then | |
08c2568c | 4715 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4716 | fi |
db137867 | 4717 | else |
030272f3 | 4718 | ac_cv_path_EGREP=$EGREP |
db137867 | 4719 | fi |
030272f3 VY |
4720 | |
4721 | fi | |
4722 | fi | |
7083c021 | 4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
030272f3 VY |
4724 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4725 | EGREP="$ac_cv_path_EGREP" | |
4726 | ||
4727 | ||
7083c021 | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
030272f3 | 4729 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
08c2568c | 4730 | if ${ac_cv_path_SED+:} false; then : |
030272f3 VY |
4731 | $as_echo_n "(cached) " >&6 |
4732 | else | |
4733 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4734 | for ac_i in 1 2 3 4 5 6 7; do | |
4735 | ac_script="$ac_script$as_nl$ac_script" | |
4736 | done | |
4737 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
7083c021 | 4738 | { ac_script=; unset ac_script;} |
030272f3 VY |
4739 | if test -z "$SED"; then |
4740 | ac_path_SED_found=false | |
4741 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4743 | for as_dir in $PATH | |
4744 | do | |
4745 | IFS=$as_save_IFS | |
4746 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4747 | for ac_prog in sed gsed; do |
030272f3 VY |
4748 | for ac_exec_ext in '' $ac_executable_extensions; do |
4749 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 4750 | as_fn_executable_p "$ac_path_SED" || continue |
030272f3 VY |
4751 | # Check for GNU ac_path_SED and select it if it is found. |
4752 | # Check for GNU $ac_path_SED | |
4753 | case `"$ac_path_SED" --version 2>&1` in | |
4754 | *GNU*) | |
4755 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4756 | *) | |
4757 | ac_count=0 | |
4758 | $as_echo_n 0123456789 >"conftest.in" | |
4759 | while : | |
4760 | do | |
4761 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4762 | mv "conftest.tmp" "conftest.in" | |
4763 | cp "conftest.in" "conftest.nl" | |
4764 | $as_echo '' >> "conftest.nl" | |
4765 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4766 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4767 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
030272f3 VY |
4768 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4769 | # Best one so far, save it but keep looking for a better one | |
4770 | ac_cv_path_SED="$ac_path_SED" | |
4771 | ac_path_SED_max=$ac_count | |
db137867 | 4772 | fi |
030272f3 VY |
4773 | # 10*(2^10) chars as input seems more than enough |
4774 | test $ac_count -gt 10 && break | |
db137867 | 4775 | done |
030272f3 VY |
4776 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4777 | esac | |
4778 | ||
4779 | $ac_path_SED_found && break 3 | |
4780 | done | |
4781 | done | |
7083c021 | 4782 | done |
030272f3 VY |
4783 | IFS=$as_save_IFS |
4784 | if test -z "$ac_cv_path_SED"; then | |
08c2568c | 4785 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
030272f3 | 4786 | fi |
db137867 | 4787 | else |
030272f3 | 4788 | ac_cv_path_SED=$SED |
db137867 | 4789 | fi |
030272f3 | 4790 | |
db137867 | 4791 | fi |
7083c021 | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
030272f3 VY |
4793 | $as_echo "$ac_cv_path_SED" >&6; } |
4794 | SED="$ac_cv_path_SED" | |
4795 | rm -f conftest.sed | |
db137867 | 4796 | |
030272f3 VY |
4797 | |
4798 | F77=no | |
4799 | CXX=no | |
4800 | GCJ=no | |
4801 | ||
4802 | # Check whether --enable-static was given. | |
7083c021 | 4803 | if test "${enable_static+set}" = set; then : |
030272f3 VY |
4804 | enableval=$enable_static; p=${PACKAGE-default} |
4805 | case $enableval in | |
4806 | yes) enable_static=yes ;; | |
4807 | no) enable_static=no ;; | |
4808 | *) | |
4809 | enable_static=no | |
4810 | # Look at the argument we got. We use all the common list separators. | |
4811 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4812 | for pkg in $enableval; do | |
4813 | IFS="$lt_save_ifs" | |
4814 | if test "X$pkg" = "X$p"; then | |
4815 | enable_static=yes | |
4816 | fi | |
4817 | done | |
4818 | IFS="$lt_save_ifs" | |
4819 | ;; | |
4820 | esac | |
db137867 | 4821 | else |
030272f3 | 4822 | enable_static=no |
db137867 | 4823 | fi |
030272f3 VY |
4824 | |
4825 | ||
4826 | ||
7083c021 AC |
4827 | |
4828 | ||
4829 | ||
4830 | ||
4831 | ||
4832 | ||
030272f3 | 4833 | # Check whether --enable-shared was given. |
7083c021 | 4834 | if test "${enable_shared+set}" = set; then : |
030272f3 VY |
4835 | enableval=$enable_shared; p=${PACKAGE-default} |
4836 | case $enableval in | |
4837 | yes) enable_shared=yes ;; | |
4838 | no) enable_shared=no ;; | |
4839 | *) | |
4840 | enable_shared=no | |
4841 | # Look at the argument we got. We use all the common list separators. | |
4842 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4843 | for pkg in $enableval; do | |
4844 | IFS="$lt_save_ifs" | |
4845 | if test "X$pkg" = "X$p"; then | |
4846 | enable_shared=yes | |
4847 | fi | |
4848 | done | |
4849 | IFS="$lt_save_ifs" | |
4850 | ;; | |
4851 | esac | |
db137867 | 4852 | else |
030272f3 | 4853 | enable_shared=yes |
db137867 | 4854 | fi |
db137867 AC |
4855 | |
4856 | ||
7083c021 AC |
4857 | |
4858 | ||
4859 | ||
4860 | ||
4861 | ||
4862 | ||
4863 | ||
4864 | ||
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
030272f3 VY |
4866 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
4867 | # Check whether --enable-maintainer-mode was given. | |
7083c021 | 4868 | if test "${enable_maintainer_mode+set}" = set; then : |
030272f3 | 4869 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
db137867 | 4870 | else |
030272f3 | 4871 | USE_MAINTAINER_MODE=no |
db137867 | 4872 | fi |
030272f3 | 4873 | |
7083c021 | 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
030272f3 VY |
4875 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
4876 | if test $USE_MAINTAINER_MODE = yes; then | |
4877 | MAINTAINER_MODE_TRUE= | |
4878 | MAINTAINER_MODE_FALSE='#' | |
4879 | else | |
4880 | MAINTAINER_MODE_TRUE='#' | |
4881 | MAINTAINER_MODE_FALSE= | |
4882 | fi | |
4883 | ||
4884 | MAINT=$MAINTAINER_MODE_TRUE | |
4885 | ||
4886 | ||
4887 | ||
7083c021 | 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
030272f3 | 4889 | $as_echo_n "checking for library containing strerror... " >&6; } |
08c2568c | 4890 | if ${ac_cv_search_strerror+:} false; then : |
030272f3 VY |
4891 | $as_echo_n "(cached) " >&6 |
4892 | else | |
4893 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 4894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4895 | /* end confdefs.h. */ |
4896 | ||
4897 | /* Override any GCC internal prototype to avoid an error. | |
4898 | Use char because int might match the return type of a GCC | |
4899 | builtin and then its argument prototype would still apply. */ | |
4900 | #ifdef __cplusplus | |
4901 | extern "C" | |
4902 | #endif | |
4903 | char strerror (); | |
4904 | int | |
4905 | main () | |
4906 | { | |
4907 | return strerror (); | |
4908 | ; | |
4909 | return 0; | |
4910 | } | |
4911 | _ACEOF | |
4912 | for ac_lib in '' cposix; do | |
4913 | if test -z "$ac_lib"; then | |
4914 | ac_res="none required" | |
4915 | else | |
4916 | ac_res=-l$ac_lib | |
4917 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4918 | fi | |
7083c021 | 4919 | if ac_fn_c_try_link "$LINENO"; then : |
030272f3 | 4920 | ac_cv_search_strerror=$ac_res |
030272f3 | 4921 | fi |
7083c021 AC |
4922 | rm -f core conftest.err conftest.$ac_objext \ |
4923 | conftest$ac_exeext | |
08c2568c | 4924 | if ${ac_cv_search_strerror+:} false; then : |
030272f3 VY |
4925 | break |
4926 | fi | |
4927 | done | |
08c2568c | 4928 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4929 | |
030272f3 VY |
4930 | else |
4931 | ac_cv_search_strerror=no | |
4932 | fi | |
4933 | rm conftest.$ac_ext | |
4934 | LIBS=$ac_func_search_save_LIBS | |
4935 | fi | |
7083c021 | 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
030272f3 VY |
4937 | $as_echo "$ac_cv_search_strerror" >&6; } |
4938 | ac_res=$ac_cv_search_strerror | |
7083c021 | 4939 | if test "$ac_res" != no; then : |
030272f3 VY |
4940 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4941 | ||
4942 | fi | |
4943 | ||
7083c021 | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
030272f3 | 4945 | $as_echo_n "checking for inline... " >&6; } |
08c2568c | 4946 | if ${ac_cv_c_inline+:} false; then : |
030272f3 VY |
4947 | $as_echo_n "(cached) " >&6 |
4948 | else | |
4949 | ac_cv_c_inline=no | |
4950 | for ac_kw in inline __inline__ __inline; do | |
7083c021 | 4951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4952 | /* end confdefs.h. */ |
4953 | #ifndef __cplusplus | |
4954 | typedef int foo_t; | |
4955 | static $ac_kw foo_t static_foo () {return 0; } | |
4956 | $ac_kw foo_t foo () {return 0; } | |
4957 | #endif | |
4958 | ||
4959 | _ACEOF | |
7083c021 | 4960 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4961 | ac_cv_c_inline=$ac_kw |
030272f3 | 4962 | fi |
030272f3 VY |
4963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4964 | test "$ac_cv_c_inline" != no && break | |
4965 | done | |
4966 | ||
4967 | fi | |
7083c021 | 4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
030272f3 VY |
4969 | $as_echo "$ac_cv_c_inline" >&6; } |
4970 | ||
030272f3 VY |
4971 | case $ac_cv_c_inline in |
4972 | inline | yes) ;; | |
4973 | *) | |
4974 | case $ac_cv_c_inline in | |
4975 | no) ac_val=;; | |
4976 | *) ac_val=$ac_cv_c_inline;; | |
4977 | esac | |
4978 | cat >>confdefs.h <<_ACEOF | |
4979 | #ifndef __cplusplus | |
4980 | #define inline $ac_val | |
4981 | #endif | |
4982 | _ACEOF | |
db137867 AC |
4983 | ;; |
4984 | esac | |
4985 | ||
7083c021 | 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
030272f3 | 4987 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
08c2568c | 4988 | if ${ac_cv_c_const+:} false; then : |
030272f3 | 4989 | $as_echo_n "(cached) " >&6 |
db137867 | 4990 | else |
7083c021 | 4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4992 | /* end confdefs.h. */ |
4993 | ||
4994 | int | |
4995 | main () | |
4996 | { | |
bf4e01a4 | 4997 | |
030272f3 | 4998 | #ifndef __cplusplus |
bf4e01a4 | 4999 | /* Ultrix mips cc rejects this sort of thing. */ |
030272f3 | 5000 | typedef int charset[2]; |
bf4e01a4 | 5001 | const charset cs = { 0, 0 }; |
030272f3 VY |
5002 | /* SunOS 4.1.1 cc rejects this. */ |
5003 | char const *const *pcpcc; | |
5004 | char **ppc; | |
5005 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5006 | struct point {int x, y;}; | |
5007 | static struct point const zero = {0,0}; | |
5008 | /* AIX XL C 1.02.0.0 rejects this. | |
5009 | It does not let you subtract one const X* pointer from another in | |
5010 | an arm of an if-expression whose if-part is not a constant | |
5011 | expression */ | |
5012 | const char *g = "string"; | |
5013 | pcpcc = &g + (g ? g-g : 0); | |
5014 | /* HPUX 7.0 cc rejects these. */ | |
5015 | ++pcpcc; | |
5016 | ppc = (char**) pcpcc; | |
5017 | pcpcc = (char const *const *) ppc; | |
bf4e01a4 AC |
5018 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
5019 | char tx; | |
5020 | char *t = &tx; | |
030272f3 VY |
5021 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
5022 | ||
5023 | *t++ = 0; | |
5024 | if (s) return 0; | |
5025 | } | |
5026 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5027 | int x[] = {25, 17}; | |
5028 | const int *foo = &x[0]; | |
5029 | ++foo; | |
5030 | } | |
5031 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5032 | typedef const int *iptr; | |
5033 | iptr p = 0; | |
5034 | ++p; | |
5035 | } | |
bf4e01a4 | 5036 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
030272f3 | 5037 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
bf4e01a4 AC |
5038 | struct s { int j; const int *ap[3]; } bx; |
5039 | struct s *b = &bx; b->j = 5; | |
030272f3 VY |
5040 | } |
5041 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5042 | const int foo = 10; | |
5043 | if (!foo) return 0; | |
5044 | } | |
5045 | return !cs[0] && !zero.x; | |
5046 | #endif | |
5047 | ||
5048 | ; | |
5049 | return 0; | |
5050 | } | |
5051 | _ACEOF | |
7083c021 | 5052 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 5053 | ac_cv_c_const=yes |
db137867 | 5054 | else |
7083c021 | 5055 | ac_cv_c_const=no |
030272f3 | 5056 | fi |
030272f3 VY |
5057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5058 | fi | |
7083c021 | 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
030272f3 VY |
5060 | $as_echo "$ac_cv_c_const" >&6; } |
5061 | if test $ac_cv_c_const = no; then | |
5062 | ||
7083c021 | 5063 | $as_echo "#define const /**/" >>confdefs.h |
030272f3 VY |
5064 | |
5065 | fi | |
5066 | ||
f171dafb EM |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5068 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5069 | if ${ac_cv_c_bigendian+:} false; then : | |
5070 | $as_echo_n "(cached) " >&6 | |
5071 | else | |
5072 | ac_cv_c_bigendian=unknown | |
5073 | # See if we're dealing with a universal compiler. | |
5074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5075 | /* end confdefs.h. */ | |
5076 | #ifndef __APPLE_CC__ | |
5077 | not a universal capable compiler | |
5078 | #endif | |
5079 | typedef int dummy; | |
5080 | ||
5081 | _ACEOF | |
5082 | if ac_fn_c_try_compile "$LINENO"; then : | |
5083 | ||
5084 | # Check for potential -arch flags. It is not universal unless | |
5085 | # there are at least two -arch flags with different values. | |
5086 | ac_arch= | |
5087 | ac_prev= | |
5088 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5089 | if test -n "$ac_prev"; then | |
5090 | case $ac_word in | |
5091 | i?86 | x86_64 | ppc | ppc64) | |
5092 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5093 | ac_arch=$ac_word | |
5094 | else | |
5095 | ac_cv_c_bigendian=universal | |
5096 | break | |
5097 | fi | |
5098 | ;; | |
5099 | esac | |
5100 | ac_prev= | |
5101 | elif test "x$ac_word" = "x-arch"; then | |
5102 | ac_prev=arch | |
5103 | fi | |
5104 | done | |
5105 | fi | |
5106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5107 | if test $ac_cv_c_bigendian = unknown; then | |
5108 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5110 | /* end confdefs.h. */ | |
5111 | #include <sys/types.h> | |
5112 | #include <sys/param.h> | |
5113 | ||
5114 | int | |
5115 | main () | |
5116 | { | |
5117 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5118 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5119 | && LITTLE_ENDIAN) | |
5120 | bogus endian macros | |
5121 | #endif | |
5122 | ||
5123 | ; | |
5124 | return 0; | |
5125 | } | |
5126 | _ACEOF | |
5127 | if ac_fn_c_try_compile "$LINENO"; then : | |
5128 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5130 | /* end confdefs.h. */ | |
5131 | #include <sys/types.h> | |
5132 | #include <sys/param.h> | |
5133 | ||
5134 | int | |
5135 | main () | |
5136 | { | |
5137 | #if BYTE_ORDER != BIG_ENDIAN | |
5138 | not big endian | |
5139 | #endif | |
5140 | ||
5141 | ; | |
5142 | return 0; | |
5143 | } | |
5144 | _ACEOF | |
5145 | if ac_fn_c_try_compile "$LINENO"; then : | |
5146 | ac_cv_c_bigendian=yes | |
5147 | else | |
5148 | ac_cv_c_bigendian=no | |
5149 | fi | |
5150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5151 | fi | |
5152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5153 | fi | |
5154 | if test $ac_cv_c_bigendian = unknown; then | |
5155 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5157 | /* end confdefs.h. */ | |
5158 | #include <limits.h> | |
5159 | ||
5160 | int | |
5161 | main () | |
5162 | { | |
5163 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5164 | bogus endian macros | |
5165 | #endif | |
5166 | ||
5167 | ; | |
5168 | return 0; | |
5169 | } | |
5170 | _ACEOF | |
5171 | if ac_fn_c_try_compile "$LINENO"; then : | |
5172 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5174 | /* end confdefs.h. */ | |
5175 | #include <limits.h> | |
5176 | ||
5177 | int | |
5178 | main () | |
5179 | { | |
5180 | #ifndef _BIG_ENDIAN | |
5181 | not big endian | |
5182 | #endif | |
5183 | ||
5184 | ; | |
5185 | return 0; | |
5186 | } | |
5187 | _ACEOF | |
5188 | if ac_fn_c_try_compile "$LINENO"; then : | |
5189 | ac_cv_c_bigendian=yes | |
5190 | else | |
5191 | ac_cv_c_bigendian=no | |
5192 | fi | |
5193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5194 | fi | |
5195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5196 | fi | |
5197 | if test $ac_cv_c_bigendian = unknown; then | |
5198 | # Compile a test program. | |
5199 | if test "$cross_compiling" = yes; then : | |
5200 | # Try to guess by grepping values from an object file. | |
5201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5202 | /* end confdefs.h. */ | |
5203 | short int ascii_mm[] = | |
5204 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5205 | short int ascii_ii[] = | |
5206 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5207 | int use_ascii (int i) { | |
5208 | return ascii_mm[i] + ascii_ii[i]; | |
5209 | } | |
5210 | short int ebcdic_ii[] = | |
5211 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5212 | short int ebcdic_mm[] = | |
5213 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5214 | int use_ebcdic (int i) { | |
5215 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5216 | } | |
5217 | extern int foo; | |
5218 | ||
5219 | int | |
5220 | main () | |
5221 | { | |
5222 | return use_ascii (foo) == use_ebcdic (foo); | |
5223 | ; | |
5224 | return 0; | |
5225 | } | |
5226 | _ACEOF | |
5227 | if ac_fn_c_try_compile "$LINENO"; then : | |
5228 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5229 | ac_cv_c_bigendian=yes | |
5230 | fi | |
5231 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5232 | if test "$ac_cv_c_bigendian" = unknown; then | |
5233 | ac_cv_c_bigendian=no | |
5234 | else | |
5235 | # finding both strings is unlikely to happen, but who knows? | |
5236 | ac_cv_c_bigendian=unknown | |
5237 | fi | |
5238 | fi | |
5239 | fi | |
5240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5241 | else | |
5242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5243 | /* end confdefs.h. */ | |
5244 | $ac_includes_default | |
5245 | int | |
5246 | main () | |
5247 | { | |
5248 | ||
5249 | /* Are we little or big endian? From Harbison&Steele. */ | |
5250 | union | |
5251 | { | |
5252 | long int l; | |
5253 | char c[sizeof (long int)]; | |
5254 | } u; | |
5255 | u.l = 1; | |
5256 | return u.c[sizeof (long int) - 1] == 1; | |
5257 | ||
5258 | ; | |
5259 | return 0; | |
5260 | } | |
5261 | _ACEOF | |
5262 | if ac_fn_c_try_run "$LINENO"; then : | |
5263 | ac_cv_c_bigendian=no | |
5264 | else | |
5265 | ac_cv_c_bigendian=yes | |
5266 | fi | |
5267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5268 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5269 | fi | |
5270 | ||
5271 | fi | |
5272 | fi | |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5274 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5275 | case $ac_cv_c_bigendian in #( | |
5276 | yes) | |
5277 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5278 | ;; #( | |
5279 | no) | |
5280 | ;; #( | |
5281 | universal) | |
5282 | ||
5283 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5284 | ||
5285 | ;; #( | |
5286 | *) | |
5287 | as_fn_error $? "unknown endianness | |
5288 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5289 | esac | |
5290 | ||
7083c021 | 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
030272f3 VY |
5292 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
5293 | set x ${MAKE-make} | |
5294 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
08c2568c | 5295 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
030272f3 VY |
5296 | $as_echo_n "(cached) " >&6 |
5297 | else | |
5298 | cat >conftest.make <<\_ACEOF | |
5299 | SHELL = /bin/sh | |
5300 | all: | |
5301 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5302 | _ACEOF | |
08c2568c | 5303 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
030272f3 VY |
5304 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5305 | *@@@%%%=?*=@@@%%%*) | |
5306 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5307 | *) | |
5308 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5309 | esac | |
5310 | rm -f conftest.make | |
5311 | fi | |
5312 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7083c021 | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 VY |
5314 | $as_echo "yes" >&6; } |
5315 | SET_MAKE= | |
5316 | else | |
7083c021 | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5318 | $as_echo "no" >&6; } |
5319 | SET_MAKE="MAKE=${MAKE-make}" | |
5320 | fi | |
5321 | ||
db137867 | 5322 | |
030272f3 VY |
5323 | # Extract the first word of "automake", so it can be a program name with args. |
5324 | set dummy automake; ac_word=$2 | |
7083c021 | 5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5326 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5327 | if ${ac_cv_path_AUTOMAKE+:} false; then : |
030272f3 VY |
5328 | $as_echo_n "(cached) " >&6 |
5329 | else | |
5330 | case $AUTOMAKE in | |
5331 | [\\/]* | ?:[\\/]*) | |
5332 | ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path. | |
db137867 | 5333 | ;; |
030272f3 VY |
5334 | *) |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5340 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5342 | ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5344 | break 2 |
5345 | fi | |
5346 | done | |
7083c021 | 5347 | done |
030272f3 | 5348 | IFS=$as_save_IFS |
db137867 | 5349 | |
db137867 | 5350 | ;; |
030272f3 VY |
5351 | esac |
5352 | fi | |
5353 | AUTOMAKE=$ac_cv_path_AUTOMAKE | |
5354 | if test -n "$AUTOMAKE"; then | |
7083c021 | 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5 |
030272f3 VY |
5356 | $as_echo "$AUTOMAKE" >&6; } |
5357 | else | |
7083c021 | 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5359 | $as_echo "no" >&6; } |
5360 | fi | |
db137867 | 5361 | |
db137867 | 5362 | |
030272f3 VY |
5363 | # Extract the first word of "aclocal", so it can be a program name with args. |
5364 | set dummy aclocal; ac_word=$2 | |
7083c021 | 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5366 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5367 | if ${ac_cv_path_ACLOCAL+:} false; then : |
030272f3 VY |
5368 | $as_echo_n "(cached) " >&6 |
5369 | else | |
5370 | case $ACLOCAL in | |
5371 | [\\/]* | ?:[\\/]*) | |
5372 | ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. | |
db137867 | 5373 | ;; |
db137867 | 5374 | *) |
030272f3 VY |
5375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5376 | for as_dir in $PATH | |
5377 | do | |
5378 | IFS=$as_save_IFS | |
5379 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5380 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5382 | ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5384 | break 2 |
5385 | fi | |
5386 | done | |
7083c021 | 5387 | done |
030272f3 | 5388 | IFS=$as_save_IFS |
db137867 | 5389 | |
db137867 | 5390 | ;; |
030272f3 VY |
5391 | esac |
5392 | fi | |
5393 | ACLOCAL=$ac_cv_path_ACLOCAL | |
5394 | if test -n "$ACLOCAL"; then | |
7083c021 | 5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 |
030272f3 VY |
5396 | $as_echo "$ACLOCAL" >&6; } |
5397 | else | |
7083c021 | 5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5399 | $as_echo "no" >&6; } |
5400 | fi | |
db137867 | 5401 | |
db137867 | 5402 | |
030272f3 VY |
5403 | # Extract the first word of "autoheader", so it can be a program name with args. |
5404 | set dummy autoheader; ac_word=$2 | |
7083c021 | 5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5406 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5407 | if ${ac_cv_path_AUTOHEADER+:} false; then : |
030272f3 VY |
5408 | $as_echo_n "(cached) " >&6 |
5409 | else | |
5410 | case $AUTOHEADER in | |
5411 | [\\/]* | ?:[\\/]*) | |
5412 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. | |
db137867 | 5413 | ;; |
030272f3 VY |
5414 | *) |
5415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5416 | for as_dir in $PATH | |
5417 | do | |
5418 | IFS=$as_save_IFS | |
5419 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5420 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5422 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 | 5424 | break 2 |
db137867 | 5425 | fi |
030272f3 | 5426 | done |
7083c021 | 5427 | done |
030272f3 VY |
5428 | IFS=$as_save_IFS |
5429 | ||
db137867 | 5430 | ;; |
030272f3 VY |
5431 | esac |
5432 | fi | |
5433 | AUTOHEADER=$ac_cv_path_AUTOHEADER | |
5434 | if test -n "$AUTOHEADER"; then | |
7083c021 | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 |
030272f3 VY |
5436 | $as_echo "$AUTOHEADER" >&6; } |
5437 | else | |
7083c021 | 5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5439 | $as_echo "no" >&6; } |
5440 | fi | |
db137867 | 5441 | |
030272f3 VY |
5442 | |
5443 | # Extract the first word of "as", so it can be a program name with args. | |
5444 | set dummy as; ac_word=$2 | |
7083c021 | 5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5446 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5447 | if ${ac_cv_path_AS+:} false; then : |
030272f3 VY |
5448 | $as_echo_n "(cached) " >&6 |
5449 | else | |
5450 | case $AS in | |
5451 | [\\/]* | ?:[\\/]*) | |
5452 | ac_cv_path_AS="$AS" # Let the user override the test with a path. | |
db137867 | 5453 | ;; |
030272f3 VY |
5454 | *) |
5455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5456 | for as_dir in $PATH | |
5457 | do | |
5458 | IFS=$as_save_IFS | |
5459 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5460 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5462 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5464 | break 2 |
5465 | fi | |
5466 | done | |
7083c021 | 5467 | done |
030272f3 | 5468 | IFS=$as_save_IFS |
db137867 | 5469 | |
db137867 | 5470 | ;; |
030272f3 VY |
5471 | esac |
5472 | fi | |
5473 | AS=$ac_cv_path_AS | |
5474 | if test -n "$AS"; then | |
7083c021 | 5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
030272f3 VY |
5476 | $as_echo "$AS" >&6; } |
5477 | else | |
7083c021 | 5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5479 | $as_echo "no" >&6; } |
5480 | fi | |
db137867 | 5481 | |
db137867 | 5482 | |
030272f3 VY |
5483 | # Extract the first word of "rm", so it can be a program name with args. |
5484 | set dummy rm; ac_word=$2 | |
7083c021 | 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5486 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5487 | if ${ac_cv_path_RM+:} false; then : |
030272f3 VY |
5488 | $as_echo_n "(cached) " >&6 |
5489 | else | |
5490 | case $RM in | |
5491 | [\\/]* | ?:[\\/]*) | |
5492 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
db137867 | 5493 | ;; |
030272f3 VY |
5494 | *) |
5495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5496 | for as_dir in $PATH | |
5497 | do | |
5498 | IFS=$as_save_IFS | |
5499 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5500 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5502 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5504 | break 2 |
5505 | fi | |
5506 | done | |
7083c021 | 5507 | done |
030272f3 | 5508 | IFS=$as_save_IFS |
db137867 | 5509 | |
db137867 | 5510 | ;; |
030272f3 VY |
5511 | esac |
5512 | fi | |
5513 | RM=$ac_cv_path_RM | |
5514 | if test -n "$RM"; then | |
7083c021 | 5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
030272f3 VY |
5516 | $as_echo "$RM" >&6; } |
5517 | else | |
7083c021 | 5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5519 | $as_echo "no" >&6; } |
5520 | fi | |
db137867 | 5521 | |
db137867 | 5522 | |
030272f3 VY |
5523 | # Extract the first word of "cp", so it can be a program name with args. |
5524 | set dummy cp; ac_word=$2 | |
7083c021 | 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5526 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5527 | if ${ac_cv_path_CP+:} false; then : |
030272f3 VY |
5528 | $as_echo_n "(cached) " >&6 |
5529 | else | |
5530 | case $CP in | |
5531 | [\\/]* | ?:[\\/]*) | |
5532 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
db137867 | 5533 | ;; |
030272f3 VY |
5534 | *) |
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5536 | for as_dir in $PATH | |
5537 | do | |
5538 | IFS=$as_save_IFS | |
5539 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5540 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5542 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5544 | break 2 |
5545 | fi | |
5546 | done | |
7083c021 | 5547 | done |
030272f3 | 5548 | IFS=$as_save_IFS |
db137867 | 5549 | |
db137867 AC |
5550 | ;; |
5551 | esac | |
db137867 | 5552 | fi |
030272f3 VY |
5553 | CP=$ac_cv_path_CP |
5554 | if test -n "$CP"; then | |
7083c021 | 5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
030272f3 VY |
5556 | $as_echo "$CP" >&6; } |
5557 | else | |
7083c021 | 5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5559 | $as_echo "no" >&6; } |
db137867 AC |
5560 | fi |
5561 | ||
db137867 | 5562 | |
030272f3 VY |
5563 | # Extract the first word of "mv", so it can be a program name with args. |
5564 | set dummy mv; ac_word=$2 | |
7083c021 | 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5566 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5567 | if ${ac_cv_path_MV+:} false; then : |
030272f3 VY |
5568 | $as_echo_n "(cached) " >&6 |
5569 | else | |
5570 | case $MV in | |
5571 | [\\/]* | ?:[\\/]*) | |
5572 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
db137867 | 5573 | ;; |
030272f3 VY |
5574 | *) |
5575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5576 | for as_dir in $PATH | |
5577 | do | |
5578 | IFS=$as_save_IFS | |
5579 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5580 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5582 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 | 5584 | break 2 |
db137867 | 5585 | fi |
030272f3 | 5586 | done |
7083c021 | 5587 | done |
030272f3 | 5588 | IFS=$as_save_IFS |
db137867 | 5589 | |
db137867 | 5590 | ;; |
030272f3 VY |
5591 | esac |
5592 | fi | |
5593 | MV=$ac_cv_path_MV | |
5594 | if test -n "$MV"; then | |
7083c021 | 5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
030272f3 VY |
5596 | $as_echo "$MV" >&6; } |
5597 | else | |
7083c021 | 5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5599 | $as_echo "no" >&6; } |
5600 | fi | |
5601 | ||
5602 | ||
5603 | # Extract the first word of "ln", so it can be a program name with args. | |
5604 | set dummy ln; ac_word=$2 | |
7083c021 | 5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5606 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5607 | if ${ac_cv_path_LN+:} false; then : |
030272f3 VY |
5608 | $as_echo_n "(cached) " >&6 |
5609 | else | |
5610 | case $LN in | |
5611 | [\\/]* | ?:[\\/]*) | |
5612 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
5613 | ;; | |
5614 | *) | |
5615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5616 | for as_dir in $PATH | |
5617 | do | |
5618 | IFS=$as_save_IFS | |
5619 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5620 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5622 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5624 | break 2 |
5625 | fi | |
5626 | done | |
7083c021 | 5627 | done |
030272f3 | 5628 | IFS=$as_save_IFS |
db137867 | 5629 | |
030272f3 VY |
5630 | ;; |
5631 | esac | |
5632 | fi | |
5633 | LN=$ac_cv_path_LN | |
5634 | if test -n "$LN"; then | |
7083c021 | 5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
030272f3 | 5636 | $as_echo "$LN" >&6; } |
db137867 | 5637 | else |
7083c021 | 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5639 | $as_echo "no" >&6; } |
5640 | fi | |
db137867 | 5641 | |
db137867 | 5642 | |
030272f3 VY |
5643 | # Extract the first word of "touch", so it can be a program name with args. |
5644 | set dummy touch; ac_word=$2 | |
7083c021 | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5646 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5647 | if ${ac_cv_path_TOUCH+:} false; then : |
030272f3 VY |
5648 | $as_echo_n "(cached) " >&6 |
5649 | else | |
5650 | case $TOUCH in | |
5651 | [\\/]* | ?:[\\/]*) | |
5652 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5653 | ;; | |
5654 | *) | |
5655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5656 | for as_dir in $PATH | |
5657 | do | |
5658 | IFS=$as_save_IFS | |
5659 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5660 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 5661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
030272f3 | 5662 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
7083c021 | 5663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5664 | break 2 |
5665 | fi | |
5666 | done | |
7083c021 | 5667 | done |
030272f3 | 5668 | IFS=$as_save_IFS |
db137867 | 5669 | |
030272f3 | 5670 | ;; |
db137867 | 5671 | esac |
030272f3 VY |
5672 | fi |
5673 | TOUCH=$ac_cv_path_TOUCH | |
5674 | if test -n "$TOUCH"; then | |
7083c021 | 5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 |
030272f3 | 5676 | $as_echo "$TOUCH" >&6; } |
db137867 | 5677 | else |
7083c021 | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5679 | $as_echo "no" >&6; } |
db137867 AC |
5680 | fi |
5681 | ||
030272f3 VY |
5682 | |
5683 | ac_ext=c | |
db137867 AC |
5684 | ac_cpp='$CPP $CPPFLAGS' |
5685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5688 | ||
030272f3 | 5689 | |
7083c021 AC |
5690 | case `pwd` in |
5691 | *\ * | *\ *) | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5693 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5694 | esac | |
5695 | ||
5696 | ||
5697 | ||
a949ab1a AC |
5698 | macro_version='2.4.2' |
5699 | macro_revision='1.3337' | |
7083c021 AC |
5700 | |
5701 | ||
5702 | ||
5703 | ||
5704 | ||
5705 | ||
5706 | ||
5707 | ||
5708 | ||
030272f3 VY |
5709 | |
5710 | ||
7083c021 AC |
5711 | |
5712 | ||
5713 | ltmain="$ac_aux_dir/ltmain.sh" | |
5714 | ||
030272f3 VY |
5715 | # Make sure we can run config.sub. |
5716 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
08c2568c | 5717 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
030272f3 | 5718 | |
7083c021 | 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
030272f3 | 5720 | $as_echo_n "checking build system type... " >&6; } |
08c2568c | 5721 | if ${ac_cv_build+:} false; then : |
030272f3 VY |
5722 | $as_echo_n "(cached) " >&6 |
5723 | else | |
5724 | ac_build_alias=$build_alias | |
5725 | test "x$ac_build_alias" = x && | |
5726 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5727 | test "x$ac_build_alias" = x && | |
08c2568c | 5728 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
030272f3 | 5729 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
08c2568c | 5730 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
030272f3 VY |
5731 | |
5732 | fi | |
7083c021 | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
030272f3 VY |
5734 | $as_echo "$ac_cv_build" >&6; } |
5735 | case $ac_cv_build in | |
5736 | *-*-*) ;; | |
08c2568c | 5737 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
030272f3 VY |
5738 | esac |
5739 | build=$ac_cv_build | |
5740 | ac_save_IFS=$IFS; IFS='-' | |
5741 | set x $ac_cv_build | |
5742 | shift | |
5743 | build_cpu=$1 | |
5744 | build_vendor=$2 | |
5745 | shift; shift | |
5746 | # Remember, the first character of IFS is used to create $*, | |
5747 | # except with old shells: | |
5748 | build_os=$* | |
5749 | IFS=$ac_save_IFS | |
5750 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5751 | ||
5752 | ||
7083c021 | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
030272f3 | 5754 | $as_echo_n "checking host system type... " >&6; } |
08c2568c | 5755 | if ${ac_cv_host+:} false; then : |
030272f3 VY |
5756 | $as_echo_n "(cached) " >&6 |
5757 | else | |
5758 | if test "x$host_alias" = x; then | |
5759 | ac_cv_host=$ac_cv_build | |
5760 | else | |
5761 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
08c2568c | 5762 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
030272f3 VY |
5763 | fi |
5764 | ||
5765 | fi | |
7083c021 | 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
030272f3 VY |
5767 | $as_echo "$ac_cv_host" >&6; } |
5768 | case $ac_cv_host in | |
5769 | *-*-*) ;; | |
08c2568c | 5770 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
030272f3 VY |
5771 | esac |
5772 | host=$ac_cv_host | |
5773 | ac_save_IFS=$IFS; IFS='-' | |
5774 | set x $ac_cv_host | |
5775 | shift | |
5776 | host_cpu=$1 | |
5777 | host_vendor=$2 | |
5778 | shift; shift | |
5779 | # Remember, the first character of IFS is used to create $*, | |
5780 | # except with old shells: | |
5781 | host_os=$* | |
5782 | IFS=$ac_save_IFS | |
5783 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5784 | ||
5785 | ||
b6d0720c AC |
5786 | # Backslashify metacharacters that are still active within |
5787 | # double-quoted strings. | |
5788 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5789 | ||
5790 | # Same as above, but do not quote variable references. | |
5791 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5792 | ||
5793 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5794 | # double_quote_subst'ed string. | |
5795 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5796 | ||
5797 | # Sed substitution to delay expansion of an escaped single quote. | |
5798 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5799 | ||
5800 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5801 | no_glob_subst='s/\*/\\\*/g' | |
5802 | ||
5803 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5804 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5805 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5806 | ||
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5808 | $as_echo_n "checking how to print strings... " >&6; } | |
5809 | # Test print first, because it will be a builtin if present. | |
5810 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5811 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5812 | ECHO='print -r --' | |
5813 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5814 | ECHO='printf %s\n' | |
5815 | else | |
5816 | # Use this function as a fallback that always works. | |
5817 | func_fallback_echo () | |
5818 | { | |
5819 | eval 'cat <<_LTECHO_EOF | |
5820 | $1 | |
5821 | _LTECHO_EOF' | |
5822 | } | |
5823 | ECHO='func_fallback_echo' | |
5824 | fi | |
5825 | ||
5826 | # func_echo_all arg... | |
5827 | # Invoke $ECHO with all args, space-separated. | |
5828 | func_echo_all () | |
5829 | { | |
5830 | $ECHO "" | |
5831 | } | |
5832 | ||
5833 | case "$ECHO" in | |
5834 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5835 | $as_echo "printf" >&6; } ;; | |
5836 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5837 | $as_echo "print -r" >&6; } ;; | |
5838 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5839 | $as_echo "cat" >&6; } ;; | |
5840 | esac | |
5841 | ||
5842 | ||
5843 | ||
5844 | ||
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | ||
5850 | ||
5851 | ||
5852 | ||
5853 | ||
5854 | ||
7083c021 | 5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
030272f3 | 5856 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
08c2568c | 5857 | if ${ac_cv_path_SED+:} false; then : |
030272f3 VY |
5858 | $as_echo_n "(cached) " >&6 |
5859 | else | |
7083c021 AC |
5860 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5861 | for ac_i in 1 2 3 4 5 6 7; do | |
5862 | ac_script="$ac_script$as_nl$ac_script" | |
5863 | done | |
5864 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5865 | { ac_script=; unset ac_script;} | |
5866 | if test -z "$SED"; then | |
5867 | ac_path_SED_found=false | |
5868 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
030272f3 VY |
5870 | for as_dir in $PATH |
5871 | do | |
5872 | IFS=$as_save_IFS | |
5873 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5874 | for ac_prog in sed gsed; do |
030272f3 | 5875 | for ac_exec_ext in '' $ac_executable_extensions; do |
7083c021 | 5876 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
bf4e01a4 | 5877 | as_fn_executable_p "$ac_path_SED" || continue |
7083c021 AC |
5878 | # Check for GNU ac_path_SED and select it if it is found. |
5879 | # Check for GNU $ac_path_SED | |
5880 | case `"$ac_path_SED" --version 2>&1` in | |
5881 | *GNU*) | |
5882 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5883 | *) | |
5884 | ac_count=0 | |
5885 | $as_echo_n 0123456789 >"conftest.in" | |
5886 | while : | |
5887 | do | |
5888 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5889 | mv "conftest.tmp" "conftest.in" | |
5890 | cp "conftest.in" "conftest.nl" | |
5891 | $as_echo '' >> "conftest.nl" | |
5892 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5893 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5894 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5895 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5896 | # Best one so far, save it but keep looking for a better one | |
5897 | ac_cv_path_SED="$ac_path_SED" | |
5898 | ac_path_SED_max=$ac_count | |
5899 | fi | |
5900 | # 10*(2^10) chars as input seems more than enough | |
5901 | test $ac_count -gt 10 && break | |
5902 | done | |
5903 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5904 | esac | |
5905 | ||
5906 | $ac_path_SED_found && break 3 | |
030272f3 VY |
5907 | done |
5908 | done | |
7083c021 | 5909 | done |
030272f3 | 5910 | IFS=$as_save_IFS |
7083c021 | 5911 | if test -z "$ac_cv_path_SED"; then |
08c2568c | 5912 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
db137867 | 5913 | fi |
7083c021 AC |
5914 | else |
5915 | ac_cv_path_SED=$SED | |
5916 | fi | |
db137867 | 5917 | |
030272f3 | 5918 | fi |
7083c021 AC |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5920 | $as_echo "$ac_cv_path_SED" >&6; } | |
5921 | SED="$ac_cv_path_SED" | |
5922 | rm -f conftest.sed | |
db137867 | 5923 | |
7083c021 AC |
5924 | test -z "$SED" && SED=sed |
5925 | Xsed="$SED -e 1s/^X//" | |
db137867 | 5926 | |
db137867 AC |
5927 | |
5928 | ||
db137867 | 5929 | |
7083c021 AC |
5930 | |
5931 | ||
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5938 | $as_echo_n "checking for fgrep... " >&6; } | |
08c2568c | 5939 | if ${ac_cv_path_FGREP+:} false; then : |
7083c021 AC |
5940 | $as_echo_n "(cached) " >&6 |
5941 | else | |
5942 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5943 | then ac_cv_path_FGREP="$GREP -F" | |
5944 | else | |
5945 | if test -z "$FGREP"; then | |
5946 | ac_path_FGREP_found=false | |
5947 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5949 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5950 | do | |
5951 | IFS=$as_save_IFS | |
5952 | test -z "$as_dir" && as_dir=. | |
5953 | for ac_prog in fgrep; do | |
5954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5955 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
bf4e01a4 | 5956 | as_fn_executable_p "$ac_path_FGREP" || continue |
7083c021 AC |
5957 | # Check for GNU ac_path_FGREP and select it if it is found. |
5958 | # Check for GNU $ac_path_FGREP | |
5959 | case `"$ac_path_FGREP" --version 2>&1` in | |
5960 | *GNU*) | |
5961 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5962 | *) | |
5963 | ac_count=0 | |
5964 | $as_echo_n 0123456789 >"conftest.in" | |
5965 | while : | |
5966 | do | |
5967 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5968 | mv "conftest.tmp" "conftest.in" | |
5969 | cp "conftest.in" "conftest.nl" | |
5970 | $as_echo 'FGREP' >> "conftest.nl" | |
5971 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5972 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5973 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5974 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5975 | # Best one so far, save it but keep looking for a better one | |
5976 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5977 | ac_path_FGREP_max=$ac_count | |
5978 | fi | |
5979 | # 10*(2^10) chars as input seems more than enough | |
5980 | test $ac_count -gt 10 && break | |
5981 | done | |
5982 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5983 | esac | |
5984 | ||
5985 | $ac_path_FGREP_found && break 3 | |
5986 | done | |
5987 | done | |
5988 | done | |
5989 | IFS=$as_save_IFS | |
5990 | if test -z "$ac_cv_path_FGREP"; then | |
08c2568c | 5991 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 AC |
5992 | fi |
5993 | else | |
5994 | ac_cv_path_FGREP=$FGREP | |
5995 | fi | |
5996 | ||
5997 | fi | |
5998 | fi | |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
6000 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6001 | FGREP="$ac_cv_path_FGREP" | |
6002 | ||
6003 | ||
6004 | test -z "$GREP" && GREP=grep | |
6005 | ||
6006 | ||
6007 | ||
6008 | ||
6009 | ||
6010 | ||
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | ||
6017 | ||
6018 | ||
6019 | ||
6020 | ||
6021 | ||
6022 | ||
6023 | ||
6024 | # Check whether --with-gnu-ld was given. | |
6025 | if test "${with_gnu_ld+set}" = set; then : | |
6026 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6027 | else | |
6028 | with_gnu_ld=no | |
6029 | fi | |
6030 | ||
6031 | ac_prog=ld | |
6032 | if test "$GCC" = yes; then | |
6033 | # Check if gcc -print-prog-name=ld gives a path. | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6035 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6036 | case $host in | |
6037 | *-*-mingw*) | |
6038 | # gcc leaves a trailing carriage return which upsets mingw | |
6039 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6040 | *) | |
6041 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6042 | esac | |
6043 | case $ac_prog in | |
6044 | # Accept absolute paths. | |
6045 | [\\/]* | ?:[\\/]*) | |
6046 | re_direlt='/[^/][^/]*/\.\./' | |
6047 | # Canonicalize the pathname of ld | |
6048 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6049 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6050 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6051 | done | |
6052 | test -z "$LD" && LD="$ac_prog" | |
6053 | ;; | |
6054 | "") | |
6055 | # If it fails, then pretend we aren't using GCC. | |
6056 | ac_prog=ld | |
6057 | ;; | |
6058 | *) | |
6059 | # If it is relative, then search for the first ld in PATH. | |
6060 | with_gnu_ld=unknown | |
6061 | ;; | |
6062 | esac | |
6063 | elif test "$with_gnu_ld" = yes; then | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6065 | $as_echo_n "checking for GNU ld... " >&6; } | |
6066 | else | |
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
030272f3 | 6068 | $as_echo_n "checking for non-GNU ld... " >&6; } |
db137867 | 6069 | fi |
08c2568c | 6070 | if ${lt_cv_path_LD+:} false; then : |
030272f3 VY |
6071 | $as_echo_n "(cached) " >&6 |
6072 | else | |
6073 | if test -z "$LD"; then | |
6074 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6075 | for ac_dir in $PATH; do | |
6076 | IFS="$lt_save_ifs" | |
6077 | test -z "$ac_dir" && ac_dir=. | |
6078 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6079 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6080 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6081 | # but apparently some variants of GNU ld only accept -v. | |
6082 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6083 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6084 | *GNU* | *'with BFD'*) | |
6085 | test "$with_gnu_ld" != no && break | |
6086 | ;; | |
6087 | *) | |
6088 | test "$with_gnu_ld" != yes && break | |
6089 | ;; | |
6090 | esac | |
6091 | fi | |
6092 | done | |
6093 | IFS="$lt_save_ifs" | |
6094 | else | |
6095 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
db137867 | 6096 | fi |
db137867 | 6097 | fi |
030272f3 VY |
6098 | |
6099 | LD="$lt_cv_path_LD" | |
6100 | if test -n "$LD"; then | |
7083c021 | 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
030272f3 | 6102 | $as_echo "$LD" >&6; } |
db137867 | 6103 | else |
7083c021 | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6105 | $as_echo "no" >&6; } |
db137867 | 6106 | fi |
08c2568c | 6107 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
7083c021 | 6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
030272f3 | 6109 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
08c2568c | 6110 | if ${lt_cv_prog_gnu_ld+:} false; then : |
030272f3 | 6111 | $as_echo_n "(cached) " >&6 |
db137867 | 6112 | else |
030272f3 VY |
6113 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6114 | case `$LD -v 2>&1 </dev/null` in | |
6115 | *GNU* | *'with BFD'*) | |
6116 | lt_cv_prog_gnu_ld=yes | |
6117 | ;; | |
6118 | *) | |
6119 | lt_cv_prog_gnu_ld=no | |
6120 | ;; | |
6121 | esac | |
db137867 | 6122 | fi |
7083c021 | 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
030272f3 VY |
6124 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
6125 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
db137867 | 6126 | |
db137867 | 6127 | |
db137867 | 6128 | |
7083c021 AC |
6129 | |
6130 | ||
6131 | ||
6132 | ||
6133 | ||
6134 | ||
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6136 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
08c2568c | 6137 | if ${lt_cv_path_NM+:} false; then : |
030272f3 VY |
6138 | $as_echo_n "(cached) " >&6 |
6139 | else | |
6140 | if test -n "$NM"; then | |
6141 | # Let the user override the test. | |
6142 | lt_cv_path_NM="$NM" | |
6143 | else | |
6144 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6145 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6146 | lt_nm_to_check="$lt_nm_to_check nm" | |
6147 | fi | |
6148 | for lt_tmp_nm in $lt_nm_to_check; do | |
6149 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6150 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6151 | IFS="$lt_save_ifs" | |
6152 | test -z "$ac_dir" && ac_dir=. | |
6153 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6154 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6155 | # Check to see if the nm accepts a BSD-compat flag. | |
6156 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6157 | # nm: unknown option "B" ignored | |
6158 | # Tru64's nm complains that /dev/null is an invalid object file | |
6159 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6160 | */dev/null* | *'Invalid file or object type'*) | |
6161 | lt_cv_path_NM="$tmp_nm -B" | |
6162 | break | |
6163 | ;; | |
6164 | *) | |
6165 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6166 | */dev/null*) | |
6167 | lt_cv_path_NM="$tmp_nm -p" | |
6168 | break | |
6169 | ;; | |
6170 | *) | |
6171 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6172 | continue # so that we can try to find one that supports BSD flags | |
6173 | ;; | |
6174 | esac | |
6175 | ;; | |
6176 | esac | |
6177 | fi | |
6178 | done | |
6179 | IFS="$lt_save_ifs" | |
6180 | done | |
7083c021 | 6181 | : ${lt_cv_path_NM=no} |
db137867 | 6182 | fi |
030272f3 | 6183 | fi |
7083c021 | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
030272f3 | 6185 | $as_echo "$lt_cv_path_NM" >&6; } |
7083c021 AC |
6186 | if test "$lt_cv_path_NM" != "no"; then |
6187 | NM="$lt_cv_path_NM" | |
6188 | else | |
6189 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b6d0720c AC |
6190 | if test -n "$DUMPBIN"; then : |
6191 | # Let the user override the test. | |
6192 | else | |
6193 | if test -n "$ac_tool_prefix"; then | |
6194 | for ac_prog in dumpbin "link -dump" | |
7083c021 AC |
6195 | do |
6196 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6197 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6199 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 6200 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
7083c021 AC |
6201 | $as_echo_n "(cached) " >&6 |
6202 | else | |
6203 | if test -n "$DUMPBIN"; then | |
6204 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6205 | else | |
6206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6207 | for as_dir in $PATH | |
6208 | do | |
6209 | IFS=$as_save_IFS | |
6210 | test -z "$as_dir" && as_dir=. | |
6211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 6212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6213 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
6214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6215 | break 2 | |
6216 | fi | |
6217 | done | |
6218 | done | |
6219 | IFS=$as_save_IFS | |
db137867 | 6220 | |
7083c021 AC |
6221 | fi |
6222 | fi | |
6223 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6224 | if test -n "$DUMPBIN"; then | |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6226 | $as_echo "$DUMPBIN" >&6; } | |
db137867 | 6227 | else |
7083c021 AC |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6229 | $as_echo "no" >&6; } | |
db137867 AC |
6230 | fi |
6231 | ||
7083c021 AC |
6232 | |
6233 | test -n "$DUMPBIN" && break | |
6234 | done | |
6235 | fi | |
6236 | if test -z "$DUMPBIN"; then | |
6237 | ac_ct_DUMPBIN=$DUMPBIN | |
b6d0720c | 6238 | for ac_prog in dumpbin "link -dump" |
7083c021 AC |
6239 | do |
6240 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6241 | set dummy $ac_prog; ac_word=$2 | |
6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6243 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 6244 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
030272f3 VY |
6245 | $as_echo_n "(cached) " >&6 |
6246 | else | |
7083c021 AC |
6247 | if test -n "$ac_ct_DUMPBIN"; then |
6248 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6249 | else | |
6250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6251 | for as_dir in $PATH | |
6252 | do | |
6253 | IFS=$as_save_IFS | |
6254 | test -z "$as_dir" && as_dir=. | |
6255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 6256 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6257 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
6258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6259 | break 2 | |
6260 | fi | |
6261 | done | |
6262 | done | |
6263 | IFS=$as_save_IFS | |
db137867 | 6264 | |
7083c021 AC |
6265 | fi |
6266 | fi | |
6267 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6268 | if test -n "$ac_ct_DUMPBIN"; then | |
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6270 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6271 | else | |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6273 | $as_echo "no" >&6; } | |
6274 | fi | |
db137867 | 6275 | |
db137867 | 6276 | |
7083c021 AC |
6277 | test -n "$ac_ct_DUMPBIN" && break |
6278 | done | |
db137867 | 6279 | |
7083c021 AC |
6280 | if test "x$ac_ct_DUMPBIN" = x; then |
6281 | DUMPBIN=":" | |
030272f3 | 6282 | else |
7083c021 AC |
6283 | case $cross_compiling:$ac_tool_warned in |
6284 | yes:) | |
6285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6286 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6287 | ac_tool_warned=yes ;; | |
6288 | esac | |
6289 | DUMPBIN=$ac_ct_DUMPBIN | |
030272f3 | 6290 | fi |
7083c021 | 6291 | fi |
db137867 | 6292 | |
b6d0720c AC |
6293 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6294 | *COFF*) | |
6295 | DUMPBIN="$DUMPBIN -symbols" | |
6296 | ;; | |
6297 | *) | |
6298 | DUMPBIN=: | |
6299 | ;; | |
6300 | esac | |
6301 | fi | |
db137867 | 6302 | |
7083c021 AC |
6303 | if test "$DUMPBIN" != ":"; then |
6304 | NM="$DUMPBIN" | |
030272f3 | 6305 | fi |
7083c021 AC |
6306 | fi |
6307 | test -z "$NM" && NM=nm | |
db137867 | 6308 | |
db137867 | 6309 | |
db137867 | 6310 | |
db137867 | 6311 | |
030272f3 | 6312 | |
030272f3 | 6313 | |
7083c021 AC |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6315 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
08c2568c | 6316 | if ${lt_cv_nm_interface+:} false; then : |
7083c021 AC |
6317 | $as_echo_n "(cached) " >&6 |
6318 | else | |
6319 | lt_cv_nm_interface="BSD nm" | |
6320 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b6d0720c | 6321 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7083c021 AC |
6322 | (eval "$ac_compile" 2>conftest.err) |
6323 | cat conftest.err >&5 | |
b6d0720c | 6324 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7083c021 AC |
6325 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6326 | cat conftest.err >&5 | |
b6d0720c | 6327 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7083c021 AC |
6328 | cat conftest.out >&5 |
6329 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6330 | lt_cv_nm_interface="MS dumpbin" | |
030272f3 | 6331 | fi |
7083c021 AC |
6332 | rm -f conftest* |
6333 | fi | |
6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6335 | $as_echo "$lt_cv_nm_interface" >&6; } | |
db137867 | 6336 | |
7083c021 AC |
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6338 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6339 | LN_S=$as_ln_s | |
6340 | if test "$LN_S" = "ln -s"; then | |
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6342 | $as_echo "yes" >&6; } | |
6343 | else | |
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6345 | $as_echo "no, using $LN_S" >&6; } | |
6346 | fi | |
db137867 | 6347 | |
7083c021 AC |
6348 | # find the maximum length of command line arguments |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6350 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
08c2568c | 6351 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
7083c021 AC |
6352 | $as_echo_n "(cached) " >&6 |
6353 | else | |
6354 | i=0 | |
6355 | teststring="ABCD" | |
db137867 | 6356 | |
7083c021 AC |
6357 | case $build_os in |
6358 | msdosdjgpp*) | |
6359 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6360 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6361 | # during glob expansion). Even if it were fixed, the result of this | |
6362 | # check would be larger than it should be. | |
6363 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6364 | ;; | |
db137867 | 6365 | |
7083c021 AC |
6366 | gnu*) |
6367 | # Under GNU Hurd, this test is not required because there is | |
6368 | # no limit to the length of command line arguments. | |
6369 | # Libtool will interpret -1 as no limit whatsoever | |
6370 | lt_cv_sys_max_cmd_len=-1; | |
6371 | ;; | |
db137867 | 6372 | |
7083c021 AC |
6373 | cygwin* | mingw* | cegcc*) |
6374 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6375 | # about 5 minutes as the teststring grows exponentially. | |
6376 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6377 | # you end up with a "frozen" computer, even though with patience | |
6378 | # the test eventually succeeds (with a max line length of 256k). | |
6379 | # Instead, let's just punt: use the minimum linelength reported by | |
6380 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6381 | lt_cv_sys_max_cmd_len=8192; | |
6382 | ;; | |
db137867 | 6383 | |
b6d0720c AC |
6384 | mint*) |
6385 | # On MiNT this can take a long time and run out of memory. | |
6386 | lt_cv_sys_max_cmd_len=8192; | |
6387 | ;; | |
6388 | ||
7083c021 AC |
6389 | amigaos*) |
6390 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6391 | # So we just punt and use a minimum line length of 8192. | |
6392 | lt_cv_sys_max_cmd_len=8192; | |
6393 | ;; | |
db137867 | 6394 | |
7083c021 AC |
6395 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6396 | # This has been around since 386BSD, at least. Likely further. | |
6397 | if test -x /sbin/sysctl; then | |
6398 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6399 | elif test -x /usr/sbin/sysctl; then | |
6400 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6401 | else | |
6402 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6403 | fi | |
6404 | # And add a safety zone | |
6405 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6406 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
030272f3 | 6407 | ;; |
7083c021 AC |
6408 | |
6409 | interix*) | |
6410 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6411 | lt_cv_sys_max_cmd_len=196608 | |
030272f3 | 6412 | ;; |
7083c021 | 6413 | |
a949ab1a AC |
6414 | os2*) |
6415 | # The test takes a long time on OS/2. | |
6416 | lt_cv_sys_max_cmd_len=8192 | |
6417 | ;; | |
6418 | ||
7083c021 AC |
6419 | osf*) |
6420 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6421 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6422 | # nice to cause kernel panics so lets avoid the loop below. | |
6423 | # First set a reasonable default. | |
6424 | lt_cv_sys_max_cmd_len=16384 | |
6425 | # | |
6426 | if test -x /sbin/sysconfig; then | |
6427 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6428 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6429 | esac | |
6430 | fi | |
030272f3 | 6431 | ;; |
7083c021 AC |
6432 | sco3.2v5*) |
6433 | lt_cv_sys_max_cmd_len=102400 | |
030272f3 | 6434 | ;; |
7083c021 AC |
6435 | sysv5* | sco5v6* | sysv4.2uw2*) |
6436 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6437 | if test -n "$kargmax"; then | |
6438 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6439 | else | |
6440 | lt_cv_sys_max_cmd_len=32768 | |
6441 | fi | |
030272f3 | 6442 | ;; |
7083c021 AC |
6443 | *) |
6444 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6445 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6446 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6447 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6448 | else | |
6449 | # Make teststring a little bigger before we do anything with it. | |
6450 | # a 1K string should be a reasonable start. | |
6451 | for i in 1 2 3 4 5 6 7 8 ; do | |
6452 | teststring=$teststring$teststring | |
6453 | done | |
6454 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6455 | # If test is not a shell built-in, we'll probably end up computing a | |
6456 | # maximum length that is only half of the actual maximum length, but | |
6457 | # we can't tell. | |
a949ab1a | 6458 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
b6d0720c | 6459 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
7083c021 AC |
6460 | test $i != 17 # 1/2 MB should be enough |
6461 | do | |
6462 | i=`expr $i + 1` | |
6463 | teststring=$teststring$teststring | |
6464 | done | |
6465 | # Only check the string length outside the loop. | |
6466 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6467 | teststring= | |
6468 | # Add a significant safety factor because C++ compilers can tack on | |
6469 | # massive amounts of additional arguments before passing them to the | |
6470 | # linker. It appears as though 1/2 is a usable value. | |
6471 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6472 | fi | |
030272f3 VY |
6473 | ;; |
6474 | esac | |
030272f3 | 6475 | |
7083c021 | 6476 | fi |
db137867 | 6477 | |
7083c021 AC |
6478 | if test -n $lt_cv_sys_max_cmd_len ; then |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6480 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6481 | else | |
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6483 | $as_echo "none" >&6; } | |
db137867 | 6484 | fi |
7083c021 | 6485 | max_cmd_len=$lt_cv_sys_max_cmd_len |
030272f3 | 6486 | |
db137867 | 6487 | |
db137867 AC |
6488 | |
6489 | ||
6490 | ||
6491 | ||
7083c021 AC |
6492 | : ${CP="cp -f"} |
6493 | : ${MV="mv -f"} | |
6494 | : ${RM="rm -f"} | |
db137867 | 6495 | |
7083c021 AC |
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6497 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6498 | # Try some XSI features | |
6499 | xsi_shell=no | |
6500 | ( _lt_dummy="a/b/c" | |
b6d0720c AC |
6501 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
6502 | = c,a/b,b/c, \ | |
7083c021 AC |
6503 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
6504 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6505 | && xsi_shell=yes | |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6507 | $as_echo "$xsi_shell" >&6; } | |
6508 | ||
6509 | ||
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6511 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6512 | lt_shell_append=no | |
6513 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6514 | >/dev/null 2>&1 \ | |
6515 | && lt_shell_append=yes | |
6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6517 | $as_echo "$lt_shell_append" >&6; } | |
6518 | ||
6519 | ||
6520 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6521 | lt_unset=unset | |
6522 | else | |
6523 | lt_unset=false | |
030272f3 | 6524 | fi |
db137867 AC |
6525 | |
6526 | ||
7083c021 AC |
6527 | |
6528 | ||
6529 | ||
6530 | # test EBCDIC or ASCII | |
6531 | case `echo X|tr X '\101'` in | |
6532 | A) # ASCII based system | |
6533 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6534 | lt_SP2NL='tr \040 \012' | |
6535 | lt_NL2SP='tr \015\012 \040\040' | |
030272f3 | 6536 | ;; |
7083c021 AC |
6537 | *) # EBCDIC based system |
6538 | lt_SP2NL='tr \100 \n' | |
6539 | lt_NL2SP='tr \r\n \100\100' | |
030272f3 | 6540 | ;; |
7083c021 | 6541 | esac |
db137867 | 6542 | |
db137867 | 6543 | |
db137867 | 6544 | |
db137867 | 6545 | |
030272f3 | 6546 | |
030272f3 | 6547 | |
db137867 AC |
6548 | |
6549 | ||
6550 | ||
b6d0720c AC |
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6552 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6553 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6554 | $as_echo_n "(cached) " >&6 | |
6555 | else | |
6556 | case $host in | |
6557 | *-*-mingw* ) | |
6558 | case $build in | |
6559 | *-*-mingw* ) # actually msys | |
6560 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6561 | ;; | |
6562 | *-*-cygwin* ) | |
6563 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6564 | ;; | |
6565 | * ) # otherwise, assume *nix | |
6566 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6567 | ;; | |
6568 | esac | |
6569 | ;; | |
6570 | *-*-cygwin* ) | |
6571 | case $build in | |
6572 | *-*-mingw* ) # actually msys | |
6573 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6574 | ;; | |
6575 | *-*-cygwin* ) | |
6576 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6577 | ;; | |
6578 | * ) # otherwise, assume *nix | |
6579 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6580 | ;; | |
6581 | esac | |
6582 | ;; | |
6583 | * ) # unhandled hosts (and "normal" native builds) | |
6584 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6585 | ;; | |
6586 | esac | |
6587 | ||
6588 | fi | |
6589 | ||
6590 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6592 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6599 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6600 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6601 | $as_echo_n "(cached) " >&6 | |
6602 | else | |
6603 | #assume ordinary cross tools, or native build. | |
6604 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6605 | case $host in | |
6606 | *-*-mingw* ) | |
6607 | case $build in | |
6608 | *-*-mingw* ) # actually msys | |
6609 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6610 | ;; | |
6611 | esac | |
6612 | ;; | |
6613 | esac | |
6614 | ||
6615 | fi | |
6616 | ||
6617 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6619 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6620 | ||
6621 | ||
6622 | ||
6623 | ||
6624 | ||
7083c021 AC |
6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6626 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
08c2568c | 6627 | if ${lt_cv_ld_reload_flag+:} false; then : |
030272f3 | 6628 | $as_echo_n "(cached) " >&6 |
db137867 | 6629 | else |
7083c021 | 6630 | lt_cv_ld_reload_flag='-r' |
db137867 | 6631 | fi |
7083c021 AC |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6633 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6634 | reload_flag=$lt_cv_ld_reload_flag | |
6635 | case $reload_flag in | |
6636 | "" | " "*) ;; | |
6637 | *) reload_flag=" $reload_flag" ;; | |
6638 | esac | |
6639 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6640 | case $host_os in | |
b6d0720c AC |
6641 | cygwin* | mingw* | pw32* | cegcc*) |
6642 | if test "$GCC" != yes; then | |
6643 | reload_cmds=false | |
6644 | fi | |
6645 | ;; | |
7083c021 AC |
6646 | darwin*) |
6647 | if test "$GCC" = yes; then | |
6648 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6649 | else | |
6650 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6651 | fi | |
6652 | ;; | |
db137867 | 6653 | esac |
db137867 | 6654 | |
db137867 | 6655 | |
db137867 | 6656 | |
db137867 | 6657 | |
db137867 | 6658 | |
db137867 | 6659 | |
db137867 | 6660 | |
db137867 | 6661 | |
7083c021 AC |
6662 | |
6663 | if test -n "$ac_tool_prefix"; then | |
6664 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6665 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 6667 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 6668 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
030272f3 | 6669 | $as_echo_n "(cached) " >&6 |
db137867 | 6670 | else |
7083c021 AC |
6671 | if test -n "$OBJDUMP"; then |
6672 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
db137867 AC |
6673 | else |
6674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6675 | for as_dir in $PATH | |
6676 | do | |
6677 | IFS=$as_save_IFS | |
6678 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6679 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 6680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6681 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
6683 | break 2 |
6684 | fi | |
6685 | done | |
7083c021 | 6686 | done |
db137867 AC |
6687 | IFS=$as_save_IFS |
6688 | ||
6689 | fi | |
6690 | fi | |
7083c021 AC |
6691 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6692 | if test -n "$OBJDUMP"; then | |
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6694 | $as_echo "$OBJDUMP" >&6; } | |
db137867 | 6695 | else |
7083c021 | 6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6697 | $as_echo "no" >&6; } |
db137867 AC |
6698 | fi |
6699 | ||
6700 | ||
db137867 | 6701 | fi |
7083c021 AC |
6702 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6703 | ac_ct_OBJDUMP=$OBJDUMP | |
6704 | # Extract the first word of "objdump", so it can be a program name with args. | |
6705 | set dummy objdump; ac_word=$2 | |
6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 6707 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 6708 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
030272f3 | 6709 | $as_echo_n "(cached) " >&6 |
db137867 | 6710 | else |
7083c021 AC |
6711 | if test -n "$ac_ct_OBJDUMP"; then |
6712 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
db137867 AC |
6713 | else |
6714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6715 | for as_dir in $PATH | |
6716 | do | |
6717 | IFS=$as_save_IFS | |
6718 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6719 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 6720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
6721 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
6723 | break 2 |
6724 | fi | |
6725 | done | |
7083c021 | 6726 | done |
db137867 AC |
6727 | IFS=$as_save_IFS |
6728 | ||
6729 | fi | |
6730 | fi | |
7083c021 AC |
6731 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6732 | if test -n "$ac_ct_OBJDUMP"; then | |
6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6734 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
db137867 | 6735 | else |
7083c021 | 6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6737 | $as_echo "no" >&6; } |
db137867 AC |
6738 | fi |
6739 | ||
7083c021 AC |
6740 | if test "x$ac_ct_OBJDUMP" = x; then |
6741 | OBJDUMP="false" | |
db137867 AC |
6742 | else |
6743 | case $cross_compiling:$ac_tool_warned in | |
6744 | yes:) | |
7083c021 | 6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 6746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
6747 | ac_tool_warned=yes ;; |
6748 | esac | |
7083c021 | 6749 | OBJDUMP=$ac_ct_OBJDUMP |
db137867 | 6750 | fi |
7083c021 AC |
6751 | else |
6752 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
db137867 | 6753 | fi |
db137867 | 6754 | |
7083c021 | 6755 | test -z "$OBJDUMP" && OBJDUMP=objdump |
db137867 | 6756 | |
db137867 | 6757 | |
db137867 | 6758 | |
db137867 | 6759 | |
db137867 | 6760 | |
db137867 | 6761 | |
db137867 | 6762 | |
db137867 | 6763 | |
db137867 | 6764 | |
7083c021 AC |
6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6766 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
08c2568c | 6767 | if ${lt_cv_deplibs_check_method+:} false; then : |
7083c021 | 6768 | $as_echo_n "(cached) " >&6 |
db137867 | 6769 | else |
7083c021 AC |
6770 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6771 | lt_cv_file_magic_test_file= | |
6772 | lt_cv_deplibs_check_method='unknown' | |
6773 | # Need to set the preceding variable on all platforms that support | |
6774 | # interlibrary dependencies. | |
6775 | # 'none' -- dependencies not supported. | |
6776 | # `unknown' -- same as none, but documents that we really don't know. | |
6777 | # 'pass_all' -- all dependencies passed with no checks. | |
6778 | # 'test_compile' -- check by making test program. | |
6779 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6780 | # which responds to the $file_magic_cmd with a given extended regex. | |
6781 | # If you have `file' or equivalent on your system and you're not sure | |
6782 | # whether `pass_all' will *always* work, you probably want this one. | |
db137867 | 6783 | |
7083c021 AC |
6784 | case $host_os in |
6785 | aix[4-9]*) | |
6786 | lt_cv_deplibs_check_method=pass_all | |
6787 | ;; | |
db137867 | 6788 | |
7083c021 AC |
6789 | beos*) |
6790 | lt_cv_deplibs_check_method=pass_all | |
6791 | ;; | |
db137867 | 6792 | |
7083c021 AC |
6793 | bsdi[45]*) |
6794 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6795 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6796 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6797 | ;; | |
db137867 | 6798 | |
7083c021 AC |
6799 | cygwin*) |
6800 | # func_win32_libid is a shell function defined in ltmain.sh | |
6801 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6802 | lt_cv_file_magic_cmd='func_win32_libid' | |
6803 | ;; | |
db137867 | 6804 | |
7083c021 AC |
6805 | mingw* | pw32*) |
6806 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6807 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6808 | # unless we find 'file', for example because we are cross-compiling. | |
b6d0720c AC |
6809 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6810 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7083c021 AC |
6811 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6812 | lt_cv_file_magic_cmd='func_win32_libid' | |
6813 | else | |
b6d0720c AC |
6814 | # Keep this pattern in sync with the one in func_win32_libid. |
6815 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
7083c021 AC |
6816 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6817 | fi | |
6818 | ;; | |
db137867 | 6819 | |
b6d0720c | 6820 | cegcc*) |
7083c021 AC |
6821 | # use the weaker test based on 'objdump'. See mingw*. |
6822 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6823 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6824 | ;; | |
db137867 | 6825 | |
7083c021 AC |
6826 | darwin* | rhapsody*) |
6827 | lt_cv_deplibs_check_method=pass_all | |
6828 | ;; | |
db137867 | 6829 | |
7083c021 AC |
6830 | freebsd* | dragonfly*) |
6831 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6832 | case $host_cpu in | |
6833 | i*86 ) | |
6834 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6835 | # Let's accept both of them until this is cleared up. | |
6836 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6837 | lt_cv_file_magic_cmd=/usr/bin/file | |
6838 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6839 | ;; | |
6840 | esac | |
db137867 | 6841 | else |
7083c021 | 6842 | lt_cv_deplibs_check_method=pass_all |
db137867 | 6843 | fi |
7083c021 | 6844 | ;; |
db137867 | 6845 | |
7083c021 AC |
6846 | gnu*) |
6847 | lt_cv_deplibs_check_method=pass_all | |
6848 | ;; | |
db137867 | 6849 | |
b6d0720c AC |
6850 | haiku*) |
6851 | lt_cv_deplibs_check_method=pass_all | |
6852 | ;; | |
6853 | ||
7083c021 AC |
6854 | hpux10.20* | hpux11*) |
6855 | lt_cv_file_magic_cmd=/usr/bin/file | |
6856 | case $host_cpu in | |
6857 | ia64*) | |
6858 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6859 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6860 | ;; | |
6861 | hppa*64*) | |
b6d0720c | 6862 | 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 |
6863 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6864 | ;; | |
6865 | *) | |
b6d0720c | 6866 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7083c021 AC |
6867 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6868 | ;; | |
6869 | esac | |
6870 | ;; | |
db137867 | 6871 | |
7083c021 AC |
6872 | interix[3-9]*) |
6873 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6874 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6875 | ;; | |
db137867 | 6876 | |
7083c021 AC |
6877 | irix5* | irix6* | nonstopux*) |
6878 | case $LD in | |
6879 | *-32|*"-32 ") libmagic=32-bit;; | |
6880 | *-n32|*"-n32 ") libmagic=N32;; | |
6881 | *-64|*"-64 ") libmagic=64-bit;; | |
6882 | *) libmagic=never-match;; | |
6883 | esac | |
6884 | lt_cv_deplibs_check_method=pass_all | |
6885 | ;; | |
db137867 | 6886 | |
a949ab1a | 6887 | # This must be glibc/ELF. |
b6d0720c | 6888 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 AC |
6889 | lt_cv_deplibs_check_method=pass_all |
6890 | ;; | |
db137867 | 6891 | |
96f4052b | 6892 | netbsd*) |
7083c021 AC |
6893 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6894 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6895 | else | |
6896 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6897 | fi | |
6898 | ;; | |
db137867 | 6899 | |
7083c021 AC |
6900 | newos6*) |
6901 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6902 | lt_cv_file_magic_cmd=/usr/bin/file | |
6903 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6904 | ;; | |
db137867 | 6905 | |
7083c021 AC |
6906 | *nto* | *qnx*) |
6907 | lt_cv_deplibs_check_method=pass_all | |
6908 | ;; | |
db137867 | 6909 | |
7083c021 AC |
6910 | openbsd*) |
6911 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6912 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6913 | else | |
6914 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6915 | fi | |
6916 | ;; | |
db137867 | 6917 | |
7083c021 AC |
6918 | osf3* | osf4* | osf5*) |
6919 | lt_cv_deplibs_check_method=pass_all | |
6920 | ;; | |
db137867 | 6921 | |
7083c021 AC |
6922 | rdos*) |
6923 | lt_cv_deplibs_check_method=pass_all | |
6924 | ;; | |
db137867 | 6925 | |
7083c021 AC |
6926 | solaris*) |
6927 | lt_cv_deplibs_check_method=pass_all | |
6928 | ;; | |
db137867 | 6929 | |
7083c021 AC |
6930 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6931 | lt_cv_deplibs_check_method=pass_all | |
6932 | ;; | |
db137867 | 6933 | |
7083c021 AC |
6934 | sysv4 | sysv4.3*) |
6935 | case $host_vendor in | |
6936 | motorola) | |
6937 | 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]' | |
6938 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6939 | ;; | |
6940 | ncr) | |
6941 | lt_cv_deplibs_check_method=pass_all | |
6942 | ;; | |
6943 | sequent) | |
6944 | lt_cv_file_magic_cmd='/bin/file' | |
6945 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6946 | ;; | |
6947 | sni) | |
6948 | lt_cv_file_magic_cmd='/bin/file' | |
6949 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6950 | lt_cv_file_magic_test_file=/lib/libc.so | |
6951 | ;; | |
6952 | siemens) | |
6953 | lt_cv_deplibs_check_method=pass_all | |
6954 | ;; | |
6955 | pc) | |
6956 | lt_cv_deplibs_check_method=pass_all | |
6957 | ;; | |
6958 | esac | |
6959 | ;; | |
db137867 | 6960 | |
7083c021 AC |
6961 | tpf*) |
6962 | lt_cv_deplibs_check_method=pass_all | |
6963 | ;; | |
6964 | esac | |
db137867 | 6965 | |
db137867 | 6966 | fi |
7083c021 AC |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6968 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
b6d0720c AC |
6969 | |
6970 | file_magic_glob= | |
6971 | want_nocaseglob=no | |
6972 | if test "$build" = "$host"; then | |
6973 | case $host_os in | |
6974 | mingw* | pw32*) | |
6975 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6976 | want_nocaseglob=yes | |
6977 | else | |
6978 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6979 | fi | |
6980 | ;; | |
6981 | esac | |
6982 | fi | |
6983 | ||
7083c021 AC |
6984 | file_magic_cmd=$lt_cv_file_magic_cmd |
6985 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6986 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
db137867 | 6987 | |
db137867 | 6988 | |
db137867 | 6989 | |
db137867 | 6990 | |
db137867 | 6991 | |
db137867 | 6992 | |
db137867 | 6993 | |
db137867 | 6994 | |
db137867 | 6995 | |
db137867 | 6996 | |
b6d0720c AC |
6997 | |
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | ||
db137867 AC |
7007 | |
7008 | ||
db137867 | 7009 | if test -n "$ac_tool_prefix"; then |
b6d0720c AC |
7010 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
7011 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7083c021 | 7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 7013 | $as_echo_n "checking for $ac_word... " >&6; } |
b6d0720c | 7014 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
030272f3 | 7015 | $as_echo_n "(cached) " >&6 |
db137867 | 7016 | else |
b6d0720c AC |
7017 | if test -n "$DLLTOOL"; then |
7018 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
db137867 AC |
7019 | else |
7020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7021 | for as_dir in $PATH | |
7022 | do | |
7023 | IFS=$as_save_IFS | |
7024 | test -z "$as_dir" && as_dir=. | |
7083c021 | 7025 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 7026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7027 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
7083c021 | 7028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
7029 | break 2 |
7030 | fi | |
7031 | done | |
7083c021 | 7032 | done |
db137867 AC |
7033 | IFS=$as_save_IFS |
7034 | ||
7035 | fi | |
7036 | fi | |
b6d0720c AC |
7037 | DLLTOOL=$ac_cv_prog_DLLTOOL |
7038 | if test -n "$DLLTOOL"; then | |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
7040 | $as_echo "$DLLTOOL" >&6; } | |
db137867 | 7041 | else |
7083c021 | 7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 7043 | $as_echo "no" >&6; } |
db137867 AC |
7044 | fi |
7045 | ||
7046 | ||
db137867 | 7047 | fi |
b6d0720c AC |
7048 | if test -z "$ac_cv_prog_DLLTOOL"; then |
7049 | ac_ct_DLLTOOL=$DLLTOOL | |
7050 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7051 | set dummy dlltool; ac_word=$2 | |
7083c021 | 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 7053 | $as_echo_n "checking for $ac_word... " >&6; } |
b6d0720c | 7054 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
030272f3 | 7055 | $as_echo_n "(cached) " >&6 |
db137867 | 7056 | else |
b6d0720c AC |
7057 | if test -n "$ac_ct_DLLTOOL"; then |
7058 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
db137867 AC |
7059 | else |
7060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7061 | for as_dir in $PATH | |
7062 | do | |
7063 | IFS=$as_save_IFS | |
7064 | test -z "$as_dir" && as_dir=. | |
7083c021 | 7065 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 7066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7067 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
7083c021 | 7068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
7069 | break 2 |
7070 | fi | |
7071 | done | |
7083c021 | 7072 | done |
db137867 AC |
7073 | IFS=$as_save_IFS |
7074 | ||
7075 | fi | |
7076 | fi | |
b6d0720c AC |
7077 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
7078 | if test -n "$ac_ct_DLLTOOL"; then | |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
7080 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
db137867 | 7081 | else |
7083c021 | 7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 7083 | $as_echo "no" >&6; } |
db137867 AC |
7084 | fi |
7085 | ||
b6d0720c AC |
7086 | if test "x$ac_ct_DLLTOOL" = x; then |
7087 | DLLTOOL="false" | |
db137867 AC |
7088 | else |
7089 | case $cross_compiling:$ac_tool_warned in | |
7090 | yes:) | |
7083c021 | 7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 7092 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
7093 | ac_tool_warned=yes ;; |
7094 | esac | |
b6d0720c | 7095 | DLLTOOL=$ac_ct_DLLTOOL |
db137867 | 7096 | fi |
7083c021 | 7097 | else |
b6d0720c | 7098 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
db137867 AC |
7099 | fi |
7100 | ||
b6d0720c AC |
7101 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
db137867 | 7109 | |
db137867 | 7110 | |
db137867 | 7111 | |
b6d0720c AC |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
7113 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
7114 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
7115 | $as_echo_n "(cached) " >&6 | |
7116 | else | |
7117 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
7118 | ||
7119 | case $host_os in | |
7120 | cygwin* | mingw* | pw32* | cegcc*) | |
7121 | # two different shell functions defined in ltmain.sh | |
7122 | # decide which to use based on capabilities of $DLLTOOL | |
7123 | case `$DLLTOOL --help 2>&1` in | |
7124 | *--identify-strict*) | |
7125 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
7126 | ;; | |
7127 | *) | |
7128 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
7129 | ;; | |
7130 | esac | |
7131 | ;; | |
7132 | *) | |
7133 | # fallback: assume linklib IS sharedlib | |
7134 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
7135 | ;; | |
7136 | esac | |
db137867 | 7137 | |
b6d0720c AC |
7138 | fi |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
7140 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
7141 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
7142 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
db137867 | 7143 | |
db137867 | 7144 | |
db137867 | 7145 | |
db137867 | 7146 | |
7083c021 AC |
7147 | |
7148 | ||
7149 | ||
7150 | if test -n "$ac_tool_prefix"; then | |
b6d0720c AC |
7151 | for ac_prog in ar |
7152 | do | |
7153 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7154 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7156 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 7157 | if ${ac_cv_prog_AR+:} false; then : |
7083c021 AC |
7158 | $as_echo_n "(cached) " >&6 |
7159 | else | |
b6d0720c AC |
7160 | if test -n "$AR"; then |
7161 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7083c021 AC |
7162 | else |
7163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7164 | for as_dir in $PATH | |
7165 | do | |
7166 | IFS=$as_save_IFS | |
7167 | test -z "$as_dir" && as_dir=. | |
7168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7170 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
7083c021 AC |
7171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7172 | break 2 | |
db137867 | 7173 | fi |
7083c021 AC |
7174 | done |
7175 | done | |
7176 | IFS=$as_save_IFS | |
7177 | ||
7178 | fi | |
7179 | fi | |
b6d0720c AC |
7180 | AR=$ac_cv_prog_AR |
7181 | if test -n "$AR"; then | |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7183 | $as_echo "$AR" >&6; } | |
db137867 | 7184 | else |
7083c021 AC |
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7186 | $as_echo "no" >&6; } | |
7187 | fi | |
7188 | ||
7189 | ||
b6d0720c AC |
7190 | test -n "$AR" && break |
7191 | done | |
7083c021 | 7192 | fi |
b6d0720c AC |
7193 | if test -z "$AR"; then |
7194 | ac_ct_AR=$AR | |
7195 | for ac_prog in ar | |
7196 | do | |
7197 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7198 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7200 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 7201 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
7083c021 AC |
7202 | $as_echo_n "(cached) " >&6 |
7203 | else | |
b6d0720c AC |
7204 | if test -n "$ac_ct_AR"; then |
7205 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7083c021 AC |
7206 | else |
7207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7208 | for as_dir in $PATH | |
7209 | do | |
7210 | IFS=$as_save_IFS | |
7211 | test -z "$as_dir" && as_dir=. | |
7212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c | 7214 | ac_cv_prog_ac_ct_AR="$ac_prog" |
7083c021 AC |
7215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7216 | break 2 | |
db137867 | 7217 | fi |
7083c021 AC |
7218 | done |
7219 | done | |
7220 | IFS=$as_save_IFS | |
7221 | ||
7222 | fi | |
7223 | fi | |
b6d0720c AC |
7224 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7225 | if test -n "$ac_ct_AR"; then | |
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7227 | $as_echo "$ac_ct_AR" >&6; } | |
7083c021 AC |
7228 | else |
7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7230 | $as_echo "no" >&6; } | |
db137867 AC |
7231 | fi |
7232 | ||
b6d0720c AC |
7233 | |
7234 | test -n "$ac_ct_AR" && break | |
7235 | done | |
7236 | ||
7237 | if test "x$ac_ct_AR" = x; then | |
7238 | AR="false" | |
7239 | else | |
7240 | case $cross_compiling:$ac_tool_warned in | |
7241 | yes:) | |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7244 | ac_tool_warned=yes ;; | |
7245 | esac | |
7246 | AR=$ac_ct_AR | |
7247 | fi | |
7248 | fi | |
7249 | ||
7250 | : ${AR=ar} | |
7251 | : ${AR_FLAGS=cru} | |
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
7264 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
7265 | if ${lt_cv_ar_at_file+:} false; then : | |
7266 | $as_echo_n "(cached) " >&6 | |
7267 | else | |
7268 | lt_cv_ar_at_file=no | |
7269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7270 | /* end confdefs.h. */ | |
7271 | ||
7272 | int | |
7273 | main () | |
7274 | { | |
7275 | ||
7276 | ; | |
7277 | return 0; | |
7278 | } | |
7279 | _ACEOF | |
7280 | if ac_fn_c_try_compile "$LINENO"; then : | |
7281 | echo conftest.$ac_objext > conftest.lst | |
7282 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
7283 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7284 | (eval $lt_ar_try) 2>&5 | |
7285 | ac_status=$? | |
7286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7287 | test $ac_status = 0; } | |
7288 | if test "$ac_status" -eq 0; then | |
7289 | # Ensure the archiver fails upon bogus file names. | |
7290 | rm -f conftest.$ac_objext libconftest.a | |
7291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7292 | (eval $lt_ar_try) 2>&5 | |
7293 | ac_status=$? | |
7294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7295 | test $ac_status = 0; } | |
7296 | if test "$ac_status" -ne 0; then | |
7297 | lt_cv_ar_at_file=@ | |
7298 | fi | |
7299 | fi | |
7300 | rm -f conftest.* libconftest.a | |
7301 | ||
7302 | fi | |
7303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7304 | ||
7305 | fi | |
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
7307 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
7308 | ||
7309 | if test "x$lt_cv_ar_at_file" = xno; then | |
7310 | archiver_list_spec= | |
7311 | else | |
7312 | archiver_list_spec=$lt_cv_ar_at_file | |
7313 | fi | |
7314 | ||
7315 | ||
7316 | ||
7317 | ||
7318 | ||
7319 | ||
7320 | ||
7321 | if test -n "$ac_tool_prefix"; then | |
7322 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7323 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7325 | $as_echo_n "checking for $ac_word... " >&6; } | |
7326 | if ${ac_cv_prog_STRIP+:} false; then : | |
7327 | $as_echo_n "(cached) " >&6 | |
7328 | else | |
7329 | if test -n "$STRIP"; then | |
7330 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7331 | else | |
7332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7333 | for as_dir in $PATH | |
7334 | do | |
7335 | IFS=$as_save_IFS | |
7336 | test -z "$as_dir" && as_dir=. | |
7337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
7339 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7341 | break 2 | |
7342 | fi | |
7343 | done | |
7344 | done | |
7345 | IFS=$as_save_IFS | |
7346 | ||
7347 | fi | |
7348 | fi | |
7349 | STRIP=$ac_cv_prog_STRIP | |
7350 | if test -n "$STRIP"; then | |
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7352 | $as_echo "$STRIP" >&6; } | |
7353 | else | |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7355 | $as_echo "no" >&6; } | |
7356 | fi | |
7357 | ||
7358 | ||
7359 | fi | |
7360 | if test -z "$ac_cv_prog_STRIP"; then | |
7361 | ac_ct_STRIP=$STRIP | |
7362 | # Extract the first word of "strip", so it can be a program name with args. | |
7363 | set dummy strip; ac_word=$2 | |
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7365 | $as_echo_n "checking for $ac_word... " >&6; } | |
7366 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7367 | $as_echo_n "(cached) " >&6 | |
7368 | else | |
7369 | if test -n "$ac_ct_STRIP"; then | |
7370 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7371 | else | |
7372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7373 | for as_dir in $PATH | |
7374 | do | |
7375 | IFS=$as_save_IFS | |
7376 | test -z "$as_dir" && as_dir=. | |
7377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
7379 | ac_cv_prog_ac_ct_STRIP="strip" |
7380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7381 | break 2 | |
7382 | fi | |
7383 | done | |
7384 | done | |
7385 | IFS=$as_save_IFS | |
7386 | ||
7387 | fi | |
7388 | fi | |
7389 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7390 | if test -n "$ac_ct_STRIP"; then | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7392 | $as_echo "$ac_ct_STRIP" >&6; } | |
7393 | else | |
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7395 | $as_echo "no" >&6; } | |
7396 | fi | |
7397 | ||
7398 | if test "x$ac_ct_STRIP" = x; then | |
7399 | STRIP=":" | |
7400 | else | |
7401 | case $cross_compiling:$ac_tool_warned in | |
7402 | yes:) | |
7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7083c021 AC |
7404 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7405 | ac_tool_warned=yes ;; | |
7406 | esac | |
7407 | STRIP=$ac_ct_STRIP | |
7408 | fi | |
030272f3 | 7409 | else |
7083c021 | 7410 | STRIP="$ac_cv_prog_STRIP" |
030272f3 | 7411 | fi |
db137867 | 7412 | |
7083c021 | 7413 | test -z "$STRIP" && STRIP=: |
db137867 AC |
7414 | |
7415 | ||
db137867 | 7416 | |
db137867 | 7417 | |
db137867 | 7418 | |
db137867 | 7419 | |
7083c021 AC |
7420 | if test -n "$ac_tool_prefix"; then |
7421 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7422 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7424 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 7425 | if ${ac_cv_prog_RANLIB+:} false; then : |
7083c021 AC |
7426 | $as_echo_n "(cached) " >&6 |
7427 | else | |
7428 | if test -n "$RANLIB"; then | |
7429 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7430 | else | |
7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7432 | for as_dir in $PATH | |
7433 | do | |
7434 | IFS=$as_save_IFS | |
7435 | test -z "$as_dir" && as_dir=. | |
7436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
7438 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7440 | break 2 | |
7441 | fi | |
7442 | done | |
7443 | done | |
7444 | IFS=$as_save_IFS | |
db137867 | 7445 | |
7083c021 AC |
7446 | fi |
7447 | fi | |
7448 | RANLIB=$ac_cv_prog_RANLIB | |
7449 | if test -n "$RANLIB"; then | |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7451 | $as_echo "$RANLIB" >&6; } | |
7452 | else | |
7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7454 | $as_echo "no" >&6; } | |
7455 | fi | |
db137867 | 7456 | |
db137867 | 7457 | |
7083c021 AC |
7458 | fi |
7459 | if test -z "$ac_cv_prog_RANLIB"; then | |
7460 | ac_ct_RANLIB=$RANLIB | |
7461 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7462 | set dummy ranlib; ac_word=$2 | |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7464 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 7465 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
7083c021 AC |
7466 | $as_echo_n "(cached) " >&6 |
7467 | else | |
7468 | if test -n "$ac_ct_RANLIB"; then | |
7469 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7470 | else | |
7471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7472 | for as_dir in $PATH | |
7473 | do | |
7474 | IFS=$as_save_IFS | |
7475 | test -z "$as_dir" && as_dir=. | |
7476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 7477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
7478 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7480 | break 2 | |
7481 | fi | |
7482 | done | |
7483 | done | |
7484 | IFS=$as_save_IFS | |
db137867 | 7485 | |
7083c021 AC |
7486 | fi |
7487 | fi | |
7488 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7489 | if test -n "$ac_ct_RANLIB"; then | |
7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7491 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7492 | else | |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7494 | $as_echo "no" >&6; } | |
db137867 AC |
7495 | fi |
7496 | ||
7083c021 AC |
7497 | if test "x$ac_ct_RANLIB" = x; then |
7498 | RANLIB=":" | |
7499 | else | |
7500 | case $cross_compiling:$ac_tool_warned in | |
7501 | yes:) | |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7504 | ac_tool_warned=yes ;; | |
7505 | esac | |
7506 | RANLIB=$ac_ct_RANLIB | |
7507 | fi | |
db137867 | 7508 | else |
7083c021 | 7509 | RANLIB="$ac_cv_prog_RANLIB" |
db137867 AC |
7510 | fi |
7511 | ||
7083c021 | 7512 | test -z "$RANLIB" && RANLIB=: |
db137867 AC |
7513 | |
7514 | ||
7515 | ||
7516 | ||
7083c021 AC |
7517 | |
7518 | ||
7519 | # Determine commands to create old-style static archives. | |
7520 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7521 | old_postinstall_cmds='chmod 644 $oldlib' | |
7522 | old_postuninstall_cmds= | |
7523 | ||
7524 | if test -n "$RANLIB"; then | |
7525 | case $host_os in | |
7526 | openbsd*) | |
a949ab1a | 7527 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
7083c021 AC |
7528 | ;; |
7529 | *) | |
a949ab1a | 7530 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
7083c021 AC |
7531 | ;; |
7532 | esac | |
a949ab1a | 7533 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
7083c021 AC |
7534 | fi |
7535 | ||
b6d0720c AC |
7536 | case $host_os in |
7537 | darwin*) | |
7538 | lock_old_archive_extraction=yes ;; | |
7539 | *) | |
7540 | lock_old_archive_extraction=no ;; | |
7541 | esac | |
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7083c021 AC |
7548 | |
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | ||
7568 | ||
7569 | ||
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | # If no C compiler was specified, use CC. | |
7582 | LTCC=${LTCC-"$CC"} | |
7583 | ||
7584 | # If no C compiler flags were specified, use CFLAGS. | |
7585 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7586 | ||
7587 | # Allow CC to be a program name with arguments. | |
7588 | compiler=$CC | |
7589 | ||
7590 | ||
7591 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7593 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
08c2568c | 7594 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
030272f3 | 7595 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7596 | else |
7597 | ||
7598 | # These are sane defaults that work on at least a few old systems. | |
7599 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7600 | ||
7601 | # Character class describing NM global symbol codes. | |
7602 | symcode='[BCDEGRST]' | |
7603 | ||
7604 | # Regexp to match symbols that can be accessed directly from C. | |
7605 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7606 | ||
db137867 AC |
7607 | # Define system-specific variables. |
7608 | case $host_os in | |
7609 | aix*) | |
7610 | symcode='[BCDT]' | |
7611 | ;; | |
7083c021 | 7612 | cygwin* | mingw* | pw32* | cegcc*) |
db137867 AC |
7613 | symcode='[ABCDGISTW]' |
7614 | ;; | |
7083c021 | 7615 | hpux*) |
db137867 AC |
7616 | if test "$host_cpu" = ia64; then |
7617 | symcode='[ABCDEGRST]' | |
7618 | fi | |
db137867 AC |
7619 | ;; |
7620 | irix* | nonstopux*) | |
7621 | symcode='[BCDEGRST]' | |
7622 | ;; | |
7623 | osf*) | |
7624 | symcode='[BCDEGQRST]' | |
7625 | ;; | |
7626 | solaris*) | |
7627 | symcode='[BDRT]' | |
7628 | ;; | |
7629 | sco3.2v5*) | |
7630 | symcode='[DT]' | |
7631 | ;; | |
7632 | sysv4.2uw2*) | |
7633 | symcode='[DT]' | |
7634 | ;; | |
7635 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7636 | symcode='[ABDT]' | |
7637 | ;; | |
7638 | sysv4) | |
7639 | symcode='[DFNSTU]' | |
7640 | ;; | |
7641 | esac | |
7642 | ||
7083c021 AC |
7643 | # If we're using GNU nm, then use its standard symbol codes. |
7644 | case `$NM -V 2>&1` in | |
7645 | *GNU* | *'with BFD'*) | |
7646 | symcode='[ABCDGIRSTW]' ;; | |
7647 | esac | |
7648 | ||
7649 | # Transform an extracted symbol line into a proper C declaration. | |
7650 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7651 | # so use this general approach. | |
7652 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7653 | ||
7654 | # Transform an extracted symbol line into symbol name and symbol address | |
b6d0720c AC |
7655 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
7656 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
7083c021 | 7657 | |
db137867 AC |
7658 | # Handle CRLF in mingw tool chain |
7659 | opt_cr= | |
7660 | case $build_os in | |
7661 | mingw*) | |
7083c021 | 7662 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
db137867 AC |
7663 | ;; |
7664 | esac | |
7665 | ||
7083c021 | 7666 | # Try without a prefix underscore, then with it. |
db137867 AC |
7667 | for ac_symprfx in "" "_"; do |
7668 | ||
7669 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7670 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7671 | ||
7672 | # Write the raw and C identifiers. | |
7083c021 AC |
7673 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7674 | # Fake it for dumpbin and say T for any non-static function | |
7675 | # and D for any global variable. | |
7676 | # Also find C++ and __fastcall symbols from MSVC++, | |
7677 | # which start with @ or ?. | |
7678 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7679 | " {last_section=section; section=\$ 3};"\ | |
a949ab1a | 7680 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
7083c021 AC |
7681 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
7682 | " \$ 0!~/External *\|/{next};"\ | |
7683 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7684 | " {if(hide[section]) next};"\ | |
7685 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7686 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7687 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7688 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7689 | " ' prfx=^$ac_symprfx" | |
7690 | else | |
7691 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7692 | fi | |
b6d0720c | 7693 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
db137867 AC |
7694 | |
7695 | # Check to see that the pipe works correctly. | |
7696 | pipe_works=no | |
7697 | ||
7698 | rm -f conftest* | |
7083c021 | 7699 | cat > conftest.$ac_ext <<_LT_EOF |
db137867 AC |
7700 | #ifdef __cplusplus |
7701 | extern "C" { | |
7702 | #endif | |
7703 | char nm_test_var; | |
7083c021 AC |
7704 | void nm_test_func(void); |
7705 | void nm_test_func(void){} | |
db137867 AC |
7706 | #ifdef __cplusplus |
7707 | } | |
7708 | #endif | |
7709 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7083c021 | 7710 | _LT_EOF |
db137867 | 7711 | |
7083c021 | 7712 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
db137867 AC |
7713 | (eval $ac_compile) 2>&5 |
7714 | ac_status=$? | |
7083c021 AC |
7715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7716 | test $ac_status = 0; }; then | |
db137867 AC |
7717 | # Now try to grab the symbols. |
7718 | nlist=conftest.nm | |
b6d0720c AC |
7719 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7720 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
db137867 | 7721 | ac_status=$? |
7083c021 AC |
7722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7723 | test $ac_status = 0; } && test -s "$nlist"; then | |
db137867 AC |
7724 | # Try sorting and uniquifying the output. |
7725 | if sort "$nlist" | uniq > "$nlist"T; then | |
7726 | mv -f "$nlist"T "$nlist" | |
7727 | else | |
7728 | rm -f "$nlist"T | |
7729 | fi | |
7730 | ||
7731 | # Make sure that we snagged all the symbols we need. | |
7083c021 AC |
7732 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
7733 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7734 | cat <<_LT_EOF > conftest.$ac_ext | |
b6d0720c AC |
7735 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
7736 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7737 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7738 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7739 | # define LT_DLSYM_CONST | |
7740 | #elif defined(__osf__) | |
7741 | /* This system does not cope well with relocations in const data. */ | |
7742 | # define LT_DLSYM_CONST | |
7743 | #else | |
7744 | # define LT_DLSYM_CONST const | |
7745 | #endif | |
7746 | ||
db137867 AC |
7747 | #ifdef __cplusplus |
7748 | extern "C" { | |
7749 | #endif | |
7750 | ||
7083c021 | 7751 | _LT_EOF |
db137867 | 7752 | # Now generate the symbol file. |
7083c021 | 7753 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
db137867 | 7754 | |
7083c021 | 7755 | cat <<_LT_EOF >> conftest.$ac_ext |
db137867 | 7756 | |
7083c021 | 7757 | /* The mapping between symbol names and symbols. */ |
b6d0720c | 7758 | LT_DLSYM_CONST struct { |
db137867 | 7759 | const char *name; |
7083c021 | 7760 | void *address; |
db137867 | 7761 | } |
7083c021 | 7762 | lt__PROGRAM__LTX_preloaded_symbols[] = |
db137867 | 7763 | { |
7083c021 AC |
7764 | { "@PROGRAM@", (void *) 0 }, |
7765 | _LT_EOF | |
7766 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7767 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7768 | {0, (void *) 0} | |
db137867 AC |
7769 | }; |
7770 | ||
7083c021 AC |
7771 | /* This works around a problem in FreeBSD linker */ |
7772 | #ifdef FREEBSD_WORKAROUND | |
7773 | static const void *lt_preloaded_setup() { | |
7774 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7775 | } | |
7776 | #endif | |
7777 | ||
db137867 AC |
7778 | #ifdef __cplusplus |
7779 | } | |
7780 | #endif | |
7083c021 | 7781 | _LT_EOF |
db137867 AC |
7782 | # Now try linking the two files. |
7783 | mv conftest.$ac_objext conftstm.$ac_objext | |
b6d0720c AC |
7784 | lt_globsym_save_LIBS=$LIBS |
7785 | lt_globsym_save_CFLAGS=$CFLAGS | |
db137867 AC |
7786 | LIBS="conftstm.$ac_objext" |
7787 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7083c021 | 7788 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
db137867 AC |
7789 | (eval $ac_link) 2>&5 |
7790 | ac_status=$? | |
7083c021 AC |
7791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7792 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
db137867 AC |
7793 | pipe_works=yes |
7794 | fi | |
b6d0720c AC |
7795 | LIBS=$lt_globsym_save_LIBS |
7796 | CFLAGS=$lt_globsym_save_CFLAGS | |
db137867 AC |
7797 | else |
7798 | echo "cannot find nm_test_func in $nlist" >&5 | |
7799 | fi | |
7800 | else | |
7801 | echo "cannot find nm_test_var in $nlist" >&5 | |
7802 | fi | |
7803 | else | |
7804 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7805 | fi | |
7806 | else | |
7807 | echo "$progname: failed program was:" >&5 | |
7808 | cat conftest.$ac_ext >&5 | |
7809 | fi | |
b676ea3b | 7810 | rm -rf conftest* conftst* |
db137867 AC |
7811 | |
7812 | # Do not use the global_symbol_pipe unless it works. | |
7813 | if test "$pipe_works" = yes; then | |
7814 | break | |
7815 | else | |
7816 | lt_cv_sys_global_symbol_pipe= | |
7817 | fi | |
7818 | done | |
7819 | ||
7820 | fi | |
7821 | ||
7822 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7823 | lt_cv_sys_global_symbol_to_cdecl= | |
7824 | fi | |
7825 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7083c021 | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
030272f3 | 7827 | $as_echo "failed" >&6; } |
db137867 | 7828 | else |
7083c021 | 7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
030272f3 | 7830 | $as_echo "ok" >&6; } |
db137867 AC |
7831 | fi |
7832 | ||
b6d0720c AC |
7833 | # Response file support. |
7834 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7835 | nm_file_list_spec='@' | |
7836 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7837 | nm_file_list_spec='@' | |
7838 | fi | |
7839 | ||
7840 | ||
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | ||
db137867 AC |
7846 | |
7847 | ||
7848 | ||
7849 | ||
7850 | ||
db137867 | 7851 | |
db137867 | 7852 | |
db137867 | 7853 | |
db137867 | 7854 | |
db137867 | 7855 | |
db137867 | 7856 | |
db137867 | 7857 | |
db137867 | 7858 | |
db137867 | 7859 | |
db137867 AC |
7860 | |
7861 | ||
b6d0720c AC |
7862 | |
7863 | ||
7864 | ||
7865 | ||
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7867 | $as_echo_n "checking for sysroot... " >&6; } | |
7868 | ||
7869 | # Check whether --with-sysroot was given. | |
7870 | if test "${with_sysroot+set}" = set; then : | |
7871 | withval=$with_sysroot; | |
7872 | else | |
7873 | with_sysroot=no | |
7874 | fi | |
7875 | ||
7876 | ||
7877 | lt_sysroot= | |
7878 | case ${with_sysroot} in #( | |
7879 | yes) | |
7880 | if test "$GCC" = yes; then | |
7881 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7882 | fi | |
7883 | ;; #( | |
7884 | /*) | |
7885 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7886 | ;; #( | |
7887 | no|'') | |
7888 | ;; #( | |
7889 | *) | |
7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7891 | $as_echo "${with_sysroot}" >&6; } | |
7892 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7893 | ;; | |
7894 | esac | |
7895 | ||
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7897 | $as_echo "${lt_sysroot:-no}" >&6; } | |
db137867 | 7898 | |
db137867 | 7899 | |
db137867 | 7900 | |
db137867 | 7901 | |
7083c021 AC |
7902 | |
7903 | # Check whether --enable-libtool-lock was given. | |
7904 | if test "${enable_libtool_lock+set}" = set; then : | |
7905 | enableval=$enable_libtool_lock; | |
db137867 AC |
7906 | fi |
7907 | ||
7083c021 | 7908 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
db137867 | 7909 | |
7083c021 AC |
7910 | # Some flags need to be propagated to the compiler or linker for good |
7911 | # libtool support. | |
7912 | case $host in | |
7913 | ia64-*-hpux*) | |
7914 | # Find out which ABI we are using. | |
7915 | echo 'int i;' > conftest.$ac_ext | |
7916 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7917 | (eval $ac_compile) 2>&5 | |
7918 | ac_status=$? | |
7919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7920 | test $ac_status = 0; }; then | |
7921 | case `/usr/bin/file conftest.$ac_objext` in | |
7922 | *ELF-32*) | |
7923 | HPUX_IA64_MODE="32" | |
7924 | ;; | |
7925 | *ELF-64*) | |
7926 | HPUX_IA64_MODE="64" | |
7927 | ;; | |
7928 | esac | |
7929 | fi | |
7930 | rm -rf conftest* | |
7931 | ;; | |
7932 | *-*-irix6*) | |
7933 | # Find out which ABI we are using. | |
b6d0720c | 7934 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7083c021 AC |
7935 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7936 | (eval $ac_compile) 2>&5 | |
7937 | ac_status=$? | |
7938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7939 | test $ac_status = 0; }; then | |
7940 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7941 | case `/usr/bin/file conftest.$ac_objext` in | |
7942 | *32-bit*) | |
7943 | LD="${LD-ld} -melf32bsmip" | |
7944 | ;; | |
7945 | *N32*) | |
7946 | LD="${LD-ld} -melf32bmipn32" | |
7947 | ;; | |
7948 | *64-bit*) | |
7949 | LD="${LD-ld} -melf64bmip" | |
7950 | ;; | |
7951 | esac | |
7952 | else | |
7953 | case `/usr/bin/file conftest.$ac_objext` in | |
7954 | *32-bit*) | |
7955 | LD="${LD-ld} -32" | |
7956 | ;; | |
7957 | *N32*) | |
7958 | LD="${LD-ld} -n32" | |
7959 | ;; | |
7960 | *64-bit*) | |
7961 | LD="${LD-ld} -64" | |
7962 | ;; | |
7963 | esac | |
7964 | fi | |
7965 | fi | |
7966 | rm -rf conftest* | |
7967 | ;; | |
7968 | ||
7969 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
7970 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7971 | # Find out which ABI we are using. | |
7972 | echo 'int i;' > conftest.$ac_ext | |
7973 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7974 | (eval $ac_compile) 2>&5 | |
7975 | ac_status=$? | |
7976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7977 | test $ac_status = 0; }; then | |
7978 | case `/usr/bin/file conftest.o` in | |
7979 | *32-bit*) | |
7980 | case $host in | |
7981 | x86_64-*kfreebsd*-gnu) | |
7982 | LD="${LD-ld} -m elf_i386_fbsd" | |
7983 | ;; | |
7984 | x86_64-*linux*) | |
7985 | LD="${LD-ld} -m elf_i386" | |
7986 | ;; | |
7987 | ppc64-*linux*|powerpc64-*linux*) | |
7988 | LD="${LD-ld} -m elf32ppclinux" | |
7989 | ;; | |
7990 | s390x-*linux*) | |
7991 | LD="${LD-ld} -m elf_s390" | |
7992 | ;; | |
7993 | sparc64-*linux*) | |
7994 | LD="${LD-ld} -m elf32_sparc" | |
7995 | ;; | |
7996 | esac | |
7997 | ;; | |
7998 | *64-bit*) | |
7999 | case $host in | |
8000 | x86_64-*kfreebsd*-gnu) | |
8001 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8002 | ;; | |
8003 | x86_64-*linux*) | |
8004 | LD="${LD-ld} -m elf_x86_64" | |
8005 | ;; | |
8006 | ppc*-*linux*|powerpc*-*linux*) | |
8007 | LD="${LD-ld} -m elf64ppc" | |
8008 | ;; | |
8009 | s390*-*linux*|s390*-*tpf*) | |
8010 | LD="${LD-ld} -m elf64_s390" | |
8011 | ;; | |
8012 | sparc*-*linux*) | |
8013 | LD="${LD-ld} -m elf64_sparc" | |
8014 | ;; | |
8015 | esac | |
8016 | ;; | |
8017 | esac | |
8018 | fi | |
8019 | rm -rf conftest* | |
8020 | ;; | |
8021 | ||
8022 | *-*-sco3.2v5*) | |
8023 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8024 | SAVE_CFLAGS="$CFLAGS" | |
8025 | CFLAGS="$CFLAGS -belf" | |
8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
8027 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
08c2568c | 8028 | if ${lt_cv_cc_needs_belf+:} false; then : |
7083c021 AC |
8029 | $as_echo_n "(cached) " >&6 |
8030 | else | |
8031 | ac_ext=c | |
8032 | ac_cpp='$CPP $CPPFLAGS' | |
8033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8036 | ||
8037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8038 | /* end confdefs.h. */ | |
8039 | ||
8040 | int | |
8041 | main () | |
8042 | { | |
8043 | ||
8044 | ; | |
8045 | return 0; | |
8046 | } | |
8047 | _ACEOF | |
8048 | if ac_fn_c_try_link "$LINENO"; then : | |
8049 | lt_cv_cc_needs_belf=yes | |
8050 | else | |
8051 | lt_cv_cc_needs_belf=no | |
8052 | fi | |
8053 | rm -f core conftest.err conftest.$ac_objext \ | |
8054 | conftest$ac_exeext conftest.$ac_ext | |
8055 | ac_ext=c | |
8056 | ac_cpp='$CPP $CPPFLAGS' | |
8057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8060 | ||
8061 | fi | |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
8063 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
8064 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
8065 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8066 | CFLAGS="$SAVE_CFLAGS" | |
8067 | fi | |
8068 | ;; | |
a949ab1a | 8069 | *-*solaris*) |
7083c021 AC |
8070 | # Find out which ABI we are using. |
8071 | echo 'int i;' > conftest.$ac_ext | |
8072 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8073 | (eval $ac_compile) 2>&5 | |
8074 | ac_status=$? | |
8075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8076 | test $ac_status = 0; }; then | |
8077 | case `/usr/bin/file conftest.o` in | |
8078 | *64-bit*) | |
8079 | case $lt_cv_prog_gnu_ld in | |
a949ab1a AC |
8080 | yes*) |
8081 | case $host in | |
8082 | i?86-*-solaris*) | |
8083 | LD="${LD-ld} -m elf_x86_64" | |
8084 | ;; | |
8085 | sparc*-*-solaris*) | |
8086 | LD="${LD-ld} -m elf64_sparc" | |
8087 | ;; | |
8088 | esac | |
8089 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
8090 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
8091 | LD="${LD-ld}_sol2" | |
8092 | fi | |
8093 | ;; | |
7083c021 AC |
8094 | *) |
8095 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8096 | LD="${LD-ld} -64" | |
8097 | fi | |
8098 | ;; | |
8099 | esac | |
8100 | ;; | |
8101 | esac | |
8102 | fi | |
8103 | rm -rf conftest* | |
8104 | ;; | |
8105 | esac | |
8106 | ||
8107 | need_locks="$enable_libtool_lock" | |
8108 | ||
b6d0720c AC |
8109 | if test -n "$ac_tool_prefix"; then |
8110 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
8111 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8113 | $as_echo_n "checking for $ac_word... " >&6; } | |
8114 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
8115 | $as_echo_n "(cached) " >&6 | |
8116 | else | |
8117 | if test -n "$MANIFEST_TOOL"; then | |
8118 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
8119 | else | |
8120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8121 | for as_dir in $PATH | |
8122 | do | |
8123 | IFS=$as_save_IFS | |
8124 | test -z "$as_dir" && as_dir=. | |
8125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
8127 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
8128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8129 | break 2 | |
8130 | fi | |
8131 | done | |
8132 | done | |
8133 | IFS=$as_save_IFS | |
8134 | ||
8135 | fi | |
8136 | fi | |
8137 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
8138 | if test -n "$MANIFEST_TOOL"; then | |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
8140 | $as_echo "$MANIFEST_TOOL" >&6; } | |
8141 | else | |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8143 | $as_echo "no" >&6; } | |
8144 | fi | |
8145 | ||
8146 | ||
8147 | fi | |
8148 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
8149 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
8150 | # Extract the first word of "mt", so it can be a program name with args. | |
8151 | set dummy mt; ac_word=$2 | |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8153 | $as_echo_n "checking for $ac_word... " >&6; } | |
8154 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
8155 | $as_echo_n "(cached) " >&6 | |
8156 | else | |
8157 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8158 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
8159 | else | |
8160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8161 | for as_dir in $PATH | |
8162 | do | |
8163 | IFS=$as_save_IFS | |
8164 | test -z "$as_dir" && as_dir=. | |
8165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b6d0720c AC |
8167 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
8168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8169 | break 2 | |
8170 | fi | |
8171 | done | |
8172 | done | |
8173 | IFS=$as_save_IFS | |
8174 | ||
8175 | fi | |
8176 | fi | |
8177 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
8178 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
8180 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
8181 | else | |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8183 | $as_echo "no" >&6; } | |
8184 | fi | |
8185 | ||
8186 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
8187 | MANIFEST_TOOL=":" | |
8188 | else | |
8189 | case $cross_compiling:$ac_tool_warned in | |
8190 | yes:) | |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8192 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8193 | ac_tool_warned=yes ;; | |
8194 | esac | |
8195 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
8196 | fi | |
8197 | else | |
8198 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
8199 | fi | |
8200 | ||
8201 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
8203 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
8204 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
8205 | $as_echo_n "(cached) " >&6 | |
8206 | else | |
8207 | lt_cv_path_mainfest_tool=no | |
8208 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
8209 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
8210 | cat conftest.err >&5 | |
8211 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
8212 | lt_cv_path_mainfest_tool=yes | |
8213 | fi | |
8214 | rm -f conftest* | |
8215 | fi | |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
8217 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
8218 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
8219 | MANIFEST_TOOL=: | |
8220 | fi | |
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | ||
7083c021 AC |
8226 | |
8227 | case $host_os in | |
8228 | rhapsody* | darwin*) | |
8229 | if test -n "$ac_tool_prefix"; then | |
8230 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8231 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8233 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8234 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
7083c021 AC |
8235 | $as_echo_n "(cached) " >&6 |
8236 | else | |
8237 | if test -n "$DSYMUTIL"; then | |
8238 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8239 | else | |
8240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8241 | for as_dir in $PATH | |
db137867 AC |
8242 | do |
8243 | IFS=$as_save_IFS | |
8244 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8245 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8247 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
8248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8249 | break 2 |
8250 | fi | |
8251 | done | |
7083c021 AC |
8252 | done |
8253 | IFS=$as_save_IFS | |
8254 | ||
8255 | fi | |
8256 | fi | |
8257 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8258 | if test -n "$DSYMUTIL"; then | |
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8260 | $as_echo "$DSYMUTIL" >&6; } | |
8261 | else | |
8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8263 | $as_echo "no" >&6; } | |
8264 | fi | |
8265 | ||
8266 | ||
8267 | fi | |
8268 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8269 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8270 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8271 | set dummy dsymutil; ac_word=$2 | |
8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8273 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8274 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
7083c021 AC |
8275 | $as_echo_n "(cached) " >&6 |
8276 | else | |
8277 | if test -n "$ac_ct_DSYMUTIL"; then | |
8278 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8279 | else | |
8280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8281 | for as_dir in $PATH | |
8282 | do | |
8283 | IFS=$as_save_IFS | |
8284 | test -z "$as_dir" && as_dir=. | |
8285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8287 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
8288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8289 | break 2 | |
8290 | fi | |
db137867 | 8291 | done |
7083c021 | 8292 | done |
db137867 AC |
8293 | IFS=$as_save_IFS |
8294 | ||
8295 | fi | |
8296 | fi | |
7083c021 AC |
8297 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8298 | if test -n "$ac_ct_DSYMUTIL"; then | |
8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8300 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
db137867 | 8301 | else |
7083c021 | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8303 | $as_echo "no" >&6; } |
db137867 AC |
8304 | fi |
8305 | ||
7083c021 AC |
8306 | if test "x$ac_ct_DSYMUTIL" = x; then |
8307 | DSYMUTIL=":" | |
db137867 AC |
8308 | else |
8309 | case $cross_compiling:$ac_tool_warned in | |
8310 | yes:) | |
7083c021 | 8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
8313 | ac_tool_warned=yes ;; |
8314 | esac | |
7083c021 | 8315 | DSYMUTIL=$ac_ct_DSYMUTIL |
db137867 AC |
8316 | fi |
8317 | else | |
7083c021 | 8318 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
db137867 AC |
8319 | fi |
8320 | ||
7083c021 AC |
8321 | if test -n "$ac_tool_prefix"; then |
8322 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8323 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8325 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8326 | if ${ac_cv_prog_NMEDIT+:} false; then : |
030272f3 | 8327 | $as_echo_n "(cached) " >&6 |
db137867 | 8328 | else |
7083c021 AC |
8329 | if test -n "$NMEDIT"; then |
8330 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
db137867 AC |
8331 | else |
8332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8333 | for as_dir in $PATH | |
8334 | do | |
8335 | IFS=$as_save_IFS | |
8336 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8337 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8339 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
8340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8341 | break 2 |
8342 | fi | |
8343 | done | |
7083c021 | 8344 | done |
db137867 AC |
8345 | IFS=$as_save_IFS |
8346 | ||
8347 | fi | |
8348 | fi | |
7083c021 AC |
8349 | NMEDIT=$ac_cv_prog_NMEDIT |
8350 | if test -n "$NMEDIT"; then | |
8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8352 | $as_echo "$NMEDIT" >&6; } | |
db137867 | 8353 | else |
7083c021 | 8354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8355 | $as_echo "no" >&6; } |
db137867 AC |
8356 | fi |
8357 | ||
8358 | ||
8359 | fi | |
7083c021 AC |
8360 | if test -z "$ac_cv_prog_NMEDIT"; then |
8361 | ac_ct_NMEDIT=$NMEDIT | |
8362 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8363 | set dummy nmedit; ac_word=$2 | |
8364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8365 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8366 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
030272f3 | 8367 | $as_echo_n "(cached) " >&6 |
db137867 | 8368 | else |
7083c021 AC |
8369 | if test -n "$ac_ct_NMEDIT"; then |
8370 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
db137867 AC |
8371 | else |
8372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8373 | for as_dir in $PATH | |
8374 | do | |
8375 | IFS=$as_save_IFS | |
8376 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8377 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8379 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
8380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8381 | break 2 |
8382 | fi | |
8383 | done | |
7083c021 | 8384 | done |
db137867 AC |
8385 | IFS=$as_save_IFS |
8386 | ||
8387 | fi | |
8388 | fi | |
7083c021 AC |
8389 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8390 | if test -n "$ac_ct_NMEDIT"; then | |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8392 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
db137867 | 8393 | else |
7083c021 | 8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8395 | $as_echo "no" >&6; } |
db137867 AC |
8396 | fi |
8397 | ||
7083c021 AC |
8398 | if test "x$ac_ct_NMEDIT" = x; then |
8399 | NMEDIT=":" | |
db137867 AC |
8400 | else |
8401 | case $cross_compiling:$ac_tool_warned in | |
8402 | yes:) | |
7083c021 | 8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8404 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
8405 | ac_tool_warned=yes ;; |
8406 | esac | |
7083c021 | 8407 | NMEDIT=$ac_ct_NMEDIT |
db137867 AC |
8408 | fi |
8409 | else | |
7083c021 | 8410 | NMEDIT="$ac_cv_prog_NMEDIT" |
db137867 AC |
8411 | fi |
8412 | ||
7083c021 AC |
8413 | if test -n "$ac_tool_prefix"; then |
8414 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8415 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8417 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8418 | if ${ac_cv_prog_LIPO+:} false; then : |
7083c021 AC |
8419 | $as_echo_n "(cached) " >&6 |
8420 | else | |
8421 | if test -n "$LIPO"; then | |
8422 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8423 | else | |
8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8425 | for as_dir in $PATH | |
8426 | do | |
8427 | IFS=$as_save_IFS | |
8428 | test -z "$as_dir" && as_dir=. | |
8429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8431 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
8432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8433 | break 2 | |
8434 | fi | |
8435 | done | |
8436 | done | |
8437 | IFS=$as_save_IFS | |
db137867 | 8438 | |
db137867 | 8439 | fi |
db137867 | 8440 | fi |
7083c021 AC |
8441 | LIPO=$ac_cv_prog_LIPO |
8442 | if test -n "$LIPO"; then | |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8444 | $as_echo "$LIPO" >&6; } | |
db137867 | 8445 | else |
7083c021 | 8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8447 | $as_echo "no" >&6; } |
db137867 AC |
8448 | fi |
8449 | ||
7083c021 AC |
8450 | |
8451 | fi | |
8452 | if test -z "$ac_cv_prog_LIPO"; then | |
8453 | ac_ct_LIPO=$LIPO | |
8454 | # Extract the first word of "lipo", so it can be a program name with args. | |
8455 | set dummy lipo; ac_word=$2 | |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8457 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8458 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
030272f3 | 8459 | $as_echo_n "(cached) " >&6 |
db137867 | 8460 | else |
7083c021 AC |
8461 | if test -n "$ac_ct_LIPO"; then |
8462 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8463 | else | |
8464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8465 | for as_dir in $PATH | |
8466 | do | |
8467 | IFS=$as_save_IFS | |
8468 | test -z "$as_dir" && as_dir=. | |
8469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
bf4e01a4 | 8470 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8471 | ac_cv_prog_ac_ct_LIPO="lipo" |
8472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8473 | break 2 | |
8474 | fi | |
8475 | done | |
db137867 | 8476 | done |
7083c021 | 8477 | IFS=$as_save_IFS |
db137867 | 8478 | |
7083c021 AC |
8479 | fi |
8480 | fi | |
8481 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8482 | if test -n "$ac_ct_LIPO"; then | |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8484 | $as_echo "$ac_ct_LIPO" >&6; } | |
db137867 | 8485 | else |
7083c021 | 8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8487 | $as_echo "no" >&6; } |
db137867 AC |
8488 | fi |
8489 | ||
7083c021 AC |
8490 | if test "x$ac_ct_LIPO" = x; then |
8491 | LIPO=":" | |
db137867 | 8492 | else |
7083c021 AC |
8493 | case $cross_compiling:$ac_tool_warned in |
8494 | yes:) | |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8496 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8497 | ac_tool_warned=yes ;; | |
8498 | esac | |
8499 | LIPO=$ac_ct_LIPO | |
db137867 | 8500 | fi |
7083c021 AC |
8501 | else |
8502 | LIPO="$ac_cv_prog_LIPO" | |
db137867 AC |
8503 | fi |
8504 | ||
b676ea3b | 8505 | if test -n "$ac_tool_prefix"; then |
7083c021 AC |
8506 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
8507 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8509 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8510 | if ${ac_cv_prog_OTOOL+:} false; then : |
030272f3 | 8511 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8512 | else |
7083c021 AC |
8513 | if test -n "$OTOOL"; then |
8514 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
b676ea3b AC |
8515 | else |
8516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8517 | for as_dir in $PATH | |
8518 | do | |
8519 | IFS=$as_save_IFS | |
8520 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8521 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8523 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8525 | break 2 |
8526 | fi | |
8527 | done | |
7083c021 | 8528 | done |
b676ea3b AC |
8529 | IFS=$as_save_IFS |
8530 | ||
8531 | fi | |
8532 | fi | |
7083c021 AC |
8533 | OTOOL=$ac_cv_prog_OTOOL |
8534 | if test -n "$OTOOL"; then | |
8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8536 | $as_echo "$OTOOL" >&6; } | |
b676ea3b | 8537 | else |
7083c021 | 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8539 | $as_echo "no" >&6; } |
b676ea3b AC |
8540 | fi |
8541 | ||
8542 | ||
8543 | fi | |
7083c021 AC |
8544 | if test -z "$ac_cv_prog_OTOOL"; then |
8545 | ac_ct_OTOOL=$OTOOL | |
8546 | # Extract the first word of "otool", so it can be a program name with args. | |
8547 | set dummy otool; ac_word=$2 | |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8549 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8550 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
030272f3 | 8551 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8552 | else |
7083c021 AC |
8553 | if test -n "$ac_ct_OTOOL"; then |
8554 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
b676ea3b AC |
8555 | else |
8556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8557 | for as_dir in $PATH | |
8558 | do | |
8559 | IFS=$as_save_IFS | |
8560 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8561 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8563 | ac_cv_prog_ac_ct_OTOOL="otool" |
8564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8565 | break 2 |
8566 | fi | |
8567 | done | |
7083c021 | 8568 | done |
b676ea3b AC |
8569 | IFS=$as_save_IFS |
8570 | ||
8571 | fi | |
8572 | fi | |
7083c021 AC |
8573 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
8574 | if test -n "$ac_ct_OTOOL"; then | |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8576 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b676ea3b | 8577 | else |
7083c021 | 8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8579 | $as_echo "no" >&6; } |
b676ea3b AC |
8580 | fi |
8581 | ||
7083c021 AC |
8582 | if test "x$ac_ct_OTOOL" = x; then |
8583 | OTOOL=":" | |
b676ea3b AC |
8584 | else |
8585 | case $cross_compiling:$ac_tool_warned in | |
8586 | yes:) | |
7083c021 | 8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8588 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b676ea3b AC |
8589 | ac_tool_warned=yes ;; |
8590 | esac | |
7083c021 | 8591 | OTOOL=$ac_ct_OTOOL |
b676ea3b AC |
8592 | fi |
8593 | else | |
7083c021 | 8594 | OTOOL="$ac_cv_prog_OTOOL" |
b676ea3b AC |
8595 | fi |
8596 | ||
8597 | if test -n "$ac_tool_prefix"; then | |
7083c021 AC |
8598 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
8599 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8601 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8602 | if ${ac_cv_prog_OTOOL64+:} false; then : |
030272f3 | 8603 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8604 | else |
7083c021 AC |
8605 | if test -n "$OTOOL64"; then |
8606 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
b676ea3b AC |
8607 | else |
8608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8609 | for as_dir in $PATH | |
8610 | do | |
8611 | IFS=$as_save_IFS | |
8612 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8613 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8614 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8615 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8617 | break 2 |
8618 | fi | |
8619 | done | |
7083c021 | 8620 | done |
b676ea3b AC |
8621 | IFS=$as_save_IFS |
8622 | ||
8623 | fi | |
8624 | fi | |
7083c021 AC |
8625 | OTOOL64=$ac_cv_prog_OTOOL64 |
8626 | if test -n "$OTOOL64"; then | |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8628 | $as_echo "$OTOOL64" >&6; } | |
b676ea3b | 8629 | else |
7083c021 | 8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8631 | $as_echo "no" >&6; } |
b676ea3b AC |
8632 | fi |
8633 | ||
8634 | ||
8635 | fi | |
7083c021 AC |
8636 | if test -z "$ac_cv_prog_OTOOL64"; then |
8637 | ac_ct_OTOOL64=$OTOOL64 | |
8638 | # Extract the first word of "otool64", so it can be a program name with args. | |
8639 | set dummy otool64; ac_word=$2 | |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8641 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8642 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
030272f3 | 8643 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8644 | else |
7083c021 AC |
8645 | if test -n "$ac_ct_OTOOL64"; then |
8646 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
b676ea3b AC |
8647 | else |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8653 | for ac_exec_ext in '' $ac_executable_extensions; do |
bf4e01a4 | 8654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
8655 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8657 | break 2 |
8658 | fi | |
8659 | done | |
7083c021 | 8660 | done |
b676ea3b AC |
8661 | IFS=$as_save_IFS |
8662 | ||
8663 | fi | |
8664 | fi | |
7083c021 AC |
8665 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
8666 | if test -n "$ac_ct_OTOOL64"; then | |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8668 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b676ea3b | 8669 | else |
7083c021 | 8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8671 | $as_echo "no" >&6; } |
b676ea3b AC |
8672 | fi |
8673 | ||
7083c021 AC |
8674 | if test "x$ac_ct_OTOOL64" = x; then |
8675 | OTOOL64=":" | |
b676ea3b AC |
8676 | else |
8677 | case $cross_compiling:$ac_tool_warned in | |
8678 | yes:) | |
7083c021 | 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b676ea3b AC |
8681 | ac_tool_warned=yes ;; |
8682 | esac | |
7083c021 | 8683 | OTOOL64=$ac_ct_OTOOL64 |
b676ea3b AC |
8684 | fi |
8685 | else | |
7083c021 | 8686 | OTOOL64="$ac_cv_prog_OTOOL64" |
b676ea3b AC |
8687 | fi |
8688 | ||
8689 | ||
b676ea3b | 8690 | |
b676ea3b | 8691 | |
7083c021 AC |
8692 | |
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | ||
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8716 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
08c2568c | 8717 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
7083c021 AC |
8718 | $as_echo_n "(cached) " >&6 |
8719 | else | |
8720 | lt_cv_apple_cc_single_mod=no | |
8721 | if test -z "${LT_MULTI_MODULE}"; then | |
8722 | # By default we will add the -single_module flag. You can override | |
8723 | # by either setting the environment variable LT_MULTI_MODULE | |
8724 | # non-empty at configure time, or by adding -multi_module to the | |
8725 | # link flags. | |
8726 | rm -rf libconftest.dylib* | |
8727 | echo "int foo(void){return 1;}" > conftest.c | |
8728 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8729 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8730 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8731 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8732 | _lt_result=$? | |
a949ab1a AC |
8733 | # If there is a non-empty error log, and "single_module" |
8734 | # appears in it, assume the flag caused a linker warning | |
8735 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8736 | cat conftest.err >&5 | |
8737 | # Otherwise, if the output was created with a 0 exit code from | |
8738 | # the compiler, it worked. | |
8739 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
7083c021 AC |
8740 | lt_cv_apple_cc_single_mod=yes |
8741 | else | |
8742 | cat conftest.err >&5 | |
8743 | fi | |
8744 | rm -rf libconftest.dylib* | |
8745 | rm -f conftest.* | |
8746 | fi | |
8747 | fi | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8749 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
a949ab1a | 8750 | |
7083c021 AC |
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8752 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
08c2568c | 8753 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7083c021 AC |
8754 | $as_echo_n "(cached) " >&6 |
8755 | else | |
8756 | lt_cv_ld_exported_symbols_list=no | |
8757 | save_LDFLAGS=$LDFLAGS | |
8758 | echo "_main" > conftest.sym | |
8759 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8761 | /* end confdefs.h. */ | |
8762 | ||
8763 | int | |
8764 | main () | |
8765 | { | |
8766 | ||
8767 | ; | |
8768 | return 0; | |
b676ea3b AC |
8769 | } |
8770 | _ACEOF | |
7083c021 | 8771 | if ac_fn_c_try_link "$LINENO"; then : |
b676ea3b AC |
8772 | lt_cv_ld_exported_symbols_list=yes |
8773 | else | |
7083c021 | 8774 | lt_cv_ld_exported_symbols_list=no |
b676ea3b | 8775 | fi |
7083c021 AC |
8776 | rm -f core conftest.err conftest.$ac_objext \ |
8777 | conftest$ac_exeext conftest.$ac_ext | |
8778 | LDFLAGS="$save_LDFLAGS" | |
b676ea3b AC |
8779 | |
8780 | fi | |
7083c021 | 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
030272f3 | 8782 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
a949ab1a | 8783 | |
b6d0720c AC |
8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8785 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8786 | if ${lt_cv_ld_force_load+:} false; then : | |
8787 | $as_echo_n "(cached) " >&6 | |
8788 | else | |
8789 | lt_cv_ld_force_load=no | |
8790 | cat > conftest.c << _LT_EOF | |
8791 | int forced_loaded() { return 2;} | |
8792 | _LT_EOF | |
8793 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8794 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8795 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8796 | $AR cru libconftest.a conftest.o 2>&5 | |
8797 | echo "$RANLIB libconftest.a" >&5 | |
8798 | $RANLIB libconftest.a 2>&5 | |
8799 | cat > conftest.c << _LT_EOF | |
8800 | int main() { return 0;} | |
8801 | _LT_EOF | |
8802 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8803 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8804 | _lt_result=$? | |
a949ab1a AC |
8805 | if test -s conftest.err && $GREP force_load conftest.err; then |
8806 | cat conftest.err >&5 | |
8807 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
b6d0720c AC |
8808 | lt_cv_ld_force_load=yes |
8809 | else | |
8810 | cat conftest.err >&5 | |
8811 | fi | |
8812 | rm -f conftest.err libconftest.a conftest conftest.c | |
8813 | rm -rf conftest.dSYM | |
8814 | ||
8815 | fi | |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8817 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b676ea3b | 8818 | case $host_os in |
7083c021 | 8819 | rhapsody* | darwin1.[012]) |
b676ea3b AC |
8820 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
8821 | darwin1.*) | |
7083c021 AC |
8822 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8823 | darwin*) # darwin 5.x on | |
b676ea3b AC |
8824 | # if running on 10.5 or later, the deployment target defaults |
8825 | # to the OS version, if on x86, and 10.4, the deployment | |
8826 | # target defaults to 10.4. Don't you love it? | |
8827 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7083c021 AC |
8828 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
8829 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8830 | 10.[012]*) | |
8831 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8832 | 10.*) | |
8833 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
b676ea3b AC |
8834 | esac |
8835 | ;; | |
8836 | esac | |
8837 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8838 | _lt_dar_single_mod='$single_module' | |
8839 | fi | |
8840 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8841 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8842 | else | |
7083c021 | 8843 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
b676ea3b | 8844 | fi |
b6d0720c | 8845 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
7083c021 | 8846 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
b676ea3b AC |
8847 | else |
8848 | _lt_dsymutil= | |
8849 | fi | |
8850 | ;; | |
8851 | esac | |
8852 | ||
7083c021 AC |
8853 | for ac_header in dlfcn.h |
8854 | do : | |
8855 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8856 | " | |
08c2568c | 8857 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7083c021 AC |
8858 | cat >>confdefs.h <<_ACEOF |
8859 | #define HAVE_DLFCN_H 1 | |
8860 | _ACEOF | |
b676ea3b | 8861 | |
db137867 AC |
8862 | fi |
8863 | ||
7083c021 AC |
8864 | done |
8865 | ||
8866 | ||
8867 | ||
b6d0720c AC |
8868 | |
8869 | ||
7083c021 AC |
8870 | # Set options |
8871 | ||
8872 | ||
8873 | ||
8874 | enable_dlopen=no | |
8875 | ||
8876 | ||
8877 | enable_win32_dll=no | |
8878 | ||
8879 | ||
8880 | ||
db137867 AC |
8881 | |
8882 | ||
8883 | # Check whether --with-pic was given. | |
7083c021 | 8884 | if test "${with_pic+set}" = set; then : |
a949ab1a AC |
8885 | withval=$with_pic; lt_p=${PACKAGE-default} |
8886 | case $withval in | |
8887 | yes|no) pic_mode=$withval ;; | |
8888 | *) | |
8889 | pic_mode=default | |
8890 | # Look at the argument we got. We use all the common list separators. | |
8891 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8892 | for lt_pkg in $withval; do | |
8893 | IFS="$lt_save_ifs" | |
8894 | if test "X$lt_pkg" = "X$lt_p"; then | |
8895 | pic_mode=yes | |
8896 | fi | |
8897 | done | |
8898 | IFS="$lt_save_ifs" | |
8899 | ;; | |
8900 | esac | |
db137867 AC |
8901 | else |
8902 | pic_mode=default | |
8903 | fi | |
8904 | ||
7083c021 | 8905 | |
db137867 AC |
8906 | test -z "$pic_mode" && pic_mode=default |
8907 | ||
db137867 AC |
8908 | |
8909 | ||
db137867 | 8910 | |
db137867 | 8911 | |
db137867 | 8912 | |
db137867 | 8913 | |
7083c021 AC |
8914 | # Check whether --enable-fast-install was given. |
8915 | if test "${enable_fast_install+set}" = set; then : | |
8916 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8917 | case $enableval in | |
8918 | yes) enable_fast_install=yes ;; | |
8919 | no) enable_fast_install=no ;; | |
8920 | *) | |
8921 | enable_fast_install=no | |
8922 | # Look at the argument we got. We use all the common list separators. | |
8923 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8924 | for pkg in $enableval; do | |
8925 | IFS="$lt_save_ifs" | |
8926 | if test "X$pkg" = "X$p"; then | |
8927 | enable_fast_install=yes | |
8928 | fi | |
8929 | done | |
8930 | IFS="$lt_save_ifs" | |
8931 | ;; | |
8932 | esac | |
8933 | else | |
8934 | enable_fast_install=yes | |
8935 | fi | |
db137867 | 8936 | |
db137867 | 8937 | |
db137867 | 8938 | |
db137867 AC |
8939 | |
8940 | ||
db137867 | 8941 | |
db137867 AC |
8942 | |
8943 | ||
8944 | ||
db137867 | 8945 | |
db137867 | 8946 | |
7083c021 AC |
8947 | # This can be used to rebuild libtool when needed |
8948 | LIBTOOL_DEPS="$ltmain" | |
db137867 | 8949 | |
7083c021 AC |
8950 | # Always use our own libtool. |
8951 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
db137867 | 8952 | |
db137867 | 8953 | |
db137867 | 8954 | |
db137867 | 8955 | |
db137867 | 8956 | |
db137867 | 8957 | |
db137867 | 8958 | |
db137867 | 8959 | |
db137867 | 8960 | |
db137867 | 8961 | |
db137867 | 8962 | |
db137867 | 8963 | |
db137867 | 8964 | |
db137867 | 8965 | |
db137867 | 8966 | |
db137867 | 8967 | |
db137867 | 8968 | |
db137867 | 8969 | |
db137867 | 8970 | |
db137867 | 8971 | |
db137867 | 8972 | |
a949ab1a AC |
8973 | |
8974 | ||
8975 | ||
8976 | ||
db137867 | 8977 | |
db137867 | 8978 | |
b6d0720c | 8979 | |
db137867 | 8980 | |
db137867 | 8981 | |
7083c021 | 8982 | test -z "$LN_S" && LN_S="ln -s" |
db137867 | 8983 | |
db137867 | 8984 | |
db137867 | 8985 | |
db137867 | 8986 | |
db137867 | 8987 | |
db137867 | 8988 | |
db137867 | 8989 | |
db137867 | 8990 | |
db137867 | 8991 | |
db137867 | 8992 | |
db137867 | 8993 | |
db137867 | 8994 | |
db137867 | 8995 | |
db137867 | 8996 | |
7083c021 AC |
8997 | if test -n "${ZSH_VERSION+set}" ; then |
8998 | setopt NO_GLOB_SUBST | |
db137867 | 8999 | fi |
db137867 | 9000 | |
7083c021 AC |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9002 | $as_echo_n "checking for objdir... " >&6; } | |
08c2568c | 9003 | if ${lt_cv_objdir+:} false; then : |
7083c021 | 9004 | $as_echo_n "(cached) " >&6 |
db137867 | 9005 | else |
7083c021 AC |
9006 | rm -f .libs 2>/dev/null |
9007 | mkdir .libs 2>/dev/null | |
9008 | if test -d .libs; then | |
9009 | lt_cv_objdir=.libs | |
9010 | else | |
9011 | # MS-DOS does not allow filenames that begin with a dot. | |
9012 | lt_cv_objdir=_libs | |
9013 | fi | |
9014 | rmdir .libs 2>/dev/null | |
db137867 | 9015 | fi |
7083c021 AC |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9017 | $as_echo "$lt_cv_objdir" >&6; } | |
9018 | objdir=$lt_cv_objdir | |
db137867 AC |
9019 | |
9020 | ||
db137867 | 9021 | |
db137867 | 9022 | |
db137867 | 9023 | |
7083c021 AC |
9024 | cat >>confdefs.h <<_ACEOF |
9025 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9026 | _ACEOF | |
db137867 | 9027 | |
db137867 | 9028 | |
db137867 | 9029 | |
db137867 | 9030 | |
7083c021 AC |
9031 | case $host_os in |
9032 | aix3*) | |
9033 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9034 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9035 | # vanish in a puff of smoke. | |
9036 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9037 | COLLECT_NAMES= | |
9038 | export COLLECT_NAMES | |
9039 | fi | |
9040 | ;; | |
9041 | esac | |
db137867 | 9042 | |
7083c021 AC |
9043 | # Global variables: |
9044 | ofile=libtool | |
9045 | can_build_shared=yes | |
db137867 | 9046 | |
7083c021 AC |
9047 | # All known linkers require a `.a' archive for static linking (except MSVC, |
9048 | # which needs '.lib'). | |
9049 | libext=a | |
db137867 | 9050 | |
7083c021 | 9051 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
db137867 | 9052 | |
7083c021 AC |
9053 | old_CC="$CC" |
9054 | old_CFLAGS="$CFLAGS" | |
db137867 | 9055 | |
7083c021 AC |
9056 | # Set sane defaults for various variables |
9057 | test -z "$CC" && CC=cc | |
9058 | test -z "$LTCC" && LTCC=$CC | |
9059 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9060 | test -z "$LD" && LD=ld | |
9061 | test -z "$ac_objext" && ac_objext=o | |
db137867 | 9062 | |
7083c021 AC |
9063 | for cc_temp in $compiler""; do |
9064 | case $cc_temp in | |
9065 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9066 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9067 | \-*) ;; | |
9068 | *) break;; | |
9069 | esac | |
9070 | done | |
b6d0720c | 9071 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
db137867 | 9072 | |
db137867 | 9073 | |
7083c021 AC |
9074 | # Only perform the check for file, if the check method requires it |
9075 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9076 | case $deplibs_check_method in | |
9077 | file_magic*) | |
9078 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9080 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
08c2568c | 9081 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
7083c021 AC |
9082 | $as_echo_n "(cached) " >&6 |
9083 | else | |
9084 | case $MAGIC_CMD in | |
9085 | [\\/*] | ?:[\\/]*) | |
9086 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9087 | ;; | |
9088 | *) | |
9089 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9090 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9091 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9092 | for ac_dir in $ac_dummy; do | |
9093 | IFS="$lt_save_ifs" | |
9094 | test -z "$ac_dir" && ac_dir=. | |
9095 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9096 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9097 | if test -n "$file_magic_test_file"; then | |
9098 | case $deplibs_check_method in | |
9099 | "file_magic "*) | |
9100 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9101 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9102 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9103 | $EGREP "$file_magic_regex" > /dev/null; then | |
9104 | : | |
9105 | else | |
9106 | cat <<_LT_EOF 1>&2 | |
db137867 | 9107 | |
7083c021 AC |
9108 | *** Warning: the command libtool uses to detect shared libraries, |
9109 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9110 | *** The result is that libtool may fail to recognize shared libraries | |
9111 | *** as such. This will affect the creation of libtool libraries that | |
9112 | *** depend on shared libraries, but programs linked with such libtool | |
9113 | *** libraries will work regardless of this problem. Nevertheless, you | |
9114 | *** may want to report the problem to your system manager and/or to | |
9115 | *** bug-libtool@gnu.org | |
db137867 | 9116 | |
7083c021 AC |
9117 | _LT_EOF |
9118 | fi ;; | |
db137867 | 9119 | esac |
db137867 | 9120 | fi |
7083c021 AC |
9121 | break |
9122 | fi | |
9123 | done | |
9124 | IFS="$lt_save_ifs" | |
9125 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9126 | ;; | |
9127 | esac | |
9128 | fi | |
db137867 | 9129 | |
7083c021 AC |
9130 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9131 | if test -n "$MAGIC_CMD"; then | |
9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9133 | $as_echo "$MAGIC_CMD" >&6; } | |
9134 | else | |
9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9136 | $as_echo "no" >&6; } | |
9137 | fi | |
db137867 | 9138 | |
db137867 | 9139 | |
db137867 | 9140 | |
7083c021 AC |
9141 | |
9142 | ||
9143 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9144 | if test -n "$ac_tool_prefix"; then | |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9146 | $as_echo_n "checking for file... " >&6; } | |
08c2568c | 9147 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
7083c021 | 9148 | $as_echo_n "(cached) " >&6 |
db137867 | 9149 | else |
7083c021 AC |
9150 | case $MAGIC_CMD in |
9151 | [\\/*] | ?:[\\/]*) | |
9152 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9153 | ;; | |
9154 | *) | |
9155 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9156 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9157 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9158 | for ac_dir in $ac_dummy; do | |
9159 | IFS="$lt_save_ifs" | |
9160 | test -z "$ac_dir" && ac_dir=. | |
9161 | if test -f $ac_dir/file; then | |
9162 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9163 | if test -n "$file_magic_test_file"; then | |
9164 | case $deplibs_check_method in | |
9165 | "file_magic "*) | |
9166 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9167 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9168 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9169 | $EGREP "$file_magic_regex" > /dev/null; then | |
9170 | : | |
9171 | else | |
9172 | cat <<_LT_EOF 1>&2 | |
db137867 | 9173 | |
7083c021 AC |
9174 | *** Warning: the command libtool uses to detect shared libraries, |
9175 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9176 | *** The result is that libtool may fail to recognize shared libraries | |
9177 | *** as such. This will affect the creation of libtool libraries that | |
9178 | *** depend on shared libraries, but programs linked with such libtool | |
9179 | *** libraries will work regardless of this problem. Nevertheless, you | |
9180 | *** may want to report the problem to your system manager and/or to | |
9181 | *** bug-libtool@gnu.org | |
db137867 | 9182 | |
7083c021 AC |
9183 | _LT_EOF |
9184 | fi ;; | |
9185 | esac | |
9186 | fi | |
9187 | break | |
9188 | fi | |
9189 | done | |
9190 | IFS="$lt_save_ifs" | |
9191 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9192 | ;; | |
9193 | esac | |
db137867 AC |
9194 | fi |
9195 | ||
7083c021 AC |
9196 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9197 | if test -n "$MAGIC_CMD"; then | |
9198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9199 | $as_echo "$MAGIC_CMD" >&6; } | |
9200 | else | |
9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9202 | $as_echo "no" >&6; } | |
9203 | fi | |
db137867 | 9204 | |
db137867 | 9205 | |
7083c021 AC |
9206 | else |
9207 | MAGIC_CMD=: | |
9208 | fi | |
9209 | fi | |
db137867 | 9210 | |
7083c021 AC |
9211 | fi |
9212 | ;; | |
db137867 | 9213 | esac |
db137867 | 9214 | |
7083c021 AC |
9215 | # Use C for the default configuration in the libtool script |
9216 | ||
9217 | lt_save_CC="$CC" | |
9218 | ac_ext=c | |
9219 | ac_cpp='$CPP $CPPFLAGS' | |
9220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9223 | ||
9224 | ||
9225 | # Source file extension for C test sources. | |
9226 | ac_ext=c | |
9227 | ||
9228 | # Object file extension for compiled C test sources. | |
9229 | objext=o | |
9230 | objext=$objext | |
9231 | ||
9232 | # Code to be used in simple compile tests | |
9233 | lt_simple_compile_test_code="int some_variable = 0;" | |
9234 | ||
9235 | # Code to be used in simple link tests | |
9236 | lt_simple_link_test_code='int main(){return(0);}' | |
9237 | ||
9238 | ||
9239 | ||
9240 | ||
9241 | ||
9242 | ||
9243 | ||
9244 | # If no C compiler was specified, use CC. | |
9245 | LTCC=${LTCC-"$CC"} | |
9246 | ||
9247 | # If no C compiler flags were specified, use CFLAGS. | |
9248 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9249 | ||
9250 | # Allow CC to be a program name with arguments. | |
9251 | compiler=$CC | |
9252 | ||
9253 | # Save the default compiler, since it gets overwritten when the other | |
9254 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9255 | compiler_DEFAULT=$CC | |
9256 | ||
9257 | # save warnings/boilerplate of simple test code | |
9258 | ac_outfile=conftest.$ac_objext | |
9259 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9260 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9261 | _lt_compiler_boilerplate=`cat conftest.err` | |
9262 | $RM conftest* | |
9263 | ||
9264 | ac_outfile=conftest.$ac_objext | |
9265 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9266 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9267 | _lt_linker_boilerplate=`cat conftest.err` | |
9268 | $RM -r conftest* | |
9269 | ||
9270 | ||
9271 | if test -n "$compiler"; then | |
9272 | ||
9273 | lt_prog_compiler_no_builtin_flag= | |
9274 | ||
9275 | if test "$GCC" = yes; then | |
b6d0720c AC |
9276 | case $cc_basename in |
9277 | nvcc*) | |
9278 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9279 | *) | |
9280 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9281 | esac | |
7083c021 AC |
9282 | |
9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9284 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
08c2568c | 9285 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
7083c021 | 9286 | $as_echo_n "(cached) " >&6 |
db137867 | 9287 | else |
7083c021 AC |
9288 | lt_cv_prog_compiler_rtti_exceptions=no |
9289 | ac_outfile=conftest.$ac_objext | |
9290 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9291 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9292 | # Insert the option either (1) after the last *FLAGS variable, or | |
9293 | # (2) before a word containing "conftest.", or (3) at the end. | |
9294 | # Note that $ac_compile itself does not contain backslashes and begins | |
9295 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9296 | # The option is referenced via a variable to avoid confusing sed. | |
9297 | lt_compile=`echo "$ac_compile" | $SED \ | |
9298 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9299 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9300 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9301 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9302 | (eval "$lt_compile" 2>conftest.err) |
9303 | ac_status=$? | |
9304 | cat conftest.err >&5 | |
b6d0720c | 9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9306 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9307 | # The compiler can only warn and ignore the option if not recognized | |
9308 | # So say no if there are warnings other than the usual output. | |
b6d0720c | 9309 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
7083c021 AC |
9310 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9311 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9312 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9313 | fi | |
9314 | fi | |
9315 | $RM conftest* | |
db137867 | 9316 | |
7083c021 AC |
9317 | fi |
9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9319 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
db137867 | 9320 | |
7083c021 AC |
9321 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9322 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9323 | else | |
9324 | : | |
db137867 AC |
9325 | fi |
9326 | ||
7083c021 | 9327 | fi |
db137867 | 9328 | |
7083c021 AC |
9329 | |
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | lt_prog_compiler_wl= | |
9335 | lt_prog_compiler_pic= | |
9336 | lt_prog_compiler_static= | |
9337 | ||
7083c021 AC |
9338 | |
9339 | if test "$GCC" = yes; then | |
9340 | lt_prog_compiler_wl='-Wl,' | |
9341 | lt_prog_compiler_static='-static' | |
9342 | ||
9343 | case $host_os in | |
9344 | aix*) | |
9345 | # All AIX code is PIC. | |
9346 | if test "$host_cpu" = ia64; then | |
9347 | # AIX 5 now supports IA64 processor | |
9348 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9349 | fi |
9350 | ;; | |
9351 | ||
9352 | amigaos*) | |
7083c021 AC |
9353 | case $host_cpu in |
9354 | powerpc) | |
9355 | # see comment about AmigaOS4 .so support | |
9356 | lt_prog_compiler_pic='-fPIC' | |
9357 | ;; | |
9358 | m68k) | |
9359 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9360 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9361 | # like `-m68040'. | |
9362 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9363 | ;; | |
9364 | esac | |
db137867 AC |
9365 | ;; |
9366 | ||
7083c021 AC |
9367 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9368 | # PIC is the default for these OSes. | |
db137867 AC |
9369 | ;; |
9370 | ||
7083c021 AC |
9371 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9372 | # This hack is so that the source file can tell whether it is being | |
9373 | # built for inclusion in a dll (and should export symbols for example). | |
9374 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9375 | # (--disable-auto-import) libraries | |
9376 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
db137867 AC |
9377 | ;; |
9378 | ||
9379 | darwin* | rhapsody*) | |
7083c021 AC |
9380 | # PIC is the default on this platform |
9381 | # Common symbols not allowed in MH_DYLIB files | |
9382 | lt_prog_compiler_pic='-fno-common' | |
db137867 AC |
9383 | ;; |
9384 | ||
b6d0720c AC |
9385 | haiku*) |
9386 | # PIC is the default for Haiku. | |
9387 | # The "-static" flag exists, but is broken. | |
9388 | lt_prog_compiler_static= | |
9389 | ;; | |
9390 | ||
7083c021 AC |
9391 | hpux*) |
9392 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9393 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9394 | # sets the default TLS model and affects inlining. | |
9395 | case $host_cpu in | |
9396 | hppa*64*) | |
9397 | # +Z the default | |
9398 | ;; | |
9399 | *) | |
9400 | lt_prog_compiler_pic='-fPIC' | |
9401 | ;; | |
9402 | esac | |
db137867 AC |
9403 | ;; |
9404 | ||
7083c021 AC |
9405 | interix[3-9]*) |
9406 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9407 | # Instead, we relocate shared libraries at runtime. | |
db137867 AC |
9408 | ;; |
9409 | ||
7083c021 AC |
9410 | msdosdjgpp*) |
9411 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9412 | # on systems that don't support them. | |
9413 | lt_prog_compiler_can_build_shared=no | |
9414 | enable_shared=no | |
db137867 AC |
9415 | ;; |
9416 | ||
7083c021 AC |
9417 | *nto* | *qnx*) |
9418 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9419 | # it will coredump. | |
9420 | lt_prog_compiler_pic='-fPIC -shared' | |
db137867 AC |
9421 | ;; |
9422 | ||
7083c021 AC |
9423 | sysv4*MP*) |
9424 | if test -d /usr/nec; then | |
9425 | lt_prog_compiler_pic=-Kconform_pic | |
9426 | fi | |
db137867 AC |
9427 | ;; |
9428 | ||
7083c021 AC |
9429 | *) |
9430 | lt_prog_compiler_pic='-fPIC' | |
9431 | ;; | |
9432 | esac | |
b6d0720c AC |
9433 | |
9434 | case $cc_basename in | |
9435 | nvcc*) # Cuda Compiler Driver 2.2 | |
9436 | lt_prog_compiler_wl='-Xlinker ' | |
a949ab1a AC |
9437 | if test -n "$lt_prog_compiler_pic"; then |
9438 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9439 | fi | |
b6d0720c AC |
9440 | ;; |
9441 | esac | |
7083c021 AC |
9442 | else |
9443 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9444 | case $host_os in | |
9445 | aix*) | |
9446 | lt_prog_compiler_wl='-Wl,' | |
9447 | if test "$host_cpu" = ia64; then | |
9448 | # AIX 5 now supports IA64 processor | |
9449 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9450 | else |
7083c021 | 9451 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
db137867 | 9452 | fi |
db137867 AC |
9453 | ;; |
9454 | ||
7083c021 AC |
9455 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9456 | # This hack is so that the source file can tell whether it is being | |
9457 | # built for inclusion in a dll (and should export symbols for example). | |
9458 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9459 | ;; | |
db137867 | 9460 | |
7083c021 AC |
9461 | hpux9* | hpux10* | hpux11*) |
9462 | lt_prog_compiler_wl='-Wl,' | |
9463 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9464 | # not for PA HP-UX. | |
9465 | case $host_cpu in | |
9466 | hppa*64*|ia64*) | |
9467 | # +Z the default | |
9468 | ;; | |
9469 | *) | |
9470 | lt_prog_compiler_pic='+Z' | |
9471 | ;; | |
9472 | esac | |
9473 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9474 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9475 | ;; | |
db137867 | 9476 | |
7083c021 AC |
9477 | irix5* | irix6* | nonstopux*) |
9478 | lt_prog_compiler_wl='-Wl,' | |
9479 | # PIC (with -KPIC) is the default. | |
9480 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9481 | ;; |
9482 | ||
b6d0720c | 9483 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 AC |
9484 | case $cc_basename in |
9485 | # old Intel for x86_64 which still supported -KPIC. | |
9486 | ecc*) | |
9487 | lt_prog_compiler_wl='-Wl,' | |
9488 | lt_prog_compiler_pic='-KPIC' | |
9489 | lt_prog_compiler_static='-static' | |
9490 | ;; | |
9491 | # icc used to be incompatible with GCC. | |
9492 | # ICC 10 doesn't accept -KPIC any more. | |
9493 | icc* | ifort*) | |
9494 | lt_prog_compiler_wl='-Wl,' | |
9495 | lt_prog_compiler_pic='-fPIC' | |
9496 | lt_prog_compiler_static='-static' | |
9497 | ;; | |
9498 | # Lahey Fortran 8.1. | |
9499 | lf95*) | |
9500 | lt_prog_compiler_wl='-Wl,' | |
9501 | lt_prog_compiler_pic='--shared' | |
9502 | lt_prog_compiler_static='--static' | |
9503 | ;; | |
b6d0720c AC |
9504 | nagfor*) |
9505 | # NAG Fortran compiler | |
9506 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9507 | lt_prog_compiler_pic='-PIC' | |
9508 | lt_prog_compiler_static='-Bstatic' | |
9509 | ;; | |
9510 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
7083c021 AC |
9511 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9512 | # which looks to be a dead project) | |
9513 | lt_prog_compiler_wl='-Wl,' | |
9514 | lt_prog_compiler_pic='-fpic' | |
9515 | lt_prog_compiler_static='-Bstatic' | |
9516 | ;; | |
9517 | ccc*) | |
9518 | lt_prog_compiler_wl='-Wl,' | |
9519 | # All Alpha code is PIC. | |
9520 | lt_prog_compiler_static='-non_shared' | |
9521 | ;; | |
b6d0720c AC |
9522 | xl* | bgxl* | bgf* | mpixl*) |
9523 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
7083c021 AC |
9524 | lt_prog_compiler_wl='-Wl,' |
9525 | lt_prog_compiler_pic='-qpic' | |
9526 | lt_prog_compiler_static='-qstaticlink' | |
9527 | ;; | |
9528 | *) | |
9529 | case `$CC -V 2>&1 | sed 5q` in | |
a949ab1a | 9530 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
b6d0720c | 9531 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7083c021 AC |
9532 | lt_prog_compiler_pic='-KPIC' |
9533 | lt_prog_compiler_static='-Bstatic' | |
b6d0720c | 9534 | lt_prog_compiler_wl='' |
db137867 | 9535 | ;; |
a949ab1a AC |
9536 | *Sun\ F* | *Sun*Fortran*) |
9537 | lt_prog_compiler_pic='-KPIC' | |
9538 | lt_prog_compiler_static='-Bstatic' | |
9539 | lt_prog_compiler_wl='-Qoption ld ' | |
9540 | ;; | |
b6d0720c AC |
9541 | *Sun\ C*) |
9542 | # Sun C 5.9 | |
7083c021 AC |
9543 | lt_prog_compiler_pic='-KPIC' |
9544 | lt_prog_compiler_static='-Bstatic' | |
b6d0720c | 9545 | lt_prog_compiler_wl='-Wl,' |
db137867 | 9546 | ;; |
a949ab1a AC |
9547 | *Intel*\ [CF]*Compiler*) |
9548 | lt_prog_compiler_wl='-Wl,' | |
9549 | lt_prog_compiler_pic='-fPIC' | |
9550 | lt_prog_compiler_static='-static' | |
9551 | ;; | |
9552 | *Portland\ Group*) | |
9553 | lt_prog_compiler_wl='-Wl,' | |
9554 | lt_prog_compiler_pic='-fpic' | |
9555 | lt_prog_compiler_static='-Bstatic' | |
9556 | ;; | |
db137867 | 9557 | esac |
7083c021 AC |
9558 | ;; |
9559 | esac | |
9560 | ;; | |
db137867 | 9561 | |
7083c021 AC |
9562 | newsos6) |
9563 | lt_prog_compiler_pic='-KPIC' | |
9564 | lt_prog_compiler_static='-Bstatic' | |
9565 | ;; | |
db137867 | 9566 | |
7083c021 AC |
9567 | *nto* | *qnx*) |
9568 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9569 | # it will coredump. | |
9570 | lt_prog_compiler_pic='-fPIC -shared' | |
db137867 AC |
9571 | ;; |
9572 | ||
7083c021 AC |
9573 | osf3* | osf4* | osf5*) |
9574 | lt_prog_compiler_wl='-Wl,' | |
9575 | # All OSF/1 code is PIC. | |
9576 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9577 | ;; |
9578 | ||
7083c021 AC |
9579 | rdos*) |
9580 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9581 | ;; |
9582 | ||
7083c021 AC |
9583 | solaris*) |
9584 | lt_prog_compiler_pic='-KPIC' | |
9585 | lt_prog_compiler_static='-Bstatic' | |
9586 | case $cc_basename in | |
b6d0720c | 9587 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
7083c021 AC |
9588 | lt_prog_compiler_wl='-Qoption ld ';; |
9589 | *) | |
9590 | lt_prog_compiler_wl='-Wl,';; | |
9591 | esac | |
db137867 AC |
9592 | ;; |
9593 | ||
7083c021 AC |
9594 | sunos4*) |
9595 | lt_prog_compiler_wl='-Qoption ld ' | |
9596 | lt_prog_compiler_pic='-PIC' | |
9597 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9598 | ;; |
9599 | ||
7083c021 AC |
9600 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9601 | lt_prog_compiler_wl='-Wl,' | |
9602 | lt_prog_compiler_pic='-KPIC' | |
9603 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9604 | ;; |
9605 | ||
7083c021 AC |
9606 | sysv4*MP*) |
9607 | if test -d /usr/nec ;then | |
9608 | lt_prog_compiler_pic='-Kconform_pic' | |
9609 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9610 | fi |
db137867 AC |
9611 | ;; |
9612 | ||
7083c021 AC |
9613 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9614 | lt_prog_compiler_wl='-Wl,' | |
9615 | lt_prog_compiler_pic='-KPIC' | |
9616 | lt_prog_compiler_static='-Bstatic' | |
9617 | ;; | |
db137867 | 9618 | |
7083c021 AC |
9619 | unicos*) |
9620 | lt_prog_compiler_wl='-Wl,' | |
9621 | lt_prog_compiler_can_build_shared=no | |
db137867 AC |
9622 | ;; |
9623 | ||
7083c021 AC |
9624 | uts4*) |
9625 | lt_prog_compiler_pic='-pic' | |
9626 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9627 | ;; |
9628 | ||
7083c021 AC |
9629 | *) |
9630 | lt_prog_compiler_can_build_shared=no | |
db137867 | 9631 | ;; |
7083c021 AC |
9632 | esac |
9633 | fi | |
db137867 | 9634 | |
7083c021 AC |
9635 | case $host_os in |
9636 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9637 | *djgpp*) | |
9638 | lt_prog_compiler_pic= | |
9639 | ;; | |
9640 | *) | |
9641 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9642 | ;; | |
9643 | esac | |
db137867 | 9644 | |
b6d0720c AC |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9646 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9647 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9648 | $as_echo_n "(cached) " >&6 | |
9649 | else | |
9650 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9651 | fi | |
9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9653 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9654 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
db137867 | 9655 | |
7083c021 AC |
9656 | # |
9657 | # Check to make sure the PIC flag actually works. | |
9658 | # | |
9659 | if test -n "$lt_prog_compiler_pic"; then | |
9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9661 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
08c2568c | 9662 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
7083c021 AC |
9663 | $as_echo_n "(cached) " >&6 |
9664 | else | |
9665 | lt_cv_prog_compiler_pic_works=no | |
9666 | ac_outfile=conftest.$ac_objext | |
9667 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9668 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9669 | # Insert the option either (1) after the last *FLAGS variable, or | |
9670 | # (2) before a word containing "conftest.", or (3) at the end. | |
9671 | # Note that $ac_compile itself does not contain backslashes and begins | |
9672 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9673 | # The option is referenced via a variable to avoid confusing sed. | |
9674 | lt_compile=`echo "$ac_compile" | $SED \ | |
9675 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9676 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9677 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9678 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9679 | (eval "$lt_compile" 2>conftest.err) |
9680 | ac_status=$? | |
9681 | cat conftest.err >&5 | |
b6d0720c | 9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9683 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9684 | # The compiler can only warn and ignore the option if not recognized | |
9685 | # So say no if there are warnings other than the usual output. | |
b6d0720c | 9686 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
7083c021 AC |
9687 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9688 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9689 | lt_cv_prog_compiler_pic_works=yes | |
9690 | fi | |
9691 | fi | |
9692 | $RM conftest* | |
9693 | ||
9694 | fi | |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9696 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9697 | ||
9698 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9699 | case $lt_prog_compiler_pic in | |
9700 | "" | " "*) ;; | |
9701 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9702 | esac | |
9703 | else | |
9704 | lt_prog_compiler_pic= | |
9705 | lt_prog_compiler_can_build_shared=no | |
9706 | fi | |
9707 | ||
9708 | fi | |
9709 | ||
9710 | ||
db137867 | 9711 | |
db137867 | 9712 | |
db137867 | 9713 | |
db137867 | 9714 | |
b6d0720c AC |
9715 | |
9716 | ||
9717 | ||
9718 | ||
9719 | ||
db137867 | 9720 | # |
7083c021 | 9721 | # Check to make sure the static flag actually works. |
db137867 | 9722 | # |
7083c021 AC |
9723 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
9724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9725 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
08c2568c | 9726 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
7083c021 AC |
9727 | $as_echo_n "(cached) " >&6 |
9728 | else | |
9729 | lt_cv_prog_compiler_static_works=no | |
9730 | save_LDFLAGS="$LDFLAGS" | |
9731 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9732 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9733 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9734 | # The linker can only warn and ignore the option if not recognized | |
9735 | # So say no if there are warnings | |
9736 | if test -s conftest.err; then | |
9737 | # Append any errors to the config.log. | |
9738 | cat conftest.err 1>&5 | |
b6d0720c | 9739 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
7083c021 AC |
9740 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9741 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9742 | lt_cv_prog_compiler_static_works=yes | |
9743 | fi | |
9744 | else | |
9745 | lt_cv_prog_compiler_static_works=yes | |
9746 | fi | |
9747 | fi | |
9748 | $RM -r conftest* | |
9749 | LDFLAGS="$save_LDFLAGS" | |
db137867 | 9750 | |
7083c021 AC |
9751 | fi |
9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9753 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
db137867 | 9754 | |
7083c021 AC |
9755 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9756 | : | |
9757 | else | |
9758 | lt_prog_compiler_static= | |
9759 | fi | |
db137867 | 9760 | |
db137867 | 9761 | |
db137867 | 9762 | |
db137867 | 9763 | |
db137867 | 9764 | |
db137867 | 9765 | |
db137867 | 9766 | |
7083c021 AC |
9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9768 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
08c2568c | 9769 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
7083c021 AC |
9770 | $as_echo_n "(cached) " >&6 |
9771 | else | |
9772 | lt_cv_prog_compiler_c_o=no | |
9773 | $RM -r conftest 2>/dev/null | |
9774 | mkdir conftest | |
9775 | cd conftest | |
9776 | mkdir out | |
9777 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 9778 | |
7083c021 AC |
9779 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9780 | # Insert the option either (1) after the last *FLAGS variable, or | |
9781 | # (2) before a word containing "conftest.", or (3) at the end. | |
9782 | # Note that $ac_compile itself does not contain backslashes and begins | |
9783 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9784 | lt_compile=`echo "$ac_compile" | $SED \ | |
9785 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9786 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9787 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9788 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9789 | (eval "$lt_compile" 2>out/conftest.err) |
9790 | ac_status=$? | |
9791 | cat out/conftest.err >&5 | |
b6d0720c | 9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9793 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9794 | then | |
9795 | # The compiler can only warn and ignore the option if not recognized | |
9796 | # So say no if there are warnings | |
b6d0720c | 9797 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
7083c021 AC |
9798 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9799 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9800 | lt_cv_prog_compiler_c_o=yes | |
9801 | fi | |
9802 | fi | |
9803 | chmod u+w . 2>&5 | |
9804 | $RM conftest* | |
9805 | # SGI C++ compiler will create directory out/ii_files/ for | |
9806 | # template instantiation | |
9807 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9808 | $RM out/* && rmdir out | |
9809 | cd .. | |
9810 | $RM -r conftest | |
9811 | $RM conftest* | |
db137867 | 9812 | |
7083c021 AC |
9813 | fi |
9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9815 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
db137867 | 9816 | |
db137867 | 9817 | |
db137867 | 9818 | |
db137867 | 9819 | |
db137867 | 9820 | |
db137867 | 9821 | |
7083c021 AC |
9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9823 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
08c2568c | 9824 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
7083c021 AC |
9825 | $as_echo_n "(cached) " >&6 |
9826 | else | |
9827 | lt_cv_prog_compiler_c_o=no | |
9828 | $RM -r conftest 2>/dev/null | |
9829 | mkdir conftest | |
9830 | cd conftest | |
9831 | mkdir out | |
9832 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 9833 | |
7083c021 AC |
9834 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9835 | # Insert the option either (1) after the last *FLAGS variable, or | |
9836 | # (2) before a word containing "conftest.", or (3) at the end. | |
9837 | # Note that $ac_compile itself does not contain backslashes and begins | |
9838 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9839 | lt_compile=`echo "$ac_compile" | $SED \ | |
9840 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9841 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9842 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9843 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9844 | (eval "$lt_compile" 2>out/conftest.err) |
9845 | ac_status=$? | |
9846 | cat out/conftest.err >&5 | |
b6d0720c | 9847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9848 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9849 | then | |
9850 | # The compiler can only warn and ignore the option if not recognized | |
9851 | # So say no if there are warnings | |
b6d0720c | 9852 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
7083c021 AC |
9853 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9854 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9855 | lt_cv_prog_compiler_c_o=yes | |
9856 | fi | |
9857 | fi | |
9858 | chmod u+w . 2>&5 | |
9859 | $RM conftest* | |
9860 | # SGI C++ compiler will create directory out/ii_files/ for | |
9861 | # template instantiation | |
9862 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9863 | $RM out/* && rmdir out | |
9864 | cd .. | |
9865 | $RM -r conftest | |
9866 | $RM conftest* | |
db137867 | 9867 | |
7083c021 AC |
9868 | fi |
9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9870 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | hard_links="nottested" | |
9876 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9877 | # do not overwrite the value of need_locks provided by the user | |
9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9879 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9880 | hard_links=yes | |
9881 | $RM conftest* | |
9882 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9883 | touch conftest.a | |
9884 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9885 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9887 | $as_echo "$hard_links" >&6; } | |
9888 | if test "$hard_links" = no; then | |
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9890 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9891 | need_locks=warn | |
9892 | fi | |
9893 | else | |
9894 | need_locks=no | |
9895 | fi | |
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9903 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9904 | ||
9905 | runpath_var= | |
9906 | allow_undefined_flag= | |
9907 | always_export_symbols=no | |
9908 | archive_cmds= | |
9909 | archive_expsym_cmds= | |
9910 | compiler_needs_object=no | |
9911 | enable_shared_with_static_runtimes=no | |
9912 | export_dynamic_flag_spec= | |
9913 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9914 | hardcode_automatic=no | |
9915 | hardcode_direct=no | |
9916 | hardcode_direct_absolute=no | |
9917 | hardcode_libdir_flag_spec= | |
7083c021 AC |
9918 | hardcode_libdir_separator= |
9919 | hardcode_minus_L=no | |
9920 | hardcode_shlibpath_var=unsupported | |
9921 | inherit_rpath=no | |
9922 | link_all_deplibs=unknown | |
9923 | module_cmds= | |
9924 | module_expsym_cmds= | |
9925 | old_archive_from_new_cmds= | |
9926 | old_archive_from_expsyms_cmds= | |
9927 | thread_safe_flag_spec= | |
9928 | whole_archive_flag_spec= | |
9929 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9930 | # included in the symbol list | |
9931 | include_expsyms= | |
9932 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9933 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9934 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9935 | # as well as any symbol that contains `d'. | |
9936 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9937 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9938 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9939 | # the symbol is explicitly referenced. Since portable code cannot | |
9940 | # rely on this symbol name, it's probably fine to never include it in | |
9941 | # preloaded symbol tables. | |
9942 | # Exclude shared library initialization/finalization symbols. | |
9943 | extract_expsyms_cmds= | |
db137867 | 9944 | |
db137867 | 9945 | case $host_os in |
7083c021 AC |
9946 | cygwin* | mingw* | pw32* | cegcc*) |
9947 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9948 | # When not using gcc, we currently assume that we are using | |
9949 | # Microsoft Visual C++. | |
9950 | if test "$GCC" != yes; then | |
9951 | with_gnu_ld=no | |
9952 | fi | |
db137867 | 9953 | ;; |
7083c021 AC |
9954 | interix*) |
9955 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9956 | with_gnu_ld=yes | |
db137867 | 9957 | ;; |
7083c021 AC |
9958 | openbsd*) |
9959 | with_gnu_ld=no | |
db137867 | 9960 | ;; |
db137867 | 9961 | esac |
db137867 | 9962 | |
7083c021 | 9963 | ld_shlibs=yes |
b6d0720c AC |
9964 | |
9965 | # On some targets, GNU ld is compatible enough with the native linker | |
9966 | # that we're better off using the native interface for both. | |
9967 | lt_use_gnu_ld_interface=no | |
7083c021 | 9968 | if test "$with_gnu_ld" = yes; then |
b6d0720c AC |
9969 | case $host_os in |
9970 | aix*) | |
9971 | # The AIX port of GNU ld has always aspired to compatibility | |
9972 | # with the native linker. However, as the warning in the GNU ld | |
9973 | # block says, versions before 2.19.5* couldn't really create working | |
9974 | # shared libraries, regardless of the interface used. | |
9975 | case `$LD -v 2>&1` in | |
9976 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9977 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9978 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9979 | *) | |
9980 | lt_use_gnu_ld_interface=yes | |
9981 | ;; | |
9982 | esac | |
9983 | ;; | |
9984 | *) | |
9985 | lt_use_gnu_ld_interface=yes | |
9986 | ;; | |
9987 | esac | |
9988 | fi | |
9989 | ||
9990 | if test "$lt_use_gnu_ld_interface" = yes; then | |
7083c021 AC |
9991 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9992 | wlarc='${wl}' | |
db137867 | 9993 | |
7083c021 AC |
9994 | # Set some defaults for GNU ld with shared library support. These |
9995 | # are reset later if shared libraries are not supported. Putting them | |
9996 | # here allows them to be overridden if necessary. | |
9997 | runpath_var=LD_RUN_PATH | |
9998 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9999 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10000 | # ancient GNU ld didn't support --whole-archive et. al. | |
10001 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10002 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
db137867 | 10003 | else |
7083c021 | 10004 | whole_archive_flag_spec= |
db137867 | 10005 | fi |
7083c021 AC |
10006 | supports_anon_versioning=no |
10007 | case `$LD -v 2>&1` in | |
b6d0720c | 10008 | *GNU\ gold*) supports_anon_versioning=yes ;; |
7083c021 AC |
10009 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10010 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10011 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10012 | *\ 2.11.*) ;; # other 2.11 versions | |
10013 | *) supports_anon_versioning=yes ;; | |
db137867 | 10014 | esac |
db137867 | 10015 | |
7083c021 AC |
10016 | # See if GNU ld supports shared libraries. |
10017 | case $host_os in | |
10018 | aix[3-9]*) | |
10019 | # On AIX/PPC, the GNU linker is very broken | |
10020 | if test "$host_cpu" != ia64; then | |
10021 | ld_shlibs=no | |
10022 | cat <<_LT_EOF 1>&2 | |
db137867 | 10023 | |
b6d0720c | 10024 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
7083c021 AC |
10025 | *** to be unable to reliably create shared libraries on AIX. |
10026 | *** Therefore, libtool is disabling shared libraries support. If you | |
b6d0720c AC |
10027 | *** really care for shared libraries, you may want to install binutils |
10028 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10029 | *** You will then need to restart the configuration process. | |
db137867 | 10030 | |
7083c021 AC |
10031 | _LT_EOF |
10032 | fi | |
10033 | ;; | |
db137867 AC |
10034 | |
10035 | amigaos*) | |
7083c021 AC |
10036 | case $host_cpu in |
10037 | powerpc) | |
10038 | # see comment about AmigaOS4 .so support | |
10039 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10040 | archive_expsym_cmds='' | |
10041 | ;; | |
10042 | m68k) | |
10043 | 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)' | |
10044 | hardcode_libdir_flag_spec='-L$libdir' | |
10045 | hardcode_minus_L=yes | |
10046 | ;; | |
10047 | esac | |
db137867 AC |
10048 | ;; |
10049 | ||
10050 | beos*) | |
7083c021 AC |
10051 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
10052 | allow_undefined_flag=unsupported | |
db137867 AC |
10053 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10054 | # support --undefined. This deserves some investigation. FIXME | |
7083c021 | 10055 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
db137867 | 10056 | else |
7083c021 | 10057 | ld_shlibs=no |
db137867 AC |
10058 | fi |
10059 | ;; | |
10060 | ||
7083c021 AC |
10061 | cygwin* | mingw* | pw32* | cegcc*) |
10062 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
db137867 | 10063 | # as there is no search path for DLLs. |
7083c021 | 10064 | hardcode_libdir_flag_spec='-L$libdir' |
b6d0720c | 10065 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
7083c021 AC |
10066 | allow_undefined_flag=unsupported |
10067 | always_export_symbols=no | |
10068 | enable_shared_with_static_runtimes=yes | |
b6d0720c AC |
10069 | 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' |
10070 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
7083c021 AC |
10071 | |
10072 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10073 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
db137867 AC |
10074 | # If the export-symbols file already is a .def file (1st line |
10075 | # is EXPORTS), use it as is; otherwise, prepend... | |
7083c021 | 10076 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
db137867 AC |
10077 | cp $export_symbols $output_objdir/$soname.def; |
10078 | else | |
10079 | echo EXPORTS > $output_objdir/$soname.def; | |
10080 | cat $export_symbols >> $output_objdir/$soname.def; | |
10081 | fi~ | |
10082 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10083 | else | |
7083c021 | 10084 | ld_shlibs=no |
db137867 AC |
10085 | fi |
10086 | ;; | |
10087 | ||
b6d0720c AC |
10088 | haiku*) |
10089 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10090 | link_all_deplibs=yes | |
10091 | ;; | |
10092 | ||
db137867 | 10093 | interix[3-9]*) |
7083c021 AC |
10094 | hardcode_direct=no |
10095 | hardcode_shlibpath_var=no | |
10096 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10097 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10098 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10099 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10100 | # default) and relocated if they conflict, which is a slow very memory | |
10101 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10102 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10103 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7083c021 AC |
10104 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10105 | 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 |
10106 | ;; |
10107 | ||
b6d0720c | 10108 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 AC |
10109 | tmp_diet=no |
10110 | if test "$host_os" = linux-dietlibc; then | |
10111 | case $cc_basename in | |
10112 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10113 | esac | |
10114 | fi | |
10115 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10116 | && test "$tmp_diet" = no | |
10117 | then | |
b6d0720c | 10118 | tmp_addflag=' $pic_flag' |
7083c021 | 10119 | tmp_sharedflag='-shared' |
db137867 | 10120 | case $cc_basename,$host_cpu in |
7083c021 | 10121 | pgcc*) # Portland Group C compiler |
b6d0720c | 10122 | 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 |
10123 | tmp_addflag=' $pic_flag' |
10124 | ;; | |
b6d0720c AC |
10125 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10126 | # Portland Group f77 and f90 compilers | |
10127 | 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 | 10128 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7083c021 | 10129 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
db137867 AC |
10130 | tmp_addflag=' -i_dynamic' ;; |
10131 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10132 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10133 | ifc* | ifort*) # Intel Fortran compiler | |
10134 | tmp_addflag=' -nofor_main' ;; | |
7083c021 AC |
10135 | lf95*) # Lahey Fortran 8.1 |
10136 | whole_archive_flag_spec= | |
10137 | tmp_sharedflag='--shared' ;; | |
b6d0720c | 10138 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
7083c021 AC |
10139 | tmp_sharedflag='-qmkshrobj' |
10140 | tmp_addflag= ;; | |
b6d0720c AC |
10141 | nvcc*) # Cuda Compiler Driver 2.2 |
10142 | 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' | |
10143 | compiler_needs_object=yes | |
10144 | ;; | |
db137867 AC |
10145 | esac |
10146 | case `$CC -V 2>&1 | sed 5q` in | |
10147 | *Sun\ C*) # Sun C 5.9 | |
b6d0720c | 10148 | 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 | 10149 | compiler_needs_object=yes |
db137867 AC |
10150 | tmp_sharedflag='-G' ;; |
10151 | *Sun\ F*) # Sun Fortran 8.3 | |
10152 | tmp_sharedflag='-G' ;; | |
db137867 | 10153 | esac |
7083c021 | 10154 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
db137867 | 10155 | |
7083c021 AC |
10156 | if test "x$supports_anon_versioning" = xyes; then |
10157 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10158 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10159 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10160 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10161 | fi | |
10162 | ||
10163 | case $cc_basename in | |
b6d0720c | 10164 | xlf* | bgf* | bgxlf* | mpixlf*) |
7083c021 AC |
10165 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10166 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
a949ab1a | 10167 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
b6d0720c | 10168 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
7083c021 AC |
10169 | if test "x$supports_anon_versioning" = xyes; then |
10170 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10171 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10172 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
b6d0720c | 10173 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
7083c021 AC |
10174 | fi |
10175 | ;; | |
10176 | esac | |
db137867 | 10177 | else |
7083c021 | 10178 | ld_shlibs=no |
db137867 AC |
10179 | fi |
10180 | ;; | |
10181 | ||
96f4052b | 10182 | netbsd*) |
7083c021 AC |
10183 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10184 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
db137867 AC |
10185 | wlarc= |
10186 | else | |
b6d0720c AC |
10187 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10188 | 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 |
10189 | fi |
10190 | ;; | |
10191 | ||
10192 | solaris*) | |
7083c021 AC |
10193 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
10194 | ld_shlibs=no | |
10195 | cat <<_LT_EOF 1>&2 | |
db137867 AC |
10196 | |
10197 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10198 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10199 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10200 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10201 | *** your PATH or compiler configuration so that the native linker is | |
10202 | *** used, and then restart. | |
10203 | ||
7083c021 AC |
10204 | _LT_EOF |
10205 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b6d0720c AC |
10206 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10207 | 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 | 10208 | else |
7083c021 | 10209 | ld_shlibs=no |
db137867 AC |
10210 | fi |
10211 | ;; | |
10212 | ||
10213 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10214 | case `$LD -v 2>&1` in | |
10215 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7083c021 | 10216 | ld_shlibs=no |
db137867 AC |
10217 | cat <<_LT_EOF 1>&2 |
10218 | ||
10219 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10220 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10221 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10222 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10223 | *** your PATH or compiler configuration so that the native linker is | |
10224 | *** used, and then restart. | |
10225 | ||
10226 | _LT_EOF | |
10227 | ;; | |
10228 | *) | |
7083c021 AC |
10229 | # For security reasons, it is highly recommended that you always |
10230 | # use absolute paths for naming shared libraries, and exclude the | |
10231 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10232 | # requires that you compile everything twice, which is a pain. | |
10233 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10234 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10235 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10236 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10237 | else |
7083c021 | 10238 | ld_shlibs=no |
db137867 AC |
10239 | fi |
10240 | ;; | |
10241 | esac | |
10242 | ;; | |
10243 | ||
10244 | sunos4*) | |
7083c021 | 10245 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 10246 | wlarc= |
7083c021 AC |
10247 | hardcode_direct=yes |
10248 | hardcode_shlibpath_var=no | |
db137867 AC |
10249 | ;; |
10250 | ||
10251 | *) | |
7083c021 | 10252 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
b6d0720c AC |
10253 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10254 | 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 | 10255 | else |
7083c021 | 10256 | ld_shlibs=no |
db137867 AC |
10257 | fi |
10258 | ;; | |
10259 | esac | |
10260 | ||
7083c021 | 10261 | if test "$ld_shlibs" = no; then |
db137867 | 10262 | runpath_var= |
7083c021 AC |
10263 | hardcode_libdir_flag_spec= |
10264 | export_dynamic_flag_spec= | |
10265 | whole_archive_flag_spec= | |
db137867 AC |
10266 | fi |
10267 | else | |
10268 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10269 | case $host_os in | |
10270 | aix3*) | |
7083c021 AC |
10271 | allow_undefined_flag=unsupported |
10272 | always_export_symbols=yes | |
10273 | 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 |
10274 | # Note: this linker hardcodes the directories in LIBPATH if there |
10275 | # are no directories specified by -L. | |
7083c021 | 10276 | hardcode_minus_L=yes |
db137867 AC |
10277 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
10278 | # Neither direct hardcoding nor static linking is supported with a | |
10279 | # broken collect2. | |
7083c021 | 10280 | hardcode_direct=unsupported |
db137867 AC |
10281 | fi |
10282 | ;; | |
10283 | ||
b676ea3b | 10284 | aix[4-9]*) |
db137867 AC |
10285 | if test "$host_cpu" = ia64; then |
10286 | # On IA64, the linker does run time linking by default, so we don't | |
10287 | # have to do anything special. | |
10288 | aix_use_runtimelinking=no | |
10289 | exp_sym_flag='-Bexport' | |
10290 | no_entry_flag="" | |
10291 | else | |
10292 | # If we're using GNU nm, then we don't want the "-C" option. | |
10293 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
b6d0720c AC |
10294 | # Also, AIX nm treats weak defined symbols like other global |
10295 | # defined symbols, whereas GNU nm marks them as "W". | |
7083c021 | 10296 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
b6d0720c | 10297 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
db137867 | 10298 | else |
7083c021 | 10299 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
db137867 AC |
10300 | fi |
10301 | aix_use_runtimelinking=no | |
10302 | ||
10303 | # Test if we are trying to use run time linking or normal | |
10304 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10305 | # need to do runtime linking. | |
b676ea3b | 10306 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 | 10307 | for ld_flag in $LDFLAGS; do |
7083c021 AC |
10308 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
10309 | aix_use_runtimelinking=yes | |
10310 | break | |
10311 | fi | |
db137867 AC |
10312 | done |
10313 | ;; | |
10314 | esac | |
10315 | ||
10316 | exp_sym_flag='-bexport' | |
10317 | no_entry_flag='-bnoentry' | |
10318 | fi | |
10319 | ||
10320 | # When large executables or shared objects are built, AIX ld can | |
10321 | # have problems creating the table of contents. If linking a library | |
10322 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10323 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10324 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10325 | ||
7083c021 AC |
10326 | archive_cmds='' |
10327 | hardcode_direct=yes | |
10328 | hardcode_direct_absolute=yes | |
10329 | hardcode_libdir_separator=':' | |
10330 | link_all_deplibs=yes | |
10331 | file_list_spec='${wl}-f,' | |
db137867 AC |
10332 | |
10333 | if test "$GCC" = yes; then | |
10334 | case $host_os in aix4.[012]|aix4.[012].*) | |
10335 | # We only want to do this on AIX 4.2 and lower, the check | |
10336 | # below for broken collect2 doesn't work under 4.3+ | |
10337 | collect2name=`${CC} -print-prog-name=collect2` | |
7083c021 AC |
10338 | if test -f "$collect2name" && |
10339 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
db137867 | 10340 | then |
7083c021 AC |
10341 | # We have reworked collect2 |
10342 | : | |
db137867 | 10343 | else |
7083c021 AC |
10344 | # We have old collect2 |
10345 | hardcode_direct=unsupported | |
10346 | # It fails to find uninstalled libraries when the uninstalled | |
10347 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10348 | # to unsupported forces relinking | |
10349 | hardcode_minus_L=yes | |
10350 | hardcode_libdir_flag_spec='-L$libdir' | |
10351 | hardcode_libdir_separator= | |
db137867 AC |
10352 | fi |
10353 | ;; | |
10354 | esac | |
10355 | shared_flag='-shared' | |
10356 | if test "$aix_use_runtimelinking" = yes; then | |
10357 | shared_flag="$shared_flag "'${wl}-G' | |
10358 | fi | |
10359 | else | |
10360 | # not using gcc | |
10361 | if test "$host_cpu" = ia64; then | |
7083c021 AC |
10362 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10363 | # chokes on -Wl,-G. The following line is correct: | |
db137867 AC |
10364 | shared_flag='-G' |
10365 | else | |
10366 | if test "$aix_use_runtimelinking" = yes; then | |
10367 | shared_flag='${wl}-G' | |
10368 | else | |
10369 | shared_flag='${wl}-bM:SRE' | |
10370 | fi | |
10371 | fi | |
10372 | fi | |
10373 | ||
7083c021 | 10374 | export_dynamic_flag_spec='${wl}-bexpall' |
db137867 AC |
10375 | # It seems that -bexpall does not export symbols beginning with |
10376 | # underscore (_), so it is better to generate a list of symbols to export. | |
7083c021 | 10377 | always_export_symbols=yes |
db137867 AC |
10378 | if test "$aix_use_runtimelinking" = yes; then |
10379 | # Warning - without using the other runtime loading flags (-brtl), | |
10380 | # -berok will link without error, but may produce a broken library. | |
7083c021 AC |
10381 | allow_undefined_flag='-berok' |
10382 | # Determine the default libpath from the value encoded in an | |
10383 | # empty executable. | |
b6d0720c AC |
10384 | if test "${lt_cv_aix_libpath+set}" = set; then |
10385 | aix_libpath=$lt_cv_aix_libpath | |
10386 | else | |
10387 | if ${lt_cv_aix_libpath_+:} false; then : | |
10388 | $as_echo_n "(cached) " >&6 | |
10389 | else | |
10390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
10391 | /* end confdefs.h. */ |
10392 | ||
10393 | int | |
10394 | main () | |
10395 | { | |
10396 | ||
10397 | ; | |
10398 | return 0; | |
10399 | } | |
10400 | _ACEOF | |
7083c021 | 10401 | if ac_fn_c_try_link "$LINENO"; then : |
db137867 | 10402 | |
b6d0720c AC |
10403 | lt_aix_libpath_sed=' |
10404 | /Import File Strings/,/^$/ { | |
10405 | /^0/ { | |
10406 | s/^0 *\([^ ]*\) *$/\1/ | |
10407 | p | |
10408 | } | |
10409 | }' | |
10410 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10411 | # Check for a 64-bit object if we didn't find anything. | |
10412 | if test -z "$lt_cv_aix_libpath_"; then | |
10413 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10414 | fi | |
db137867 | 10415 | fi |
7083c021 AC |
10416 | rm -f core conftest.err conftest.$ac_objext \ |
10417 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
10418 | if test -z "$lt_cv_aix_libpath_"; then |
10419 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10420 | fi | |
10421 | ||
10422 | fi | |
10423 | ||
10424 | aix_libpath=$lt_cv_aix_libpath_ | |
10425 | fi | |
db137867 | 10426 | |
7083c021 | 10427 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
b6d0720c | 10428 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7083c021 | 10429 | else |
db137867 | 10430 | if test "$host_cpu" = ia64; then |
7083c021 AC |
10431 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
10432 | allow_undefined_flag="-z nodefs" | |
10433 | 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 | 10434 | else |
7083c021 AC |
10435 | # Determine the default libpath from the value encoded in an |
10436 | # empty executable. | |
b6d0720c AC |
10437 | if test "${lt_cv_aix_libpath+set}" = set; then |
10438 | aix_libpath=$lt_cv_aix_libpath | |
10439 | else | |
10440 | if ${lt_cv_aix_libpath_+:} false; then : | |
10441 | $as_echo_n "(cached) " >&6 | |
10442 | else | |
10443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
10444 | /* end confdefs.h. */ |
10445 | ||
10446 | int | |
10447 | main () | |
10448 | { | |
10449 | ||
10450 | ; | |
10451 | return 0; | |
10452 | } | |
10453 | _ACEOF | |
7083c021 | 10454 | if ac_fn_c_try_link "$LINENO"; then : |
db137867 | 10455 | |
b6d0720c AC |
10456 | lt_aix_libpath_sed=' |
10457 | /Import File Strings/,/^$/ { | |
10458 | /^0/ { | |
10459 | s/^0 *\([^ ]*\) *$/\1/ | |
10460 | p | |
10461 | } | |
10462 | }' | |
10463 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10464 | # Check for a 64-bit object if we didn't find anything. | |
10465 | if test -z "$lt_cv_aix_libpath_"; then | |
10466 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10467 | fi | |
db137867 | 10468 | fi |
7083c021 AC |
10469 | rm -f core conftest.err conftest.$ac_objext \ |
10470 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
10471 | if test -z "$lt_cv_aix_libpath_"; then |
10472 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10473 | fi | |
10474 | ||
10475 | fi | |
10476 | ||
10477 | aix_libpath=$lt_cv_aix_libpath_ | |
10478 | fi | |
db137867 | 10479 | |
7083c021 | 10480 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
db137867 AC |
10481 | # Warning - without using the other run time loading flags, |
10482 | # -berok will link without error, but may produce a broken library. | |
7083c021 AC |
10483 | no_undefined_flag=' ${wl}-bernotok' |
10484 | allow_undefined_flag=' ${wl}-berok' | |
b6d0720c AC |
10485 | if test "$with_gnu_ld" = yes; then |
10486 | # We only use this code for GNU lds that support --whole-archive. | |
10487 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10488 | else | |
10489 | # Exported symbols can be pulled into shared objects from archives | |
10490 | whole_archive_flag_spec='$convenience' | |
10491 | fi | |
7083c021 | 10492 | archive_cmds_need_lc=yes |
db137867 | 10493 | # This is similar to how AIX traditionally builds its shared libraries. |
7083c021 | 10494 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
db137867 AC |
10495 | fi |
10496 | fi | |
10497 | ;; | |
10498 | ||
10499 | amigaos*) | |
7083c021 AC |
10500 | case $host_cpu in |
10501 | powerpc) | |
10502 | # see comment about AmigaOS4 .so support | |
10503 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10504 | archive_expsym_cmds='' | |
10505 | ;; | |
10506 | m68k) | |
10507 | 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)' | |
10508 | hardcode_libdir_flag_spec='-L$libdir' | |
10509 | hardcode_minus_L=yes | |
10510 | ;; | |
10511 | esac | |
db137867 AC |
10512 | ;; |
10513 | ||
10514 | bsdi[45]*) | |
7083c021 | 10515 | export_dynamic_flag_spec=-rdynamic |
db137867 AC |
10516 | ;; |
10517 | ||
7083c021 | 10518 | cygwin* | mingw* | pw32* | cegcc*) |
db137867 AC |
10519 | # When not using gcc, we currently assume that we are using |
10520 | # Microsoft Visual C++. | |
10521 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10522 | # no search path for DLLs. | |
b6d0720c AC |
10523 | case $cc_basename in |
10524 | cl*) | |
10525 | # Native MSVC | |
10526 | hardcode_libdir_flag_spec=' ' | |
10527 | allow_undefined_flag=unsupported | |
10528 | always_export_symbols=yes | |
10529 | file_list_spec='@' | |
10530 | # Tell ltmain to make .lib files, not .a files. | |
10531 | libext=lib | |
10532 | # Tell ltmain to make .dll files, not .so files. | |
10533 | shrext_cmds=".dll" | |
10534 | # FIXME: Setting linknames here is a bad hack. | |
10535 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10536 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10537 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10538 | else | |
10539 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10540 | fi~ | |
10541 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10542 | linknames=' | |
10543 | # The linker will not automatically build a static lib if we build a DLL. | |
10544 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10545 | enable_shared_with_static_runtimes=yes | |
a949ab1a | 10546 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
b6d0720c AC |
10547 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
10548 | # Don't use ranlib | |
10549 | old_postinstall_cmds='chmod 644 $oldlib' | |
10550 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10551 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10552 | case $lt_outputfile in | |
10553 | *.exe|*.EXE) ;; | |
10554 | *) | |
10555 | lt_outputfile="$lt_outputfile.exe" | |
10556 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10557 | ;; | |
10558 | esac~ | |
10559 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10560 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10561 | $RM "$lt_outputfile.manifest"; | |
10562 | fi' | |
10563 | ;; | |
10564 | *) | |
10565 | # Assume MSVC wrapper | |
10566 | hardcode_libdir_flag_spec=' ' | |
10567 | allow_undefined_flag=unsupported | |
10568 | # Tell ltmain to make .lib files, not .a files. | |
10569 | libext=lib | |
10570 | # Tell ltmain to make .dll files, not .so files. | |
10571 | shrext_cmds=".dll" | |
10572 | # FIXME: Setting linknames here is a bad hack. | |
10573 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10574 | # The linker will automatically build a .lib file if we build a DLL. | |
10575 | old_archive_from_new_cmds='true' | |
10576 | # FIXME: Should let the user specify the lib program. | |
10577 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10578 | enable_shared_with_static_runtimes=yes | |
10579 | ;; | |
10580 | esac | |
db137867 AC |
10581 | ;; |
10582 | ||
7083c021 AC |
10583 | darwin* | rhapsody*) |
10584 | ||
10585 | ||
10586 | archive_cmds_need_lc=no | |
10587 | hardcode_direct=no | |
10588 | hardcode_automatic=yes | |
10589 | hardcode_shlibpath_var=unsupported | |
b6d0720c AC |
10590 | if test "$lt_cv_ld_force_load" = "yes"; then |
10591 | 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 | 10592 | |
b6d0720c AC |
10593 | else |
10594 | whole_archive_flag_spec='' | |
10595 | fi | |
7083c021 AC |
10596 | link_all_deplibs=yes |
10597 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10598 | case $cc_basename in | |
10599 | ifort*) _lt_dar_can_shared=yes ;; | |
10600 | *) _lt_dar_can_shared=$GCC ;; | |
10601 | esac | |
10602 | if test "$_lt_dar_can_shared" = "yes"; then | |
b6d0720c | 10603 | output_verbose_link_cmd=func_echo_all |
7083c021 AC |
10604 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10605 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10606 | 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}" | |
10607 | 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}" | |
10608 | ||
10609 | else | |
10610 | ld_shlibs=no | |
10611 | fi | |
10612 | ||
db137867 AC |
10613 | ;; |
10614 | ||
10615 | dgux*) | |
7083c021 AC |
10616 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10617 | hardcode_libdir_flag_spec='-L$libdir' | |
10618 | hardcode_shlibpath_var=no | |
db137867 AC |
10619 | ;; |
10620 | ||
db137867 AC |
10621 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10622 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10623 | # does not break anything, and helps significantly (at the cost of a little | |
10624 | # extra space). | |
10625 | freebsd2.2*) | |
7083c021 AC |
10626 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
10627 | hardcode_libdir_flag_spec='-R$libdir' | |
10628 | hardcode_direct=yes | |
10629 | hardcode_shlibpath_var=no | |
db137867 AC |
10630 | ;; |
10631 | ||
10632 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
a949ab1a | 10633 | freebsd2.*) |
7083c021 AC |
10634 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10635 | hardcode_direct=yes | |
10636 | hardcode_minus_L=yes | |
10637 | hardcode_shlibpath_var=no | |
db137867 AC |
10638 | ;; |
10639 | ||
10640 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10641 | freebsd* | dragonfly*) | |
b6d0720c | 10642 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7083c021 AC |
10643 | hardcode_libdir_flag_spec='-R$libdir' |
10644 | hardcode_direct=yes | |
10645 | hardcode_shlibpath_var=no | |
db137867 AC |
10646 | ;; |
10647 | ||
10648 | hpux9*) | |
10649 | if test "$GCC" = yes; then | |
b6d0720c | 10650 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
db137867 | 10651 | else |
7083c021 | 10652 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
db137867 | 10653 | fi |
7083c021 AC |
10654 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
10655 | hardcode_libdir_separator=: | |
10656 | hardcode_direct=yes | |
db137867 AC |
10657 | |
10658 | # hardcode_minus_L: Not really in the search PATH, | |
10659 | # but as the default location of the library. | |
7083c021 AC |
10660 | hardcode_minus_L=yes |
10661 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10662 | ;; |
10663 | ||
10664 | hpux10*) | |
b6d0720c AC |
10665 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
10666 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 10667 | else |
7083c021 | 10668 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
db137867 AC |
10669 | fi |
10670 | if test "$with_gnu_ld" = no; then | |
7083c021 | 10671 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7083c021 AC |
10672 | hardcode_libdir_separator=: |
10673 | hardcode_direct=yes | |
10674 | hardcode_direct_absolute=yes | |
10675 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10676 | # hardcode_minus_L: Not really in the search PATH, |
10677 | # but as the default location of the library. | |
7083c021 | 10678 | hardcode_minus_L=yes |
db137867 AC |
10679 | fi |
10680 | ;; | |
10681 | ||
10682 | hpux11*) | |
b6d0720c | 10683 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
db137867 AC |
10684 | case $host_cpu in |
10685 | hppa*64*) | |
7083c021 | 10686 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10687 | ;; |
10688 | ia64*) | |
b6d0720c | 10689 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10690 | ;; |
10691 | *) | |
b6d0720c | 10692 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10693 | ;; |
10694 | esac | |
10695 | else | |
10696 | case $host_cpu in | |
10697 | hppa*64*) | |
7083c021 | 10698 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10699 | ;; |
10700 | ia64*) | |
7083c021 | 10701 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10702 | ;; |
10703 | *) | |
b6d0720c AC |
10704 | |
10705 | # Older versions of the 11.00 compiler do not understand -b yet | |
10706 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10708 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10709 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10710 | $as_echo_n "(cached) " >&6 | |
10711 | else | |
10712 | lt_cv_prog_compiler__b=no | |
10713 | save_LDFLAGS="$LDFLAGS" | |
10714 | LDFLAGS="$LDFLAGS -b" | |
10715 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10716 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10717 | # The linker can only warn and ignore the option if not recognized | |
10718 | # So say no if there are warnings | |
10719 | if test -s conftest.err; then | |
10720 | # Append any errors to the config.log. | |
10721 | cat conftest.err 1>&5 | |
10722 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10723 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10724 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10725 | lt_cv_prog_compiler__b=yes | |
10726 | fi | |
10727 | else | |
10728 | lt_cv_prog_compiler__b=yes | |
10729 | fi | |
10730 | fi | |
10731 | $RM -r conftest* | |
10732 | LDFLAGS="$save_LDFLAGS" | |
10733 | ||
10734 | fi | |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10736 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10737 | ||
10738 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10739 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10740 | else | |
10741 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10742 | fi | |
10743 | ||
db137867 AC |
10744 | ;; |
10745 | esac | |
10746 | fi | |
10747 | if test "$with_gnu_ld" = no; then | |
7083c021 AC |
10748 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
10749 | hardcode_libdir_separator=: | |
db137867 AC |
10750 | |
10751 | case $host_cpu in | |
10752 | hppa*64*|ia64*) | |
7083c021 AC |
10753 | hardcode_direct=no |
10754 | hardcode_shlibpath_var=no | |
db137867 AC |
10755 | ;; |
10756 | *) | |
7083c021 AC |
10757 | hardcode_direct=yes |
10758 | hardcode_direct_absolute=yes | |
10759 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10760 | |
10761 | # hardcode_minus_L: Not really in the search PATH, | |
10762 | # but as the default location of the library. | |
7083c021 | 10763 | hardcode_minus_L=yes |
db137867 AC |
10764 | ;; |
10765 | esac | |
10766 | fi | |
10767 | ;; | |
10768 | ||
10769 | irix5* | irix6* | nonstopux*) | |
10770 | if test "$GCC" = yes; then | |
b6d0720c | 10771 | 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 |
10772 | # Try to use the -exported_symbol ld option, if it does not |
10773 | # work, assume that -exports_file does not work either and | |
10774 | # implicitly export all symbols. | |
b6d0720c AC |
10775 | # This should be the same for all languages, so no per-tag cache variable. |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10777 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10778 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10779 | $as_echo_n "(cached) " >&6 | |
10780 | else | |
10781 | save_LDFLAGS="$LDFLAGS" | |
10782 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 | 10784 | /* end confdefs.h. */ |
b6d0720c | 10785 | int foo (void) { return 0; } |
7083c021 AC |
10786 | _ACEOF |
10787 | if ac_fn_c_try_link "$LINENO"; then : | |
b6d0720c AC |
10788 | lt_cv_irix_exported_symbol=yes |
10789 | else | |
10790 | lt_cv_irix_exported_symbol=no | |
7083c021 AC |
10791 | fi |
10792 | rm -f core conftest.err conftest.$ac_objext \ | |
10793 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
10794 | LDFLAGS="$save_LDFLAGS" |
10795 | fi | |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10797 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10798 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10799 | 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' | |
10800 | fi | |
db137867 | 10801 | else |
b6d0720c AC |
10802 | 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' |
10803 | 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 | 10804 | fi |
7083c021 AC |
10805 | archive_cmds_need_lc='no' |
10806 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10807 | hardcode_libdir_separator=: | |
10808 | inherit_rpath=yes | |
10809 | link_all_deplibs=yes | |
db137867 AC |
10810 | ;; |
10811 | ||
96f4052b | 10812 | netbsd*) |
7083c021 AC |
10813 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10814 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
db137867 | 10815 | else |
7083c021 | 10816 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
db137867 | 10817 | fi |
7083c021 AC |
10818 | hardcode_libdir_flag_spec='-R$libdir' |
10819 | hardcode_direct=yes | |
10820 | hardcode_shlibpath_var=no | |
db137867 AC |
10821 | ;; |
10822 | ||
10823 | newsos6) | |
7083c021 AC |
10824 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10825 | hardcode_direct=yes | |
10826 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10827 | hardcode_libdir_separator=: | |
10828 | hardcode_shlibpath_var=no | |
10829 | ;; | |
10830 | ||
10831 | *nto* | *qnx*) | |
db137867 AC |
10832 | ;; |
10833 | ||
10834 | openbsd*) | |
10835 | if test -f /usr/libexec/ld.so; then | |
7083c021 AC |
10836 | hardcode_direct=yes |
10837 | hardcode_shlibpath_var=no | |
10838 | hardcode_direct_absolute=yes | |
10839 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10840 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10841 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10842 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10843 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10844 | else |
10845 | case $host_os in | |
10846 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7083c021 AC |
10847 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10848 | hardcode_libdir_flag_spec='-R$libdir' | |
db137867 AC |
10849 | ;; |
10850 | *) | |
7083c021 AC |
10851 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10852 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
db137867 AC |
10853 | ;; |
10854 | esac | |
7083c021 | 10855 | fi |
db137867 | 10856 | else |
7083c021 | 10857 | ld_shlibs=no |
db137867 AC |
10858 | fi |
10859 | ;; | |
10860 | ||
10861 | os2*) | |
7083c021 AC |
10862 | hardcode_libdir_flag_spec='-L$libdir' |
10863 | hardcode_minus_L=yes | |
10864 | allow_undefined_flag=unsupported | |
b6d0720c | 10865 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
7083c021 | 10866 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
db137867 AC |
10867 | ;; |
10868 | ||
10869 | osf3*) | |
10870 | if test "$GCC" = yes; then | |
7083c021 | 10871 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
b6d0720c | 10872 | 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 | 10873 | else |
7083c021 | 10874 | allow_undefined_flag=' -expect_unresolved \*' |
b6d0720c | 10875 | 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 | 10876 | fi |
7083c021 AC |
10877 | archive_cmds_need_lc='no' |
10878 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10879 | hardcode_libdir_separator=: | |
db137867 AC |
10880 | ;; |
10881 | ||
10882 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10883 | if test "$GCC" = yes; then | |
7083c021 | 10884 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
b6d0720c | 10885 | 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' |
7083c021 | 10886 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
db137867 | 10887 | else |
7083c021 | 10888 | allow_undefined_flag=' -expect_unresolved \*' |
b6d0720c | 10889 | 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 | 10890 | 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~ |
b6d0720c | 10891 | $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 |
10892 | |
10893 | # Both c and cxx compiler support -rpath directly | |
7083c021 | 10894 | hardcode_libdir_flag_spec='-rpath $libdir' |
db137867 | 10895 | fi |
7083c021 AC |
10896 | archive_cmds_need_lc='no' |
10897 | hardcode_libdir_separator=: | |
db137867 AC |
10898 | ;; |
10899 | ||
10900 | solaris*) | |
7083c021 | 10901 | no_undefined_flag=' -z defs' |
db137867 AC |
10902 | if test "$GCC" = yes; then |
10903 | wlarc='${wl}' | |
b6d0720c | 10904 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7083c021 | 10905 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
b6d0720c | 10906 | $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 | 10907 | else |
7083c021 AC |
10908 | case `$CC -V 2>&1` in |
10909 | *"Compilers 5.0"*) | |
10910 | wlarc='' | |
10911 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10912 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10913 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10914 | ;; | |
10915 | *) | |
10916 | wlarc='${wl}' | |
10917 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10918 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10919 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10920 | ;; | |
10921 | esac | |
db137867 | 10922 | fi |
7083c021 AC |
10923 | hardcode_libdir_flag_spec='-R$libdir' |
10924 | hardcode_shlibpath_var=no | |
db137867 AC |
10925 | case $host_os in |
10926 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10927 | *) | |
10928 | # The compiler driver will combine and reorder linker options, | |
10929 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10930 | # but is careful enough not to reorder. | |
7083c021 | 10931 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
db137867 | 10932 | if test "$GCC" = yes; then |
7083c021 | 10933 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
db137867 | 10934 | else |
7083c021 | 10935 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
db137867 AC |
10936 | fi |
10937 | ;; | |
10938 | esac | |
7083c021 | 10939 | link_all_deplibs=yes |
db137867 AC |
10940 | ;; |
10941 | ||
10942 | sunos4*) | |
10943 | if test "x$host_vendor" = xsequent; then | |
10944 | # Use $CC to link under sequent, because it throws in some extra .o | |
10945 | # files that make .init and .fini sections work. | |
7083c021 | 10946 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 | 10947 | else |
7083c021 | 10948 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 10949 | fi |
7083c021 AC |
10950 | hardcode_libdir_flag_spec='-L$libdir' |
10951 | hardcode_direct=yes | |
10952 | hardcode_minus_L=yes | |
10953 | hardcode_shlibpath_var=no | |
db137867 AC |
10954 | ;; |
10955 | ||
10956 | sysv4) | |
10957 | case $host_vendor in | |
10958 | sni) | |
7083c021 AC |
10959 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10960 | hardcode_direct=yes # is this really true??? | |
db137867 AC |
10961 | ;; |
10962 | siemens) | |
10963 | ## LD is ld it makes a PLAMLIB | |
10964 | ## CC just makes a GrossModule. | |
7083c021 AC |
10965 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10966 | reload_cmds='$CC -r -o $output$reload_objs' | |
10967 | hardcode_direct=no | |
db137867 AC |
10968 | ;; |
10969 | motorola) | |
7083c021 AC |
10970 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10971 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
db137867 AC |
10972 | ;; |
10973 | esac | |
10974 | runpath_var='LD_RUN_PATH' | |
7083c021 | 10975 | hardcode_shlibpath_var=no |
db137867 AC |
10976 | ;; |
10977 | ||
10978 | sysv4.3*) | |
7083c021 AC |
10979 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10980 | hardcode_shlibpath_var=no | |
10981 | export_dynamic_flag_spec='-Bexport' | |
db137867 AC |
10982 | ;; |
10983 | ||
10984 | sysv4*MP*) | |
10985 | if test -d /usr/nec; then | |
7083c021 AC |
10986 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10987 | hardcode_shlibpath_var=no | |
db137867 AC |
10988 | runpath_var=LD_RUN_PATH |
10989 | hardcode_runpath_var=yes | |
7083c021 | 10990 | ld_shlibs=yes |
db137867 AC |
10991 | fi |
10992 | ;; | |
10993 | ||
10994 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
7083c021 AC |
10995 | no_undefined_flag='${wl}-z,text' |
10996 | archive_cmds_need_lc=no | |
10997 | hardcode_shlibpath_var=no | |
db137867 AC |
10998 | runpath_var='LD_RUN_PATH' |
10999 | ||
11000 | if test "$GCC" = yes; then | |
7083c021 AC |
11001 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11002 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 11003 | else |
7083c021 AC |
11004 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11005 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 AC |
11006 | fi |
11007 | ;; | |
11008 | ||
11009 | sysv5* | sco3.2v5* | sco5v6*) | |
11010 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11011 | # link with -lc, and that would cause any symbols used from libc to | |
11012 | # always be unresolved, which means just about no library would | |
11013 | # ever link correctly. If we're not using GNU ld we use -z text | |
11014 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11015 | # as -z defs. | |
7083c021 AC |
11016 | no_undefined_flag='${wl}-z,text' |
11017 | allow_undefined_flag='${wl}-z,nodefs' | |
11018 | archive_cmds_need_lc=no | |
11019 | hardcode_shlibpath_var=no | |
11020 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11021 | hardcode_libdir_separator=':' | |
11022 | link_all_deplibs=yes | |
11023 | export_dynamic_flag_spec='${wl}-Bexport' | |
db137867 AC |
11024 | runpath_var='LD_RUN_PATH' |
11025 | ||
11026 | if test "$GCC" = yes; then | |
7083c021 AC |
11027 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11028 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 11029 | else |
7083c021 AC |
11030 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11031 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 AC |
11032 | fi |
11033 | ;; | |
11034 | ||
11035 | uts4*) | |
7083c021 AC |
11036 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
11037 | hardcode_libdir_flag_spec='-L$libdir' | |
11038 | hardcode_shlibpath_var=no | |
db137867 AC |
11039 | ;; |
11040 | ||
11041 | *) | |
7083c021 | 11042 | ld_shlibs=no |
db137867 AC |
11043 | ;; |
11044 | esac | |
7083c021 AC |
11045 | |
11046 | if test x$host_vendor = xsni; then | |
11047 | case $host in | |
11048 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11049 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11050 | ;; | |
11051 | esac | |
11052 | fi | |
db137867 AC |
11053 | fi |
11054 | ||
7083c021 AC |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11056 | $as_echo "$ld_shlibs" >&6; } | |
11057 | test "$ld_shlibs" = no && can_build_shared=no | |
11058 | ||
11059 | with_gnu_ld=$with_gnu_ld | |
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
db137867 AC |
11074 | |
11075 | # | |
11076 | # Do we need to explicitly link libc? | |
11077 | # | |
7083c021 | 11078 | case "x$archive_cmds_need_lc" in |
db137867 AC |
11079 | x|xyes) |
11080 | # Assume -lc should be added | |
7083c021 | 11081 | archive_cmds_need_lc=yes |
db137867 AC |
11082 | |
11083 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7083c021 | 11084 | case $archive_cmds in |
db137867 AC |
11085 | *'~'*) |
11086 | # FIXME: we may have to deal with multi-command sequences. | |
11087 | ;; | |
11088 | '$CC '*) | |
11089 | # Test whether the compiler implicitly links with -lc since on some | |
11090 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11091 | # to ld, don't add -lc before -lgcc. | |
7083c021 | 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
030272f3 | 11093 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b6d0720c AC |
11094 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
11095 | $as_echo_n "(cached) " >&6 | |
11096 | else | |
11097 | $RM conftest* | |
11098 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 11099 | |
b6d0720c | 11100 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
db137867 AC |
11101 | (eval $ac_compile) 2>&5 |
11102 | ac_status=$? | |
7083c021 AC |
11103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11104 | test $ac_status = 0; } 2>conftest.err; then | |
b6d0720c AC |
11105 | soname=conftest |
11106 | lib=conftest | |
11107 | libobjs=conftest.$ac_objext | |
11108 | deplibs= | |
11109 | wl=$lt_prog_compiler_wl | |
11110 | pic_flag=$lt_prog_compiler_pic | |
11111 | compiler_flags=-v | |
11112 | linker_flags=-v | |
11113 | verstring= | |
11114 | output_objdir=. | |
11115 | libname=conftest | |
11116 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11117 | allow_undefined_flag= | |
11118 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
7083c021 | 11119 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
db137867 | 11120 | ac_status=$? |
7083c021 AC |
11121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11122 | test $ac_status = 0; } | |
b6d0720c AC |
11123 | then |
11124 | lt_cv_archive_cmds_need_lc=no | |
11125 | else | |
11126 | lt_cv_archive_cmds_need_lc=yes | |
11127 | fi | |
11128 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11129 | else | |
11130 | cat conftest.err 1>&5 | |
11131 | fi | |
11132 | $RM conftest* | |
11133 | ||
11134 | fi | |
11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11136 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11137 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
db137867 AC |
11138 | ;; |
11139 | esac | |
11140 | fi | |
11141 | ;; | |
11142 | esac | |
11143 | ||
db137867 | 11144 | |
db137867 | 11145 | |
db137867 | 11146 | |
db137867 | 11147 | |
db137867 | 11148 | |
db137867 | 11149 | |
db137867 | 11150 | |
db137867 | 11151 | |
db137867 | 11152 | |
db137867 | 11153 | |
db137867 | 11154 | |
db137867 | 11155 | |
db137867 | 11156 | |
db137867 | 11157 | |
db137867 | 11158 | |
db137867 | 11159 | |
db137867 | 11160 | |
db137867 | 11161 | |
db137867 | 11162 | |
db137867 | 11163 | |
db137867 | 11164 | |
db137867 | 11165 | |
db137867 | 11166 | |
db137867 | 11167 | |
db137867 | 11168 | |
db137867 | 11169 | |
db137867 | 11170 | |
db137867 | 11171 | |
db137867 | 11172 | |
db137867 | 11173 | |
db137867 | 11174 | |
db137867 | 11175 | |
db137867 | 11176 | |
db137867 | 11177 | |
db137867 | 11178 | |
db137867 | 11179 | |
db137867 | 11180 | |
db137867 | 11181 | |
db137867 | 11182 | |
db137867 | 11183 | |
db137867 | 11184 | |
b676ea3b | 11185 | |
b676ea3b | 11186 | |
b676ea3b | 11187 | |
db137867 | 11188 | |
db137867 | 11189 | |
db137867 | 11190 | |
db137867 AC |
11191 | |
11192 | ||
db137867 | 11193 | |
db137867 | 11194 | |
db137867 | 11195 | |
db137867 | 11196 | |
db137867 | 11197 | |
db137867 | 11198 | |
db137867 | 11199 | |
db137867 | 11200 | |
db137867 | 11201 | |
db137867 | 11202 | |
db137867 | 11203 | |
db137867 | 11204 | |
db137867 | 11205 | |
db137867 | 11206 | |
db137867 | 11207 | |
db137867 | 11208 | |
db137867 | 11209 | |
db137867 | 11210 | |
db137867 | 11211 | |
db137867 | 11212 | |
db137867 | 11213 | |
db137867 | 11214 | |
db137867 | 11215 | |
db137867 | 11216 | |
db137867 | 11217 | |
db137867 | 11218 | |
db137867 | 11219 | |
db137867 | 11220 | |
db137867 | 11221 | |
db137867 | 11222 | |
db137867 | 11223 | |
db137867 | 11224 | |
db137867 | 11225 | |
db137867 | 11226 | |
db137867 | 11227 | |
db137867 | 11228 | |
db137867 | 11229 | |
db137867 | 11230 | |
db137867 | 11231 | |
db137867 | 11232 | |
db137867 | 11233 | |
db137867 | 11234 | |
db137867 | 11235 | |
db137867 | 11236 | |
db137867 | 11237 | |
db137867 | 11238 | |
db137867 | 11239 | |
db137867 | 11240 | |
db137867 | 11241 | |
db137867 | 11242 | |
db137867 | 11243 | |
db137867 | 11244 | |
db137867 | 11245 | |
db137867 | 11246 | |
db137867 | 11247 | |
db137867 | 11248 | |
db137867 | 11249 | |
db137867 | 11250 | |
db137867 | 11251 | |
db137867 | 11252 | |
db137867 | 11253 | |
db137867 | 11254 | |
db137867 | 11255 | |
b676ea3b | 11256 | |
db137867 | 11257 | |
db137867 | 11258 | |
db137867 | 11259 | |
db137867 | 11260 | |
db137867 | 11261 | |
db137867 | 11262 | |
db137867 | 11263 | |
db137867 | 11264 | |
db137867 | 11265 | |
db137867 | 11266 | |
db137867 | 11267 | |
db137867 | 11268 | |
db137867 | 11269 | |
db137867 | 11270 | |
db137867 | 11271 | |
db137867 | 11272 | |
db137867 | 11273 | |
db137867 | 11274 | |
db137867 | 11275 | |
db137867 | 11276 | |
db137867 | 11277 | |
db137867 | 11278 | |
db137867 | 11279 | |
db137867 | 11280 | |
db137867 | 11281 | |
db137867 | 11282 | |
db137867 | 11283 | |
db137867 | 11284 | |
db137867 | 11285 | |
db137867 | 11286 | |
db137867 | 11287 | |
db137867 | 11288 | |
7083c021 AC |
11289 | |
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11296 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11297 | ||
11298 | if test "$GCC" = yes; then | |
11299 | case $host_os in | |
11300 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11301 | *) lt_awk_arg="/^libraries:/" ;; | |
11302 | esac | |
b6d0720c AC |
11303 | case $host_os in |
11304 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11305 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11306 | esac | |
11307 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11308 | case $lt_search_path_spec in | |
11309 | *\;*) | |
7083c021 AC |
11310 | # if the path contains ";" then we assume it to be the separator |
11311 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11312 | # assumed that no part of a normal pathname contains ";" but that should | |
11313 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b6d0720c AC |
11314 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11315 | ;; | |
11316 | *) | |
11317 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11318 | ;; | |
11319 | esac | |
7083c021 AC |
11320 | # Ok, now we have the path, separated by spaces, we can step through it |
11321 | # and add multilib dir if necessary. | |
11322 | lt_tmp_lt_search_path_spec= | |
11323 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11324 | for lt_sys_path in $lt_search_path_spec; do | |
11325 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11326 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11327 | else | |
11328 | test -d "$lt_sys_path" && \ | |
11329 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11330 | fi | |
11331 | done | |
b6d0720c | 11332 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
7083c021 AC |
11333 | BEGIN {RS=" "; FS="/|\n";} { |
11334 | lt_foo=""; | |
11335 | lt_count=0; | |
11336 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11337 | if ($lt_i != "" && $lt_i != ".") { | |
11338 | if ($lt_i == "..") { | |
11339 | lt_count++; | |
11340 | } else { | |
11341 | if (lt_count == 0) { | |
11342 | lt_foo="/" $lt_i lt_foo; | |
11343 | } else { | |
11344 | lt_count--; | |
11345 | } | |
11346 | } | |
11347 | } | |
11348 | } | |
11349 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11350 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11351 | }'` | |
b6d0720c AC |
11352 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11353 | # for these hosts. | |
11354 | case $host_os in | |
11355 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11356 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11357 | esac | |
11358 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
7083c021 AC |
11359 | else |
11360 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11361 | fi | |
11362 | library_names_spec= | |
11363 | libname_spec='lib$name' | |
11364 | soname_spec= | |
11365 | shrext_cmds=".so" | |
11366 | postinstall_cmds= | |
11367 | postuninstall_cmds= | |
11368 | finish_cmds= | |
11369 | finish_eval= | |
11370 | shlibpath_var= | |
11371 | shlibpath_overrides_runpath=unknown | |
11372 | version_type=none | |
11373 | dynamic_linker="$host_os ld.so" | |
11374 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11375 | need_lib_prefix=unknown | |
11376 | hardcode_into_libs=no | |
11377 | ||
11378 | # when you set need_version to no, make sure it does not cause -set_version | |
11379 | # flags to be left without arguments | |
11380 | need_version=unknown | |
11381 | ||
11382 | case $host_os in | |
11383 | aix3*) | |
a949ab1a | 11384 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11385 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11386 | shlibpath_var=LIBPATH | |
11387 | ||
11388 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11389 | soname_spec='${libname}${release}${shared_ext}$major' | |
11390 | ;; | |
11391 | ||
11392 | aix[4-9]*) | |
a949ab1a | 11393 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11394 | need_lib_prefix=no |
11395 | need_version=no | |
11396 | hardcode_into_libs=yes | |
11397 | if test "$host_cpu" = ia64; then | |
11398 | # AIX 5 supports IA64 | |
11399 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11400 | shlibpath_var=LD_LIBRARY_PATH | |
11401 | else | |
11402 | # With GCC up to 2.95.x, collect2 would create an import file | |
11403 | # for dependence libraries. The import file would start with | |
11404 | # the line `#! .'. This would cause the generated library to | |
11405 | # depend on `.', always an invalid library. This was fixed in | |
11406 | # development snapshots of GCC prior to 3.0. | |
11407 | case $host_os in | |
11408 | aix4 | aix4.[01] | aix4.[01].*) | |
11409 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11410 | echo ' yes ' | |
11411 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11412 | : | |
11413 | else | |
11414 | can_build_shared=no | |
11415 | fi | |
11416 | ;; | |
11417 | esac | |
11418 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11419 | # soname into executable. Probably we can add versioning support to | |
11420 | # collect2, so additional links can be useful in future. | |
11421 | if test "$aix_use_runtimelinking" = yes; then | |
11422 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11423 | # instead of lib<name>.a to let people know that these are not | |
11424 | # typical AIX shared libraries. | |
11425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11426 | else | |
11427 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11428 | # and later when we are not doing run time linking. | |
11429 | library_names_spec='${libname}${release}.a $libname.a' | |
11430 | soname_spec='${libname}${release}${shared_ext}$major' | |
11431 | fi | |
11432 | shlibpath_var=LIBPATH | |
11433 | fi | |
11434 | ;; | |
11435 | ||
11436 | amigaos*) | |
11437 | case $host_cpu in | |
11438 | powerpc) | |
11439 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11440 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11442 | ;; | |
11443 | m68k) | |
11444 | library_names_spec='$libname.ixlibrary $libname.a' | |
11445 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
b6d0720c | 11446 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
7083c021 AC |
11447 | ;; |
11448 | esac | |
11449 | ;; | |
11450 | ||
11451 | beos*) | |
11452 | library_names_spec='${libname}${shared_ext}' | |
11453 | dynamic_linker="$host_os ld.so" | |
11454 | shlibpath_var=LIBRARY_PATH | |
11455 | ;; | |
11456 | ||
11457 | bsdi[45]*) | |
a949ab1a | 11458 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11459 | need_version=no |
11460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11461 | soname_spec='${libname}${release}${shared_ext}$major' | |
11462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11463 | shlibpath_var=LD_LIBRARY_PATH | |
11464 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11465 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11466 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11467 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11468 | # libtool to hard-code these into programs | |
11469 | ;; | |
11470 | ||
11471 | cygwin* | mingw* | pw32* | cegcc*) | |
11472 | version_type=windows | |
11473 | shrext_cmds=".dll" | |
11474 | need_version=no | |
11475 | need_lib_prefix=no | |
11476 | ||
b6d0720c AC |
11477 | case $GCC,$cc_basename in |
11478 | yes,*) | |
11479 | # gcc | |
7083c021 AC |
11480 | library_names_spec='$libname.dll.a' |
11481 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11482 | postinstall_cmds='base_file=`basename \${file}`~ | |
11483 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11484 | dldir=$destdir/`dirname \$dlpath`~ | |
11485 | test -d \$dldir || mkdir -p \$dldir~ | |
11486 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11487 | chmod a+x \$dldir/$dlname~ | |
11488 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11489 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11490 | fi' | |
11491 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11492 | dlpath=$dir/\$dldll~ | |
11493 | $RM \$dlpath' | |
11494 | shlibpath_overrides_runpath=yes | |
11495 | ||
11496 | case $host_os in | |
11497 | cygwin*) | |
11498 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11499 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
b6d0720c AC |
11500 | |
11501 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
7083c021 AC |
11502 | ;; |
11503 | mingw* | cegcc*) | |
11504 | # MinGW DLLs use traditional 'lib' prefix | |
11505 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7083c021 AC |
11506 | ;; |
11507 | pw32*) | |
11508 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11509 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11510 | ;; | |
11511 | esac | |
b6d0720c AC |
11512 | dynamic_linker='Win32 ld.exe' |
11513 | ;; | |
11514 | ||
11515 | *,cl*) | |
11516 | # Native MSVC | |
11517 | libname_spec='$name' | |
11518 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11519 | library_names_spec='${libname}.dll.lib' | |
11520 | ||
11521 | case $build_os in | |
11522 | mingw*) | |
11523 | sys_lib_search_path_spec= | |
11524 | lt_save_ifs=$IFS | |
11525 | IFS=';' | |
11526 | for lt_path in $LIB | |
11527 | do | |
11528 | IFS=$lt_save_ifs | |
11529 | # Let DOS variable expansion print the short 8.3 style file name. | |
11530 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11531 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11532 | done | |
11533 | IFS=$lt_save_ifs | |
11534 | # Convert to MSYS style. | |
11535 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11536 | ;; | |
11537 | cygwin*) | |
11538 | # Convert to unix form, then to dos form, then back to unix form | |
11539 | # but this time dos style (no spaces!) so that the unix form looks | |
11540 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11541 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11542 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11543 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11544 | ;; | |
11545 | *) | |
11546 | sys_lib_search_path_spec="$LIB" | |
11547 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11548 | # It is most probably a Windows format PATH. | |
11549 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11550 | else | |
11551 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11552 | fi | |
11553 | # FIXME: find the short name or the path components, as spaces are | |
11554 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11555 | ;; | |
11556 | esac | |
11557 | ||
11558 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11559 | postinstall_cmds='base_file=`basename \${file}`~ | |
11560 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11561 | dldir=$destdir/`dirname \$dlpath`~ | |
11562 | test -d \$dldir || mkdir -p \$dldir~ | |
11563 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11564 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11565 | dlpath=$dir/\$dldll~ | |
11566 | $RM \$dlpath' | |
11567 | shlibpath_overrides_runpath=yes | |
11568 | dynamic_linker='Win32 link.exe' | |
7083c021 AC |
11569 | ;; |
11570 | ||
11571 | *) | |
b6d0720c | 11572 | # Assume MSVC wrapper |
7083c021 | 11573 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
b6d0720c | 11574 | dynamic_linker='Win32 ld.exe' |
7083c021 AC |
11575 | ;; |
11576 | esac | |
7083c021 AC |
11577 | # FIXME: first we should search . and the directory the executable is in |
11578 | shlibpath_var=PATH | |
11579 | ;; | |
11580 | ||
11581 | darwin* | rhapsody*) | |
11582 | dynamic_linker="$host_os dyld" | |
11583 | version_type=darwin | |
11584 | need_lib_prefix=no | |
11585 | need_version=no | |
11586 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11587 | soname_spec='${libname}${release}${major}$shared_ext' | |
11588 | shlibpath_overrides_runpath=yes | |
11589 | shlibpath_var=DYLD_LIBRARY_PATH | |
11590 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11591 | ||
11592 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11593 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11594 | ;; | |
11595 | ||
11596 | dgux*) | |
a949ab1a | 11597 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11598 | need_lib_prefix=no |
11599 | need_version=no | |
11600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11601 | soname_spec='${libname}${release}${shared_ext}$major' | |
11602 | shlibpath_var=LD_LIBRARY_PATH | |
11603 | ;; | |
11604 | ||
7083c021 AC |
11605 | freebsd* | dragonfly*) |
11606 | # DragonFly does not have aout. When/if they implement a new | |
11607 | # versioning mechanism, adjust this. | |
11608 | if test -x /usr/bin/objformat; then | |
11609 | objformat=`/usr/bin/objformat` | |
11610 | else | |
11611 | case $host_os in | |
a949ab1a | 11612 | freebsd[23].*) objformat=aout ;; |
7083c021 AC |
11613 | *) objformat=elf ;; |
11614 | esac | |
db137867 | 11615 | fi |
5a241f54 | 11616 | version_type=freebsd-$objformat |
7083c021 AC |
11617 | case $version_type in |
11618 | freebsd-elf*) | |
11619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11620 | need_version=no | |
11621 | need_lib_prefix=no | |
11622 | ;; | |
11623 | freebsd-*) | |
11624 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11625 | need_version=yes | |
11626 | ;; | |
11627 | esac | |
11628 | shlibpath_var=LD_LIBRARY_PATH | |
11629 | case $host_os in | |
a949ab1a | 11630 | freebsd2.*) |
7083c021 AC |
11631 | shlibpath_overrides_runpath=yes |
11632 | ;; | |
11633 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11634 | shlibpath_overrides_runpath=yes | |
11635 | hardcode_into_libs=yes | |
11636 | ;; | |
11637 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11638 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11639 | shlibpath_overrides_runpath=no | |
11640 | hardcode_into_libs=yes | |
11641 | ;; | |
11642 | *) # from 4.6 on, and DragonFly | |
11643 | shlibpath_overrides_runpath=yes | |
11644 | hardcode_into_libs=yes | |
11645 | ;; | |
11646 | esac | |
11647 | ;; | |
db137867 | 11648 | |
7083c021 | 11649 | gnu*) |
a949ab1a | 11650 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11651 | need_lib_prefix=no |
11652 | need_version=no | |
11653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11654 | soname_spec='${libname}${release}${shared_ext}$major' | |
11655 | shlibpath_var=LD_LIBRARY_PATH | |
a949ab1a | 11656 | shlibpath_overrides_runpath=no |
7083c021 AC |
11657 | hardcode_into_libs=yes |
11658 | ;; | |
db137867 | 11659 | |
b6d0720c | 11660 | haiku*) |
a949ab1a | 11661 | version_type=linux # correct to gnu/linux during the next big refactor |
b6d0720c AC |
11662 | need_lib_prefix=no |
11663 | need_version=no | |
11664 | dynamic_linker="$host_os runtime_loader" | |
11665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11666 | soname_spec='${libname}${release}${shared_ext}$major' | |
11667 | shlibpath_var=LIBRARY_PATH | |
11668 | shlibpath_overrides_runpath=yes | |
11669 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11670 | hardcode_into_libs=yes | |
11671 | ;; | |
11672 | ||
7083c021 AC |
11673 | hpux9* | hpux10* | hpux11*) |
11674 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11675 | # link against other versions. | |
11676 | version_type=sunos | |
11677 | need_lib_prefix=no | |
11678 | need_version=no | |
11679 | case $host_cpu in | |
11680 | ia64*) | |
11681 | shrext_cmds='.so' | |
11682 | hardcode_into_libs=yes | |
11683 | dynamic_linker="$host_os dld.so" | |
11684 | shlibpath_var=LD_LIBRARY_PATH | |
11685 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11687 | soname_spec='${libname}${release}${shared_ext}$major' | |
11688 | if test "X$HPUX_IA64_MODE" = X32; then | |
11689 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11690 | else | |
11691 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11692 | fi | |
11693 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11694 | ;; | |
11695 | hppa*64*) | |
11696 | shrext_cmds='.sl' | |
11697 | hardcode_into_libs=yes | |
11698 | dynamic_linker="$host_os dld.sl" | |
11699 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11700 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11702 | soname_spec='${libname}${release}${shared_ext}$major' | |
11703 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11704 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11705 | ;; | |
11706 | *) | |
11707 | shrext_cmds='.sl' | |
11708 | dynamic_linker="$host_os dld.sl" | |
11709 | shlibpath_var=SHLIB_PATH | |
11710 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11712 | soname_spec='${libname}${release}${shared_ext}$major' | |
11713 | ;; | |
11714 | esac | |
b6d0720c | 11715 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
7083c021 | 11716 | postinstall_cmds='chmod 555 $lib' |
b6d0720c AC |
11717 | # or fails outright, so override atomically: |
11718 | install_override_mode=555 | |
7083c021 | 11719 | ;; |
db137867 | 11720 | |
7083c021 | 11721 | interix[3-9]*) |
a949ab1a | 11722 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11723 | need_lib_prefix=no |
11724 | need_version=no | |
11725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11726 | soname_spec='${libname}${release}${shared_ext}$major' | |
11727 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11728 | shlibpath_var=LD_LIBRARY_PATH | |
11729 | shlibpath_overrides_runpath=no | |
11730 | hardcode_into_libs=yes | |
11731 | ;; | |
db137867 | 11732 | |
7083c021 AC |
11733 | irix5* | irix6* | nonstopux*) |
11734 | case $host_os in | |
11735 | nonstopux*) version_type=nonstopux ;; | |
11736 | *) | |
11737 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
a949ab1a | 11738 | version_type=linux # correct to gnu/linux during the next big refactor |
db137867 | 11739 | else |
7083c021 AC |
11740 | version_type=irix |
11741 | fi ;; | |
11742 | esac | |
11743 | need_lib_prefix=no | |
11744 | need_version=no | |
11745 | soname_spec='${libname}${release}${shared_ext}$major' | |
11746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11747 | case $host_os in | |
11748 | irix5* | nonstopux*) | |
11749 | libsuff= shlibsuff= | |
11750 | ;; | |
11751 | *) | |
11752 | case $LD in # libtool.m4 will add one of these switches to LD | |
11753 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11754 | libsuff= shlibsuff= libmagic=32-bit;; | |
11755 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11756 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11757 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11758 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11759 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11760 | esac | |
11761 | ;; | |
11762 | esac | |
11763 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11764 | shlibpath_overrides_runpath=no | |
11765 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11766 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11767 | hardcode_into_libs=yes | |
11768 | ;; | |
db137867 | 11769 | |
7083c021 AC |
11770 | # No shared lib support for Linux oldld, aout, or coff. |
11771 | linux*oldld* | linux*aout* | linux*coff*) | |
11772 | dynamic_linker=no | |
11773 | ;; | |
db137867 | 11774 | |
a949ab1a | 11775 | # This must be glibc/ELF. |
b6d0720c | 11776 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
a949ab1a | 11777 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11778 | need_lib_prefix=no |
11779 | need_version=no | |
11780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11781 | soname_spec='${libname}${release}${shared_ext}$major' | |
11782 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11783 | shlibpath_var=LD_LIBRARY_PATH | |
11784 | shlibpath_overrides_runpath=no | |
b6d0720c | 11785 | |
7083c021 | 11786 | # Some binutils ld are patched to set DT_RUNPATH |
b6d0720c AC |
11787 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11788 | $as_echo_n "(cached) " >&6 | |
11789 | else | |
11790 | lt_cv_shlibpath_overrides_runpath=no | |
11791 | save_LDFLAGS=$LDFLAGS | |
11792 | save_libdir=$libdir | |
11793 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11794 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 | 11796 | /* end confdefs.h. */ |
db137867 | 11797 | |
7083c021 AC |
11798 | int |
11799 | main () | |
11800 | { | |
db137867 | 11801 | |
7083c021 AC |
11802 | ; |
11803 | return 0; | |
11804 | } | |
11805 | _ACEOF | |
11806 | if ac_fn_c_try_link "$LINENO"; then : | |
11807 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
b6d0720c | 11808 | lt_cv_shlibpath_overrides_runpath=yes |
7083c021 AC |
11809 | fi |
11810 | fi | |
11811 | rm -f core conftest.err conftest.$ac_objext \ | |
11812 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
11813 | LDFLAGS=$save_LDFLAGS |
11814 | libdir=$save_libdir | |
11815 | ||
11816 | fi | |
11817 | ||
11818 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
db137867 | 11819 | |
7083c021 AC |
11820 | # This implies no fast_install, which is unacceptable. |
11821 | # Some rework will be needed to allow for fast_install | |
11822 | # before this can be enabled. | |
11823 | hardcode_into_libs=yes | |
db137867 | 11824 | |
7083c021 AC |
11825 | # Append ld.so.conf contents to the search path |
11826 | if test -f /etc/ld.so.conf; then | |
b6d0720c AC |
11827 | 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' ' '` |
11828 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
db137867 | 11829 | fi |
db137867 | 11830 | |
7083c021 AC |
11831 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11832 | # powerpc, because MkLinux only supported shared libraries with the | |
11833 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11834 | # most powerpc-linux boxes support dynamic linking these days and | |
11835 | # people can always --disable-shared, the test was removed, and we | |
11836 | # assume the GNU/Linux dynamic linker is in use. | |
11837 | dynamic_linker='GNU/Linux ld.so' | |
11838 | ;; | |
11839 | ||
7083c021 AC |
11840 | netbsd*) |
11841 | version_type=sunos | |
11842 | need_lib_prefix=no | |
11843 | need_version=no | |
11844 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11846 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11847 | dynamic_linker='NetBSD (a.out) ld.so' | |
11848 | else | |
11849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11850 | soname_spec='${libname}${release}${shared_ext}$major' | |
11851 | dynamic_linker='NetBSD ld.elf_so' | |
11852 | fi | |
11853 | shlibpath_var=LD_LIBRARY_PATH | |
11854 | shlibpath_overrides_runpath=yes | |
11855 | hardcode_into_libs=yes | |
11856 | ;; | |
db137867 | 11857 | |
7083c021 | 11858 | newsos6) |
a949ab1a | 11859 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11861 | shlibpath_var=LD_LIBRARY_PATH | |
11862 | shlibpath_overrides_runpath=yes | |
11863 | ;; | |
db137867 | 11864 | |
7083c021 AC |
11865 | *nto* | *qnx*) |
11866 | version_type=qnx | |
11867 | need_lib_prefix=no | |
11868 | need_version=no | |
11869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11870 | soname_spec='${libname}${release}${shared_ext}$major' | |
11871 | shlibpath_var=LD_LIBRARY_PATH | |
11872 | shlibpath_overrides_runpath=no | |
11873 | hardcode_into_libs=yes | |
11874 | dynamic_linker='ldqnx.so' | |
11875 | ;; | |
db137867 | 11876 | |
7083c021 AC |
11877 | openbsd*) |
11878 | version_type=sunos | |
11879 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11880 | need_lib_prefix=no | |
11881 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11882 | case $host_os in | |
11883 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11884 | *) need_version=no ;; | |
11885 | esac | |
11886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11887 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11888 | shlibpath_var=LD_LIBRARY_PATH | |
11889 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11890 | case $host_os in | |
11891 | openbsd2.[89] | openbsd2.[89].*) | |
11892 | shlibpath_overrides_runpath=no | |
11893 | ;; | |
11894 | *) | |
11895 | shlibpath_overrides_runpath=yes | |
11896 | ;; | |
11897 | esac | |
11898 | else | |
11899 | shlibpath_overrides_runpath=yes | |
11900 | fi | |
11901 | ;; | |
db137867 | 11902 | |
7083c021 AC |
11903 | os2*) |
11904 | libname_spec='$name' | |
11905 | shrext_cmds=".dll" | |
11906 | need_lib_prefix=no | |
11907 | library_names_spec='$libname${shared_ext} $libname.a' | |
11908 | dynamic_linker='OS/2 ld.exe' | |
11909 | shlibpath_var=LIBPATH | |
11910 | ;; | |
db137867 | 11911 | |
7083c021 AC |
11912 | osf3* | osf4* | osf5*) |
11913 | version_type=osf | |
11914 | need_lib_prefix=no | |
11915 | need_version=no | |
11916 | soname_spec='${libname}${release}${shared_ext}$major' | |
11917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11918 | shlibpath_var=LD_LIBRARY_PATH | |
11919 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11920 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11921 | ;; | |
db137867 | 11922 | |
7083c021 AC |
11923 | rdos*) |
11924 | dynamic_linker=no | |
11925 | ;; | |
db137867 | 11926 | |
7083c021 | 11927 | solaris*) |
a949ab1a | 11928 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11929 | need_lib_prefix=no |
11930 | need_version=no | |
11931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11932 | soname_spec='${libname}${release}${shared_ext}$major' | |
11933 | shlibpath_var=LD_LIBRARY_PATH | |
11934 | shlibpath_overrides_runpath=yes | |
11935 | hardcode_into_libs=yes | |
11936 | # ldd complains unless libraries are executable | |
11937 | postinstall_cmds='chmod +x $lib' | |
11938 | ;; | |
db137867 | 11939 | |
7083c021 AC |
11940 | sunos4*) |
11941 | version_type=sunos | |
11942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11943 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11944 | shlibpath_var=LD_LIBRARY_PATH | |
11945 | shlibpath_overrides_runpath=yes | |
11946 | if test "$with_gnu_ld" = yes; then | |
11947 | need_lib_prefix=no | |
11948 | fi | |
11949 | need_version=yes | |
11950 | ;; | |
db137867 | 11951 | |
7083c021 | 11952 | sysv4 | sysv4.3*) |
a949ab1a | 11953 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11955 | soname_spec='${libname}${release}${shared_ext}$major' | |
11956 | shlibpath_var=LD_LIBRARY_PATH | |
11957 | case $host_vendor in | |
11958 | sni) | |
11959 | shlibpath_overrides_runpath=no | |
11960 | need_lib_prefix=no | |
11961 | runpath_var=LD_RUN_PATH | |
11962 | ;; | |
11963 | siemens) | |
11964 | need_lib_prefix=no | |
11965 | ;; | |
11966 | motorola) | |
11967 | need_lib_prefix=no | |
11968 | need_version=no | |
11969 | shlibpath_overrides_runpath=no | |
11970 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11971 | ;; | |
11972 | esac | |
11973 | ;; | |
db137867 | 11974 | |
7083c021 AC |
11975 | sysv4*MP*) |
11976 | if test -d /usr/nec ;then | |
a949ab1a | 11977 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11978 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
11979 | soname_spec='$libname${shared_ext}.$major' | |
11980 | shlibpath_var=LD_LIBRARY_PATH | |
11981 | fi | |
11982 | ;; | |
db137867 | 11983 | |
7083c021 AC |
11984 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11985 | version_type=freebsd-elf | |
11986 | need_lib_prefix=no | |
11987 | need_version=no | |
11988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11989 | soname_spec='${libname}${release}${shared_ext}$major' | |
11990 | shlibpath_var=LD_LIBRARY_PATH | |
11991 | shlibpath_overrides_runpath=yes | |
11992 | hardcode_into_libs=yes | |
11993 | if test "$with_gnu_ld" = yes; then | |
11994 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11995 | else | |
11996 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11997 | case $host_os in | |
11998 | sco3.2v5*) | |
11999 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12000 | ;; | |
12001 | esac | |
12002 | fi | |
12003 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12004 | ;; | |
db137867 | 12005 | |
7083c021 AC |
12006 | tpf*) |
12007 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
a949ab1a | 12008 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12009 | need_lib_prefix=no |
12010 | need_version=no | |
12011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12012 | shlibpath_var=LD_LIBRARY_PATH | |
12013 | shlibpath_overrides_runpath=no | |
12014 | hardcode_into_libs=yes | |
12015 | ;; | |
db137867 | 12016 | |
7083c021 | 12017 | uts4*) |
a949ab1a | 12018 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
12019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12020 | soname_spec='${libname}${release}${shared_ext}$major' | |
12021 | shlibpath_var=LD_LIBRARY_PATH | |
12022 | ;; | |
db137867 | 12023 | |
7083c021 AC |
12024 | *) |
12025 | dynamic_linker=no | |
12026 | ;; | |
12027 | esac | |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12029 | $as_echo "$dynamic_linker" >&6; } | |
12030 | test "$dynamic_linker" = no && can_build_shared=no | |
db137867 | 12031 | |
7083c021 AC |
12032 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12033 | if test "$GCC" = yes; then | |
12034 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12035 | fi | |
db137867 | 12036 | |
7083c021 AC |
12037 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12038 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12039 | fi | |
12040 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12041 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12042 | fi | |
db137867 | 12043 | |
db137867 | 12044 | |
db137867 | 12045 | |
db137867 | 12046 | |
db137867 | 12047 | |
db137867 | 12048 | |
db137867 | 12049 | |
db137867 | 12050 | |
db137867 | 12051 | |
db137867 | 12052 | |
db137867 | 12053 | |
db137867 | 12054 | |
db137867 | 12055 | |
db137867 | 12056 | |
db137867 | 12057 | |
db137867 | 12058 | |
db137867 | 12059 | |
db137867 | 12060 | |
db137867 | 12061 | |
db137867 | 12062 | |
db137867 | 12063 | |
db137867 | 12064 | |
db137867 | 12065 | |
db137867 | 12066 | |
db137867 | 12067 | |
db137867 | 12068 | |
db137867 | 12069 | |
db137867 | 12070 | |
db137867 | 12071 | |
db137867 | 12072 | |
db137867 | 12073 | |
db137867 | 12074 | |
db137867 | 12075 | |
db137867 | 12076 | |
db137867 | 12077 | |
db137867 | 12078 | |
db137867 | 12079 | |
db137867 | 12080 | |
db137867 | 12081 | |
db137867 | 12082 | |
db137867 | 12083 | |
db137867 | 12084 | |
db137867 | 12085 | |
db137867 | 12086 | |
db137867 | 12087 | |
b676ea3b | 12088 | |
db137867 | 12089 | |
db137867 | 12090 | |
db137867 | 12091 | |
db137867 | 12092 | |
db137867 | 12093 | |
db137867 | 12094 | |
db137867 | 12095 | |
db137867 | 12096 | |
db137867 | 12097 | |
db137867 | 12098 | |
db137867 | 12099 | |
db137867 | 12100 | |
db137867 | 12101 | |
db137867 | 12102 | |
db137867 | 12103 | |
db137867 | 12104 | |
db137867 | 12105 | |
db137867 | 12106 | |
db137867 | 12107 | |
db137867 | 12108 | |
db137867 | 12109 | |
db137867 | 12110 | |
db137867 | 12111 | |
db137867 | 12112 | |
db137867 | 12113 | |
db137867 | 12114 | |
db137867 | 12115 | |
db137867 | 12116 | |
db137867 | 12117 | |
db137867 | 12118 | |
db137867 | 12119 | |
db137867 | 12120 | |
db137867 | 12121 | |
db137867 AC |
12122 | |
12123 | ||
b6d0720c AC |
12124 | |
12125 | ||
12126 | ||
12127 | ||
12128 | ||
db137867 AC |
12129 | |
12130 | ||
db137867 | 12131 | |
db137867 | 12132 | |
db137867 | 12133 | |
db137867 | 12134 | |
7083c021 AC |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12136 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12137 | hardcode_action= | |
12138 | if test -n "$hardcode_libdir_flag_spec" || | |
12139 | test -n "$runpath_var" || | |
12140 | test "X$hardcode_automatic" = "Xyes" ; then | |
db137867 | 12141 | |
7083c021 AC |
12142 | # We can hardcode non-existent directories. |
12143 | if test "$hardcode_direct" != no && | |
12144 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12145 | # have to relink, otherwise we might link with an installed library | |
12146 | # when we should be linking with a yet-to-be-installed one | |
12147 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12148 | test "$hardcode_minus_L" != no; then | |
12149 | # Linking always hardcodes the temporary library directory. | |
12150 | hardcode_action=relink | |
db137867 | 12151 | else |
7083c021 AC |
12152 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12153 | hardcode_action=immediate | |
db137867 | 12154 | fi |
7083c021 AC |
12155 | else |
12156 | # We cannot hardcode anything, or else we can only hardcode existing | |
12157 | # directories. | |
12158 | hardcode_action=unsupported | |
12159 | fi | |
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12161 | $as_echo "$hardcode_action" >&6; } | |
12162 | ||
12163 | if test "$hardcode_action" = relink || | |
12164 | test "$inherit_rpath" = yes; then | |
12165 | # Fast installation is not supported | |
12166 | enable_fast_install=no | |
12167 | elif test "$shlibpath_overrides_runpath" = yes || | |
12168 | test "$enable_shared" = no; then | |
12169 | # Fast installation is not necessary | |
12170 | enable_fast_install=needless | |
db137867 AC |
12171 | fi |
12172 | ||
12173 | ||
12174 | ||
db137867 | 12175 | |
db137867 | 12176 | |
db137867 | 12177 | |
7083c021 AC |
12178 | if test "x$enable_dlopen" != xyes; then |
12179 | enable_dlopen=unknown | |
12180 | enable_dlopen_self=unknown | |
12181 | enable_dlopen_self_static=unknown | |
12182 | else | |
12183 | lt_cv_dlopen=no | |
12184 | lt_cv_dlopen_libs= | |
db137867 | 12185 | |
7083c021 AC |
12186 | case $host_os in |
12187 | beos*) | |
12188 | lt_cv_dlopen="load_add_on" | |
12189 | lt_cv_dlopen_libs= | |
12190 | lt_cv_dlopen_self=yes | |
12191 | ;; | |
db137867 | 12192 | |
7083c021 AC |
12193 | mingw* | pw32* | cegcc*) |
12194 | lt_cv_dlopen="LoadLibrary" | |
12195 | lt_cv_dlopen_libs= | |
12196 | ;; | |
db137867 | 12197 | |
7083c021 AC |
12198 | cygwin*) |
12199 | lt_cv_dlopen="dlopen" | |
12200 | lt_cv_dlopen_libs= | |
12201 | ;; | |
db137867 | 12202 | |
7083c021 AC |
12203 | darwin*) |
12204 | # if libdl is installed we need to link against it | |
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12206 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
08c2568c | 12207 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
7083c021 AC |
12208 | $as_echo_n "(cached) " >&6 |
12209 | else | |
12210 | ac_check_lib_save_LIBS=$LIBS | |
12211 | LIBS="-ldl $LIBS" | |
12212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12213 | /* end confdefs.h. */ | |
db137867 | 12214 | |
7083c021 AC |
12215 | /* Override any GCC internal prototype to avoid an error. |
12216 | Use char because int might match the return type of a GCC | |
12217 | builtin and then its argument prototype would still apply. */ | |
12218 | #ifdef __cplusplus | |
12219 | extern "C" | |
12220 | #endif | |
12221 | char dlopen (); | |
12222 | int | |
12223 | main () | |
12224 | { | |
12225 | return dlopen (); | |
12226 | ; | |
12227 | return 0; | |
12228 | } | |
12229 | _ACEOF | |
12230 | if ac_fn_c_try_link "$LINENO"; then : | |
12231 | ac_cv_lib_dl_dlopen=yes | |
12232 | else | |
12233 | ac_cv_lib_dl_dlopen=no | |
12234 | fi | |
12235 | rm -f core conftest.err conftest.$ac_objext \ | |
12236 | conftest$ac_exeext conftest.$ac_ext | |
12237 | LIBS=$ac_check_lib_save_LIBS | |
12238 | fi | |
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12240 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
08c2568c | 12241 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
7083c021 AC |
12242 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12243 | else | |
db137867 | 12244 | |
7083c021 AC |
12245 | lt_cv_dlopen="dyld" |
12246 | lt_cv_dlopen_libs= | |
12247 | lt_cv_dlopen_self=yes | |
db137867 | 12248 | |
7083c021 | 12249 | fi |
db137867 | 12250 | |
7083c021 | 12251 | ;; |
db137867 | 12252 | |
7083c021 AC |
12253 | *) |
12254 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
08c2568c | 12255 | if test "x$ac_cv_func_shl_load" = xyes; then : |
7083c021 AC |
12256 | lt_cv_dlopen="shl_load" |
12257 | else | |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12259 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
08c2568c | 12260 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
7083c021 AC |
12261 | $as_echo_n "(cached) " >&6 |
12262 | else | |
12263 | ac_check_lib_save_LIBS=$LIBS | |
12264 | LIBS="-ldld $LIBS" | |
12265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12266 | /* end confdefs.h. */ | |
db137867 | 12267 | |
7083c021 AC |
12268 | /* Override any GCC internal prototype to avoid an error. |
12269 | Use char because int might match the return type of a GCC | |
12270 | builtin and then its argument prototype would still apply. */ | |
12271 | #ifdef __cplusplus | |
12272 | extern "C" | |
12273 | #endif | |
12274 | char shl_load (); | |
12275 | int | |
12276 | main () | |
12277 | { | |
12278 | return shl_load (); | |
12279 | ; | |
12280 | return 0; | |
12281 | } | |
12282 | _ACEOF | |
12283 | if ac_fn_c_try_link "$LINENO"; then : | |
12284 | ac_cv_lib_dld_shl_load=yes | |
12285 | else | |
12286 | ac_cv_lib_dld_shl_load=no | |
12287 | fi | |
12288 | rm -f core conftest.err conftest.$ac_objext \ | |
12289 | conftest$ac_exeext conftest.$ac_ext | |
12290 | LIBS=$ac_check_lib_save_LIBS | |
12291 | fi | |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12293 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
08c2568c | 12294 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
7083c021 AC |
12295 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
12296 | else | |
12297 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
08c2568c | 12298 | if test "x$ac_cv_func_dlopen" = xyes; then : |
7083c021 AC |
12299 | lt_cv_dlopen="dlopen" |
12300 | else | |
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12302 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
08c2568c | 12303 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
7083c021 AC |
12304 | $as_echo_n "(cached) " >&6 |
12305 | else | |
12306 | ac_check_lib_save_LIBS=$LIBS | |
12307 | LIBS="-ldl $LIBS" | |
12308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12309 | /* end confdefs.h. */ | |
db137867 | 12310 | |
7083c021 AC |
12311 | /* Override any GCC internal prototype to avoid an error. |
12312 | Use char because int might match the return type of a GCC | |
12313 | builtin and then its argument prototype would still apply. */ | |
12314 | #ifdef __cplusplus | |
12315 | extern "C" | |
12316 | #endif | |
12317 | char dlopen (); | |
12318 | int | |
12319 | main () | |
12320 | { | |
12321 | return dlopen (); | |
12322 | ; | |
12323 | return 0; | |
12324 | } | |
12325 | _ACEOF | |
12326 | if ac_fn_c_try_link "$LINENO"; then : | |
12327 | ac_cv_lib_dl_dlopen=yes | |
12328 | else | |
12329 | ac_cv_lib_dl_dlopen=no | |
12330 | fi | |
12331 | rm -f core conftest.err conftest.$ac_objext \ | |
12332 | conftest$ac_exeext conftest.$ac_ext | |
12333 | LIBS=$ac_check_lib_save_LIBS | |
12334 | fi | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12336 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
08c2568c | 12337 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
7083c021 AC |
12338 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12339 | else | |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12341 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
08c2568c | 12342 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
7083c021 AC |
12343 | $as_echo_n "(cached) " >&6 |
12344 | else | |
12345 | ac_check_lib_save_LIBS=$LIBS | |
12346 | LIBS="-lsvld $LIBS" | |
12347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12348 | /* end confdefs.h. */ | |
db137867 | 12349 | |
7083c021 AC |
12350 | /* Override any GCC internal prototype to avoid an error. |
12351 | Use char because int might match the return type of a GCC | |
12352 | builtin and then its argument prototype would still apply. */ | |
12353 | #ifdef __cplusplus | |
12354 | extern "C" | |
12355 | #endif | |
12356 | char dlopen (); | |
12357 | int | |
12358 | main () | |
12359 | { | |
12360 | return dlopen (); | |
12361 | ; | |
12362 | return 0; | |
12363 | } | |
12364 | _ACEOF | |
12365 | if ac_fn_c_try_link "$LINENO"; then : | |
12366 | ac_cv_lib_svld_dlopen=yes | |
12367 | else | |
12368 | ac_cv_lib_svld_dlopen=no | |
12369 | fi | |
12370 | rm -f core conftest.err conftest.$ac_objext \ | |
12371 | conftest$ac_exeext conftest.$ac_ext | |
12372 | LIBS=$ac_check_lib_save_LIBS | |
12373 | fi | |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12375 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
08c2568c | 12376 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
7083c021 AC |
12377 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12378 | else | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12380 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
08c2568c | 12381 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
7083c021 AC |
12382 | $as_echo_n "(cached) " >&6 |
12383 | else | |
12384 | ac_check_lib_save_LIBS=$LIBS | |
12385 | LIBS="-ldld $LIBS" | |
12386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12387 | /* end confdefs.h. */ | |
db137867 | 12388 | |
7083c021 AC |
12389 | /* Override any GCC internal prototype to avoid an error. |
12390 | Use char because int might match the return type of a GCC | |
12391 | builtin and then its argument prototype would still apply. */ | |
12392 | #ifdef __cplusplus | |
12393 | extern "C" | |
12394 | #endif | |
12395 | char dld_link (); | |
12396 | int | |
12397 | main () | |
12398 | { | |
12399 | return dld_link (); | |
12400 | ; | |
12401 | return 0; | |
12402 | } | |
12403 | _ACEOF | |
12404 | if ac_fn_c_try_link "$LINENO"; then : | |
12405 | ac_cv_lib_dld_dld_link=yes | |
12406 | else | |
12407 | ac_cv_lib_dld_dld_link=no | |
12408 | fi | |
12409 | rm -f core conftest.err conftest.$ac_objext \ | |
12410 | conftest$ac_exeext conftest.$ac_ext | |
12411 | LIBS=$ac_check_lib_save_LIBS | |
12412 | fi | |
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12414 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
08c2568c | 12415 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
7083c021 AC |
12416 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
12417 | fi | |
db137867 AC |
12418 | |
12419 | ||
7083c021 | 12420 | fi |
db137867 AC |
12421 | |
12422 | ||
7083c021 | 12423 | fi |
db137867 AC |
12424 | |
12425 | ||
7083c021 | 12426 | fi |
db137867 | 12427 | |
db137867 | 12428 | |
7083c021 | 12429 | fi |
db137867 | 12430 | |
db137867 | 12431 | |
7083c021 | 12432 | fi |
db137867 | 12433 | |
7083c021 AC |
12434 | ;; |
12435 | esac | |
db137867 | 12436 | |
7083c021 AC |
12437 | if test "x$lt_cv_dlopen" != xno; then |
12438 | enable_dlopen=yes | |
12439 | else | |
12440 | enable_dlopen=no | |
12441 | fi | |
db137867 | 12442 | |
7083c021 AC |
12443 | case $lt_cv_dlopen in |
12444 | dlopen) | |
12445 | save_CPPFLAGS="$CPPFLAGS" | |
12446 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
db137867 | 12447 | |
7083c021 AC |
12448 | save_LDFLAGS="$LDFLAGS" |
12449 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
db137867 | 12450 | |
7083c021 AC |
12451 | save_LIBS="$LIBS" |
12452 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
db137867 | 12453 | |
7083c021 AC |
12454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12455 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
08c2568c | 12456 | if ${lt_cv_dlopen_self+:} false; then : |
030272f3 | 12457 | $as_echo_n "(cached) " >&6 |
db137867 | 12458 | else |
7083c021 AC |
12459 | if test "$cross_compiling" = yes; then : |
12460 | lt_cv_dlopen_self=cross | |
db137867 | 12461 | else |
7083c021 AC |
12462 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12463 | lt_status=$lt_dlunknown | |
12464 | cat > conftest.$ac_ext <<_LT_EOF | |
b6d0720c | 12465 | #line $LINENO "configure" |
7083c021 | 12466 | #include "confdefs.h" |
db137867 | 12467 | |
7083c021 AC |
12468 | #if HAVE_DLFCN_H |
12469 | #include <dlfcn.h> | |
12470 | #endif | |
db137867 | 12471 | |
7083c021 | 12472 | #include <stdio.h> |
db137867 | 12473 | |
7083c021 AC |
12474 | #ifdef RTLD_GLOBAL |
12475 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12476 | #else | |
12477 | # ifdef DL_GLOBAL | |
12478 | # define LT_DLGLOBAL DL_GLOBAL | |
12479 | # else | |
12480 | # define LT_DLGLOBAL 0 | |
12481 | # endif | |
12482 | #endif | |
db137867 | 12483 | |
7083c021 AC |
12484 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12485 | find out it does not work in some platform. */ | |
12486 | #ifndef LT_DLLAZY_OR_NOW | |
12487 | # ifdef RTLD_LAZY | |
12488 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12489 | # else | |
12490 | # ifdef DL_LAZY | |
12491 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12492 | # else | |
12493 | # ifdef RTLD_NOW | |
12494 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12495 | # else | |
12496 | # ifdef DL_NOW | |
12497 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12498 | # else | |
12499 | # define LT_DLLAZY_OR_NOW 0 | |
12500 | # endif | |
12501 | # endif | |
12502 | # endif | |
12503 | # endif | |
12504 | #endif | |
db137867 | 12505 | |
b6d0720c AC |
12506 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12507 | correspondingly for the symbols needed. */ | |
12508 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12509 | int fnord () __attribute__((visibility("default"))); | |
12510 | #endif | |
12511 | ||
12512 | int fnord () { return 42; } | |
7083c021 AC |
12513 | int main () |
12514 | { | |
12515 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12516 | int status = $lt_dlunknown; | |
db137867 | 12517 | |
7083c021 AC |
12518 | if (self) |
12519 | { | |
12520 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b6d0720c AC |
12521 | else |
12522 | { | |
12523 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12524 | else puts (dlerror ()); | |
12525 | } | |
7083c021 AC |
12526 | /* dlclose (self); */ |
12527 | } | |
12528 | else | |
12529 | puts (dlerror ()); | |
db137867 | 12530 | |
7083c021 AC |
12531 | return status; |
12532 | } | |
12533 | _LT_EOF | |
12534 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12535 | (eval $ac_link) 2>&5 | |
12536 | ac_status=$? | |
12537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12538 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12539 | (./conftest; exit; ) >&5 2>/dev/null | |
12540 | lt_status=$? | |
12541 | case x$lt_status in | |
12542 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12543 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12544 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12545 | esac | |
12546 | else : | |
12547 | # compilation failed | |
12548 | lt_cv_dlopen_self=no | |
12549 | fi | |
db137867 | 12550 | fi |
7083c021 | 12551 | rm -fr conftest* |
db137867 | 12552 | |
db137867 | 12553 | |
7083c021 AC |
12554 | fi |
12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12556 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
db137867 | 12557 | |
7083c021 AC |
12558 | if test "x$lt_cv_dlopen_self" = xyes; then |
12559 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12561 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
08c2568c | 12562 | if ${lt_cv_dlopen_self_static+:} false; then : |
030272f3 | 12563 | $as_echo_n "(cached) " >&6 |
db137867 | 12564 | else |
7083c021 AC |
12565 | if test "$cross_compiling" = yes; then : |
12566 | lt_cv_dlopen_self_static=cross | |
db137867 | 12567 | else |
7083c021 AC |
12568 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12569 | lt_status=$lt_dlunknown | |
12570 | cat > conftest.$ac_ext <<_LT_EOF | |
b6d0720c | 12571 | #line $LINENO "configure" |
7083c021 | 12572 | #include "confdefs.h" |
db137867 | 12573 | |
7083c021 AC |
12574 | #if HAVE_DLFCN_H |
12575 | #include <dlfcn.h> | |
12576 | #endif | |
db137867 | 12577 | |
7083c021 | 12578 | #include <stdio.h> |
db137867 | 12579 | |
7083c021 AC |
12580 | #ifdef RTLD_GLOBAL |
12581 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12582 | #else | |
12583 | # ifdef DL_GLOBAL | |
12584 | # define LT_DLGLOBAL DL_GLOBAL | |
12585 | # else | |
12586 | # define LT_DLGLOBAL 0 | |
12587 | # endif | |
12588 | #endif | |
db137867 | 12589 | |
7083c021 AC |
12590 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12591 | find out it does not work in some platform. */ | |
12592 | #ifndef LT_DLLAZY_OR_NOW | |
12593 | # ifdef RTLD_LAZY | |
12594 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12595 | # else | |
12596 | # ifdef DL_LAZY | |
12597 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12598 | # else | |
12599 | # ifdef RTLD_NOW | |
12600 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12601 | # else | |
12602 | # ifdef DL_NOW | |
12603 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12604 | # else | |
12605 | # define LT_DLLAZY_OR_NOW 0 | |
12606 | # endif | |
12607 | # endif | |
12608 | # endif | |
12609 | # endif | |
12610 | #endif | |
db137867 | 12611 | |
b6d0720c AC |
12612 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12613 | correspondingly for the symbols needed. */ | |
12614 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12615 | int fnord () __attribute__((visibility("default"))); | |
12616 | #endif | |
12617 | ||
12618 | int fnord () { return 42; } | |
7083c021 AC |
12619 | int main () |
12620 | { | |
12621 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12622 | int status = $lt_dlunknown; | |
db137867 | 12623 | |
7083c021 AC |
12624 | if (self) |
12625 | { | |
12626 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b6d0720c AC |
12627 | else |
12628 | { | |
12629 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12630 | else puts (dlerror ()); | |
12631 | } | |
7083c021 AC |
12632 | /* dlclose (self); */ |
12633 | } | |
12634 | else | |
12635 | puts (dlerror ()); | |
db137867 | 12636 | |
7083c021 AC |
12637 | return status; |
12638 | } | |
12639 | _LT_EOF | |
12640 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12641 | (eval $ac_link) 2>&5 | |
12642 | ac_status=$? | |
12643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12644 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12645 | (./conftest; exit; ) >&5 2>/dev/null | |
12646 | lt_status=$? | |
12647 | case x$lt_status in | |
12648 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12649 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12650 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12651 | esac | |
12652 | else : | |
12653 | # compilation failed | |
12654 | lt_cv_dlopen_self_static=no | |
12655 | fi | |
db137867 | 12656 | fi |
7083c021 | 12657 | rm -fr conftest* |
3202e249 | 12658 | |
db137867 | 12659 | |
db137867 | 12660 | fi |
7083c021 AC |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12662 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12663 | fi | |
db137867 | 12664 | |
7083c021 AC |
12665 | CPPFLAGS="$save_CPPFLAGS" |
12666 | LDFLAGS="$save_LDFLAGS" | |
12667 | LIBS="$save_LIBS" | |
12668 | ;; | |
12669 | esac | |
db137867 | 12670 | |
7083c021 AC |
12671 | case $lt_cv_dlopen_self in |
12672 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12673 | *) enable_dlopen_self=unknown ;; | |
12674 | esac | |
db137867 | 12675 | |
7083c021 AC |
12676 | case $lt_cv_dlopen_self_static in |
12677 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12678 | *) enable_dlopen_self_static=unknown ;; | |
12679 | esac | |
db137867 AC |
12680 | fi |
12681 | ||
db137867 | 12682 | |
db137867 | 12683 | |
030272f3 VY |
12684 | |
12685 | ||
030272f3 | 12686 | |
db137867 | 12687 | |
db137867 | 12688 | |
db137867 | 12689 | |
030272f3 | 12690 | |
030272f3 | 12691 | |
db137867 | 12692 | |
030272f3 | 12693 | |
db137867 | 12694 | |
db137867 | 12695 | |
db137867 | 12696 | |
db137867 | 12697 | |
7083c021 AC |
12698 | striplib= |
12699 | old_striplib= | |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12701 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12702 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12703 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12704 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12706 | $as_echo "yes" >&6; } | |
030272f3 | 12707 | else |
7083c021 AC |
12708 | # FIXME - insert some real tests, host_os isn't really good enough |
12709 | case $host_os in | |
12710 | darwin*) | |
12711 | if test -n "$STRIP" ; then | |
12712 | striplib="$STRIP -x" | |
12713 | old_striplib="$STRIP -S" | |
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12715 | $as_echo "yes" >&6; } | |
12716 | else | |
12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12718 | $as_echo "no" >&6; } | |
12719 | fi | |
12720 | ;; | |
12721 | *) | |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12723 | $as_echo "no" >&6; } | |
12724 | ;; | |
12725 | esac | |
030272f3 VY |
12726 | fi |
12727 | ||
db137867 | 12728 | |
030272f3 | 12729 | |
db137867 | 12730 | |
db137867 | 12731 | |
db137867 | 12732 | |
db137867 | 12733 | |
db137867 | 12734 | |
db137867 | 12735 | |
db137867 | 12736 | |
db137867 AC |
12737 | |
12738 | ||
7083c021 AC |
12739 | # Report which library types will actually be built |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12741 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12743 | $as_echo "$can_build_shared" >&6; } | |
db137867 | 12744 | |
7083c021 AC |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12746 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12747 | test "$can_build_shared" = "no" && enable_shared=no | |
db137867 | 12748 | |
7083c021 AC |
12749 | # On AIX, shared libraries and static libraries use the same namespace, and |
12750 | # are all built from PIC. | |
12751 | case $host_os in | |
12752 | aix3*) | |
12753 | test "$enable_shared" = yes && enable_static=no | |
12754 | if test -n "$RANLIB"; then | |
12755 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12756 | postinstall_cmds='$RANLIB $lib' | |
12757 | fi | |
12758 | ;; | |
db137867 | 12759 | |
7083c021 AC |
12760 | aix[4-9]*) |
12761 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12762 | test "$enable_shared" = yes && enable_static=no | |
12763 | fi | |
12764 | ;; | |
12765 | esac | |
12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12767 | $as_echo "$enable_shared" >&6; } | |
12768 | ||
12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12770 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12771 | # Make sure either enable_shared or enable_static is yes. | |
12772 | test "$enable_shared" = yes || enable_static=yes | |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12774 | $as_echo "$enable_static" >&6; } | |
db137867 | 12775 | |
db137867 | 12776 | |
db137867 | 12777 | |
db137867 | 12778 | |
db137867 | 12779 | fi |
7083c021 AC |
12780 | ac_ext=c |
12781 | ac_cpp='$CPP $CPPFLAGS' | |
12782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 | 12785 | |
7083c021 | 12786 | CC="$lt_save_CC" |
db137867 | 12787 | |
db137867 | 12788 | |
db137867 | 12789 | |
db137867 | 12790 | |
db137867 | 12791 | |
db137867 | 12792 | |
db137867 | 12793 | |
db137867 | 12794 | |
db137867 | 12795 | |
db137867 AC |
12796 | |
12797 | ||
db137867 | 12798 | |
db137867 | 12799 | |
a949ab1a AC |
12800 | |
12801 | ||
7083c021 | 12802 | ac_config_commands="$ac_config_commands libtool" |
db137867 AC |
12803 | |
12804 | ||
12805 | ||
12806 | ||
7083c021 | 12807 | # Only expand once: |
db137867 AC |
12808 | |
12809 | ||
12810 | ||
7083c021 | 12811 | LIBTOOL="$LIBTOOL --silent" |
db137867 | 12812 | |
7083c021 AC |
12813 | case "$host_os" in |
12814 | *cygwin*) | |
db137867 | 12815 | |
7083c021 AC |
12816 | cat >>confdefs.h <<_ACEOF |
12817 | #define CYGWIN 1 | |
12818 | _ACEOF | |
db137867 AC |
12819 | |
12820 | ||
7083c021 AC |
12821 | cat >>confdefs.h <<_ACEOF |
12822 | #define WINDOWS 1 | |
12823 | _ACEOF | |
db137867 | 12824 | |
7083c021 AC |
12825 | ;; |
12826 | *mingw*) | |
db137867 | 12827 | |
7083c021 AC |
12828 | cat >>confdefs.h <<_ACEOF |
12829 | #define MINGW 1 | |
12830 | _ACEOF | |
db137867 AC |
12831 | |
12832 | ||
7083c021 AC |
12833 | cat >>confdefs.h <<_ACEOF |
12834 | #define WINDOWS 1 | |
12835 | _ACEOF | |
db137867 | 12836 | |
7083c021 | 12837 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
08c2568c | 12838 | if test "x$ac_cv_header_windows_h" = xyes; then : |
db137867 | 12839 | |
7083c021 | 12840 | else |
08c2568c | 12841 | as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5 |
7083c021 | 12842 | fi |
db137867 AC |
12843 | |
12844 | ||
7083c021 | 12845 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
08c2568c | 12846 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
db137867 | 12847 | |
7083c021 | 12848 | else |
08c2568c | 12849 | as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5 |
7083c021 | 12850 | fi |
db137867 | 12851 | |
3202e249 | 12852 | |
7083c021 AC |
12853 | |
12854 | cat >>confdefs.h <<_ACEOF | |
12855 | #define HAVE_WINSOCK2_H 1 | |
db137867 | 12856 | _ACEOF |
7083c021 AC |
12857 | |
12858 | ||
12859 | cat >>confdefs.h <<_ACEOF | |
12860 | #define HAVE_WINSOCK_H 1 | |
db137867 | 12861 | _ACEOF |
7083c021 AC |
12862 | |
12863 | LIBS="$LIBS -lws2_32 -liphlpapi" | |
12864 | is_mingw="yes" | |
12865 | ;; | |
12866 | *interix*) | |
12867 | CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500" | |
12868 | ;; | |
12869 | *solaris*) | |
12870 | CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2" | |
12871 | ;; | |
12872 | *) | |
12873 | ;; | |
db137867 | 12874 | esac |
db137867 | 12875 | |
7083c021 AC |
12876 | if test "$is_mingw" = "yes"; then |
12877 | MINGW_TRUE= | |
12878 | MINGW_FALSE='#' | |
12879 | else | |
12880 | MINGW_TRUE='#' | |
12881 | MINGW_FALSE= | |
db137867 AC |
12882 | fi |
12883 | ||
db137867 | 12884 | |
db137867 | 12885 | |
7083c021 AC |
12886 | # backwards support for IRC_CFLAGS |
12887 | CFLAGS="$IRC_CFLAGS $CFLAGS -Wall" | |
12888 | ||
12889 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
12890 | test "$localstatedir" = '${prefix}/var'; then | |
12891 | libexecdir='${bindir}' | |
12892 | localstatedir='${prefix}' | |
db137867 AC |
12893 | fi |
12894 | ||
7083c021 | 12895 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
08c2568c | 12896 | if test "x$ac_cv_type_pid_t" = xyes; then : |
db137867 | 12897 | |
db137867 | 12898 | else |
7083c021 AC |
12899 | |
12900 | cat >>confdefs.h <<_ACEOF | |
12901 | #define pid_t int | |
12902 | _ACEOF | |
db137867 AC |
12903 | |
12904 | fi | |
7083c021 AC |
12905 | |
12906 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
08c2568c | 12907 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 AC |
12908 | |
12909 | else | |
12910 | ||
12911 | cat >>confdefs.h <<_ACEOF | |
12912 | #define size_t unsigned int | |
db137867 AC |
12913 | _ACEOF |
12914 | ||
12915 | fi | |
12916 | ||
7083c021 | 12917 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
08c2568c | 12918 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
db137867 | 12919 | |
db137867 | 12920 | else |
7083c021 AC |
12921 | |
12922 | cat >>confdefs.h <<_ACEOF | |
12923 | #define ssize_t int | |
db137867 | 12924 | _ACEOF |
7083c021 AC |
12925 | |
12926 | fi | |
12927 | ||
12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
12929 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
08c2568c | 12930 | if ${ac_cv_type_uid_t+:} false; then : |
7083c021 AC |
12931 | $as_echo_n "(cached) " >&6 |
12932 | else | |
12933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
12934 | /* end confdefs.h. */ |
12935 | #include <sys/types.h> | |
db137867 | 12936 | |
db137867 | 12937 | _ACEOF |
7083c021 AC |
12938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12939 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
12940 | ac_cv_type_uid_t=yes | |
db137867 | 12941 | else |
7083c021 | 12942 | ac_cv_type_uid_t=no |
db137867 | 12943 | fi |
7083c021 | 12944 | rm -f conftest* |
db137867 | 12945 | |
db137867 | 12946 | fi |
7083c021 AC |
12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
12948 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
12949 | if test $ac_cv_type_uid_t = no; then | |
db137867 | 12950 | |
7083c021 AC |
12951 | $as_echo "#define uid_t int" >>confdefs.h |
12952 | ||
12953 | ||
12954 | $as_echo "#define gid_t int" >>confdefs.h | |
db137867 AC |
12955 | |
12956 | fi | |
12957 | ||
12958 | ||
12959 | ||
7083c021 AC |
12960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
12961 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
08c2568c | 12962 | if ${ac_cv_header_stdc+:} false; then : |
030272f3 | 12963 | $as_echo_n "(cached) " >&6 |
db137867 | 12964 | else |
7083c021 | 12965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 12966 | /* end confdefs.h. */ |
7083c021 AC |
12967 | #include <stdlib.h> |
12968 | #include <stdarg.h> | |
12969 | #include <string.h> | |
12970 | #include <float.h> | |
db137867 | 12971 | |
db137867 AC |
12972 | int |
12973 | main () | |
12974 | { | |
7083c021 | 12975 | |
db137867 AC |
12976 | ; |
12977 | return 0; | |
12978 | } | |
12979 | _ACEOF | |
7083c021 AC |
12980 | if ac_fn_c_try_compile "$LINENO"; then : |
12981 | ac_cv_header_stdc=yes | |
db137867 | 12982 | else |
7083c021 AC |
12983 | ac_cv_header_stdc=no |
12984 | fi | |
12985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 12986 | |
7083c021 AC |
12987 | if test $ac_cv_header_stdc = yes; then |
12988 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12990 | /* end confdefs.h. */ | |
12991 | #include <string.h> | |
db137867 | 12992 | |
7083c021 AC |
12993 | _ACEOF |
12994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12995 | $EGREP "memchr" >/dev/null 2>&1; then : | |
db137867 | 12996 | |
db137867 | 12997 | else |
7083c021 | 12998 | ac_cv_header_stdc=no |
db137867 | 12999 | fi |
7083c021 | 13000 | rm -f conftest* |
db137867 AC |
13001 | |
13002 | fi | |
13003 | ||
7083c021 AC |
13004 | if test $ac_cv_header_stdc = yes; then |
13005 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13007 | /* end confdefs.h. */ | |
13008 | #include <stdlib.h> | |
db137867 | 13009 | |
db137867 | 13010 | _ACEOF |
7083c021 AC |
13011 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13012 | $EGREP "free" >/dev/null 2>&1; then : | |
db137867 | 13013 | |
7083c021 AC |
13014 | else |
13015 | ac_cv_header_stdc=no | |
13016 | fi | |
13017 | rm -f conftest* | |
db137867 | 13018 | |
7083c021 | 13019 | fi |
db137867 | 13020 | |
7083c021 AC |
13021 | if test $ac_cv_header_stdc = yes; then |
13022 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13023 | if test "$cross_compiling" = yes; then : | |
13024 | : | |
db137867 | 13025 | else |
7083c021 | 13026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13027 | /* end confdefs.h. */ |
7083c021 AC |
13028 | #include <ctype.h> |
13029 | #include <stdlib.h> | |
13030 | #if ((' ' & 0x0FF) == 0x020) | |
13031 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13032 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13033 | #else | |
13034 | # define ISLOWER(c) \ | |
13035 | (('a' <= (c) && (c) <= 'i') \ | |
13036 | || ('j' <= (c) && (c) <= 'r') \ | |
13037 | || ('s' <= (c) && (c) <= 'z')) | |
13038 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
13039 | #endif |
13040 | ||
7083c021 | 13041 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
db137867 AC |
13042 | int |
13043 | main () | |
13044 | { | |
7083c021 AC |
13045 | int i; |
13046 | for (i = 0; i < 256; i++) | |
13047 | if (XOR (islower (i), ISLOWER (i)) | |
13048 | || toupper (i) != TOUPPER (i)) | |
13049 | return 2; | |
db137867 AC |
13050 | return 0; |
13051 | } | |
13052 | _ACEOF | |
7083c021 | 13053 | if ac_fn_c_try_run "$LINENO"; then : |
db137867 | 13054 | |
7083c021 AC |
13055 | else |
13056 | ac_cv_header_stdc=no | |
13057 | fi | |
13058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13059 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
13060 | fi |
13061 | ||
db137867 | 13062 | fi |
7083c021 AC |
13063 | fi |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
13065 | $as_echo "$ac_cv_header_stdc" >&6; } | |
13066 | if test $ac_cv_header_stdc = yes; then | |
13067 | ||
13068 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
db137867 | 13069 | |
db137867 | 13070 | fi |
db137867 | 13071 | |
7083c021 | 13072 | |
77cb59b3 | 13073 | 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 |
13074 | do : |
13075 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13076 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
08c2568c | 13077 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
13078 | cat >>confdefs.h <<_ACEOF |
13079 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
db137867 AC |
13080 | _ACEOF |
13081 | ||
13082 | fi | |
13083 | ||
7083c021 | 13084 | done |
db137867 | 13085 | |
7083c021 AC |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13087 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
08c2568c | 13088 | if ${ac_cv_header_time+:} false; then : |
030272f3 | 13089 | $as_echo_n "(cached) " >&6 |
db137867 | 13090 | else |
7083c021 | 13091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13092 | /* end confdefs.h. */ |
db137867 | 13093 | #include <sys/types.h> |
7083c021 AC |
13094 | #include <sys/time.h> |
13095 | #include <time.h> | |
db137867 | 13096 | |
db137867 AC |
13097 | int |
13098 | main () | |
13099 | { | |
7083c021 AC |
13100 | if ((struct tm *) 0) |
13101 | return 0; | |
030272f3 | 13102 | ; |
db137867 | 13103 | return 0; |
7083c021 | 13104 | } |
030272f3 | 13105 | _ACEOF |
7083c021 AC |
13106 | if ac_fn_c_try_compile "$LINENO"; then : |
13107 | ac_cv_header_time=yes | |
13108 | else | |
13109 | ac_cv_header_time=no | |
13110 | fi | |
13111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13112 | fi | |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
13114 | $as_echo "$ac_cv_header_time" >&6; } | |
13115 | if test $ac_cv_header_time = yes; then | |
13116 | ||
13117 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
13118 | ||
13119 | fi | |
13120 | ||
13121 | ||
13122 | ||
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
13124 | $as_echo_n "checking for library containing socket... " >&6; } | |
08c2568c | 13125 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
13126 | $as_echo_n "(cached) " >&6 |
13127 | else | |
13128 | ac_func_search_save_LIBS=$LIBS | |
13129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
030272f3 | 13130 | /* end confdefs.h. */ |
030272f3 | 13131 | |
7083c021 AC |
13132 | /* Override any GCC internal prototype to avoid an error. |
13133 | Use char because int might match the return type of a GCC | |
13134 | builtin and then its argument prototype would still apply. */ | |
13135 | #ifdef __cplusplus | |
13136 | extern "C" | |
13137 | #endif | |
13138 | char socket (); | |
030272f3 VY |
13139 | int |
13140 | main () | |
13141 | { | |
7083c021 | 13142 | return socket (); |
db137867 AC |
13143 | ; |
13144 | return 0; | |
13145 | } | |
13146 | _ACEOF | |
7083c021 AC |
13147 | for ac_lib in '' socket; do |
13148 | if test -z "$ac_lib"; then | |
13149 | ac_res="none required" | |
13150 | else | |
13151 | ac_res=-l$ac_lib | |
13152 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13153 | fi | |
13154 | if ac_fn_c_try_link "$LINENO"; then : | |
13155 | ac_cv_search_socket=$ac_res | |
13156 | fi | |
13157 | rm -f core conftest.err conftest.$ac_objext \ | |
13158 | conftest$ac_exeext | |
08c2568c | 13159 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
13160 | break |
13161 | fi | |
13162 | done | |
08c2568c | 13163 | if ${ac_cv_search_socket+:} false; then : |
7083c021 | 13164 | |
db137867 | 13165 | else |
7083c021 AC |
13166 | ac_cv_search_socket=no |
13167 | fi | |
13168 | rm conftest.$ac_ext | |
13169 | LIBS=$ac_func_search_save_LIBS | |
13170 | fi | |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
13172 | $as_echo "$ac_cv_search_socket" >&6; } | |
13173 | ac_res=$ac_cv_search_socket | |
13174 | if test "$ac_res" != no; then : | |
13175 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
db137867 | 13176 | |
db137867 AC |
13177 | fi |
13178 | ||
030272f3 VY |
13179 | |
13180 | ||
7083c021 AC |
13181 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " |
13182 | #ifdef HAVE_SYS_TYPES_H | |
13183 | #include <sys/types.h> | |
13184 | #endif | |
13185 | #ifdef HAVE_SYS_SOCKET_H | |
13186 | #include <sys/socket.h> | |
13187 | #endif | |
13188 | #ifdef HAVE_WINSOCK2_H | |
13189 | #include <winsock2.h> | |
13190 | #endif | |
13191 | ||
13192 | " | |
08c2568c | 13193 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
7083c021 AC |
13194 | |
13195 | $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h | |
030272f3 | 13196 | |
030272f3 | 13197 | fi |
7083c021 AC |
13198 | |
13199 | ||
13200 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
13201 | #include <sys/socket.h> | |
13202 | " | |
08c2568c | 13203 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
030272f3 | 13204 | rb_cv_socklen_t=socklen_t |
db137867 AC |
13205 | else |
13206 | ||
7083c021 | 13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
030272f3 | 13208 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
08c2568c | 13209 | if ${rb_cv_socklen_t+:} false; then : |
030272f3 | 13210 | $as_echo_n "(cached) " >&6 |
a9fb3ed0 VY |
13211 | else |
13212 | ||
13213 | # Systems have either "struct sockaddr *" or | |
13214 | # "void *" as the second argument to getpeername | |
030272f3 | 13215 | rb_cv_socklen_t= |
a9fb3ed0 VY |
13216 | for arg2 in "struct sockaddr" void; do |
13217 | for t in int size_t unsigned long "unsigned long"; do | |
7083c021 | 13218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9fb3ed0 VY |
13219 | /* end confdefs.h. */ |
13220 | ||
3202e249 | 13221 | #ifdef HAVE_SYS_TYPES_H |
a9fb3ed0 | 13222 | #include <sys/types.h> |
3202e249 VY |
13223 | #endif |
13224 | #ifdef HAVE_SYS_SOCKET_H | |
a9fb3ed0 | 13225 | #include <sys/socket.h> |
3202e249 VY |
13226 | #endif |
13227 | #ifdef HAVE_WINSOCK2_H | |
13228 | #include <winsock2.h> | |
13229 | #endif | |
a9fb3ed0 VY |
13230 | int getpeername (int, $arg2 *, $t *); |
13231 | ||
13232 | int | |
13233 | main () | |
13234 | { | |
13235 | ||
13236 | $t len; | |
13237 | getpeername(0,0,&len); | |
13238 | ||
13239 | ; | |
13240 | return 0; | |
13241 | } | |
db137867 | 13242 | _ACEOF |
7083c021 | 13243 | if ac_fn_c_try_compile "$LINENO"; then : |
a9fb3ed0 | 13244 | |
030272f3 | 13245 | rb_cv_socklen_t="$t" |
a9fb3ed0 VY |
13246 | break |
13247 | ||
a9fb3ed0 | 13248 | fi |
a9fb3ed0 VY |
13249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13250 | done | |
13251 | done | |
13252 | ||
030272f3 | 13253 | if test "x$rb_cv_socklen_t" = x; then |
7083c021 | 13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5 |
030272f3 VY |
13255 | $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;} |
13256 | rb_cv_socklen_t=int | |
a9fb3ed0 VY |
13257 | fi |
13258 | ||
13259 | fi | |
13260 | ||
7083c021 AC |
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5 |
13262 | $as_echo "$rb_cv_socklen_t" >&6; } | |
13263 | fi | |
13264 | ||
13265 | ||
13266 | rb_socklen_t=$rb_cv_socklen_t | |
13267 | ||
13268 | ||
13269 | ||
13270 | ||
13271 | ||
13272 | # Check whether --enable-ipv6 was given. | |
13273 | if test "${enable_ipv6+set}" = set; then : | |
13274 | enableval=$enable_ipv6; ipv6=$enableval | |
13275 | else | |
13276 | ipv6=yes | |
13277 | fi | |
13278 | ||
13279 | ||
13280 | if test x$ipv6 != xyes; then | |
13281 | have_v6="no" | |
13282 | else | |
13283 | ||
13284 | have_v6=yes | |
13285 | ||
13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5 | |
13287 | $as_echo_n "checking for INET6 protocol support... " >&6; } | |
08c2568c | 13288 | if ${rb_cv_proto_inet6+:} false; then : |
7083c021 AC |
13289 | $as_echo_n "(cached) " >&6 |
13290 | else | |
13291 | ||
13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13293 | /* end confdefs.h. */ | |
13294 | ||
13295 | #include <sys/types.h> | |
13296 | #include <sys/socket.h> | |
13297 | ||
13298 | #ifndef PF_INET6 | |
13299 | #error Missing PF_INET6 | |
13300 | #endif | |
13301 | #ifndef AF_INET6 | |
13302 | #error Mlssing AF_INET6 | |
13303 | #endif | |
13304 | ||
13305 | _ACEOF | |
13306 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13307 | ||
13308 | rb_cv_proto_inet6=yes | |
13309 | ||
13310 | else | |
13311 | ||
13312 | rb_cv_proto_inet6=no | |
13313 | ||
13314 | fi | |
08c2568c | 13315 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
13316 | |
13317 | fi | |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5 | |
13319 | $as_echo "$rb_cv_proto_inet6" >&6; } | |
13320 | ||
13321 | if test "X$rb_cv_proto_inet6" = "Xyes"; then : | |
13322 | ||
13323 | else : | |
13324 | ||
13325 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5 | |
13326 | $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;} | |
13327 | have_v6=no | |
13328 | ||
13329 | fi | |
13330 | ||
13331 | ||
13332 | if test "X$have_v6" = "Xyes"; then | |
13333 | ||
13334 | rb_have_sockaddr_in6= | |
13335 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" " | |
13336 | #include <sys/types.h> | |
13337 | #include <sys/socket.h> | |
13338 | #include <netinet/in.h> | |
13339 | ||
13340 | " | |
08c2568c | 13341 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
7083c021 AC |
13342 | |
13343 | cat >>confdefs.h <<_ACEOF | |
13344 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | |
13345 | _ACEOF | |
13346 | ||
13347 | ||
13348 | rb_have_sockaddr_in6=yes | |
13349 | ||
13350 | else | |
13351 | ||
13352 | rb_have_sockaddr_in6=no | |
13353 | ||
13354 | fi | |
13355 | ||
13356 | ||
13357 | if test "X$rb_have_sockaddr_in6" = "Xyes"; then : | |
13358 | ||
13359 | else : | |
13360 | ||
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5 | |
13362 | $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;} | |
13363 | have_v6=no | |
13364 | ||
13365 | fi | |
13366 | ||
13367 | fi | |
13368 | ||
13369 | fi | |
13370 | ||
13371 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " | |
13372 | #include <sys/types.h> | |
13373 | #include <sys/socket.h> | |
13374 | ||
13375 | " | |
08c2568c | 13376 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
7083c021 AC |
13377 | |
13378 | cat >>confdefs.h <<_ACEOF | |
13379 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
13380 | _ACEOF | |
13381 | ||
13382 | ||
13383 | rb_have_sockaddr_storage=yes | |
13384 | ||
13385 | fi | |
13386 | ||
13387 | ||
13388 | ||
7083c021 | 13389 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
08c2568c | 13390 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
db137867 | 13391 | |
7083c021 | 13392 | else |
08c2568c | 13393 | as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5 |
7083c021 | 13394 | fi |
db137867 | 13395 | |
db137867 | 13396 | |
db137867 | 13397 | |
7083c021 AC |
13398 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
13399 | #include <sys/socket.h> | |
13400 | " | |
08c2568c | 13401 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
db137867 AC |
13402 | |
13403 | else | |
db137867 | 13404 | |
7083c021 | 13405 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
db137867 AC |
13406 | |
13407 | fi | |
db137867 | 13408 | |
db137867 | 13409 | |
db137867 | 13410 | |
7083c021 AC |
13411 | for ac_func in 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 |
13412 | do : | |
13413 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13414 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13415 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
13416 | cat >>confdefs.h <<_ACEOF |
13417 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13418 | _ACEOF | |
db137867 | 13419 | |
7083c021 AC |
13420 | fi |
13421 | done | |
db137867 | 13422 | |
db137867 | 13423 | |
7083c021 AC |
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
13425 | $as_echo_n "checking for library containing nanosleep... " >&6; } | |
08c2568c | 13426 | if ${ac_cv_search_nanosleep+:} false; then : |
030272f3 | 13427 | $as_echo_n "(cached) " >&6 |
db137867 | 13428 | else |
7083c021 AC |
13429 | ac_func_search_save_LIBS=$LIBS |
13430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
13431 | /* end confdefs.h. */ |
13432 | ||
7083c021 AC |
13433 | /* Override any GCC internal prototype to avoid an error. |
13434 | Use char because int might match the return type of a GCC | |
13435 | builtin and then its argument prototype would still apply. */ | |
13436 | #ifdef __cplusplus | |
13437 | extern "C" | |
13438 | #endif | |
13439 | char nanosleep (); | |
db137867 AC |
13440 | int |
13441 | main () | |
13442 | { | |
7083c021 | 13443 | return nanosleep (); |
030272f3 | 13444 | ; |
db137867 | 13445 | return 0; |
030272f3 VY |
13446 | } |
13447 | _ACEOF | |
7083c021 AC |
13448 | for ac_lib in '' rt posix4; do |
13449 | if test -z "$ac_lib"; then | |
13450 | ac_res="none required" | |
13451 | else | |
13452 | ac_res=-l$ac_lib | |
13453 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13454 | fi | |
13455 | if ac_fn_c_try_link "$LINENO"; then : | |
13456 | ac_cv_search_nanosleep=$ac_res | |
13457 | fi | |
13458 | rm -f core conftest.err conftest.$ac_objext \ | |
13459 | conftest$ac_exeext | |
08c2568c | 13460 | if ${ac_cv_search_nanosleep+:} false; then : |
7083c021 AC |
13461 | break |
13462 | fi | |
13463 | done | |
08c2568c | 13464 | if ${ac_cv_search_nanosleep+:} false; then : |
030272f3 | 13465 | |
7083c021 AC |
13466 | else |
13467 | ac_cv_search_nanosleep=no | |
13468 | fi | |
13469 | rm conftest.$ac_ext | |
13470 | LIBS=$ac_func_search_save_LIBS | |
13471 | fi | |
13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | |
13473 | $as_echo "$ac_cv_search_nanosleep" >&6; } | |
13474 | ac_res=$ac_cv_search_nanosleep | |
13475 | if test "$ac_res" != no; then : | |
13476 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
030272f3 | 13477 | |
7083c021 AC |
13478 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
13479 | ||
13480 | fi | |
13481 | ||
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5 | |
13483 | $as_echo_n "checking for library containing timer_create... " >&6; } | |
08c2568c | 13484 | if ${ac_cv_search_timer_create+:} false; then : |
7083c021 AC |
13485 | $as_echo_n "(cached) " >&6 |
13486 | else | |
13487 | ac_func_search_save_LIBS=$LIBS | |
13488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13489 | /* end confdefs.h. */ | |
030272f3 | 13490 | |
7083c021 AC |
13491 | /* Override any GCC internal prototype to avoid an error. |
13492 | Use char because int might match the return type of a GCC | |
13493 | builtin and then its argument prototype would still apply. */ | |
13494 | #ifdef __cplusplus | |
13495 | extern "C" | |
13496 | #endif | |
13497 | char timer_create (); | |
030272f3 VY |
13498 | int |
13499 | main () | |
13500 | { | |
7083c021 | 13501 | return timer_create (); |
db137867 AC |
13502 | ; |
13503 | return 0; | |
13504 | } | |
13505 | _ACEOF | |
7083c021 AC |
13506 | for ac_lib in '' rt; do |
13507 | if test -z "$ac_lib"; then | |
13508 | ac_res="none required" | |
13509 | else | |
13510 | ac_res=-l$ac_lib | |
13511 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13512 | fi | |
13513 | if ac_fn_c_try_link "$LINENO"; then : | |
13514 | ac_cv_search_timer_create=$ac_res | |
13515 | fi | |
13516 | rm -f core conftest.err conftest.$ac_objext \ | |
13517 | conftest$ac_exeext | |
08c2568c | 13518 | if ${ac_cv_search_timer_create+:} false; then : |
7083c021 | 13519 | break |
030272f3 | 13520 | fi |
7083c021 | 13521 | done |
08c2568c | 13522 | if ${ac_cv_search_timer_create+:} false; then : |
030272f3 | 13523 | |
db137867 | 13524 | else |
7083c021 | 13525 | ac_cv_search_timer_create=no |
db137867 | 13526 | fi |
7083c021 AC |
13527 | rm conftest.$ac_ext |
13528 | LIBS=$ac_func_search_save_LIBS | |
db137867 | 13529 | fi |
7083c021 AC |
13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5 |
13531 | $as_echo "$ac_cv_search_timer_create" >&6; } | |
13532 | ac_res=$ac_cv_search_timer_create | |
13533 | if test "$ac_res" != no; then : | |
13534 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
db137867 | 13535 | |
7083c021 | 13536 | $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
db137867 | 13537 | |
7083c021 | 13538 | fi |
db137867 | 13539 | |
7083c021 AC |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5 |
13541 | $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; } | |
08c2568c | 13542 | if ${rb__cv_timer_create_works+:} false; then : |
7083c021 AC |
13543 | $as_echo_n "(cached) " >&6 |
13544 | else | |
13545 | if test "$cross_compiling" = yes; then : | |
13546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c EM |
13548 | as_fn_error $? "cannot run test program while cross compiling |
13549 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 13550 | else |
7083c021 AC |
13551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13552 | /* end confdefs.h. */ | |
db137867 | 13553 | |
7083c021 AC |
13554 | #ifdef HAVE_TIME_H |
13555 | #include <time.h> | |
13556 | #endif | |
13557 | #ifdef HAVE_SIGNAL_H | |
13558 | #include <signal.h> | |
13559 | #endif | |
13560 | #ifdef HAVE_UNISTD_H | |
13561 | #include <unistd.h> | |
13562 | #endif | |
13563 | int main(int argc, char *argv[]) | |
13564 | { | |
13565 | #if HAVE_TIMER_CREATE | |
13566 | struct sigevent ev; | |
13567 | timer_t timer; | |
13568 | ev.sigev_notify = SIGEV_SIGNAL; | |
13569 | ev.sigev_signo = SIGVTALRM; | |
13570 | if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) { | |
13571 | return 1; | |
13572 | } | |
13573 | #else | |
13574 | return 1; | |
13575 | #endif | |
13576 | return 0; | |
13577 | } | |
db137867 | 13578 | |
7083c021 AC |
13579 | _ACEOF |
13580 | if ac_fn_c_try_run "$LINENO"; then : | |
13581 | rb__cv_timer_create_works=yes | |
13582 | else | |
13583 | rb__cv_timer_create_works=no | |
13584 | fi | |
13585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13586 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
13587 | fi |
13588 | ||
13589 | ||
7083c021 AC |
13590 | fi |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5 | |
13592 | $as_echo "$rb__cv_timer_create_works" >&6; } | |
13593 | case $rb__cv_timer_create_works in | |
13594 | yes) | |
13595 | $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h | |
13596 | ;; | |
13597 | esac | |
db137867 | 13598 | |
7083c021 AC |
13599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5 |
13600 | $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; } | |
08c2568c | 13601 | if ${rb__cv_timerfd_create_works+:} false; then : |
7083c021 AC |
13602 | $as_echo_n "(cached) " >&6 |
13603 | else | |
13604 | if test "$cross_compiling" = yes; then : | |
13605 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c EM |
13607 | as_fn_error $? "cannot run test program while cross compiling |
13608 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
13609 | else |
13610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13611 | /* end confdefs.h. */ | |
db137867 | 13612 | |
7083c021 AC |
13613 | #ifdef HAVE_TIME_H |
13614 | #include <time.h> | |
13615 | #endif | |
13616 | #ifdef HAVE_SIGNAL_H | |
13617 | #include <signal.h> | |
13618 | #endif | |
13619 | #ifdef HAVE_UNISTD_H | |
13620 | #include <unistd.h> | |
13621 | #endif | |
13622 | #ifdef HAVE_SYS_TIMERFD_H | |
13623 | #include <sys/timerfd.h> | |
13624 | #endif | |
13625 | int main(int argc, char *argv[]) | |
13626 | { | |
13627 | #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H) | |
13628 | if (timerfd_create(CLOCK_REALTIME, 0) < 0) { | |
13629 | return 1; | |
13630 | } | |
13631 | #else | |
13632 | return 1; | |
13633 | #endif | |
13634 | return 0; | |
13635 | } | |
db137867 | 13636 | |
7083c021 AC |
13637 | _ACEOF |
13638 | if ac_fn_c_try_run "$LINENO"; then : | |
13639 | rb__cv_timerfd_create_works=yes | |
13640 | else | |
13641 | rb__cv_timerfd_create_works=no | |
13642 | fi | |
13643 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13644 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13645 | fi | |
db137867 | 13646 | |
db137867 AC |
13647 | |
13648 | fi | |
7083c021 AC |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5 |
13650 | $as_echo "$rb__cv_timerfd_create_works" >&6; } | |
13651 | case $rb__cv_timerfd_create_works in | |
13652 | yes) | |
13653 | $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h | |
13654 | ;; | |
13655 | esac | |
db137867 | 13656 | |
7083c021 AC |
13657 | |
13658 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13659 | # for constant arguments. Useless! | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
13661 | $as_echo_n "checking for working alloca.h... " >&6; } | |
08c2568c | 13662 | if ${ac_cv_working_alloca_h+:} false; then : |
030272f3 | 13663 | $as_echo_n "(cached) " >&6 |
db137867 | 13664 | else |
7083c021 | 13665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 | 13666 | /* end confdefs.h. */ |
7083c021 | 13667 | #include <alloca.h> |
030272f3 VY |
13668 | int |
13669 | main () | |
13670 | { | |
7083c021 AC |
13671 | char *p = (char *) alloca (2 * sizeof (int)); |
13672 | if (p) return 0; | |
db137867 AC |
13673 | ; |
13674 | return 0; | |
13675 | } | |
13676 | _ACEOF | |
7083c021 AC |
13677 | if ac_fn_c_try_link "$LINENO"; then : |
13678 | ac_cv_working_alloca_h=yes | |
030272f3 | 13679 | else |
7083c021 | 13680 | ac_cv_working_alloca_h=no |
db137867 | 13681 | fi |
7083c021 AC |
13682 | rm -f core conftest.err conftest.$ac_objext \ |
13683 | conftest$ac_exeext conftest.$ac_ext | |
030272f3 | 13684 | fi |
7083c021 AC |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
13686 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
13687 | if test $ac_cv_working_alloca_h = yes; then | |
db137867 | 13688 | |
7083c021 | 13689 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
db137867 AC |
13690 | |
13691 | fi | |
13692 | ||
7083c021 AC |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
13694 | $as_echo_n "checking for alloca... " >&6; } | |
08c2568c | 13695 | if ${ac_cv_func_alloca_works+:} false; then : |
030272f3 | 13696 | $as_echo_n "(cached) " >&6 |
db137867 | 13697 | else |
7083c021 | 13698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13699 | /* end confdefs.h. */ |
7083c021 AC |
13700 | #ifdef __GNUC__ |
13701 | # define alloca __builtin_alloca | |
13702 | #else | |
13703 | # ifdef _MSC_VER | |
13704 | # include <malloc.h> | |
13705 | # define alloca _alloca | |
13706 | # else | |
13707 | # ifdef HAVE_ALLOCA_H | |
13708 | # include <alloca.h> | |
13709 | # else | |
13710 | # ifdef _AIX | |
13711 | #pragma alloca | |
13712 | # else | |
13713 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
08c2568c | 13714 | void *alloca (size_t); |
7083c021 AC |
13715 | # endif |
13716 | # endif | |
13717 | # endif | |
13718 | # endif | |
db137867 | 13719 | #endif |
7083c021 | 13720 | |
db137867 AC |
13721 | int |
13722 | main () | |
13723 | { | |
7083c021 AC |
13724 | char *p = (char *) alloca (1); |
13725 | if (p) return 0; | |
db137867 AC |
13726 | ; |
13727 | return 0; | |
13728 | } | |
13729 | _ACEOF | |
7083c021 AC |
13730 | if ac_fn_c_try_link "$LINENO"; then : |
13731 | ac_cv_func_alloca_works=yes | |
db137867 | 13732 | else |
7083c021 | 13733 | ac_cv_func_alloca_works=no |
db137867 | 13734 | fi |
7083c021 AC |
13735 | rm -f core conftest.err conftest.$ac_objext \ |
13736 | conftest$ac_exeext conftest.$ac_ext | |
db137867 | 13737 | fi |
7083c021 AC |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
13739 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
db137867 | 13740 | |
7083c021 | 13741 | if test $ac_cv_func_alloca_works = yes; then |
db137867 | 13742 | |
7083c021 | 13743 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
db137867 | 13744 | |
db137867 | 13745 | else |
7083c021 AC |
13746 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13747 | # that cause trouble. Some versions do not even contain alloca or | |
13748 | # contain a buggy version. If you still want to use their alloca, | |
13749 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
db137867 | 13750 | |
7083c021 | 13751 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
db137867 | 13752 | |
7083c021 | 13753 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
db137867 AC |
13754 | |
13755 | ||
7083c021 AC |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
13757 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
08c2568c | 13758 | if ${ac_cv_os_cray+:} false; then : |
030272f3 | 13759 | $as_echo_n "(cached) " >&6 |
db137867 | 13760 | else |
7083c021 | 13761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13762 | /* end confdefs.h. */ |
7083c021 AC |
13763 | #if defined CRAY && ! defined CRAY2 |
13764 | webecray | |
13765 | #else | |
13766 | wenotbecray | |
13767 | #endif | |
db137867 | 13768 | |
db137867 | 13769 | _ACEOF |
7083c021 AC |
13770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13771 | $EGREP "webecray" >/dev/null 2>&1; then : | |
13772 | ac_cv_os_cray=yes | |
db137867 | 13773 | else |
7083c021 | 13774 | ac_cv_os_cray=no |
db137867 | 13775 | fi |
7083c021 | 13776 | rm -f conftest* |
db137867 | 13777 | |
db137867 | 13778 | fi |
7083c021 AC |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
13780 | $as_echo "$ac_cv_os_cray" >&6; } | |
13781 | if test $ac_cv_os_cray = yes; then | |
13782 | for ac_func in _getb67 GETB67 getb67; do | |
13783 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13784 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13785 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
db137867 | 13786 | |
7083c021 AC |
13787 | cat >>confdefs.h <<_ACEOF |
13788 | #define CRAY_STACKSEG_END $ac_func | |
13789 | _ACEOF | |
db137867 | 13790 | |
7083c021 AC |
13791 | break |
13792 | fi | |
db137867 | 13793 | |
7083c021 AC |
13794 | done |
13795 | fi | |
db137867 | 13796 | |
7083c021 AC |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
13798 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
08c2568c | 13799 | if ${ac_cv_c_stack_direction+:} false; then : |
030272f3 | 13800 | $as_echo_n "(cached) " >&6 |
db137867 | 13801 | else |
7083c021 AC |
13802 | if test "$cross_compiling" = yes; then : |
13803 | ac_cv_c_stack_direction=0 | |
13804 | else | |
13805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13806 | /* end confdefs.h. */ |
7083c021 | 13807 | $ac_includes_default |
db137867 | 13808 | int |
bf4e01a4 | 13809 | find_stack_direction (int *addr, int depth) |
db137867 | 13810 | { |
bf4e01a4 AC |
13811 | int dir, dummy = 0; |
13812 | if (! addr) | |
13813 | addr = &dummy; | |
13814 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
13815 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
13816 | return dir + dummy; | |
030272f3 | 13817 | } |
030272f3 VY |
13818 | |
13819 | int | |
bf4e01a4 | 13820 | main (int argc, char **argv) |
030272f3 | 13821 | { |
bf4e01a4 | 13822 | return find_stack_direction (0, argc + !argv + 20) < 0; |
db137867 AC |
13823 | } |
13824 | _ACEOF | |
7083c021 AC |
13825 | if ac_fn_c_try_run "$LINENO"; then : |
13826 | ac_cv_c_stack_direction=1 | |
030272f3 | 13827 | else |
7083c021 | 13828 | ac_cv_c_stack_direction=-1 |
030272f3 | 13829 | fi |
7083c021 AC |
13830 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13831 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
13832 | fi |
13833 | ||
db137867 | 13834 | fi |
7083c021 AC |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
13836 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
13837 | cat >>confdefs.h <<_ACEOF | |
13838 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
db137867 AC |
13839 | _ACEOF |
13840 | ||
db137867 | 13841 | |
7083c021 | 13842 | fi |
db137867 | 13843 | |
7083c021 AC |
13844 | for ac_header in vfork.h |
13845 | do : | |
13846 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
08c2568c | 13847 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
7083c021 AC |
13848 | cat >>confdefs.h <<_ACEOF |
13849 | #define HAVE_VFORK_H 1 | |
13850 | _ACEOF | |
db137867 | 13851 | |
7083c021 | 13852 | fi |
db137867 | 13853 | |
7083c021 | 13854 | done |
a9fb3ed0 | 13855 | |
7083c021 AC |
13856 | for ac_func in fork vfork |
13857 | do : | |
13858 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13859 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13860 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
13861 | cat >>confdefs.h <<_ACEOF |
13862 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13863 | _ACEOF | |
a9fb3ed0 | 13864 | |
7083c021 AC |
13865 | fi |
13866 | done | |
3202e249 | 13867 | |
7083c021 AC |
13868 | if test "x$ac_cv_func_fork" = xyes; then |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
13870 | $as_echo_n "checking for working fork... " >&6; } | |
08c2568c | 13871 | if ${ac_cv_func_fork_works+:} false; then : |
030272f3 | 13872 | $as_echo_n "(cached) " >&6 |
db137867 | 13873 | else |
7083c021 AC |
13874 | if test "$cross_compiling" = yes; then : |
13875 | ac_cv_func_fork_works=cross | |
13876 | else | |
13877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13878 | /* end confdefs.h. */ |
7083c021 | 13879 | $ac_includes_default |
db137867 AC |
13880 | int |
13881 | main () | |
13882 | { | |
7083c021 AC |
13883 | |
13884 | /* By Ruediger Kuhlmann. */ | |
13885 | return fork () < 0; | |
13886 | ||
db137867 AC |
13887 | ; |
13888 | return 0; | |
13889 | } | |
13890 | _ACEOF | |
7083c021 AC |
13891 | if ac_fn_c_try_run "$LINENO"; then : |
13892 | ac_cv_func_fork_works=yes | |
db137867 | 13893 | else |
7083c021 | 13894 | ac_cv_func_fork_works=no |
db137867 | 13895 | fi |
7083c021 AC |
13896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13897 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 | 13898 | fi |
db137867 AC |
13899 | |
13900 | fi | |
7083c021 AC |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
13902 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
db137867 | 13903 | |
7083c021 AC |
13904 | else |
13905 | ac_cv_func_fork_works=$ac_cv_func_fork | |
13906 | fi | |
13907 | if test "x$ac_cv_func_fork_works" = xcross; then | |
13908 | case $host in | |
13909 | *-*-amigaos* | *-*-msdosdjgpp*) | |
13910 | # Override, as these systems have only a dummy fork() stub | |
13911 | ac_cv_func_fork_works=no | |
13912 | ;; | |
13913 | *) | |
13914 | ac_cv_func_fork_works=yes | |
13915 | ;; | |
13916 | esac | |
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
13918 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
13919 | fi | |
13920 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
13921 | if test "x$ac_cv_func_vfork" = xyes; then | |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
13923 | $as_echo_n "checking for working vfork... " >&6; } | |
08c2568c | 13924 | if ${ac_cv_func_vfork_works+:} false; then : |
030272f3 | 13925 | $as_echo_n "(cached) " >&6 |
db137867 | 13926 | else |
7083c021 AC |
13927 | if test "$cross_compiling" = yes; then : |
13928 | ac_cv_func_vfork_works=cross | |
13929 | else | |
13930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13931 | /* end confdefs.h. */ |
7083c021 AC |
13932 | /* Thanks to Paul Eggert for this test. */ |
13933 | $ac_includes_default | |
13934 | #include <sys/wait.h> | |
13935 | #ifdef HAVE_VFORK_H | |
13936 | # include <vfork.h> | |
13937 | #endif | |
13938 | /* On some sparc systems, changes by the child to local and incoming | |
13939 | argument registers are propagated back to the parent. The compiler | |
13940 | is told about this with #include <vfork.h>, but some compilers | |
13941 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
13942 | static variable whose address is put into a register that is | |
13943 | clobbered by the vfork. */ | |
13944 | static void | |
db137867 | 13945 | #ifdef __cplusplus |
7083c021 AC |
13946 | sparc_address_test (int arg) |
13947 | # else | |
13948 | sparc_address_test (arg) int arg; | |
db137867 | 13949 | #endif |
7083c021 AC |
13950 | { |
13951 | static pid_t child; | |
13952 | if (!child) { | |
13953 | child = vfork (); | |
13954 | if (child < 0) { | |
13955 | perror ("vfork"); | |
13956 | _exit(2); | |
13957 | } | |
13958 | if (!child) { | |
13959 | arg = getpid(); | |
13960 | write(-1, "", 0); | |
13961 | _exit (arg); | |
13962 | } | |
13963 | } | |
13964 | } | |
13965 | ||
db137867 AC |
13966 | int |
13967 | main () | |
13968 | { | |
7083c021 AC |
13969 | pid_t parent = getpid (); |
13970 | pid_t child; | |
13971 | ||
13972 | sparc_address_test (0); | |
13973 | ||
13974 | child = vfork (); | |
13975 | ||
13976 | if (child == 0) { | |
13977 | /* Here is another test for sparc vfork register problems. This | |
13978 | test uses lots of local variables, at least as many local | |
13979 | variables as main has allocated so far including compiler | |
13980 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
13981 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
13982 | reuse the register of parent for one of the local variables, | |
13983 | since it will think that parent can't possibly be used any more | |
13984 | in this routine. Assigning to the local variable will thus | |
13985 | munge parent in the parent process. */ | |
13986 | pid_t | |
13987 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
13988 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
13989 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
13990 | use the same hardware register for all 8 local variables. */ | |
13991 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
13992 | || p != p5 || p != p6 || p != p7) | |
13993 | _exit(1); | |
db137867 | 13994 | |
7083c021 AC |
13995 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
13996 | from child file descriptors. If the child closes a descriptor | |
13997 | before it execs or exits, this munges the parent's descriptor | |
13998 | as well. Test for this by closing stdout in the child. */ | |
13999 | _exit(close(fileno(stdout)) != 0); | |
14000 | } else { | |
14001 | int status; | |
14002 | struct stat st; | |
db137867 | 14003 | |
7083c021 AC |
14004 | while (wait(&status) != child) |
14005 | ; | |
14006 | return ( | |
14007 | /* Was there some problem with vforking? */ | |
14008 | child < 0 | |
db137867 | 14009 | |
7083c021 AC |
14010 | /* Did the child fail? (This shouldn't happen.) */ |
14011 | || status | |
14012 | ||
14013 | /* Did the vfork/compiler bug occur? */ | |
14014 | || parent != getpid() | |
14015 | ||
14016 | /* Did the file descriptor bug occur? */ | |
14017 | || fstat(fileno(stdout), &st) != 0 | |
14018 | ); | |
14019 | } | |
14020 | } | |
14021 | _ACEOF | |
14022 | if ac_fn_c_try_run "$LINENO"; then : | |
14023 | ac_cv_func_vfork_works=yes | |
db137867 | 14024 | else |
7083c021 | 14025 | ac_cv_func_vfork_works=no |
db137867 | 14026 | fi |
7083c021 AC |
14027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14028 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 | 14029 | fi |
db137867 | 14030 | |
7083c021 AC |
14031 | fi |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
14033 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
db137867 | 14034 | |
7083c021 AC |
14035 | fi; |
14036 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14037 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
14039 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
db137867 AC |
14040 | fi |
14041 | ||
7083c021 AC |
14042 | if test "x$ac_cv_func_vfork_works" = xyes; then |
14043 | ||
14044 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
db137867 | 14045 | |
db137867 | 14046 | else |
db137867 | 14047 | |
7083c021 | 14048 | $as_echo "#define vfork fork" >>confdefs.h |
db137867 AC |
14049 | |
14050 | fi | |
7083c021 AC |
14051 | if test "x$ac_cv_func_fork_works" = xyes; then |
14052 | ||
14053 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
db137867 | 14054 | |
db137867 | 14055 | fi |
7083c021 | 14056 | |
96f4052b AC |
14057 | |
14058 | ||
14059 | ||
14060 | for ac_header in $ac_header_list | |
7083c021 AC |
14061 | do : |
14062 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
96f4052b AC |
14063 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
14064 | " | |
08c2568c | 14065 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14066 | cat >>confdefs.h <<_ACEOF |
14067 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14068 | _ACEOF | |
14069 | ||
db137867 | 14070 | fi |
db137867 | 14071 | |
7083c021 AC |
14072 | done |
14073 | ||
96f4052b AC |
14074 | |
14075 | ||
14076 | ||
14077 | ||
14078 | ||
14079 | ||
14080 | ||
7083c021 AC |
14081 | for ac_func in getpagesize |
14082 | do : | |
14083 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
08c2568c | 14084 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
7083c021 AC |
14085 | cat >>confdefs.h <<_ACEOF |
14086 | #define HAVE_GETPAGESIZE 1 | |
db137867 AC |
14087 | _ACEOF |
14088 | ||
14089 | fi | |
7083c021 | 14090 | done |
db137867 | 14091 | |
7083c021 AC |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
14093 | $as_echo_n "checking for working mmap... " >&6; } | |
08c2568c | 14094 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
030272f3 | 14095 | $as_echo_n "(cached) " >&6 |
db137867 | 14096 | else |
7083c021 AC |
14097 | if test "$cross_compiling" = yes; then : |
14098 | ac_cv_func_mmap_fixed_mapped=no | |
14099 | else | |
14100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14101 | /* end confdefs.h. */ |
7083c021 AC |
14102 | $ac_includes_default |
14103 | /* malloc might have been renamed as rpl_malloc. */ | |
14104 | #undef malloc | |
db137867 | 14105 | |
7083c021 AC |
14106 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14107 | Here is a matrix of mmap possibilities: | |
14108 | mmap private not fixed | |
14109 | mmap private fixed at somewhere currently unmapped | |
14110 | mmap private fixed at somewhere already mapped | |
14111 | mmap shared not fixed | |
14112 | mmap shared fixed at somewhere currently unmapped | |
14113 | mmap shared fixed at somewhere already mapped | |
14114 | For private mappings, we should verify that changes cannot be read() | |
14115 | back from the file, nor mmap's back from the file at a different | |
14116 | address. (There have been systems where private was not correctly | |
14117 | implemented like the infamous i386 svr4.0, and systems where the | |
14118 | VM page cache was not coherent with the file system buffer cache | |
14119 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
14120 | For shared mappings, we should conversely verify that changes get | |
14121 | propagated back to all the places they're supposed to be. | |
14122 | ||
14123 | Grep wants private fixed already mapped. | |
14124 | The main things grep needs to know about mmap are: | |
14125 | * does it exist and is it safe to write into the mmap'd area | |
14126 | * how to use it (BSD variants) */ | |
14127 | ||
14128 | #include <fcntl.h> | |
14129 | #include <sys/mman.h> | |
14130 | ||
14131 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
14132 | char *malloc (); | |
db137867 | 14133 | #endif |
7083c021 AC |
14134 | |
14135 | /* This mess was copied from the GNU getpagesize.h. */ | |
14136 | #ifndef HAVE_GETPAGESIZE | |
7083c021 AC |
14137 | # ifdef _SC_PAGESIZE |
14138 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14139 | # else /* no _SC_PAGESIZE */ | |
14140 | # ifdef HAVE_SYS_PARAM_H | |
14141 | # include <sys/param.h> | |
14142 | # ifdef EXEC_PAGESIZE | |
14143 | # define getpagesize() EXEC_PAGESIZE | |
14144 | # else /* no EXEC_PAGESIZE */ | |
14145 | # ifdef NBPG | |
14146 | # define getpagesize() NBPG * CLSIZE | |
14147 | # ifndef CLSIZE | |
14148 | # define CLSIZE 1 | |
14149 | # endif /* no CLSIZE */ | |
14150 | # else /* no NBPG */ | |
14151 | # ifdef NBPC | |
14152 | # define getpagesize() NBPC | |
14153 | # else /* no NBPC */ | |
14154 | # ifdef PAGESIZE | |
14155 | # define getpagesize() PAGESIZE | |
14156 | # endif /* PAGESIZE */ | |
14157 | # endif /* no NBPC */ | |
14158 | # endif /* no NBPG */ | |
14159 | # endif /* no EXEC_PAGESIZE */ | |
14160 | # else /* no HAVE_SYS_PARAM_H */ | |
14161 | # define getpagesize() 8192 /* punt totally */ | |
14162 | # endif /* no HAVE_SYS_PARAM_H */ | |
14163 | # endif /* no _SC_PAGESIZE */ | |
14164 | ||
14165 | #endif /* no HAVE_GETPAGESIZE */ | |
14166 | ||
14167 | int | |
14168 | main () | |
db137867 | 14169 | { |
7083c021 | 14170 | char *data, *data2, *data3; |
5a241f54 | 14171 | const char *cdata2; |
7083c021 | 14172 | int i, pagesize; |
96f4052b | 14173 | int fd, fd2; |
7083c021 AC |
14174 | |
14175 | pagesize = getpagesize (); | |
14176 | ||
14177 | /* First, make a file with some known garbage in it. */ | |
14178 | data = (char *) malloc (pagesize); | |
14179 | if (!data) | |
14180 | return 1; | |
14181 | for (i = 0; i < pagesize; ++i) | |
14182 | *(data + i) = rand (); | |
14183 | umask (0); | |
14184 | fd = creat ("conftest.mmap", 0600); | |
14185 | if (fd < 0) | |
96f4052b | 14186 | return 2; |
7083c021 | 14187 | if (write (fd, data, pagesize) != pagesize) |
96f4052b | 14188 | return 3; |
7083c021 AC |
14189 | close (fd); |
14190 | ||
96f4052b AC |
14191 | /* Next, check that the tail of a page is zero-filled. File must have |
14192 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
14193 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
14194 | if (fd2 < 0) | |
14195 | return 4; | |
5a241f54 AC |
14196 | cdata2 = ""; |
14197 | if (write (fd2, cdata2, 1) != 1) | |
96f4052b | 14198 | return 5; |
5a241f54 | 14199 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
96f4052b AC |
14200 | if (data2 == MAP_FAILED) |
14201 | return 6; | |
14202 | for (i = 0; i < pagesize; ++i) | |
14203 | if (*(data2 + i)) | |
14204 | return 7; | |
14205 | close (fd2); | |
14206 | if (munmap (data2, pagesize)) | |
14207 | return 8; | |
14208 | ||
7083c021 AC |
14209 | /* Next, try to mmap the file at a fixed address which already has |
14210 | something else allocated at it. If we can, also make sure that | |
14211 | we see the same garbage. */ | |
14212 | fd = open ("conftest.mmap", O_RDWR); | |
14213 | if (fd < 0) | |
96f4052b | 14214 | return 9; |
7083c021 AC |
14215 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
14216 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
96f4052b | 14217 | return 10; |
7083c021 AC |
14218 | for (i = 0; i < pagesize; ++i) |
14219 | if (*(data + i) != *(data2 + i)) | |
96f4052b | 14220 | return 11; |
7083c021 AC |
14221 | |
14222 | /* Finally, make sure that changes to the mapped area do not | |
14223 | percolate back to the file as seen by read(). (This is a bug on | |
14224 | some variants of i386 svr4.0.) */ | |
14225 | for (i = 0; i < pagesize; ++i) | |
14226 | *(data2 + i) = *(data2 + i) + 1; | |
14227 | data3 = (char *) malloc (pagesize); | |
14228 | if (!data3) | |
96f4052b | 14229 | return 12; |
7083c021 | 14230 | if (read (fd, data3, pagesize) != pagesize) |
96f4052b | 14231 | return 13; |
7083c021 AC |
14232 | for (i = 0; i < pagesize; ++i) |
14233 | if (*(data + i) != *(data3 + i)) | |
96f4052b | 14234 | return 14; |
7083c021 AC |
14235 | close (fd); |
14236 | return 0; | |
db137867 | 14237 | } |
db137867 | 14238 | _ACEOF |
7083c021 AC |
14239 | if ac_fn_c_try_run "$LINENO"; then : |
14240 | ac_cv_func_mmap_fixed_mapped=yes | |
db137867 | 14241 | else |
7083c021 | 14242 | ac_cv_func_mmap_fixed_mapped=no |
db137867 | 14243 | fi |
7083c021 AC |
14244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14245 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
14246 | fi |
14247 | ||
7083c021 AC |
14248 | fi |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14250 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
14251 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
db137867 | 14252 | |
7083c021 | 14253 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
db137867 AC |
14254 | |
14255 | fi | |
96f4052b | 14256 | rm -f conftest.mmap conftest.txt |
db137867 | 14257 | |
3202e249 | 14258 | |
7083c021 AC |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 |
14260 | $as_echo_n "checking for /dev/poll... " >&6; } | |
14261 | if test -c "/dev/poll"; then | |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14263 | $as_echo "yes" >&6; } | |
3202e249 | 14264 | |
7083c021 | 14265 | $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h |
3202e249 | 14266 | |
7083c021 AC |
14267 | else |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14269 | $as_echo "no" >&6; } | |
3202e249 VY |
14270 | fi |
14271 | ||
14272 | ||
7083c021 AC |
14273 | if test "$is_mingw" = "yes"; then |
14274 | ||
14275 | $as_echo "#define HAVE_WIN32 1" >>confdefs.h | |
3202e249 VY |
14276 | |
14277 | fi | |
3202e249 | 14278 | |
db137867 | 14279 | |
7083c021 AC |
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
14281 | $as_echo_n "checking for OpenSSL... " >&6; } | |
14282 | # Check whether --enable-openssl was given. | |
14283 | if test "${enable_openssl+set}" = set; then : | |
14284 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
db137867 | 14285 | else |
7083c021 | 14286 | cf_enable_openssl="auto" |
db137867 AC |
14287 | fi |
14288 | ||
db137867 | 14289 | |
7083c021 AC |
14290 | if test "$cf_enable_openssl" != "no" ; then |
14291 | cf_openssl_basedir="" | |
14292 | if test "$cf_enable_openssl" != "auto" && | |
14293 | test "$cf_enable_openssl" != "yes" ; then | |
14294 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
14295 | else | |
14296 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
14297 | /usr/local/openssl ; do | |
14298 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
14299 | cf_openssl_basedir="${dirs}" | |
14300 | break | |
14301 | fi | |
14302 | done | |
14303 | unset dirs | |
14304 | fi | |
14305 | if test ! -z "$cf_openssl_basedir"; then | |
14306 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
14307 | SSL_CFLAGS="-I${cf_openssl_basedir}/include" | |
14308 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
14309 | else | |
14310 | cf_openssl_basedir="" | |
14311 | fi | |
14312 | else | |
14313 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
14314 | cf_openssl_basedir="/usr" | |
14315 | fi | |
14316 | fi | |
db137867 | 14317 | |
7083c021 AC |
14318 | if test ! -z "$cf_openssl_basedir"; then |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 | |
14320 | $as_echo "$cf_openssl_basedir" >&6; } | |
14321 | cf_enable_openssl="yes" | |
14322 | else | |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 | |
14324 | $as_echo "not found. Specify a correct path?" >&6; } | |
14325 | cf_enable_openssl="no" | |
14326 | fi | |
14327 | unset cf_openssl_basedir | |
14328 | else | |
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14330 | $as_echo "disabled" >&6; } | |
db137867 AC |
14331 | fi |
14332 | ||
7083c021 AC |
14333 | save_CPPFLAGS="$CPPFLAGS" |
14334 | CPPFLAGS="$CPPFLAGS $SSL_CFLAGS" | |
14335 | save_LIBS="$LIBS" | |
14336 | LIBS="$LIBS $SSL_LIBS" | |
14337 | if test "$cf_enable_openssl" != no; then | |
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 | |
14339 | $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } | |
14340 | if test "$cross_compiling" = yes; then : | |
14341 | cf_enable_openssl=no | |
db137867 | 14342 | else |
7083c021 | 14343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 14344 | /* end confdefs.h. */ |
7083c021 AC |
14345 | #include <openssl/opensslv.h> |
14346 | #include <stdlib.h> | |
db137867 AC |
14347 | int |
14348 | main () | |
14349 | { | |
7083c021 AC |
14350 | if (OPENSSL_VERSION_NUMBER >= 0x00907000) |
14351 | exit(0); else exit(1); | |
14352 | ; | |
14353 | return 0; | |
14354 | } | |
db137867 | 14355 | _ACEOF |
7083c021 AC |
14356 | if ac_fn_c_try_run "$LINENO"; then : |
14357 | cf_enable_openssl=yes | |
14358 | else | |
14359 | cf_enable_openssl=no | |
14360 | fi | |
14361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14362 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14363 | fi | |
db137867 AC |
14364 | |
14365 | ||
7083c021 AC |
14366 | if test "$cf_enable_openssl" != no; then |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
14368 | $as_echo "found" >&6; } | |
14369 | else | |
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 | |
14371 | $as_echo "no - OpenSSL support disabled" >&6; } | |
14372 | fi | |
db137867 | 14373 | |
db137867 | 14374 | fi |
db137867 | 14375 | |
7083c021 AC |
14376 | |
14377 | if test "$cf_enable_openssl" != no; then | |
14378 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5 | |
14380 | $as_echo_n "checking for RAND_status in -lcrypto... " >&6; } | |
08c2568c | 14381 | if ${ac_cv_lib_crypto_RAND_status+:} false; then : |
030272f3 | 14382 | $as_echo_n "(cached) " >&6 |
db137867 | 14383 | else |
7083c021 AC |
14384 | ac_check_lib_save_LIBS=$LIBS |
14385 | LIBS="-lcrypto $LIBS" | |
14386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14387 | /* end confdefs.h. */ |
db137867 AC |
14388 | |
14389 | /* Override any GCC internal prototype to avoid an error. | |
14390 | Use char because int might match the return type of a GCC | |
14391 | builtin and then its argument prototype would still apply. */ | |
14392 | #ifdef __cplusplus | |
14393 | extern "C" | |
14394 | #endif | |
7083c021 | 14395 | char RAND_status (); |
db137867 AC |
14396 | int |
14397 | main () | |
14398 | { | |
7083c021 | 14399 | return RAND_status (); |
db137867 AC |
14400 | ; |
14401 | return 0; | |
14402 | } | |
14403 | _ACEOF | |
7083c021 AC |
14404 | if ac_fn_c_try_link "$LINENO"; then : |
14405 | ac_cv_lib_crypto_RAND_status=yes | |
db137867 | 14406 | else |
7083c021 | 14407 | ac_cv_lib_crypto_RAND_status=no |
db137867 | 14408 | fi |
7083c021 AC |
14409 | rm -f core conftest.err conftest.$ac_objext \ |
14410 | conftest$ac_exeext conftest.$ac_ext | |
14411 | LIBS=$ac_check_lib_save_LIBS | |
db137867 | 14412 | fi |
7083c021 AC |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5 |
14414 | $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; } | |
08c2568c | 14415 | if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then : |
7083c021 AC |
14416 | cf_enable_openssl=yes |
14417 | else | |
14418 | cf_enable_openssl=no | |
db137867 AC |
14419 | fi |
14420 | ||
db137867 AC |
14421 | fi |
14422 | ||
7083c021 AC |
14423 | if test "$cf_enable_openssl" != no; then |
14424 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5 | |
14426 | $as_echo_n "checking for SSL_read in -lssl... " >&6; } | |
08c2568c | 14427 | if ${ac_cv_lib_ssl_SSL_read+:} false; then : |
030272f3 | 14428 | $as_echo_n "(cached) " >&6 |
db137867 | 14429 | else |
7083c021 AC |
14430 | ac_check_lib_save_LIBS=$LIBS |
14431 | LIBS="-lssl -lcrypto $LIBS" | |
14432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14433 | /* end confdefs.h. */ |
db137867 | 14434 | |
7083c021 AC |
14435 | /* Override any GCC internal prototype to avoid an error. |
14436 | Use char because int might match the return type of a GCC | |
14437 | builtin and then its argument prototype would still apply. */ | |
14438 | #ifdef __cplusplus | |
14439 | extern "C" | |
14440 | #endif | |
14441 | char SSL_read (); | |
db137867 AC |
14442 | int |
14443 | main () | |
14444 | { | |
7083c021 AC |
14445 | return SSL_read (); |
14446 | ; | |
14447 | return 0; | |
db137867 AC |
14448 | } |
14449 | _ACEOF | |
7083c021 AC |
14450 | if ac_fn_c_try_link "$LINENO"; then : |
14451 | ac_cv_lib_ssl_SSL_read=yes | |
db137867 | 14452 | else |
7083c021 | 14453 | ac_cv_lib_ssl_SSL_read=no |
db137867 | 14454 | fi |
7083c021 AC |
14455 | rm -f core conftest.err conftest.$ac_objext \ |
14456 | conftest$ac_exeext conftest.$ac_ext | |
14457 | LIBS=$ac_check_lib_save_LIBS | |
14458 | fi | |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5 | |
14460 | $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; } | |
08c2568c | 14461 | if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then : |
7083c021 AC |
14462 | SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
14463 | else | |
14464 | cf_enable_openssl=no | |
db137867 | 14465 | fi |
db137867 AC |
14466 | |
14467 | fi | |
db137867 | 14468 | |
db137867 AC |
14469 | |
14470 | ||
bf4e01a4 AC |
14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5 |
14472 | $as_echo_n "checking for GnuTLS... " >&6; } | |
14473 | # Check whether --enable-gnutls was given. | |
14474 | if test "${enable_gnutls+set}" = set; then : | |
14475 | enableval=$enable_gnutls; cf_enable_gnutls=$enableval | |
14476 | else | |
14477 | cf_enable_gnutls="auto" | |
14478 | fi | |
14479 | ||
14480 | ||
14481 | if test "$cf_enable_gnutls" != no; then | |
14482 | ||
14483 | ||
14484 | ||
14485 | ||
14486 | ||
14487 | ||
14488 | ||
14489 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
14490 | if test -n "$ac_tool_prefix"; then | |
14491 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
14492 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14494 | $as_echo_n "checking for $ac_word... " >&6; } | |
14495 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
14496 | $as_echo_n "(cached) " >&6 | |
14497 | else | |
14498 | case $PKG_CONFIG in | |
14499 | [\\/]* | ?:[\\/]*) | |
14500 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14501 | ;; | |
14502 | *) | |
14503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14504 | for as_dir in $PATH | |
14505 | do | |
14506 | IFS=$as_save_IFS | |
14507 | test -z "$as_dir" && as_dir=. | |
14508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14510 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14512 | break 2 | |
14513 | fi | |
14514 | done | |
14515 | done | |
14516 | IFS=$as_save_IFS | |
14517 | ||
14518 | ;; | |
14519 | esac | |
14520 | fi | |
14521 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
14522 | if test -n "$PKG_CONFIG"; then | |
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
14524 | $as_echo "$PKG_CONFIG" >&6; } | |
14525 | else | |
14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14527 | $as_echo "no" >&6; } | |
14528 | fi | |
14529 | ||
14530 | ||
14531 | fi | |
14532 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
14533 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
14534 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14535 | set dummy pkg-config; ac_word=$2 | |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14537 | $as_echo_n "checking for $ac_word... " >&6; } | |
14538 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
14539 | $as_echo_n "(cached) " >&6 | |
14540 | else | |
14541 | case $ac_pt_PKG_CONFIG in | |
14542 | [\\/]* | ?:[\\/]*) | |
14543 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
14544 | ;; | |
14545 | *) | |
14546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14547 | for as_dir in $PATH | |
14548 | do | |
14549 | IFS=$as_save_IFS | |
14550 | test -z "$as_dir" && as_dir=. | |
14551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14553 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14555 | break 2 | |
14556 | fi | |
14557 | done | |
14558 | done | |
14559 | IFS=$as_save_IFS | |
14560 | ||
14561 | ;; | |
14562 | esac | |
14563 | fi | |
14564 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
14565 | if test -n "$ac_pt_PKG_CONFIG"; then | |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
14567 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
14568 | else | |
14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14570 | $as_echo "no" >&6; } | |
14571 | fi | |
14572 | ||
14573 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
14574 | PKG_CONFIG="" | |
14575 | else | |
14576 | case $cross_compiling:$ac_tool_warned in | |
14577 | yes:) | |
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14579 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14580 | ac_tool_warned=yes ;; | |
14581 | esac | |
14582 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
14583 | fi | |
14584 | else | |
14585 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14586 | fi | |
14587 | ||
14588 | fi | |
14589 | if test -n "$PKG_CONFIG"; then | |
14590 | _pkg_min_version=0.9.0 | |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
14592 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
14593 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14595 | $as_echo "yes" >&6; } | |
14596 | else | |
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14598 | $as_echo "no" >&6; } | |
14599 | PKG_CONFIG="" | |
14600 | fi | |
14601 | fi | |
14602 | ||
14603 | pkg_failed=no | |
14604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 | |
14605 | $as_echo_n "checking for GNUTLS... " >&6; } | |
14606 | ||
14607 | if test -n "$GNUTLS_CFLAGS"; then | |
14608 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | |
14609 | elif test -n "$PKG_CONFIG"; then | |
14610 | if test -n "$PKG_CONFIG" && \ | |
14611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 | |
14612 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
14613 | ac_status=$? | |
14614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14615 | test $ac_status = 0; }; then | |
14616 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` | |
14617 | test "x$?" != "x0" && pkg_failed=yes | |
14618 | else | |
14619 | pkg_failed=yes | |
14620 | fi | |
14621 | else | |
14622 | pkg_failed=untried | |
14623 | fi | |
14624 | if test -n "$GNUTLS_LIBS"; then | |
14625 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | |
14626 | elif test -n "$PKG_CONFIG"; then | |
14627 | if test -n "$PKG_CONFIG" && \ | |
14628 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 | |
14629 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
14630 | ac_status=$? | |
14631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14632 | test $ac_status = 0; }; then | |
14633 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` | |
14634 | test "x$?" != "x0" && pkg_failed=yes | |
14635 | else | |
14636 | pkg_failed=yes | |
14637 | fi | |
14638 | else | |
14639 | pkg_failed=untried | |
14640 | fi | |
14641 | ||
14642 | ||
14643 | ||
14644 | if test $pkg_failed = yes; then | |
14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14646 | $as_echo "no" >&6; } | |
14647 | ||
14648 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14649 | _pkg_short_errors_supported=yes | |
14650 | else | |
14651 | _pkg_short_errors_supported=no | |
14652 | fi | |
14653 | if test $_pkg_short_errors_supported = yes; then | |
14654 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1` | |
14655 | else | |
14656 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1` | |
14657 | fi | |
14658 | # Put the nasty error message in config.log where it belongs | |
14659 | echo "$GNUTLS_PKG_ERRORS" >&5 | |
14660 | ||
14661 | cf_enable_gnutls="no" | |
14662 | elif test $pkg_failed = untried; then | |
14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14664 | $as_echo "no" >&6; } | |
14665 | cf_enable_gnutls="no" | |
14666 | else | |
14667 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | |
14668 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14670 | $as_echo "yes" >&6; } | |
14671 | ||
14672 | cf_enable_gnutls="yes" | |
14673 | ||
14674 | fi | |
14675 | fi | |
14676 | ||
14677 | if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then | |
14678 | cf_enable_gnutls="no" | |
14679 | fi | |
14680 | ||
7083c021 | 14681 | if test x"$cf_enable_openssl" != xno; then |
db137867 | 14682 | |
7083c021 | 14683 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
db137867 | 14684 | |
bf4e01a4 AC |
14685 | GNUTLS_CFLAGS="" |
14686 | GNUTLS_LIBS="" | |
7083c021 | 14687 | SSL_TYPE="openssl" |
bf4e01a4 AC |
14688 | elif test x"$cf_enable_gnutls" != xno; then |
14689 | ||
14690 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
14691 | ||
14692 | SSL_LIBS="" | |
14693 | SSL_CFLAGS="" | |
14694 | SSL_TYPE="gnutls" | |
db137867 | 14695 | fi |
db137867 | 14696 | |
db137867 | 14697 | |
db137867 | 14698 | |
db137867 | 14699 | |
7083c021 AC |
14700 | CPPFLAGS="$save_CPPFLAGS" |
14701 | LIBS="$save_LIBS" | |
14702 | ||
14703 | ||
db137867 AC |
14704 | |
14705 | ||
db137867 | 14706 | |
db137867 | 14707 | |
7083c021 AC |
14708 | # Check whether --enable-assert was given. |
14709 | if test "${enable_assert+set}" = set; then : | |
14710 | enableval=$enable_assert; assert=$enableval | |
14711 | else | |
14712 | assert=no | |
14713 | fi | |
db137867 | 14714 | |
db137867 | 14715 | |
7083c021 | 14716 | if test "$assert" = no; then |
db137867 | 14717 | |
7083c021 | 14718 | $as_echo "#define NDEBUG 1" >>confdefs.h |
db137867 | 14719 | |
7083c021 | 14720 | elif test "$assert" = soft; then |
db137867 | 14721 | |
7083c021 | 14722 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
db137867 | 14723 | |
db137867 | 14724 | |
7083c021 | 14725 | $as_echo "#define NDEBUG 1" >>confdefs.h |
db137867 | 14726 | |
7083c021 AC |
14727 | elif test "$assert" = yes; then |
14728 | assert = "hard"; | |
14729 | fi | |
14730 | ||
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 | |
14732 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
14733 | # Check whether --enable-profile was given. | |
14734 | if test "${enable_profile+set}" = set; then : | |
14735 | enableval=$enable_profile; profile=$enableval | |
db137867 | 14736 | else |
7083c021 AC |
14737 | profile=no |
14738 | fi | |
14739 | ||
14740 | ||
14741 | if test "$profile" = yes; then | |
14742 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
14743 | CFLAGS="$CFLAGS -pg -static" | |
14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5 | |
14745 | $as_echo "yes, adding -pg -static" >&6; } | |
db137867 | 14746 | |
7083c021 AC |
14747 | $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h |
14748 | ||
14749 | else | |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 | |
14751 | $as_echo "no, profile builds only work with gcc" >&6; } | |
14752 | fi | |
14753 | else | |
14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14755 | $as_echo "no" >&6; } | |
db137867 | 14756 | fi |
7083c021 AC |
14757 | |
14758 | # Check whether --enable-balloc was given. | |
14759 | if test "${enable_balloc+set}" = set; then : | |
14760 | enableval=$enable_balloc; balloc=$enableval | |
14761 | else | |
14762 | balloc=yes | |
db137867 AC |
14763 | fi |
14764 | ||
14765 | ||
7083c021 AC |
14766 | if test "$balloc" = no; then |
14767 | ||
14768 | $as_echo "#define NOBALLOC 1" >>confdefs.h | |
14769 | ||
db137867 | 14770 | fi |
db137867 | 14771 | |
7083c021 AC |
14772 | # Check whether --enable-warnings was given. |
14773 | if test "${enable_warnings+set}" = set; then : | |
14774 | 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 |
14775 | fi |
14776 | ||
db137867 | 14777 | |
db137867 | 14778 | |
db137867 | 14779 | |
db137867 | 14780 | |
db137867 | 14781 | |
db137867 | 14782 | |
db137867 AC |
14783 | |
14784 | ||
bf4e01a4 AC |
14785 | |
14786 | ||
7083c021 AC |
14787 | if test "$prefix" = "NONE"; then |
14788 | ||
14789 | cat >>confdefs.h <<_ACEOF | |
14790 | #define RB_PREFIX "$ac_default_prefix" | |
db137867 | 14791 | _ACEOF |
7083c021 AC |
14792 | |
14793 | ||
db137867 | 14794 | else |
db137867 | 14795 | |
db137867 | 14796 | |
7083c021 | 14797 | prefix=`echo $prefix | sed 's/\/$//'` |
db137867 | 14798 | |
7083c021 AC |
14799 | cat >>confdefs.h <<_ACEOF |
14800 | #define RB_PREFIX "$prefix" | |
db137867 | 14801 | _ACEOF |
db137867 | 14802 | |
7083c021 | 14803 | |
db137867 AC |
14804 | fi |
14805 | ||
db137867 | 14806 | |
db137867 | 14807 | |
7083c021 | 14808 | ac_config_commands="$ac_config_commands include/librb-config.h" |
db137867 | 14809 | |
db137867 | 14810 | |
db137867 | 14811 | |
7083c021 | 14812 | ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc" |
db137867 AC |
14813 | |
14814 | ||
7083c021 AC |
14815 | cat >confcache <<\_ACEOF |
14816 | # This file is a shell script that caches the results of configure | |
14817 | # tests run on this system so they can be shared between configure | |
14818 | # scripts and configure runs, see configure's option --config-cache. | |
14819 | # It is not useful on other systems. If it contains results you don't | |
14820 | # want to keep, you may remove or edit it. | |
14821 | # | |
14822 | # config.status only pays attention to the cache file if you give it | |
14823 | # the --recheck option to rerun configure. | |
14824 | # | |
14825 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14826 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14827 | # following values. | |
14828 | ||
db137867 | 14829 | _ACEOF |
db137867 | 14830 | |
7083c021 AC |
14831 | # The following way of writing the cache mishandles newlines in values, |
14832 | # but we know of no workaround that is simple, portable, and efficient. | |
14833 | # So, we kill variables containing newlines. | |
14834 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14835 | # and sets the high bit in the cache file unless we assign to the vars. | |
14836 | ( | |
14837 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14838 | eval ac_val=\$$ac_var | |
14839 | case $ac_val in #( | |
14840 | *${as_nl}*) | |
14841 | case $ac_var in #( | |
14842 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14843 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14844 | esac | |
14845 | case $ac_var in #( | |
14846 | _ | IFS | as_nl) ;; #( | |
14847 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14848 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14849 | esac ;; | |
14850 | esac | |
14851 | done | |
14852 | ||
14853 | (set) 2>&1 | | |
14854 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
14855 | *${as_nl}ac_space=\ *) | |
14856 | # `set' does not quote correctly, so add quotes: double-quote | |
14857 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
14858 | sed -n \ | |
14859 | "s/'/'\\\\''/g; | |
14860 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14861 | ;; #( | |
14862 | *) | |
14863 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14864 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
14865 | ;; | |
14866 | esac | | |
14867 | sort | |
14868 | ) | | |
14869 | sed ' | |
14870 | /^ac_cv_env_/b end | |
14871 | t clear | |
14872 | :clear | |
14873 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14874 | t end | |
14875 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14876 | :end' >>confcache | |
14877 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14878 | if test -w "$cache_file"; then | |
08c2568c | 14879 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
14880 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14881 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
08c2568c EM |
14882 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14883 | cat confcache >"$cache_file" | |
14884 | else | |
14885 | case $cache_file in #( | |
14886 | */* | ?:*) | |
14887 | mv -f confcache "$cache_file"$$ && | |
14888 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14889 | *) | |
14890 | mv -f confcache "$cache_file" ;; | |
14891 | esac | |
14892 | fi | |
14893 | fi | |
7083c021 AC |
14894 | else |
14895 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
14896 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
14897 | fi | |
14898 | fi | |
14899 | rm -f confcache | |
14900 | ||
14901 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14902 | # Let make expand exec_prefix. | |
14903 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
db137867 | 14904 | |
7083c021 | 14905 | DEFS=-DHAVE_CONFIG_H |
db137867 | 14906 | |
7083c021 AC |
14907 | ac_libobjs= |
14908 | ac_ltlibobjs= | |
14909 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14910 | # 1. Remove the extension, and $U if already installed. | |
14911 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
14912 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14913 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14914 | # will be set to the directory where LIBOBJS objects are built. | |
14915 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14916 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
14917 | done | |
14918 | LIBOBJS=$ac_libobjs | |
db137867 | 14919 | |
7083c021 | 14920 | LTLIBOBJS=$ac_ltlibobjs |
db137867 | 14921 | |
db137867 | 14922 | |
bf4e01a4 AC |
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14924 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14925 | if test -n "$am_sleep_pid"; then | |
14926 | # Hide warnings about reused PIDs. | |
14927 | wait $am_sleep_pid 2>/dev/null | |
14928 | fi | |
14929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14930 | $as_echo "done" >&6; } | |
7083c021 AC |
14931 | if test -n "$EXEEXT"; then |
14932 | am__EXEEXT_TRUE= | |
14933 | am__EXEEXT_FALSE='#' | |
14934 | else | |
14935 | am__EXEEXT_TRUE='#' | |
14936 | am__EXEEXT_FALSE= | |
db137867 AC |
14937 | fi |
14938 | ||
7083c021 | 14939 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
08c2568c | 14940 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
7083c021 | 14941 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
db137867 | 14942 | fi |
7083c021 | 14943 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
08c2568c | 14944 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
7083c021 AC |
14945 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14946 | fi | |
14947 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
08c2568c | 14948 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
7083c021 AC |
14949 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14950 | fi | |
f171dafb | 14951 | |
7083c021 | 14952 | if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then |
08c2568c | 14953 | as_fn_error $? "conditional \"MINGW\" was never defined. |
7083c021 | 14954 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
db137867 | 14955 | fi |
db137867 | 14956 | |
08c2568c | 14957 | : "${CONFIG_STATUS=./config.status}" |
7083c021 AC |
14958 | ac_write_fail=0 |
14959 | ac_clean_files_save=$ac_clean_files | |
14960 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14961 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
14962 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14963 | as_write_fail=0 | |
14964 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
14965 | #! $SHELL | |
14966 | # Generated by $as_me. | |
14967 | # Run this file to recreate the current configuration. | |
14968 | # Compiler output produced by configure, useful for debugging | |
14969 | # configure, is in config.log if it exists. | |
db137867 | 14970 | |
7083c021 AC |
14971 | debug=false |
14972 | ac_cs_recheck=false | |
14973 | ac_cs_silent=false | |
db137867 | 14974 | |
7083c021 AC |
14975 | SHELL=\${CONFIG_SHELL-$SHELL} |
14976 | export SHELL | |
14977 | _ASEOF | |
14978 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14979 | ## -------------------- ## | |
14980 | ## M4sh Initialization. ## | |
14981 | ## -------------------- ## | |
db137867 | 14982 | |
7083c021 AC |
14983 | # Be more Bourne compatible |
14984 | DUALCASE=1; export DUALCASE # for MKS sh | |
14985 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
14986 | emulate sh | |
14987 | NULLCMD=: | |
14988 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
14989 | # is contrary to our usage. Disable this feature. | |
14990 | alias -g '${1+"$@"}'='"$@"' | |
14991 | setopt NO_GLOB_SUBST | |
14992 | else | |
14993 | case `(set -o) 2>/dev/null` in #( | |
14994 | *posix*) : | |
14995 | set -o posix ;; #( | |
14996 | *) : | |
14997 | ;; | |
14998 | esac | |
14999 | fi | |
db137867 | 15000 | |
db137867 | 15001 | |
7083c021 AC |
15002 | as_nl=' |
15003 | ' | |
15004 | export as_nl | |
15005 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15006 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15007 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15008 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15009 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15010 | # but without wasting forks for bash or zsh. | |
15011 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15012 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15013 | as_echo='print -r --' | |
15014 | as_echo_n='print -rn --' | |
15015 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15016 | as_echo='printf %s\n' | |
15017 | as_echo_n='printf %s' | |
db137867 | 15018 | else |
7083c021 AC |
15019 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
15020 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15021 | as_echo_n='/usr/ucb/echo -n' | |
15022 | else | |
15023 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15024 | as_echo_n_body='eval | |
15025 | arg=$1; | |
15026 | case $arg in #( | |
15027 | *"$as_nl"*) | |
15028 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15029 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15030 | esac; | |
15031 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15032 | ' | |
15033 | export as_echo_n_body | |
15034 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15035 | fi | |
15036 | export as_echo_body | |
15037 | as_echo='sh -c $as_echo_body as_echo' | |
db137867 | 15038 | fi |
7083c021 AC |
15039 | |
15040 | # The user is always right. | |
15041 | if test "${PATH_SEPARATOR+set}" != set; then | |
15042 | PATH_SEPARATOR=: | |
15043 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15044 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15045 | PATH_SEPARATOR=';' | |
15046 | } | |
db137867 AC |
15047 | fi |
15048 | ||
15049 | ||
7083c021 AC |
15050 | # IFS |
15051 | # We need space, tab and new line, in precisely that order. Quoting is | |
15052 | # there to prevent editors from complaining about space-tab. | |
15053 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15054 | # splitting by setting IFS to empty value.) | |
15055 | IFS=" "" $as_nl" | |
db137867 | 15056 | |
7083c021 | 15057 | # Find who we are. Look in the path if we contain no directory separator. |
08c2568c | 15058 | as_myself= |
7083c021 AC |
15059 | case $0 in #(( |
15060 | *[\\/]* ) as_myself=$0 ;; | |
15061 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15062 | for as_dir in $PATH | |
15063 | do | |
15064 | IFS=$as_save_IFS | |
15065 | test -z "$as_dir" && as_dir=. | |
15066 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15067 | done | |
15068 | IFS=$as_save_IFS | |
db137867 | 15069 | |
7083c021 AC |
15070 | ;; |
15071 | esac | |
15072 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15073 | # in which case we are not to be found in the path. | |
15074 | if test "x$as_myself" = x; then | |
15075 | as_myself=$0 | |
15076 | fi | |
15077 | if test ! -f "$as_myself"; then | |
15078 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15079 | exit 1 | |
db137867 | 15080 | fi |
db137867 | 15081 | |
7083c021 AC |
15082 | # Unset variables that we do not need and which cause bugs (e.g. in |
15083 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15084 | # suppresses any "Segmentation fault" message there. '((' could | |
15085 | # trigger a bug in pdksh 5.2.14. | |
15086 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15087 | do eval test x\${$as_var+set} = xset \ | |
15088 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15089 | done | |
15090 | PS1='$ ' | |
15091 | PS2='> ' | |
15092 | PS4='+ ' | |
db137867 | 15093 | |
7083c021 AC |
15094 | # NLS nuisances. |
15095 | LC_ALL=C | |
15096 | export LC_ALL | |
15097 | LANGUAGE=C | |
15098 | export LANGUAGE | |
db137867 | 15099 | |
7083c021 AC |
15100 | # CDPATH. |
15101 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
db137867 | 15102 | |
db137867 | 15103 | |
08c2568c EM |
15104 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15105 | # ---------------------------------------- | |
7083c021 AC |
15106 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15107 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
08c2568c | 15108 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
15109 | as_fn_error () |
15110 | { | |
08c2568c EM |
15111 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15112 | if test "$4"; then | |
15113 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15114 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 15115 | fi |
08c2568c | 15116 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
15117 | as_fn_exit $as_status |
15118 | } # as_fn_error | |
db137867 | 15119 | |
db137867 | 15120 | |
7083c021 AC |
15121 | # as_fn_set_status STATUS |
15122 | # ----------------------- | |
15123 | # Set $? to STATUS, without forking. | |
15124 | as_fn_set_status () | |
15125 | { | |
15126 | return $1 | |
15127 | } # as_fn_set_status | |
15128 | ||
15129 | # as_fn_exit STATUS | |
15130 | # ----------------- | |
15131 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15132 | as_fn_exit () | |
15133 | { | |
15134 | set +e | |
15135 | as_fn_set_status $1 | |
15136 | exit $1 | |
15137 | } # as_fn_exit | |
15138 | ||
15139 | # as_fn_unset VAR | |
15140 | # --------------- | |
15141 | # Portably unset VAR. | |
15142 | as_fn_unset () | |
15143 | { | |
15144 | { eval $1=; unset $1;} | |
15145 | } | |
15146 | as_unset=as_fn_unset | |
15147 | # as_fn_append VAR VALUE | |
15148 | # ---------------------- | |
15149 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15150 | # advantage of any shell optimizations that allow amortized linear growth over | |
15151 | # repeated appends, instead of the typical quadratic growth present in naive | |
15152 | # implementations. | |
15153 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15154 | eval 'as_fn_append () | |
15155 | { | |
15156 | eval $1+=\$2 | |
15157 | }' | |
15158 | else | |
15159 | as_fn_append () | |
15160 | { | |
15161 | eval $1=\$$1\$2 | |
15162 | } | |
15163 | fi # as_fn_append | |
15164 | ||
15165 | # as_fn_arith ARG... | |
15166 | # ------------------ | |
15167 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15168 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15169 | # must be portable across $(()) and expr. | |
15170 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15171 | eval 'as_fn_arith () | |
15172 | { | |
15173 | as_val=$(( $* )) | |
15174 | }' | |
15175 | else | |
15176 | as_fn_arith () | |
15177 | { | |
15178 | as_val=`expr "$@" || test $? -eq 1` | |
15179 | } | |
15180 | fi # as_fn_arith | |
15181 | ||
db137867 | 15182 | |
7083c021 AC |
15183 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15184 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
15185 | as_expr=expr | |
15186 | else | |
15187 | as_expr=false | |
db137867 AC |
15188 | fi |
15189 | ||
7083c021 AC |
15190 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
15191 | as_basename=basename | |
15192 | else | |
15193 | as_basename=false | |
15194 | fi | |
db137867 | 15195 | |
7083c021 AC |
15196 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15197 | as_dirname=dirname | |
db137867 | 15198 | else |
7083c021 | 15199 | as_dirname=false |
db137867 AC |
15200 | fi |
15201 | ||
7083c021 AC |
15202 | as_me=`$as_basename -- "$0" || |
15203 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15204 | X"$0" : 'X\(//\)$' \| \ | |
15205 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
15206 | $as_echo X/"$0" | | |
15207 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15208 | s//\1/ | |
15209 | q | |
15210 | } | |
15211 | /^X\/\(\/\/\)$/{ | |
15212 | s//\1/ | |
15213 | q | |
15214 | } | |
15215 | /^X\/\(\/\).*/{ | |
15216 | s//\1/ | |
15217 | q | |
15218 | } | |
15219 | s/.*/./; q'` | |
db137867 | 15220 | |
7083c021 AC |
15221 | # Avoid depending upon Character Ranges. |
15222 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15223 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15224 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15225 | as_cr_digits='0123456789' | |
15226 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
db137867 | 15227 | |
7083c021 AC |
15228 | ECHO_C= ECHO_N= ECHO_T= |
15229 | case `echo -n x` in #((((( | |
15230 | -n*) | |
15231 | case `echo 'xy\c'` in | |
15232 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15233 | xy) ECHO_C='\c';; | |
15234 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15235 | ECHO_T=' ';; | |
15236 | esac;; | |
15237 | *) | |
15238 | ECHO_N='-n';; | |
15239 | esac | |
15240 | ||
15241 | rm -f conf$$ conf$$.exe conf$$.file | |
15242 | if test -d conf$$.dir; then | |
15243 | rm -f conf$$.dir/conf$$.file | |
db137867 | 15244 | else |
7083c021 AC |
15245 | rm -f conf$$.dir |
15246 | mkdir conf$$.dir 2>/dev/null | |
db137867 | 15247 | fi |
7083c021 AC |
15248 | if (echo >conf$$.file) 2>/dev/null; then |
15249 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15250 | as_ln_s='ln -s' | |
15251 | # ... but there are two gotchas: | |
15252 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15253 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
bf4e01a4 | 15254 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 15255 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bf4e01a4 | 15256 | as_ln_s='cp -pR' |
7083c021 AC |
15257 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15258 | as_ln_s=ln | |
15259 | else | |
bf4e01a4 | 15260 | as_ln_s='cp -pR' |
7083c021 | 15261 | fi |
db137867 | 15262 | else |
bf4e01a4 | 15263 | as_ln_s='cp -pR' |
7083c021 AC |
15264 | fi |
15265 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
15266 | rmdir conf$$.dir 2>/dev/null | |
15267 | ||
15268 | ||
15269 | # as_fn_mkdir_p | |
15270 | # ------------- | |
15271 | # Create "$as_dir" as a directory, including parents if necessary. | |
15272 | as_fn_mkdir_p () | |
db137867 | 15273 | { |
db137867 | 15274 | |
7083c021 AC |
15275 | case $as_dir in #( |
15276 | -*) as_dir=./$as_dir;; | |
15277 | esac | |
15278 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15279 | as_dirs= | |
15280 | while :; do | |
15281 | case $as_dir in #( | |
15282 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15283 | *) as_qdir=$as_dir;; | |
15284 | esac | |
15285 | as_dirs="'$as_qdir' $as_dirs" | |
15286 | as_dir=`$as_dirname -- "$as_dir" || | |
15287 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15288 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15289 | X"$as_dir" : 'X\(//\)$' \| \ | |
15290 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15291 | $as_echo X"$as_dir" | | |
15292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15293 | s//\1/ | |
15294 | q | |
15295 | } | |
15296 | /^X\(\/\/\)[^/].*/{ | |
15297 | s//\1/ | |
15298 | q | |
15299 | } | |
15300 | /^X\(\/\/\)$/{ | |
15301 | s//\1/ | |
15302 | q | |
15303 | } | |
15304 | /^X\(\/\).*/{ | |
15305 | s//\1/ | |
15306 | q | |
15307 | } | |
15308 | s/.*/./; q'` | |
15309 | test -d "$as_dir" && break | |
15310 | done | |
15311 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
08c2568c | 15312 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
15313 | |
15314 | ||
15315 | } # as_fn_mkdir_p | |
15316 | if mkdir -p . 2>/dev/null; then | |
15317 | as_mkdir_p='mkdir -p "$as_dir"' | |
15318 | else | |
15319 | test -d ./-p && rmdir ./-p | |
15320 | as_mkdir_p=false | |
db137867 | 15321 | fi |
7083c021 | 15322 | |
bf4e01a4 AC |
15323 | |
15324 | # as_fn_executable_p FILE | |
15325 | # ----------------------- | |
15326 | # Test if FILE is an executable regular file. | |
15327 | as_fn_executable_p () | |
15328 | { | |
15329 | test -f "$1" && test -x "$1" | |
15330 | } # as_fn_executable_p | |
15331 | as_test_x='test -x' | |
15332 | as_executable_p=as_fn_executable_p | |
db137867 | 15333 | |
7083c021 AC |
15334 | # Sed expression to map a string onto a valid CPP name. |
15335 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 15336 | |
7083c021 AC |
15337 | # Sed expression to map a string onto a valid variable name. |
15338 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 15339 | |
db137867 | 15340 | |
7083c021 AC |
15341 | exec 6>&1 |
15342 | ## ----------------------------------- ## | |
15343 | ## Main body of $CONFIG_STATUS script. ## | |
15344 | ## ----------------------------------- ## | |
15345 | _ASEOF | |
15346 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
db137867 | 15347 | |
7083c021 AC |
15348 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15349 | # Save the log message, to keep $0 and so on meaningful, and to | |
15350 | # report actual input values of CONFIG_FILES etc. instead of their | |
15351 | # values after options handling. | |
15352 | ac_log=" | |
15353 | This file was extended by libratbox $as_me devel, which was | |
bf4e01a4 | 15354 | generated by GNU Autoconf 2.69. Invocation command line was |
db137867 | 15355 | |
7083c021 AC |
15356 | CONFIG_FILES = $CONFIG_FILES |
15357 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15358 | CONFIG_LINKS = $CONFIG_LINKS | |
15359 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15360 | $ $0 $@ | |
15361 | ||
15362 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
15363 | " | |
db137867 | 15364 | |
db137867 | 15365 | _ACEOF |
7083c021 AC |
15366 | |
15367 | case $ac_config_files in *" | |
15368 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
db137867 | 15369 | esac |
db137867 | 15370 | |
7083c021 AC |
15371 | case $ac_config_headers in *" |
15372 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15373 | esac | |
db137867 | 15374 | |
db137867 | 15375 | |
7083c021 AC |
15376 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15377 | # Files that config.status was made for. | |
15378 | config_files="$ac_config_files" | |
15379 | config_headers="$ac_config_headers" | |
15380 | config_commands="$ac_config_commands" | |
db137867 | 15381 | |
db137867 | 15382 | _ACEOF |
db137867 | 15383 | |
7083c021 AC |
15384 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15385 | ac_cs_usage="\ | |
15386 | \`$as_me' instantiates files and other configuration actions | |
15387 | from templates according to the current configuration. Unless the files | |
15388 | and actions are specified as TAGs, all are instantiated by default. | |
15389 | ||
15390 | Usage: $0 [OPTION]... [TAG]... | |
15391 | ||
15392 | -h, --help print this help, then exit | |
15393 | -V, --version print version number and configuration settings, then exit | |
96f4052b | 15394 | --config print configuration, then exit |
7083c021 AC |
15395 | -q, --quiet, --silent |
15396 | do not print progress messages | |
15397 | -d, --debug don't remove temporary files | |
15398 | --recheck update $as_me by reconfiguring in the same conditions | |
15399 | --file=FILE[:TEMPLATE] | |
15400 | instantiate the configuration file FILE | |
15401 | --header=FILE[:TEMPLATE] | |
15402 | instantiate the configuration header FILE | |
15403 | ||
15404 | Configuration files: | |
15405 | $config_files | |
15406 | ||
15407 | Configuration headers: | |
15408 | $config_headers | |
15409 | ||
15410 | Configuration commands: | |
15411 | $config_commands | |
15412 | ||
15413 | Report bugs to the package provider." | |
15414 | ||
db137867 | 15415 | _ACEOF |
7083c021 | 15416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
96f4052b | 15417 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
7083c021 AC |
15418 | ac_cs_version="\\ |
15419 | libratbox config.status devel | |
bf4e01a4 | 15420 | configured by $0, generated by GNU Autoconf 2.69, |
96f4052b | 15421 | with options \\"\$ac_cs_config\\" |
db137867 | 15422 | |
bf4e01a4 | 15423 | Copyright (C) 2012 Free Software Foundation, Inc. |
7083c021 AC |
15424 | This config.status script is free software; the Free Software Foundation |
15425 | gives unlimited permission to copy, distribute and modify it." | |
db137867 | 15426 | |
7083c021 AC |
15427 | ac_pwd='$ac_pwd' |
15428 | srcdir='$srcdir' | |
15429 | INSTALL='$INSTALL' | |
15430 | MKDIR_P='$MKDIR_P' | |
15431 | AWK='$AWK' | |
15432 | test -n "\$AWK" || AWK=awk | |
15433 | _ACEOF | |
db137867 | 15434 | |
7083c021 AC |
15435 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15436 | # The default lists apply if the user does not specify any file. | |
15437 | ac_need_defaults=: | |
15438 | while test $# != 0 | |
15439 | do | |
15440 | case $1 in | |
08c2568c | 15441 | --*=?*) |
7083c021 AC |
15442 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15443 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
15444 | ac_shift=: | |
15445 | ;; | |
08c2568c EM |
15446 | --*=) |
15447 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15448 | ac_optarg= | |
15449 | ac_shift=: | |
15450 | ;; | |
7083c021 AC |
15451 | *) |
15452 | ac_option=$1 | |
15453 | ac_optarg=$2 | |
15454 | ac_shift=shift | |
15455 | ;; | |
15456 | esac | |
15457 | ||
15458 | case $ac_option in | |
15459 | # Handling of the options. | |
15460 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15461 | ac_cs_recheck=: ;; | |
15462 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
15463 | $as_echo "$ac_cs_version"; exit ;; | |
96f4052b AC |
15464 | --config | --confi | --conf | --con | --co | --c ) |
15465 | $as_echo "$ac_cs_config"; exit ;; | |
7083c021 AC |
15466 | --debug | --debu | --deb | --de | --d | -d ) |
15467 | debug=: ;; | |
15468 | --file | --fil | --fi | --f ) | |
15469 | $ac_shift | |
15470 | case $ac_optarg in | |
15471 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
08c2568c | 15472 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
15473 | esac |
15474 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
15475 | ac_need_defaults=false;; | |
15476 | --header | --heade | --head | --hea ) | |
15477 | $ac_shift | |
15478 | case $ac_optarg in | |
15479 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15480 | esac | |
15481 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
15482 | ac_need_defaults=false;; | |
15483 | --he | --h) | |
15484 | # Conflict between --help and --header | |
08c2568c | 15485 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 AC |
15486 | Try \`$0 --help' for more information.";; |
15487 | --help | --hel | -h ) | |
15488 | $as_echo "$ac_cs_usage"; exit ;; | |
15489 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
15490 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15491 | ac_cs_silent=: ;; | |
15492 | ||
15493 | # This is an error. | |
08c2568c | 15494 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 AC |
15495 | Try \`$0 --help' for more information." ;; |
15496 | ||
15497 | *) as_fn_append ac_config_targets " $1" | |
15498 | ac_need_defaults=false ;; | |
15499 | ||
15500 | esac | |
15501 | shift | |
15502 | done | |
db137867 | 15503 | |
7083c021 | 15504 | ac_configure_extra_args= |
c2ac22cc | 15505 | |
7083c021 AC |
15506 | if $ac_cs_silent; then |
15507 | exec 6>/dev/null | |
15508 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15509 | fi | |
c2ac22cc | 15510 | |
7083c021 AC |
15511 | _ACEOF |
15512 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15513 | if \$ac_cs_recheck; then | |
bf4e01a4 | 15514 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
15515 | shift |
15516 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15517 | CONFIG_SHELL='$SHELL' | |
15518 | export CONFIG_SHELL | |
15519 | exec "\$@" | |
c2ac22cc VY |
15520 | fi |
15521 | ||
7083c021 AC |
15522 | _ACEOF |
15523 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15524 | exec 5>>config.log | |
15525 | { | |
15526 | echo | |
15527 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15528 | ## Running $as_me. ## | |
15529 | _ASBOX | |
15530 | $as_echo "$ac_log" | |
15531 | } >&5 | |
c2ac22cc | 15532 | |
7083c021 AC |
15533 | _ACEOF |
15534 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15535 | # | |
15536 | # INIT-COMMANDS | |
15537 | # | |
15538 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
c2ac22cc VY |
15539 | |
15540 | ||
7083c021 AC |
15541 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
15542 | # if CDPATH is set. | |
15543 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15544 | ||
15545 | sed_quote_subst='$sed_quote_subst' | |
15546 | double_quote_subst='$double_quote_subst' | |
15547 | delay_variable_subst='$delay_variable_subst' | |
b6d0720c AC |
15548 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
15549 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
15550 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
15551 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
15552 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
15553 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
15554 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
15555 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
a949ab1a | 15556 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
15557 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
15558 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
15559 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
15560 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
15561 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
15562 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
15563 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
15564 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
15565 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
15566 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
15567 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
15568 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
15569 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
15570 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
15571 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
15572 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
15573 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
15574 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
15575 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
15576 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
15577 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
15578 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
15579 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
15580 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
15581 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
15582 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
15583 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
15584 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
15585 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
15586 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
15587 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
15588 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
15589 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
15590 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
15591 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
15592 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
15593 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15594 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15595 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15596 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
15597 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
15598 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
15599 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
15600 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
15601 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15602 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15603 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15604 | 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"`' | |
15605 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15606 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
15607 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15608 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15609 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
15610 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
15611 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
15612 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
15613 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15614 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15615 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
15616 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15617 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15618 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15619 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15620 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15621 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15622 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15623 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15624 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15625 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15626 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15627 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15628 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15629 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15630 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15631 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15632 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15633 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15634 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15635 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15636 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15637 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15638 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
b6d0720c AC |
15639 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
15640 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15641 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15642 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15643 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15644 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15645 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15646 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
15647 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
15648 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15649 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15650 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15651 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15652 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
15653 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15654 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15655 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15656 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15657 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15658 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15659 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15660 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15661 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15662 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15663 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15664 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15665 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15666 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15667 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15668 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15669 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15670 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15671 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15672 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15673 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15674 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15675 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15676 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15677 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
7083c021 AC |
15678 | |
15679 | LTCC='$LTCC' | |
15680 | LTCFLAGS='$LTCFLAGS' | |
15681 | compiler='$compiler_DEFAULT' | |
15682 | ||
b6d0720c AC |
15683 | # A function that is used when there is no print builtin or printf. |
15684 | func_fallback_echo () | |
15685 | { | |
15686 | eval 'cat <<_LTECHO_EOF | |
15687 | \$1 | |
15688 | _LTECHO_EOF' | |
15689 | } | |
15690 | ||
7083c021 | 15691 | # Quote evaled strings. |
b6d0720c AC |
15692 | for var in SHELL \ |
15693 | ECHO \ | |
a949ab1a | 15694 | PATH_SEPARATOR \ |
b6d0720c | 15695 | SED \ |
7083c021 AC |
15696 | GREP \ |
15697 | EGREP \ | |
15698 | FGREP \ | |
15699 | LD \ | |
15700 | NM \ | |
15701 | LN_S \ | |
15702 | lt_SP2NL \ | |
15703 | lt_NL2SP \ | |
15704 | reload_flag \ | |
15705 | OBJDUMP \ | |
15706 | deplibs_check_method \ | |
15707 | file_magic_cmd \ | |
b6d0720c AC |
15708 | file_magic_glob \ |
15709 | want_nocaseglob \ | |
15710 | DLLTOOL \ | |
15711 | sharedlib_from_linklib_cmd \ | |
7083c021 AC |
15712 | AR \ |
15713 | AR_FLAGS \ | |
b6d0720c | 15714 | archiver_list_spec \ |
7083c021 AC |
15715 | STRIP \ |
15716 | RANLIB \ | |
15717 | CC \ | |
15718 | CFLAGS \ | |
15719 | compiler \ | |
15720 | lt_cv_sys_global_symbol_pipe \ | |
15721 | lt_cv_sys_global_symbol_to_cdecl \ | |
15722 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15723 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
b6d0720c | 15724 | nm_file_list_spec \ |
7083c021 | 15725 | lt_prog_compiler_no_builtin_flag \ |
7083c021 | 15726 | lt_prog_compiler_pic \ |
b6d0720c | 15727 | lt_prog_compiler_wl \ |
7083c021 AC |
15728 | lt_prog_compiler_static \ |
15729 | lt_cv_prog_compiler_c_o \ | |
15730 | need_locks \ | |
b6d0720c | 15731 | MANIFEST_TOOL \ |
7083c021 AC |
15732 | DSYMUTIL \ |
15733 | NMEDIT \ | |
15734 | LIPO \ | |
15735 | OTOOL \ | |
15736 | OTOOL64 \ | |
15737 | shrext_cmds \ | |
15738 | export_dynamic_flag_spec \ | |
15739 | whole_archive_flag_spec \ | |
15740 | compiler_needs_object \ | |
15741 | with_gnu_ld \ | |
15742 | allow_undefined_flag \ | |
15743 | no_undefined_flag \ | |
15744 | hardcode_libdir_flag_spec \ | |
7083c021 | 15745 | hardcode_libdir_separator \ |
7083c021 AC |
15746 | exclude_expsyms \ |
15747 | include_expsyms \ | |
15748 | file_list_spec \ | |
15749 | variables_saved_for_relink \ | |
15750 | libname_spec \ | |
15751 | library_names_spec \ | |
15752 | soname_spec \ | |
b6d0720c | 15753 | install_override_mode \ |
7083c021 AC |
15754 | finish_eval \ |
15755 | old_striplib \ | |
15756 | striplib; do | |
b6d0720c | 15757 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
7083c021 | 15758 | *[\\\\\\\`\\"\\\$]*) |
b6d0720c | 15759 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
7083c021 AC |
15760 | ;; |
15761 | *) | |
15762 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15763 | ;; | |
15764 | esac | |
c2ac22cc | 15765 | done |
7083c021 AC |
15766 | |
15767 | # Double-quote double-evaled strings. | |
15768 | for var in reload_cmds \ | |
15769 | old_postinstall_cmds \ | |
15770 | old_postuninstall_cmds \ | |
15771 | old_archive_cmds \ | |
15772 | extract_expsyms_cmds \ | |
15773 | old_archive_from_new_cmds \ | |
15774 | old_archive_from_expsyms_cmds \ | |
15775 | archive_cmds \ | |
15776 | archive_expsym_cmds \ | |
15777 | module_cmds \ | |
15778 | module_expsym_cmds \ | |
15779 | export_symbols_cmds \ | |
15780 | prelink_cmds \ | |
b6d0720c | 15781 | postlink_cmds \ |
7083c021 AC |
15782 | postinstall_cmds \ |
15783 | postuninstall_cmds \ | |
15784 | finish_cmds \ | |
15785 | sys_lib_search_path_spec \ | |
15786 | sys_lib_dlsearch_path_spec; do | |
b6d0720c | 15787 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
7083c021 | 15788 | *[\\\\\\\`\\"\\\$]*) |
b6d0720c | 15789 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
7083c021 AC |
15790 | ;; |
15791 | *) | |
15792 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15793 | ;; | |
15794 | esac | |
c2ac22cc | 15795 | done |
c2ac22cc | 15796 | |
7083c021 AC |
15797 | ac_aux_dir='$ac_aux_dir' |
15798 | xsi_shell='$xsi_shell' | |
15799 | lt_shell_append='$lt_shell_append' | |
c2ac22cc | 15800 | |
7083c021 AC |
15801 | # See if we are running on zsh, and set the options which allow our |
15802 | # commands through without removal of \ escapes INIT. | |
15803 | if test -n "\${ZSH_VERSION+set}" ; then | |
15804 | setopt NO_GLOB_SUBST | |
c2ac22cc | 15805 | fi |
c2ac22cc | 15806 | |
c2ac22cc | 15807 | |
7083c021 AC |
15808 | PACKAGE='$PACKAGE' |
15809 | VERSION='$VERSION' | |
15810 | TIMESTAMP='$TIMESTAMP' | |
15811 | RM='$RM' | |
15812 | ofile='$ofile' | |
c2ac22cc | 15813 | |
c2ac22cc | 15814 | |
c2ac22cc | 15815 | |
c2ac22cc | 15816 | |
7083c021 AC |
15817 | if test x$ac_cv_header_stdc = xyes; then |
15818 | rb_header_stdc=yes | |
15819 | fi | |
15820 | if test x$ac_cv_header_stdlib_h = xyes; then | |
15821 | rb_header_stdlib_h=yes | |
15822 | fi | |
15823 | if test x$ac_cv_header_string_h = xyes; then | |
15824 | rb_header_string_h=yes | |
15825 | fi | |
15826 | if test x$ac_cv_header_memory_h = xyes; then | |
15827 | rb_header_memory_h=yes | |
15828 | fi | |
15829 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then | |
15830 | rb_alloca_h="$ac_cv_working_alloca_h" | |
15831 | else | |
15832 | rb_alloc_h="$ac_cv_header_alloca_h" | |
15833 | fi | |
15834 | if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then | |
15835 | rb_sockaddr_sa_len=yes | |
15836 | fi | |
15837 | if test x$ac_cv_header_sys_socket_h = xyes; then | |
15838 | rb_sys_socket_h=yes | |
15839 | fi | |
15840 | if test x$ac_cv_header_sys_types_h = xyes; then | |
15841 | rb_sys_types_h=yes | |
15842 | fi | |
15843 | if test x$ac_cv_header_sys_stat_h = xyes; then | |
15844 | rb_sys_stat_h=yes | |
15845 | fi | |
15846 | if test x$ac_cv_header_sys_time_h = xyes; then | |
15847 | rb_sys_time_h=yes | |
15848 | fi | |
15849 | if test x$ac_cv_header_time = xyes; then | |
15850 | rb_time_h=yes | |
15851 | fi | |
c2ac22cc | 15852 | |
7083c021 AC |
15853 | if test x$ac_cv_header_stdint_h = xyes; then |
15854 | rb_stdint_h=yes | |
15855 | fi | |
15856 | if test x$ac_cv_header_inttypes_h = xyes; then | |
15857 | rb_inttypes_h=yes | |
15858 | fi | |
15859 | if test x$ac_cv_header_netinet_in_h = xyes; then | |
15860 | rb_netinet_in_h=yes | |
15861 | fi | |
c2ac22cc | 15862 | |
7083c021 AC |
15863 | if test x$ac_cv_header_crypt_h = xyes; then |
15864 | rb_crypt_h=yes | |
15865 | fi | |
15866 | if test x$ac_cv_header_errno_h = xyes; then | |
15867 | rb_errno_h=yes | |
15868 | fi | |
15869 | if test x$ac_cv_header_unistd_h = xyes; then | |
15870 | rb_unistd_h=yes | |
15871 | fi | |
15872 | if test x$ac_cv_header_windows_h = xyes; then | |
15873 | rb_windows_h=yes | |
15874 | fi | |
15875 | if test x$ac_cv_header_winsock2_h = xyes; then | |
15876 | rb_winsock2_h=yes | |
15877 | fi | |
c2ac22cc | 15878 | |
7083c021 | 15879 | rb_socklen_t=$rb_socklen_t |
c2ac22cc | 15880 | |
7083c021 AC |
15881 | if test "x$rb_have_sockaddr_storage" = "xyes"; then |
15882 | rb_sockaddr_storage="yes" | |
15883 | else | |
15884 | rb_sockaddr_storage="no" | |
15885 | fi | |
c2ac22cc | 15886 | |
7083c021 | 15887 | rb_have_ipv6="$have_v6" |
c2ac22cc | 15888 | |
7083c021 AC |
15889 | rb_mv="$MV" |
15890 | rb_rm="$RM" | |
c2ac22cc | 15891 | |
c2ac22cc | 15892 | |
c2ac22cc | 15893 | |
db137867 | 15894 | |
db137867 | 15895 | |
c2ac22cc | 15896 | |
c2ac22cc VY |
15897 | _ACEOF |
15898 | ||
7083c021 | 15899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 | 15900 | |
7083c021 AC |
15901 | # Handling of arguments. |
15902 | for ac_config_target in $ac_config_targets | |
15903 | do | |
15904 | case $ac_config_target in | |
15905 | "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;; | |
15906 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15907 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15908 | "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;; | |
15909 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
15910 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15911 | "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;; | |
c2ac22cc | 15912 | |
08c2568c | 15913 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
7083c021 AC |
15914 | esac |
15915 | done | |
c2ac22cc | 15916 | |
db137867 | 15917 | |
7083c021 AC |
15918 | # If the user did not use the arguments to specify the items to instantiate, |
15919 | # then the envvar interface is used. Set only those that are not. | |
15920 | # We use the long form for the default assignment because of an extremely | |
15921 | # bizarre bug on SunOS 4.1.3. | |
15922 | if $ac_need_defaults; then | |
15923 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15924 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15925 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15926 | fi | |
db137867 | 15927 | |
7083c021 AC |
15928 | # Have a temporary directory for convenience. Make it in the build tree |
15929 | # simply because there is no reason against having it here, and in addition, | |
15930 | # creating and moving files from /tmp can sometimes cause problems. | |
15931 | # Hook for its removal unless debugging. | |
15932 | # Note that there is a small window in which the directory will not be cleaned: | |
15933 | # after its creation but before its name has been assigned to `$tmp'. | |
15934 | $debug || | |
15935 | { | |
08c2568c | 15936 | tmp= ac_tmp= |
7083c021 | 15937 | trap 'exit_status=$? |
08c2568c EM |
15938 | : "${ac_tmp:=$tmp}" |
15939 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7083c021 AC |
15940 | ' 0 |
15941 | trap 'as_fn_exit 1' 1 2 13 15 | |
15942 | } | |
15943 | # Create a (secure) tmp directory for tmp files. | |
db137867 | 15944 | |
7083c021 AC |
15945 | { |
15946 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
08c2568c | 15947 | test -d "$tmp" |
7083c021 AC |
15948 | } || |
15949 | { | |
15950 | tmp=./conf$$-$RANDOM | |
15951 | (umask 077 && mkdir "$tmp") | |
08c2568c EM |
15952 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15953 | ac_tmp=$tmp | |
db137867 | 15954 | |
7083c021 AC |
15955 | # Set up the scripts for CONFIG_FILES section. |
15956 | # No need to generate them if there are no CONFIG_FILES. | |
15957 | # This happens for instance with `./config.status config.h'. | |
15958 | if test -n "$CONFIG_FILES"; then | |
db137867 AC |
15959 | |
15960 | ||
7083c021 AC |
15961 | ac_cr=`echo X | tr X '\015'` |
15962 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15963 | # But we know of no other shell where ac_cr would be empty at this | |
15964 | # point, so we can use a bashism as a fallback. | |
15965 | if test "x$ac_cr" = x; then | |
15966 | eval ac_cr=\$\'\\r\' | |
15967 | fi | |
15968 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15969 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
08c2568c | 15970 | ac_cs_awk_cr='\\r' |
db137867 | 15971 | else |
7083c021 | 15972 | ac_cs_awk_cr=$ac_cr |
db137867 AC |
15973 | fi |
15974 | ||
08c2568c | 15975 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
db137867 AC |
15976 | _ACEOF |
15977 | ||
db137867 | 15978 | |
7083c021 AC |
15979 | { |
15980 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15981 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15982 | echo "_ACEOF" | |
15983 | } >conf$$subs.sh || | |
08c2568c EM |
15984 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15985 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7083c021 AC |
15986 | ac_delim='%!_!# ' |
15987 | for ac_last_try in false false false false false :; do | |
15988 | . ./conf$$subs.sh || | |
08c2568c | 15989 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
db137867 | 15990 | |
7083c021 AC |
15991 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
15992 | if test $ac_delim_n = $ac_delim_num; then | |
15993 | break | |
15994 | elif $ac_last_try; then | |
08c2568c | 15995 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
15996 | else |
15997 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15998 | fi | |
15999 | done | |
16000 | rm -f conf$$subs.sh | |
db137867 | 16001 | |
7083c021 | 16002 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
08c2568c | 16003 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
db137867 | 16004 | _ACEOF |
7083c021 AC |
16005 | sed -n ' |
16006 | h | |
16007 | s/^/S["/; s/!.*/"]=/ | |
16008 | p | |
16009 | g | |
16010 | s/^[^!]*!// | |
16011 | :repl | |
16012 | t repl | |
16013 | s/'"$ac_delim"'$// | |
16014 | t delim | |
16015 | :nl | |
16016 | h | |
96f4052b | 16017 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
16018 | t more1 |
16019 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16020 | p | |
16021 | n | |
16022 | b repl | |
16023 | :more1 | |
16024 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16025 | p | |
16026 | g | |
16027 | s/.\{148\}// | |
16028 | t nl | |
16029 | :delim | |
16030 | h | |
96f4052b | 16031 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
16032 | t more2 |
16033 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16034 | p | |
16035 | b | |
16036 | :more2 | |
16037 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16038 | p | |
16039 | g | |
16040 | s/.\{148\}// | |
16041 | t delim | |
16042 | ' <conf$$subs.awk | sed ' | |
16043 | /^[^""]/{ | |
16044 | N | |
16045 | s/\n// | |
16046 | } | |
16047 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16048 | rm -f conf$$subs.awk | |
16049 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16050 | _ACAWK | |
08c2568c | 16051 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
16052 | for (key in S) S_is_set[key] = 1 |
16053 | FS = "\a" | |
db137867 | 16054 | |
7083c021 AC |
16055 | } |
16056 | { | |
16057 | line = $ 0 | |
16058 | nfields = split(line, field, "@") | |
16059 | substed = 0 | |
16060 | len = length(field[1]) | |
16061 | for (i = 2; i < nfields; i++) { | |
16062 | key = field[i] | |
16063 | keylen = length(key) | |
16064 | if (S_is_set[key]) { | |
16065 | value = S[key] | |
16066 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16067 | len += length(value) + length(field[++i]) | |
16068 | substed = 1 | |
16069 | } else | |
16070 | len += 1 + keylen | |
16071 | } | |
db137867 | 16072 | |
7083c021 AC |
16073 | print line |
16074 | } | |
16075 | ||
16076 | _ACAWK | |
16077 | _ACEOF | |
16078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16079 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16080 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
db137867 | 16081 | else |
7083c021 | 16082 | cat |
08c2568c EM |
16083 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16084 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
7083c021 | 16085 | _ACEOF |
db137867 | 16086 | |
08c2568c EM |
16087 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16088 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7083c021 AC |
16089 | # trailing colons and then remove the whole line if VPATH becomes empty |
16090 | # (actually we leave an empty line to preserve line numbers). | |
16091 | if test "x$srcdir" = x.; then | |
08c2568c EM |
16092 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16093 | h | |
16094 | s/// | |
16095 | s/^/:/ | |
16096 | s/[ ]*$/:/ | |
16097 | s/:\$(srcdir):/:/g | |
16098 | s/:\${srcdir}:/:/g | |
16099 | s/:@srcdir@:/:/g | |
16100 | s/^:*// | |
7083c021 | 16101 | s/:*$// |
08c2568c EM |
16102 | x |
16103 | s/\(=[ ]*\).*/\1/ | |
16104 | G | |
16105 | s/\n// | |
7083c021 AC |
16106 | s/^[^=]*=[ ]*$// |
16107 | }' | |
16108 | fi | |
db137867 | 16109 | |
7083c021 AC |
16110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16111 | fi # test -n "$CONFIG_FILES" | |
db137867 | 16112 | |
7083c021 AC |
16113 | # Set up the scripts for CONFIG_HEADERS section. |
16114 | # No need to generate them if there are no CONFIG_HEADERS. | |
16115 | # This happens for instance with `./config.status Makefile'. | |
16116 | if test -n "$CONFIG_HEADERS"; then | |
08c2568c | 16117 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 | 16118 | BEGIN { |
db137867 AC |
16119 | _ACEOF |
16120 | ||
7083c021 AC |
16121 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
16122 | # here-document in config.status, that substitutes the proper values into | |
16123 | # config.h.in to produce config.h. | |
db137867 | 16124 | |
7083c021 AC |
16125 | # Create a delimiter string that does not exist in confdefs.h, to ease |
16126 | # handling of long lines. | |
16127 | ac_delim='%!_!# ' | |
16128 | for ac_last_try in false false :; do | |
08c2568c EM |
16129 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16130 | if test -z "$ac_tt"; then | |
7083c021 AC |
16131 | break |
16132 | elif $ac_last_try; then | |
08c2568c | 16133 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
16134 | else |
16135 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16136 | fi | |
16137 | done | |
db137867 | 16138 | |
7083c021 AC |
16139 | # For the awk script, D is an array of macro values keyed by name, |
16140 | # likewise P contains macro parameters if any. Preserve backslash | |
16141 | # newline sequences. | |
db137867 | 16142 | |
7083c021 AC |
16143 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
16144 | sed -n ' | |
16145 | s/.\{148\}/&'"$ac_delim"'/g | |
16146 | t rset | |
16147 | :rset | |
16148 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16149 | t def | |
16150 | d | |
16151 | :def | |
16152 | s/\\$// | |
16153 | t bsnl | |
16154 | s/["\\]/\\&/g | |
16155 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16156 | D["\1"]=" \3"/p | |
16157 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16158 | d | |
16159 | :bsnl | |
16160 | s/["\\]/\\&/g | |
16161 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16162 | D["\1"]=" \3\\\\\\n"\\/p | |
16163 | t cont | |
16164 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16165 | t cont | |
16166 | d | |
16167 | :cont | |
16168 | n | |
16169 | s/.\{148\}/&'"$ac_delim"'/g | |
16170 | t clear | |
16171 | :clear | |
16172 | s/\\$// | |
16173 | t bsnlc | |
16174 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16175 | d | |
16176 | :bsnlc | |
16177 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16178 | b cont | |
16179 | ' <confdefs.h | sed ' | |
16180 | s/'"$ac_delim"'/"\\\ | |
16181 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
db137867 | 16182 | |
7083c021 AC |
16183 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16184 | for (key in D) D_is_set[key] = 1 | |
16185 | FS = "\a" | |
16186 | } | |
16187 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16188 | line = \$ 0 | |
16189 | split(line, arg, " ") | |
16190 | if (arg[1] == "#") { | |
16191 | defundef = arg[2] | |
16192 | mac1 = arg[3] | |
16193 | } else { | |
16194 | defundef = substr(arg[1], 2) | |
16195 | mac1 = arg[2] | |
16196 | } | |
16197 | split(mac1, mac2, "(") #) | |
16198 | macro = mac2[1] | |
16199 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16200 | if (D_is_set[macro]) { | |
16201 | # Preserve the white space surrounding the "#". | |
16202 | print prefix "define", macro P[macro] D[macro] | |
16203 | next | |
16204 | } else { | |
16205 | # Replace #undef with comments. This is necessary, for example, | |
16206 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16207 | # on some systems where configure will not decide to define it. | |
16208 | if (defundef == "undef") { | |
16209 | print "/*", prefix defundef, macro, "*/" | |
16210 | next | |
16211 | } | |
16212 | } | |
16213 | } | |
16214 | { print } | |
16215 | _ACAWK | |
db137867 | 16216 | _ACEOF |
7083c021 | 16217 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
08c2568c | 16218 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 | 16219 | fi # test -n "$CONFIG_HEADERS" |
db137867 AC |
16220 | |
16221 | ||
7083c021 AC |
16222 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
16223 | shift | |
16224 | for ac_tag | |
16225 | do | |
16226 | case $ac_tag in | |
16227 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16228 | esac | |
16229 | case $ac_mode$ac_tag in | |
16230 | :[FHL]*:*);; | |
08c2568c | 16231 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7083c021 AC |
16232 | :[FH]-) ac_tag=-:-;; |
16233 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16234 | esac | |
16235 | ac_save_IFS=$IFS | |
16236 | IFS=: | |
16237 | set x $ac_tag | |
16238 | IFS=$ac_save_IFS | |
16239 | shift | |
16240 | ac_file=$1 | |
16241 | shift | |
db137867 | 16242 | |
7083c021 AC |
16243 | case $ac_mode in |
16244 | :L) ac_source=$1;; | |
16245 | :[FH]) | |
16246 | ac_file_inputs= | |
16247 | for ac_f | |
16248 | do | |
16249 | case $ac_f in | |
08c2568c | 16250 | -) ac_f="$ac_tmp/stdin";; |
7083c021 AC |
16251 | *) # Look for the file first in the build tree, then in the source tree |
16252 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16253 | # because $ac_f cannot contain `:'. | |
16254 | test -f "$ac_f" || | |
16255 | case $ac_f in | |
16256 | [\\/$]*) false;; | |
16257 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16258 | esac || | |
08c2568c | 16259 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7083c021 AC |
16260 | esac |
16261 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16262 | as_fn_append ac_file_inputs " '$ac_f'" | |
16263 | done | |
db137867 | 16264 | |
7083c021 AC |
16265 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16266 | # use $as_me), people would be surprised to read: | |
16267 | # /* config.h. Generated by config.status. */ | |
16268 | configure_input='Generated from '` | |
16269 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16270 | `' by configure.' | |
16271 | if test x"$ac_file" != x-; then | |
16272 | configure_input="$ac_file. $configure_input" | |
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16274 | $as_echo "$as_me: creating $ac_file" >&6;} | |
16275 | fi | |
16276 | # Neutralize special characters interpreted by sed in replacement strings. | |
16277 | case $configure_input in #( | |
16278 | *\&* | *\|* | *\\* ) | |
16279 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16280 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16281 | *) ac_sed_conf_input=$configure_input;; | |
16282 | esac | |
db137867 | 16283 | |
7083c021 | 16284 | case $ac_tag in |
08c2568c EM |
16285 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16286 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
7083c021 AC |
16287 | esac |
16288 | ;; | |
16289 | esac | |
db137867 | 16290 | |
7083c021 AC |
16291 | ac_dir=`$as_dirname -- "$ac_file" || |
16292 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16293 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16294 | X"$ac_file" : 'X\(//\)$' \| \ | |
16295 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
16296 | $as_echo X"$ac_file" | | |
16297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16298 | s//\1/ | |
16299 | q | |
16300 | } | |
16301 | /^X\(\/\/\)[^/].*/{ | |
16302 | s//\1/ | |
16303 | q | |
16304 | } | |
16305 | /^X\(\/\/\)$/{ | |
16306 | s//\1/ | |
16307 | q | |
16308 | } | |
16309 | /^X\(\/\).*/{ | |
16310 | s//\1/ | |
16311 | q | |
16312 | } | |
16313 | s/.*/./; q'` | |
16314 | as_dir="$ac_dir"; as_fn_mkdir_p | |
16315 | ac_builddir=. | |
db137867 | 16316 | |
7083c021 AC |
16317 | case "$ac_dir" in |
16318 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16319 | *) | |
16320 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16321 | # A ".." for each directory in $ac_dir_suffix. | |
16322 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16323 | case $ac_top_builddir_sub in | |
16324 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16325 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16326 | esac ;; | |
16327 | esac | |
16328 | ac_abs_top_builddir=$ac_pwd | |
16329 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16330 | # for backward compatibility: | |
16331 | ac_top_builddir=$ac_top_build_prefix | |
db137867 | 16332 | |
7083c021 AC |
16333 | case $srcdir in |
16334 | .) # We are building in place. | |
16335 | ac_srcdir=. | |
16336 | ac_top_srcdir=$ac_top_builddir_sub | |
16337 | ac_abs_top_srcdir=$ac_pwd ;; | |
16338 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
16339 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16340 | ac_top_srcdir=$srcdir | |
16341 | ac_abs_top_srcdir=$srcdir ;; | |
16342 | *) # Relative name. | |
16343 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16344 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16345 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
16346 | esac | |
16347 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
db137867 | 16348 | |
c2ac22cc | 16349 | |
7083c021 AC |
16350 | case $ac_mode in |
16351 | :F) | |
16352 | # | |
16353 | # CONFIG_FILE | |
16354 | # | |
db137867 | 16355 | |
7083c021 AC |
16356 | case $INSTALL in |
16357 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16358 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
16359 | esac | |
16360 | ac_MKDIR_P=$MKDIR_P | |
16361 | case $MKDIR_P in | |
16362 | [\\/$]* | ?:[\\/]* ) ;; | |
16363 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16364 | esac | |
db137867 AC |
16365 | _ACEOF |
16366 | ||
7083c021 AC |
16367 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16368 | # If the template does not know about datarootdir, expand it. | |
16369 | # FIXME: This hack should be removed a few years after 2.60. | |
16370 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16371 | ac_sed_dataroot=' | |
16372 | /datarootdir/ { | |
16373 | p | |
16374 | q | |
16375 | } | |
16376 | /@datadir@/p | |
16377 | /@docdir@/p | |
16378 | /@infodir@/p | |
16379 | /@localedir@/p | |
16380 | /@mandir@/p' | |
16381 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16382 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16383 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16385 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16386 | _ACEOF | |
16387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16388 | ac_datarootdir_hack=' | |
16389 | s&@datadir@&$datadir&g | |
16390 | s&@docdir@&$docdir&g | |
16391 | s&@infodir@&$infodir&g | |
16392 | s&@localedir@&$localedir&g | |
16393 | s&@mandir@&$mandir&g | |
16394 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16395 | esac | |
db137867 AC |
16396 | _ACEOF |
16397 | ||
7083c021 AC |
16398 | # Neutralize VPATH when `$srcdir' = `.'. |
16399 | # Shell code in configure.ac might set extrasub. | |
16400 | # FIXME: do we really want to maintain this feature? | |
16401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16402 | ac_sed_extra="$ac_vpsub | |
16403 | $extrasub | |
16404 | _ACEOF | |
16405 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16406 | :t | |
16407 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16408 | s|@configure_input@|$ac_sed_conf_input|;t t | |
16409 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16410 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16411 | s&@srcdir@&$ac_srcdir&;t t | |
16412 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16413 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16414 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16415 | s&@builddir@&$ac_builddir&;t t | |
16416 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16417 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16418 | s&@INSTALL@&$ac_INSTALL&;t t | |
16419 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16420 | $ac_datarootdir_hack | |
16421 | " | |
08c2568c EM |
16422 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16423 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
db137867 | 16424 | |
7083c021 | 16425 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
08c2568c EM |
16426 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16427 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16428 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
08c2568c | 16430 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 16431 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
08c2568c | 16432 | which seems to be undefined. Please make sure it is defined" >&2;} |
db137867 | 16433 | |
08c2568c | 16434 | rm -f "$ac_tmp/stdin" |
7083c021 | 16435 | case $ac_file in |
08c2568c EM |
16436 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16437 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 16438 | esac \ |
08c2568c | 16439 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7083c021 AC |
16440 | ;; |
16441 | :H) | |
16442 | # | |
16443 | # CONFIG_HEADER | |
16444 | # | |
16445 | if test x"$ac_file" != x-; then | |
16446 | { | |
16447 | $as_echo "/* $configure_input */" \ | |
08c2568c EM |
16448 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16449 | } >"$ac_tmp/config.h" \ | |
16450 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16451 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
16452 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16453 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
16454 | else | |
16455 | rm -f "$ac_file" | |
08c2568c EM |
16456 | mv "$ac_tmp/config.h" "$ac_file" \ |
16457 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7083c021 AC |
16458 | fi |
16459 | else | |
16460 | $as_echo "/* $configure_input */" \ | |
08c2568c EM |
16461 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16462 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
7083c021 AC |
16463 | fi |
16464 | # Compute "$ac_file"'s index in $config_headers. | |
16465 | _am_arg="$ac_file" | |
16466 | _am_stamp_count=1 | |
16467 | for _am_header in $config_headers :; do | |
16468 | case $_am_header in | |
16469 | $_am_arg | $_am_arg:* ) | |
16470 | break ;; | |
16471 | * ) | |
16472 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16473 | esac | |
16474 | done | |
16475 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
16476 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16477 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
16478 | X"$_am_arg" : 'X\(//\)$' \| \ | |
16479 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
16480 | $as_echo X"$_am_arg" | | |
16481 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16482 | s//\1/ | |
16483 | q | |
16484 | } | |
16485 | /^X\(\/\/\)[^/].*/{ | |
16486 | s//\1/ | |
16487 | q | |
16488 | } | |
16489 | /^X\(\/\/\)$/{ | |
16490 | s//\1/ | |
16491 | q | |
16492 | } | |
16493 | /^X\(\/\).*/{ | |
16494 | s//\1/ | |
16495 | q | |
16496 | } | |
16497 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16498 | ;; | |
db137867 | 16499 | |
7083c021 AC |
16500 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16501 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16502 | ;; | |
16503 | esac | |
db137867 | 16504 | |
db137867 | 16505 | |
7083c021 AC |
16506 | case $ac_file$ac_mode in |
16507 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
bf4e01a4 | 16508 | # Older Autoconf quotes --file arguments for eval, but not when files |
7083c021 AC |
16509 | # are listed without --file. Let's play safe and only enable the eval |
16510 | # if we detect the quoting. | |
16511 | case $CONFIG_FILES in | |
16512 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16513 | *) set x $CONFIG_FILES ;; | |
16514 | esac | |
16515 | shift | |
16516 | for mf | |
16517 | do | |
16518 | # Strip MF so we end up with the name of the file. | |
16519 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16520 | # Check whether this is an Automake generated Makefile or not. | |
bf4e01a4 | 16521 | # We used to match only the files named 'Makefile.in', but |
7083c021 AC |
16522 | # some people rename them; so instead we look at the file content. |
16523 | # Grep'ing the first line is not enough: some people post-process | |
16524 | # each Makefile.in and add a new line on top of each file to say so. | |
16525 | # Grep'ing the whole file is not good either: AIX grep has a line | |
16526 | # limit of 2048, but all sed's we know have understand at least 4000. | |
16527 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
16528 | dirpart=`$as_dirname -- "$mf" || | |
16529 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16530 | X"$mf" : 'X\(//\)[^/]' \| \ | |
16531 | X"$mf" : 'X\(//\)$' \| \ | |
16532 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
16533 | $as_echo X"$mf" | | |
16534 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16535 | s//\1/ | |
16536 | q | |
16537 | } | |
16538 | /^X\(\/\/\)[^/].*/{ | |
16539 | s//\1/ | |
16540 | q | |
16541 | } | |
16542 | /^X\(\/\/\)$/{ | |
16543 | s//\1/ | |
16544 | q | |
16545 | } | |
16546 | /^X\(\/\).*/{ | |
16547 | s//\1/ | |
16548 | q | |
16549 | } | |
16550 | s/.*/./; q'` | |
16551 | else | |
16552 | continue | |
16553 | fi | |
16554 | # Extract the definition of DEPDIR, am__include, and am__quote | |
bf4e01a4 | 16555 | # from the Makefile without running 'make'. |
7083c021 AC |
16556 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
16557 | test -z "$DEPDIR" && continue | |
16558 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
bf4e01a4 | 16559 | test -z "$am__include" && continue |
7083c021 | 16560 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
7083c021 AC |
16561 | # Find all dependency output files, they are included files with |
16562 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16563 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16564 | # expansion. | |
16565 | for file in `sed -n " | |
16566 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
bf4e01a4 | 16567 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
7083c021 AC |
16568 | # Make sure the directory exists. |
16569 | test -f "$dirpart/$file" && continue | |
16570 | fdir=`$as_dirname -- "$file" || | |
16571 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16572 | X"$file" : 'X\(//\)[^/]' \| \ | |
16573 | X"$file" : 'X\(//\)$' \| \ | |
16574 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
16575 | $as_echo X"$file" | | |
16576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16577 | s//\1/ | |
16578 | q | |
16579 | } | |
16580 | /^X\(\/\/\)[^/].*/{ | |
16581 | s//\1/ | |
16582 | q | |
16583 | } | |
16584 | /^X\(\/\/\)$/{ | |
16585 | s//\1/ | |
16586 | q | |
16587 | } | |
16588 | /^X\(\/\).*/{ | |
16589 | s//\1/ | |
16590 | q | |
16591 | } | |
16592 | s/.*/./; q'` | |
16593 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
16594 | # echo "creating $dirpart/$file" | |
16595 | echo '# dummy' > "$dirpart/$file" | |
16596 | done | |
16597 | done | |
16598 | } | |
16599 | ;; | |
16600 | "libtool":C) | |
db137867 | 16601 | |
7083c021 AC |
16602 | # See if we are running on zsh, and set the options which allow our |
16603 | # commands through without removal of \ escapes. | |
16604 | if test -n "${ZSH_VERSION+set}" ; then | |
16605 | setopt NO_GLOB_SUBST | |
16606 | fi | |
c2ac22cc | 16607 | |
7083c021 AC |
16608 | cfgfile="${ofile}T" |
16609 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16610 | $RM "$cfgfile" | |
db137867 | 16611 | |
7083c021 AC |
16612 | cat <<_LT_EOF >> "$cfgfile" |
16613 | #! $SHELL | |
db137867 | 16614 | |
7083c021 AC |
16615 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
16616 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
16617 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
16618 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
db137867 | 16619 | # |
7083c021 | 16620 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
a949ab1a AC |
16621 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
16622 | # Foundation, Inc. | |
7083c021 | 16623 | # Written by Gordon Matzigkeit, 1996 |
db137867 | 16624 | # |
7083c021 AC |
16625 | # This file is part of GNU Libtool. |
16626 | # | |
16627 | # GNU Libtool is free software; you can redistribute it and/or | |
16628 | # modify it under the terms of the GNU General Public License as | |
16629 | # published by the Free Software Foundation; either version 2 of | |
16630 | # the License, or (at your option) any later version. | |
16631 | # | |
16632 | # As a special exception to the GNU General Public License, | |
16633 | # if you distribute this file as part of a program or library that | |
16634 | # is built using GNU Libtool, you may include this file under the | |
16635 | # same distribution terms that you use for the rest of that program. | |
16636 | # | |
16637 | # GNU Libtool is distributed in the hope that it will be useful, | |
16638 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16639 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16640 | # GNU General Public License for more details. | |
16641 | # | |
16642 | # You should have received a copy of the GNU General Public License | |
16643 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16644 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16645 | # obtained by writing to the Free Software Foundation, Inc., | |
16646 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
db137867 | 16647 | |
db137867 | 16648 | |
7083c021 AC |
16649 | # The names of the tagged configurations supported by this script. |
16650 | available_tags="" | |
db137867 | 16651 | |
7083c021 | 16652 | # ### BEGIN LIBTOOL CONFIG |
db137867 | 16653 | |
7083c021 AC |
16654 | # Whether or not to build static libraries. |
16655 | build_old_libs=$enable_static | |
db137867 | 16656 | |
7083c021 AC |
16657 | # Whether or not to build shared libraries. |
16658 | build_libtool_libs=$enable_shared | |
db137867 | 16659 | |
7083c021 AC |
16660 | # Which release of libtool.m4 was used? |
16661 | macro_version=$macro_version | |
16662 | macro_revision=$macro_revision | |
db137867 | 16663 | |
7083c021 AC |
16664 | # What type of objects to build. |
16665 | pic_mode=$pic_mode | |
db137867 | 16666 | |
7083c021 AC |
16667 | # Whether or not to optimize for fast installation. |
16668 | fast_install=$enable_fast_install | |
db137867 | 16669 | |
b6d0720c AC |
16670 | # Shell to use when invoking shell scripts. |
16671 | SHELL=$lt_SHELL | |
16672 | ||
16673 | # An echo program that protects backslashes. | |
16674 | ECHO=$lt_ECHO | |
16675 | ||
a949ab1a AC |
16676 | # The PATH separator for the build system. |
16677 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
16678 | ||
7083c021 AC |
16679 | # The host system. |
16680 | host_alias=$host_alias | |
16681 | host=$host | |
16682 | host_os=$host_os | |
db137867 | 16683 | |
7083c021 AC |
16684 | # The build system. |
16685 | build_alias=$build_alias | |
16686 | build=$build | |
16687 | build_os=$build_os | |
db137867 | 16688 | |
7083c021 AC |
16689 | # A sed program that does not truncate output. |
16690 | SED=$lt_SED | |
db137867 | 16691 | |
7083c021 AC |
16692 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
16693 | Xsed="\$SED -e 1s/^X//" | |
db137867 | 16694 | |
7083c021 AC |
16695 | # A grep program that handles long lines. |
16696 | GREP=$lt_GREP | |
db137867 | 16697 | |
7083c021 AC |
16698 | # An ERE matcher. |
16699 | EGREP=$lt_EGREP | |
db137867 | 16700 | |
7083c021 AC |
16701 | # A literal string matcher. |
16702 | FGREP=$lt_FGREP | |
db137867 | 16703 | |
7083c021 AC |
16704 | # A BSD- or MS-compatible name lister. |
16705 | NM=$lt_NM | |
030272f3 | 16706 | |
7083c021 AC |
16707 | # Whether we need soft or hard links. |
16708 | LN_S=$lt_LN_S | |
db137867 | 16709 | |
7083c021 AC |
16710 | # What is the maximum length of a command? |
16711 | max_cmd_len=$max_cmd_len | |
db137867 | 16712 | |
7083c021 AC |
16713 | # Object file suffix (normally "o"). |
16714 | objext=$ac_objext | |
db137867 | 16715 | |
7083c021 AC |
16716 | # Executable file suffix (normally ""). |
16717 | exeext=$exeext | |
db137867 | 16718 | |
7083c021 AC |
16719 | # whether the shell understands "unset". |
16720 | lt_unset=$lt_unset | |
db137867 | 16721 | |
7083c021 AC |
16722 | # turn spaces into newlines. |
16723 | SP2NL=$lt_lt_SP2NL | |
db137867 | 16724 | |
7083c021 AC |
16725 | # turn newlines into spaces. |
16726 | NL2SP=$lt_lt_NL2SP | |
db137867 | 16727 | |
b6d0720c AC |
16728 | # convert \$build file names to \$host format. |
16729 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
16730 | ||
16731 | # convert \$build files to toolchain format. | |
16732 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
db137867 | 16733 | |
7083c021 AC |
16734 | # An object symbol dumper. |
16735 | OBJDUMP=$lt_OBJDUMP | |
db137867 | 16736 | |
7083c021 AC |
16737 | # Method to check whether dependent libraries are shared objects. |
16738 | deplibs_check_method=$lt_deplibs_check_method | |
db137867 | 16739 | |
b6d0720c | 16740 | # Command to use when deplibs_check_method = "file_magic". |
7083c021 | 16741 | file_magic_cmd=$lt_file_magic_cmd |
db137867 | 16742 | |
b6d0720c AC |
16743 | # How to find potential files when deplibs_check_method = "file_magic". |
16744 | file_magic_glob=$lt_file_magic_glob | |
16745 | ||
16746 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
16747 | want_nocaseglob=$lt_want_nocaseglob | |
16748 | ||
16749 | # DLL creation program. | |
16750 | DLLTOOL=$lt_DLLTOOL | |
16751 | ||
16752 | # Command to associate shared and link libraries. | |
16753 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
16754 | ||
7083c021 AC |
16755 | # The archiver. |
16756 | AR=$lt_AR | |
b6d0720c AC |
16757 | |
16758 | # Flags to create an archive. | |
7083c021 | 16759 | AR_FLAGS=$lt_AR_FLAGS |
db137867 | 16760 | |
b6d0720c AC |
16761 | # How to feed a file listing to the archiver. |
16762 | archiver_list_spec=$lt_archiver_list_spec | |
16763 | ||
7083c021 AC |
16764 | # A symbol stripping program. |
16765 | STRIP=$lt_STRIP | |
db137867 | 16766 | |
7083c021 AC |
16767 | # Commands used to install an old-style archive. |
16768 | RANLIB=$lt_RANLIB | |
16769 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16770 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
db137867 | 16771 | |
b6d0720c AC |
16772 | # Whether to use a lock for old archive extraction. |
16773 | lock_old_archive_extraction=$lock_old_archive_extraction | |
16774 | ||
7083c021 AC |
16775 | # A C compiler. |
16776 | LTCC=$lt_CC | |
db137867 | 16777 | |
7083c021 AC |
16778 | # LTCC compiler flags. |
16779 | LTCFLAGS=$lt_CFLAGS | |
db137867 | 16780 | |
7083c021 AC |
16781 | # Take the output of nm and produce a listing of raw symbols and C names. |
16782 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
db137867 | 16783 | |
7083c021 AC |
16784 | # Transform the output of nm in a proper C declaration. |
16785 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
db137867 | 16786 | |
7083c021 AC |
16787 | # Transform the output of nm in a C name address pair. |
16788 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
db137867 | 16789 | |
7083c021 AC |
16790 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16791 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
db137867 | 16792 | |
b6d0720c AC |
16793 | # Specify filename containing input files for \$NM. |
16794 | nm_file_list_spec=$lt_nm_file_list_spec | |
db137867 | 16795 | |
b6d0720c AC |
16796 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
16797 | lt_sysroot=$lt_sysroot | |
db137867 | 16798 | |
b6d0720c AC |
16799 | # The name of the directory that contains temporary libtool files. |
16800 | objdir=$objdir | |
db137867 | 16801 | |
7083c021 AC |
16802 | # Used to examine libraries when file_magic_cmd begins with "file". |
16803 | MAGIC_CMD=$MAGIC_CMD | |
16804 | ||
16805 | # Must we lock files when doing compilation? | |
16806 | need_locks=$lt_need_locks | |
db137867 | 16807 | |
b6d0720c AC |
16808 | # Manifest tool. |
16809 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
16810 | ||
7083c021 AC |
16811 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16812 | DSYMUTIL=$lt_DSYMUTIL | |
db137867 | 16813 | |
7083c021 AC |
16814 | # Tool to change global to local symbols on Mac OS X. |
16815 | NMEDIT=$lt_NMEDIT | |
db137867 | 16816 | |
7083c021 AC |
16817 | # Tool to manipulate fat objects and archives on Mac OS X. |
16818 | LIPO=$lt_LIPO | |
db137867 | 16819 | |
7083c021 AC |
16820 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
16821 | OTOOL=$lt_OTOOL | |
db137867 | 16822 | |
7083c021 AC |
16823 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
16824 | OTOOL64=$lt_OTOOL64 | |
db137867 | 16825 | |
7083c021 AC |
16826 | # Old archive suffix (normally "a"). |
16827 | libext=$libext | |
db137867 | 16828 | |
7083c021 AC |
16829 | # Shared library suffix (normally ".so"). |
16830 | shrext_cmds=$lt_shrext_cmds | |
db137867 | 16831 | |
7083c021 AC |
16832 | # The commands to extract the exported symbol list from a shared archive. |
16833 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
db137867 | 16834 | |
7083c021 AC |
16835 | # Variables whose values should be saved in libtool wrapper scripts and |
16836 | # restored at link time. | |
16837 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
030272f3 | 16838 | |
7083c021 AC |
16839 | # Do we need the "lib" prefix for modules? |
16840 | need_lib_prefix=$need_lib_prefix | |
030272f3 | 16841 | |
7083c021 AC |
16842 | # Do we need a version for libraries? |
16843 | need_version=$need_version | |
030272f3 | 16844 | |
7083c021 AC |
16845 | # Library versioning type. |
16846 | version_type=$version_type | |
db137867 | 16847 | |
7083c021 AC |
16848 | # Shared library runtime path variable. |
16849 | runpath_var=$runpath_var | |
db137867 | 16850 | |
7083c021 AC |
16851 | # Shared library path variable. |
16852 | shlibpath_var=$shlibpath_var | |
db137867 | 16853 | |
7083c021 AC |
16854 | # Is shlibpath searched before the hard-coded library search path? |
16855 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
db137867 | 16856 | |
7083c021 AC |
16857 | # Format of library name prefix. |
16858 | libname_spec=$lt_libname_spec | |
db137867 | 16859 | |
7083c021 AC |
16860 | # List of archive names. First name is the real one, the rest are links. |
16861 | # The last name is the one that the linker finds with -lNAME | |
16862 | library_names_spec=$lt_library_names_spec | |
db137867 | 16863 | |
7083c021 AC |
16864 | # The coded name of the library, if different from the real name. |
16865 | soname_spec=$lt_soname_spec | |
db137867 | 16866 | |
b6d0720c AC |
16867 | # Permission mode override for installation of shared libraries. |
16868 | install_override_mode=$lt_install_override_mode | |
16869 | ||
7083c021 AC |
16870 | # Command to use after installation of a shared archive. |
16871 | postinstall_cmds=$lt_postinstall_cmds | |
db137867 | 16872 | |
7083c021 AC |
16873 | # Command to use after uninstallation of a shared archive. |
16874 | postuninstall_cmds=$lt_postuninstall_cmds | |
db137867 | 16875 | |
7083c021 AC |
16876 | # Commands used to finish a libtool library installation in a directory. |
16877 | finish_cmds=$lt_finish_cmds | |
db137867 | 16878 | |
7083c021 AC |
16879 | # As "finish_cmds", except a single script fragment to be evaled but |
16880 | # not shown. | |
16881 | finish_eval=$lt_finish_eval | |
db137867 | 16882 | |
7083c021 AC |
16883 | # Whether we should hardcode library paths into libraries. |
16884 | hardcode_into_libs=$hardcode_into_libs | |
db137867 | 16885 | |
7083c021 AC |
16886 | # Compile-time system search path for libraries. |
16887 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
db137867 | 16888 | |
7083c021 AC |
16889 | # Run-time system search path for libraries. |
16890 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
db137867 | 16891 | |
7083c021 AC |
16892 | # Whether dlopen is supported. |
16893 | dlopen_support=$enable_dlopen | |
db137867 | 16894 | |
7083c021 AC |
16895 | # Whether dlopen of programs is supported. |
16896 | dlopen_self=$enable_dlopen_self | |
db137867 | 16897 | |
7083c021 AC |
16898 | # Whether dlopen of statically linked programs is supported. |
16899 | dlopen_self_static=$enable_dlopen_self_static | |
db137867 | 16900 | |
7083c021 AC |
16901 | # Commands to strip libraries. |
16902 | old_striplib=$lt_old_striplib | |
16903 | striplib=$lt_striplib | |
db137867 | 16904 | |
db137867 | 16905 | |
7083c021 AC |
16906 | # The linker used to build libraries. |
16907 | LD=$lt_LD | |
db137867 | 16908 | |
b6d0720c AC |
16909 | # How to create reloadable object files. |
16910 | reload_flag=$lt_reload_flag | |
16911 | reload_cmds=$lt_reload_cmds | |
16912 | ||
7083c021 AC |
16913 | # Commands used to build an old-style archive. |
16914 | old_archive_cmds=$lt_old_archive_cmds | |
db137867 | 16915 | |
7083c021 AC |
16916 | # A language specific compiler. |
16917 | CC=$lt_compiler | |
db137867 | 16918 | |
7083c021 AC |
16919 | # Is the compiler the GNU compiler? |
16920 | with_gcc=$GCC | |
db137867 | 16921 | |
7083c021 AC |
16922 | # Compiler flag to turn off builtin functions. |
16923 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
db137867 | 16924 | |
7083c021 AC |
16925 | # Additional compiler flags for building library objects. |
16926 | pic_flag=$lt_lt_prog_compiler_pic | |
16927 | ||
b6d0720c AC |
16928 | # How to pass a linker flag through the compiler. |
16929 | wl=$lt_lt_prog_compiler_wl | |
16930 | ||
7083c021 AC |
16931 | # Compiler flag to prevent dynamic linking. |
16932 | link_static_flag=$lt_lt_prog_compiler_static | |
16933 | ||
16934 | # Does compiler simultaneously support -c and -o options? | |
16935 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
a9fb3ed0 | 16936 | |
7083c021 AC |
16937 | # Whether or not to add -lc for building shared libraries. |
16938 | build_libtool_need_lc=$archive_cmds_need_lc | |
a9fb3ed0 | 16939 | |
7083c021 AC |
16940 | # Whether or not to disallow shared libs when runtime libs are static. |
16941 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
db137867 | 16942 | |
7083c021 AC |
16943 | # Compiler flag to allow reflexive dlopens. |
16944 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
db137867 | 16945 | |
7083c021 AC |
16946 | # Compiler flag to generate shared objects directly from archives. |
16947 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
db137867 | 16948 | |
7083c021 AC |
16949 | # Whether the compiler copes with passing no objects directly. |
16950 | compiler_needs_object=$lt_compiler_needs_object | |
db137867 | 16951 | |
7083c021 AC |
16952 | # Create an old-style archive from a shared archive. |
16953 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
db137867 | 16954 | |
7083c021 AC |
16955 | # Create a temporary old-style archive to link instead of a shared archive. |
16956 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
db137867 | 16957 | |
7083c021 AC |
16958 | # Commands used to build a shared archive. |
16959 | archive_cmds=$lt_archive_cmds | |
16960 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
db137867 | 16961 | |
7083c021 AC |
16962 | # Commands used to build a loadable module if different from building |
16963 | # a shared archive. | |
16964 | module_cmds=$lt_module_cmds | |
16965 | module_expsym_cmds=$lt_module_expsym_cmds | |
db137867 | 16966 | |
7083c021 AC |
16967 | # Whether we are building with GNU ld or not. |
16968 | with_gnu_ld=$lt_with_gnu_ld | |
db137867 | 16969 | |
7083c021 AC |
16970 | # Flag that allows shared libraries with undefined symbols to be built. |
16971 | allow_undefined_flag=$lt_allow_undefined_flag | |
db137867 | 16972 | |
7083c021 AC |
16973 | # Flag that enforces no undefined symbols. |
16974 | no_undefined_flag=$lt_no_undefined_flag | |
db137867 | 16975 | |
7083c021 AC |
16976 | # Flag to hardcode \$libdir into a binary during linking. |
16977 | # This must work even if \$libdir does not exist | |
16978 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
db137867 | 16979 | |
7083c021 AC |
16980 | # Whether we need a single "-rpath" flag with a separated argument. |
16981 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
db137867 | 16982 | |
7083c021 AC |
16983 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16984 | # DIR into the resulting binary. | |
16985 | hardcode_direct=$hardcode_direct | |
db137867 | 16986 | |
7083c021 AC |
16987 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16988 | # DIR into the resulting binary and the resulting library dependency is | |
16989 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16990 | # library is relocated. | |
16991 | hardcode_direct_absolute=$hardcode_direct_absolute | |
db137867 | 16992 | |
7083c021 AC |
16993 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
16994 | # into the resulting binary. | |
16995 | hardcode_minus_L=$hardcode_minus_L | |
db137867 | 16996 | |
7083c021 AC |
16997 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
16998 | # into the resulting binary. | |
16999 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
db137867 | 17000 | |
7083c021 AC |
17001 | # Set to "yes" if building a shared library automatically hardcodes DIR |
17002 | # into the library and all subsequent libraries and executables linked | |
17003 | # against it. | |
17004 | hardcode_automatic=$hardcode_automatic | |
db137867 | 17005 | |
7083c021 AC |
17006 | # Set to yes if linker adds runtime paths of dependent libraries |
17007 | # to runtime path list. | |
17008 | inherit_rpath=$inherit_rpath | |
db137867 | 17009 | |
7083c021 AC |
17010 | # Whether libtool must link a program against all its dependency libraries. |
17011 | link_all_deplibs=$link_all_deplibs | |
db137867 | 17012 | |
7083c021 AC |
17013 | # Set to "yes" if exported symbols are required. |
17014 | always_export_symbols=$always_export_symbols | |
030272f3 | 17015 | |
7083c021 AC |
17016 | # The commands to list exported symbols. |
17017 | export_symbols_cmds=$lt_export_symbols_cmds | |
db137867 | 17018 | |
7083c021 AC |
17019 | # Symbols that should not be listed in the preloaded symbols. |
17020 | exclude_expsyms=$lt_exclude_expsyms | |
030272f3 | 17021 | |
7083c021 AC |
17022 | # Symbols that must always be exported. |
17023 | include_expsyms=$lt_include_expsyms | |
db137867 | 17024 | |
7083c021 AC |
17025 | # Commands necessary for linking programs (against libraries) with templates. |
17026 | prelink_cmds=$lt_prelink_cmds | |
db137867 | 17027 | |
b6d0720c AC |
17028 | # Commands necessary for finishing linking programs. |
17029 | postlink_cmds=$lt_postlink_cmds | |
17030 | ||
7083c021 AC |
17031 | # Specify filename containing input files. |
17032 | file_list_spec=$lt_file_list_spec | |
db137867 | 17033 | |
7083c021 AC |
17034 | # How to hardcode a shared library path into an executable. |
17035 | hardcode_action=$hardcode_action | |
db137867 | 17036 | |
7083c021 | 17037 | # ### END LIBTOOL CONFIG |
030272f3 | 17038 | |
7083c021 AC |
17039 | _LT_EOF |
17040 | ||
17041 | case $host_os in | |
17042 | aix3*) | |
17043 | cat <<\_LT_EOF >> "$cfgfile" | |
17044 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17045 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17046 | # vanish in a puff of smoke. | |
17047 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17048 | COLLECT_NAMES= | |
17049 | export COLLECT_NAMES | |
17050 | fi | |
17051 | _LT_EOF | |
17052 | ;; | |
17053 | esac | |
030272f3 | 17054 | |
030272f3 | 17055 | |
7083c021 | 17056 | ltmain="$ac_aux_dir/ltmain.sh" |
030272f3 | 17057 | |
030272f3 | 17058 | |
7083c021 AC |
17059 | # We use sed instead of cat because bash on DJGPP gets confused if |
17060 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17061 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17062 | # is reportedly fixed, but why not run on old versions too? | |
b6d0720c AC |
17063 | sed '$q' "$ltmain" >> "$cfgfile" \ |
17064 | || (rm -f "$cfgfile"; exit 1) | |
17065 | ||
17066 | if test x"$xsi_shell" = xyes; then | |
17067 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
17068 | func_dirname ()\ | |
17069 | {\ | |
17070 | \ case ${1} in\ | |
17071 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
17072 | \ * ) func_dirname_result="${3}" ;;\ | |
17073 | \ esac\ | |
17074 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
17075 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17076 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17077 | test 0 -eq $? || _lt_function_replace_fail=: | |
17078 | ||
17079 | ||
17080 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
17081 | func_basename ()\ | |
17082 | {\ | |
17083 | \ func_basename_result="${1##*/}"\ | |
17084 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
17085 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17086 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17087 | test 0 -eq $? || _lt_function_replace_fail=: | |
17088 | ||
17089 | ||
17090 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
17091 | func_dirname_and_basename ()\ | |
17092 | {\ | |
17093 | \ case ${1} in\ | |
17094 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
17095 | \ * ) func_dirname_result="${3}" ;;\ | |
17096 | \ esac\ | |
17097 | \ func_basename_result="${1##*/}"\ | |
17098 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
17099 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17100 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17101 | test 0 -eq $? || _lt_function_replace_fail=: | |
17102 | ||
17103 | ||
17104 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
17105 | func_stripname ()\ | |
17106 | {\ | |
17107 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
17108 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
17109 | \ func_stripname_result=${3}\ | |
17110 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
17111 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
17112 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
17113 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17114 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17115 | test 0 -eq $? || _lt_function_replace_fail=: | |
17116 | ||
17117 | ||
17118 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
17119 | func_split_long_opt ()\ | |
17120 | {\ | |
17121 | \ func_split_long_opt_name=${1%%=*}\ | |
17122 | \ func_split_long_opt_arg=${1#*=}\ | |
17123 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
17124 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17125 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17126 | test 0 -eq $? || _lt_function_replace_fail=: | |
17127 | ||
17128 | ||
17129 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
17130 | func_split_short_opt ()\ | |
17131 | {\ | |
17132 | \ func_split_short_opt_arg=${1#??}\ | |
17133 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
17134 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
17135 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17136 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17137 | test 0 -eq $? || _lt_function_replace_fail=: | |
17138 | ||
17139 | ||
17140 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
17141 | func_lo2o ()\ | |
17142 | {\ | |
17143 | \ case ${1} in\ | |
17144 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
17145 | \ *) func_lo2o_result=${1} ;;\ | |
17146 | \ esac\ | |
17147 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
17148 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17149 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17150 | test 0 -eq $? || _lt_function_replace_fail=: | |
17151 | ||
17152 | ||
17153 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
17154 | func_xform ()\ | |
17155 | {\ | |
17156 | func_xform_result=${1%.*}.lo\ | |
17157 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
17158 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17159 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17160 | test 0 -eq $? || _lt_function_replace_fail=: | |
17161 | ||
17162 | ||
17163 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
17164 | func_arith ()\ | |
17165 | {\ | |
17166 | func_arith_result=$(( $* ))\ | |
17167 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
17168 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17169 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17170 | test 0 -eq $? || _lt_function_replace_fail=: | |
17171 | ||
17172 | ||
17173 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
17174 | func_len ()\ | |
17175 | {\ | |
17176 | func_len_result=${#1}\ | |
17177 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
17178 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17179 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17180 | test 0 -eq $? || _lt_function_replace_fail=: | |
17181 | ||
17182 | fi | |
17183 | ||
17184 | if test x"$lt_shell_append" = xyes; then | |
17185 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
17186 | func_append ()\ | |
17187 | {\ | |
17188 | eval "${1}+=\\${2}"\ | |
17189 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
17190 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17191 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17192 | test 0 -eq $? || _lt_function_replace_fail=: | |
17193 | ||
17194 | ||
17195 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
17196 | func_append_quoted ()\ | |
17197 | {\ | |
17198 | \ func_quote_for_eval "${2}"\ | |
17199 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
17200 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
17201 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17202 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17203 | test 0 -eq $? || _lt_function_replace_fail=: | |
17204 | ||
17205 | ||
17206 | # Save a `func_append' function call where possible by direct use of '+=' | |
17207 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
17208 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17209 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17210 | test 0 -eq $? || _lt_function_replace_fail=: | |
17211 | else | |
17212 | # Save a `func_append' function call even when '+=' is not available | |
17213 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
17214 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17215 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17216 | test 0 -eq $? || _lt_function_replace_fail=: | |
17217 | fi | |
17218 | ||
17219 | if test x"$_lt_function_replace_fail" = x":"; then | |
17220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
17221 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
17222 | fi | |
17223 | ||
17224 | ||
17225 | mv -f "$cfgfile" "$ofile" || | |
7083c021 AC |
17226 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
17227 | chmod +x "$ofile" | |
17228 | ||
db137867 AC |
17229 | ;; |
17230 | "include/librb-config.h":C) | |
17231 | outfile=include/librb-config.h.tmp | |
17232 | cat > $outfile <<\_______EOF | |
17233 | /* | |
17234 | * librb-config.h: libratbox config file. Please modify configure.ac | |
17235 | */ | |
17236 | ||
17237 | #ifndef __LIBRB_CONFIG_H | |
17238 | #define __LIBRB_CONFIG_H | |
17239 | ||
17240 | _______EOF | |
17241 | ||
17242 | if test "x$rb_have_ipv6" = "xyes"; then | |
17243 | echo "#define RB_IPV6 1" >> $outfile | |
17244 | fi | |
17245 | ||
17246 | if test "x$rb_windows_h" = "xyes"; then | |
17247 | echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile | |
17248 | echo '#include <windows.h>' >> $outfile | |
17249 | echo '#include <winsock2.h>' >> $outfile | |
17250 | echo '#include <iphlpapi.h>' >> $outfile | |
17251 | fi | |
17252 | ||
17253 | if test "x$rb_alloca_h" = "xyes"; then | |
17254 | echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile | |
17255 | fi | |
17256 | ||
17257 | if test "x$rb_header_stdc" = "xyes"; then | |
17258 | echo '#include <stdlib.h>' >> $outfile | |
17259 | echo '#include <stddef.h>' >> $outfile | |
17260 | elif test "x$rb_header_stdlib" = "xyes"; then | |
17261 | echo '#include <stdlib.h>' >> $outfile | |
17262 | fi | |
17263 | ||
17264 | if test "x$rb_header_string_h" = "xyes"; then | |
17265 | echo '#include <string.h>' >> $outfile | |
17266 | fi | |
17267 | ||
17268 | if test "x$rb_stdint_h" = "xyes"; then | |
17269 | echo '#include <stdint.h>' >> $outfile | |
17270 | fi | |
17271 | ||
17272 | if test "x$rb_inttypes_h" = "xyes"; then | |
17273 | echo '#include <inttypes.h>' >> $outfile | |
17274 | fi | |
17275 | ||
17276 | if test "x$rb_sys_types_h" = "xyes"; then | |
17277 | echo '#include <sys/types.h>' >> $outfile | |
17278 | fi | |
17279 | if test "x$rb_sys_time_h" = "xyes"; then | |
17280 | echo '#include <sys/time.h>' >> $outfile | |
17281 | fi | |
17282 | if test "x$rb_sys_stat_h" = "xyes"; then | |
17283 | echo '#include <sys/stat.h>' >> $outfile | |
17284 | fi | |
17285 | if test "x$rb_time_h" = "xyes"; then | |
17286 | echo '#include <time.h>' >> $outfile | |
17287 | fi | |
17288 | ||
17289 | if test "x$rb_sys_socket_h" = "xyes"; then | |
17290 | echo '#include <sys/socket.h>' >> $outfile | |
17291 | fi | |
17292 | ||
17293 | if test "x$rb_netinet_in_h" = "xyes"; then | |
17294 | echo '#include <netinet/in.h>' >> $outfile | |
17295 | fi | |
17296 | ||
17297 | if test "x$rb_arpa_inet_h" = "xyes"; then | |
17298 | echo '#include <arpa/inet.h>' >> $outfile | |
17299 | fi | |
17300 | ||
17301 | if test "x$rb_unistd_h" = "xyes"; then | |
17302 | echo '#include <unistd.h>' >> $outfile | |
17303 | fi | |
17304 | ||
17305 | if test "x$rb_crypt_h" = "xyes"; then | |
17306 | echo '#include <crypt.h>' >> $outfile | |
17307 | fi | |
17308 | ||
17309 | if test "x$rb_errno_h" = "xyes"; then | |
17310 | echo '#include <errno.h>' >> $outfile | |
17311 | fi | |
17312 | ||
a9fb3ed0 VY |
17313 | echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile |
17314 | ||
17315 | ||
db137867 AC |
17316 | if test "x$rb_sockaddr_sa_len" = "xyes"; then |
17317 | echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile | |
17318 | fi | |
17319 | ||
db137867 AC |
17320 | if test "x$rb_sockaddr_storage" = "xyes"; then |
17321 | echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile | |
17322 | else | |
3202e249 | 17323 | echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile |
db137867 AC |
17324 | fi |
17325 | ||
17326 | cat >> $outfile <<\_______EOF | |
17327 | #endif /* __LIBRB_CONFIG_H */ | |
17328 | _______EOF | |
17329 | ||
17330 | if cmp -s $outfile include/librb-config.h; then | |
7083c021 | 17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5 |
030272f3 | 17332 | $as_echo "$as_me: include/librb-config.h is unchanged" >&6;} |
db137867 AC |
17333 | ${rb_rm} -f $outfile |
17334 | else | |
17335 | ${rb_mv} $outfile include/librb-config.h | |
17336 | fi | |
17337 | ||
17338 | ;; | |
17339 | ||
17340 | esac | |
17341 | done # for ac_tag | |
17342 | ||
17343 | ||
7083c021 | 17344 | as_fn_exit 0 |
db137867 | 17345 | _ACEOF |
db137867 AC |
17346 | ac_clean_files=$ac_clean_files_save |
17347 | ||
030272f3 | 17348 | test $ac_write_fail = 0 || |
08c2568c | 17349 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
030272f3 | 17350 | |
db137867 AC |
17351 | |
17352 | # configure is writing to config.log, and then calls config.status. | |
17353 | # config.status does its own redirection, appending to config.log. | |
17354 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17355 | # by configure, so config.status won't be able to write to it; its | |
17356 | # output is simply discarded. So we exec the FD to /dev/null, | |
17357 | # effectively closing config.log, so it can be properly (re)opened and | |
17358 | # appended to by config.status. When coming back to configure, we | |
17359 | # need to make the FD available again. | |
17360 | if test "$no_create" != yes; then | |
17361 | ac_cs_success=: | |
17362 | ac_config_status_args= | |
17363 | test "$silent" = yes && | |
17364 | ac_config_status_args="$ac_config_status_args --quiet" | |
17365 | exec 5>/dev/null | |
17366 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17367 | exec 5>>config.log | |
17368 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17369 | # would make configure fail if this is the last instruction. | |
08c2568c | 17370 | $ac_cs_success || as_fn_exit 1 |
db137867 | 17371 | fi |
030272f3 | 17372 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7083c021 | 17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
030272f3 VY |
17374 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
17375 | fi | |
db137867 | 17376 | |
db137867 AC |
17377 | |
17378 | ||
17379 | echo | |
17380 | echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" | |
17381 | echo | |
17382 | ||
17383 | echo "Installing into: $prefix" | |
17384 | ||
17385 | echo "IPv6 support ................... $have_v6" | |
17386 | echo "Assert debugging ............... $assert" | |
17387 | echo "Block allocator ................ $balloc" | |
c2ac22cc | 17388 | echo "SSL Type........................ $SSL_TYPE" |
db137867 AC |
17389 | echo |
17390 |