]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1 | |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
247 | export CONFIG_SHELL | |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
266 | fi | |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | ||
365 | ||
366 | } # as_fn_mkdir_p | |
367 | ||
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
375 | # as_fn_append VAR VALUE | |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 | # ---------------------------------------- | |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 | # script with STATUS, using 1 if that was 0. | |
416 | as_fn_error () | |
417 | { | |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 | fi | |
423 | $as_echo "$as_me: error: $2" >&2 | |
424 | as_fn_exit $as_status | |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
500 | # Don't try to exec as it changes $[0], causing all sort of problems | |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 | # In both cases, we have to default to `cp -pR'. | |
535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 | as_ln_s='cp -pR' | |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 | as_ln_s=ln | |
539 | else | |
540 | as_ln_s='cp -pR' | |
541 | fi | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
555 | as_test_x='test -x' | |
556 | as_executable_p=as_fn_executable_p | |
557 | ||
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | lt_ltdl_dir='libltdl' | |
567 | ||
568 | lt_dlopen_dir="$lt_ltdl_dir" | |
569 | ||
570 | ||
571 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
572 | exec 6>&1 | |
573 | ||
574 | # Name of the host. | |
575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
576 | # so uname gets run too. | |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
578 | ||
579 | # | |
580 | # Initializations. | |
581 | # | |
582 | ac_default_prefix=/usr/local | |
583 | ac_clean_files= | |
584 | ac_config_libobj_dir=. | |
585 | LIBOBJS= | |
586 | cross_compiling=no | |
587 | subdirs= | |
588 | MFLAGS= | |
589 | MAKEFLAGS= | |
590 | ||
591 | # Identity of this package. | |
592 | PACKAGE_NAME='charybdis' | |
593 | PACKAGE_TARNAME='charybdis' | |
594 | PACKAGE_VERSION='3.6.0-dev' | |
595 | PACKAGE_STRING='charybdis 3.6.0-dev' | |
596 | PACKAGE_BUGREPORT='' | |
597 | PACKAGE_URL='' | |
598 | ||
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
602 | #ifdef HAVE_SYS_TYPES_H | |
603 | # include <sys/types.h> | |
604 | #endif | |
605 | #ifdef HAVE_SYS_STAT_H | |
606 | # include <sys/stat.h> | |
607 | #endif | |
608 | #ifdef STDC_HEADERS | |
609 | # include <stdlib.h> | |
610 | # include <stddef.h> | |
611 | #else | |
612 | # ifdef HAVE_STDLIB_H | |
613 | # include <stdlib.h> | |
614 | # endif | |
615 | #endif | |
616 | #ifdef HAVE_STRING_H | |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
618 | # include <memory.h> | |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
622 | #ifdef HAVE_STRINGS_H | |
623 | # include <strings.h> | |
624 | #endif | |
625 | #ifdef HAVE_INTTYPES_H | |
626 | # include <inttypes.h> | |
627 | #endif | |
628 | #ifdef HAVE_STDINT_H | |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
632 | # include <unistd.h> | |
633 | #endif" | |
634 | ||
635 | ac_default_prefix=$HOME/ircd | |
636 | enable_option_checking=no | |
637 | ac_subst_vars='ltdl_LTLIBOBJS | |
638 | ltdl_LIBOBJS | |
639 | am__EXEEXT_FALSE | |
640 | am__EXEEXT_TRUE | |
641 | LTLIBOBJS | |
642 | LIBOBJS | |
643 | SEDOBJ | |
644 | IRC_CFLAGS | |
645 | PICFLAGS | |
646 | SSL_LIBS | |
647 | SSL_INCLUDES | |
648 | SSL_SRCS_ENABLE | |
649 | MOD_TARGET | |
650 | MODULES_LIBS | |
651 | PROGRAM_PREFIX | |
652 | PKGRUNDIR | |
653 | moduledir | |
654 | MODULE_DIR | |
655 | helpdir | |
656 | HELP_DIR | |
657 | logdir | |
658 | LOG_DIR | |
659 | ETC_DIR | |
660 | SQLITE_OBJ | |
661 | SQLITE_INCLUDES | |
662 | SQLITE_LD | |
663 | SQLITE_LIBS | |
664 | SQLITE_CFLAGS | |
665 | PKG_CONFIG_LIBDIR | |
666 | PKG_CONFIG_PATH | |
667 | PKG_CONFIG | |
668 | ZLIB_LD | |
669 | ENCSPEED | |
670 | ALLOCA | |
671 | CRYPT_LIB | |
672 | PKGLIBEXECDIR | |
673 | pkglibexecdir | |
674 | PKGLOCALSTATEDIR | |
675 | pkglocalstatedir | |
676 | pkgrundir | |
677 | rundir | |
678 | pkglibdir | |
679 | LEXLIB | |
680 | LEX_OUTPUT_ROOT | |
681 | LEX | |
682 | YFLAGS | |
683 | YACC | |
684 | TOUCH | |
685 | LN | |
686 | MV | |
687 | CP | |
688 | RM | |
689 | BUILD_LTDL_FALSE | |
690 | BUILD_LTDL_TRUE | |
691 | LTDLOPEN | |
692 | LT_CONFIG_H | |
693 | CONVENIENCE_LTDL_FALSE | |
694 | CONVENIENCE_LTDL_TRUE | |
695 | INSTALL_LTDL_FALSE | |
696 | INSTALL_LTDL_TRUE | |
697 | ARGZ_H | |
698 | sys_symbol_underscore | |
699 | LIBADD_DL | |
700 | LT_DLPREOPEN | |
701 | LIBADD_DLD_LINK | |
702 | LIBADD_SHL_LOAD | |
703 | LIBADD_DLOPEN | |
704 | LT_DLLOADERS | |
705 | INCLTDL | |
706 | LTDLINCL | |
707 | LTDLDEPS | |
708 | LIBLTDL | |
709 | OTOOL64 | |
710 | OTOOL | |
711 | LIPO | |
712 | NMEDIT | |
713 | DSYMUTIL | |
714 | MANIFEST_TOOL | |
715 | RANLIB | |
716 | DLLTOOL | |
717 | OBJDUMP | |
718 | LN_S | |
719 | NM | |
720 | ac_ct_DUMPBIN | |
721 | DUMPBIN | |
722 | LD | |
723 | FGREP | |
724 | SED | |
725 | host_os | |
726 | host_vendor | |
727 | host_cpu | |
728 | host | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
733 | LIBTOOL | |
734 | ac_ct_AR | |
735 | AR | |
736 | AM_BACKSLASH | |
737 | AM_DEFAULT_VERBOSITY | |
738 | AM_DEFAULT_V | |
739 | AM_V | |
740 | am__fastdepCC_FALSE | |
741 | am__fastdepCC_TRUE | |
742 | CCDEPMODE | |
743 | am__nodep | |
744 | AMDEPBACKSLASH | |
745 | AMDEP_FALSE | |
746 | AMDEP_TRUE | |
747 | am__quote | |
748 | am__include | |
749 | DEPDIR | |
750 | am__untar | |
751 | am__tar | |
752 | AMTAR | |
753 | am__leading_dot | |
754 | SET_MAKE | |
755 | AWK | |
756 | mkdir_p | |
757 | MKDIR_P | |
758 | INSTALL_STRIP_PROGRAM | |
759 | STRIP | |
760 | install_sh | |
761 | MAKEINFO | |
762 | AUTOHEADER | |
763 | AUTOMAKE | |
764 | AUTOCONF | |
765 | ACLOCAL | |
766 | VERSION | |
767 | PACKAGE | |
768 | CYGPATH_W | |
769 | am__isrc | |
770 | INSTALL_DATA | |
771 | INSTALL_SCRIPT | |
772 | INSTALL_PROGRAM | |
773 | subdirs | |
774 | EGREP | |
775 | GREP | |
776 | CPP | |
777 | OBJEXT | |
778 | EXEEXT | |
779 | ac_ct_CC | |
780 | CPPFLAGS | |
781 | LDFLAGS | |
782 | CFLAGS | |
783 | CC | |
784 | target_alias | |
785 | host_alias | |
786 | build_alias | |
787 | LIBS | |
788 | ECHO_T | |
789 | ECHO_N | |
790 | ECHO_C | |
791 | DEFS | |
792 | mandir | |
793 | localedir | |
794 | libdir | |
795 | psdir | |
796 | pdfdir | |
797 | dvidir | |
798 | htmldir | |
799 | infodir | |
800 | docdir | |
801 | oldincludedir | |
802 | includedir | |
803 | localstatedir | |
804 | sharedstatedir | |
805 | sysconfdir | |
806 | datadir | |
807 | datarootdir | |
808 | libexecdir | |
809 | sbindir | |
810 | bindir | |
811 | program_transform_name | |
812 | prefix | |
813 | exec_prefix | |
814 | PACKAGE_URL | |
815 | PACKAGE_BUGREPORT | |
816 | PACKAGE_STRING | |
817 | PACKAGE_VERSION | |
818 | PACKAGE_TARNAME | |
819 | PACKAGE_NAME | |
820 | PATH_SEPARATOR | |
821 | SHELL' | |
822 | ac_subst_files='' | |
823 | ac_user_opts=' | |
824 | enable_option_checking | |
825 | enable_dependency_tracking | |
826 | enable_silent_rules | |
827 | enable_static | |
828 | enable_shared | |
829 | with_pic | |
830 | enable_fast_install | |
831 | with_gnu_ld | |
832 | with_sysroot | |
833 | enable_libtool_lock | |
834 | with_included_ltdl | |
835 | with_ltdl_include | |
836 | with_ltdl_lib | |
837 | enable_ltdl_install | |
838 | enable_fhs_paths | |
839 | enable_ipv6 | |
840 | enable_openssl | |
841 | with_zlib_path | |
842 | enable_zlib | |
843 | with_shared_sqlite | |
844 | with_confdir | |
845 | with_logdir | |
846 | with_helpdir | |
847 | with_moduledir | |
848 | with_rundir | |
849 | with_program_prefix | |
850 | with_custom_branding | |
851 | with_custom_version | |
852 | enable_assert | |
853 | enable_iodebug | |
854 | enable_profile | |
855 | with_nicklen | |
856 | with_topiclen | |
857 | enable_warnings | |
858 | ' | |
859 | ac_precious_vars='build_alias | |
860 | host_alias | |
861 | target_alias | |
862 | CC | |
863 | CFLAGS | |
864 | LDFLAGS | |
865 | LIBS | |
866 | CPPFLAGS | |
867 | CPP | |
868 | YACC | |
869 | YFLAGS | |
870 | PKG_CONFIG | |
871 | PKG_CONFIG_PATH | |
872 | PKG_CONFIG_LIBDIR | |
873 | SQLITE_CFLAGS | |
874 | SQLITE_LIBS' | |
875 | ac_subdirs_all='libratbox | |
876 | libltdl' | |
877 | ||
878 | # Initialize some variables set by options. | |
879 | ac_init_help= | |
880 | ac_init_version=false | |
881 | ac_unrecognized_opts= | |
882 | ac_unrecognized_sep= | |
883 | # The variables have the same names as the options, with | |
884 | # dashes changed to underlines. | |
885 | cache_file=/dev/null | |
886 | exec_prefix=NONE | |
887 | no_create= | |
888 | no_recursion= | |
889 | prefix=NONE | |
890 | program_prefix=NONE | |
891 | program_suffix=NONE | |
892 | program_transform_name=s,x,x, | |
893 | silent= | |
894 | site= | |
895 | srcdir= | |
896 | verbose= | |
897 | x_includes=NONE | |
898 | x_libraries=NONE | |
899 | ||
900 | # Installation directory options. | |
901 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
902 | # and all the variables that are supposed to be based on exec_prefix | |
903 | # by default will actually change. | |
904 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
905 | # (The list follows the same order as the GNU Coding Standards.) | |
906 | bindir='${exec_prefix}/bin' | |
907 | sbindir='${exec_prefix}/sbin' | |
908 | libexecdir='${exec_prefix}/libexec' | |
909 | datarootdir='${prefix}/share' | |
910 | datadir='${datarootdir}' | |
911 | sysconfdir='${prefix}/etc' | |
912 | sharedstatedir='${prefix}/com' | |
913 | localstatedir='${prefix}/var' | |
914 | includedir='${prefix}/include' | |
915 | oldincludedir='/usr/include' | |
916 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
917 | infodir='${datarootdir}/info' | |
918 | htmldir='${docdir}' | |
919 | dvidir='${docdir}' | |
920 | pdfdir='${docdir}' | |
921 | psdir='${docdir}' | |
922 | libdir='${exec_prefix}/lib' | |
923 | localedir='${datarootdir}/locale' | |
924 | mandir='${datarootdir}/man' | |
925 | ||
926 | ac_prev= | |
927 | ac_dashdash= | |
928 | for ac_option | |
929 | do | |
930 | # If the previous option needs an argument, assign it. | |
931 | if test -n "$ac_prev"; then | |
932 | eval $ac_prev=\$ac_option | |
933 | ac_prev= | |
934 | continue | |
935 | fi | |
936 | ||
937 | case $ac_option in | |
938 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
939 | *=) ac_optarg= ;; | |
940 | *) ac_optarg=yes ;; | |
941 | esac | |
942 | ||
943 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
944 | ||
945 | case $ac_dashdash$ac_option in | |
946 | --) | |
947 | ac_dashdash=yes ;; | |
948 | ||
949 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
950 | ac_prev=bindir ;; | |
951 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
952 | bindir=$ac_optarg ;; | |
953 | ||
954 | -build | --build | --buil | --bui | --bu) | |
955 | ac_prev=build_alias ;; | |
956 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
957 | build_alias=$ac_optarg ;; | |
958 | ||
959 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
960 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
961 | ac_prev=cache_file ;; | |
962 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
963 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
964 | cache_file=$ac_optarg ;; | |
965 | ||
966 | --config-cache | -C) | |
967 | cache_file=config.cache ;; | |
968 | ||
969 | -datadir | --datadir | --datadi | --datad) | |
970 | ac_prev=datadir ;; | |
971 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
972 | datadir=$ac_optarg ;; | |
973 | ||
974 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
975 | | --dataroo | --dataro | --datar) | |
976 | ac_prev=datarootdir ;; | |
977 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
978 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
979 | datarootdir=$ac_optarg ;; | |
980 | ||
981 | -disable-* | --disable-*) | |
982 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
983 | # Reject names that are not valid shell variable names. | |
984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
985 | as_fn_error $? "invalid feature name: $ac_useropt" | |
986 | ac_useropt_orig=$ac_useropt | |
987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
988 | case $ac_user_opts in | |
989 | *" | |
990 | "enable_$ac_useropt" | |
991 | "*) ;; | |
992 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
993 | ac_unrecognized_sep=', ';; | |
994 | esac | |
995 | eval enable_$ac_useropt=no ;; | |
996 | ||
997 | -docdir | --docdir | --docdi | --doc | --do) | |
998 | ac_prev=docdir ;; | |
999 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1000 | docdir=$ac_optarg ;; | |
1001 | ||
1002 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1003 | ac_prev=dvidir ;; | |
1004 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1005 | dvidir=$ac_optarg ;; | |
1006 | ||
1007 | -enable-* | --enable-*) | |
1008 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1009 | # Reject names that are not valid shell variable names. | |
1010 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1011 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1012 | ac_useropt_orig=$ac_useropt | |
1013 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1014 | case $ac_user_opts in | |
1015 | *" | |
1016 | "enable_$ac_useropt" | |
1017 | "*) ;; | |
1018 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1019 | ac_unrecognized_sep=', ';; | |
1020 | esac | |
1021 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1022 | ||
1023 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1024 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1025 | | --exec | --exe | --ex) | |
1026 | ac_prev=exec_prefix ;; | |
1027 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1028 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1029 | | --exec=* | --exe=* | --ex=*) | |
1030 | exec_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -gas | --gas | --ga | --g) | |
1033 | # Obsolete; use --with-gas. | |
1034 | with_gas=yes ;; | |
1035 | ||
1036 | -help | --help | --hel | --he | -h) | |
1037 | ac_init_help=long ;; | |
1038 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1039 | ac_init_help=recursive ;; | |
1040 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1041 | ac_init_help=short ;; | |
1042 | ||
1043 | -host | --host | --hos | --ho) | |
1044 | ac_prev=host_alias ;; | |
1045 | -host=* | --host=* | --hos=* | --ho=*) | |
1046 | host_alias=$ac_optarg ;; | |
1047 | ||
1048 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1049 | ac_prev=htmldir ;; | |
1050 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1051 | | --ht=*) | |
1052 | htmldir=$ac_optarg ;; | |
1053 | ||
1054 | -includedir | --includedir | --includedi | --included | --include \ | |
1055 | | --includ | --inclu | --incl | --inc) | |
1056 | ac_prev=includedir ;; | |
1057 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1058 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1059 | includedir=$ac_optarg ;; | |
1060 | ||
1061 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1062 | ac_prev=infodir ;; | |
1063 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1064 | infodir=$ac_optarg ;; | |
1065 | ||
1066 | -libdir | --libdir | --libdi | --libd) | |
1067 | ac_prev=libdir ;; | |
1068 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1069 | libdir=$ac_optarg ;; | |
1070 | ||
1071 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1072 | | --libexe | --libex | --libe) | |
1073 | ac_prev=libexecdir ;; | |
1074 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1075 | | --libexe=* | --libex=* | --libe=*) | |
1076 | libexecdir=$ac_optarg ;; | |
1077 | ||
1078 | -localedir | --localedir | --localedi | --localed | --locale) | |
1079 | ac_prev=localedir ;; | |
1080 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1081 | localedir=$ac_optarg ;; | |
1082 | ||
1083 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1084 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1085 | ac_prev=localstatedir ;; | |
1086 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1087 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1088 | localstatedir=$ac_optarg ;; | |
1089 | ||
1090 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1091 | ac_prev=mandir ;; | |
1092 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1093 | mandir=$ac_optarg ;; | |
1094 | ||
1095 | -nfp | --nfp | --nf) | |
1096 | # Obsolete; use --without-fp. | |
1097 | with_fp=no ;; | |
1098 | ||
1099 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1100 | | --no-cr | --no-c | -n) | |
1101 | no_create=yes ;; | |
1102 | ||
1103 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1104 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1105 | no_recursion=yes ;; | |
1106 | ||
1107 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1108 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1109 | | --oldin | --oldi | --old | --ol | --o) | |
1110 | ac_prev=oldincludedir ;; | |
1111 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1112 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1113 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1114 | oldincludedir=$ac_optarg ;; | |
1115 | ||
1116 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1117 | ac_prev=prefix ;; | |
1118 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1119 | prefix=$ac_optarg ;; | |
1120 | ||
1121 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1122 | | --program-pre | --program-pr | --program-p) | |
1123 | ac_prev=program_prefix ;; | |
1124 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1125 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1126 | program_prefix=$ac_optarg ;; | |
1127 | ||
1128 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1129 | | --program-suf | --program-su | --program-s) | |
1130 | ac_prev=program_suffix ;; | |
1131 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1132 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1133 | program_suffix=$ac_optarg ;; | |
1134 | ||
1135 | -program-transform-name | --program-transform-name \ | |
1136 | | --program-transform-nam | --program-transform-na \ | |
1137 | | --program-transform-n | --program-transform- \ | |
1138 | | --program-transform | --program-transfor \ | |
1139 | | --program-transfo | --program-transf \ | |
1140 | | --program-trans | --program-tran \ | |
1141 | | --progr-tra | --program-tr | --program-t) | |
1142 | ac_prev=program_transform_name ;; | |
1143 | -program-transform-name=* | --program-transform-name=* \ | |
1144 | | --program-transform-nam=* | --program-transform-na=* \ | |
1145 | | --program-transform-n=* | --program-transform-=* \ | |
1146 | | --program-transform=* | --program-transfor=* \ | |
1147 | | --program-transfo=* | --program-transf=* \ | |
1148 | | --program-trans=* | --program-tran=* \ | |
1149 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1150 | program_transform_name=$ac_optarg ;; | |
1151 | ||
1152 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1153 | ac_prev=pdfdir ;; | |
1154 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1155 | pdfdir=$ac_optarg ;; | |
1156 | ||
1157 | -psdir | --psdir | --psdi | --psd | --ps) | |
1158 | ac_prev=psdir ;; | |
1159 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1160 | psdir=$ac_optarg ;; | |
1161 | ||
1162 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1163 | | -silent | --silent | --silen | --sile | --sil) | |
1164 | silent=yes ;; | |
1165 | ||
1166 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1167 | ac_prev=sbindir ;; | |
1168 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1169 | | --sbi=* | --sb=*) | |
1170 | sbindir=$ac_optarg ;; | |
1171 | ||
1172 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1173 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1174 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1175 | | --sha | --sh) | |
1176 | ac_prev=sharedstatedir ;; | |
1177 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1178 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1179 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1180 | | --sha=* | --sh=*) | |
1181 | sharedstatedir=$ac_optarg ;; | |
1182 | ||
1183 | -site | --site | --sit) | |
1184 | ac_prev=site ;; | |
1185 | -site=* | --site=* | --sit=*) | |
1186 | site=$ac_optarg ;; | |
1187 | ||
1188 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1189 | ac_prev=srcdir ;; | |
1190 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1191 | srcdir=$ac_optarg ;; | |
1192 | ||
1193 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1194 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1195 | ac_prev=sysconfdir ;; | |
1196 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1197 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1198 | sysconfdir=$ac_optarg ;; | |
1199 | ||
1200 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1201 | ac_prev=target_alias ;; | |
1202 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1203 | target_alias=$ac_optarg ;; | |
1204 | ||
1205 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1206 | verbose=yes ;; | |
1207 | ||
1208 | -version | --version | --versio | --versi | --vers | -V) | |
1209 | ac_init_version=: ;; | |
1210 | ||
1211 | -with-* | --with-*) | |
1212 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1213 | # Reject names that are not valid shell variable names. | |
1214 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1215 | as_fn_error $? "invalid package name: $ac_useropt" | |
1216 | ac_useropt_orig=$ac_useropt | |
1217 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1218 | case $ac_user_opts in | |
1219 | *" | |
1220 | "with_$ac_useropt" | |
1221 | "*) ;; | |
1222 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1223 | ac_unrecognized_sep=', ';; | |
1224 | esac | |
1225 | eval with_$ac_useropt=\$ac_optarg ;; | |
1226 | ||
1227 | -without-* | --without-*) | |
1228 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1229 | # Reject names that are not valid shell variable names. | |
1230 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1231 | as_fn_error $? "invalid package name: $ac_useropt" | |
1232 | ac_useropt_orig=$ac_useropt | |
1233 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1234 | case $ac_user_opts in | |
1235 | *" | |
1236 | "with_$ac_useropt" | |
1237 | "*) ;; | |
1238 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1239 | ac_unrecognized_sep=', ';; | |
1240 | esac | |
1241 | eval with_$ac_useropt=no ;; | |
1242 | ||
1243 | --x) | |
1244 | # Obsolete; use --with-x. | |
1245 | with_x=yes ;; | |
1246 | ||
1247 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1248 | | --x-incl | --x-inc | --x-in | --x-i) | |
1249 | ac_prev=x_includes ;; | |
1250 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1251 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1252 | x_includes=$ac_optarg ;; | |
1253 | ||
1254 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1255 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1256 | ac_prev=x_libraries ;; | |
1257 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1258 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1259 | x_libraries=$ac_optarg ;; | |
1260 | ||
1261 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1262 | Try \`$0 --help' for more information" | |
1263 | ;; | |
1264 | ||
1265 | *=*) | |
1266 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1267 | # Reject names that are not valid shell variable names. | |
1268 | case $ac_envvar in #( | |
1269 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1270 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1271 | esac | |
1272 | eval $ac_envvar=\$ac_optarg | |
1273 | export $ac_envvar ;; | |
1274 | ||
1275 | *) | |
1276 | # FIXME: should be removed in autoconf 3.0. | |
1277 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1278 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1279 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1280 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1281 | ;; | |
1282 | ||
1283 | esac | |
1284 | done | |
1285 | ||
1286 | if test -n "$ac_prev"; then | |
1287 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1288 | as_fn_error $? "missing argument to $ac_option" | |
1289 | fi | |
1290 | ||
1291 | if test -n "$ac_unrecognized_opts"; then | |
1292 | case $enable_option_checking in | |
1293 | no) ;; | |
1294 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1295 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1296 | esac | |
1297 | fi | |
1298 | ||
1299 | # Check all directory arguments for consistency. | |
1300 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1301 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1302 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1303 | libdir localedir mandir | |
1304 | do | |
1305 | eval ac_val=\$$ac_var | |
1306 | # Remove trailing slashes. | |
1307 | case $ac_val in | |
1308 | */ ) | |
1309 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1310 | eval $ac_var=\$ac_val;; | |
1311 | esac | |
1312 | # Be sure to have absolute directory names. | |
1313 | case $ac_val in | |
1314 | [\\/$]* | ?:[\\/]* ) continue;; | |
1315 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1316 | esac | |
1317 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1318 | done | |
1319 | ||
1320 | # There might be people who depend on the old broken behavior: `$host' | |
1321 | # used to hold the argument of --host etc. | |
1322 | # FIXME: To remove some day. | |
1323 | build=$build_alias | |
1324 | host=$host_alias | |
1325 | target=$target_alias | |
1326 | ||
1327 | # FIXME: To remove some day. | |
1328 | if test "x$host_alias" != x; then | |
1329 | if test "x$build_alias" = x; then | |
1330 | cross_compiling=maybe | |
1331 | elif test "x$build_alias" != "x$host_alias"; then | |
1332 | cross_compiling=yes | |
1333 | fi | |
1334 | fi | |
1335 | ||
1336 | ac_tool_prefix= | |
1337 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1338 | ||
1339 | test "$silent" = yes && exec 6>/dev/null | |
1340 | ||
1341 | ||
1342 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1343 | ac_ls_di=`ls -di .` && | |
1344 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1345 | as_fn_error $? "working directory cannot be determined" | |
1346 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1347 | as_fn_error $? "pwd does not report name of working directory" | |
1348 | ||
1349 | ||
1350 | # Find the source files, if location was not specified. | |
1351 | if test -z "$srcdir"; then | |
1352 | ac_srcdir_defaulted=yes | |
1353 | # Try the directory containing this script, then the parent directory. | |
1354 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1355 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1356 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1357 | X"$as_myself" : 'X\(//\)$' \| \ | |
1358 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1359 | $as_echo X"$as_myself" | | |
1360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1361 | s//\1/ | |
1362 | q | |
1363 | } | |
1364 | /^X\(\/\/\)[^/].*/{ | |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)$/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\).*/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | s/.*/./; q'` | |
1377 | srcdir=$ac_confdir | |
1378 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1379 | srcdir=.. | |
1380 | fi | |
1381 | else | |
1382 | ac_srcdir_defaulted=no | |
1383 | fi | |
1384 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1385 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1386 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1387 | fi | |
1388 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1389 | ac_abs_confdir=`( | |
1390 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1391 | pwd)` | |
1392 | # When building in place, set srcdir=. | |
1393 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1394 | srcdir=. | |
1395 | fi | |
1396 | # Remove unnecessary trailing slashes from srcdir. | |
1397 | # Double slashes in file names in object file debugging info | |
1398 | # mess up M-x gdb in Emacs. | |
1399 | case $srcdir in | |
1400 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1401 | esac | |
1402 | for ac_var in $ac_precious_vars; do | |
1403 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1404 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1405 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1406 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1407 | done | |
1408 | ||
1409 | # | |
1410 | # Report the --help message. | |
1411 | # | |
1412 | if test "$ac_init_help" = "long"; then | |
1413 | # Omit some internal or obsolete options to make the list less imposing. | |
1414 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1415 | cat <<_ACEOF | |
1416 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. | |
1417 | ||
1418 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1419 | ||
1420 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1421 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1422 | ||
1423 | Defaults for the options are specified in brackets. | |
1424 | ||
1425 | Configuration: | |
1426 | -h, --help display this help and exit | |
1427 | --help=short display options specific to this package | |
1428 | --help=recursive display the short help of all the included packages | |
1429 | -V, --version display version information and exit | |
1430 | -q, --quiet, --silent do not print \`checking ...' messages | |
1431 | --cache-file=FILE cache test results in FILE [disabled] | |
1432 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1433 | -n, --no-create do not create output files | |
1434 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1435 | ||
1436 | Installation directories: | |
1437 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1438 | [$ac_default_prefix] | |
1439 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1440 | [PREFIX] | |
1441 | ||
1442 | By default, \`make install' will install all the files in | |
1443 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1444 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1445 | for instance \`--prefix=\$HOME'. | |
1446 | ||
1447 | For better control, use the options below. | |
1448 | ||
1449 | Fine tuning of the installation directories: | |
1450 | --bindir=DIR user executables [EPREFIX/bin] | |
1451 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1452 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1453 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1454 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1455 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1456 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1457 | --includedir=DIR C header files [PREFIX/include] | |
1458 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1459 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1460 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1461 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1462 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1463 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1464 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1465 | --htmldir=DIR html documentation [DOCDIR] | |
1466 | --dvidir=DIR dvi documentation [DOCDIR] | |
1467 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1468 | --psdir=DIR ps documentation [DOCDIR] | |
1469 | _ACEOF | |
1470 | ||
1471 | cat <<\_ACEOF | |
1472 | ||
1473 | Program names: | |
1474 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1475 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1476 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1477 | ||
1478 | System types: | |
1479 | --build=BUILD configure for building on BUILD [guessed] | |
1480 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1481 | _ACEOF | |
1482 | fi | |
1483 | ||
1484 | if test -n "$ac_init_help"; then | |
1485 | case $ac_init_help in | |
1486 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; | |
1487 | esac | |
1488 | cat <<\_ACEOF | |
1489 | ||
1490 | Optional Features: | |
1491 | --disable-option-checking ignore unrecognized --enable/--with options | |
1492 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1493 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1494 | --enable-dependency-tracking | |
1495 | do not reject slow dependency extractors | |
1496 | --disable-dependency-tracking | |
1497 | speeds up one-time build | |
1498 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1499 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1500 | --enable-static[=PKGS] build static libraries [default=no] | |
1501 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1502 | --enable-fast-install[=PKGS] | |
1503 | optimize for fast installation [default=yes] | |
1504 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1505 | --enable-ltdl-install install libltdl | |
1506 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). | |
1507 | --enable-ipv6 Enable IPv6 support | |
1508 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1509 | --disable-openssl Disable OpenSSL support. | |
1510 | --disable-zlib Disable ziplinks support | |
1511 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1512 | hard(aborts the daemon) | |
1513 | --enable-iodebug Enable IO Debugging hooks | |
1514 | --enable-profile Enable profiling | |
1515 | --enable-warnings Enable all sorts of warnings for debugging. | |
1516 | ||
1517 | Optional Packages: | |
1518 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1519 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1520 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1521 | both] | |
1522 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1523 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1524 | (or the compiler's sysroot if not specified). | |
1525 | --with-included-ltdl use the GNU ltdl sources included here | |
1526 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1527 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
1528 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1529 | --with-shared-sqlite Use shared sqlite | |
1530 | --with-confdir=DIR Directory to install config files [deprecated, use | |
1531 | --sysconfdir instead]. | |
1532 | --with-logdir=DIR Directory where to write logfiles. | |
1533 | --with-helpdir=DIR Directory to install help files. | |
1534 | --with-moduledir=DIR Directory to install modules. | |
1535 | --with-rundir=DIR Directory in which to store pidfile. | |
1536 | --with-program-prefix= If set, programs installed into PATH will be | |
1537 | installed with names prefixed by this prefix. | |
1538 | --with-custom-branding=NAME | |
1539 | Custom branding name. | |
1540 | --with-custom-version=NAME | |
1541 | Custom version branding. | |
1542 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default | |
1543 | 31, max 50) | |
1544 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1545 | 390) | |
1546 | ||
1547 | Some influential environment variables: | |
1548 | CC C compiler command | |
1549 | CFLAGS C compiler flags | |
1550 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1551 | nonstandard directory <lib dir> | |
1552 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1553 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1554 | you have headers in a nonstandard directory <include dir> | |
1555 | CPP C preprocessor | |
1556 | YACC The `Yet Another Compiler Compiler' implementation to use. | |
1557 | Defaults to the first program found out of: `bison -y', `byacc', | |
1558 | `yacc'. | |
1559 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1560 | This script will default YFLAGS to the empty string to avoid a | |
1561 | default value of `-d' given by some make applications. | |
1562 | PKG_CONFIG path to pkg-config utility | |
1563 | PKG_CONFIG_PATH | |
1564 | directories to add to pkg-config's search path | |
1565 | PKG_CONFIG_LIBDIR | |
1566 | path overriding pkg-config's built-in search path | |
1567 | SQLITE_CFLAGS | |
1568 | C compiler flags for SQLITE, overriding pkg-config | |
1569 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
1570 | ||
1571 | Use these variables to override the choices made by `configure' or to help | |
1572 | it to find libraries and programs with nonstandard names/locations. | |
1573 | ||
1574 | Report bugs to the package provider. | |
1575 | _ACEOF | |
1576 | ac_status=$? | |
1577 | fi | |
1578 | ||
1579 | if test "$ac_init_help" = "recursive"; then | |
1580 | # If there are subdirs, report their specific --help. | |
1581 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1582 | test -d "$ac_dir" || | |
1583 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1584 | continue | |
1585 | ac_builddir=. | |
1586 | ||
1587 | case "$ac_dir" in | |
1588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1589 | *) | |
1590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1591 | # A ".." for each directory in $ac_dir_suffix. | |
1592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1593 | case $ac_top_builddir_sub in | |
1594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1596 | esac ;; | |
1597 | esac | |
1598 | ac_abs_top_builddir=$ac_pwd | |
1599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1600 | # for backward compatibility: | |
1601 | ac_top_builddir=$ac_top_build_prefix | |
1602 | ||
1603 | case $srcdir in | |
1604 | .) # We are building in place. | |
1605 | ac_srcdir=. | |
1606 | ac_top_srcdir=$ac_top_builddir_sub | |
1607 | ac_abs_top_srcdir=$ac_pwd ;; | |
1608 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1609 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1610 | ac_top_srcdir=$srcdir | |
1611 | ac_abs_top_srcdir=$srcdir ;; | |
1612 | *) # Relative name. | |
1613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1614 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1616 | esac | |
1617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1618 | ||
1619 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1620 | # Check for guested configure. | |
1621 | if test -f "$ac_srcdir/configure.gnu"; then | |
1622 | echo && | |
1623 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1624 | elif test -f "$ac_srcdir/configure"; then | |
1625 | echo && | |
1626 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1627 | else | |
1628 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1629 | fi || ac_status=$? | |
1630 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1631 | done | |
1632 | fi | |
1633 | ||
1634 | test -n "$ac_init_help" && exit $ac_status | |
1635 | if $ac_init_version; then | |
1636 | cat <<\_ACEOF | |
1637 | charybdis configure 3.6.0-dev | |
1638 | generated by GNU Autoconf 2.69 | |
1639 | ||
1640 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1641 | This configure script is free software; the Free Software Foundation | |
1642 | gives unlimited permission to copy, distribute and modify it. | |
1643 | _ACEOF | |
1644 | exit | |
1645 | fi | |
1646 | ||
1647 | ## ------------------------ ## | |
1648 | ## Autoconf initialization. ## | |
1649 | ## ------------------------ ## | |
1650 | ||
1651 | # ac_fn_c_try_compile LINENO | |
1652 | # -------------------------- | |
1653 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1654 | ac_fn_c_try_compile () | |
1655 | { | |
1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1657 | rm -f conftest.$ac_objext | |
1658 | if { { ac_try="$ac_compile" | |
1659 | case "(($ac_try" in | |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
1665 | (eval "$ac_compile") 2>conftest.err | |
1666 | ac_status=$? | |
1667 | if test -s conftest.err; then | |
1668 | grep -v '^ *+' conftest.err >conftest.er1 | |
1669 | cat conftest.er1 >&5 | |
1670 | mv -f conftest.er1 conftest.err | |
1671 | fi | |
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1673 | test $ac_status = 0; } && { | |
1674 | test -z "$ac_c_werror_flag" || | |
1675 | test ! -s conftest.err | |
1676 | } && test -s conftest.$ac_objext; then : | |
1677 | ac_retval=0 | |
1678 | else | |
1679 | $as_echo "$as_me: failed program was:" >&5 | |
1680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1681 | ||
1682 | ac_retval=1 | |
1683 | fi | |
1684 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1685 | as_fn_set_status $ac_retval | |
1686 | ||
1687 | } # ac_fn_c_try_compile | |
1688 | ||
1689 | # ac_fn_c_try_cpp LINENO | |
1690 | # ---------------------- | |
1691 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1692 | ac_fn_c_try_cpp () | |
1693 | { | |
1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1695 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1696 | case "(($ac_try" in | |
1697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1698 | *) ac_try_echo=$ac_try;; | |
1699 | esac | |
1700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1701 | $as_echo "$ac_try_echo"; } >&5 | |
1702 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1703 | ac_status=$? | |
1704 | if test -s conftest.err; then | |
1705 | grep -v '^ *+' conftest.err >conftest.er1 | |
1706 | cat conftest.er1 >&5 | |
1707 | mv -f conftest.er1 conftest.err | |
1708 | fi | |
1709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1710 | test $ac_status = 0; } > conftest.i && { | |
1711 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1712 | test ! -s conftest.err | |
1713 | }; then : | |
1714 | ac_retval=0 | |
1715 | else | |
1716 | $as_echo "$as_me: failed program was:" >&5 | |
1717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1718 | ||
1719 | ac_retval=1 | |
1720 | fi | |
1721 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1722 | as_fn_set_status $ac_retval | |
1723 | ||
1724 | } # ac_fn_c_try_cpp | |
1725 | ||
1726 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1727 | # ------------------------------------------------------- | |
1728 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1729 | # the include files in INCLUDES and setting the cache variable VAR | |
1730 | # accordingly. | |
1731 | ac_fn_c_check_header_mongrel () | |
1732 | { | |
1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1734 | if eval \${$3+:} false; then : | |
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1736 | $as_echo_n "checking for $2... " >&6; } | |
1737 | if eval \${$3+:} false; then : | |
1738 | $as_echo_n "(cached) " >&6 | |
1739 | fi | |
1740 | eval ac_res=\$$3 | |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1742 | $as_echo "$ac_res" >&6; } | |
1743 | else | |
1744 | # Is the header compilable? | |
1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1746 | $as_echo_n "checking $2 usability... " >&6; } | |
1747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1748 | /* end confdefs.h. */ | |
1749 | $4 | |
1750 | #include <$2> | |
1751 | _ACEOF | |
1752 | if ac_fn_c_try_compile "$LINENO"; then : | |
1753 | ac_header_compiler=yes | |
1754 | else | |
1755 | ac_header_compiler=no | |
1756 | fi | |
1757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1759 | $as_echo "$ac_header_compiler" >&6; } | |
1760 | ||
1761 | # Is the header present? | |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1763 | $as_echo_n "checking $2 presence... " >&6; } | |
1764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1765 | /* end confdefs.h. */ | |
1766 | #include <$2> | |
1767 | _ACEOF | |
1768 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1769 | ac_header_preproc=yes | |
1770 | else | |
1771 | ac_header_preproc=no | |
1772 | fi | |
1773 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1775 | $as_echo "$ac_header_preproc" >&6; } | |
1776 | ||
1777 | # So? What about this header? | |
1778 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1779 | yes:no: ) | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1781 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1783 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1784 | ;; | |
1785 | no:yes:* ) | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1789 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1791 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1793 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1795 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1796 | ;; | |
1797 | esac | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1799 | $as_echo_n "checking for $2... " >&6; } | |
1800 | if eval \${$3+:} false; then : | |
1801 | $as_echo_n "(cached) " >&6 | |
1802 | else | |
1803 | eval "$3=\$ac_header_compiler" | |
1804 | fi | |
1805 | eval ac_res=\$$3 | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1807 | $as_echo "$ac_res" >&6; } | |
1808 | fi | |
1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1810 | ||
1811 | } # ac_fn_c_check_header_mongrel | |
1812 | ||
1813 | # ac_fn_c_try_run LINENO | |
1814 | # ---------------------- | |
1815 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1816 | # that executables *can* be run. | |
1817 | ac_fn_c_try_run () | |
1818 | { | |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | if { { ac_try="$ac_link" | |
1821 | case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_link") 2>&5 | |
1828 | ac_status=$? | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1831 | { { case "(($ac_try" in | |
1832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1833 | *) ac_try_echo=$ac_try;; | |
1834 | esac | |
1835 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1836 | $as_echo "$ac_try_echo"; } >&5 | |
1837 | (eval "$ac_try") 2>&5 | |
1838 | ac_status=$? | |
1839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1840 | test $ac_status = 0; }; }; then : | |
1841 | ac_retval=0 | |
1842 | else | |
1843 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1844 | $as_echo "$as_me: failed program was:" >&5 | |
1845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1846 | ||
1847 | ac_retval=$ac_status | |
1848 | fi | |
1849 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1850 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1851 | as_fn_set_status $ac_retval | |
1852 | ||
1853 | } # ac_fn_c_try_run | |
1854 | ||
1855 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1856 | # ------------------------------------------------------- | |
1857 | # Tests whether HEADER exists and can be compiled using the include files in | |
1858 | # INCLUDES, setting the cache variable VAR accordingly. | |
1859 | ac_fn_c_check_header_compile () | |
1860 | { | |
1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1863 | $as_echo_n "checking for $2... " >&6; } | |
1864 | if eval \${$3+:} false; then : | |
1865 | $as_echo_n "(cached) " >&6 | |
1866 | else | |
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1868 | /* end confdefs.h. */ | |
1869 | $4 | |
1870 | #include <$2> | |
1871 | _ACEOF | |
1872 | if ac_fn_c_try_compile "$LINENO"; then : | |
1873 | eval "$3=yes" | |
1874 | else | |
1875 | eval "$3=no" | |
1876 | fi | |
1877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1878 | fi | |
1879 | eval ac_res=\$$3 | |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1881 | $as_echo "$ac_res" >&6; } | |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1883 | ||
1884 | } # ac_fn_c_check_header_compile | |
1885 | ||
1886 | # ac_fn_c_try_link LINENO | |
1887 | # ----------------------- | |
1888 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1889 | ac_fn_c_try_link () | |
1890 | { | |
1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1893 | if { { ac_try="$ac_link" | |
1894 | case "(($ac_try" in | |
1895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1896 | *) ac_try_echo=$ac_try;; | |
1897 | esac | |
1898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1899 | $as_echo "$ac_try_echo"; } >&5 | |
1900 | (eval "$ac_link") 2>conftest.err | |
1901 | ac_status=$? | |
1902 | if test -s conftest.err; then | |
1903 | grep -v '^ *+' conftest.err >conftest.er1 | |
1904 | cat conftest.er1 >&5 | |
1905 | mv -f conftest.er1 conftest.err | |
1906 | fi | |
1907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1908 | test $ac_status = 0; } && { | |
1909 | test -z "$ac_c_werror_flag" || | |
1910 | test ! -s conftest.err | |
1911 | } && test -s conftest$ac_exeext && { | |
1912 | test "$cross_compiling" = yes || | |
1913 | test -x conftest$ac_exeext | |
1914 | }; then : | |
1915 | ac_retval=0 | |
1916 | else | |
1917 | $as_echo "$as_me: failed program was:" >&5 | |
1918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1919 | ||
1920 | ac_retval=1 | |
1921 | fi | |
1922 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1923 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1924 | # interfere with the next link command; also delete a directory that is | |
1925 | # left behind by Apple's compiler. We do this before executing the actions. | |
1926 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1928 | as_fn_set_status $ac_retval | |
1929 | ||
1930 | } # ac_fn_c_try_link | |
1931 | ||
1932 | # ac_fn_c_check_func LINENO FUNC VAR | |
1933 | # ---------------------------------- | |
1934 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1935 | ac_fn_c_check_func () | |
1936 | { | |
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1939 | $as_echo_n "checking for $2... " >&6; } | |
1940 | if eval \${$3+:} false; then : | |
1941 | $as_echo_n "(cached) " >&6 | |
1942 | else | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
1945 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1947 | #define $2 innocuous_$2 | |
1948 | ||
1949 | /* System header to define __stub macros and hopefully few prototypes, | |
1950 | which can conflict with char $2 (); below. | |
1951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1952 | <limits.h> exists even on freestanding compilers. */ | |
1953 | ||
1954 | #ifdef __STDC__ | |
1955 | # include <limits.h> | |
1956 | #else | |
1957 | # include <assert.h> | |
1958 | #endif | |
1959 | ||
1960 | #undef $2 | |
1961 | ||
1962 | /* Override any GCC internal prototype to avoid an error. | |
1963 | Use char because int might match the return type of a GCC | |
1964 | builtin and then its argument prototype would still apply. */ | |
1965 | #ifdef __cplusplus | |
1966 | extern "C" | |
1967 | #endif | |
1968 | char $2 (); | |
1969 | /* The GNU C library defines this for functions which it implements | |
1970 | to always fail with ENOSYS. Some functions are actually named | |
1971 | something starting with __ and the normal name is an alias. */ | |
1972 | #if defined __stub_$2 || defined __stub___$2 | |
1973 | choke me | |
1974 | #endif | |
1975 | ||
1976 | int | |
1977 | main () | |
1978 | { | |
1979 | return $2 (); | |
1980 | ; | |
1981 | return 0; | |
1982 | } | |
1983 | _ACEOF | |
1984 | if ac_fn_c_try_link "$LINENO"; then : | |
1985 | eval "$3=yes" | |
1986 | else | |
1987 | eval "$3=no" | |
1988 | fi | |
1989 | rm -f core conftest.err conftest.$ac_objext \ | |
1990 | conftest$ac_exeext conftest.$ac_ext | |
1991 | fi | |
1992 | eval ac_res=\$$3 | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1994 | $as_echo "$ac_res" >&6; } | |
1995 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1996 | ||
1997 | } # ac_fn_c_check_func | |
1998 | ||
1999 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2000 | # --------------------------------------------- | |
2001 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2002 | # accordingly. | |
2003 | ac_fn_c_check_decl () | |
2004 | { | |
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2006 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2007 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2009 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2010 | if eval \${$3+:} false; then : | |
2011 | $as_echo_n "(cached) " >&6 | |
2012 | else | |
2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2014 | /* end confdefs.h. */ | |
2015 | $4 | |
2016 | int | |
2017 | main () | |
2018 | { | |
2019 | #ifndef $as_decl_name | |
2020 | #ifdef __cplusplus | |
2021 | (void) $as_decl_use; | |
2022 | #else | |
2023 | (void) $as_decl_name; | |
2024 | #endif | |
2025 | #endif | |
2026 | ||
2027 | ; | |
2028 | return 0; | |
2029 | } | |
2030 | _ACEOF | |
2031 | if ac_fn_c_try_compile "$LINENO"; then : | |
2032 | eval "$3=yes" | |
2033 | else | |
2034 | eval "$3=no" | |
2035 | fi | |
2036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2037 | fi | |
2038 | eval ac_res=\$$3 | |
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2040 | $as_echo "$ac_res" >&6; } | |
2041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2042 | ||
2043 | } # ac_fn_c_check_decl | |
2044 | ||
2045 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2046 | # ------------------------------------------- | |
2047 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2048 | # variable VAR accordingly. | |
2049 | ac_fn_c_check_type () | |
2050 | { | |
2051 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2053 | $as_echo_n "checking for $2... " >&6; } | |
2054 | if eval \${$3+:} false; then : | |
2055 | $as_echo_n "(cached) " >&6 | |
2056 | else | |
2057 | eval "$3=no" | |
2058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2059 | /* end confdefs.h. */ | |
2060 | $4 | |
2061 | int | |
2062 | main () | |
2063 | { | |
2064 | if (sizeof ($2)) | |
2065 | return 0; | |
2066 | ; | |
2067 | return 0; | |
2068 | } | |
2069 | _ACEOF | |
2070 | if ac_fn_c_try_compile "$LINENO"; then : | |
2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2072 | /* end confdefs.h. */ | |
2073 | $4 | |
2074 | int | |
2075 | main () | |
2076 | { | |
2077 | if (sizeof (($2))) | |
2078 | return 0; | |
2079 | ; | |
2080 | return 0; | |
2081 | } | |
2082 | _ACEOF | |
2083 | if ac_fn_c_try_compile "$LINENO"; then : | |
2084 | ||
2085 | else | |
2086 | eval "$3=yes" | |
2087 | fi | |
2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2089 | fi | |
2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2091 | fi | |
2092 | eval ac_res=\$$3 | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2094 | $as_echo "$ac_res" >&6; } | |
2095 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2096 | ||
2097 | } # ac_fn_c_check_type | |
2098 | ||
2099 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2100 | # -------------------------------------------- | |
2101 | # Tries to find the compile-time value of EXPR in a program that includes | |
2102 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2103 | # computed | |
2104 | ac_fn_c_compute_int () | |
2105 | { | |
2106 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2107 | if test "$cross_compiling" = yes; then | |
2108 | # Depending upon the size, compute the lo and hi bounds. | |
2109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2110 | /* end confdefs.h. */ | |
2111 | $4 | |
2112 | int | |
2113 | main () | |
2114 | { | |
2115 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2116 | test_array [0] = 0; | |
2117 | return test_array [0]; | |
2118 | ||
2119 | ; | |
2120 | return 0; | |
2121 | } | |
2122 | _ACEOF | |
2123 | if ac_fn_c_try_compile "$LINENO"; then : | |
2124 | ac_lo=0 ac_mid=0 | |
2125 | while :; do | |
2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2127 | /* end confdefs.h. */ | |
2128 | $4 | |
2129 | int | |
2130 | main () | |
2131 | { | |
2132 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2133 | test_array [0] = 0; | |
2134 | return test_array [0]; | |
2135 | ||
2136 | ; | |
2137 | return 0; | |
2138 | } | |
2139 | _ACEOF | |
2140 | if ac_fn_c_try_compile "$LINENO"; then : | |
2141 | ac_hi=$ac_mid; break | |
2142 | else | |
2143 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2144 | if test $ac_lo -le $ac_mid; then | |
2145 | ac_lo= ac_hi= | |
2146 | break | |
2147 | fi | |
2148 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2149 | fi | |
2150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2151 | done | |
2152 | else | |
2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2154 | /* end confdefs.h. */ | |
2155 | $4 | |
2156 | int | |
2157 | main () | |
2158 | { | |
2159 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2160 | test_array [0] = 0; | |
2161 | return test_array [0]; | |
2162 | ||
2163 | ; | |
2164 | return 0; | |
2165 | } | |
2166 | _ACEOF | |
2167 | if ac_fn_c_try_compile "$LINENO"; then : | |
2168 | ac_hi=-1 ac_mid=-1 | |
2169 | while :; do | |
2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2171 | /* end confdefs.h. */ | |
2172 | $4 | |
2173 | int | |
2174 | main () | |
2175 | { | |
2176 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2177 | test_array [0] = 0; | |
2178 | return test_array [0]; | |
2179 | ||
2180 | ; | |
2181 | return 0; | |
2182 | } | |
2183 | _ACEOF | |
2184 | if ac_fn_c_try_compile "$LINENO"; then : | |
2185 | ac_lo=$ac_mid; break | |
2186 | else | |
2187 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2188 | if test $ac_mid -le $ac_hi; then | |
2189 | ac_lo= ac_hi= | |
2190 | break | |
2191 | fi | |
2192 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2193 | fi | |
2194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2195 | done | |
2196 | else | |
2197 | ac_lo= ac_hi= | |
2198 | fi | |
2199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2200 | fi | |
2201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2202 | # Binary search between lo and hi bounds. | |
2203 | while test "x$ac_lo" != "x$ac_hi"; do | |
2204 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2206 | /* end confdefs.h. */ | |
2207 | $4 | |
2208 | int | |
2209 | main () | |
2210 | { | |
2211 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2212 | test_array [0] = 0; | |
2213 | return test_array [0]; | |
2214 | ||
2215 | ; | |
2216 | return 0; | |
2217 | } | |
2218 | _ACEOF | |
2219 | if ac_fn_c_try_compile "$LINENO"; then : | |
2220 | ac_hi=$ac_mid | |
2221 | else | |
2222 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2223 | fi | |
2224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2225 | done | |
2226 | case $ac_lo in #(( | |
2227 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2228 | '') ac_retval=1 ;; | |
2229 | esac | |
2230 | else | |
2231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2232 | /* end confdefs.h. */ | |
2233 | $4 | |
2234 | static long int longval () { return $2; } | |
2235 | static unsigned long int ulongval () { return $2; } | |
2236 | #include <stdio.h> | |
2237 | #include <stdlib.h> | |
2238 | int | |
2239 | main () | |
2240 | { | |
2241 | ||
2242 | FILE *f = fopen ("conftest.val", "w"); | |
2243 | if (! f) | |
2244 | return 1; | |
2245 | if (($2) < 0) | |
2246 | { | |
2247 | long int i = longval (); | |
2248 | if (i != ($2)) | |
2249 | return 1; | |
2250 | fprintf (f, "%ld", i); | |
2251 | } | |
2252 | else | |
2253 | { | |
2254 | unsigned long int i = ulongval (); | |
2255 | if (i != ($2)) | |
2256 | return 1; | |
2257 | fprintf (f, "%lu", i); | |
2258 | } | |
2259 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2260 | on some platforms. */ | |
2261 | return ferror (f) || fclose (f) != 0; | |
2262 | ||
2263 | ; | |
2264 | return 0; | |
2265 | } | |
2266 | _ACEOF | |
2267 | if ac_fn_c_try_run "$LINENO"; then : | |
2268 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2269 | else | |
2270 | ac_retval=1 | |
2271 | fi | |
2272 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2273 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2274 | rm -f conftest.val | |
2275 | ||
2276 | fi | |
2277 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2278 | as_fn_set_status $ac_retval | |
2279 | ||
2280 | } # ac_fn_c_compute_int | |
2281 | cat >config.log <<_ACEOF | |
2282 | This file contains any messages produced by compilers while | |
2283 | running configure, to aid debugging if configure makes a mistake. | |
2284 | ||
2285 | It was created by charybdis $as_me 3.6.0-dev, which was | |
2286 | generated by GNU Autoconf 2.69. Invocation command line was | |
2287 | ||
2288 | $ $0 $@ | |
2289 | ||
2290 | _ACEOF | |
2291 | exec 5>>config.log | |
2292 | { | |
2293 | cat <<_ASUNAME | |
2294 | ## --------- ## | |
2295 | ## Platform. ## | |
2296 | ## --------- ## | |
2297 | ||
2298 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2299 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2300 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2301 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2302 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2303 | ||
2304 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2305 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2306 | ||
2307 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2308 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2309 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2310 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2311 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2312 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2313 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2314 | ||
2315 | _ASUNAME | |
2316 | ||
2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2318 | for as_dir in $PATH | |
2319 | do | |
2320 | IFS=$as_save_IFS | |
2321 | test -z "$as_dir" && as_dir=. | |
2322 | $as_echo "PATH: $as_dir" | |
2323 | done | |
2324 | IFS=$as_save_IFS | |
2325 | ||
2326 | } >&5 | |
2327 | ||
2328 | cat >&5 <<_ACEOF | |
2329 | ||
2330 | ||
2331 | ## ----------- ## | |
2332 | ## Core tests. ## | |
2333 | ## ----------- ## | |
2334 | ||
2335 | _ACEOF | |
2336 | ||
2337 | ||
2338 | # Keep a trace of the command line. | |
2339 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2340 | # Strip out --silent because we don't want to record it for future runs. | |
2341 | # Also quote any args containing shell meta-characters. | |
2342 | # Make two passes to allow for proper duplicate-argument suppression. | |
2343 | ac_configure_args= | |
2344 | ac_configure_args0= | |
2345 | ac_configure_args1= | |
2346 | ac_must_keep_next=false | |
2347 | for ac_pass in 1 2 | |
2348 | do | |
2349 | for ac_arg | |
2350 | do | |
2351 | case $ac_arg in | |
2352 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2354 | | -silent | --silent | --silen | --sile | --sil) | |
2355 | continue ;; | |
2356 | *\'*) | |
2357 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2358 | esac | |
2359 | case $ac_pass in | |
2360 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2361 | 2) | |
2362 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2363 | if test $ac_must_keep_next = true; then | |
2364 | ac_must_keep_next=false # Got value, back to normal. | |
2365 | else | |
2366 | case $ac_arg in | |
2367 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2368 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2369 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2370 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2371 | case "$ac_configure_args0 " in | |
2372 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2373 | esac | |
2374 | ;; | |
2375 | -* ) ac_must_keep_next=true ;; | |
2376 | esac | |
2377 | fi | |
2378 | as_fn_append ac_configure_args " '$ac_arg'" | |
2379 | ;; | |
2380 | esac | |
2381 | done | |
2382 | done | |
2383 | { ac_configure_args0=; unset ac_configure_args0;} | |
2384 | { ac_configure_args1=; unset ac_configure_args1;} | |
2385 | ||
2386 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2387 | # config.log. We remove comments because anyway the quotes in there | |
2388 | # would cause problems or look ugly. | |
2389 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2390 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2391 | trap 'exit_status=$? | |
2392 | # Save into config.log some information that might help in debugging. | |
2393 | { | |
2394 | echo | |
2395 | ||
2396 | $as_echo "## ---------------- ## | |
2397 | ## Cache variables. ## | |
2398 | ## ---------------- ##" | |
2399 | echo | |
2400 | # The following way of writing the cache mishandles newlines in values, | |
2401 | ( | |
2402 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2403 | eval ac_val=\$$ac_var | |
2404 | case $ac_val in #( | |
2405 | *${as_nl}*) | |
2406 | case $ac_var in #( | |
2407 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2408 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2409 | esac | |
2410 | case $ac_var in #( | |
2411 | _ | IFS | as_nl) ;; #( | |
2412 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2413 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2414 | esac ;; | |
2415 | esac | |
2416 | done | |
2417 | (set) 2>&1 | | |
2418 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2419 | *${as_nl}ac_space=\ *) | |
2420 | sed -n \ | |
2421 | "s/'\''/'\''\\\\'\'''\''/g; | |
2422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2423 | ;; #( | |
2424 | *) | |
2425 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2426 | ;; | |
2427 | esac | | |
2428 | sort | |
2429 | ) | |
2430 | echo | |
2431 | ||
2432 | $as_echo "## ----------------- ## | |
2433 | ## Output variables. ## | |
2434 | ## ----------------- ##" | |
2435 | echo | |
2436 | for ac_var in $ac_subst_vars | |
2437 | do | |
2438 | eval ac_val=\$$ac_var | |
2439 | case $ac_val in | |
2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2441 | esac | |
2442 | $as_echo "$ac_var='\''$ac_val'\''" | |
2443 | done | sort | |
2444 | echo | |
2445 | ||
2446 | if test -n "$ac_subst_files"; then | |
2447 | $as_echo "## ------------------- ## | |
2448 | ## File substitutions. ## | |
2449 | ## ------------------- ##" | |
2450 | echo | |
2451 | for ac_var in $ac_subst_files | |
2452 | do | |
2453 | eval ac_val=\$$ac_var | |
2454 | case $ac_val in | |
2455 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2456 | esac | |
2457 | $as_echo "$ac_var='\''$ac_val'\''" | |
2458 | done | sort | |
2459 | echo | |
2460 | fi | |
2461 | ||
2462 | if test -s confdefs.h; then | |
2463 | $as_echo "## ----------- ## | |
2464 | ## confdefs.h. ## | |
2465 | ## ----------- ##" | |
2466 | echo | |
2467 | cat confdefs.h | |
2468 | echo | |
2469 | fi | |
2470 | test "$ac_signal" != 0 && | |
2471 | $as_echo "$as_me: caught signal $ac_signal" | |
2472 | $as_echo "$as_me: exit $exit_status" | |
2473 | } >&5 | |
2474 | rm -f core *.core core.conftest.* && | |
2475 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2476 | exit $exit_status | |
2477 | ' 0 | |
2478 | for ac_signal in 1 2 13 15; do | |
2479 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2480 | done | |
2481 | ac_signal=0 | |
2482 | ||
2483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2484 | rm -f -r conftest* confdefs.h | |
2485 | ||
2486 | $as_echo "/* confdefs.h */" > confdefs.h | |
2487 | ||
2488 | # Predefined preprocessor variables. | |
2489 | ||
2490 | cat >>confdefs.h <<_ACEOF | |
2491 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2492 | _ACEOF | |
2493 | ||
2494 | cat >>confdefs.h <<_ACEOF | |
2495 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2496 | _ACEOF | |
2497 | ||
2498 | cat >>confdefs.h <<_ACEOF | |
2499 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2500 | _ACEOF | |
2501 | ||
2502 | cat >>confdefs.h <<_ACEOF | |
2503 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2504 | _ACEOF | |
2505 | ||
2506 | cat >>confdefs.h <<_ACEOF | |
2507 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2508 | _ACEOF | |
2509 | ||
2510 | cat >>confdefs.h <<_ACEOF | |
2511 | #define PACKAGE_URL "$PACKAGE_URL" | |
2512 | _ACEOF | |
2513 | ||
2514 | ||
2515 | # Let the site file select an alternate cache file if it wants to. | |
2516 | # Prefer an explicitly selected file to automatically selected ones. | |
2517 | ac_site_file1=NONE | |
2518 | ac_site_file2=NONE | |
2519 | if test -n "$CONFIG_SITE"; then | |
2520 | # We do not want a PATH search for config.site. | |
2521 | case $CONFIG_SITE in #(( | |
2522 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2523 | */*) ac_site_file1=$CONFIG_SITE;; | |
2524 | *) ac_site_file1=./$CONFIG_SITE;; | |
2525 | esac | |
2526 | elif test "x$prefix" != xNONE; then | |
2527 | ac_site_file1=$prefix/share/config.site | |
2528 | ac_site_file2=$prefix/etc/config.site | |
2529 | else | |
2530 | ac_site_file1=$ac_default_prefix/share/config.site | |
2531 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2532 | fi | |
2533 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2534 | do | |
2535 | test "x$ac_site_file" = xNONE && continue | |
2536 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2538 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2539 | sed 's/^/| /' "$ac_site_file" >&5 | |
2540 | . "$ac_site_file" \ | |
2541 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2543 | as_fn_error $? "failed to load site script $ac_site_file | |
2544 | See \`config.log' for more details" "$LINENO" 5; } | |
2545 | fi | |
2546 | done | |
2547 | ||
2548 | if test -r "$cache_file"; then | |
2549 | # Some versions of bash will fail to source /dev/null (special files | |
2550 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2551 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2553 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2554 | case $cache_file in | |
2555 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2556 | *) . "./$cache_file";; | |
2557 | esac | |
2558 | fi | |
2559 | else | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2561 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2562 | >$cache_file | |
2563 | fi | |
2564 | ||
2565 | # Check that the precious variables saved in the cache have kept the same | |
2566 | # value. | |
2567 | ac_cache_corrupted=false | |
2568 | for ac_var in $ac_precious_vars; do | |
2569 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2570 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2571 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2572 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2573 | case $ac_old_set,$ac_new_set in | |
2574 | set,) | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2576 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2577 | ac_cache_corrupted=: ;; | |
2578 | ,set) | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2580 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2581 | ac_cache_corrupted=: ;; | |
2582 | ,);; | |
2583 | *) | |
2584 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2585 | # differences in whitespace do not lead to failure. | |
2586 | ac_old_val_w=`echo x $ac_old_val` | |
2587 | ac_new_val_w=`echo x $ac_new_val` | |
2588 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2590 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2591 | ac_cache_corrupted=: | |
2592 | else | |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2594 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2595 | eval $ac_var=\$ac_old_val | |
2596 | fi | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2598 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2600 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2601 | fi;; | |
2602 | esac | |
2603 | # Pass precious variables to config.status. | |
2604 | if test "$ac_new_set" = set; then | |
2605 | case $ac_new_val in | |
2606 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2607 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2608 | esac | |
2609 | case " $ac_configure_args " in | |
2610 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2611 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2612 | esac | |
2613 | fi | |
2614 | done | |
2615 | if $ac_cache_corrupted; then | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2617 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2619 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2620 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2621 | fi | |
2622 | ## -------------------- ## | |
2623 | ## Main body of script. ## | |
2624 | ## -------------------- ## | |
2625 | ||
2626 | ac_ext=c | |
2627 | ac_cpp='$CPP $CPPFLAGS' | |
2628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2631 | ||
2632 | ||
2633 | ||
2634 | ac_ext=c | |
2635 | ac_cpp='$CPP $CPPFLAGS' | |
2636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2639 | ||
2640 | ac_aux_dir= | |
2641 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2642 | if test -f "$ac_dir/install-sh"; then | |
2643 | ac_aux_dir=$ac_dir | |
2644 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2645 | break | |
2646 | elif test -f "$ac_dir/install.sh"; then | |
2647 | ac_aux_dir=$ac_dir | |
2648 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2649 | break | |
2650 | elif test -f "$ac_dir/shtool"; then | |
2651 | ac_aux_dir=$ac_dir | |
2652 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2653 | break | |
2654 | fi | |
2655 | done | |
2656 | if test -z "$ac_aux_dir"; then | |
2657 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2658 | fi | |
2659 | ||
2660 | # These three variables are undocumented and unsupported, | |
2661 | # and are intended to be withdrawn in a future Autoconf release. | |
2662 | # They can cause serious problems if a builder's source tree is in a directory | |
2663 | # whose full name contains unusual characters. | |
2664 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2665 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2666 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2667 | ||
2668 | ||
2669 | # Expand $ac_aux_dir to an absolute path. | |
2670 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2671 | ||
2672 | ac_ext=c | |
2673 | ac_cpp='$CPP $CPPFLAGS' | |
2674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2677 | if test -n "$ac_tool_prefix"; then | |
2678 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2679 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2681 | $as_echo_n "checking for $ac_word... " >&6; } | |
2682 | if ${ac_cv_prog_CC+:} false; then : | |
2683 | $as_echo_n "(cached) " >&6 | |
2684 | else | |
2685 | if test -n "$CC"; then | |
2686 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2687 | else | |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2689 | for as_dir in $PATH | |
2690 | do | |
2691 | IFS=$as_save_IFS | |
2692 | test -z "$as_dir" && as_dir=. | |
2693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2695 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2697 | break 2 | |
2698 | fi | |
2699 | done | |
2700 | done | |
2701 | IFS=$as_save_IFS | |
2702 | ||
2703 | fi | |
2704 | fi | |
2705 | CC=$ac_cv_prog_CC | |
2706 | if test -n "$CC"; then | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2708 | $as_echo "$CC" >&6; } | |
2709 | else | |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2711 | $as_echo "no" >&6; } | |
2712 | fi | |
2713 | ||
2714 | ||
2715 | fi | |
2716 | if test -z "$ac_cv_prog_CC"; then | |
2717 | ac_ct_CC=$CC | |
2718 | # Extract the first word of "gcc", so it can be a program name with args. | |
2719 | set dummy gcc; ac_word=$2 | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2721 | $as_echo_n "checking for $ac_word... " >&6; } | |
2722 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2723 | $as_echo_n "(cached) " >&6 | |
2724 | else | |
2725 | if test -n "$ac_ct_CC"; then | |
2726 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2727 | else | |
2728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2729 | for as_dir in $PATH | |
2730 | do | |
2731 | IFS=$as_save_IFS | |
2732 | test -z "$as_dir" && as_dir=. | |
2733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2735 | ac_cv_prog_ac_ct_CC="gcc" | |
2736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2737 | break 2 | |
2738 | fi | |
2739 | done | |
2740 | done | |
2741 | IFS=$as_save_IFS | |
2742 | ||
2743 | fi | |
2744 | fi | |
2745 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2746 | if test -n "$ac_ct_CC"; then | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2748 | $as_echo "$ac_ct_CC" >&6; } | |
2749 | else | |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2751 | $as_echo "no" >&6; } | |
2752 | fi | |
2753 | ||
2754 | if test "x$ac_ct_CC" = x; then | |
2755 | CC="" | |
2756 | else | |
2757 | case $cross_compiling:$ac_tool_warned in | |
2758 | yes:) | |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2760 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2761 | ac_tool_warned=yes ;; | |
2762 | esac | |
2763 | CC=$ac_ct_CC | |
2764 | fi | |
2765 | else | |
2766 | CC="$ac_cv_prog_CC" | |
2767 | fi | |
2768 | ||
2769 | if test -z "$CC"; then | |
2770 | if test -n "$ac_tool_prefix"; then | |
2771 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2772 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2774 | $as_echo_n "checking for $ac_word... " >&6; } | |
2775 | if ${ac_cv_prog_CC+:} false; then : | |
2776 | $as_echo_n "(cached) " >&6 | |
2777 | else | |
2778 | if test -n "$CC"; then | |
2779 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2780 | else | |
2781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2782 | for as_dir in $PATH | |
2783 | do | |
2784 | IFS=$as_save_IFS | |
2785 | test -z "$as_dir" && as_dir=. | |
2786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2788 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2790 | break 2 | |
2791 | fi | |
2792 | done | |
2793 | done | |
2794 | IFS=$as_save_IFS | |
2795 | ||
2796 | fi | |
2797 | fi | |
2798 | CC=$ac_cv_prog_CC | |
2799 | if test -n "$CC"; then | |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2801 | $as_echo "$CC" >&6; } | |
2802 | else | |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2804 | $as_echo "no" >&6; } | |
2805 | fi | |
2806 | ||
2807 | ||
2808 | fi | |
2809 | fi | |
2810 | if test -z "$CC"; then | |
2811 | # Extract the first word of "cc", so it can be a program name with args. | |
2812 | set dummy cc; ac_word=$2 | |
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2814 | $as_echo_n "checking for $ac_word... " >&6; } | |
2815 | if ${ac_cv_prog_CC+:} false; then : | |
2816 | $as_echo_n "(cached) " >&6 | |
2817 | else | |
2818 | if test -n "$CC"; then | |
2819 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2820 | else | |
2821 | ac_prog_rejected=no | |
2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2823 | for as_dir in $PATH | |
2824 | do | |
2825 | IFS=$as_save_IFS | |
2826 | test -z "$as_dir" && as_dir=. | |
2827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2829 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2830 | ac_prog_rejected=yes | |
2831 | continue | |
2832 | fi | |
2833 | ac_cv_prog_CC="cc" | |
2834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2835 | break 2 | |
2836 | fi | |
2837 | done | |
2838 | done | |
2839 | IFS=$as_save_IFS | |
2840 | ||
2841 | if test $ac_prog_rejected = yes; then | |
2842 | # We found a bogon in the path, so make sure we never use it. | |
2843 | set dummy $ac_cv_prog_CC | |
2844 | shift | |
2845 | if test $# != 0; then | |
2846 | # We chose a different compiler from the bogus one. | |
2847 | # However, it has the same basename, so the bogon will be chosen | |
2848 | # first if we set CC to just the basename; use the full file name. | |
2849 | shift | |
2850 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2851 | fi | |
2852 | fi | |
2853 | fi | |
2854 | fi | |
2855 | CC=$ac_cv_prog_CC | |
2856 | if test -n "$CC"; then | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2858 | $as_echo "$CC" >&6; } | |
2859 | else | |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2861 | $as_echo "no" >&6; } | |
2862 | fi | |
2863 | ||
2864 | ||
2865 | fi | |
2866 | if test -z "$CC"; then | |
2867 | if test -n "$ac_tool_prefix"; then | |
2868 | for ac_prog in cl.exe | |
2869 | do | |
2870 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2871 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2873 | $as_echo_n "checking for $ac_word... " >&6; } | |
2874 | if ${ac_cv_prog_CC+:} false; then : | |
2875 | $as_echo_n "(cached) " >&6 | |
2876 | else | |
2877 | if test -n "$CC"; then | |
2878 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2879 | else | |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2881 | for as_dir in $PATH | |
2882 | do | |
2883 | IFS=$as_save_IFS | |
2884 | test -z "$as_dir" && as_dir=. | |
2885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2887 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2889 | break 2 | |
2890 | fi | |
2891 | done | |
2892 | done | |
2893 | IFS=$as_save_IFS | |
2894 | ||
2895 | fi | |
2896 | fi | |
2897 | CC=$ac_cv_prog_CC | |
2898 | if test -n "$CC"; then | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2900 | $as_echo "$CC" >&6; } | |
2901 | else | |
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2903 | $as_echo "no" >&6; } | |
2904 | fi | |
2905 | ||
2906 | ||
2907 | test -n "$CC" && break | |
2908 | done | |
2909 | fi | |
2910 | if test -z "$CC"; then | |
2911 | ac_ct_CC=$CC | |
2912 | for ac_prog in cl.exe | |
2913 | do | |
2914 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2915 | set dummy $ac_prog; ac_word=$2 | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2917 | $as_echo_n "checking for $ac_word... " >&6; } | |
2918 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2919 | $as_echo_n "(cached) " >&6 | |
2920 | else | |
2921 | if test -n "$ac_ct_CC"; then | |
2922 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2923 | else | |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2925 | for as_dir in $PATH | |
2926 | do | |
2927 | IFS=$as_save_IFS | |
2928 | test -z "$as_dir" && as_dir=. | |
2929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2931 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2933 | break 2 | |
2934 | fi | |
2935 | done | |
2936 | done | |
2937 | IFS=$as_save_IFS | |
2938 | ||
2939 | fi | |
2940 | fi | |
2941 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2942 | if test -n "$ac_ct_CC"; then | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2944 | $as_echo "$ac_ct_CC" >&6; } | |
2945 | else | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2947 | $as_echo "no" >&6; } | |
2948 | fi | |
2949 | ||
2950 | ||
2951 | test -n "$ac_ct_CC" && break | |
2952 | done | |
2953 | ||
2954 | if test "x$ac_ct_CC" = x; then | |
2955 | CC="" | |
2956 | else | |
2957 | case $cross_compiling:$ac_tool_warned in | |
2958 | yes:) | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2960 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2961 | ac_tool_warned=yes ;; | |
2962 | esac | |
2963 | CC=$ac_ct_CC | |
2964 | fi | |
2965 | fi | |
2966 | ||
2967 | fi | |
2968 | ||
2969 | ||
2970 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2972 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2973 | See \`config.log' for more details" "$LINENO" 5; } | |
2974 | ||
2975 | # Provide some information about the compiler. | |
2976 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2977 | set X $ac_compile | |
2978 | ac_compiler=$2 | |
2979 | for ac_option in --version -v -V -qversion; do | |
2980 | { { ac_try="$ac_compiler $ac_option >&5" | |
2981 | case "(($ac_try" in | |
2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2983 | *) ac_try_echo=$ac_try;; | |
2984 | esac | |
2985 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2986 | $as_echo "$ac_try_echo"; } >&5 | |
2987 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2988 | ac_status=$? | |
2989 | if test -s conftest.err; then | |
2990 | sed '10a\ | |
2991 | ... rest of stderr output deleted ... | |
2992 | 10q' conftest.err >conftest.er1 | |
2993 | cat conftest.er1 >&5 | |
2994 | fi | |
2995 | rm -f conftest.er1 conftest.err | |
2996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2997 | test $ac_status = 0; } | |
2998 | done | |
2999 | ||
3000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3001 | /* end confdefs.h. */ | |
3002 | ||
3003 | int | |
3004 | main () | |
3005 | { | |
3006 | ||
3007 | ; | |
3008 | return 0; | |
3009 | } | |
3010 | _ACEOF | |
3011 | ac_clean_files_save=$ac_clean_files | |
3012 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3013 | # Try to create an executable without -o first, disregard a.out. | |
3014 | # It will help us diagnose broken compilers, and finding out an intuition | |
3015 | # of exeext. | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3017 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3018 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3019 | ||
3020 | # The possible output files: | |
3021 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3022 | ||
3023 | ac_rmfiles= | |
3024 | for ac_file in $ac_files | |
3025 | do | |
3026 | case $ac_file in | |
3027 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3028 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3029 | esac | |
3030 | done | |
3031 | rm -f $ac_rmfiles | |
3032 | ||
3033 | if { { ac_try="$ac_link_default" | |
3034 | case "(($ac_try" in | |
3035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3036 | *) ac_try_echo=$ac_try;; | |
3037 | esac | |
3038 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3039 | $as_echo "$ac_try_echo"; } >&5 | |
3040 | (eval "$ac_link_default") 2>&5 | |
3041 | ac_status=$? | |
3042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3043 | test $ac_status = 0; }; then : | |
3044 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3045 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3046 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3047 | # so that the user can short-circuit this test for compilers unknown to | |
3048 | # Autoconf. | |
3049 | for ac_file in $ac_files '' | |
3050 | do | |
3051 | test -f "$ac_file" || continue | |
3052 | case $ac_file in | |
3053 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3054 | ;; | |
3055 | [ab].out ) | |
3056 | # We found the default executable, but exeext='' is most | |
3057 | # certainly right. | |
3058 | break;; | |
3059 | *.* ) | |
3060 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3061 | then :; else | |
3062 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3063 | fi | |
3064 | # We set ac_cv_exeext here because the later test for it is not | |
3065 | # safe: cross compilers may not add the suffix if given an `-o' | |
3066 | # argument, so we may need to know it at that point already. | |
3067 | # Even if this section looks crufty: it has the advantage of | |
3068 | # actually working. | |
3069 | break;; | |
3070 | * ) | |
3071 | break;; | |
3072 | esac | |
3073 | done | |
3074 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3075 | ||
3076 | else | |
3077 | ac_file='' | |
3078 | fi | |
3079 | if test -z "$ac_file"; then : | |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3081 | $as_echo "no" >&6; } | |
3082 | $as_echo "$as_me: failed program was:" >&5 | |
3083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3084 | ||
3085 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3086 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3087 | as_fn_error 77 "C compiler cannot create executables | |
3088 | See \`config.log' for more details" "$LINENO" 5; } | |
3089 | else | |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3091 | $as_echo "yes" >&6; } | |
3092 | fi | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3094 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3096 | $as_echo "$ac_file" >&6; } | |
3097 | ac_exeext=$ac_cv_exeext | |
3098 | ||
3099 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3100 | ac_clean_files=$ac_clean_files_save | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3102 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3103 | if { { ac_try="$ac_link" | |
3104 | case "(($ac_try" in | |
3105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3106 | *) ac_try_echo=$ac_try;; | |
3107 | esac | |
3108 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3109 | $as_echo "$ac_try_echo"; } >&5 | |
3110 | (eval "$ac_link") 2>&5 | |
3111 | ac_status=$? | |
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3113 | test $ac_status = 0; }; then : | |
3114 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3115 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3116 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3117 | # `rm'. | |
3118 | for ac_file in conftest.exe conftest conftest.*; do | |
3119 | test -f "$ac_file" || continue | |
3120 | case $ac_file in | |
3121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3122 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3123 | break;; | |
3124 | * ) break;; | |
3125 | esac | |
3126 | done | |
3127 | else | |
3128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3130 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3131 | See \`config.log' for more details" "$LINENO" 5; } | |
3132 | fi | |
3133 | rm -f conftest conftest$ac_cv_exeext | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3135 | $as_echo "$ac_cv_exeext" >&6; } | |
3136 | ||
3137 | rm -f conftest.$ac_ext | |
3138 | EXEEXT=$ac_cv_exeext | |
3139 | ac_exeext=$EXEEXT | |
3140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3141 | /* end confdefs.h. */ | |
3142 | #include <stdio.h> | |
3143 | int | |
3144 | main () | |
3145 | { | |
3146 | FILE *f = fopen ("conftest.out", "w"); | |
3147 | return ferror (f) || fclose (f) != 0; | |
3148 | ||
3149 | ; | |
3150 | return 0; | |
3151 | } | |
3152 | _ACEOF | |
3153 | ac_clean_files="$ac_clean_files conftest.out" | |
3154 | # Check that the compiler produces executables we can run. If not, either | |
3155 | # the compiler is broken, or we cross compile. | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3157 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3158 | if test "$cross_compiling" != yes; then | |
3159 | { { ac_try="$ac_link" | |
3160 | case "(($ac_try" in | |
3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3162 | *) ac_try_echo=$ac_try;; | |
3163 | esac | |
3164 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3165 | $as_echo "$ac_try_echo"; } >&5 | |
3166 | (eval "$ac_link") 2>&5 | |
3167 | ac_status=$? | |
3168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3169 | test $ac_status = 0; } | |
3170 | if { ac_try='./conftest$ac_cv_exeext' | |
3171 | { { case "(($ac_try" in | |
3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3173 | *) ac_try_echo=$ac_try;; | |
3174 | esac | |
3175 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3176 | $as_echo "$ac_try_echo"; } >&5 | |
3177 | (eval "$ac_try") 2>&5 | |
3178 | ac_status=$? | |
3179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3180 | test $ac_status = 0; }; }; then | |
3181 | cross_compiling=no | |
3182 | else | |
3183 | if test "$cross_compiling" = maybe; then | |
3184 | cross_compiling=yes | |
3185 | else | |
3186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3188 | as_fn_error $? "cannot run C compiled programs. | |
3189 | If you meant to cross compile, use \`--host'. | |
3190 | See \`config.log' for more details" "$LINENO" 5; } | |
3191 | fi | |
3192 | fi | |
3193 | fi | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3195 | $as_echo "$cross_compiling" >&6; } | |
3196 | ||
3197 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3198 | ac_clean_files=$ac_clean_files_save | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3200 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3201 | if ${ac_cv_objext+:} false; then : | |
3202 | $as_echo_n "(cached) " >&6 | |
3203 | else | |
3204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3205 | /* end confdefs.h. */ | |
3206 | ||
3207 | int | |
3208 | main () | |
3209 | { | |
3210 | ||
3211 | ; | |
3212 | return 0; | |
3213 | } | |
3214 | _ACEOF | |
3215 | rm -f conftest.o conftest.obj | |
3216 | if { { ac_try="$ac_compile" | |
3217 | case "(($ac_try" in | |
3218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3219 | *) ac_try_echo=$ac_try;; | |
3220 | esac | |
3221 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3222 | $as_echo "$ac_try_echo"; } >&5 | |
3223 | (eval "$ac_compile") 2>&5 | |
3224 | ac_status=$? | |
3225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3226 | test $ac_status = 0; }; then : | |
3227 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3228 | test -f "$ac_file" || continue; | |
3229 | case $ac_file in | |
3230 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3231 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3232 | break;; | |
3233 | esac | |
3234 | done | |
3235 | else | |
3236 | $as_echo "$as_me: failed program was:" >&5 | |
3237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3238 | ||
3239 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3240 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3241 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3242 | See \`config.log' for more details" "$LINENO" 5; } | |
3243 | fi | |
3244 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3245 | fi | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3247 | $as_echo "$ac_cv_objext" >&6; } | |
3248 | OBJEXT=$ac_cv_objext | |
3249 | ac_objext=$OBJEXT | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3251 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3252 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3253 | $as_echo_n "(cached) " >&6 | |
3254 | else | |
3255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3256 | /* end confdefs.h. */ | |
3257 | ||
3258 | int | |
3259 | main () | |
3260 | { | |
3261 | #ifndef __GNUC__ | |
3262 | choke me | |
3263 | #endif | |
3264 | ||
3265 | ; | |
3266 | return 0; | |
3267 | } | |
3268 | _ACEOF | |
3269 | if ac_fn_c_try_compile "$LINENO"; then : | |
3270 | ac_compiler_gnu=yes | |
3271 | else | |
3272 | ac_compiler_gnu=no | |
3273 | fi | |
3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3275 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3276 | ||
3277 | fi | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3279 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3280 | if test $ac_compiler_gnu = yes; then | |
3281 | GCC=yes | |
3282 | else | |
3283 | GCC= | |
3284 | fi | |
3285 | ac_test_CFLAGS=${CFLAGS+set} | |
3286 | ac_save_CFLAGS=$CFLAGS | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3288 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3289 | if ${ac_cv_prog_cc_g+:} false; then : | |
3290 | $as_echo_n "(cached) " >&6 | |
3291 | else | |
3292 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3293 | ac_c_werror_flag=yes | |
3294 | ac_cv_prog_cc_g=no | |
3295 | CFLAGS="-g" | |
3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3297 | /* end confdefs.h. */ | |
3298 | ||
3299 | int | |
3300 | main () | |
3301 | { | |
3302 | ||
3303 | ; | |
3304 | return 0; | |
3305 | } | |
3306 | _ACEOF | |
3307 | if ac_fn_c_try_compile "$LINENO"; then : | |
3308 | ac_cv_prog_cc_g=yes | |
3309 | else | |
3310 | CFLAGS="" | |
3311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3312 | /* end confdefs.h. */ | |
3313 | ||
3314 | int | |
3315 | main () | |
3316 | { | |
3317 | ||
3318 | ; | |
3319 | return 0; | |
3320 | } | |
3321 | _ACEOF | |
3322 | if ac_fn_c_try_compile "$LINENO"; then : | |
3323 | ||
3324 | else | |
3325 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3326 | CFLAGS="-g" | |
3327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3328 | /* end confdefs.h. */ | |
3329 | ||
3330 | int | |
3331 | main () | |
3332 | { | |
3333 | ||
3334 | ; | |
3335 | return 0; | |
3336 | } | |
3337 | _ACEOF | |
3338 | if ac_fn_c_try_compile "$LINENO"; then : | |
3339 | ac_cv_prog_cc_g=yes | |
3340 | fi | |
3341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3342 | fi | |
3343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3344 | fi | |
3345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3346 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3347 | fi | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3349 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3350 | if test "$ac_test_CFLAGS" = set; then | |
3351 | CFLAGS=$ac_save_CFLAGS | |
3352 | elif test $ac_cv_prog_cc_g = yes; then | |
3353 | if test "$GCC" = yes; then | |
3354 | CFLAGS="-g -O2" | |
3355 | else | |
3356 | CFLAGS="-g" | |
3357 | fi | |
3358 | else | |
3359 | if test "$GCC" = yes; then | |
3360 | CFLAGS="-O2" | |
3361 | else | |
3362 | CFLAGS= | |
3363 | fi | |
3364 | fi | |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3366 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3367 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3368 | $as_echo_n "(cached) " >&6 | |
3369 | else | |
3370 | ac_cv_prog_cc_c89=no | |
3371 | ac_save_CC=$CC | |
3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 | /* end confdefs.h. */ | |
3374 | #include <stdarg.h> | |
3375 | #include <stdio.h> | |
3376 | struct stat; | |
3377 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3378 | struct buf { int x; }; | |
3379 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3380 | static char *e (p, i) | |
3381 | char **p; | |
3382 | int i; | |
3383 | { | |
3384 | return p[i]; | |
3385 | } | |
3386 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3387 | { | |
3388 | char *s; | |
3389 | va_list v; | |
3390 | va_start (v,p); | |
3391 | s = g (p, va_arg (v,int)); | |
3392 | va_end (v); | |
3393 | return s; | |
3394 | } | |
3395 | ||
3396 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3397 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3398 | These don't provoke an error unfortunately, instead are silently treated | |
3399 | as 'x'. The following induces an error, until -std is added to get | |
3400 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3401 | array size at least. It's necessary to write '\x00'==0 to get something | |
3402 | that's true only with -std. */ | |
3403 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3404 | ||
3405 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3406 | inside strings and character constants. */ | |
3407 | #define FOO(x) 'x' | |
3408 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3409 | ||
3410 | int test (int i, double x); | |
3411 | struct s1 {int (*f) (int a);}; | |
3412 | struct s2 {int (*f) (double a);}; | |
3413 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3414 | int argc; | |
3415 | char **argv; | |
3416 | int | |
3417 | main () | |
3418 | { | |
3419 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3420 | ; | |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
3424 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3425 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3426 | do | |
3427 | CC="$ac_save_CC $ac_arg" | |
3428 | if ac_fn_c_try_compile "$LINENO"; then : | |
3429 | ac_cv_prog_cc_c89=$ac_arg | |
3430 | fi | |
3431 | rm -f core conftest.err conftest.$ac_objext | |
3432 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3433 | done | |
3434 | rm -f conftest.$ac_ext | |
3435 | CC=$ac_save_CC | |
3436 | ||
3437 | fi | |
3438 | # AC_CACHE_VAL | |
3439 | case "x$ac_cv_prog_cc_c89" in | |
3440 | x) | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3442 | $as_echo "none needed" >&6; } ;; | |
3443 | xno) | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3445 | $as_echo "unsupported" >&6; } ;; | |
3446 | *) | |
3447 | CC="$CC $ac_cv_prog_cc_c89" | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3449 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3450 | esac | |
3451 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3452 | ||
3453 | fi | |
3454 | ||
3455 | ac_ext=c | |
3456 | ac_cpp='$CPP $CPPFLAGS' | |
3457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3460 | ||
3461 | ac_ext=c | |
3462 | ac_cpp='$CPP $CPPFLAGS' | |
3463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3467 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3468 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3469 | $as_echo_n "(cached) " >&6 | |
3470 | else | |
3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3472 | /* end confdefs.h. */ | |
3473 | ||
3474 | int | |
3475 | main () | |
3476 | { | |
3477 | ||
3478 | ; | |
3479 | return 0; | |
3480 | } | |
3481 | _ACEOF | |
3482 | # Make sure it works both with $CC and with simple cc. | |
3483 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3484 | # compilers refuse to overwrite an existing .o file with -o, | |
3485 | # though they will create one. | |
3486 | am_cv_prog_cc_c_o=yes | |
3487 | for am_i in 1 2; do | |
3488 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3489 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3490 | ac_status=$? | |
3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3492 | (exit $ac_status); } \ | |
3493 | && test -f conftest2.$ac_objext; then | |
3494 | : OK | |
3495 | else | |
3496 | am_cv_prog_cc_c_o=no | |
3497 | break | |
3498 | fi | |
3499 | done | |
3500 | rm -f core conftest* | |
3501 | unset am_i | |
3502 | fi | |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3504 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3505 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3506 | # Losing compiler, so override with the script. | |
3507 | # FIXME: It is wrong to rewrite CC. | |
3508 | # But if we don't then we get into trouble of one sort or another. | |
3509 | # A longer-term fix would be to have automake use am__CC in this case, | |
3510 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3511 | CC="$am_aux_dir/compile $CC" | |
3512 | fi | |
3513 | ac_ext=c | |
3514 | ac_cpp='$CPP $CPPFLAGS' | |
3515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3518 | ||
3519 | ||
3520 | ||
3521 | ac_ext=c | |
3522 | ac_cpp='$CPP $CPPFLAGS' | |
3523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3527 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3528 | # On Suns, sometimes $CPP names a directory. | |
3529 | if test -n "$CPP" && test -d "$CPP"; then | |
3530 | CPP= | |
3531 | fi | |
3532 | if test -z "$CPP"; then | |
3533 | if ${ac_cv_prog_CPP+:} false; then : | |
3534 | $as_echo_n "(cached) " >&6 | |
3535 | else | |
3536 | # Double quotes because CPP needs to be expanded | |
3537 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3538 | do | |
3539 | ac_preproc_ok=false | |
3540 | for ac_c_preproc_warn_flag in '' yes | |
3541 | do | |
3542 | # Use a header file that comes with gcc, so configuring glibc | |
3543 | # with a fresh cross-compiler works. | |
3544 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3545 | # <limits.h> exists even on freestanding compilers. | |
3546 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3547 | # not just through cpp. "Syntax error" is here to catch this case. | |
3548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3549 | /* end confdefs.h. */ | |
3550 | #ifdef __STDC__ | |
3551 | # include <limits.h> | |
3552 | #else | |
3553 | # include <assert.h> | |
3554 | #endif | |
3555 | Syntax error | |
3556 | _ACEOF | |
3557 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3558 | ||
3559 | else | |
3560 | # Broken: fails on valid input. | |
3561 | continue | |
3562 | fi | |
3563 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3564 | ||
3565 | # OK, works on sane cases. Now check whether nonexistent headers | |
3566 | # can be detected and how. | |
3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3568 | /* end confdefs.h. */ | |
3569 | #include <ac_nonexistent.h> | |
3570 | _ACEOF | |
3571 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3572 | # Broken: success on invalid input. | |
3573 | continue | |
3574 | else | |
3575 | # Passes both tests. | |
3576 | ac_preproc_ok=: | |
3577 | break | |
3578 | fi | |
3579 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3580 | ||
3581 | done | |
3582 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3583 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3584 | if $ac_preproc_ok; then : | |
3585 | break | |
3586 | fi | |
3587 | ||
3588 | done | |
3589 | ac_cv_prog_CPP=$CPP | |
3590 | ||
3591 | fi | |
3592 | CPP=$ac_cv_prog_CPP | |
3593 | else | |
3594 | ac_cv_prog_CPP=$CPP | |
3595 | fi | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3597 | $as_echo "$CPP" >&6; } | |
3598 | ac_preproc_ok=false | |
3599 | for ac_c_preproc_warn_flag in '' yes | |
3600 | do | |
3601 | # Use a header file that comes with gcc, so configuring glibc | |
3602 | # with a fresh cross-compiler works. | |
3603 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3604 | # <limits.h> exists even on freestanding compilers. | |
3605 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3606 | # not just through cpp. "Syntax error" is here to catch this case. | |
3607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3608 | /* end confdefs.h. */ | |
3609 | #ifdef __STDC__ | |
3610 | # include <limits.h> | |
3611 | #else | |
3612 | # include <assert.h> | |
3613 | #endif | |
3614 | Syntax error | |
3615 | _ACEOF | |
3616 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3617 | ||
3618 | else | |
3619 | # Broken: fails on valid input. | |
3620 | continue | |
3621 | fi | |
3622 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3623 | ||
3624 | # OK, works on sane cases. Now check whether nonexistent headers | |
3625 | # can be detected and how. | |
3626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3627 | /* end confdefs.h. */ | |
3628 | #include <ac_nonexistent.h> | |
3629 | _ACEOF | |
3630 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3631 | # Broken: success on invalid input. | |
3632 | continue | |
3633 | else | |
3634 | # Passes both tests. | |
3635 | ac_preproc_ok=: | |
3636 | break | |
3637 | fi | |
3638 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3639 | ||
3640 | done | |
3641 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3642 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3643 | if $ac_preproc_ok; then : | |
3644 | ||
3645 | else | |
3646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3648 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3649 | See \`config.log' for more details" "$LINENO" 5; } | |
3650 | fi | |
3651 | ||
3652 | ac_ext=c | |
3653 | ac_cpp='$CPP $CPPFLAGS' | |
3654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3657 | ||
3658 | ||
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3660 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3661 | if ${ac_cv_path_GREP+:} false; then : | |
3662 | $as_echo_n "(cached) " >&6 | |
3663 | else | |
3664 | if test -z "$GREP"; then | |
3665 | ac_path_GREP_found=false | |
3666 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3668 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3669 | do | |
3670 | IFS=$as_save_IFS | |
3671 | test -z "$as_dir" && as_dir=. | |
3672 | for ac_prog in grep ggrep; do | |
3673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3674 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3675 | as_fn_executable_p "$ac_path_GREP" || continue | |
3676 | # Check for GNU ac_path_GREP and select it if it is found. | |
3677 | # Check for GNU $ac_path_GREP | |
3678 | case `"$ac_path_GREP" --version 2>&1` in | |
3679 | *GNU*) | |
3680 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3681 | *) | |
3682 | ac_count=0 | |
3683 | $as_echo_n 0123456789 >"conftest.in" | |
3684 | while : | |
3685 | do | |
3686 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3687 | mv "conftest.tmp" "conftest.in" | |
3688 | cp "conftest.in" "conftest.nl" | |
3689 | $as_echo 'GREP' >> "conftest.nl" | |
3690 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3691 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3692 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3693 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3694 | # Best one so far, save it but keep looking for a better one | |
3695 | ac_cv_path_GREP="$ac_path_GREP" | |
3696 | ac_path_GREP_max=$ac_count | |
3697 | fi | |
3698 | # 10*(2^10) chars as input seems more than enough | |
3699 | test $ac_count -gt 10 && break | |
3700 | done | |
3701 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3702 | esac | |
3703 | ||
3704 | $ac_path_GREP_found && break 3 | |
3705 | done | |
3706 | done | |
3707 | done | |
3708 | IFS=$as_save_IFS | |
3709 | if test -z "$ac_cv_path_GREP"; then | |
3710 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3711 | fi | |
3712 | else | |
3713 | ac_cv_path_GREP=$GREP | |
3714 | fi | |
3715 | ||
3716 | fi | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3718 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3719 | GREP="$ac_cv_path_GREP" | |
3720 | ||
3721 | ||
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3723 | $as_echo_n "checking for egrep... " >&6; } | |
3724 | if ${ac_cv_path_EGREP+:} false; then : | |
3725 | $as_echo_n "(cached) " >&6 | |
3726 | else | |
3727 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3728 | then ac_cv_path_EGREP="$GREP -E" | |
3729 | else | |
3730 | if test -z "$EGREP"; then | |
3731 | ac_path_EGREP_found=false | |
3732 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3734 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3735 | do | |
3736 | IFS=$as_save_IFS | |
3737 | test -z "$as_dir" && as_dir=. | |
3738 | for ac_prog in egrep; do | |
3739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3740 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3741 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3742 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3743 | # Check for GNU $ac_path_EGREP | |
3744 | case `"$ac_path_EGREP" --version 2>&1` in | |
3745 | *GNU*) | |
3746 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3747 | *) | |
3748 | ac_count=0 | |
3749 | $as_echo_n 0123456789 >"conftest.in" | |
3750 | while : | |
3751 | do | |
3752 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3753 | mv "conftest.tmp" "conftest.in" | |
3754 | cp "conftest.in" "conftest.nl" | |
3755 | $as_echo 'EGREP' >> "conftest.nl" | |
3756 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3757 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3758 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3759 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3760 | # Best one so far, save it but keep looking for a better one | |
3761 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3762 | ac_path_EGREP_max=$ac_count | |
3763 | fi | |
3764 | # 10*(2^10) chars as input seems more than enough | |
3765 | test $ac_count -gt 10 && break | |
3766 | done | |
3767 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3768 | esac | |
3769 | ||
3770 | $ac_path_EGREP_found && break 3 | |
3771 | done | |
3772 | done | |
3773 | done | |
3774 | IFS=$as_save_IFS | |
3775 | if test -z "$ac_cv_path_EGREP"; then | |
3776 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3777 | fi | |
3778 | else | |
3779 | ac_cv_path_EGREP=$EGREP | |
3780 | fi | |
3781 | ||
3782 | fi | |
3783 | fi | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3785 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3786 | EGREP="$ac_cv_path_EGREP" | |
3787 | ||
3788 | ||
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3790 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3791 | if ${ac_cv_header_stdc+:} false; then : | |
3792 | $as_echo_n "(cached) " >&6 | |
3793 | else | |
3794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3795 | /* end confdefs.h. */ | |
3796 | #include <stdlib.h> | |
3797 | #include <stdarg.h> | |
3798 | #include <string.h> | |
3799 | #include <float.h> | |
3800 | ||
3801 | int | |
3802 | main () | |
3803 | { | |
3804 | ||
3805 | ; | |
3806 | return 0; | |
3807 | } | |
3808 | _ACEOF | |
3809 | if ac_fn_c_try_compile "$LINENO"; then : | |
3810 | ac_cv_header_stdc=yes | |
3811 | else | |
3812 | ac_cv_header_stdc=no | |
3813 | fi | |
3814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3815 | ||
3816 | if test $ac_cv_header_stdc = yes; then | |
3817 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3819 | /* end confdefs.h. */ | |
3820 | #include <string.h> | |
3821 | ||
3822 | _ACEOF | |
3823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3824 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3825 | ||
3826 | else | |
3827 | ac_cv_header_stdc=no | |
3828 | fi | |
3829 | rm -f conftest* | |
3830 | ||
3831 | fi | |
3832 | ||
3833 | if test $ac_cv_header_stdc = yes; then | |
3834 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3836 | /* end confdefs.h. */ | |
3837 | #include <stdlib.h> | |
3838 | ||
3839 | _ACEOF | |
3840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3841 | $EGREP "free" >/dev/null 2>&1; then : | |
3842 | ||
3843 | else | |
3844 | ac_cv_header_stdc=no | |
3845 | fi | |
3846 | rm -f conftest* | |
3847 | ||
3848 | fi | |
3849 | ||
3850 | if test $ac_cv_header_stdc = yes; then | |
3851 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3852 | if test "$cross_compiling" = yes; then : | |
3853 | : | |
3854 | else | |
3855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3856 | /* end confdefs.h. */ | |
3857 | #include <ctype.h> | |
3858 | #include <stdlib.h> | |
3859 | #if ((' ' & 0x0FF) == 0x020) | |
3860 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3861 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3862 | #else | |
3863 | # define ISLOWER(c) \ | |
3864 | (('a' <= (c) && (c) <= 'i') \ | |
3865 | || ('j' <= (c) && (c) <= 'r') \ | |
3866 | || ('s' <= (c) && (c) <= 'z')) | |
3867 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3868 | #endif | |
3869 | ||
3870 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3871 | int | |
3872 | main () | |
3873 | { | |
3874 | int i; | |
3875 | for (i = 0; i < 256; i++) | |
3876 | if (XOR (islower (i), ISLOWER (i)) | |
3877 | || toupper (i) != TOUPPER (i)) | |
3878 | return 2; | |
3879 | return 0; | |
3880 | } | |
3881 | _ACEOF | |
3882 | if ac_fn_c_try_run "$LINENO"; then : | |
3883 | ||
3884 | else | |
3885 | ac_cv_header_stdc=no | |
3886 | fi | |
3887 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3888 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3889 | fi | |
3890 | ||
3891 | fi | |
3892 | fi | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3894 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3895 | if test $ac_cv_header_stdc = yes; then | |
3896 | ||
3897 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3898 | ||
3899 | fi | |
3900 | ||
3901 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3902 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3903 | inttypes.h stdint.h unistd.h | |
3904 | do : | |
3905 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3906 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3907 | " | |
3908 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3909 | cat >>confdefs.h <<_ACEOF | |
3910 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3911 | _ACEOF | |
3912 | ||
3913 | fi | |
3914 | ||
3915 | done | |
3916 | ||
3917 | ||
3918 | ||
3919 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3920 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3921 | MINIX=yes | |
3922 | else | |
3923 | MINIX= | |
3924 | fi | |
3925 | ||
3926 | ||
3927 | if test "$MINIX" = yes; then | |
3928 | ||
3929 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3930 | ||
3931 | ||
3932 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3933 | ||
3934 | ||
3935 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3936 | ||
3937 | fi | |
3938 | ||
3939 | ||
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3941 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3942 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
3943 | $as_echo_n "(cached) " >&6 | |
3944 | else | |
3945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3946 | /* end confdefs.h. */ | |
3947 | ||
3948 | # define __EXTENSIONS__ 1 | |
3949 | $ac_includes_default | |
3950 | int | |
3951 | main () | |
3952 | { | |
3953 | ||
3954 | ; | |
3955 | return 0; | |
3956 | } | |
3957 | _ACEOF | |
3958 | if ac_fn_c_try_compile "$LINENO"; then : | |
3959 | ac_cv_safe_to_define___extensions__=yes | |
3960 | else | |
3961 | ac_cv_safe_to_define___extensions__=no | |
3962 | fi | |
3963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3964 | fi | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3966 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3967 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3968 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3969 | ||
3970 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3971 | ||
3972 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3973 | ||
3974 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3975 | ||
3976 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3977 | ||
3978 | ||
3979 | ||
3980 | ||
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | |
3982 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3983 | if ${ac_cv_prog_cc_c99+:} false; then : | |
3984 | $as_echo_n "(cached) " >&6 | |
3985 | else | |
3986 | ac_cv_prog_cc_c99=no | |
3987 | ac_save_CC=$CC | |
3988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3989 | /* end confdefs.h. */ | |
3990 | #include <stdarg.h> | |
3991 | #include <stdbool.h> | |
3992 | #include <stdlib.h> | |
3993 | #include <wchar.h> | |
3994 | #include <stdio.h> | |
3995 | ||
3996 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
3997 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3998 | #define showlist(...) puts (#__VA_ARGS__) | |
3999 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4000 | static void | |
4001 | test_varargs_macros (void) | |
4002 | { | |
4003 | int x = 1234; | |
4004 | int y = 5678; | |
4005 | debug ("Flag"); | |
4006 | debug ("X = %d\n", x); | |
4007 | showlist (The first, second, and third items.); | |
4008 | report (x>y, "x is %d but y is %d", x, y); | |
4009 | } | |
4010 | ||
4011 | // Check long long types. | |
4012 | #define BIG64 18446744073709551615ull | |
4013 | #define BIG32 4294967295ul | |
4014 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4015 | #if !BIG_OK | |
4016 | your preprocessor is broken; | |
4017 | #endif | |
4018 | #if BIG_OK | |
4019 | #else | |
4020 | your preprocessor is broken; | |
4021 | #endif | |
4022 | static long long int bignum = -9223372036854775807LL; | |
4023 | static unsigned long long int ubignum = BIG64; | |
4024 | ||
4025 | struct incomplete_array | |
4026 | { | |
4027 | int datasize; | |
4028 | double data[]; | |
4029 | }; | |
4030 | ||
4031 | struct named_init { | |
4032 | int number; | |
4033 | const wchar_t *name; | |
4034 | double average; | |
4035 | }; | |
4036 | ||
4037 | typedef const char *ccp; | |
4038 | ||
4039 | static inline int | |
4040 | test_restrict (ccp restrict text) | |
4041 | { | |
4042 | // See if C++-style comments work. | |
4043 | // Iterate through items via the restricted pointer. | |
4044 | // Also check for declarations in for loops. | |
4045 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4046 | continue; | |
4047 | return 0; | |
4048 | } | |
4049 | ||
4050 | // Check varargs and va_copy. | |
4051 | static void | |
4052 | test_varargs (const char *format, ...) | |
4053 | { | |
4054 | va_list args; | |
4055 | va_start (args, format); | |
4056 | va_list args_copy; | |
4057 | va_copy (args_copy, args); | |
4058 | ||
4059 | const char *str; | |
4060 | int number; | |
4061 | float fnumber; | |
4062 | ||
4063 | while (*format) | |
4064 | { | |
4065 | switch (*format++) | |
4066 | { | |
4067 | case 's': // string | |
4068 | str = va_arg (args_copy, const char *); | |
4069 | break; | |
4070 | case 'd': // int | |
4071 | number = va_arg (args_copy, int); | |
4072 | break; | |
4073 | case 'f': // float | |
4074 | fnumber = va_arg (args_copy, double); | |
4075 | break; | |
4076 | default: | |
4077 | break; | |
4078 | } | |
4079 | } | |
4080 | va_end (args_copy); | |
4081 | va_end (args); | |
4082 | } | |
4083 | ||
4084 | int | |
4085 | main () | |
4086 | { | |
4087 | ||
4088 | // Check bool. | |
4089 | _Bool success = false; | |
4090 | ||
4091 | // Check restrict. | |
4092 | if (test_restrict ("String literal") == 0) | |
4093 | success = true; | |
4094 | char *restrict newvar = "Another string"; | |
4095 | ||
4096 | // Check varargs. | |
4097 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4098 | test_varargs_macros (); | |
4099 | ||
4100 | // Check flexible array members. | |
4101 | struct incomplete_array *ia = | |
4102 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4103 | ia->datasize = 10; | |
4104 | for (int i = 0; i < ia->datasize; ++i) | |
4105 | ia->data[i] = i * 1.234; | |
4106 | ||
4107 | // Check named initializers. | |
4108 | struct named_init ni = { | |
4109 | .number = 34, | |
4110 | .name = L"Test wide string", | |
4111 | .average = 543.34343, | |
4112 | }; | |
4113 | ||
4114 | ni.number = 58; | |
4115 | ||
4116 | int dynamic_array[ni.number]; | |
4117 | dynamic_array[ni.number - 1] = 543; | |
4118 | ||
4119 | // work around unused variable warnings | |
4120 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4121 | || dynamic_array[ni.number - 1] != 543); | |
4122 | ||
4123 | ; | |
4124 | return 0; | |
4125 | } | |
4126 | _ACEOF | |
4127 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
4128 | do | |
4129 | CC="$ac_save_CC $ac_arg" | |
4130 | if ac_fn_c_try_compile "$LINENO"; then : | |
4131 | ac_cv_prog_cc_c99=$ac_arg | |
4132 | fi | |
4133 | rm -f core conftest.err conftest.$ac_objext | |
4134 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4135 | done | |
4136 | rm -f conftest.$ac_ext | |
4137 | CC=$ac_save_CC | |
4138 | ||
4139 | fi | |
4140 | # AC_CACHE_VAL | |
4141 | case "x$ac_cv_prog_cc_c99" in | |
4142 | x) | |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4144 | $as_echo "none needed" >&6; } ;; | |
4145 | xno) | |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4147 | $as_echo "unsupported" >&6; } ;; | |
4148 | *) | |
4149 | CC="$CC $ac_cv_prog_cc_c99" | |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4151 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
4152 | esac | |
4153 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
4154 | ||
4155 | fi | |
4156 | ||
4157 | ||
4158 | ||
4159 | if test x"$ac_cv_prog_cc_c99" = "xno"; then | |
4160 | as_fn_error $? "charybdis requires a C99 capable compiler" "$LINENO" 5 | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | ||
4165 | ac_config_headers="$ac_config_headers include/setup.h" | |
4166 | ||
4167 | ||
4168 | ||
4169 | subdirs="$subdirs libratbox" | |
4170 | ||
4171 | ac_aux_dir= | |
4172 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
4173 | if test -f "$ac_dir/install-sh"; then | |
4174 | ac_aux_dir=$ac_dir | |
4175 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4176 | break | |
4177 | elif test -f "$ac_dir/install.sh"; then | |
4178 | ac_aux_dir=$ac_dir | |
4179 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4180 | break | |
4181 | elif test -f "$ac_dir/shtool"; then | |
4182 | ac_aux_dir=$ac_dir | |
4183 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4184 | break | |
4185 | fi | |
4186 | done | |
4187 | if test -z "$ac_aux_dir"; then | |
4188 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
4189 | fi | |
4190 | ||
4191 | # These three variables are undocumented and unsupported, | |
4192 | # and are intended to be withdrawn in a future Autoconf release. | |
4193 | # They can cause serious problems if a builder's source tree is in a directory | |
4194 | # whose full name contains unusual characters. | |
4195 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4196 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4197 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4198 | ||
4199 | ||
4200 | ||
4201 | ||
4202 | am__api_version='1.15' | |
4203 | ||
4204 | # Find a good install program. We prefer a C program (faster), | |
4205 | # so one script is as good as another. But avoid the broken or | |
4206 | # incompatible versions: | |
4207 | # SysV /etc/install, /usr/sbin/install | |
4208 | # SunOS /usr/etc/install | |
4209 | # IRIX /sbin/install | |
4210 | # AIX /bin/install | |
4211 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4212 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4213 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4214 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4215 | # OS/2's system install, which has a completely different semantic | |
4216 | # ./install, which can be erroneously created by make from ./install.sh. | |
4217 | # Reject install programs that cannot install multiple files. | |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4219 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4220 | if test -z "$INSTALL"; then | |
4221 | if ${ac_cv_path_install+:} false; then : | |
4222 | $as_echo_n "(cached) " >&6 | |
4223 | else | |
4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4225 | for as_dir in $PATH | |
4226 | do | |
4227 | IFS=$as_save_IFS | |
4228 | test -z "$as_dir" && as_dir=. | |
4229 | # Account for people who put trailing slashes in PATH elements. | |
4230 | case $as_dir/ in #(( | |
4231 | ./ | .// | /[cC]/* | \ | |
4232 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4233 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4234 | /usr/ucb/* ) ;; | |
4235 | *) | |
4236 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4237 | # Don't use installbsd from OSF since it installs stuff as root | |
4238 | # by default. | |
4239 | for ac_prog in ginstall scoinst install; do | |
4240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4241 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4242 | if test $ac_prog = install && | |
4243 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4244 | # AIX install. It has an incompatible calling convention. | |
4245 | : | |
4246 | elif test $ac_prog = install && | |
4247 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4248 | # program-specific install script used by HP pwplus--don't use. | |
4249 | : | |
4250 | else | |
4251 | rm -rf conftest.one conftest.two conftest.dir | |
4252 | echo one > conftest.one | |
4253 | echo two > conftest.two | |
4254 | mkdir conftest.dir | |
4255 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4256 | test -s conftest.one && test -s conftest.two && | |
4257 | test -s conftest.dir/conftest.one && | |
4258 | test -s conftest.dir/conftest.two | |
4259 | then | |
4260 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4261 | break 3 | |
4262 | fi | |
4263 | fi | |
4264 | fi | |
4265 | done | |
4266 | done | |
4267 | ;; | |
4268 | esac | |
4269 | ||
4270 | done | |
4271 | IFS=$as_save_IFS | |
4272 | ||
4273 | rm -rf conftest.one conftest.two conftest.dir | |
4274 | ||
4275 | fi | |
4276 | if test "${ac_cv_path_install+set}" = set; then | |
4277 | INSTALL=$ac_cv_path_install | |
4278 | else | |
4279 | # As a last resort, use the slow shell script. Don't cache a | |
4280 | # value for INSTALL within a source directory, because that will | |
4281 | # break other packages using the cache if that directory is | |
4282 | # removed, or if the value is a relative name. | |
4283 | INSTALL=$ac_install_sh | |
4284 | fi | |
4285 | fi | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4287 | $as_echo "$INSTALL" >&6; } | |
4288 | ||
4289 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4290 | # It thinks the first close brace ends the variable substitution. | |
4291 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4292 | ||
4293 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4294 | ||
4295 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4296 | ||
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4298 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4299 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4300 | # name. Accept space and tab only in the latter. | |
4301 | am_lf=' | |
4302 | ' | |
4303 | case `pwd` in | |
4304 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4305 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4306 | esac | |
4307 | case $srcdir in | |
4308 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4309 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4310 | esac | |
4311 | ||
4312 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4313 | # arguments. Must try -L first in case configure is actually a | |
4314 | # symlink; some systems play weird games with the mod time of symlinks | |
4315 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4316 | # directory). | |
4317 | if ( | |
4318 | am_has_slept=no | |
4319 | for am_try in 1 2; do | |
4320 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4321 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4322 | if test "$*" = "X"; then | |
4323 | # -L didn't work. | |
4324 | set X `ls -t "$srcdir/configure" conftest.file` | |
4325 | fi | |
4326 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4327 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4328 | ||
4329 | # If neither matched, then we have a broken ls. This can happen | |
4330 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4331 | # broken ls alias from the environment. This has actually | |
4332 | # happened. Such a system could not be considered "sane". | |
4333 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4334 | alias in your environment" "$LINENO" 5 | |
4335 | fi | |
4336 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4337 | break | |
4338 | fi | |
4339 | # Just in case. | |
4340 | sleep 1 | |
4341 | am_has_slept=yes | |
4342 | done | |
4343 | test "$2" = conftest.file | |
4344 | ) | |
4345 | then | |
4346 | # Ok. | |
4347 | : | |
4348 | else | |
4349 | as_fn_error $? "newly created file is older than distributed files! | |
4350 | Check your system clock" "$LINENO" 5 | |
4351 | fi | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4353 | $as_echo "yes" >&6; } | |
4354 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4355 | # generated files are strictly newer. | |
4356 | am_sleep_pid= | |
4357 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4358 | ( sleep 1 ) & | |
4359 | am_sleep_pid=$! | |
4360 | fi | |
4361 | ||
4362 | rm -f conftest.file | |
4363 | ||
4364 | test "$program_prefix" != NONE && | |
4365 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4366 | # Use a double $ so make ignores it. | |
4367 | test "$program_suffix" != NONE && | |
4368 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4369 | # Double any \ or $. | |
4370 | # By default was `s,x,x', remove it if useless. | |
4371 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4372 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4373 | ||
4374 | if test x"${MISSING+set}" != xset; then | |
4375 | case $am_aux_dir in | |
4376 | *\ * | *\ *) | |
4377 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4378 | *) | |
4379 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4380 | esac | |
4381 | fi | |
4382 | # Use eval to expand $SHELL | |
4383 | if eval "$MISSING --is-lightweight"; then | |
4384 | am_missing_run="$MISSING " | |
4385 | else | |
4386 | am_missing_run= | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4388 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4389 | fi | |
4390 | ||
4391 | if test x"${install_sh+set}" != xset; then | |
4392 | case $am_aux_dir in | |
4393 | *\ * | *\ *) | |
4394 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4395 | *) | |
4396 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4397 | esac | |
4398 | fi | |
4399 | ||
4400 | # Installed binaries are usually stripped using 'strip' when the user | |
4401 | # run "make install-strip". However 'strip' might not be the right | |
4402 | # tool to use in cross-compilation environments, therefore Automake | |
4403 | # will honor the 'STRIP' environment variable to overrule this program. | |
4404 | if test "$cross_compiling" != no; then | |
4405 | if test -n "$ac_tool_prefix"; then | |
4406 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4407 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4409 | $as_echo_n "checking for $ac_word... " >&6; } | |
4410 | if ${ac_cv_prog_STRIP+:} false; then : | |
4411 | $as_echo_n "(cached) " >&6 | |
4412 | else | |
4413 | if test -n "$STRIP"; then | |
4414 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4415 | else | |
4416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4417 | for as_dir in $PATH | |
4418 | do | |
4419 | IFS=$as_save_IFS | |
4420 | test -z "$as_dir" && as_dir=. | |
4421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4423 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4425 | break 2 | |
4426 | fi | |
4427 | done | |
4428 | done | |
4429 | IFS=$as_save_IFS | |
4430 | ||
4431 | fi | |
4432 | fi | |
4433 | STRIP=$ac_cv_prog_STRIP | |
4434 | if test -n "$STRIP"; then | |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4436 | $as_echo "$STRIP" >&6; } | |
4437 | else | |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4439 | $as_echo "no" >&6; } | |
4440 | fi | |
4441 | ||
4442 | ||
4443 | fi | |
4444 | if test -z "$ac_cv_prog_STRIP"; then | |
4445 | ac_ct_STRIP=$STRIP | |
4446 | # Extract the first word of "strip", so it can be a program name with args. | |
4447 | set dummy strip; ac_word=$2 | |
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4449 | $as_echo_n "checking for $ac_word... " >&6; } | |
4450 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4451 | $as_echo_n "(cached) " >&6 | |
4452 | else | |
4453 | if test -n "$ac_ct_STRIP"; then | |
4454 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4455 | else | |
4456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4457 | for as_dir in $PATH | |
4458 | do | |
4459 | IFS=$as_save_IFS | |
4460 | test -z "$as_dir" && as_dir=. | |
4461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4463 | ac_cv_prog_ac_ct_STRIP="strip" | |
4464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4465 | break 2 | |
4466 | fi | |
4467 | done | |
4468 | done | |
4469 | IFS=$as_save_IFS | |
4470 | ||
4471 | fi | |
4472 | fi | |
4473 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4474 | if test -n "$ac_ct_STRIP"; then | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4476 | $as_echo "$ac_ct_STRIP" >&6; } | |
4477 | else | |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4479 | $as_echo "no" >&6; } | |
4480 | fi | |
4481 | ||
4482 | if test "x$ac_ct_STRIP" = x; then | |
4483 | STRIP=":" | |
4484 | else | |
4485 | case $cross_compiling:$ac_tool_warned in | |
4486 | yes:) | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4488 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4489 | ac_tool_warned=yes ;; | |
4490 | esac | |
4491 | STRIP=$ac_ct_STRIP | |
4492 | fi | |
4493 | else | |
4494 | STRIP="$ac_cv_prog_STRIP" | |
4495 | fi | |
4496 | ||
4497 | fi | |
4498 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
4499 | ||
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
4501 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4502 | if test -z "$MKDIR_P"; then | |
4503 | if ${ac_cv_path_mkdir+:} false; then : | |
4504 | $as_echo_n "(cached) " >&6 | |
4505 | else | |
4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4507 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4508 | do | |
4509 | IFS=$as_save_IFS | |
4510 | test -z "$as_dir" && as_dir=. | |
4511 | for ac_prog in mkdir gmkdir; do | |
4512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4513 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4514 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4515 | 'mkdir (GNU coreutils) '* | \ | |
4516 | 'mkdir (coreutils) '* | \ | |
4517 | 'mkdir (fileutils) '4.1*) | |
4518 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4519 | break 3;; | |
4520 | esac | |
4521 | done | |
4522 | done | |
4523 | done | |
4524 | IFS=$as_save_IFS | |
4525 | ||
4526 | fi | |
4527 | ||
4528 | test -d ./--version && rmdir ./--version | |
4529 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4530 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4531 | else | |
4532 | # As a last resort, use the slow shell script. Don't cache a | |
4533 | # value for MKDIR_P within a source directory, because that will | |
4534 | # break other packages using the cache if that directory is | |
4535 | # removed, or if the value is a relative name. | |
4536 | MKDIR_P="$ac_install_sh -d" | |
4537 | fi | |
4538 | fi | |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
4540 | $as_echo "$MKDIR_P" >&6; } | |
4541 | ||
4542 | for ac_prog in gawk mawk nawk awk | |
4543 | do | |
4544 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4545 | set dummy $ac_prog; ac_word=$2 | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4547 | $as_echo_n "checking for $ac_word... " >&6; } | |
4548 | if ${ac_cv_prog_AWK+:} false; then : | |
4549 | $as_echo_n "(cached) " >&6 | |
4550 | else | |
4551 | if test -n "$AWK"; then | |
4552 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4553 | else | |
4554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4555 | for as_dir in $PATH | |
4556 | do | |
4557 | IFS=$as_save_IFS | |
4558 | test -z "$as_dir" && as_dir=. | |
4559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4561 | ac_cv_prog_AWK="$ac_prog" | |
4562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4563 | break 2 | |
4564 | fi | |
4565 | done | |
4566 | done | |
4567 | IFS=$as_save_IFS | |
4568 | ||
4569 | fi | |
4570 | fi | |
4571 | AWK=$ac_cv_prog_AWK | |
4572 | if test -n "$AWK"; then | |
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4574 | $as_echo "$AWK" >&6; } | |
4575 | else | |
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4577 | $as_echo "no" >&6; } | |
4578 | fi | |
4579 | ||
4580 | ||
4581 | test -n "$AWK" && break | |
4582 | done | |
4583 | ||
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4585 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4586 | set x ${MAKE-make} | |
4587 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4588 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4589 | $as_echo_n "(cached) " >&6 | |
4590 | else | |
4591 | cat >conftest.make <<\_ACEOF | |
4592 | SHELL = /bin/sh | |
4593 | all: | |
4594 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4595 | _ACEOF | |
4596 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4597 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4598 | *@@@%%%=?*=@@@%%%*) | |
4599 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4600 | *) | |
4601 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4602 | esac | |
4603 | rm -f conftest.make | |
4604 | fi | |
4605 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4607 | $as_echo "yes" >&6; } | |
4608 | SET_MAKE= | |
4609 | else | |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4611 | $as_echo "no" >&6; } | |
4612 | SET_MAKE="MAKE=${MAKE-make}" | |
4613 | fi | |
4614 | ||
4615 | rm -rf .tst 2>/dev/null | |
4616 | mkdir .tst 2>/dev/null | |
4617 | if test -d .tst; then | |
4618 | am__leading_dot=. | |
4619 | else | |
4620 | am__leading_dot=_ | |
4621 | fi | |
4622 | rmdir .tst 2>/dev/null | |
4623 | ||
4624 | DEPDIR="${am__leading_dot}deps" | |
4625 | ||
4626 | ac_config_commands="$ac_config_commands depfiles" | |
4627 | ||
4628 | ||
4629 | am_make=${MAKE-make} | |
4630 | cat > confinc << 'END' | |
4631 | am__doit: | |
4632 | @echo this is the am__doit target | |
4633 | .PHONY: am__doit | |
4634 | END | |
4635 | # If we don't find an include directive, just comment out the code. | |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4637 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4638 | am__include="#" | |
4639 | am__quote= | |
4640 | _am_result=none | |
4641 | # First try GNU make style include. | |
4642 | echo "include confinc" > confmf | |
4643 | # Ignore all kinds of additional output from 'make'. | |
4644 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4645 | *the\ am__doit\ target*) | |
4646 | am__include=include | |
4647 | am__quote= | |
4648 | _am_result=GNU | |
4649 | ;; | |
4650 | esac | |
4651 | # Now try BSD make style include. | |
4652 | if test "$am__include" = "#"; then | |
4653 | echo '.include "confinc"' > confmf | |
4654 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4655 | *the\ am__doit\ target*) | |
4656 | am__include=.include | |
4657 | am__quote="\"" | |
4658 | _am_result=BSD | |
4659 | ;; | |
4660 | esac | |
4661 | fi | |
4662 | ||
4663 | ||
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4665 | $as_echo "$_am_result" >&6; } | |
4666 | rm -f confinc confmf | |
4667 | ||
4668 | # Check whether --enable-dependency-tracking was given. | |
4669 | if test "${enable_dependency_tracking+set}" = set; then : | |
4670 | enableval=$enable_dependency_tracking; | |
4671 | fi | |
4672 | ||
4673 | if test "x$enable_dependency_tracking" != xno; then | |
4674 | am_depcomp="$ac_aux_dir/depcomp" | |
4675 | AMDEPBACKSLASH='\' | |
4676 | am__nodep='_no' | |
4677 | fi | |
4678 | if test "x$enable_dependency_tracking" != xno; then | |
4679 | AMDEP_TRUE= | |
4680 | AMDEP_FALSE='#' | |
4681 | else | |
4682 | AMDEP_TRUE='#' | |
4683 | AMDEP_FALSE= | |
4684 | fi | |
4685 | ||
4686 | ||
4687 | # Check whether --enable-silent-rules was given. | |
4688 | if test "${enable_silent_rules+set}" = set; then : | |
4689 | enableval=$enable_silent_rules; | |
4690 | fi | |
4691 | ||
4692 | case $enable_silent_rules in # ((( | |
4693 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4694 | no) AM_DEFAULT_VERBOSITY=1;; | |
4695 | *) AM_DEFAULT_VERBOSITY=1;; | |
4696 | esac | |
4697 | am_make=${MAKE-make} | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4699 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4700 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4701 | $as_echo_n "(cached) " >&6 | |
4702 | else | |
4703 | if $as_echo 'TRUE=$(BAR$(V)) | |
4704 | BAR0=false | |
4705 | BAR1=true | |
4706 | V=1 | |
4707 | am__doit: | |
4708 | @$(TRUE) | |
4709 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4710 | am_cv_make_support_nested_variables=yes | |
4711 | else | |
4712 | am_cv_make_support_nested_variables=no | |
4713 | fi | |
4714 | fi | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4716 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4717 | if test $am_cv_make_support_nested_variables = yes; then | |
4718 | AM_V='$(V)' | |
4719 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4720 | else | |
4721 | AM_V=$AM_DEFAULT_VERBOSITY | |
4722 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4723 | fi | |
4724 | AM_BACKSLASH='\' | |
4725 | ||
4726 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
4727 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4728 | # is not polluted with repeated "-I." | |
4729 | am__isrc=' -I$(srcdir)' | |
4730 | # test to see if srcdir already configured | |
4731 | if test -f $srcdir/config.status; then | |
4732 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4733 | fi | |
4734 | fi | |
4735 | ||
4736 | # test whether we have cygpath | |
4737 | if test -z "$CYGPATH_W"; then | |
4738 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4739 | CYGPATH_W='cygpath -w' | |
4740 | else | |
4741 | CYGPATH_W=echo | |
4742 | fi | |
4743 | fi | |
4744 | ||
4745 | ||
4746 | # Define the identity of the package. | |
4747 | PACKAGE='charybdis' | |
4748 | VERSION='3.6.0-dev' | |
4749 | ||
4750 | ||
4751 | cat >>confdefs.h <<_ACEOF | |
4752 | #define PACKAGE "$PACKAGE" | |
4753 | _ACEOF | |
4754 | ||
4755 | ||
4756 | cat >>confdefs.h <<_ACEOF | |
4757 | #define VERSION "$VERSION" | |
4758 | _ACEOF | |
4759 | ||
4760 | # Some tools Automake needs. | |
4761 | ||
4762 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4763 | ||
4764 | ||
4765 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4766 | ||
4767 | ||
4768 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4769 | ||
4770 | ||
4771 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4772 | ||
4773 | ||
4774 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4775 | ||
4776 | # For better backward compatibility. To be removed once Automake 1.9.x | |
4777 | # dies out for good. For more background, see: | |
4778 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4779 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4780 | mkdir_p='$(MKDIR_P)' | |
4781 | ||
4782 | # We need awk for the "check" target (and possibly the TAP driver). The | |
4783 | # system "awk" is bad on some platforms. | |
4784 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4785 | # in the wild :-( We should find a proper way to deprecate it ... | |
4786 | AMTAR='$${TAR-tar}' | |
4787 | ||
4788 | ||
4789 | # We'll loop over all known methods to create a tar archive until one works. | |
4790 | _am_tools='gnutar pax cpio none' | |
4791 | ||
4792 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
4793 | ||
4794 | ||
4795 | ||
4796 | ||
4797 | ||
4798 | depcc="$CC" am_compiler_list= | |
4799 | ||
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4801 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4802 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4803 | $as_echo_n "(cached) " >&6 | |
4804 | else | |
4805 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4806 | # We make a subdir and do the tests there. Otherwise we can end up | |
4807 | # making bogus files that we don't know about and never remove. For | |
4808 | # instance it was reported that on HP-UX the gcc test will end up | |
4809 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4810 | # in D". | |
4811 | rm -rf conftest.dir | |
4812 | mkdir conftest.dir | |
4813 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4814 | # using a relative directory. | |
4815 | cp "$am_depcomp" conftest.dir | |
4816 | cd conftest.dir | |
4817 | # We will build objects and dependencies in a subdirectory because | |
4818 | # it helps to detect inapplicable dependency modes. For instance | |
4819 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4820 | # side effect of compilation, but ICC will put the dependencies in | |
4821 | # the current directory while Tru64 will put them in the object | |
4822 | # directory. | |
4823 | mkdir sub | |
4824 | ||
4825 | am_cv_CC_dependencies_compiler_type=none | |
4826 | if test "$am_compiler_list" = ""; then | |
4827 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4828 | fi | |
4829 | am__universal=false | |
4830 | case " $depcc " in #( | |
4831 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4832 | esac | |
4833 | ||
4834 | for depmode in $am_compiler_list; do | |
4835 | # Setup a source with many dependencies, because some compilers | |
4836 | # like to wrap large dependency lists on column 80 (with \), and | |
4837 | # we should not choose a depcomp mode which is confused by this. | |
4838 | # | |
4839 | # We need to recreate these files for each test, as the compiler may | |
4840 | # overwrite some of them when testing with obscure command lines. | |
4841 | # This happens at least with the AIX C compiler. | |
4842 | : > sub/conftest.c | |
4843 | for i in 1 2 3 4 5 6; do | |
4844 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4845 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4846 | # Solaris 10 /bin/sh. | |
4847 | echo '/* dummy */' > sub/conftst$i.h | |
4848 | done | |
4849 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4850 | ||
4851 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4852 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4853 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4854 | # versions had trouble with output in subdirs. | |
4855 | am__obj=sub/conftest.${OBJEXT-o} | |
4856 | am__minus_obj="-o $am__obj" | |
4857 | case $depmode in | |
4858 | gcc) | |
4859 | # This depmode causes a compiler race in universal mode. | |
4860 | test "$am__universal" = false || continue | |
4861 | ;; | |
4862 | nosideeffect) | |
4863 | # After this tag, mechanisms are not by side-effect, so they'll | |
4864 | # only be used when explicitly requested. | |
4865 | if test "x$enable_dependency_tracking" = xyes; then | |
4866 | continue | |
4867 | else | |
4868 | break | |
4869 | fi | |
4870 | ;; | |
4871 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4872 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4873 | # not run yet. These depmodes are late enough in the game, and | |
4874 | # so weak that their functioning should not be impacted. | |
4875 | am__obj=conftest.${OBJEXT-o} | |
4876 | am__minus_obj= | |
4877 | ;; | |
4878 | none) break ;; | |
4879 | esac | |
4880 | if depmode=$depmode \ | |
4881 | source=sub/conftest.c object=$am__obj \ | |
4882 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4883 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4884 | >/dev/null 2>conftest.err && | |
4885 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4886 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4887 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4888 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4889 | # icc doesn't choke on unknown options, it will just issue warnings | |
4890 | # or remarks (even with -Werror). So we grep stderr for any message | |
4891 | # that says an option was ignored or not supported. | |
4892 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4893 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4894 | # The diagnosis changed in icc 8.0: | |
4895 | # icc: Command line remark: option '-MP' not supported | |
4896 | if (grep 'ignoring option' conftest.err || | |
4897 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4898 | am_cv_CC_dependencies_compiler_type=$depmode | |
4899 | break | |
4900 | fi | |
4901 | fi | |
4902 | done | |
4903 | ||
4904 | cd .. | |
4905 | rm -rf conftest.dir | |
4906 | else | |
4907 | am_cv_CC_dependencies_compiler_type=none | |
4908 | fi | |
4909 | ||
4910 | fi | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4912 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4913 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4914 | ||
4915 | if | |
4916 | test "x$enable_dependency_tracking" != xno \ | |
4917 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4918 | am__fastdepCC_TRUE= | |
4919 | am__fastdepCC_FALSE='#' | |
4920 | else | |
4921 | am__fastdepCC_TRUE='#' | |
4922 | am__fastdepCC_FALSE= | |
4923 | fi | |
4924 | ||
4925 | ||
4926 | ||
4927 | # POSIX will say in a future version that running "rm -f" with no argument | |
4928 | # is OK; and we want to be able to make that assumption in our Makefile | |
4929 | # recipes. So use an aggressive probe to check that the usage we want is | |
4930 | # actually supported "in the wild" to an acceptable degree. | |
4931 | # See automake bug#10828. | |
4932 | # To make any issue more visible, cause the running configure to be aborted | |
4933 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4934 | # user can still override this though. | |
4935 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4936 | cat >&2 <<'END' | |
4937 | Oops! | |
4938 | ||
4939 | Your 'rm' program seems unable to run without file operands specified | |
4940 | on the command line, even when the '-f' option is present. This is contrary | |
4941 | to the behaviour of most rm programs out there, and not conforming with | |
4942 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4943 | ||
4944 | Please tell bug-automake@gnu.org about your system, including the value | |
4945 | of your $PATH and any error possibly output before this message. This | |
4946 | can help us improve future automake versions. | |
4947 | ||
4948 | END | |
4949 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4950 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4951 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4952 | echo >&2 | |
4953 | else | |
4954 | cat >&2 <<'END' | |
4955 | Aborting the configuration process, to ensure you take notice of the issue. | |
4956 | ||
4957 | You can download and install GNU coreutils to get an 'rm' implementation | |
4958 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4959 | ||
4960 | If you want to complete the configuration process using your problematic | |
4961 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4962 | to "yes", and re-run configure. | |
4963 | ||
4964 | END | |
4965 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
4966 | fi | |
4967 | fi | |
4968 | ||
4969 | # Check whether --enable-silent-rules was given. | |
4970 | if test "${enable_silent_rules+set}" = set; then : | |
4971 | enableval=$enable_silent_rules; | |
4972 | fi | |
4973 | ||
4974 | case $enable_silent_rules in # ((( | |
4975 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4976 | no) AM_DEFAULT_VERBOSITY=1;; | |
4977 | *) AM_DEFAULT_VERBOSITY=0;; | |
4978 | esac | |
4979 | am_make=${MAKE-make} | |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4981 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4982 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4983 | $as_echo_n "(cached) " >&6 | |
4984 | else | |
4985 | if $as_echo 'TRUE=$(BAR$(V)) | |
4986 | BAR0=false | |
4987 | BAR1=true | |
4988 | V=1 | |
4989 | am__doit: | |
4990 | @$(TRUE) | |
4991 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4992 | am_cv_make_support_nested_variables=yes | |
4993 | else | |
4994 | am_cv_make_support_nested_variables=no | |
4995 | fi | |
4996 | fi | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4998 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4999 | if test $am_cv_make_support_nested_variables = yes; then | |
5000 | AM_V='$(V)' | |
5001 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5002 | else | |
5003 | AM_V=$AM_DEFAULT_VERBOSITY | |
5004 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5005 | fi | |
5006 | AM_BACKSLASH='\' | |
5007 | ||
5008 | if test -n "$ac_tool_prefix"; then | |
5009 | for ac_prog in ar lib "link -lib" | |
5010 | do | |
5011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5014 | $as_echo_n "checking for $ac_word... " >&6; } | |
5015 | if ${ac_cv_prog_AR+:} false; then : | |
5016 | $as_echo_n "(cached) " >&6 | |
5017 | else | |
5018 | if test -n "$AR"; then | |
5019 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5020 | else | |
5021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5022 | for as_dir in $PATH | |
5023 | do | |
5024 | IFS=$as_save_IFS | |
5025 | test -z "$as_dir" && as_dir=. | |
5026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5028 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5030 | break 2 | |
5031 | fi | |
5032 | done | |
5033 | done | |
5034 | IFS=$as_save_IFS | |
5035 | ||
5036 | fi | |
5037 | fi | |
5038 | AR=$ac_cv_prog_AR | |
5039 | if test -n "$AR"; then | |
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5041 | $as_echo "$AR" >&6; } | |
5042 | else | |
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5044 | $as_echo "no" >&6; } | |
5045 | fi | |
5046 | ||
5047 | ||
5048 | test -n "$AR" && break | |
5049 | done | |
5050 | fi | |
5051 | if test -z "$AR"; then | |
5052 | ac_ct_AR=$AR | |
5053 | for ac_prog in ar lib "link -lib" | |
5054 | do | |
5055 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5056 | set dummy $ac_prog; ac_word=$2 | |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5058 | $as_echo_n "checking for $ac_word... " >&6; } | |
5059 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5060 | $as_echo_n "(cached) " >&6 | |
5061 | else | |
5062 | if test -n "$ac_ct_AR"; then | |
5063 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5064 | else | |
5065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5066 | for as_dir in $PATH | |
5067 | do | |
5068 | IFS=$as_save_IFS | |
5069 | test -z "$as_dir" && as_dir=. | |
5070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5072 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5074 | break 2 | |
5075 | fi | |
5076 | done | |
5077 | done | |
5078 | IFS=$as_save_IFS | |
5079 | ||
5080 | fi | |
5081 | fi | |
5082 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5083 | if test -n "$ac_ct_AR"; then | |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5085 | $as_echo "$ac_ct_AR" >&6; } | |
5086 | else | |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5088 | $as_echo "no" >&6; } | |
5089 | fi | |
5090 | ||
5091 | ||
5092 | test -n "$ac_ct_AR" && break | |
5093 | done | |
5094 | ||
5095 | if test "x$ac_ct_AR" = x; then | |
5096 | AR="false" | |
5097 | else | |
5098 | case $cross_compiling:$ac_tool_warned in | |
5099 | yes:) | |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5102 | ac_tool_warned=yes ;; | |
5103 | esac | |
5104 | AR=$ac_ct_AR | |
5105 | fi | |
5106 | fi | |
5107 | ||
5108 | : ${AR=ar} | |
5109 | ||
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5111 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5112 | if ${am_cv_ar_interface+:} false; then : | |
5113 | $as_echo_n "(cached) " >&6 | |
5114 | else | |
5115 | ac_ext=c | |
5116 | ac_cpp='$CPP $CPPFLAGS' | |
5117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5120 | ||
5121 | am_cv_ar_interface=ar | |
5122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5123 | /* end confdefs.h. */ | |
5124 | int some_variable = 0; | |
5125 | _ACEOF | |
5126 | if ac_fn_c_try_compile "$LINENO"; then : | |
5127 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5128 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5129 | (eval $am_ar_try) 2>&5 | |
5130 | ac_status=$? | |
5131 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5132 | test $ac_status = 0; } | |
5133 | if test "$ac_status" -eq 0; then | |
5134 | am_cv_ar_interface=ar | |
5135 | else | |
5136 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5137 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5138 | (eval $am_ar_try) 2>&5 | |
5139 | ac_status=$? | |
5140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5141 | test $ac_status = 0; } | |
5142 | if test "$ac_status" -eq 0; then | |
5143 | am_cv_ar_interface=lib | |
5144 | else | |
5145 | am_cv_ar_interface=unknown | |
5146 | fi | |
5147 | fi | |
5148 | rm -f conftest.lib libconftest.a | |
5149 | ||
5150 | fi | |
5151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5152 | ac_ext=c | |
5153 | ac_cpp='$CPP $CPPFLAGS' | |
5154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5157 | ||
5158 | fi | |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5160 | $as_echo "$am_cv_ar_interface" >&6; } | |
5161 | ||
5162 | case $am_cv_ar_interface in | |
5163 | ar) | |
5164 | ;; | |
5165 | lib) | |
5166 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5167 | # FIXME: It is wrong to rewrite AR. | |
5168 | # But if we don't then we get into trouble of one sort or another. | |
5169 | # A longer-term fix would be to have automake use am__AR in this case, | |
5170 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5171 | # similar. | |
5172 | AR="$am_aux_dir/ar-lib $AR" | |
5173 | ;; | |
5174 | unknown) | |
5175 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5176 | ;; | |
5177 | esac | |
5178 | ||
5179 | ||
5180 | case `pwd` in | |
5181 | *\ * | *\ *) | |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5183 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5184 | esac | |
5185 | ||
5186 | ||
5187 | ||
5188 | macro_version='2.4.2' | |
5189 | macro_revision='1.3337' | |
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | ||
5200 | ||
5201 | ||
5202 | ||
5203 | ltmain="$ac_aux_dir/ltmain.sh" | |
5204 | ||
5205 | # Make sure we can run config.sub. | |
5206 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5207 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5208 | ||
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
5210 | $as_echo_n "checking build system type... " >&6; } | |
5211 | if ${ac_cv_build+:} false; then : | |
5212 | $as_echo_n "(cached) " >&6 | |
5213 | else | |
5214 | ac_build_alias=$build_alias | |
5215 | test "x$ac_build_alias" = x && | |
5216 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5217 | test "x$ac_build_alias" = x && | |
5218 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5219 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5220 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5221 | ||
5222 | fi | |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5224 | $as_echo "$ac_cv_build" >&6; } | |
5225 | case $ac_cv_build in | |
5226 | *-*-*) ;; | |
5227 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5228 | esac | |
5229 | build=$ac_cv_build | |
5230 | ac_save_IFS=$IFS; IFS='-' | |
5231 | set x $ac_cv_build | |
5232 | shift | |
5233 | build_cpu=$1 | |
5234 | build_vendor=$2 | |
5235 | shift; shift | |
5236 | # Remember, the first character of IFS is used to create $*, | |
5237 | # except with old shells: | |
5238 | build_os=$* | |
5239 | IFS=$ac_save_IFS | |
5240 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5241 | ||
5242 | ||
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5244 | $as_echo_n "checking host system type... " >&6; } | |
5245 | if ${ac_cv_host+:} false; then : | |
5246 | $as_echo_n "(cached) " >&6 | |
5247 | else | |
5248 | if test "x$host_alias" = x; then | |
5249 | ac_cv_host=$ac_cv_build | |
5250 | else | |
5251 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5252 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5253 | fi | |
5254 | ||
5255 | fi | |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5257 | $as_echo "$ac_cv_host" >&6; } | |
5258 | case $ac_cv_host in | |
5259 | *-*-*) ;; | |
5260 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5261 | esac | |
5262 | host=$ac_cv_host | |
5263 | ac_save_IFS=$IFS; IFS='-' | |
5264 | set x $ac_cv_host | |
5265 | shift | |
5266 | host_cpu=$1 | |
5267 | host_vendor=$2 | |
5268 | shift; shift | |
5269 | # Remember, the first character of IFS is used to create $*, | |
5270 | # except with old shells: | |
5271 | host_os=$* | |
5272 | IFS=$ac_save_IFS | |
5273 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5274 | ||
5275 | ||
5276 | # Backslashify metacharacters that are still active within | |
5277 | # double-quoted strings. | |
5278 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5279 | ||
5280 | # Same as above, but do not quote variable references. | |
5281 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5282 | ||
5283 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5284 | # double_quote_subst'ed string. | |
5285 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5286 | ||
5287 | # Sed substitution to delay expansion of an escaped single quote. | |
5288 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5289 | ||
5290 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5291 | no_glob_subst='s/\*/\\\*/g' | |
5292 | ||
5293 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5294 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5295 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5296 | ||
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5298 | $as_echo_n "checking how to print strings... " >&6; } | |
5299 | # Test print first, because it will be a builtin if present. | |
5300 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5301 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5302 | ECHO='print -r --' | |
5303 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5304 | ECHO='printf %s\n' | |
5305 | else | |
5306 | # Use this function as a fallback that always works. | |
5307 | func_fallback_echo () | |
5308 | { | |
5309 | eval 'cat <<_LTECHO_EOF | |
5310 | $1 | |
5311 | _LTECHO_EOF' | |
5312 | } | |
5313 | ECHO='func_fallback_echo' | |
5314 | fi | |
5315 | ||
5316 | # func_echo_all arg... | |
5317 | # Invoke $ECHO with all args, space-separated. | |
5318 | func_echo_all () | |
5319 | { | |
5320 | $ECHO "" | |
5321 | } | |
5322 | ||
5323 | case "$ECHO" in | |
5324 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5325 | $as_echo "printf" >&6; } ;; | |
5326 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5327 | $as_echo "print -r" >&6; } ;; | |
5328 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5329 | $as_echo "cat" >&6; } ;; | |
5330 | esac | |
5331 | ||
5332 | ||
5333 | ||
5334 | ||
5335 | ||
5336 | ||
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | ||
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5346 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5347 | if ${ac_cv_path_SED+:} false; then : | |
5348 | $as_echo_n "(cached) " >&6 | |
5349 | else | |
5350 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5351 | for ac_i in 1 2 3 4 5 6 7; do | |
5352 | ac_script="$ac_script$as_nl$ac_script" | |
5353 | done | |
5354 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5355 | { ac_script=; unset ac_script;} | |
5356 | if test -z "$SED"; then | |
5357 | ac_path_SED_found=false | |
5358 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5360 | for as_dir in $PATH | |
5361 | do | |
5362 | IFS=$as_save_IFS | |
5363 | test -z "$as_dir" && as_dir=. | |
5364 | for ac_prog in sed gsed; do | |
5365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5366 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5367 | as_fn_executable_p "$ac_path_SED" || continue | |
5368 | # Check for GNU ac_path_SED and select it if it is found. | |
5369 | # Check for GNU $ac_path_SED | |
5370 | case `"$ac_path_SED" --version 2>&1` in | |
5371 | *GNU*) | |
5372 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5373 | *) | |
5374 | ac_count=0 | |
5375 | $as_echo_n 0123456789 >"conftest.in" | |
5376 | while : | |
5377 | do | |
5378 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5379 | mv "conftest.tmp" "conftest.in" | |
5380 | cp "conftest.in" "conftest.nl" | |
5381 | $as_echo '' >> "conftest.nl" | |
5382 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5383 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5384 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5385 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5386 | # Best one so far, save it but keep looking for a better one | |
5387 | ac_cv_path_SED="$ac_path_SED" | |
5388 | ac_path_SED_max=$ac_count | |
5389 | fi | |
5390 | # 10*(2^10) chars as input seems more than enough | |
5391 | test $ac_count -gt 10 && break | |
5392 | done | |
5393 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5394 | esac | |
5395 | ||
5396 | $ac_path_SED_found && break 3 | |
5397 | done | |
5398 | done | |
5399 | done | |
5400 | IFS=$as_save_IFS | |
5401 | if test -z "$ac_cv_path_SED"; then | |
5402 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5403 | fi | |
5404 | else | |
5405 | ac_cv_path_SED=$SED | |
5406 | fi | |
5407 | ||
5408 | fi | |
5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5410 | $as_echo "$ac_cv_path_SED" >&6; } | |
5411 | SED="$ac_cv_path_SED" | |
5412 | rm -f conftest.sed | |
5413 | ||
5414 | test -z "$SED" && SED=sed | |
5415 | Xsed="$SED -e 1s/^X//" | |
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | ||
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5428 | $as_echo_n "checking for fgrep... " >&6; } | |
5429 | if ${ac_cv_path_FGREP+:} false; then : | |
5430 | $as_echo_n "(cached) " >&6 | |
5431 | else | |
5432 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5433 | then ac_cv_path_FGREP="$GREP -F" | |
5434 | else | |
5435 | if test -z "$FGREP"; then | |
5436 | ac_path_FGREP_found=false | |
5437 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5439 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5440 | do | |
5441 | IFS=$as_save_IFS | |
5442 | test -z "$as_dir" && as_dir=. | |
5443 | for ac_prog in fgrep; do | |
5444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5445 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5446 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5447 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5448 | # Check for GNU $ac_path_FGREP | |
5449 | case `"$ac_path_FGREP" --version 2>&1` in | |
5450 | *GNU*) | |
5451 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5452 | *) | |
5453 | ac_count=0 | |
5454 | $as_echo_n 0123456789 >"conftest.in" | |
5455 | while : | |
5456 | do | |
5457 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5458 | mv "conftest.tmp" "conftest.in" | |
5459 | cp "conftest.in" "conftest.nl" | |
5460 | $as_echo 'FGREP' >> "conftest.nl" | |
5461 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5462 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5463 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5464 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5465 | # Best one so far, save it but keep looking for a better one | |
5466 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5467 | ac_path_FGREP_max=$ac_count | |
5468 | fi | |
5469 | # 10*(2^10) chars as input seems more than enough | |
5470 | test $ac_count -gt 10 && break | |
5471 | done | |
5472 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5473 | esac | |
5474 | ||
5475 | $ac_path_FGREP_found && break 3 | |
5476 | done | |
5477 | done | |
5478 | done | |
5479 | IFS=$as_save_IFS | |
5480 | if test -z "$ac_cv_path_FGREP"; then | |
5481 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5482 | fi | |
5483 | else | |
5484 | ac_cv_path_FGREP=$FGREP | |
5485 | fi | |
5486 | ||
5487 | fi | |
5488 | fi | |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5490 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5491 | FGREP="$ac_cv_path_FGREP" | |
5492 | ||
5493 | ||
5494 | test -z "$GREP" && GREP=grep | |
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | ||
5513 | ||
5514 | # Check whether --with-gnu-ld was given. | |
5515 | if test "${with_gnu_ld+set}" = set; then : | |
5516 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5517 | else | |
5518 | with_gnu_ld=no | |
5519 | fi | |
5520 | ||
5521 | ac_prog=ld | |
5522 | if test "$GCC" = yes; then | |
5523 | # Check if gcc -print-prog-name=ld gives a path. | |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5525 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5526 | case $host in | |
5527 | *-*-mingw*) | |
5528 | # gcc leaves a trailing carriage return which upsets mingw | |
5529 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5530 | *) | |
5531 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5532 | esac | |
5533 | case $ac_prog in | |
5534 | # Accept absolute paths. | |
5535 | [\\/]* | ?:[\\/]*) | |
5536 | re_direlt='/[^/][^/]*/\.\./' | |
5537 | # Canonicalize the pathname of ld | |
5538 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5539 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5540 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5541 | done | |
5542 | test -z "$LD" && LD="$ac_prog" | |
5543 | ;; | |
5544 | "") | |
5545 | # If it fails, then pretend we aren't using GCC. | |
5546 | ac_prog=ld | |
5547 | ;; | |
5548 | *) | |
5549 | # If it is relative, then search for the first ld in PATH. | |
5550 | with_gnu_ld=unknown | |
5551 | ;; | |
5552 | esac | |
5553 | elif test "$with_gnu_ld" = yes; then | |
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5555 | $as_echo_n "checking for GNU ld... " >&6; } | |
5556 | else | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5558 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5559 | fi | |
5560 | if ${lt_cv_path_LD+:} false; then : | |
5561 | $as_echo_n "(cached) " >&6 | |
5562 | else | |
5563 | if test -z "$LD"; then | |
5564 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5565 | for ac_dir in $PATH; do | |
5566 | IFS="$lt_save_ifs" | |
5567 | test -z "$ac_dir" && ac_dir=. | |
5568 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5569 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5570 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5571 | # but apparently some variants of GNU ld only accept -v. | |
5572 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5573 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5574 | *GNU* | *'with BFD'*) | |
5575 | test "$with_gnu_ld" != no && break | |
5576 | ;; | |
5577 | *) | |
5578 | test "$with_gnu_ld" != yes && break | |
5579 | ;; | |
5580 | esac | |
5581 | fi | |
5582 | done | |
5583 | IFS="$lt_save_ifs" | |
5584 | else | |
5585 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5586 | fi | |
5587 | fi | |
5588 | ||
5589 | LD="$lt_cv_path_LD" | |
5590 | if test -n "$LD"; then | |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5592 | $as_echo "$LD" >&6; } | |
5593 | else | |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5595 | $as_echo "no" >&6; } | |
5596 | fi | |
5597 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5599 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5600 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5601 | $as_echo_n "(cached) " >&6 | |
5602 | else | |
5603 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5604 | case `$LD -v 2>&1 </dev/null` in | |
5605 | *GNU* | *'with BFD'*) | |
5606 | lt_cv_prog_gnu_ld=yes | |
5607 | ;; | |
5608 | *) | |
5609 | lt_cv_prog_gnu_ld=no | |
5610 | ;; | |
5611 | esac | |
5612 | fi | |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5614 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5615 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
5623 | ||
5624 | ||
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5626 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5627 | if ${lt_cv_path_NM+:} false; then : | |
5628 | $as_echo_n "(cached) " >&6 | |
5629 | else | |
5630 | if test -n "$NM"; then | |
5631 | # Let the user override the test. | |
5632 | lt_cv_path_NM="$NM" | |
5633 | else | |
5634 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5635 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5636 | lt_nm_to_check="$lt_nm_to_check nm" | |
5637 | fi | |
5638 | for lt_tmp_nm in $lt_nm_to_check; do | |
5639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5640 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5641 | IFS="$lt_save_ifs" | |
5642 | test -z "$ac_dir" && ac_dir=. | |
5643 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5644 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5645 | # Check to see if the nm accepts a BSD-compat flag. | |
5646 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5647 | # nm: unknown option "B" ignored | |
5648 | # Tru64's nm complains that /dev/null is an invalid object file | |
5649 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5650 | */dev/null* | *'Invalid file or object type'*) | |
5651 | lt_cv_path_NM="$tmp_nm -B" | |
5652 | break | |
5653 | ;; | |
5654 | *) | |
5655 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5656 | */dev/null*) | |
5657 | lt_cv_path_NM="$tmp_nm -p" | |
5658 | break | |
5659 | ;; | |
5660 | *) | |
5661 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5662 | continue # so that we can try to find one that supports BSD flags | |
5663 | ;; | |
5664 | esac | |
5665 | ;; | |
5666 | esac | |
5667 | fi | |
5668 | done | |
5669 | IFS="$lt_save_ifs" | |
5670 | done | |
5671 | : ${lt_cv_path_NM=no} | |
5672 | fi | |
5673 | fi | |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5675 | $as_echo "$lt_cv_path_NM" >&6; } | |
5676 | if test "$lt_cv_path_NM" != "no"; then | |
5677 | NM="$lt_cv_path_NM" | |
5678 | else | |
5679 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5680 | if test -n "$DUMPBIN"; then : | |
5681 | # Let the user override the test. | |
5682 | else | |
5683 | if test -n "$ac_tool_prefix"; then | |
5684 | for ac_prog in dumpbin "link -dump" | |
5685 | do | |
5686 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5687 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5689 | $as_echo_n "checking for $ac_word... " >&6; } | |
5690 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5691 | $as_echo_n "(cached) " >&6 | |
5692 | else | |
5693 | if test -n "$DUMPBIN"; then | |
5694 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5695 | else | |
5696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5697 | for as_dir in $PATH | |
5698 | do | |
5699 | IFS=$as_save_IFS | |
5700 | test -z "$as_dir" && as_dir=. | |
5701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5703 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5705 | break 2 | |
5706 | fi | |
5707 | done | |
5708 | done | |
5709 | IFS=$as_save_IFS | |
5710 | ||
5711 | fi | |
5712 | fi | |
5713 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5714 | if test -n "$DUMPBIN"; then | |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5716 | $as_echo "$DUMPBIN" >&6; } | |
5717 | else | |
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5719 | $as_echo "no" >&6; } | |
5720 | fi | |
5721 | ||
5722 | ||
5723 | test -n "$DUMPBIN" && break | |
5724 | done | |
5725 | fi | |
5726 | if test -z "$DUMPBIN"; then | |
5727 | ac_ct_DUMPBIN=$DUMPBIN | |
5728 | for ac_prog in dumpbin "link -dump" | |
5729 | do | |
5730 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5731 | set dummy $ac_prog; ac_word=$2 | |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5733 | $as_echo_n "checking for $ac_word... " >&6; } | |
5734 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5735 | $as_echo_n "(cached) " >&6 | |
5736 | else | |
5737 | if test -n "$ac_ct_DUMPBIN"; then | |
5738 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5739 | else | |
5740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5741 | for as_dir in $PATH | |
5742 | do | |
5743 | IFS=$as_save_IFS | |
5744 | test -z "$as_dir" && as_dir=. | |
5745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5747 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5749 | break 2 | |
5750 | fi | |
5751 | done | |
5752 | done | |
5753 | IFS=$as_save_IFS | |
5754 | ||
5755 | fi | |
5756 | fi | |
5757 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5758 | if test -n "$ac_ct_DUMPBIN"; then | |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5760 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5761 | else | |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5763 | $as_echo "no" >&6; } | |
5764 | fi | |
5765 | ||
5766 | ||
5767 | test -n "$ac_ct_DUMPBIN" && break | |
5768 | done | |
5769 | ||
5770 | if test "x$ac_ct_DUMPBIN" = x; then | |
5771 | DUMPBIN=":" | |
5772 | else | |
5773 | case $cross_compiling:$ac_tool_warned in | |
5774 | yes:) | |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5776 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5777 | ac_tool_warned=yes ;; | |
5778 | esac | |
5779 | DUMPBIN=$ac_ct_DUMPBIN | |
5780 | fi | |
5781 | fi | |
5782 | ||
5783 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5784 | *COFF*) | |
5785 | DUMPBIN="$DUMPBIN -symbols" | |
5786 | ;; | |
5787 | *) | |
5788 | DUMPBIN=: | |
5789 | ;; | |
5790 | esac | |
5791 | fi | |
5792 | ||
5793 | if test "$DUMPBIN" != ":"; then | |
5794 | NM="$DUMPBIN" | |
5795 | fi | |
5796 | fi | |
5797 | test -z "$NM" && NM=nm | |
5798 | ||
5799 | ||
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5805 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5806 | if ${lt_cv_nm_interface+:} false; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
5808 | else | |
5809 | lt_cv_nm_interface="BSD nm" | |
5810 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5811 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5812 | (eval "$ac_compile" 2>conftest.err) | |
5813 | cat conftest.err >&5 | |
5814 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5815 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5816 | cat conftest.err >&5 | |
5817 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5818 | cat conftest.out >&5 | |
5819 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5820 | lt_cv_nm_interface="MS dumpbin" | |
5821 | fi | |
5822 | rm -f conftest* | |
5823 | fi | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5825 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5826 | ||
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5828 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5829 | LN_S=$as_ln_s | |
5830 | if test "$LN_S" = "ln -s"; then | |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5832 | $as_echo "yes" >&6; } | |
5833 | else | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5835 | $as_echo "no, using $LN_S" >&6; } | |
5836 | fi | |
5837 | ||
5838 | # find the maximum length of command line arguments | |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5840 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5841 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5842 | $as_echo_n "(cached) " >&6 | |
5843 | else | |
5844 | i=0 | |
5845 | teststring="ABCD" | |
5846 | ||
5847 | case $build_os in | |
5848 | msdosdjgpp*) | |
5849 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5850 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5851 | # during glob expansion). Even if it were fixed, the result of this | |
5852 | # check would be larger than it should be. | |
5853 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5854 | ;; | |
5855 | ||
5856 | gnu*) | |
5857 | # Under GNU Hurd, this test is not required because there is | |
5858 | # no limit to the length of command line arguments. | |
5859 | # Libtool will interpret -1 as no limit whatsoever | |
5860 | lt_cv_sys_max_cmd_len=-1; | |
5861 | ;; | |
5862 | ||
5863 | cygwin* | mingw* | cegcc*) | |
5864 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5865 | # about 5 minutes as the teststring grows exponentially. | |
5866 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5867 | # you end up with a "frozen" computer, even though with patience | |
5868 | # the test eventually succeeds (with a max line length of 256k). | |
5869 | # Instead, let's just punt: use the minimum linelength reported by | |
5870 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5871 | lt_cv_sys_max_cmd_len=8192; | |
5872 | ;; | |
5873 | ||
5874 | mint*) | |
5875 | # On MiNT this can take a long time and run out of memory. | |
5876 | lt_cv_sys_max_cmd_len=8192; | |
5877 | ;; | |
5878 | ||
5879 | amigaos*) | |
5880 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5881 | # So we just punt and use a minimum line length of 8192. | |
5882 | lt_cv_sys_max_cmd_len=8192; | |
5883 | ;; | |
5884 | ||
5885 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5886 | # This has been around since 386BSD, at least. Likely further. | |
5887 | if test -x /sbin/sysctl; then | |
5888 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5889 | elif test -x /usr/sbin/sysctl; then | |
5890 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5891 | else | |
5892 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5893 | fi | |
5894 | # And add a safety zone | |
5895 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5896 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5897 | ;; | |
5898 | ||
5899 | interix*) | |
5900 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5901 | lt_cv_sys_max_cmd_len=196608 | |
5902 | ;; | |
5903 | ||
5904 | os2*) | |
5905 | # The test takes a long time on OS/2. | |
5906 | lt_cv_sys_max_cmd_len=8192 | |
5907 | ;; | |
5908 | ||
5909 | osf*) | |
5910 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5911 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5912 | # nice to cause kernel panics so lets avoid the loop below. | |
5913 | # First set a reasonable default. | |
5914 | lt_cv_sys_max_cmd_len=16384 | |
5915 | # | |
5916 | if test -x /sbin/sysconfig; then | |
5917 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5918 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5919 | esac | |
5920 | fi | |
5921 | ;; | |
5922 | sco3.2v5*) | |
5923 | lt_cv_sys_max_cmd_len=102400 | |
5924 | ;; | |
5925 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5926 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5927 | if test -n "$kargmax"; then | |
5928 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5929 | else | |
5930 | lt_cv_sys_max_cmd_len=32768 | |
5931 | fi | |
5932 | ;; | |
5933 | *) | |
5934 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5935 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5936 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5937 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5938 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5939 | else | |
5940 | # Make teststring a little bigger before we do anything with it. | |
5941 | # a 1K string should be a reasonable start. | |
5942 | for i in 1 2 3 4 5 6 7 8 ; do | |
5943 | teststring=$teststring$teststring | |
5944 | done | |
5945 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5946 | # If test is not a shell built-in, we'll probably end up computing a | |
5947 | # maximum length that is only half of the actual maximum length, but | |
5948 | # we can't tell. | |
5949 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5950 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5951 | test $i != 17 # 1/2 MB should be enough | |
5952 | do | |
5953 | i=`expr $i + 1` | |
5954 | teststring=$teststring$teststring | |
5955 | done | |
5956 | # Only check the string length outside the loop. | |
5957 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5958 | teststring= | |
5959 | # Add a significant safety factor because C++ compilers can tack on | |
5960 | # massive amounts of additional arguments before passing them to the | |
5961 | # linker. It appears as though 1/2 is a usable value. | |
5962 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5963 | fi | |
5964 | ;; | |
5965 | esac | |
5966 | ||
5967 | fi | |
5968 | ||
5969 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5971 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5972 | else | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5974 | $as_echo "none" >&6; } | |
5975 | fi | |
5976 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | : ${CP="cp -f"} | |
5984 | : ${MV="mv -f"} | |
5985 | : ${RM="rm -f"} | |
5986 | ||
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5988 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5989 | # Try some XSI features | |
5990 | xsi_shell=no | |
5991 | ( _lt_dummy="a/b/c" | |
5992 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5993 | = c,a/b,b/c, \ | |
5994 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5995 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5996 | && xsi_shell=yes | |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5998 | $as_echo "$xsi_shell" >&6; } | |
5999 | ||
6000 | ||
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6002 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6003 | lt_shell_append=no | |
6004 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6005 | >/dev/null 2>&1 \ | |
6006 | && lt_shell_append=yes | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6008 | $as_echo "$lt_shell_append" >&6; } | |
6009 | ||
6010 | ||
6011 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6012 | lt_unset=unset | |
6013 | else | |
6014 | lt_unset=false | |
6015 | fi | |
6016 | ||
6017 | ||
6018 | ||
6019 | ||
6020 | ||
6021 | # test EBCDIC or ASCII | |
6022 | case `echo X|tr X '\101'` in | |
6023 | A) # ASCII based system | |
6024 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6025 | lt_SP2NL='tr \040 \012' | |
6026 | lt_NL2SP='tr \015\012 \040\040' | |
6027 | ;; | |
6028 | *) # EBCDIC based system | |
6029 | lt_SP2NL='tr \100 \n' | |
6030 | lt_NL2SP='tr \r\n \100\100' | |
6031 | ;; | |
6032 | esac | |
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | ||
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6043 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6044 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6045 | $as_echo_n "(cached) " >&6 | |
6046 | else | |
6047 | case $host in | |
6048 | *-*-mingw* ) | |
6049 | case $build in | |
6050 | *-*-mingw* ) # actually msys | |
6051 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6052 | ;; | |
6053 | *-*-cygwin* ) | |
6054 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6055 | ;; | |
6056 | * ) # otherwise, assume *nix | |
6057 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6058 | ;; | |
6059 | esac | |
6060 | ;; | |
6061 | *-*-cygwin* ) | |
6062 | case $build in | |
6063 | *-*-mingw* ) # actually msys | |
6064 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6065 | ;; | |
6066 | *-*-cygwin* ) | |
6067 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6068 | ;; | |
6069 | * ) # otherwise, assume *nix | |
6070 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6071 | ;; | |
6072 | esac | |
6073 | ;; | |
6074 | * ) # unhandled hosts (and "normal" native builds) | |
6075 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6076 | ;; | |
6077 | esac | |
6078 | ||
6079 | fi | |
6080 | ||
6081 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6083 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6084 | ||
6085 | ||
6086 | ||
6087 | ||
6088 | ||
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6090 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6091 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6092 | $as_echo_n "(cached) " >&6 | |
6093 | else | |
6094 | #assume ordinary cross tools, or native build. | |
6095 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6096 | case $host in | |
6097 | *-*-mingw* ) | |
6098 | case $build in | |
6099 | *-*-mingw* ) # actually msys | |
6100 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6101 | ;; | |
6102 | esac | |
6103 | ;; | |
6104 | esac | |
6105 | ||
6106 | fi | |
6107 | ||
6108 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6110 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6117 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6118 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6119 | $as_echo_n "(cached) " >&6 | |
6120 | else | |
6121 | lt_cv_ld_reload_flag='-r' | |
6122 | fi | |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6124 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6125 | reload_flag=$lt_cv_ld_reload_flag | |
6126 | case $reload_flag in | |
6127 | "" | " "*) ;; | |
6128 | *) reload_flag=" $reload_flag" ;; | |
6129 | esac | |
6130 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6131 | case $host_os in | |
6132 | cygwin* | mingw* | pw32* | cegcc*) | |
6133 | if test "$GCC" != yes; then | |
6134 | reload_cmds=false | |
6135 | fi | |
6136 | ;; | |
6137 | darwin*) | |
6138 | if test "$GCC" = yes; then | |
6139 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6140 | else | |
6141 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6142 | fi | |
6143 | ;; | |
6144 | esac | |
6145 | ||
6146 | ||
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | if test -n "$ac_tool_prefix"; then | |
6155 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6156 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6158 | $as_echo_n "checking for $ac_word... " >&6; } | |
6159 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6160 | $as_echo_n "(cached) " >&6 | |
6161 | else | |
6162 | if test -n "$OBJDUMP"; then | |
6163 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6164 | else | |
6165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6166 | for as_dir in $PATH | |
6167 | do | |
6168 | IFS=$as_save_IFS | |
6169 | test -z "$as_dir" && as_dir=. | |
6170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6172 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6174 | break 2 | |
6175 | fi | |
6176 | done | |
6177 | done | |
6178 | IFS=$as_save_IFS | |
6179 | ||
6180 | fi | |
6181 | fi | |
6182 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6183 | if test -n "$OBJDUMP"; then | |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6185 | $as_echo "$OBJDUMP" >&6; } | |
6186 | else | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6188 | $as_echo "no" >&6; } | |
6189 | fi | |
6190 | ||
6191 | ||
6192 | fi | |
6193 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6194 | ac_ct_OBJDUMP=$OBJDUMP | |
6195 | # Extract the first word of "objdump", so it can be a program name with args. | |
6196 | set dummy objdump; ac_word=$2 | |
6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6198 | $as_echo_n "checking for $ac_word... " >&6; } | |
6199 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6200 | $as_echo_n "(cached) " >&6 | |
6201 | else | |
6202 | if test -n "$ac_ct_OBJDUMP"; then | |
6203 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6204 | else | |
6205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6206 | for as_dir in $PATH | |
6207 | do | |
6208 | IFS=$as_save_IFS | |
6209 | test -z "$as_dir" && as_dir=. | |
6210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6212 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6214 | break 2 | |
6215 | fi | |
6216 | done | |
6217 | done | |
6218 | IFS=$as_save_IFS | |
6219 | ||
6220 | fi | |
6221 | fi | |
6222 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6223 | if test -n "$ac_ct_OBJDUMP"; then | |
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6225 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6226 | else | |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6228 | $as_echo "no" >&6; } | |
6229 | fi | |
6230 | ||
6231 | if test "x$ac_ct_OBJDUMP" = x; then | |
6232 | OBJDUMP="false" | |
6233 | else | |
6234 | case $cross_compiling:$ac_tool_warned in | |
6235 | yes:) | |
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6237 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6238 | ac_tool_warned=yes ;; | |
6239 | esac | |
6240 | OBJDUMP=$ac_ct_OBJDUMP | |
6241 | fi | |
6242 | else | |
6243 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6244 | fi | |
6245 | ||
6246 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6247 | ||
6248 | ||
6249 | ||
6250 | ||
6251 | ||
6252 | ||
6253 | ||
6254 | ||
6255 | ||
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6257 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6258 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6259 | $as_echo_n "(cached) " >&6 | |
6260 | else | |
6261 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6262 | lt_cv_file_magic_test_file= | |
6263 | lt_cv_deplibs_check_method='unknown' | |
6264 | # Need to set the preceding variable on all platforms that support | |
6265 | # interlibrary dependencies. | |
6266 | # 'none' -- dependencies not supported. | |
6267 | # `unknown' -- same as none, but documents that we really don't know. | |
6268 | # 'pass_all' -- all dependencies passed with no checks. | |
6269 | # 'test_compile' -- check by making test program. | |
6270 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6271 | # which responds to the $file_magic_cmd with a given extended regex. | |
6272 | # If you have `file' or equivalent on your system and you're not sure | |
6273 | # whether `pass_all' will *always* work, you probably want this one. | |
6274 | ||
6275 | case $host_os in | |
6276 | aix[4-9]*) | |
6277 | lt_cv_deplibs_check_method=pass_all | |
6278 | ;; | |
6279 | ||
6280 | beos*) | |
6281 | lt_cv_deplibs_check_method=pass_all | |
6282 | ;; | |
6283 | ||
6284 | bsdi[45]*) | |
6285 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6286 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6287 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6288 | ;; | |
6289 | ||
6290 | cygwin*) | |
6291 | # func_win32_libid is a shell function defined in ltmain.sh | |
6292 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6293 | lt_cv_file_magic_cmd='func_win32_libid' | |
6294 | ;; | |
6295 | ||
6296 | mingw* | pw32*) | |
6297 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6298 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6299 | # unless we find 'file', for example because we are cross-compiling. | |
6300 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6301 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6302 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6303 | lt_cv_file_magic_cmd='func_win32_libid' | |
6304 | else | |
6305 | # Keep this pattern in sync with the one in func_win32_libid. | |
6306 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6307 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6308 | fi | |
6309 | ;; | |
6310 | ||
6311 | cegcc*) | |
6312 | # use the weaker test based on 'objdump'. See mingw*. | |
6313 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6314 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6315 | ;; | |
6316 | ||
6317 | darwin* | rhapsody*) | |
6318 | lt_cv_deplibs_check_method=pass_all | |
6319 | ;; | |
6320 | ||
6321 | freebsd* | dragonfly*) | |
6322 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6323 | case $host_cpu in | |
6324 | i*86 ) | |
6325 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6326 | # Let's accept both of them until this is cleared up. | |
6327 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6328 | lt_cv_file_magic_cmd=/usr/bin/file | |
6329 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6330 | ;; | |
6331 | esac | |
6332 | else | |
6333 | lt_cv_deplibs_check_method=pass_all | |
6334 | fi | |
6335 | ;; | |
6336 | ||
6337 | haiku*) | |
6338 | lt_cv_deplibs_check_method=pass_all | |
6339 | ;; | |
6340 | ||
6341 | hpux10.20* | hpux11*) | |
6342 | lt_cv_file_magic_cmd=/usr/bin/file | |
6343 | case $host_cpu in | |
6344 | ia64*) | |
6345 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6346 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6347 | ;; | |
6348 | hppa*64*) | |
6349 | 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]' | |
6350 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6351 | ;; | |
6352 | *) | |
6353 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6354 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6355 | ;; | |
6356 | esac | |
6357 | ;; | |
6358 | ||
6359 | interix[3-9]*) | |
6360 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6361 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6362 | ;; | |
6363 | ||
6364 | irix5* | irix6* | nonstopux*) | |
6365 | case $LD in | |
6366 | *-32|*"-32 ") libmagic=32-bit;; | |
6367 | *-n32|*"-n32 ") libmagic=N32;; | |
6368 | *-64|*"-64 ") libmagic=64-bit;; | |
6369 | *) libmagic=never-match;; | |
6370 | esac | |
6371 | lt_cv_deplibs_check_method=pass_all | |
6372 | ;; | |
6373 | ||
6374 | # This must be glibc/ELF. | |
6375 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6376 | lt_cv_deplibs_check_method=pass_all | |
6377 | ;; | |
6378 | ||
6379 | netbsd* | netbsdelf*-gnu) | |
6380 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6381 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6382 | else | |
6383 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6384 | fi | |
6385 | ;; | |
6386 | ||
6387 | newos6*) | |
6388 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6389 | lt_cv_file_magic_cmd=/usr/bin/file | |
6390 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6391 | ;; | |
6392 | ||
6393 | *nto* | *qnx*) | |
6394 | lt_cv_deplibs_check_method=pass_all | |
6395 | ;; | |
6396 | ||
6397 | openbsd*) | |
6398 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6399 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6400 | else | |
6401 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6402 | fi | |
6403 | ;; | |
6404 | ||
6405 | osf3* | osf4* | osf5*) | |
6406 | lt_cv_deplibs_check_method=pass_all | |
6407 | ;; | |
6408 | ||
6409 | rdos*) | |
6410 | lt_cv_deplibs_check_method=pass_all | |
6411 | ;; | |
6412 | ||
6413 | solaris*) | |
6414 | lt_cv_deplibs_check_method=pass_all | |
6415 | ;; | |
6416 | ||
6417 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6418 | lt_cv_deplibs_check_method=pass_all | |
6419 | ;; | |
6420 | ||
6421 | sysv4 | sysv4.3*) | |
6422 | case $host_vendor in | |
6423 | motorola) | |
6424 | 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]' | |
6425 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6426 | ;; | |
6427 | ncr) | |
6428 | lt_cv_deplibs_check_method=pass_all | |
6429 | ;; | |
6430 | sequent) | |
6431 | lt_cv_file_magic_cmd='/bin/file' | |
6432 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6433 | ;; | |
6434 | sni) | |
6435 | lt_cv_file_magic_cmd='/bin/file' | |
6436 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6437 | lt_cv_file_magic_test_file=/lib/libc.so | |
6438 | ;; | |
6439 | siemens) | |
6440 | lt_cv_deplibs_check_method=pass_all | |
6441 | ;; | |
6442 | pc) | |
6443 | lt_cv_deplibs_check_method=pass_all | |
6444 | ;; | |
6445 | esac | |
6446 | ;; | |
6447 | ||
6448 | tpf*) | |
6449 | lt_cv_deplibs_check_method=pass_all | |
6450 | ;; | |
6451 | esac | |
6452 | ||
6453 | fi | |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6455 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6456 | ||
6457 | file_magic_glob= | |
6458 | want_nocaseglob=no | |
6459 | if test "$build" = "$host"; then | |
6460 | case $host_os in | |
6461 | mingw* | pw32*) | |
6462 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6463 | want_nocaseglob=yes | |
6464 | else | |
6465 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6466 | fi | |
6467 | ;; | |
6468 | esac | |
6469 | fi | |
6470 | ||
6471 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6472 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6473 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | if test -n "$ac_tool_prefix"; then | |
6497 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6498 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6500 | $as_echo_n "checking for $ac_word... " >&6; } | |
6501 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6502 | $as_echo_n "(cached) " >&6 | |
6503 | else | |
6504 | if test -n "$DLLTOOL"; then | |
6505 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6506 | else | |
6507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6508 | for as_dir in $PATH | |
6509 | do | |
6510 | IFS=$as_save_IFS | |
6511 | test -z "$as_dir" && as_dir=. | |
6512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6514 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6516 | break 2 | |
6517 | fi | |
6518 | done | |
6519 | done | |
6520 | IFS=$as_save_IFS | |
6521 | ||
6522 | fi | |
6523 | fi | |
6524 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6525 | if test -n "$DLLTOOL"; then | |
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6527 | $as_echo "$DLLTOOL" >&6; } | |
6528 | else | |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6530 | $as_echo "no" >&6; } | |
6531 | fi | |
6532 | ||
6533 | ||
6534 | fi | |
6535 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6536 | ac_ct_DLLTOOL=$DLLTOOL | |
6537 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6538 | set dummy dlltool; ac_word=$2 | |
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6540 | $as_echo_n "checking for $ac_word... " >&6; } | |
6541 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6542 | $as_echo_n "(cached) " >&6 | |
6543 | else | |
6544 | if test -n "$ac_ct_DLLTOOL"; then | |
6545 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6546 | else | |
6547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6548 | for as_dir in $PATH | |
6549 | do | |
6550 | IFS=$as_save_IFS | |
6551 | test -z "$as_dir" && as_dir=. | |
6552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6554 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6556 | break 2 | |
6557 | fi | |
6558 | done | |
6559 | done | |
6560 | IFS=$as_save_IFS | |
6561 | ||
6562 | fi | |
6563 | fi | |
6564 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6565 | if test -n "$ac_ct_DLLTOOL"; then | |
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6567 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6568 | else | |
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6570 | $as_echo "no" >&6; } | |
6571 | fi | |
6572 | ||
6573 | if test "x$ac_ct_DLLTOOL" = x; then | |
6574 | DLLTOOL="false" | |
6575 | else | |
6576 | case $cross_compiling:$ac_tool_warned in | |
6577 | yes:) | |
6578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6579 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6580 | ac_tool_warned=yes ;; | |
6581 | esac | |
6582 | DLLTOOL=$ac_ct_DLLTOOL | |
6583 | fi | |
6584 | else | |
6585 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6586 | fi | |
6587 | ||
6588 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6600 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6601 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6602 | $as_echo_n "(cached) " >&6 | |
6603 | else | |
6604 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6605 | ||
6606 | case $host_os in | |
6607 | cygwin* | mingw* | pw32* | cegcc*) | |
6608 | # two different shell functions defined in ltmain.sh | |
6609 | # decide which to use based on capabilities of $DLLTOOL | |
6610 | case `$DLLTOOL --help 2>&1` in | |
6611 | *--identify-strict*) | |
6612 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6613 | ;; | |
6614 | *) | |
6615 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6616 | ;; | |
6617 | esac | |
6618 | ;; | |
6619 | *) | |
6620 | # fallback: assume linklib IS sharedlib | |
6621 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6622 | ;; | |
6623 | esac | |
6624 | ||
6625 | fi | |
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6627 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6628 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6629 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | ||
6636 | ||
6637 | if test -n "$ac_tool_prefix"; then | |
6638 | for ac_prog in ar | |
6639 | do | |
6640 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6641 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6643 | $as_echo_n "checking for $ac_word... " >&6; } | |
6644 | if ${ac_cv_prog_AR+:} false; then : | |
6645 | $as_echo_n "(cached) " >&6 | |
6646 | else | |
6647 | if test -n "$AR"; then | |
6648 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6649 | else | |
6650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6651 | for as_dir in $PATH | |
6652 | do | |
6653 | IFS=$as_save_IFS | |
6654 | test -z "$as_dir" && as_dir=. | |
6655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6657 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6659 | break 2 | |
6660 | fi | |
6661 | done | |
6662 | done | |
6663 | IFS=$as_save_IFS | |
6664 | ||
6665 | fi | |
6666 | fi | |
6667 | AR=$ac_cv_prog_AR | |
6668 | if test -n "$AR"; then | |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6670 | $as_echo "$AR" >&6; } | |
6671 | else | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6673 | $as_echo "no" >&6; } | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | test -n "$AR" && break | |
6678 | done | |
6679 | fi | |
6680 | if test -z "$AR"; then | |
6681 | ac_ct_AR=$AR | |
6682 | for ac_prog in ar | |
6683 | do | |
6684 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6685 | set dummy $ac_prog; ac_word=$2 | |
6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6687 | $as_echo_n "checking for $ac_word... " >&6; } | |
6688 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6689 | $as_echo_n "(cached) " >&6 | |
6690 | else | |
6691 | if test -n "$ac_ct_AR"; then | |
6692 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6693 | else | |
6694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6695 | for as_dir in $PATH | |
6696 | do | |
6697 | IFS=$as_save_IFS | |
6698 | test -z "$as_dir" && as_dir=. | |
6699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6700 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6701 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6703 | break 2 | |
6704 | fi | |
6705 | done | |
6706 | done | |
6707 | IFS=$as_save_IFS | |
6708 | ||
6709 | fi | |
6710 | fi | |
6711 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6712 | if test -n "$ac_ct_AR"; then | |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6714 | $as_echo "$ac_ct_AR" >&6; } | |
6715 | else | |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6717 | $as_echo "no" >&6; } | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | test -n "$ac_ct_AR" && break | |
6722 | done | |
6723 | ||
6724 | if test "x$ac_ct_AR" = x; then | |
6725 | AR="false" | |
6726 | else | |
6727 | case $cross_compiling:$ac_tool_warned in | |
6728 | yes:) | |
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6731 | ac_tool_warned=yes ;; | |
6732 | esac | |
6733 | AR=$ac_ct_AR | |
6734 | fi | |
6735 | fi | |
6736 | ||
6737 | : ${AR=ar} | |
6738 | : ${AR_FLAGS=cru} | |
6739 | ||
6740 | ||
6741 | ||
6742 | ||
6743 | ||
6744 | ||
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6751 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6752 | if ${lt_cv_ar_at_file+:} false; then : | |
6753 | $as_echo_n "(cached) " >&6 | |
6754 | else | |
6755 | lt_cv_ar_at_file=no | |
6756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6757 | /* end confdefs.h. */ | |
6758 | ||
6759 | int | |
6760 | main () | |
6761 | { | |
6762 | ||
6763 | ; | |
6764 | return 0; | |
6765 | } | |
6766 | _ACEOF | |
6767 | if ac_fn_c_try_compile "$LINENO"; then : | |
6768 | echo conftest.$ac_objext > conftest.lst | |
6769 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6770 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6771 | (eval $lt_ar_try) 2>&5 | |
6772 | ac_status=$? | |
6773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6774 | test $ac_status = 0; } | |
6775 | if test "$ac_status" -eq 0; then | |
6776 | # Ensure the archiver fails upon bogus file names. | |
6777 | rm -f conftest.$ac_objext libconftest.a | |
6778 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6779 | (eval $lt_ar_try) 2>&5 | |
6780 | ac_status=$? | |
6781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6782 | test $ac_status = 0; } | |
6783 | if test "$ac_status" -ne 0; then | |
6784 | lt_cv_ar_at_file=@ | |
6785 | fi | |
6786 | fi | |
6787 | rm -f conftest.* libconftest.a | |
6788 | ||
6789 | fi | |
6790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6791 | ||
6792 | fi | |
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6794 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6795 | ||
6796 | if test "x$lt_cv_ar_at_file" = xno; then | |
6797 | archiver_list_spec= | |
6798 | else | |
6799 | archiver_list_spec=$lt_cv_ar_at_file | |
6800 | fi | |
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | if test -n "$ac_tool_prefix"; then | |
6809 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6810 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6812 | $as_echo_n "checking for $ac_word... " >&6; } | |
6813 | if ${ac_cv_prog_STRIP+:} false; then : | |
6814 | $as_echo_n "(cached) " >&6 | |
6815 | else | |
6816 | if test -n "$STRIP"; then | |
6817 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6818 | else | |
6819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6820 | for as_dir in $PATH | |
6821 | do | |
6822 | IFS=$as_save_IFS | |
6823 | test -z "$as_dir" && as_dir=. | |
6824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6825 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6826 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6828 | break 2 | |
6829 | fi | |
6830 | done | |
6831 | done | |
6832 | IFS=$as_save_IFS | |
6833 | ||
6834 | fi | |
6835 | fi | |
6836 | STRIP=$ac_cv_prog_STRIP | |
6837 | if test -n "$STRIP"; then | |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6839 | $as_echo "$STRIP" >&6; } | |
6840 | else | |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6842 | $as_echo "no" >&6; } | |
6843 | fi | |
6844 | ||
6845 | ||
6846 | fi | |
6847 | if test -z "$ac_cv_prog_STRIP"; then | |
6848 | ac_ct_STRIP=$STRIP | |
6849 | # Extract the first word of "strip", so it can be a program name with args. | |
6850 | set dummy strip; ac_word=$2 | |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6852 | $as_echo_n "checking for $ac_word... " >&6; } | |
6853 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6854 | $as_echo_n "(cached) " >&6 | |
6855 | else | |
6856 | if test -n "$ac_ct_STRIP"; then | |
6857 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6858 | else | |
6859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6860 | for as_dir in $PATH | |
6861 | do | |
6862 | IFS=$as_save_IFS | |
6863 | test -z "$as_dir" && as_dir=. | |
6864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6866 | ac_cv_prog_ac_ct_STRIP="strip" | |
6867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6868 | break 2 | |
6869 | fi | |
6870 | done | |
6871 | done | |
6872 | IFS=$as_save_IFS | |
6873 | ||
6874 | fi | |
6875 | fi | |
6876 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6877 | if test -n "$ac_ct_STRIP"; then | |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6879 | $as_echo "$ac_ct_STRIP" >&6; } | |
6880 | else | |
6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6882 | $as_echo "no" >&6; } | |
6883 | fi | |
6884 | ||
6885 | if test "x$ac_ct_STRIP" = x; then | |
6886 | STRIP=":" | |
6887 | else | |
6888 | case $cross_compiling:$ac_tool_warned in | |
6889 | yes:) | |
6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6891 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6892 | ac_tool_warned=yes ;; | |
6893 | esac | |
6894 | STRIP=$ac_ct_STRIP | |
6895 | fi | |
6896 | else | |
6897 | STRIP="$ac_cv_prog_STRIP" | |
6898 | fi | |
6899 | ||
6900 | test -z "$STRIP" && STRIP=: | |
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | if test -n "$ac_tool_prefix"; then | |
6908 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6909 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6911 | $as_echo_n "checking for $ac_word... " >&6; } | |
6912 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6913 | $as_echo_n "(cached) " >&6 | |
6914 | else | |
6915 | if test -n "$RANLIB"; then | |
6916 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6917 | else | |
6918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6919 | for as_dir in $PATH | |
6920 | do | |
6921 | IFS=$as_save_IFS | |
6922 | test -z "$as_dir" && as_dir=. | |
6923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6925 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6927 | break 2 | |
6928 | fi | |
6929 | done | |
6930 | done | |
6931 | IFS=$as_save_IFS | |
6932 | ||
6933 | fi | |
6934 | fi | |
6935 | RANLIB=$ac_cv_prog_RANLIB | |
6936 | if test -n "$RANLIB"; then | |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6938 | $as_echo "$RANLIB" >&6; } | |
6939 | else | |
6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6941 | $as_echo "no" >&6; } | |
6942 | fi | |
6943 | ||
6944 | ||
6945 | fi | |
6946 | if test -z "$ac_cv_prog_RANLIB"; then | |
6947 | ac_ct_RANLIB=$RANLIB | |
6948 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6949 | set dummy ranlib; ac_word=$2 | |
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6951 | $as_echo_n "checking for $ac_word... " >&6; } | |
6952 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6953 | $as_echo_n "(cached) " >&6 | |
6954 | else | |
6955 | if test -n "$ac_ct_RANLIB"; then | |
6956 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6957 | else | |
6958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6959 | for as_dir in $PATH | |
6960 | do | |
6961 | IFS=$as_save_IFS | |
6962 | test -z "$as_dir" && as_dir=. | |
6963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6965 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6967 | break 2 | |
6968 | fi | |
6969 | done | |
6970 | done | |
6971 | IFS=$as_save_IFS | |
6972 | ||
6973 | fi | |
6974 | fi | |
6975 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6976 | if test -n "$ac_ct_RANLIB"; then | |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6978 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6979 | else | |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6981 | $as_echo "no" >&6; } | |
6982 | fi | |
6983 | ||
6984 | if test "x$ac_ct_RANLIB" = x; then | |
6985 | RANLIB=":" | |
6986 | else | |
6987 | case $cross_compiling:$ac_tool_warned in | |
6988 | yes:) | |
6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6990 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6991 | ac_tool_warned=yes ;; | |
6992 | esac | |
6993 | RANLIB=$ac_ct_RANLIB | |
6994 | fi | |
6995 | else | |
6996 | RANLIB="$ac_cv_prog_RANLIB" | |
6997 | fi | |
6998 | ||
6999 | test -z "$RANLIB" && RANLIB=: | |
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | # Determine commands to create old-style static archives. | |
7007 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7008 | old_postinstall_cmds='chmod 644 $oldlib' | |
7009 | old_postuninstall_cmds= | |
7010 | ||
7011 | if test -n "$RANLIB"; then | |
7012 | case $host_os in | |
7013 | openbsd*) | |
7014 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7015 | ;; | |
7016 | *) | |
7017 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7018 | ;; | |
7019 | esac | |
7020 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
7021 | fi | |
7022 | ||
7023 | case $host_os in | |
7024 | darwin*) | |
7025 | lock_old_archive_extraction=yes ;; | |
7026 | *) | |
7027 | lock_old_archive_extraction=no ;; | |
7028 | esac | |
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | # If no C compiler was specified, use CC. | |
7069 | LTCC=${LTCC-"$CC"} | |
7070 | ||
7071 | # If no C compiler flags were specified, use CFLAGS. | |
7072 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7073 | ||
7074 | # Allow CC to be a program name with arguments. | |
7075 | compiler=$CC | |
7076 | ||
7077 | ||
7078 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7080 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7081 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7082 | $as_echo_n "(cached) " >&6 | |
7083 | else | |
7084 | ||
7085 | # These are sane defaults that work on at least a few old systems. | |
7086 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7087 | ||
7088 | # Character class describing NM global symbol codes. | |
7089 | symcode='[BCDEGRST]' | |
7090 | ||
7091 | # Regexp to match symbols that can be accessed directly from C. | |
7092 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7093 | ||
7094 | # Define system-specific variables. | |
7095 | case $host_os in | |
7096 | aix*) | |
7097 | symcode='[BCDT]' | |
7098 | ;; | |
7099 | cygwin* | mingw* | pw32* | cegcc*) | |
7100 | symcode='[ABCDGISTW]' | |
7101 | ;; | |
7102 | hpux*) | |
7103 | if test "$host_cpu" = ia64; then | |
7104 | symcode='[ABCDEGRST]' | |
7105 | fi | |
7106 | ;; | |
7107 | irix* | nonstopux*) | |
7108 | symcode='[BCDEGRST]' | |
7109 | ;; | |
7110 | osf*) | |
7111 | symcode='[BCDEGQRST]' | |
7112 | ;; | |
7113 | solaris*) | |
7114 | symcode='[BDRT]' | |
7115 | ;; | |
7116 | sco3.2v5*) | |
7117 | symcode='[DT]' | |
7118 | ;; | |
7119 | sysv4.2uw2*) | |
7120 | symcode='[DT]' | |
7121 | ;; | |
7122 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7123 | symcode='[ABDT]' | |
7124 | ;; | |
7125 | sysv4) | |
7126 | symcode='[DFNSTU]' | |
7127 | ;; | |
7128 | esac | |
7129 | ||
7130 | # If we're using GNU nm, then use its standard symbol codes. | |
7131 | case `$NM -V 2>&1` in | |
7132 | *GNU* | *'with BFD'*) | |
7133 | symcode='[ABCDGIRSTW]' ;; | |
7134 | esac | |
7135 | ||
7136 | # Transform an extracted symbol line into a proper C declaration. | |
7137 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7138 | # so use this general approach. | |
7139 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7140 | ||
7141 | # Transform an extracted symbol line into symbol name and symbol address | |
7142 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7143 | 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'" | |
7144 | ||
7145 | # Handle CRLF in mingw tool chain | |
7146 | opt_cr= | |
7147 | case $build_os in | |
7148 | mingw*) | |
7149 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7150 | ;; | |
7151 | esac | |
7152 | ||
7153 | # Try without a prefix underscore, then with it. | |
7154 | for ac_symprfx in "" "_"; do | |
7155 | ||
7156 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7157 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7158 | ||
7159 | # Write the raw and C identifiers. | |
7160 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7161 | # Fake it for dumpbin and say T for any non-static function | |
7162 | # and D for any global variable. | |
7163 | # Also find C++ and __fastcall symbols from MSVC++, | |
7164 | # which start with @ or ?. | |
7165 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7166 | " {last_section=section; section=\$ 3};"\ | |
7167 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7168 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7169 | " \$ 0!~/External *\|/{next};"\ | |
7170 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7171 | " {if(hide[section]) next};"\ | |
7172 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7173 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7174 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7175 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7176 | " ' prfx=^$ac_symprfx" | |
7177 | else | |
7178 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7179 | fi | |
7180 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
7181 | ||
7182 | # Check to see that the pipe works correctly. | |
7183 | pipe_works=no | |
7184 | ||
7185 | rm -f conftest* | |
7186 | cat > conftest.$ac_ext <<_LT_EOF | |
7187 | #ifdef __cplusplus | |
7188 | extern "C" { | |
7189 | #endif | |
7190 | char nm_test_var; | |
7191 | void nm_test_func(void); | |
7192 | void nm_test_func(void){} | |
7193 | #ifdef __cplusplus | |
7194 | } | |
7195 | #endif | |
7196 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7197 | _LT_EOF | |
7198 | ||
7199 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7200 | (eval $ac_compile) 2>&5 | |
7201 | ac_status=$? | |
7202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7203 | test $ac_status = 0; }; then | |
7204 | # Now try to grab the symbols. | |
7205 | nlist=conftest.nm | |
7206 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7207 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7208 | ac_status=$? | |
7209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7210 | test $ac_status = 0; } && test -s "$nlist"; then | |
7211 | # Try sorting and uniquifying the output. | |
7212 | if sort "$nlist" | uniq > "$nlist"T; then | |
7213 | mv -f "$nlist"T "$nlist" | |
7214 | else | |
7215 | rm -f "$nlist"T | |
7216 | fi | |
7217 | ||
7218 | # Make sure that we snagged all the symbols we need. | |
7219 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7220 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7221 | cat <<_LT_EOF > conftest.$ac_ext | |
7222 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7223 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7224 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7225 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7226 | # define LT_DLSYM_CONST | |
7227 | #elif defined(__osf__) | |
7228 | /* This system does not cope well with relocations in const data. */ | |
7229 | # define LT_DLSYM_CONST | |
7230 | #else | |
7231 | # define LT_DLSYM_CONST const | |
7232 | #endif | |
7233 | ||
7234 | #ifdef __cplusplus | |
7235 | extern "C" { | |
7236 | #endif | |
7237 | ||
7238 | _LT_EOF | |
7239 | # Now generate the symbol file. | |
7240 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7241 | ||
7242 | cat <<_LT_EOF >> conftest.$ac_ext | |
7243 | ||
7244 | /* The mapping between symbol names and symbols. */ | |
7245 | LT_DLSYM_CONST struct { | |
7246 | const char *name; | |
7247 | void *address; | |
7248 | } | |
7249 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7250 | { | |
7251 | { "@PROGRAM@", (void *) 0 }, | |
7252 | _LT_EOF | |
7253 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7254 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7255 | {0, (void *) 0} | |
7256 | }; | |
7257 | ||
7258 | /* This works around a problem in FreeBSD linker */ | |
7259 | #ifdef FREEBSD_WORKAROUND | |
7260 | static const void *lt_preloaded_setup() { | |
7261 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7262 | } | |
7263 | #endif | |
7264 | ||
7265 | #ifdef __cplusplus | |
7266 | } | |
7267 | #endif | |
7268 | _LT_EOF | |
7269 | # Now try linking the two files. | |
7270 | mv conftest.$ac_objext conftstm.$ac_objext | |
7271 | lt_globsym_save_LIBS=$LIBS | |
7272 | lt_globsym_save_CFLAGS=$CFLAGS | |
7273 | LIBS="conftstm.$ac_objext" | |
7274 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7275 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7276 | (eval $ac_link) 2>&5 | |
7277 | ac_status=$? | |
7278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7279 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7280 | pipe_works=yes | |
7281 | fi | |
7282 | LIBS=$lt_globsym_save_LIBS | |
7283 | CFLAGS=$lt_globsym_save_CFLAGS | |
7284 | else | |
7285 | echo "cannot find nm_test_func in $nlist" >&5 | |
7286 | fi | |
7287 | else | |
7288 | echo "cannot find nm_test_var in $nlist" >&5 | |
7289 | fi | |
7290 | else | |
7291 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7292 | fi | |
7293 | else | |
7294 | echo "$progname: failed program was:" >&5 | |
7295 | cat conftest.$ac_ext >&5 | |
7296 | fi | |
7297 | rm -rf conftest* conftst* | |
7298 | ||
7299 | # Do not use the global_symbol_pipe unless it works. | |
7300 | if test "$pipe_works" = yes; then | |
7301 | break | |
7302 | else | |
7303 | lt_cv_sys_global_symbol_pipe= | |
7304 | fi | |
7305 | done | |
7306 | ||
7307 | fi | |
7308 | ||
7309 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7310 | lt_cv_sys_global_symbol_to_cdecl= | |
7311 | fi | |
7312 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7314 | $as_echo "failed" >&6; } | |
7315 | else | |
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7317 | $as_echo "ok" >&6; } | |
7318 | fi | |
7319 | ||
7320 | # Response file support. | |
7321 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7322 | nm_file_list_spec='@' | |
7323 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7324 | nm_file_list_spec='@' | |
7325 | fi | |
7326 | ||
7327 | ||
7328 | ||
7329 | ||
7330 | ||
7331 | ||
7332 | ||
7333 | ||
7334 | ||
7335 | ||
7336 | ||
7337 | ||
7338 | ||
7339 | ||
7340 | ||
7341 | ||
7342 | ||
7343 | ||
7344 | ||
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | ||
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7354 | $as_echo_n "checking for sysroot... " >&6; } | |
7355 | ||
7356 | # Check whether --with-sysroot was given. | |
7357 | if test "${with_sysroot+set}" = set; then : | |
7358 | withval=$with_sysroot; | |
7359 | else | |
7360 | with_sysroot=no | |
7361 | fi | |
7362 | ||
7363 | ||
7364 | lt_sysroot= | |
7365 | case ${with_sysroot} in #( | |
7366 | yes) | |
7367 | if test "$GCC" = yes; then | |
7368 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7369 | fi | |
7370 | ;; #( | |
7371 | /*) | |
7372 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7373 | ;; #( | |
7374 | no|'') | |
7375 | ;; #( | |
7376 | *) | |
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7378 | $as_echo "${with_sysroot}" >&6; } | |
7379 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7380 | ;; | |
7381 | esac | |
7382 | ||
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7384 | $as_echo "${lt_sysroot:-no}" >&6; } | |
7385 | ||
7386 | ||
7387 | ||
7388 | ||
7389 | ||
7390 | # Check whether --enable-libtool-lock was given. | |
7391 | if test "${enable_libtool_lock+set}" = set; then : | |
7392 | enableval=$enable_libtool_lock; | |
7393 | fi | |
7394 | ||
7395 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7396 | ||
7397 | # Some flags need to be propagated to the compiler or linker for good | |
7398 | # libtool support. | |
7399 | case $host in | |
7400 | ia64-*-hpux*) | |
7401 | # Find out which ABI we are using. | |
7402 | echo 'int i;' > conftest.$ac_ext | |
7403 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7404 | (eval $ac_compile) 2>&5 | |
7405 | ac_status=$? | |
7406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7407 | test $ac_status = 0; }; then | |
7408 | case `/usr/bin/file conftest.$ac_objext` in | |
7409 | *ELF-32*) | |
7410 | HPUX_IA64_MODE="32" | |
7411 | ;; | |
7412 | *ELF-64*) | |
7413 | HPUX_IA64_MODE="64" | |
7414 | ;; | |
7415 | esac | |
7416 | fi | |
7417 | rm -rf conftest* | |
7418 | ;; | |
7419 | *-*-irix6*) | |
7420 | # Find out which ABI we are using. | |
7421 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7422 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7423 | (eval $ac_compile) 2>&5 | |
7424 | ac_status=$? | |
7425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7426 | test $ac_status = 0; }; then | |
7427 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7428 | case `/usr/bin/file conftest.$ac_objext` in | |
7429 | *32-bit*) | |
7430 | LD="${LD-ld} -melf32bsmip" | |
7431 | ;; | |
7432 | *N32*) | |
7433 | LD="${LD-ld} -melf32bmipn32" | |
7434 | ;; | |
7435 | *64-bit*) | |
7436 | LD="${LD-ld} -melf64bmip" | |
7437 | ;; | |
7438 | esac | |
7439 | else | |
7440 | case `/usr/bin/file conftest.$ac_objext` in | |
7441 | *32-bit*) | |
7442 | LD="${LD-ld} -32" | |
7443 | ;; | |
7444 | *N32*) | |
7445 | LD="${LD-ld} -n32" | |
7446 | ;; | |
7447 | *64-bit*) | |
7448 | LD="${LD-ld} -64" | |
7449 | ;; | |
7450 | esac | |
7451 | fi | |
7452 | fi | |
7453 | rm -rf conftest* | |
7454 | ;; | |
7455 | ||
7456 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7457 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7458 | # Find out which ABI we are using. | |
7459 | echo 'int i;' > conftest.$ac_ext | |
7460 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7461 | (eval $ac_compile) 2>&5 | |
7462 | ac_status=$? | |
7463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7464 | test $ac_status = 0; }; then | |
7465 | case `/usr/bin/file conftest.o` in | |
7466 | *32-bit*) | |
7467 | case $host in | |
7468 | x86_64-*kfreebsd*-gnu) | |
7469 | LD="${LD-ld} -m elf_i386_fbsd" | |
7470 | ;; | |
7471 | x86_64-*linux*) | |
7472 | case `/usr/bin/file conftest.o` in | |
7473 | *x86-64*) | |
7474 | LD="${LD-ld} -m elf32_x86_64" | |
7475 | ;; | |
7476 | *) | |
7477 | LD="${LD-ld} -m elf_i386" | |
7478 | ;; | |
7479 | esac | |
7480 | ;; | |
7481 | powerpc64le-*) | |
7482 | LD="${LD-ld} -m elf32lppclinux" | |
7483 | ;; | |
7484 | powerpc64-*) | |
7485 | LD="${LD-ld} -m elf32ppclinux" | |
7486 | ;; | |
7487 | s390x-*linux*) | |
7488 | LD="${LD-ld} -m elf_s390" | |
7489 | ;; | |
7490 | sparc64-*linux*) | |
7491 | LD="${LD-ld} -m elf32_sparc" | |
7492 | ;; | |
7493 | esac | |
7494 | ;; | |
7495 | *64-bit*) | |
7496 | case $host in | |
7497 | x86_64-*kfreebsd*-gnu) | |
7498 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7499 | ;; | |
7500 | x86_64-*linux*) | |
7501 | LD="${LD-ld} -m elf_x86_64" | |
7502 | ;; | |
7503 | powerpcle-*) | |
7504 | LD="${LD-ld} -m elf64lppc" | |
7505 | ;; | |
7506 | powerpc-*) | |
7507 | LD="${LD-ld} -m elf64ppc" | |
7508 | ;; | |
7509 | s390*-*linux*|s390*-*tpf*) | |
7510 | LD="${LD-ld} -m elf64_s390" | |
7511 | ;; | |
7512 | sparc*-*linux*) | |
7513 | LD="${LD-ld} -m elf64_sparc" | |
7514 | ;; | |
7515 | esac | |
7516 | ;; | |
7517 | esac | |
7518 | fi | |
7519 | rm -rf conftest* | |
7520 | ;; | |
7521 | ||
7522 | *-*-sco3.2v5*) | |
7523 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7524 | SAVE_CFLAGS="$CFLAGS" | |
7525 | CFLAGS="$CFLAGS -belf" | |
7526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7527 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7528 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7529 | $as_echo_n "(cached) " >&6 | |
7530 | else | |
7531 | ac_ext=c | |
7532 | ac_cpp='$CPP $CPPFLAGS' | |
7533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7536 | ||
7537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7538 | /* end confdefs.h. */ | |
7539 | ||
7540 | int | |
7541 | main () | |
7542 | { | |
7543 | ||
7544 | ; | |
7545 | return 0; | |
7546 | } | |
7547 | _ACEOF | |
7548 | if ac_fn_c_try_link "$LINENO"; then : | |
7549 | lt_cv_cc_needs_belf=yes | |
7550 | else | |
7551 | lt_cv_cc_needs_belf=no | |
7552 | fi | |
7553 | rm -f core conftest.err conftest.$ac_objext \ | |
7554 | conftest$ac_exeext conftest.$ac_ext | |
7555 | ac_ext=c | |
7556 | ac_cpp='$CPP $CPPFLAGS' | |
7557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7560 | ||
7561 | fi | |
7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7563 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7564 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7565 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7566 | CFLAGS="$SAVE_CFLAGS" | |
7567 | fi | |
7568 | ;; | |
7569 | *-*solaris*) | |
7570 | # Find out which ABI we are using. | |
7571 | echo 'int i;' > conftest.$ac_ext | |
7572 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7573 | (eval $ac_compile) 2>&5 | |
7574 | ac_status=$? | |
7575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7576 | test $ac_status = 0; }; then | |
7577 | case `/usr/bin/file conftest.o` in | |
7578 | *64-bit*) | |
7579 | case $lt_cv_prog_gnu_ld in | |
7580 | yes*) | |
7581 | case $host in | |
7582 | i?86-*-solaris*) | |
7583 | LD="${LD-ld} -m elf_x86_64" | |
7584 | ;; | |
7585 | sparc*-*-solaris*) | |
7586 | LD="${LD-ld} -m elf64_sparc" | |
7587 | ;; | |
7588 | esac | |
7589 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7590 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7591 | LD="${LD-ld}_sol2" | |
7592 | fi | |
7593 | ;; | |
7594 | *) | |
7595 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7596 | LD="${LD-ld} -64" | |
7597 | fi | |
7598 | ;; | |
7599 | esac | |
7600 | ;; | |
7601 | esac | |
7602 | fi | |
7603 | rm -rf conftest* | |
7604 | ;; | |
7605 | esac | |
7606 | ||
7607 | need_locks="$enable_libtool_lock" | |
7608 | ||
7609 | if test -n "$ac_tool_prefix"; then | |
7610 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7611 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7613 | $as_echo_n "checking for $ac_word... " >&6; } | |
7614 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7615 | $as_echo_n "(cached) " >&6 | |
7616 | else | |
7617 | if test -n "$MANIFEST_TOOL"; then | |
7618 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7619 | else | |
7620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7621 | for as_dir in $PATH | |
7622 | do | |
7623 | IFS=$as_save_IFS | |
7624 | test -z "$as_dir" && as_dir=. | |
7625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7627 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7629 | break 2 | |
7630 | fi | |
7631 | done | |
7632 | done | |
7633 | IFS=$as_save_IFS | |
7634 | ||
7635 | fi | |
7636 | fi | |
7637 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7638 | if test -n "$MANIFEST_TOOL"; then | |
7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7640 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7641 | else | |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7643 | $as_echo "no" >&6; } | |
7644 | fi | |
7645 | ||
7646 | ||
7647 | fi | |
7648 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7649 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7650 | # Extract the first word of "mt", so it can be a program name with args. | |
7651 | set dummy mt; ac_word=$2 | |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7653 | $as_echo_n "checking for $ac_word... " >&6; } | |
7654 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7655 | $as_echo_n "(cached) " >&6 | |
7656 | else | |
7657 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7658 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7659 | else | |
7660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7661 | for as_dir in $PATH | |
7662 | do | |
7663 | IFS=$as_save_IFS | |
7664 | test -z "$as_dir" && as_dir=. | |
7665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7666 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7667 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7669 | break 2 | |
7670 | fi | |
7671 | done | |
7672 | done | |
7673 | IFS=$as_save_IFS | |
7674 | ||
7675 | fi | |
7676 | fi | |
7677 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7678 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7680 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7681 | else | |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7683 | $as_echo "no" >&6; } | |
7684 | fi | |
7685 | ||
7686 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7687 | MANIFEST_TOOL=":" | |
7688 | else | |
7689 | case $cross_compiling:$ac_tool_warned in | |
7690 | yes:) | |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7692 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7693 | ac_tool_warned=yes ;; | |
7694 | esac | |
7695 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7696 | fi | |
7697 | else | |
7698 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7699 | fi | |
7700 | ||
7701 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7703 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7704 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7705 | $as_echo_n "(cached) " >&6 | |
7706 | else | |
7707 | lt_cv_path_mainfest_tool=no | |
7708 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7709 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7710 | cat conftest.err >&5 | |
7711 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7712 | lt_cv_path_mainfest_tool=yes | |
7713 | fi | |
7714 | rm -f conftest* | |
7715 | fi | |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7717 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7718 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7719 | MANIFEST_TOOL=: | |
7720 | fi | |
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | case $host_os in | |
7728 | rhapsody* | darwin*) | |
7729 | if test -n "$ac_tool_prefix"; then | |
7730 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7731 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7733 | $as_echo_n "checking for $ac_word... " >&6; } | |
7734 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7735 | $as_echo_n "(cached) " >&6 | |
7736 | else | |
7737 | if test -n "$DSYMUTIL"; then | |
7738 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7739 | else | |
7740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7741 | for as_dir in $PATH | |
7742 | do | |
7743 | IFS=$as_save_IFS | |
7744 | test -z "$as_dir" && as_dir=. | |
7745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7747 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7749 | break 2 | |
7750 | fi | |
7751 | done | |
7752 | done | |
7753 | IFS=$as_save_IFS | |
7754 | ||
7755 | fi | |
7756 | fi | |
7757 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7758 | if test -n "$DSYMUTIL"; then | |
7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7760 | $as_echo "$DSYMUTIL" >&6; } | |
7761 | else | |
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7763 | $as_echo "no" >&6; } | |
7764 | fi | |
7765 | ||
7766 | ||
7767 | fi | |
7768 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7769 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7770 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7771 | set dummy dsymutil; ac_word=$2 | |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7773 | $as_echo_n "checking for $ac_word... " >&6; } | |
7774 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7775 | $as_echo_n "(cached) " >&6 | |
7776 | else | |
7777 | if test -n "$ac_ct_DSYMUTIL"; then | |
7778 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7779 | else | |
7780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7781 | for as_dir in $PATH | |
7782 | do | |
7783 | IFS=$as_save_IFS | |
7784 | test -z "$as_dir" && as_dir=. | |
7785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7787 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7789 | break 2 | |
7790 | fi | |
7791 | done | |
7792 | done | |
7793 | IFS=$as_save_IFS | |
7794 | ||
7795 | fi | |
7796 | fi | |
7797 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7798 | if test -n "$ac_ct_DSYMUTIL"; then | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7800 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7801 | else | |
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7803 | $as_echo "no" >&6; } | |
7804 | fi | |
7805 | ||
7806 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7807 | DSYMUTIL=":" | |
7808 | else | |
7809 | case $cross_compiling:$ac_tool_warned in | |
7810 | yes:) | |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7812 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7813 | ac_tool_warned=yes ;; | |
7814 | esac | |
7815 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7816 | fi | |
7817 | else | |
7818 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7819 | fi | |
7820 | ||
7821 | if test -n "$ac_tool_prefix"; then | |
7822 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7823 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7825 | $as_echo_n "checking for $ac_word... " >&6; } | |
7826 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7827 | $as_echo_n "(cached) " >&6 | |
7828 | else | |
7829 | if test -n "$NMEDIT"; then | |
7830 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7831 | else | |
7832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7833 | for as_dir in $PATH | |
7834 | do | |
7835 | IFS=$as_save_IFS | |
7836 | test -z "$as_dir" && as_dir=. | |
7837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7838 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7839 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7841 | break 2 | |
7842 | fi | |
7843 | done | |
7844 | done | |
7845 | IFS=$as_save_IFS | |
7846 | ||
7847 | fi | |
7848 | fi | |
7849 | NMEDIT=$ac_cv_prog_NMEDIT | |
7850 | if test -n "$NMEDIT"; then | |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7852 | $as_echo "$NMEDIT" >&6; } | |
7853 | else | |
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7855 | $as_echo "no" >&6; } | |
7856 | fi | |
7857 | ||
7858 | ||
7859 | fi | |
7860 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7861 | ac_ct_NMEDIT=$NMEDIT | |
7862 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7863 | set dummy nmedit; ac_word=$2 | |
7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7865 | $as_echo_n "checking for $ac_word... " >&6; } | |
7866 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7867 | $as_echo_n "(cached) " >&6 | |
7868 | else | |
7869 | if test -n "$ac_ct_NMEDIT"; then | |
7870 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7871 | else | |
7872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7873 | for as_dir in $PATH | |
7874 | do | |
7875 | IFS=$as_save_IFS | |
7876 | test -z "$as_dir" && as_dir=. | |
7877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7879 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7881 | break 2 | |
7882 | fi | |
7883 | done | |
7884 | done | |
7885 | IFS=$as_save_IFS | |
7886 | ||
7887 | fi | |
7888 | fi | |
7889 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7890 | if test -n "$ac_ct_NMEDIT"; then | |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7892 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7893 | else | |
7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7895 | $as_echo "no" >&6; } | |
7896 | fi | |
7897 | ||
7898 | if test "x$ac_ct_NMEDIT" = x; then | |
7899 | NMEDIT=":" | |
7900 | else | |
7901 | case $cross_compiling:$ac_tool_warned in | |
7902 | yes:) | |
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7905 | ac_tool_warned=yes ;; | |
7906 | esac | |
7907 | NMEDIT=$ac_ct_NMEDIT | |
7908 | fi | |
7909 | else | |
7910 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7911 | fi | |
7912 | ||
7913 | if test -n "$ac_tool_prefix"; then | |
7914 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7915 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7917 | $as_echo_n "checking for $ac_word... " >&6; } | |
7918 | if ${ac_cv_prog_LIPO+:} false; then : | |
7919 | $as_echo_n "(cached) " >&6 | |
7920 | else | |
7921 | if test -n "$LIPO"; then | |
7922 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7923 | else | |
7924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7925 | for as_dir in $PATH | |
7926 | do | |
7927 | IFS=$as_save_IFS | |
7928 | test -z "$as_dir" && as_dir=. | |
7929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7931 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7933 | break 2 | |
7934 | fi | |
7935 | done | |
7936 | done | |
7937 | IFS=$as_save_IFS | |
7938 | ||
7939 | fi | |
7940 | fi | |
7941 | LIPO=$ac_cv_prog_LIPO | |
7942 | if test -n "$LIPO"; then | |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7944 | $as_echo "$LIPO" >&6; } | |
7945 | else | |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7947 | $as_echo "no" >&6; } | |
7948 | fi | |
7949 | ||
7950 | ||
7951 | fi | |
7952 | if test -z "$ac_cv_prog_LIPO"; then | |
7953 | ac_ct_LIPO=$LIPO | |
7954 | # Extract the first word of "lipo", so it can be a program name with args. | |
7955 | set dummy lipo; ac_word=$2 | |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7957 | $as_echo_n "checking for $ac_word... " >&6; } | |
7958 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7959 | $as_echo_n "(cached) " >&6 | |
7960 | else | |
7961 | if test -n "$ac_ct_LIPO"; then | |
7962 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7963 | else | |
7964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7965 | for as_dir in $PATH | |
7966 | do | |
7967 | IFS=$as_save_IFS | |
7968 | test -z "$as_dir" && as_dir=. | |
7969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7971 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7973 | break 2 | |
7974 | fi | |
7975 | done | |
7976 | done | |
7977 | IFS=$as_save_IFS | |
7978 | ||
7979 | fi | |
7980 | fi | |
7981 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7982 | if test -n "$ac_ct_LIPO"; then | |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7984 | $as_echo "$ac_ct_LIPO" >&6; } | |
7985 | else | |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7987 | $as_echo "no" >&6; } | |
7988 | fi | |
7989 | ||
7990 | if test "x$ac_ct_LIPO" = x; then | |
7991 | LIPO=":" | |
7992 | else | |
7993 | case $cross_compiling:$ac_tool_warned in | |
7994 | yes:) | |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7996 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7997 | ac_tool_warned=yes ;; | |
7998 | esac | |
7999 | LIPO=$ac_ct_LIPO | |
8000 | fi | |
8001 | else | |
8002 | LIPO="$ac_cv_prog_LIPO" | |
8003 | fi | |
8004 | ||
8005 | if test -n "$ac_tool_prefix"; then | |
8006 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8007 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8009 | $as_echo_n "checking for $ac_word... " >&6; } | |
8010 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8011 | $as_echo_n "(cached) " >&6 | |
8012 | else | |
8013 | if test -n "$OTOOL"; then | |
8014 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8015 | else | |
8016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8017 | for as_dir in $PATH | |
8018 | do | |
8019 | IFS=$as_save_IFS | |
8020 | test -z "$as_dir" && as_dir=. | |
8021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8023 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8025 | break 2 | |
8026 | fi | |
8027 | done | |
8028 | done | |
8029 | IFS=$as_save_IFS | |
8030 | ||
8031 | fi | |
8032 | fi | |
8033 | OTOOL=$ac_cv_prog_OTOOL | |
8034 | if test -n "$OTOOL"; then | |
8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8036 | $as_echo "$OTOOL" >&6; } | |
8037 | else | |
8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8039 | $as_echo "no" >&6; } | |
8040 | fi | |
8041 | ||
8042 | ||
8043 | fi | |
8044 | if test -z "$ac_cv_prog_OTOOL"; then | |
8045 | ac_ct_OTOOL=$OTOOL | |
8046 | # Extract the first word of "otool", so it can be a program name with args. | |
8047 | set dummy otool; ac_word=$2 | |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8049 | $as_echo_n "checking for $ac_word... " >&6; } | |
8050 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8051 | $as_echo_n "(cached) " >&6 | |
8052 | else | |
8053 | if test -n "$ac_ct_OTOOL"; then | |
8054 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8055 | else | |
8056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8057 | for as_dir in $PATH | |
8058 | do | |
8059 | IFS=$as_save_IFS | |
8060 | test -z "$as_dir" && as_dir=. | |
8061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8063 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8065 | break 2 | |
8066 | fi | |
8067 | done | |
8068 | done | |
8069 | IFS=$as_save_IFS | |
8070 | ||
8071 | fi | |
8072 | fi | |
8073 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8074 | if test -n "$ac_ct_OTOOL"; then | |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8076 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8077 | else | |
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8079 | $as_echo "no" >&6; } | |
8080 | fi | |
8081 | ||
8082 | if test "x$ac_ct_OTOOL" = x; then | |
8083 | OTOOL=":" | |
8084 | else | |
8085 | case $cross_compiling:$ac_tool_warned in | |
8086 | yes:) | |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8088 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8089 | ac_tool_warned=yes ;; | |
8090 | esac | |
8091 | OTOOL=$ac_ct_OTOOL | |
8092 | fi | |
8093 | else | |
8094 | OTOOL="$ac_cv_prog_OTOOL" | |
8095 | fi | |
8096 | ||
8097 | if test -n "$ac_tool_prefix"; then | |
8098 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8099 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8101 | $as_echo_n "checking for $ac_word... " >&6; } | |
8102 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8103 | $as_echo_n "(cached) " >&6 | |
8104 | else | |
8105 | if test -n "$OTOOL64"; then | |
8106 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8107 | else | |
8108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8109 | for as_dir in $PATH | |
8110 | do | |
8111 | IFS=$as_save_IFS | |
8112 | test -z "$as_dir" && as_dir=. | |
8113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8115 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8117 | break 2 | |
8118 | fi | |
8119 | done | |
8120 | done | |
8121 | IFS=$as_save_IFS | |
8122 | ||
8123 | fi | |
8124 | fi | |
8125 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8126 | if test -n "$OTOOL64"; then | |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8128 | $as_echo "$OTOOL64" >&6; } | |
8129 | else | |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8131 | $as_echo "no" >&6; } | |
8132 | fi | |
8133 | ||
8134 | ||
8135 | fi | |
8136 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8137 | ac_ct_OTOOL64=$OTOOL64 | |
8138 | # Extract the first word of "otool64", so it can be a program name with args. | |
8139 | set dummy otool64; ac_word=$2 | |
8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8141 | $as_echo_n "checking for $ac_word... " >&6; } | |
8142 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8143 | $as_echo_n "(cached) " >&6 | |
8144 | else | |
8145 | if test -n "$ac_ct_OTOOL64"; then | |
8146 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8147 | else | |
8148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8149 | for as_dir in $PATH | |
8150 | do | |
8151 | IFS=$as_save_IFS | |
8152 | test -z "$as_dir" && as_dir=. | |
8153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8155 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8157 | break 2 | |
8158 | fi | |
8159 | done | |
8160 | done | |
8161 | IFS=$as_save_IFS | |
8162 | ||
8163 | fi | |
8164 | fi | |
8165 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8166 | if test -n "$ac_ct_OTOOL64"; then | |
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8168 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8169 | else | |
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8171 | $as_echo "no" >&6; } | |
8172 | fi | |
8173 | ||
8174 | if test "x$ac_ct_OTOOL64" = x; then | |
8175 | OTOOL64=":" | |
8176 | else | |
8177 | case $cross_compiling:$ac_tool_warned in | |
8178 | yes:) | |
8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8180 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8181 | ac_tool_warned=yes ;; | |
8182 | esac | |
8183 | OTOOL64=$ac_ct_OTOOL64 | |
8184 | fi | |
8185 | else | |
8186 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8187 | fi | |
8188 | ||
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
8196 | ||
8197 | ||
8198 | ||
8199 | ||
8200 | ||
8201 | ||
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | ||
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | ||
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8216 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8217 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8218 | $as_echo_n "(cached) " >&6 | |
8219 | else | |
8220 | lt_cv_apple_cc_single_mod=no | |
8221 | if test -z "${LT_MULTI_MODULE}"; then | |
8222 | # By default we will add the -single_module flag. You can override | |
8223 | # by either setting the environment variable LT_MULTI_MODULE | |
8224 | # non-empty at configure time, or by adding -multi_module to the | |
8225 | # link flags. | |
8226 | rm -rf libconftest.dylib* | |
8227 | echo "int foo(void){return 1;}" > conftest.c | |
8228 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8229 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8230 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8231 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8232 | _lt_result=$? | |
8233 | # If there is a non-empty error log, and "single_module" | |
8234 | # appears in it, assume the flag caused a linker warning | |
8235 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8236 | cat conftest.err >&5 | |
8237 | # Otherwise, if the output was created with a 0 exit code from | |
8238 | # the compiler, it worked. | |
8239 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8240 | lt_cv_apple_cc_single_mod=yes | |
8241 | else | |
8242 | cat conftest.err >&5 | |
8243 | fi | |
8244 | rm -rf libconftest.dylib* | |
8245 | rm -f conftest.* | |
8246 | fi | |
8247 | fi | |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8249 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8250 | ||
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8252 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8253 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8254 | $as_echo_n "(cached) " >&6 | |
8255 | else | |
8256 | lt_cv_ld_exported_symbols_list=no | |
8257 | save_LDFLAGS=$LDFLAGS | |
8258 | echo "_main" > conftest.sym | |
8259 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8261 | /* end confdefs.h. */ | |
8262 | ||
8263 | int | |
8264 | main () | |
8265 | { | |
8266 | ||
8267 | ; | |
8268 | return 0; | |
8269 | } | |
8270 | _ACEOF | |
8271 | if ac_fn_c_try_link "$LINENO"; then : | |
8272 | lt_cv_ld_exported_symbols_list=yes | |
8273 | else | |
8274 | lt_cv_ld_exported_symbols_list=no | |
8275 | fi | |
8276 | rm -f core conftest.err conftest.$ac_objext \ | |
8277 | conftest$ac_exeext conftest.$ac_ext | |
8278 | LDFLAGS="$save_LDFLAGS" | |
8279 | ||
8280 | fi | |
8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8282 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8283 | ||
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8285 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8286 | if ${lt_cv_ld_force_load+:} false; then : | |
8287 | $as_echo_n "(cached) " >&6 | |
8288 | else | |
8289 | lt_cv_ld_force_load=no | |
8290 | cat > conftest.c << _LT_EOF | |
8291 | int forced_loaded() { return 2;} | |
8292 | _LT_EOF | |
8293 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8294 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8295 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8296 | $AR cru libconftest.a conftest.o 2>&5 | |
8297 | echo "$RANLIB libconftest.a" >&5 | |
8298 | $RANLIB libconftest.a 2>&5 | |
8299 | cat > conftest.c << _LT_EOF | |
8300 | int main() { return 0;} | |
8301 | _LT_EOF | |
8302 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8303 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8304 | _lt_result=$? | |
8305 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8306 | cat conftest.err >&5 | |
8307 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8308 | lt_cv_ld_force_load=yes | |
8309 | else | |
8310 | cat conftest.err >&5 | |
8311 | fi | |
8312 | rm -f conftest.err libconftest.a conftest conftest.c | |
8313 | rm -rf conftest.dSYM | |
8314 | ||
8315 | fi | |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8317 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8318 | case $host_os in | |
8319 | rhapsody* | darwin1.[012]) | |
8320 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8321 | darwin1.*) | |
8322 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8323 | darwin*) # darwin 5.x on | |
8324 | # if running on 10.5 or later, the deployment target defaults | |
8325 | # to the OS version, if on x86, and 10.4, the deployment | |
8326 | # target defaults to 10.4. Don't you love it? | |
8327 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8328 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8329 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8330 | 10.[012]*) | |
8331 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8332 | 10.*) | |
8333 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8334 | esac | |
8335 | ;; | |
8336 | esac | |
8337 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8338 | _lt_dar_single_mod='$single_module' | |
8339 | fi | |
8340 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8341 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8342 | else | |
8343 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8344 | fi | |
8345 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8346 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8347 | else | |
8348 | _lt_dsymutil= | |
8349 | fi | |
8350 | ;; | |
8351 | esac | |
8352 | ||
8353 | for ac_header in dlfcn.h | |
8354 | do : | |
8355 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8356 | " | |
8357 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8358 | cat >>confdefs.h <<_ACEOF | |
8359 | #define HAVE_DLFCN_H 1 | |
8360 | _ACEOF | |
8361 | ||
8362 | fi | |
8363 | ||
8364 | done | |
8365 | ||
8366 | ||
8367 | ||
8368 | ||
8369 | ||
8370 | # Set options | |
8371 | enable_dlopen=yes | |
8372 | # Check whether --enable-static was given. | |
8373 | if test "${enable_static+set}" = set; then : | |
8374 | enableval=$enable_static; p=${PACKAGE-default} | |
8375 | case $enableval in | |
8376 | yes) enable_static=yes ;; | |
8377 | no) enable_static=no ;; | |
8378 | *) | |
8379 | enable_static=no | |
8380 | # Look at the argument we got. We use all the common list separators. | |
8381 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8382 | for pkg in $enableval; do | |
8383 | IFS="$lt_save_ifs" | |
8384 | if test "X$pkg" = "X$p"; then | |
8385 | enable_static=yes | |
8386 | fi | |
8387 | done | |
8388 | IFS="$lt_save_ifs" | |
8389 | ;; | |
8390 | esac | |
8391 | else | |
8392 | enable_static=no | |
8393 | fi | |
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | enable_win32_dll=no | |
8406 | ||
8407 | ||
8408 | # Check whether --enable-shared was given. | |
8409 | if test "${enable_shared+set}" = set; then : | |
8410 | enableval=$enable_shared; p=${PACKAGE-default} | |
8411 | case $enableval in | |
8412 | yes) enable_shared=yes ;; | |
8413 | no) enable_shared=no ;; | |
8414 | *) | |
8415 | enable_shared=no | |
8416 | # Look at the argument we got. We use all the common list separators. | |
8417 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8418 | for pkg in $enableval; do | |
8419 | IFS="$lt_save_ifs" | |
8420 | if test "X$pkg" = "X$p"; then | |
8421 | enable_shared=yes | |
8422 | fi | |
8423 | done | |
8424 | IFS="$lt_save_ifs" | |
8425 | ;; | |
8426 | esac | |
8427 | else | |
8428 | enable_shared=yes | |
8429 | fi | |
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | # Check whether --with-pic was given. | |
8442 | if test "${with_pic+set}" = set; then : | |
8443 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8444 | case $withval in | |
8445 | yes|no) pic_mode=$withval ;; | |
8446 | *) | |
8447 | pic_mode=default | |
8448 | # Look at the argument we got. We use all the common list separators. | |
8449 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8450 | for lt_pkg in $withval; do | |
8451 | IFS="$lt_save_ifs" | |
8452 | if test "X$lt_pkg" = "X$lt_p"; then | |
8453 | pic_mode=yes | |
8454 | fi | |
8455 | done | |
8456 | IFS="$lt_save_ifs" | |
8457 | ;; | |
8458 | esac | |
8459 | else | |
8460 | pic_mode=default | |
8461 | fi | |
8462 | ||
8463 | ||
8464 | test -z "$pic_mode" && pic_mode=default | |
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | # Check whether --enable-fast-install was given. | |
8473 | if test "${enable_fast_install+set}" = set; then : | |
8474 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8475 | case $enableval in | |
8476 | yes) enable_fast_install=yes ;; | |
8477 | no) enable_fast_install=no ;; | |
8478 | *) | |
8479 | enable_fast_install=no | |
8480 | # Look at the argument we got. We use all the common list separators. | |
8481 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8482 | for pkg in $enableval; do | |
8483 | IFS="$lt_save_ifs" | |
8484 | if test "X$pkg" = "X$p"; then | |
8485 | enable_fast_install=yes | |
8486 | fi | |
8487 | done | |
8488 | IFS="$lt_save_ifs" | |
8489 | ;; | |
8490 | esac | |
8491 | else | |
8492 | enable_fast_install=yes | |
8493 | fi | |
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | # This can be used to rebuild libtool when needed | |
8506 | LIBTOOL_DEPS="$ltmain" | |
8507 | ||
8508 | # Always use our own libtool. | |
8509 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | test -z "$LN_S" && LN_S="ln -s" | |
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | if test -n "${ZSH_VERSION+set}" ; then | |
8556 | setopt NO_GLOB_SUBST | |
8557 | fi | |
8558 | ||
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8560 | $as_echo_n "checking for objdir... " >&6; } | |
8561 | if ${lt_cv_objdir+:} false; then : | |
8562 | $as_echo_n "(cached) " >&6 | |
8563 | else | |
8564 | rm -f .libs 2>/dev/null | |
8565 | mkdir .libs 2>/dev/null | |
8566 | if test -d .libs; then | |
8567 | lt_cv_objdir=.libs | |
8568 | else | |
8569 | # MS-DOS does not allow filenames that begin with a dot. | |
8570 | lt_cv_objdir=_libs | |
8571 | fi | |
8572 | rmdir .libs 2>/dev/null | |
8573 | fi | |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8575 | $as_echo "$lt_cv_objdir" >&6; } | |
8576 | objdir=$lt_cv_objdir | |
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | cat >>confdefs.h <<_ACEOF | |
8583 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8584 | _ACEOF | |
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | case $host_os in | |
8590 | aix3*) | |
8591 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8592 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8593 | # vanish in a puff of smoke. | |
8594 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8595 | COLLECT_NAMES= | |
8596 | export COLLECT_NAMES | |
8597 | fi | |
8598 | ;; | |
8599 | esac | |
8600 | ||
8601 | # Global variables: | |
8602 | ofile=libtool | |
8603 | can_build_shared=yes | |
8604 | ||
8605 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8606 | # which needs '.lib'). | |
8607 | libext=a | |
8608 | ||
8609 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8610 | ||
8611 | old_CC="$CC" | |
8612 | old_CFLAGS="$CFLAGS" | |
8613 | ||
8614 | # Set sane defaults for various variables | |
8615 | test -z "$CC" && CC=cc | |
8616 | test -z "$LTCC" && LTCC=$CC | |
8617 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8618 | test -z "$LD" && LD=ld | |
8619 | test -z "$ac_objext" && ac_objext=o | |
8620 | ||
8621 | for cc_temp in $compiler""; do | |
8622 | case $cc_temp in | |
8623 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8624 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8625 | \-*) ;; | |
8626 | *) break;; | |
8627 | esac | |
8628 | done | |
8629 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8630 | ||
8631 | ||
8632 | # Only perform the check for file, if the check method requires it | |
8633 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8634 | case $deplibs_check_method in | |
8635 | file_magic*) | |
8636 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8638 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8639 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8640 | $as_echo_n "(cached) " >&6 | |
8641 | else | |
8642 | case $MAGIC_CMD in | |
8643 | [\\/*] | ?:[\\/]*) | |
8644 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8645 | ;; | |
8646 | *) | |
8647 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8648 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8649 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8650 | for ac_dir in $ac_dummy; do | |
8651 | IFS="$lt_save_ifs" | |
8652 | test -z "$ac_dir" && ac_dir=. | |
8653 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8654 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8655 | if test -n "$file_magic_test_file"; then | |
8656 | case $deplibs_check_method in | |
8657 | "file_magic "*) | |
8658 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8659 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8660 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8661 | $EGREP "$file_magic_regex" > /dev/null; then | |
8662 | : | |
8663 | else | |
8664 | cat <<_LT_EOF 1>&2 | |
8665 | ||
8666 | *** Warning: the command libtool uses to detect shared libraries, | |
8667 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8668 | *** The result is that libtool may fail to recognize shared libraries | |
8669 | *** as such. This will affect the creation of libtool libraries that | |
8670 | *** depend on shared libraries, but programs linked with such libtool | |
8671 | *** libraries will work regardless of this problem. Nevertheless, you | |
8672 | *** may want to report the problem to your system manager and/or to | |
8673 | *** bug-libtool@gnu.org | |
8674 | ||
8675 | _LT_EOF | |
8676 | fi ;; | |
8677 | esac | |
8678 | fi | |
8679 | break | |
8680 | fi | |
8681 | done | |
8682 | IFS="$lt_save_ifs" | |
8683 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8684 | ;; | |
8685 | esac | |
8686 | fi | |
8687 | ||
8688 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8689 | if test -n "$MAGIC_CMD"; then | |
8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8691 | $as_echo "$MAGIC_CMD" >&6; } | |
8692 | else | |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8694 | $as_echo "no" >&6; } | |
8695 | fi | |
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8702 | if test -n "$ac_tool_prefix"; then | |
8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8704 | $as_echo_n "checking for file... " >&6; } | |
8705 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8706 | $as_echo_n "(cached) " >&6 | |
8707 | else | |
8708 | case $MAGIC_CMD in | |
8709 | [\\/*] | ?:[\\/]*) | |
8710 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8711 | ;; | |
8712 | *) | |
8713 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8714 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8715 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8716 | for ac_dir in $ac_dummy; do | |
8717 | IFS="$lt_save_ifs" | |
8718 | test -z "$ac_dir" && ac_dir=. | |
8719 | if test -f $ac_dir/file; then | |
8720 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8721 | if test -n "$file_magic_test_file"; then | |
8722 | case $deplibs_check_method in | |
8723 | "file_magic "*) | |
8724 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8725 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8726 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8727 | $EGREP "$file_magic_regex" > /dev/null; then | |
8728 | : | |
8729 | else | |
8730 | cat <<_LT_EOF 1>&2 | |
8731 | ||
8732 | *** Warning: the command libtool uses to detect shared libraries, | |
8733 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8734 | *** The result is that libtool may fail to recognize shared libraries | |
8735 | *** as such. This will affect the creation of libtool libraries that | |
8736 | *** depend on shared libraries, but programs linked with such libtool | |
8737 | *** libraries will work regardless of this problem. Nevertheless, you | |
8738 | *** may want to report the problem to your system manager and/or to | |
8739 | *** bug-libtool@gnu.org | |
8740 | ||
8741 | _LT_EOF | |
8742 | fi ;; | |
8743 | esac | |
8744 | fi | |
8745 | break | |
8746 | fi | |
8747 | done | |
8748 | IFS="$lt_save_ifs" | |
8749 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8750 | ;; | |
8751 | esac | |
8752 | fi | |
8753 | ||
8754 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8755 | if test -n "$MAGIC_CMD"; then | |
8756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8757 | $as_echo "$MAGIC_CMD" >&6; } | |
8758 | else | |
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8760 | $as_echo "no" >&6; } | |
8761 | fi | |
8762 | ||
8763 | ||
8764 | else | |
8765 | MAGIC_CMD=: | |
8766 | fi | |
8767 | fi | |
8768 | ||
8769 | fi | |
8770 | ;; | |
8771 | esac | |
8772 | ||
8773 | # Use C for the default configuration in the libtool script | |
8774 | ||
8775 | lt_save_CC="$CC" | |
8776 | ac_ext=c | |
8777 | ac_cpp='$CPP $CPPFLAGS' | |
8778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8781 | ||
8782 | ||
8783 | # Source file extension for C test sources. | |
8784 | ac_ext=c | |
8785 | ||
8786 | # Object file extension for compiled C test sources. | |
8787 | objext=o | |
8788 | objext=$objext | |
8789 | ||
8790 | # Code to be used in simple compile tests | |
8791 | lt_simple_compile_test_code="int some_variable = 0;" | |
8792 | ||
8793 | # Code to be used in simple link tests | |
8794 | lt_simple_link_test_code='int main(){return(0);}' | |
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | ||
8800 | ||
8801 | ||
8802 | # If no C compiler was specified, use CC. | |
8803 | LTCC=${LTCC-"$CC"} | |
8804 | ||
8805 | # If no C compiler flags were specified, use CFLAGS. | |
8806 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8807 | ||
8808 | # Allow CC to be a program name with arguments. | |
8809 | compiler=$CC | |
8810 | ||
8811 | # Save the default compiler, since it gets overwritten when the other | |
8812 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8813 | compiler_DEFAULT=$CC | |
8814 | ||
8815 | # save warnings/boilerplate of simple test code | |
8816 | ac_outfile=conftest.$ac_objext | |
8817 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8818 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8819 | _lt_compiler_boilerplate=`cat conftest.err` | |
8820 | $RM conftest* | |
8821 | ||
8822 | ac_outfile=conftest.$ac_objext | |
8823 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8824 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8825 | _lt_linker_boilerplate=`cat conftest.err` | |
8826 | $RM -r conftest* | |
8827 | ||
8828 | ||
8829 | ## CAVEAT EMPTOR: | |
8830 | ## There is no encapsulation within the following macros, do not change | |
8831 | ## the running order or otherwise move them around unless you know exactly | |
8832 | ## what you are doing... | |
8833 | if test -n "$compiler"; then | |
8834 | ||
8835 | lt_prog_compiler_no_builtin_flag= | |
8836 | ||
8837 | if test "$GCC" = yes; then | |
8838 | case $cc_basename in | |
8839 | nvcc*) | |
8840 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8841 | *) | |
8842 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8843 | esac | |
8844 | ||
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8846 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8847 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8848 | $as_echo_n "(cached) " >&6 | |
8849 | else | |
8850 | lt_cv_prog_compiler_rtti_exceptions=no | |
8851 | ac_outfile=conftest.$ac_objext | |
8852 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8853 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8854 | # Insert the option either (1) after the last *FLAGS variable, or | |
8855 | # (2) before a word containing "conftest.", or (3) at the end. | |
8856 | # Note that $ac_compile itself does not contain backslashes and begins | |
8857 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8858 | # The option is referenced via a variable to avoid confusing sed. | |
8859 | lt_compile=`echo "$ac_compile" | $SED \ | |
8860 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8861 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8862 | -e 's:$: $lt_compiler_flag:'` | |
8863 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8864 | (eval "$lt_compile" 2>conftest.err) | |
8865 | ac_status=$? | |
8866 | cat conftest.err >&5 | |
8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8868 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8869 | # The compiler can only warn and ignore the option if not recognized | |
8870 | # So say no if there are warnings other than the usual output. | |
8871 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8872 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8873 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8874 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8875 | fi | |
8876 | fi | |
8877 | $RM conftest* | |
8878 | ||
8879 | fi | |
8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8881 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8882 | ||
8883 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8884 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8885 | else | |
8886 | : | |
8887 | fi | |
8888 | ||
8889 | fi | |
8890 | ||
8891 | ||
8892 | ||
8893 | ||
8894 | ||
8895 | ||
8896 | lt_prog_compiler_wl= | |
8897 | lt_prog_compiler_pic= | |
8898 | lt_prog_compiler_static= | |
8899 | ||
8900 | ||
8901 | if test "$GCC" = yes; then | |
8902 | lt_prog_compiler_wl='-Wl,' | |
8903 | lt_prog_compiler_static='-static' | |
8904 | ||
8905 | case $host_os in | |
8906 | aix*) | |
8907 | # All AIX code is PIC. | |
8908 | if test "$host_cpu" = ia64; then | |
8909 | # AIX 5 now supports IA64 processor | |
8910 | lt_prog_compiler_static='-Bstatic' | |
8911 | fi | |
8912 | ;; | |
8913 | ||
8914 | amigaos*) | |
8915 | case $host_cpu in | |
8916 | powerpc) | |
8917 | # see comment about AmigaOS4 .so support | |
8918 | lt_prog_compiler_pic='-fPIC' | |
8919 | ;; | |
8920 | m68k) | |
8921 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8922 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8923 | # like `-m68040'. | |
8924 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8925 | ;; | |
8926 | esac | |
8927 | ;; | |
8928 | ||
8929 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8930 | # PIC is the default for these OSes. | |
8931 | ;; | |
8932 | ||
8933 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8934 | # This hack is so that the source file can tell whether it is being | |
8935 | # built for inclusion in a dll (and should export symbols for example). | |
8936 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8937 | # (--disable-auto-import) libraries | |
8938 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8939 | ;; | |
8940 | ||
8941 | darwin* | rhapsody*) | |
8942 | # PIC is the default on this platform | |
8943 | # Common symbols not allowed in MH_DYLIB files | |
8944 | lt_prog_compiler_pic='-fno-common' | |
8945 | ;; | |
8946 | ||
8947 | haiku*) | |
8948 | # PIC is the default for Haiku. | |
8949 | # The "-static" flag exists, but is broken. | |
8950 | lt_prog_compiler_static= | |
8951 | ;; | |
8952 | ||
8953 | hpux*) | |
8954 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8955 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8956 | # sets the default TLS model and affects inlining. | |
8957 | case $host_cpu in | |
8958 | hppa*64*) | |
8959 | # +Z the default | |
8960 | ;; | |
8961 | *) | |
8962 | lt_prog_compiler_pic='-fPIC' | |
8963 | ;; | |
8964 | esac | |
8965 | ;; | |
8966 | ||
8967 | interix[3-9]*) | |
8968 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8969 | # Instead, we relocate shared libraries at runtime. | |
8970 | ;; | |
8971 | ||
8972 | msdosdjgpp*) | |
8973 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8974 | # on systems that don't support them. | |
8975 | lt_prog_compiler_can_build_shared=no | |
8976 | enable_shared=no | |
8977 | ;; | |
8978 | ||
8979 | *nto* | *qnx*) | |
8980 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8981 | # it will coredump. | |
8982 | lt_prog_compiler_pic='-fPIC -shared' | |
8983 | ;; | |
8984 | ||
8985 | sysv4*MP*) | |
8986 | if test -d /usr/nec; then | |
8987 | lt_prog_compiler_pic=-Kconform_pic | |
8988 | fi | |
8989 | ;; | |
8990 | ||
8991 | *) | |
8992 | lt_prog_compiler_pic='-fPIC' | |
8993 | ;; | |
8994 | esac | |
8995 | ||
8996 | case $cc_basename in | |
8997 | nvcc*) # Cuda Compiler Driver 2.2 | |
8998 | lt_prog_compiler_wl='-Xlinker ' | |
8999 | if test -n "$lt_prog_compiler_pic"; then | |
9000 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9001 | fi | |
9002 | ;; | |
9003 | esac | |
9004 | else | |
9005 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9006 | case $host_os in | |
9007 | aix*) | |
9008 | lt_prog_compiler_wl='-Wl,' | |
9009 | if test "$host_cpu" = ia64; then | |
9010 | # AIX 5 now supports IA64 processor | |
9011 | lt_prog_compiler_static='-Bstatic' | |
9012 | else | |
9013 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9014 | fi | |
9015 | ;; | |
9016 | ||
9017 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9018 | # This hack is so that the source file can tell whether it is being | |
9019 | # built for inclusion in a dll (and should export symbols for example). | |
9020 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9021 | ;; | |
9022 | ||
9023 | hpux9* | hpux10* | hpux11*) | |
9024 | lt_prog_compiler_wl='-Wl,' | |
9025 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9026 | # not for PA HP-UX. | |
9027 | case $host_cpu in | |
9028 | hppa*64*|ia64*) | |
9029 | # +Z the default | |
9030 | ;; | |
9031 | *) | |
9032 | lt_prog_compiler_pic='+Z' | |
9033 | ;; | |
9034 | esac | |
9035 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9036 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9037 | ;; | |
9038 | ||
9039 | irix5* | irix6* | nonstopux*) | |
9040 | lt_prog_compiler_wl='-Wl,' | |
9041 | # PIC (with -KPIC) is the default. | |
9042 | lt_prog_compiler_static='-non_shared' | |
9043 | ;; | |
9044 | ||
9045 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
9046 | case $cc_basename in | |
9047 | # old Intel for x86_64 which still supported -KPIC. | |
9048 | ecc*) | |
9049 | lt_prog_compiler_wl='-Wl,' | |
9050 | lt_prog_compiler_pic='-KPIC' | |
9051 | lt_prog_compiler_static='-static' | |
9052 | ;; | |
9053 | # icc used to be incompatible with GCC. | |
9054 | # ICC 10 doesn't accept -KPIC any more. | |
9055 | icc* | ifort*) | |
9056 | lt_prog_compiler_wl='-Wl,' | |
9057 | lt_prog_compiler_pic='-fPIC' | |
9058 | lt_prog_compiler_static='-static' | |
9059 | ;; | |
9060 | # Lahey Fortran 8.1. | |
9061 | lf95*) | |
9062 | lt_prog_compiler_wl='-Wl,' | |
9063 | lt_prog_compiler_pic='--shared' | |
9064 | lt_prog_compiler_static='--static' | |
9065 | ;; | |
9066 | nagfor*) | |
9067 | # NAG Fortran compiler | |
9068 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9069 | lt_prog_compiler_pic='-PIC' | |
9070 | lt_prog_compiler_static='-Bstatic' | |
9071 | ;; | |
9072 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9073 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9074 | # which looks to be a dead project) | |
9075 | lt_prog_compiler_wl='-Wl,' | |
9076 | lt_prog_compiler_pic='-fpic' | |
9077 | lt_prog_compiler_static='-Bstatic' | |
9078 | ;; | |
9079 | ccc*) | |
9080 | lt_prog_compiler_wl='-Wl,' | |
9081 | # All Alpha code is PIC. | |
9082 | lt_prog_compiler_static='-non_shared' | |
9083 | ;; | |
9084 | xl* | bgxl* | bgf* | mpixl*) | |
9085 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9086 | lt_prog_compiler_wl='-Wl,' | |
9087 | lt_prog_compiler_pic='-qpic' | |
9088 | lt_prog_compiler_static='-qstaticlink' | |
9089 | ;; | |
9090 | *) | |
9091 | case `$CC -V 2>&1 | sed 5q` in | |
9092 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9093 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9094 | lt_prog_compiler_pic='-KPIC' | |
9095 | lt_prog_compiler_static='-Bstatic' | |
9096 | lt_prog_compiler_wl='' | |
9097 | ;; | |
9098 | *Sun\ F* | *Sun*Fortran*) | |
9099 | lt_prog_compiler_pic='-KPIC' | |
9100 | lt_prog_compiler_static='-Bstatic' | |
9101 | lt_prog_compiler_wl='-Qoption ld ' | |
9102 | ;; | |
9103 | *Sun\ C*) | |
9104 | # Sun C 5.9 | |
9105 | lt_prog_compiler_pic='-KPIC' | |
9106 | lt_prog_compiler_static='-Bstatic' | |
9107 | lt_prog_compiler_wl='-Wl,' | |
9108 | ;; | |
9109 | *Intel*\ [CF]*Compiler*) | |
9110 | lt_prog_compiler_wl='-Wl,' | |
9111 | lt_prog_compiler_pic='-fPIC' | |
9112 | lt_prog_compiler_static='-static' | |
9113 | ;; | |
9114 | *Portland\ Group*) | |
9115 | lt_prog_compiler_wl='-Wl,' | |
9116 | lt_prog_compiler_pic='-fpic' | |
9117 | lt_prog_compiler_static='-Bstatic' | |
9118 | ;; | |
9119 | esac | |
9120 | ;; | |
9121 | esac | |
9122 | ;; | |
9123 | ||
9124 | newsos6) | |
9125 | lt_prog_compiler_pic='-KPIC' | |
9126 | lt_prog_compiler_static='-Bstatic' | |
9127 | ;; | |
9128 | ||
9129 | *nto* | *qnx*) | |
9130 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9131 | # it will coredump. | |
9132 | lt_prog_compiler_pic='-fPIC -shared' | |
9133 | ;; | |
9134 | ||
9135 | osf3* | osf4* | osf5*) | |
9136 | lt_prog_compiler_wl='-Wl,' | |
9137 | # All OSF/1 code is PIC. | |
9138 | lt_prog_compiler_static='-non_shared' | |
9139 | ;; | |
9140 | ||
9141 | rdos*) | |
9142 | lt_prog_compiler_static='-non_shared' | |
9143 | ;; | |
9144 | ||
9145 | solaris*) | |
9146 | lt_prog_compiler_pic='-KPIC' | |
9147 | lt_prog_compiler_static='-Bstatic' | |
9148 | case $cc_basename in | |
9149 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9150 | lt_prog_compiler_wl='-Qoption ld ';; | |
9151 | *) | |
9152 | lt_prog_compiler_wl='-Wl,';; | |
9153 | esac | |
9154 | ;; | |
9155 | ||
9156 | sunos4*) | |
9157 | lt_prog_compiler_wl='-Qoption ld ' | |
9158 | lt_prog_compiler_pic='-PIC' | |
9159 | lt_prog_compiler_static='-Bstatic' | |
9160 | ;; | |
9161 | ||
9162 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9163 | lt_prog_compiler_wl='-Wl,' | |
9164 | lt_prog_compiler_pic='-KPIC' | |
9165 | lt_prog_compiler_static='-Bstatic' | |
9166 | ;; | |
9167 | ||
9168 | sysv4*MP*) | |
9169 | if test -d /usr/nec ;then | |
9170 | lt_prog_compiler_pic='-Kconform_pic' | |
9171 | lt_prog_compiler_static='-Bstatic' | |
9172 | fi | |
9173 | ;; | |
9174 | ||
9175 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9176 | lt_prog_compiler_wl='-Wl,' | |
9177 | lt_prog_compiler_pic='-KPIC' | |
9178 | lt_prog_compiler_static='-Bstatic' | |
9179 | ;; | |
9180 | ||
9181 | unicos*) | |
9182 | lt_prog_compiler_wl='-Wl,' | |
9183 | lt_prog_compiler_can_build_shared=no | |
9184 | ;; | |
9185 | ||
9186 | uts4*) | |
9187 | lt_prog_compiler_pic='-pic' | |
9188 | lt_prog_compiler_static='-Bstatic' | |
9189 | ;; | |
9190 | ||
9191 | *) | |
9192 | lt_prog_compiler_can_build_shared=no | |
9193 | ;; | |
9194 | esac | |
9195 | fi | |
9196 | ||
9197 | case $host_os in | |
9198 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9199 | *djgpp*) | |
9200 | lt_prog_compiler_pic= | |
9201 | ;; | |
9202 | *) | |
9203 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9204 | ;; | |
9205 | esac | |
9206 | ||
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9208 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9209 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9210 | $as_echo_n "(cached) " >&6 | |
9211 | else | |
9212 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9213 | fi | |
9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9215 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9216 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9217 | ||
9218 | # | |
9219 | # Check to make sure the PIC flag actually works. | |
9220 | # | |
9221 | if test -n "$lt_prog_compiler_pic"; then | |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9223 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9224 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9225 | $as_echo_n "(cached) " >&6 | |
9226 | else | |
9227 | lt_cv_prog_compiler_pic_works=no | |
9228 | ac_outfile=conftest.$ac_objext | |
9229 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9230 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9231 | # Insert the option either (1) after the last *FLAGS variable, or | |
9232 | # (2) before a word containing "conftest.", or (3) at the end. | |
9233 | # Note that $ac_compile itself does not contain backslashes and begins | |
9234 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9235 | # The option is referenced via a variable to avoid confusing sed. | |
9236 | lt_compile=`echo "$ac_compile" | $SED \ | |
9237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9239 | -e 's:$: $lt_compiler_flag:'` | |
9240 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9241 | (eval "$lt_compile" 2>conftest.err) | |
9242 | ac_status=$? | |
9243 | cat conftest.err >&5 | |
9244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9245 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9246 | # The compiler can only warn and ignore the option if not recognized | |
9247 | # So say no if there are warnings other than the usual output. | |
9248 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9249 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9250 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9251 | lt_cv_prog_compiler_pic_works=yes | |
9252 | fi | |
9253 | fi | |
9254 | $RM conftest* | |
9255 | ||
9256 | fi | |
9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9258 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9259 | ||
9260 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9261 | case $lt_prog_compiler_pic in | |
9262 | "" | " "*) ;; | |
9263 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9264 | esac | |
9265 | else | |
9266 | lt_prog_compiler_pic= | |
9267 | lt_prog_compiler_can_build_shared=no | |
9268 | fi | |
9269 | ||
9270 | fi | |
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | # | |
9283 | # Check to make sure the static flag actually works. | |
9284 | # | |
9285 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9287 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9288 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9289 | $as_echo_n "(cached) " >&6 | |
9290 | else | |
9291 | lt_cv_prog_compiler_static_works=no | |
9292 | save_LDFLAGS="$LDFLAGS" | |
9293 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9294 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9295 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9296 | # The linker can only warn and ignore the option if not recognized | |
9297 | # So say no if there are warnings | |
9298 | if test -s conftest.err; then | |
9299 | # Append any errors to the config.log. | |
9300 | cat conftest.err 1>&5 | |
9301 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9302 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9303 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9304 | lt_cv_prog_compiler_static_works=yes | |
9305 | fi | |
9306 | else | |
9307 | lt_cv_prog_compiler_static_works=yes | |
9308 | fi | |
9309 | fi | |
9310 | $RM -r conftest* | |
9311 | LDFLAGS="$save_LDFLAGS" | |
9312 | ||
9313 | fi | |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9315 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9316 | ||
9317 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9318 | : | |
9319 | else | |
9320 | lt_prog_compiler_static= | |
9321 | fi | |
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9330 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9331 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9332 | $as_echo_n "(cached) " >&6 | |
9333 | else | |
9334 | lt_cv_prog_compiler_c_o=no | |
9335 | $RM -r conftest 2>/dev/null | |
9336 | mkdir conftest | |
9337 | cd conftest | |
9338 | mkdir out | |
9339 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9340 | ||
9341 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9342 | # Insert the option either (1) after the last *FLAGS variable, or | |
9343 | # (2) before a word containing "conftest.", or (3) at the end. | |
9344 | # Note that $ac_compile itself does not contain backslashes and begins | |
9345 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9346 | lt_compile=`echo "$ac_compile" | $SED \ | |
9347 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9348 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9349 | -e 's:$: $lt_compiler_flag:'` | |
9350 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9351 | (eval "$lt_compile" 2>out/conftest.err) | |
9352 | ac_status=$? | |
9353 | cat out/conftest.err >&5 | |
9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9355 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9356 | then | |
9357 | # The compiler can only warn and ignore the option if not recognized | |
9358 | # So say no if there are warnings | |
9359 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9360 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9361 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9362 | lt_cv_prog_compiler_c_o=yes | |
9363 | fi | |
9364 | fi | |
9365 | chmod u+w . 2>&5 | |
9366 | $RM conftest* | |
9367 | # SGI C++ compiler will create directory out/ii_files/ for | |
9368 | # template instantiation | |
9369 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9370 | $RM out/* && rmdir out | |
9371 | cd .. | |
9372 | $RM -r conftest | |
9373 | $RM conftest* | |
9374 | ||
9375 | fi | |
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9377 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9385 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9386 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9387 | $as_echo_n "(cached) " >&6 | |
9388 | else | |
9389 | lt_cv_prog_compiler_c_o=no | |
9390 | $RM -r conftest 2>/dev/null | |
9391 | mkdir conftest | |
9392 | cd conftest | |
9393 | mkdir out | |
9394 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9395 | ||
9396 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9397 | # Insert the option either (1) after the last *FLAGS variable, or | |
9398 | # (2) before a word containing "conftest.", or (3) at the end. | |
9399 | # Note that $ac_compile itself does not contain backslashes and begins | |
9400 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9401 | lt_compile=`echo "$ac_compile" | $SED \ | |
9402 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9403 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9404 | -e 's:$: $lt_compiler_flag:'` | |
9405 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9406 | (eval "$lt_compile" 2>out/conftest.err) | |
9407 | ac_status=$? | |
9408 | cat out/conftest.err >&5 | |
9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9410 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9411 | then | |
9412 | # The compiler can only warn and ignore the option if not recognized | |
9413 | # So say no if there are warnings | |
9414 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9415 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9416 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9417 | lt_cv_prog_compiler_c_o=yes | |
9418 | fi | |
9419 | fi | |
9420 | chmod u+w . 2>&5 | |
9421 | $RM conftest* | |
9422 | # SGI C++ compiler will create directory out/ii_files/ for | |
9423 | # template instantiation | |
9424 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9425 | $RM out/* && rmdir out | |
9426 | cd .. | |
9427 | $RM -r conftest | |
9428 | $RM conftest* | |
9429 | ||
9430 | fi | |
9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9432 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | hard_links="nottested" | |
9438 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9439 | # do not overwrite the value of need_locks provided by the user | |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9441 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9442 | hard_links=yes | |
9443 | $RM conftest* | |
9444 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9445 | touch conftest.a | |
9446 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9447 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9449 | $as_echo "$hard_links" >&6; } | |
9450 | if test "$hard_links" = no; then | |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9452 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9453 | need_locks=warn | |
9454 | fi | |
9455 | else | |
9456 | need_locks=no | |
9457 | fi | |
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9465 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9466 | ||
9467 | runpath_var= | |
9468 | allow_undefined_flag= | |
9469 | always_export_symbols=no | |
9470 | archive_cmds= | |
9471 | archive_expsym_cmds= | |
9472 | compiler_needs_object=no | |
9473 | enable_shared_with_static_runtimes=no | |
9474 | export_dynamic_flag_spec= | |
9475 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9476 | hardcode_automatic=no | |
9477 | hardcode_direct=no | |
9478 | hardcode_direct_absolute=no | |
9479 | hardcode_libdir_flag_spec= | |
9480 | hardcode_libdir_separator= | |
9481 | hardcode_minus_L=no | |
9482 | hardcode_shlibpath_var=unsupported | |
9483 | inherit_rpath=no | |
9484 | link_all_deplibs=unknown | |
9485 | module_cmds= | |
9486 | module_expsym_cmds= | |
9487 | old_archive_from_new_cmds= | |
9488 | old_archive_from_expsyms_cmds= | |
9489 | thread_safe_flag_spec= | |
9490 | whole_archive_flag_spec= | |
9491 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9492 | # included in the symbol list | |
9493 | include_expsyms= | |
9494 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9495 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9496 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9497 | # as well as any symbol that contains `d'. | |
9498 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9499 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9500 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9501 | # the symbol is explicitly referenced. Since portable code cannot | |
9502 | # rely on this symbol name, it's probably fine to never include it in | |
9503 | # preloaded symbol tables. | |
9504 | # Exclude shared library initialization/finalization symbols. | |
9505 | extract_expsyms_cmds= | |
9506 | ||
9507 | case $host_os in | |
9508 | cygwin* | mingw* | pw32* | cegcc*) | |
9509 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9510 | # When not using gcc, we currently assume that we are using | |
9511 | # Microsoft Visual C++. | |
9512 | if test "$GCC" != yes; then | |
9513 | with_gnu_ld=no | |
9514 | fi | |
9515 | ;; | |
9516 | interix*) | |
9517 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9518 | with_gnu_ld=yes | |
9519 | ;; | |
9520 | openbsd*) | |
9521 | with_gnu_ld=no | |
9522 | ;; | |
9523 | linux* | k*bsd*-gnu | gnu*) | |
9524 | link_all_deplibs=no | |
9525 | ;; | |
9526 | esac | |
9527 | ||
9528 | ld_shlibs=yes | |
9529 | ||
9530 | # On some targets, GNU ld is compatible enough with the native linker | |
9531 | # that we're better off using the native interface for both. | |
9532 | lt_use_gnu_ld_interface=no | |
9533 | if test "$with_gnu_ld" = yes; then | |
9534 | case $host_os in | |
9535 | aix*) | |
9536 | # The AIX port of GNU ld has always aspired to compatibility | |
9537 | # with the native linker. However, as the warning in the GNU ld | |
9538 | # block says, versions before 2.19.5* couldn't really create working | |
9539 | # shared libraries, regardless of the interface used. | |
9540 | case `$LD -v 2>&1` in | |
9541 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9542 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9543 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9544 | *) | |
9545 | lt_use_gnu_ld_interface=yes | |
9546 | ;; | |
9547 | esac | |
9548 | ;; | |
9549 | *) | |
9550 | lt_use_gnu_ld_interface=yes | |
9551 | ;; | |
9552 | esac | |
9553 | fi | |
9554 | ||
9555 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9556 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9557 | wlarc='${wl}' | |
9558 | ||
9559 | # Set some defaults for GNU ld with shared library support. These | |
9560 | # are reset later if shared libraries are not supported. Putting them | |
9561 | # here allows them to be overridden if necessary. | |
9562 | runpath_var=LD_RUN_PATH | |
9563 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9564 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9565 | # ancient GNU ld didn't support --whole-archive et. al. | |
9566 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9567 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9568 | else | |
9569 | whole_archive_flag_spec= | |
9570 | fi | |
9571 | supports_anon_versioning=no | |
9572 | case `$LD -v 2>&1` in | |
9573 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9574 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9575 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9576 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9577 | *\ 2.11.*) ;; # other 2.11 versions | |
9578 | *) supports_anon_versioning=yes ;; | |
9579 | esac | |
9580 | ||
9581 | # See if GNU ld supports shared libraries. | |
9582 | case $host_os in | |
9583 | aix[3-9]*) | |
9584 | # On AIX/PPC, the GNU linker is very broken | |
9585 | if test "$host_cpu" != ia64; then | |
9586 | ld_shlibs=no | |
9587 | cat <<_LT_EOF 1>&2 | |
9588 | ||
9589 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9590 | *** to be unable to reliably create shared libraries on AIX. | |
9591 | *** Therefore, libtool is disabling shared libraries support. If you | |
9592 | *** really care for shared libraries, you may want to install binutils | |
9593 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9594 | *** You will then need to restart the configuration process. | |
9595 | ||
9596 | _LT_EOF | |
9597 | fi | |
9598 | ;; | |
9599 | ||
9600 | amigaos*) | |
9601 | case $host_cpu in | |
9602 | powerpc) | |
9603 | # see comment about AmigaOS4 .so support | |
9604 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9605 | archive_expsym_cmds='' | |
9606 | ;; | |
9607 | m68k) | |
9608 | 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)' | |
9609 | hardcode_libdir_flag_spec='-L$libdir' | |
9610 | hardcode_minus_L=yes | |
9611 | ;; | |
9612 | esac | |
9613 | ;; | |
9614 | ||
9615 | beos*) | |
9616 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9617 | allow_undefined_flag=unsupported | |
9618 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9619 | # support --undefined. This deserves some investigation. FIXME | |
9620 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9621 | else | |
9622 | ld_shlibs=no | |
9623 | fi | |
9624 | ;; | |
9625 | ||
9626 | cygwin* | mingw* | pw32* | cegcc*) | |
9627 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9628 | # as there is no search path for DLLs. | |
9629 | hardcode_libdir_flag_spec='-L$libdir' | |
9630 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9631 | allow_undefined_flag=unsupported | |
9632 | always_export_symbols=no | |
9633 | enable_shared_with_static_runtimes=yes | |
9634 | 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' | |
9635 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9636 | ||
9637 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9638 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9639 | # If the export-symbols file already is a .def file (1st line | |
9640 | # is EXPORTS), use it as is; otherwise, prepend... | |
9641 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9642 | cp $export_symbols $output_objdir/$soname.def; | |
9643 | else | |
9644 | echo EXPORTS > $output_objdir/$soname.def; | |
9645 | cat $export_symbols >> $output_objdir/$soname.def; | |
9646 | fi~ | |
9647 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9648 | else | |
9649 | ld_shlibs=no | |
9650 | fi | |
9651 | ;; | |
9652 | ||
9653 | haiku*) | |
9654 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9655 | link_all_deplibs=yes | |
9656 | ;; | |
9657 | ||
9658 | interix[3-9]*) | |
9659 | hardcode_direct=no | |
9660 | hardcode_shlibpath_var=no | |
9661 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9662 | export_dynamic_flag_spec='${wl}-E' | |
9663 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9664 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9665 | # default) and relocated if they conflict, which is a slow very memory | |
9666 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9667 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9668 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9669 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9670 | 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' | |
9671 | ;; | |
9672 | ||
9673 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9674 | tmp_diet=no | |
9675 | if test "$host_os" = linux-dietlibc; then | |
9676 | case $cc_basename in | |
9677 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9678 | esac | |
9679 | fi | |
9680 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9681 | && test "$tmp_diet" = no | |
9682 | then | |
9683 | tmp_addflag=' $pic_flag' | |
9684 | tmp_sharedflag='-shared' | |
9685 | case $cc_basename,$host_cpu in | |
9686 | pgcc*) # Portland Group C compiler | |
9687 | 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' | |
9688 | tmp_addflag=' $pic_flag' | |
9689 | ;; | |
9690 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9691 | # Portland Group f77 and f90 compilers | |
9692 | 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' | |
9693 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9694 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9695 | tmp_addflag=' -i_dynamic' ;; | |
9696 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9697 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9698 | ifc* | ifort*) # Intel Fortran compiler | |
9699 | tmp_addflag=' -nofor_main' ;; | |
9700 | lf95*) # Lahey Fortran 8.1 | |
9701 | whole_archive_flag_spec= | |
9702 | tmp_sharedflag='--shared' ;; | |
9703 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9704 | tmp_sharedflag='-qmkshrobj' | |
9705 | tmp_addflag= ;; | |
9706 | nvcc*) # Cuda Compiler Driver 2.2 | |
9707 | 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' | |
9708 | compiler_needs_object=yes | |
9709 | ;; | |
9710 | esac | |
9711 | case `$CC -V 2>&1 | sed 5q` in | |
9712 | *Sun\ C*) # Sun C 5.9 | |
9713 | 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' | |
9714 | compiler_needs_object=yes | |
9715 | tmp_sharedflag='-G' ;; | |
9716 | *Sun\ F*) # Sun Fortran 8.3 | |
9717 | tmp_sharedflag='-G' ;; | |
9718 | esac | |
9719 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9720 | ||
9721 | if test "x$supports_anon_versioning" = xyes; then | |
9722 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9723 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9724 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9725 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9726 | fi | |
9727 | ||
9728 | case $cc_basename in | |
9729 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9730 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9731 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9732 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9733 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9734 | if test "x$supports_anon_versioning" = xyes; then | |
9735 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9736 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9737 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9738 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9739 | fi | |
9740 | ;; | |
9741 | esac | |
9742 | else | |
9743 | ld_shlibs=no | |
9744 | fi | |
9745 | ;; | |
9746 | ||
9747 | netbsd* | netbsdelf*-gnu) | |
9748 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9749 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9750 | wlarc= | |
9751 | else | |
9752 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9753 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9754 | fi | |
9755 | ;; | |
9756 | ||
9757 | solaris*) | |
9758 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9759 | ld_shlibs=no | |
9760 | cat <<_LT_EOF 1>&2 | |
9761 | ||
9762 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9763 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9764 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9765 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9766 | *** your PATH or compiler configuration so that the native linker is | |
9767 | *** used, and then restart. | |
9768 | ||
9769 | _LT_EOF | |
9770 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9771 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9772 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9773 | else | |
9774 | ld_shlibs=no | |
9775 | fi | |
9776 | ;; | |
9777 | ||
9778 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9779 | case `$LD -v 2>&1` in | |
9780 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9781 | ld_shlibs=no | |
9782 | cat <<_LT_EOF 1>&2 | |
9783 | ||
9784 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9785 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9786 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9787 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9788 | *** your PATH or compiler configuration so that the native linker is | |
9789 | *** used, and then restart. | |
9790 | ||
9791 | _LT_EOF | |
9792 | ;; | |
9793 | *) | |
9794 | # For security reasons, it is highly recommended that you always | |
9795 | # use absolute paths for naming shared libraries, and exclude the | |
9796 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9797 | # requires that you compile everything twice, which is a pain. | |
9798 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9799 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9800 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9801 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9802 | else | |
9803 | ld_shlibs=no | |
9804 | fi | |
9805 | ;; | |
9806 | esac | |
9807 | ;; | |
9808 | ||
9809 | sunos4*) | |
9810 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9811 | wlarc= | |
9812 | hardcode_direct=yes | |
9813 | hardcode_shlibpath_var=no | |
9814 | ;; | |
9815 | ||
9816 | *) | |
9817 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9818 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9819 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9820 | else | |
9821 | ld_shlibs=no | |
9822 | fi | |
9823 | ;; | |
9824 | esac | |
9825 | ||
9826 | if test "$ld_shlibs" = no; then | |
9827 | runpath_var= | |
9828 | hardcode_libdir_flag_spec= | |
9829 | export_dynamic_flag_spec= | |
9830 | whole_archive_flag_spec= | |
9831 | fi | |
9832 | else | |
9833 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9834 | case $host_os in | |
9835 | aix3*) | |
9836 | allow_undefined_flag=unsupported | |
9837 | always_export_symbols=yes | |
9838 | 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' | |
9839 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9840 | # are no directories specified by -L. | |
9841 | hardcode_minus_L=yes | |
9842 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9843 | # Neither direct hardcoding nor static linking is supported with a | |
9844 | # broken collect2. | |
9845 | hardcode_direct=unsupported | |
9846 | fi | |
9847 | ;; | |
9848 | ||
9849 | aix[4-9]*) | |
9850 | if test "$host_cpu" = ia64; then | |
9851 | # On IA64, the linker does run time linking by default, so we don't | |
9852 | # have to do anything special. | |
9853 | aix_use_runtimelinking=no | |
9854 | exp_sym_flag='-Bexport' | |
9855 | no_entry_flag="" | |
9856 | else | |
9857 | # If we're using GNU nm, then we don't want the "-C" option. | |
9858 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9859 | # Also, AIX nm treats weak defined symbols like other global | |
9860 | # defined symbols, whereas GNU nm marks them as "W". | |
9861 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9862 | 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' | |
9863 | else | |
9864 | 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' | |
9865 | fi | |
9866 | aix_use_runtimelinking=no | |
9867 | ||
9868 | # Test if we are trying to use run time linking or normal | |
9869 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9870 | # need to do runtime linking. | |
9871 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9872 | for ld_flag in $LDFLAGS; do | |
9873 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9874 | aix_use_runtimelinking=yes | |
9875 | break | |
9876 | fi | |
9877 | done | |
9878 | ;; | |
9879 | esac | |
9880 | ||
9881 | exp_sym_flag='-bexport' | |
9882 | no_entry_flag='-bnoentry' | |
9883 | fi | |
9884 | ||
9885 | # When large executables or shared objects are built, AIX ld can | |
9886 | # have problems creating the table of contents. If linking a library | |
9887 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9888 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9889 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9890 | ||
9891 | archive_cmds='' | |
9892 | hardcode_direct=yes | |
9893 | hardcode_direct_absolute=yes | |
9894 | hardcode_libdir_separator=':' | |
9895 | link_all_deplibs=yes | |
9896 | file_list_spec='${wl}-f,' | |
9897 | ||
9898 | if test "$GCC" = yes; then | |
9899 | case $host_os in aix4.[012]|aix4.[012].*) | |
9900 | # We only want to do this on AIX 4.2 and lower, the check | |
9901 | # below for broken collect2 doesn't work under 4.3+ | |
9902 | collect2name=`${CC} -print-prog-name=collect2` | |
9903 | if test -f "$collect2name" && | |
9904 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9905 | then | |
9906 | # We have reworked collect2 | |
9907 | : | |
9908 | else | |
9909 | # We have old collect2 | |
9910 | hardcode_direct=unsupported | |
9911 | # It fails to find uninstalled libraries when the uninstalled | |
9912 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9913 | # to unsupported forces relinking | |
9914 | hardcode_minus_L=yes | |
9915 | hardcode_libdir_flag_spec='-L$libdir' | |
9916 | hardcode_libdir_separator= | |
9917 | fi | |
9918 | ;; | |
9919 | esac | |
9920 | shared_flag='-shared' | |
9921 | if test "$aix_use_runtimelinking" = yes; then | |
9922 | shared_flag="$shared_flag "'${wl}-G' | |
9923 | fi | |
9924 | link_all_deplibs=no | |
9925 | else | |
9926 | # not using gcc | |
9927 | if test "$host_cpu" = ia64; then | |
9928 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9929 | # chokes on -Wl,-G. The following line is correct: | |
9930 | shared_flag='-G' | |
9931 | else | |
9932 | if test "$aix_use_runtimelinking" = yes; then | |
9933 | shared_flag='${wl}-G' | |
9934 | else | |
9935 | shared_flag='${wl}-bM:SRE' | |
9936 | fi | |
9937 | fi | |
9938 | fi | |
9939 | ||
9940 | export_dynamic_flag_spec='${wl}-bexpall' | |
9941 | # It seems that -bexpall does not export symbols beginning with | |
9942 | # underscore (_), so it is better to generate a list of symbols to export. | |
9943 | always_export_symbols=yes | |
9944 | if test "$aix_use_runtimelinking" = yes; then | |
9945 | # Warning - without using the other runtime loading flags (-brtl), | |
9946 | # -berok will link without error, but may produce a broken library. | |
9947 | allow_undefined_flag='-berok' | |
9948 | # Determine the default libpath from the value encoded in an | |
9949 | # empty executable. | |
9950 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9951 | aix_libpath=$lt_cv_aix_libpath | |
9952 | else | |
9953 | if ${lt_cv_aix_libpath_+:} false; then : | |
9954 | $as_echo_n "(cached) " >&6 | |
9955 | else | |
9956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9957 | /* end confdefs.h. */ | |
9958 | ||
9959 | int | |
9960 | main () | |
9961 | { | |
9962 | ||
9963 | ; | |
9964 | return 0; | |
9965 | } | |
9966 | _ACEOF | |
9967 | if ac_fn_c_try_link "$LINENO"; then : | |
9968 | ||
9969 | lt_aix_libpath_sed=' | |
9970 | /Import File Strings/,/^$/ { | |
9971 | /^0/ { | |
9972 | s/^0 *\([^ ]*\) *$/\1/ | |
9973 | p | |
9974 | } | |
9975 | }' | |
9976 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9977 | # Check for a 64-bit object if we didn't find anything. | |
9978 | if test -z "$lt_cv_aix_libpath_"; then | |
9979 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9980 | fi | |
9981 | fi | |
9982 | rm -f core conftest.err conftest.$ac_objext \ | |
9983 | conftest$ac_exeext conftest.$ac_ext | |
9984 | if test -z "$lt_cv_aix_libpath_"; then | |
9985 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9986 | fi | |
9987 | ||
9988 | fi | |
9989 | ||
9990 | aix_libpath=$lt_cv_aix_libpath_ | |
9991 | fi | |
9992 | ||
9993 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9994 | 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" | |
9995 | else | |
9996 | if test "$host_cpu" = ia64; then | |
9997 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9998 | allow_undefined_flag="-z nodefs" | |
9999 | 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" | |
10000 | else | |
10001 | # Determine the default libpath from the value encoded in an | |
10002 | # empty executable. | |
10003 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10004 | aix_libpath=$lt_cv_aix_libpath | |
10005 | else | |
10006 | if ${lt_cv_aix_libpath_+:} false; then : | |
10007 | $as_echo_n "(cached) " >&6 | |
10008 | else | |
10009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10010 | /* end confdefs.h. */ | |
10011 | ||
10012 | int | |
10013 | main () | |
10014 | { | |
10015 | ||
10016 | ; | |
10017 | return 0; | |
10018 | } | |
10019 | _ACEOF | |
10020 | if ac_fn_c_try_link "$LINENO"; then : | |
10021 | ||
10022 | lt_aix_libpath_sed=' | |
10023 | /Import File Strings/,/^$/ { | |
10024 | /^0/ { | |
10025 | s/^0 *\([^ ]*\) *$/\1/ | |
10026 | p | |
10027 | } | |
10028 | }' | |
10029 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10030 | # Check for a 64-bit object if we didn't find anything. | |
10031 | if test -z "$lt_cv_aix_libpath_"; then | |
10032 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10033 | fi | |
10034 | fi | |
10035 | rm -f core conftest.err conftest.$ac_objext \ | |
10036 | conftest$ac_exeext conftest.$ac_ext | |
10037 | if test -z "$lt_cv_aix_libpath_"; then | |
10038 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10039 | fi | |
10040 | ||
10041 | fi | |
10042 | ||
10043 | aix_libpath=$lt_cv_aix_libpath_ | |
10044 | fi | |
10045 | ||
10046 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10047 | # Warning - without using the other run time loading flags, | |
10048 | # -berok will link without error, but may produce a broken library. | |
10049 | no_undefined_flag=' ${wl}-bernotok' | |
10050 | allow_undefined_flag=' ${wl}-berok' | |
10051 | if test "$with_gnu_ld" = yes; then | |
10052 | # We only use this code for GNU lds that support --whole-archive. | |
10053 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10054 | else | |
10055 | # Exported symbols can be pulled into shared objects from archives | |
10056 | whole_archive_flag_spec='$convenience' | |
10057 | fi | |
10058 | archive_cmds_need_lc=yes | |
10059 | # This is similar to how AIX traditionally builds its shared libraries. | |
10060 | 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' | |
10061 | fi | |
10062 | fi | |
10063 | ;; | |
10064 | ||
10065 | amigaos*) | |
10066 | case $host_cpu in | |
10067 | powerpc) | |
10068 | # see comment about AmigaOS4 .so support | |
10069 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10070 | archive_expsym_cmds='' | |
10071 | ;; | |
10072 | m68k) | |
10073 | 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)' | |
10074 | hardcode_libdir_flag_spec='-L$libdir' | |
10075 | hardcode_minus_L=yes | |
10076 | ;; | |
10077 | esac | |
10078 | ;; | |
10079 | ||
10080 | bsdi[45]*) | |
10081 | export_dynamic_flag_spec=-rdynamic | |
10082 | ;; | |
10083 | ||
10084 | cygwin* | mingw* | pw32* | cegcc*) | |
10085 | # When not using gcc, we currently assume that we are using | |
10086 | # Microsoft Visual C++. | |
10087 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10088 | # no search path for DLLs. | |
10089 | case $cc_basename in | |
10090 | cl*) | |
10091 | # Native MSVC | |
10092 | hardcode_libdir_flag_spec=' ' | |
10093 | allow_undefined_flag=unsupported | |
10094 | always_export_symbols=yes | |
10095 | file_list_spec='@' | |
10096 | # Tell ltmain to make .lib files, not .a files. | |
10097 | libext=lib | |
10098 | # Tell ltmain to make .dll files, not .so files. | |
10099 | shrext_cmds=".dll" | |
10100 | # FIXME: Setting linknames here is a bad hack. | |
10101 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10102 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10103 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10104 | else | |
10105 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10106 | fi~ | |
10107 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10108 | linknames=' | |
10109 | # The linker will not automatically build a static lib if we build a DLL. | |
10110 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10111 | enable_shared_with_static_runtimes=yes | |
10112 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10113 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10114 | # Don't use ranlib | |
10115 | old_postinstall_cmds='chmod 644 $oldlib' | |
10116 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10117 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10118 | case $lt_outputfile in | |
10119 | *.exe|*.EXE) ;; | |
10120 | *) | |
10121 | lt_outputfile="$lt_outputfile.exe" | |
10122 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10123 | ;; | |
10124 | esac~ | |
10125 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10126 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10127 | $RM "$lt_outputfile.manifest"; | |
10128 | fi' | |
10129 | ;; | |
10130 | *) | |
10131 | # Assume MSVC wrapper | |
10132 | hardcode_libdir_flag_spec=' ' | |
10133 | allow_undefined_flag=unsupported | |
10134 | # Tell ltmain to make .lib files, not .a files. | |
10135 | libext=lib | |
10136 | # Tell ltmain to make .dll files, not .so files. | |
10137 | shrext_cmds=".dll" | |
10138 | # FIXME: Setting linknames here is a bad hack. | |
10139 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10140 | # The linker will automatically build a .lib file if we build a DLL. | |
10141 | old_archive_from_new_cmds='true' | |
10142 | # FIXME: Should let the user specify the lib program. | |
10143 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10144 | enable_shared_with_static_runtimes=yes | |
10145 | ;; | |
10146 | esac | |
10147 | ;; | |
10148 | ||
10149 | darwin* | rhapsody*) | |
10150 | ||
10151 | ||
10152 | archive_cmds_need_lc=no | |
10153 | hardcode_direct=no | |
10154 | hardcode_automatic=yes | |
10155 | hardcode_shlibpath_var=unsupported | |
10156 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10157 | 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\"`' | |
10158 | ||
10159 | else | |
10160 | whole_archive_flag_spec='' | |
10161 | fi | |
10162 | link_all_deplibs=yes | |
10163 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10164 | case $cc_basename in | |
10165 | ifort*) _lt_dar_can_shared=yes ;; | |
10166 | *) _lt_dar_can_shared=$GCC ;; | |
10167 | esac | |
10168 | if test "$_lt_dar_can_shared" = "yes"; then | |
10169 | output_verbose_link_cmd=func_echo_all | |
10170 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10171 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10172 | 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}" | |
10173 | 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}" | |
10174 | ||
10175 | else | |
10176 | ld_shlibs=no | |
10177 | fi | |
10178 | ||
10179 | ;; | |
10180 | ||
10181 | dgux*) | |
10182 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10183 | hardcode_libdir_flag_spec='-L$libdir' | |
10184 | hardcode_shlibpath_var=no | |
10185 | ;; | |
10186 | ||
10187 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10188 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10189 | # does not break anything, and helps significantly (at the cost of a little | |
10190 | # extra space). | |
10191 | freebsd2.2*) | |
10192 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10193 | hardcode_libdir_flag_spec='-R$libdir' | |
10194 | hardcode_direct=yes | |
10195 | hardcode_shlibpath_var=no | |
10196 | ;; | |
10197 | ||
10198 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10199 | freebsd2.*) | |
10200 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10201 | hardcode_direct=yes | |
10202 | hardcode_minus_L=yes | |
10203 | hardcode_shlibpath_var=no | |
10204 | ;; | |
10205 | ||
10206 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10207 | freebsd* | dragonfly*) | |
10208 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10209 | hardcode_libdir_flag_spec='-R$libdir' | |
10210 | hardcode_direct=yes | |
10211 | hardcode_shlibpath_var=no | |
10212 | ;; | |
10213 | ||
10214 | hpux9*) | |
10215 | if test "$GCC" = yes; then | |
10216 | 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' | |
10217 | else | |
10218 | 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' | |
10219 | fi | |
10220 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10221 | hardcode_libdir_separator=: | |
10222 | hardcode_direct=yes | |
10223 | ||
10224 | # hardcode_minus_L: Not really in the search PATH, | |
10225 | # but as the default location of the library. | |
10226 | hardcode_minus_L=yes | |
10227 | export_dynamic_flag_spec='${wl}-E' | |
10228 | ;; | |
10229 | ||
10230 | hpux10*) | |
10231 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10232 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10233 | else | |
10234 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10235 | fi | |
10236 | if test "$with_gnu_ld" = no; then | |
10237 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10238 | hardcode_libdir_separator=: | |
10239 | hardcode_direct=yes | |
10240 | hardcode_direct_absolute=yes | |
10241 | export_dynamic_flag_spec='${wl}-E' | |
10242 | # hardcode_minus_L: Not really in the search PATH, | |
10243 | # but as the default location of the library. | |
10244 | hardcode_minus_L=yes | |
10245 | fi | |
10246 | ;; | |
10247 | ||
10248 | hpux11*) | |
10249 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10250 | case $host_cpu in | |
10251 | hppa*64*) | |
10252 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10253 | ;; | |
10254 | ia64*) | |
10255 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10256 | ;; | |
10257 | *) | |
10258 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10259 | ;; | |
10260 | esac | |
10261 | else | |
10262 | case $host_cpu in | |
10263 | hppa*64*) | |
10264 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10265 | ;; | |
10266 | ia64*) | |
10267 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10268 | ;; | |
10269 | *) | |
10270 | ||
10271 | # Older versions of the 11.00 compiler do not understand -b yet | |
10272 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10274 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10275 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10276 | $as_echo_n "(cached) " >&6 | |
10277 | else | |
10278 | lt_cv_prog_compiler__b=no | |
10279 | save_LDFLAGS="$LDFLAGS" | |
10280 | LDFLAGS="$LDFLAGS -b" | |
10281 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10282 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10283 | # The linker can only warn and ignore the option if not recognized | |
10284 | # So say no if there are warnings | |
10285 | if test -s conftest.err; then | |
10286 | # Append any errors to the config.log. | |
10287 | cat conftest.err 1>&5 | |
10288 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10289 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10290 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10291 | lt_cv_prog_compiler__b=yes | |
10292 | fi | |
10293 | else | |
10294 | lt_cv_prog_compiler__b=yes | |
10295 | fi | |
10296 | fi | |
10297 | $RM -r conftest* | |
10298 | LDFLAGS="$save_LDFLAGS" | |
10299 | ||
10300 | fi | |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10302 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10303 | ||
10304 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10305 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10306 | else | |
10307 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10308 | fi | |
10309 | ||
10310 | ;; | |
10311 | esac | |
10312 | fi | |
10313 | if test "$with_gnu_ld" = no; then | |
10314 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10315 | hardcode_libdir_separator=: | |
10316 | ||
10317 | case $host_cpu in | |
10318 | hppa*64*|ia64*) | |
10319 | hardcode_direct=no | |
10320 | hardcode_shlibpath_var=no | |
10321 | ;; | |
10322 | *) | |
10323 | hardcode_direct=yes | |
10324 | hardcode_direct_absolute=yes | |
10325 | export_dynamic_flag_spec='${wl}-E' | |
10326 | ||
10327 | # hardcode_minus_L: Not really in the search PATH, | |
10328 | # but as the default location of the library. | |
10329 | hardcode_minus_L=yes | |
10330 | ;; | |
10331 | esac | |
10332 | fi | |
10333 | ;; | |
10334 | ||
10335 | irix5* | irix6* | nonstopux*) | |
10336 | if test "$GCC" = yes; then | |
10337 | 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' | |
10338 | # Try to use the -exported_symbol ld option, if it does not | |
10339 | # work, assume that -exports_file does not work either and | |
10340 | # implicitly export all symbols. | |
10341 | # This should be the same for all languages, so no per-tag cache variable. | |
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10343 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10344 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10345 | $as_echo_n "(cached) " >&6 | |
10346 | else | |
10347 | save_LDFLAGS="$LDFLAGS" | |
10348 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10350 | /* end confdefs.h. */ | |
10351 | int foo (void) { return 0; } | |
10352 | _ACEOF | |
10353 | if ac_fn_c_try_link "$LINENO"; then : | |
10354 | lt_cv_irix_exported_symbol=yes | |
10355 | else | |
10356 | lt_cv_irix_exported_symbol=no | |
10357 | fi | |
10358 | rm -f core conftest.err conftest.$ac_objext \ | |
10359 | conftest$ac_exeext conftest.$ac_ext | |
10360 | LDFLAGS="$save_LDFLAGS" | |
10361 | fi | |
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10363 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10364 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10365 | 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' | |
10366 | fi | |
10367 | else | |
10368 | 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' | |
10369 | 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' | |
10370 | fi | |
10371 | archive_cmds_need_lc='no' | |
10372 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10373 | hardcode_libdir_separator=: | |
10374 | inherit_rpath=yes | |
10375 | link_all_deplibs=yes | |
10376 | ;; | |
10377 | ||
10378 | netbsd* | netbsdelf*-gnu) | |
10379 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10380 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10381 | else | |
10382 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10383 | fi | |
10384 | hardcode_libdir_flag_spec='-R$libdir' | |
10385 | hardcode_direct=yes | |
10386 | hardcode_shlibpath_var=no | |
10387 | ;; | |
10388 | ||
10389 | newsos6) | |
10390 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10391 | hardcode_direct=yes | |
10392 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10393 | hardcode_libdir_separator=: | |
10394 | hardcode_shlibpath_var=no | |
10395 | ;; | |
10396 | ||
10397 | *nto* | *qnx*) | |
10398 | ;; | |
10399 | ||
10400 | openbsd*) | |
10401 | if test -f /usr/libexec/ld.so; then | |
10402 | hardcode_direct=yes | |
10403 | hardcode_shlibpath_var=no | |
10404 | hardcode_direct_absolute=yes | |
10405 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10406 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10407 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10408 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10409 | export_dynamic_flag_spec='${wl}-E' | |
10410 | else | |
10411 | case $host_os in | |
10412 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10413 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10414 | hardcode_libdir_flag_spec='-R$libdir' | |
10415 | ;; | |
10416 | *) | |
10417 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10418 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10419 | ;; | |
10420 | esac | |
10421 | fi | |
10422 | else | |
10423 | ld_shlibs=no | |
10424 | fi | |
10425 | ;; | |
10426 | ||
10427 | os2*) | |
10428 | hardcode_libdir_flag_spec='-L$libdir' | |
10429 | hardcode_minus_L=yes | |
10430 | allow_undefined_flag=unsupported | |
10431 | 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' | |
10432 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10433 | ;; | |
10434 | ||
10435 | osf3*) | |
10436 | if test "$GCC" = yes; then | |
10437 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10438 | 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' | |
10439 | else | |
10440 | allow_undefined_flag=' -expect_unresolved \*' | |
10441 | 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' | |
10442 | fi | |
10443 | archive_cmds_need_lc='no' | |
10444 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10445 | hardcode_libdir_separator=: | |
10446 | ;; | |
10447 | ||
10448 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10449 | if test "$GCC" = yes; then | |
10450 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10451 | 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' | |
10452 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10453 | else | |
10454 | allow_undefined_flag=' -expect_unresolved \*' | |
10455 | 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' | |
10456 | 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~ | |
10457 | $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' | |
10458 | ||
10459 | # Both c and cxx compiler support -rpath directly | |
10460 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10461 | fi | |
10462 | archive_cmds_need_lc='no' | |
10463 | hardcode_libdir_separator=: | |
10464 | ;; | |
10465 | ||
10466 | solaris*) | |
10467 | no_undefined_flag=' -z defs' | |
10468 | if test "$GCC" = yes; then | |
10469 | wlarc='${wl}' | |
10470 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10471 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10472 | $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' | |
10473 | else | |
10474 | case `$CC -V 2>&1` in | |
10475 | *"Compilers 5.0"*) | |
10476 | wlarc='' | |
10477 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10478 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10479 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10480 | ;; | |
10481 | *) | |
10482 | wlarc='${wl}' | |
10483 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10484 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10485 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10486 | ;; | |
10487 | esac | |
10488 | fi | |
10489 | hardcode_libdir_flag_spec='-R$libdir' | |
10490 | hardcode_shlibpath_var=no | |
10491 | case $host_os in | |
10492 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10493 | *) | |
10494 | # The compiler driver will combine and reorder linker options, | |
10495 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10496 | # but is careful enough not to reorder. | |
10497 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10498 | if test "$GCC" = yes; then | |
10499 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10500 | else | |
10501 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10502 | fi | |
10503 | ;; | |
10504 | esac | |
10505 | link_all_deplibs=yes | |
10506 | ;; | |
10507 | ||
10508 | sunos4*) | |
10509 | if test "x$host_vendor" = xsequent; then | |
10510 | # Use $CC to link under sequent, because it throws in some extra .o | |
10511 | # files that make .init and .fini sections work. | |
10512 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10513 | else | |
10514 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10515 | fi | |
10516 | hardcode_libdir_flag_spec='-L$libdir' | |
10517 | hardcode_direct=yes | |
10518 | hardcode_minus_L=yes | |
10519 | hardcode_shlibpath_var=no | |
10520 | ;; | |
10521 | ||
10522 | sysv4) | |
10523 | case $host_vendor in | |
10524 | sni) | |
10525 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10526 | hardcode_direct=yes # is this really true??? | |
10527 | ;; | |
10528 | siemens) | |
10529 | ## LD is ld it makes a PLAMLIB | |
10530 | ## CC just makes a GrossModule. | |
10531 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10532 | reload_cmds='$CC -r -o $output$reload_objs' | |
10533 | hardcode_direct=no | |
10534 | ;; | |
10535 | motorola) | |
10536 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10537 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10538 | ;; | |
10539 | esac | |
10540 | runpath_var='LD_RUN_PATH' | |
10541 | hardcode_shlibpath_var=no | |
10542 | ;; | |
10543 | ||
10544 | sysv4.3*) | |
10545 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10546 | hardcode_shlibpath_var=no | |
10547 | export_dynamic_flag_spec='-Bexport' | |
10548 | ;; | |
10549 | ||
10550 | sysv4*MP*) | |
10551 | if test -d /usr/nec; then | |
10552 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10553 | hardcode_shlibpath_var=no | |
10554 | runpath_var=LD_RUN_PATH | |
10555 | hardcode_runpath_var=yes | |
10556 | ld_shlibs=yes | |
10557 | fi | |
10558 | ;; | |
10559 | ||
10560 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10561 | no_undefined_flag='${wl}-z,text' | |
10562 | archive_cmds_need_lc=no | |
10563 | hardcode_shlibpath_var=no | |
10564 | runpath_var='LD_RUN_PATH' | |
10565 | ||
10566 | if test "$GCC" = yes; then | |
10567 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10568 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10569 | else | |
10570 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10571 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10572 | fi | |
10573 | ;; | |
10574 | ||
10575 | sysv5* | sco3.2v5* | sco5v6*) | |
10576 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10577 | # link with -lc, and that would cause any symbols used from libc to | |
10578 | # always be unresolved, which means just about no library would | |
10579 | # ever link correctly. If we're not using GNU ld we use -z text | |
10580 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10581 | # as -z defs. | |
10582 | no_undefined_flag='${wl}-z,text' | |
10583 | allow_undefined_flag='${wl}-z,nodefs' | |
10584 | archive_cmds_need_lc=no | |
10585 | hardcode_shlibpath_var=no | |
10586 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10587 | hardcode_libdir_separator=':' | |
10588 | link_all_deplibs=yes | |
10589 | export_dynamic_flag_spec='${wl}-Bexport' | |
10590 | runpath_var='LD_RUN_PATH' | |
10591 | ||
10592 | if test "$GCC" = yes; then | |
10593 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10594 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10595 | else | |
10596 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10597 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10598 | fi | |
10599 | ;; | |
10600 | ||
10601 | uts4*) | |
10602 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10603 | hardcode_libdir_flag_spec='-L$libdir' | |
10604 | hardcode_shlibpath_var=no | |
10605 | ;; | |
10606 | ||
10607 | *) | |
10608 | ld_shlibs=no | |
10609 | ;; | |
10610 | esac | |
10611 | ||
10612 | if test x$host_vendor = xsni; then | |
10613 | case $host in | |
10614 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10615 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10616 | ;; | |
10617 | esac | |
10618 | fi | |
10619 | fi | |
10620 | ||
10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10622 | $as_echo "$ld_shlibs" >&6; } | |
10623 | test "$ld_shlibs" = no && can_build_shared=no | |
10624 | ||
10625 | with_gnu_ld=$with_gnu_ld | |
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | # | |
10642 | # Do we need to explicitly link libc? | |
10643 | # | |
10644 | case "x$archive_cmds_need_lc" in | |
10645 | x|xyes) | |
10646 | # Assume -lc should be added | |
10647 | archive_cmds_need_lc=yes | |
10648 | ||
10649 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10650 | case $archive_cmds in | |
10651 | *'~'*) | |
10652 | # FIXME: we may have to deal with multi-command sequences. | |
10653 | ;; | |
10654 | '$CC '*) | |
10655 | # Test whether the compiler implicitly links with -lc since on some | |
10656 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10657 | # to ld, don't add -lc before -lgcc. | |
10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10659 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10660 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10661 | $as_echo_n "(cached) " >&6 | |
10662 | else | |
10663 | $RM conftest* | |
10664 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10665 | ||
10666 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10667 | (eval $ac_compile) 2>&5 | |
10668 | ac_status=$? | |
10669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10670 | test $ac_status = 0; } 2>conftest.err; then | |
10671 | soname=conftest | |
10672 | lib=conftest | |
10673 | libobjs=conftest.$ac_objext | |
10674 | deplibs= | |
10675 | wl=$lt_prog_compiler_wl | |
10676 | pic_flag=$lt_prog_compiler_pic | |
10677 | compiler_flags=-v | |
10678 | linker_flags=-v | |
10679 | verstring= | |
10680 | output_objdir=. | |
10681 | libname=conftest | |
10682 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10683 | allow_undefined_flag= | |
10684 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10685 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10686 | ac_status=$? | |
10687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10688 | test $ac_status = 0; } | |
10689 | then | |
10690 | lt_cv_archive_cmds_need_lc=no | |
10691 | else | |
10692 | lt_cv_archive_cmds_need_lc=yes | |
10693 | fi | |
10694 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10695 | else | |
10696 | cat conftest.err 1>&5 | |
10697 | fi | |
10698 | $RM conftest* | |
10699 | ||
10700 | fi | |
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10702 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10703 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10704 | ;; | |
10705 | esac | |
10706 | fi | |
10707 | ;; | |
10708 | esac | |
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10862 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10863 | ||
10864 | if test "$GCC" = yes; then | |
10865 | case $host_os in | |
10866 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10867 | *) lt_awk_arg="/^libraries:/" ;; | |
10868 | esac | |
10869 | case $host_os in | |
10870 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10871 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10872 | esac | |
10873 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10874 | case $lt_search_path_spec in | |
10875 | *\;*) | |
10876 | # if the path contains ";" then we assume it to be the separator | |
10877 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10878 | # assumed that no part of a normal pathname contains ";" but that should | |
10879 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10880 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10881 | ;; | |
10882 | *) | |
10883 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10884 | ;; | |
10885 | esac | |
10886 | # Ok, now we have the path, separated by spaces, we can step through it | |
10887 | # and add multilib dir if necessary. | |
10888 | lt_tmp_lt_search_path_spec= | |
10889 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10890 | for lt_sys_path in $lt_search_path_spec; do | |
10891 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10892 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10893 | else | |
10894 | test -d "$lt_sys_path" && \ | |
10895 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10896 | fi | |
10897 | done | |
10898 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10899 | BEGIN {RS=" "; FS="/|\n";} { | |
10900 | lt_foo=""; | |
10901 | lt_count=0; | |
10902 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10903 | if ($lt_i != "" && $lt_i != ".") { | |
10904 | if ($lt_i == "..") { | |
10905 | lt_count++; | |
10906 | } else { | |
10907 | if (lt_count == 0) { | |
10908 | lt_foo="/" $lt_i lt_foo; | |
10909 | } else { | |
10910 | lt_count--; | |
10911 | } | |
10912 | } | |
10913 | } | |
10914 | } | |
10915 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10916 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10917 | }'` | |
10918 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10919 | # for these hosts. | |
10920 | case $host_os in | |
10921 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10922 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10923 | esac | |
10924 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10925 | else | |
10926 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10927 | fi | |
10928 | library_names_spec= | |
10929 | libname_spec='lib$name' | |
10930 | soname_spec= | |
10931 | shrext_cmds=".so" | |
10932 | postinstall_cmds= | |
10933 | postuninstall_cmds= | |
10934 | finish_cmds= | |
10935 | finish_eval= | |
10936 | shlibpath_var= | |
10937 | shlibpath_overrides_runpath=unknown | |
10938 | version_type=none | |
10939 | dynamic_linker="$host_os ld.so" | |
10940 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10941 | need_lib_prefix=unknown | |
10942 | hardcode_into_libs=no | |
10943 | ||
10944 | # when you set need_version to no, make sure it does not cause -set_version | |
10945 | # flags to be left without arguments | |
10946 | need_version=unknown | |
10947 | ||
10948 | case $host_os in | |
10949 | aix3*) | |
10950 | version_type=linux # correct to gnu/linux during the next big refactor | |
10951 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10952 | shlibpath_var=LIBPATH | |
10953 | ||
10954 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10955 | soname_spec='${libname}${release}${shared_ext}$major' | |
10956 | ;; | |
10957 | ||
10958 | aix[4-9]*) | |
10959 | version_type=linux # correct to gnu/linux during the next big refactor | |
10960 | need_lib_prefix=no | |
10961 | need_version=no | |
10962 | hardcode_into_libs=yes | |
10963 | if test "$host_cpu" = ia64; then | |
10964 | # AIX 5 supports IA64 | |
10965 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10966 | shlibpath_var=LD_LIBRARY_PATH | |
10967 | else | |
10968 | # With GCC up to 2.95.x, collect2 would create an import file | |
10969 | # for dependence libraries. The import file would start with | |
10970 | # the line `#! .'. This would cause the generated library to | |
10971 | # depend on `.', always an invalid library. This was fixed in | |
10972 | # development snapshots of GCC prior to 3.0. | |
10973 | case $host_os in | |
10974 | aix4 | aix4.[01] | aix4.[01].*) | |
10975 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10976 | echo ' yes ' | |
10977 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10978 | : | |
10979 | else | |
10980 | can_build_shared=no | |
10981 | fi | |
10982 | ;; | |
10983 | esac | |
10984 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10985 | # soname into executable. Probably we can add versioning support to | |
10986 | # collect2, so additional links can be useful in future. | |
10987 | if test "$aix_use_runtimelinking" = yes; then | |
10988 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10989 | # instead of lib<name>.a to let people know that these are not | |
10990 | # typical AIX shared libraries. | |
10991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10992 | else | |
10993 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10994 | # and later when we are not doing run time linking. | |
10995 | library_names_spec='${libname}${release}.a $libname.a' | |
10996 | soname_spec='${libname}${release}${shared_ext}$major' | |
10997 | fi | |
10998 | shlibpath_var=LIBPATH | |
10999 | fi | |
11000 | ;; | |
11001 | ||
11002 | amigaos*) | |
11003 | case $host_cpu in | |
11004 | powerpc) | |
11005 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11006 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11008 | ;; | |
11009 | m68k) | |
11010 | library_names_spec='$libname.ixlibrary $libname.a' | |
11011 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11012 | 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' | |
11013 | ;; | |
11014 | esac | |
11015 | ;; | |
11016 | ||
11017 | beos*) | |
11018 | library_names_spec='${libname}${shared_ext}' | |
11019 | dynamic_linker="$host_os ld.so" | |
11020 | shlibpath_var=LIBRARY_PATH | |
11021 | ;; | |
11022 | ||
11023 | bsdi[45]*) | |
11024 | version_type=linux # correct to gnu/linux during the next big refactor | |
11025 | need_version=no | |
11026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11027 | soname_spec='${libname}${release}${shared_ext}$major' | |
11028 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11029 | shlibpath_var=LD_LIBRARY_PATH | |
11030 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11031 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11032 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11033 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11034 | # libtool to hard-code these into programs | |
11035 | ;; | |
11036 | ||
11037 | cygwin* | mingw* | pw32* | cegcc*) | |
11038 | version_type=windows | |
11039 | shrext_cmds=".dll" | |
11040 | need_version=no | |
11041 | need_lib_prefix=no | |
11042 | ||
11043 | case $GCC,$cc_basename in | |
11044 | yes,*) | |
11045 | # gcc | |
11046 | library_names_spec='$libname.dll.a' | |
11047 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11048 | postinstall_cmds='base_file=`basename \${file}`~ | |
11049 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11050 | dldir=$destdir/`dirname \$dlpath`~ | |
11051 | test -d \$dldir || mkdir -p \$dldir~ | |
11052 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11053 | chmod a+x \$dldir/$dlname~ | |
11054 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11055 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11056 | fi' | |
11057 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11058 | dlpath=$dir/\$dldll~ | |
11059 | $RM \$dlpath' | |
11060 | shlibpath_overrides_runpath=yes | |
11061 | ||
11062 | case $host_os in | |
11063 | cygwin*) | |
11064 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11065 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11066 | ||
11067 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11068 | ;; | |
11069 | mingw* | cegcc*) | |
11070 | # MinGW DLLs use traditional 'lib' prefix | |
11071 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11072 | ;; | |
11073 | pw32*) | |
11074 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11075 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11076 | ;; | |
11077 | esac | |
11078 | dynamic_linker='Win32 ld.exe' | |
11079 | ;; | |
11080 | ||
11081 | *,cl*) | |
11082 | # Native MSVC | |
11083 | libname_spec='$name' | |
11084 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11085 | library_names_spec='${libname}.dll.lib' | |
11086 | ||
11087 | case $build_os in | |
11088 | mingw*) | |
11089 | sys_lib_search_path_spec= | |
11090 | lt_save_ifs=$IFS | |
11091 | IFS=';' | |
11092 | for lt_path in $LIB | |
11093 | do | |
11094 | IFS=$lt_save_ifs | |
11095 | # Let DOS variable expansion print the short 8.3 style file name. | |
11096 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11097 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11098 | done | |
11099 | IFS=$lt_save_ifs | |
11100 | # Convert to MSYS style. | |
11101 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11102 | ;; | |
11103 | cygwin*) | |
11104 | # Convert to unix form, then to dos form, then back to unix form | |
11105 | # but this time dos style (no spaces!) so that the unix form looks | |
11106 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11107 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11108 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11109 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11110 | ;; | |
11111 | *) | |
11112 | sys_lib_search_path_spec="$LIB" | |
11113 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11114 | # It is most probably a Windows format PATH. | |
11115 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11116 | else | |
11117 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11118 | fi | |
11119 | # FIXME: find the short name or the path components, as spaces are | |
11120 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11121 | ;; | |
11122 | esac | |
11123 | ||
11124 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11125 | postinstall_cmds='base_file=`basename \${file}`~ | |
11126 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11127 | dldir=$destdir/`dirname \$dlpath`~ | |
11128 | test -d \$dldir || mkdir -p \$dldir~ | |
11129 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11130 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11131 | dlpath=$dir/\$dldll~ | |
11132 | $RM \$dlpath' | |
11133 | shlibpath_overrides_runpath=yes | |
11134 | dynamic_linker='Win32 link.exe' | |
11135 | ;; | |
11136 | ||
11137 | *) | |
11138 | # Assume MSVC wrapper | |
11139 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11140 | dynamic_linker='Win32 ld.exe' | |
11141 | ;; | |
11142 | esac | |
11143 | # FIXME: first we should search . and the directory the executable is in | |
11144 | shlibpath_var=PATH | |
11145 | ;; | |
11146 | ||
11147 | darwin* | rhapsody*) | |
11148 | dynamic_linker="$host_os dyld" | |
11149 | version_type=darwin | |
11150 | need_lib_prefix=no | |
11151 | need_version=no | |
11152 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11153 | soname_spec='${libname}${release}${major}$shared_ext' | |
11154 | shlibpath_overrides_runpath=yes | |
11155 | shlibpath_var=DYLD_LIBRARY_PATH | |
11156 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11157 | ||
11158 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11159 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11160 | ;; | |
11161 | ||
11162 | dgux*) | |
11163 | version_type=linux # correct to gnu/linux during the next big refactor | |
11164 | need_lib_prefix=no | |
11165 | need_version=no | |
11166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11167 | soname_spec='${libname}${release}${shared_ext}$major' | |
11168 | shlibpath_var=LD_LIBRARY_PATH | |
11169 | ;; | |
11170 | ||
11171 | freebsd* | dragonfly*) | |
11172 | # DragonFly does not have aout. When/if they implement a new | |
11173 | # versioning mechanism, adjust this. | |
11174 | if test -x /usr/bin/objformat; then | |
11175 | objformat=`/usr/bin/objformat` | |
11176 | else | |
11177 | case $host_os in | |
11178 | freebsd[23].*) objformat=aout ;; | |
11179 | *) objformat=elf ;; | |
11180 | esac | |
11181 | fi | |
11182 | version_type=freebsd-$objformat | |
11183 | case $version_type in | |
11184 | freebsd-elf*) | |
11185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11186 | need_version=no | |
11187 | need_lib_prefix=no | |
11188 | ;; | |
11189 | freebsd-*) | |
11190 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11191 | need_version=yes | |
11192 | ;; | |
11193 | esac | |
11194 | shlibpath_var=LD_LIBRARY_PATH | |
11195 | case $host_os in | |
11196 | freebsd2.*) | |
11197 | shlibpath_overrides_runpath=yes | |
11198 | ;; | |
11199 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11200 | shlibpath_overrides_runpath=yes | |
11201 | hardcode_into_libs=yes | |
11202 | ;; | |
11203 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11204 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11205 | shlibpath_overrides_runpath=no | |
11206 | hardcode_into_libs=yes | |
11207 | ;; | |
11208 | *) # from 4.6 on, and DragonFly | |
11209 | shlibpath_overrides_runpath=yes | |
11210 | hardcode_into_libs=yes | |
11211 | ;; | |
11212 | esac | |
11213 | ;; | |
11214 | ||
11215 | haiku*) | |
11216 | version_type=linux # correct to gnu/linux during the next big refactor | |
11217 | need_lib_prefix=no | |
11218 | need_version=no | |
11219 | dynamic_linker="$host_os runtime_loader" | |
11220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11221 | soname_spec='${libname}${release}${shared_ext}$major' | |
11222 | shlibpath_var=LIBRARY_PATH | |
11223 | shlibpath_overrides_runpath=yes | |
11224 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11225 | hardcode_into_libs=yes | |
11226 | ;; | |
11227 | ||
11228 | hpux9* | hpux10* | hpux11*) | |
11229 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11230 | # link against other versions. | |
11231 | version_type=sunos | |
11232 | need_lib_prefix=no | |
11233 | need_version=no | |
11234 | case $host_cpu in | |
11235 | ia64*) | |
11236 | shrext_cmds='.so' | |
11237 | hardcode_into_libs=yes | |
11238 | dynamic_linker="$host_os dld.so" | |
11239 | shlibpath_var=LD_LIBRARY_PATH | |
11240 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11242 | soname_spec='${libname}${release}${shared_ext}$major' | |
11243 | if test "X$HPUX_IA64_MODE" = X32; then | |
11244 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11245 | else | |
11246 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11247 | fi | |
11248 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11249 | ;; | |
11250 | hppa*64*) | |
11251 | shrext_cmds='.sl' | |
11252 | hardcode_into_libs=yes | |
11253 | dynamic_linker="$host_os dld.sl" | |
11254 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11257 | soname_spec='${libname}${release}${shared_ext}$major' | |
11258 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11259 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11260 | ;; | |
11261 | *) | |
11262 | shrext_cmds='.sl' | |
11263 | dynamic_linker="$host_os dld.sl" | |
11264 | shlibpath_var=SHLIB_PATH | |
11265 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11267 | soname_spec='${libname}${release}${shared_ext}$major' | |
11268 | ;; | |
11269 | esac | |
11270 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11271 | postinstall_cmds='chmod 555 $lib' | |
11272 | # or fails outright, so override atomically: | |
11273 | install_override_mode=555 | |
11274 | ;; | |
11275 | ||
11276 | interix[3-9]*) | |
11277 | version_type=linux # correct to gnu/linux during the next big refactor | |
11278 | need_lib_prefix=no | |
11279 | need_version=no | |
11280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11281 | soname_spec='${libname}${release}${shared_ext}$major' | |
11282 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11283 | shlibpath_var=LD_LIBRARY_PATH | |
11284 | shlibpath_overrides_runpath=no | |
11285 | hardcode_into_libs=yes | |
11286 | ;; | |
11287 | ||
11288 | irix5* | irix6* | nonstopux*) | |
11289 | case $host_os in | |
11290 | nonstopux*) version_type=nonstopux ;; | |
11291 | *) | |
11292 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11293 | version_type=linux # correct to gnu/linux during the next big refactor | |
11294 | else | |
11295 | version_type=irix | |
11296 | fi ;; | |
11297 | esac | |
11298 | need_lib_prefix=no | |
11299 | need_version=no | |
11300 | soname_spec='${libname}${release}${shared_ext}$major' | |
11301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11302 | case $host_os in | |
11303 | irix5* | nonstopux*) | |
11304 | libsuff= shlibsuff= | |
11305 | ;; | |
11306 | *) | |
11307 | case $LD in # libtool.m4 will add one of these switches to LD | |
11308 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11309 | libsuff= shlibsuff= libmagic=32-bit;; | |
11310 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11311 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11312 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11313 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11314 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11315 | esac | |
11316 | ;; | |
11317 | esac | |
11318 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11319 | shlibpath_overrides_runpath=no | |
11320 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11321 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11322 | hardcode_into_libs=yes | |
11323 | ;; | |
11324 | ||
11325 | # No shared lib support for Linux oldld, aout, or coff. | |
11326 | linux*oldld* | linux*aout* | linux*coff*) | |
11327 | dynamic_linker=no | |
11328 | ;; | |
11329 | ||
11330 | # This must be glibc/ELF. | |
11331 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11332 | version_type=linux # correct to gnu/linux during the next big refactor | |
11333 | need_lib_prefix=no | |
11334 | need_version=no | |
11335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11336 | soname_spec='${libname}${release}${shared_ext}$major' | |
11337 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11338 | shlibpath_var=LD_LIBRARY_PATH | |
11339 | shlibpath_overrides_runpath=no | |
11340 | ||
11341 | # Some binutils ld are patched to set DT_RUNPATH | |
11342 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11343 | $as_echo_n "(cached) " >&6 | |
11344 | else | |
11345 | lt_cv_shlibpath_overrides_runpath=no | |
11346 | save_LDFLAGS=$LDFLAGS | |
11347 | save_libdir=$libdir | |
11348 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11349 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11351 | /* end confdefs.h. */ | |
11352 | ||
11353 | int | |
11354 | main () | |
11355 | { | |
11356 | ||
11357 | ; | |
11358 | return 0; | |
11359 | } | |
11360 | _ACEOF | |
11361 | if ac_fn_c_try_link "$LINENO"; then : | |
11362 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11363 | lt_cv_shlibpath_overrides_runpath=yes | |
11364 | fi | |
11365 | fi | |
11366 | rm -f core conftest.err conftest.$ac_objext \ | |
11367 | conftest$ac_exeext conftest.$ac_ext | |
11368 | LDFLAGS=$save_LDFLAGS | |
11369 | libdir=$save_libdir | |
11370 | ||
11371 | fi | |
11372 | ||
11373 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11374 | ||
11375 | # This implies no fast_install, which is unacceptable. | |
11376 | # Some rework will be needed to allow for fast_install | |
11377 | # before this can be enabled. | |
11378 | hardcode_into_libs=yes | |
11379 | ||
11380 | # Append ld.so.conf contents to the search path | |
11381 | if test -f /etc/ld.so.conf; then | |
11382 | 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' ' '` | |
11383 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11384 | fi | |
11385 | ||
11386 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11387 | # powerpc, because MkLinux only supported shared libraries with the | |
11388 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11389 | # most powerpc-linux boxes support dynamic linking these days and | |
11390 | # people can always --disable-shared, the test was removed, and we | |
11391 | # assume the GNU/Linux dynamic linker is in use. | |
11392 | dynamic_linker='GNU/Linux ld.so' | |
11393 | ;; | |
11394 | ||
11395 | netbsdelf*-gnu) | |
11396 | version_type=linux | |
11397 | need_lib_prefix=no | |
11398 | need_version=no | |
11399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11400 | soname_spec='${libname}${release}${shared_ext}$major' | |
11401 | shlibpath_var=LD_LIBRARY_PATH | |
11402 | shlibpath_overrides_runpath=no | |
11403 | hardcode_into_libs=yes | |
11404 | dynamic_linker='NetBSD ld.elf_so' | |
11405 | ;; | |
11406 | ||
11407 | netbsd*) | |
11408 | version_type=sunos | |
11409 | need_lib_prefix=no | |
11410 | need_version=no | |
11411 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11413 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11414 | dynamic_linker='NetBSD (a.out) ld.so' | |
11415 | else | |
11416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11417 | soname_spec='${libname}${release}${shared_ext}$major' | |
11418 | dynamic_linker='NetBSD ld.elf_so' | |
11419 | fi | |
11420 | shlibpath_var=LD_LIBRARY_PATH | |
11421 | shlibpath_overrides_runpath=yes | |
11422 | hardcode_into_libs=yes | |
11423 | ;; | |
11424 | ||
11425 | newsos6) | |
11426 | version_type=linux # correct to gnu/linux during the next big refactor | |
11427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11428 | shlibpath_var=LD_LIBRARY_PATH | |
11429 | shlibpath_overrides_runpath=yes | |
11430 | ;; | |
11431 | ||
11432 | *nto* | *qnx*) | |
11433 | version_type=qnx | |
11434 | need_lib_prefix=no | |
11435 | need_version=no | |
11436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11437 | soname_spec='${libname}${release}${shared_ext}$major' | |
11438 | shlibpath_var=LD_LIBRARY_PATH | |
11439 | shlibpath_overrides_runpath=no | |
11440 | hardcode_into_libs=yes | |
11441 | dynamic_linker='ldqnx.so' | |
11442 | ;; | |
11443 | ||
11444 | openbsd*) | |
11445 | version_type=sunos | |
11446 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11447 | need_lib_prefix=no | |
11448 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11449 | case $host_os in | |
11450 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11451 | *) need_version=no ;; | |
11452 | esac | |
11453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11454 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11455 | shlibpath_var=LD_LIBRARY_PATH | |
11456 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11457 | case $host_os in | |
11458 | openbsd2.[89] | openbsd2.[89].*) | |
11459 | shlibpath_overrides_runpath=no | |
11460 | ;; | |
11461 | *) | |
11462 | shlibpath_overrides_runpath=yes | |
11463 | ;; | |
11464 | esac | |
11465 | else | |
11466 | shlibpath_overrides_runpath=yes | |
11467 | fi | |
11468 | ;; | |
11469 | ||
11470 | os2*) | |
11471 | libname_spec='$name' | |
11472 | shrext_cmds=".dll" | |
11473 | need_lib_prefix=no | |
11474 | library_names_spec='$libname${shared_ext} $libname.a' | |
11475 | dynamic_linker='OS/2 ld.exe' | |
11476 | shlibpath_var=LIBPATH | |
11477 | ;; | |
11478 | ||
11479 | osf3* | osf4* | osf5*) | |
11480 | version_type=osf | |
11481 | need_lib_prefix=no | |
11482 | need_version=no | |
11483 | soname_spec='${libname}${release}${shared_ext}$major' | |
11484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11485 | shlibpath_var=LD_LIBRARY_PATH | |
11486 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11487 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11488 | ;; | |
11489 | ||
11490 | rdos*) | |
11491 | dynamic_linker=no | |
11492 | ;; | |
11493 | ||
11494 | solaris*) | |
11495 | version_type=linux # correct to gnu/linux during the next big refactor | |
11496 | need_lib_prefix=no | |
11497 | need_version=no | |
11498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11499 | soname_spec='${libname}${release}${shared_ext}$major' | |
11500 | shlibpath_var=LD_LIBRARY_PATH | |
11501 | shlibpath_overrides_runpath=yes | |
11502 | hardcode_into_libs=yes | |
11503 | # ldd complains unless libraries are executable | |
11504 | postinstall_cmds='chmod +x $lib' | |
11505 | ;; | |
11506 | ||
11507 | sunos4*) | |
11508 | version_type=sunos | |
11509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11510 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11511 | shlibpath_var=LD_LIBRARY_PATH | |
11512 | shlibpath_overrides_runpath=yes | |
11513 | if test "$with_gnu_ld" = yes; then | |
11514 | need_lib_prefix=no | |
11515 | fi | |
11516 | need_version=yes | |
11517 | ;; | |
11518 | ||
11519 | sysv4 | sysv4.3*) | |
11520 | version_type=linux # correct to gnu/linux during the next big refactor | |
11521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11522 | soname_spec='${libname}${release}${shared_ext}$major' | |
11523 | shlibpath_var=LD_LIBRARY_PATH | |
11524 | case $host_vendor in | |
11525 | sni) | |
11526 | shlibpath_overrides_runpath=no | |
11527 | need_lib_prefix=no | |
11528 | runpath_var=LD_RUN_PATH | |
11529 | ;; | |
11530 | siemens) | |
11531 | need_lib_prefix=no | |
11532 | ;; | |
11533 | motorola) | |
11534 | need_lib_prefix=no | |
11535 | need_version=no | |
11536 | shlibpath_overrides_runpath=no | |
11537 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11538 | ;; | |
11539 | esac | |
11540 | ;; | |
11541 | ||
11542 | sysv4*MP*) | |
11543 | if test -d /usr/nec ;then | |
11544 | version_type=linux # correct to gnu/linux during the next big refactor | |
11545 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11546 | soname_spec='$libname${shared_ext}.$major' | |
11547 | shlibpath_var=LD_LIBRARY_PATH | |
11548 | fi | |
11549 | ;; | |
11550 | ||
11551 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11552 | version_type=freebsd-elf | |
11553 | need_lib_prefix=no | |
11554 | need_version=no | |
11555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11556 | soname_spec='${libname}${release}${shared_ext}$major' | |
11557 | shlibpath_var=LD_LIBRARY_PATH | |
11558 | shlibpath_overrides_runpath=yes | |
11559 | hardcode_into_libs=yes | |
11560 | if test "$with_gnu_ld" = yes; then | |
11561 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11562 | else | |
11563 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11564 | case $host_os in | |
11565 | sco3.2v5*) | |
11566 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11567 | ;; | |
11568 | esac | |
11569 | fi | |
11570 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11571 | ;; | |
11572 | ||
11573 | tpf*) | |
11574 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11575 | version_type=linux # correct to gnu/linux during the next big refactor | |
11576 | need_lib_prefix=no | |
11577 | need_version=no | |
11578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11579 | shlibpath_var=LD_LIBRARY_PATH | |
11580 | shlibpath_overrides_runpath=no | |
11581 | hardcode_into_libs=yes | |
11582 | ;; | |
11583 | ||
11584 | uts4*) | |
11585 | version_type=linux # correct to gnu/linux during the next big refactor | |
11586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11587 | soname_spec='${libname}${release}${shared_ext}$major' | |
11588 | shlibpath_var=LD_LIBRARY_PATH | |
11589 | ;; | |
11590 | ||
11591 | *) | |
11592 | dynamic_linker=no | |
11593 | ;; | |
11594 | esac | |
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11596 | $as_echo "$dynamic_linker" >&6; } | |
11597 | test "$dynamic_linker" = no && can_build_shared=no | |
11598 | ||
11599 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11600 | if test "$GCC" = yes; then | |
11601 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11602 | fi | |
11603 | ||
11604 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11605 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11606 | fi | |
11607 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11608 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11609 | fi | |
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | ||
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11703 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11704 | hardcode_action= | |
11705 | if test -n "$hardcode_libdir_flag_spec" || | |
11706 | test -n "$runpath_var" || | |
11707 | test "X$hardcode_automatic" = "Xyes" ; then | |
11708 | ||
11709 | # We can hardcode non-existent directories. | |
11710 | if test "$hardcode_direct" != no && | |
11711 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11712 | # have to relink, otherwise we might link with an installed library | |
11713 | # when we should be linking with a yet-to-be-installed one | |
11714 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11715 | test "$hardcode_minus_L" != no; then | |
11716 | # Linking always hardcodes the temporary library directory. | |
11717 | hardcode_action=relink | |
11718 | else | |
11719 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11720 | hardcode_action=immediate | |
11721 | fi | |
11722 | else | |
11723 | # We cannot hardcode anything, or else we can only hardcode existing | |
11724 | # directories. | |
11725 | hardcode_action=unsupported | |
11726 | fi | |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11728 | $as_echo "$hardcode_action" >&6; } | |
11729 | ||
11730 | if test "$hardcode_action" = relink || | |
11731 | test "$inherit_rpath" = yes; then | |
11732 | # Fast installation is not supported | |
11733 | enable_fast_install=no | |
11734 | elif test "$shlibpath_overrides_runpath" = yes || | |
11735 | test "$enable_shared" = no; then | |
11736 | # Fast installation is not necessary | |
11737 | enable_fast_install=needless | |
11738 | fi | |
11739 | ||
11740 | ||
11741 | ||
11742 | ||
11743 | ||
11744 | ||
11745 | if test "x$enable_dlopen" != xyes; then | |
11746 | enable_dlopen=unknown | |
11747 | enable_dlopen_self=unknown | |
11748 | enable_dlopen_self_static=unknown | |
11749 | else | |
11750 | lt_cv_dlopen=no | |
11751 | lt_cv_dlopen_libs= | |
11752 | ||
11753 | case $host_os in | |
11754 | beos*) | |
11755 | lt_cv_dlopen="load_add_on" | |
11756 | lt_cv_dlopen_libs= | |
11757 | lt_cv_dlopen_self=yes | |
11758 | ;; | |
11759 | ||
11760 | mingw* | pw32* | cegcc*) | |
11761 | lt_cv_dlopen="LoadLibrary" | |
11762 | lt_cv_dlopen_libs= | |
11763 | ;; | |
11764 | ||
11765 | cygwin*) | |
11766 | lt_cv_dlopen="dlopen" | |
11767 | lt_cv_dlopen_libs= | |
11768 | ;; | |
11769 | ||
11770 | darwin*) | |
11771 | # if libdl is installed we need to link against it | |
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11773 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11774 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11775 | $as_echo_n "(cached) " >&6 | |
11776 | else | |
11777 | ac_check_lib_save_LIBS=$LIBS | |
11778 | LIBS="-ldl $LIBS" | |
11779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11780 | /* end confdefs.h. */ | |
11781 | ||
11782 | /* Override any GCC internal prototype to avoid an error. | |
11783 | Use char because int might match the return type of a GCC | |
11784 | builtin and then its argument prototype would still apply. */ | |
11785 | #ifdef __cplusplus | |
11786 | extern "C" | |
11787 | #endif | |
11788 | char dlopen (); | |
11789 | int | |
11790 | main () | |
11791 | { | |
11792 | return dlopen (); | |
11793 | ; | |
11794 | return 0; | |
11795 | } | |
11796 | _ACEOF | |
11797 | if ac_fn_c_try_link "$LINENO"; then : | |
11798 | ac_cv_lib_dl_dlopen=yes | |
11799 | else | |
11800 | ac_cv_lib_dl_dlopen=no | |
11801 | fi | |
11802 | rm -f core conftest.err conftest.$ac_objext \ | |
11803 | conftest$ac_exeext conftest.$ac_ext | |
11804 | LIBS=$ac_check_lib_save_LIBS | |
11805 | fi | |
11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11807 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11808 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11809 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11810 | else | |
11811 | ||
11812 | lt_cv_dlopen="dyld" | |
11813 | lt_cv_dlopen_libs= | |
11814 | lt_cv_dlopen_self=yes | |
11815 | ||
11816 | fi | |
11817 | ||
11818 | ;; | |
11819 | ||
11820 | *) | |
11821 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11822 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11823 | lt_cv_dlopen="shl_load" | |
11824 | else | |
11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11826 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11827 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11828 | $as_echo_n "(cached) " >&6 | |
11829 | else | |
11830 | ac_check_lib_save_LIBS=$LIBS | |
11831 | LIBS="-ldld $LIBS" | |
11832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11833 | /* end confdefs.h. */ | |
11834 | ||
11835 | /* Override any GCC internal prototype to avoid an error. | |
11836 | Use char because int might match the return type of a GCC | |
11837 | builtin and then its argument prototype would still apply. */ | |
11838 | #ifdef __cplusplus | |
11839 | extern "C" | |
11840 | #endif | |
11841 | char shl_load (); | |
11842 | int | |
11843 | main () | |
11844 | { | |
11845 | return shl_load (); | |
11846 | ; | |
11847 | return 0; | |
11848 | } | |
11849 | _ACEOF | |
11850 | if ac_fn_c_try_link "$LINENO"; then : | |
11851 | ac_cv_lib_dld_shl_load=yes | |
11852 | else | |
11853 | ac_cv_lib_dld_shl_load=no | |
11854 | fi | |
11855 | rm -f core conftest.err conftest.$ac_objext \ | |
11856 | conftest$ac_exeext conftest.$ac_ext | |
11857 | LIBS=$ac_check_lib_save_LIBS | |
11858 | fi | |
11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11860 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11861 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11862 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11863 | else | |
11864 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11865 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11866 | lt_cv_dlopen="dlopen" | |
11867 | else | |
11868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11869 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11870 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11871 | $as_echo_n "(cached) " >&6 | |
11872 | else | |
11873 | ac_check_lib_save_LIBS=$LIBS | |
11874 | LIBS="-ldl $LIBS" | |
11875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11876 | /* end confdefs.h. */ | |
11877 | ||
11878 | /* Override any GCC internal prototype to avoid an error. | |
11879 | Use char because int might match the return type of a GCC | |
11880 | builtin and then its argument prototype would still apply. */ | |
11881 | #ifdef __cplusplus | |
11882 | extern "C" | |
11883 | #endif | |
11884 | char dlopen (); | |
11885 | int | |
11886 | main () | |
11887 | { | |
11888 | return dlopen (); | |
11889 | ; | |
11890 | return 0; | |
11891 | } | |
11892 | _ACEOF | |
11893 | if ac_fn_c_try_link "$LINENO"; then : | |
11894 | ac_cv_lib_dl_dlopen=yes | |
11895 | else | |
11896 | ac_cv_lib_dl_dlopen=no | |
11897 | fi | |
11898 | rm -f core conftest.err conftest.$ac_objext \ | |
11899 | conftest$ac_exeext conftest.$ac_ext | |
11900 | LIBS=$ac_check_lib_save_LIBS | |
11901 | fi | |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11903 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11904 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11905 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11906 | else | |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11908 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11909 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11910 | $as_echo_n "(cached) " >&6 | |
11911 | else | |
11912 | ac_check_lib_save_LIBS=$LIBS | |
11913 | LIBS="-lsvld $LIBS" | |
11914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11915 | /* end confdefs.h. */ | |
11916 | ||
11917 | /* Override any GCC internal prototype to avoid an error. | |
11918 | Use char because int might match the return type of a GCC | |
11919 | builtin and then its argument prototype would still apply. */ | |
11920 | #ifdef __cplusplus | |
11921 | extern "C" | |
11922 | #endif | |
11923 | char dlopen (); | |
11924 | int | |
11925 | main () | |
11926 | { | |
11927 | return dlopen (); | |
11928 | ; | |
11929 | return 0; | |
11930 | } | |
11931 | _ACEOF | |
11932 | if ac_fn_c_try_link "$LINENO"; then : | |
11933 | ac_cv_lib_svld_dlopen=yes | |
11934 | else | |
11935 | ac_cv_lib_svld_dlopen=no | |
11936 | fi | |
11937 | rm -f core conftest.err conftest.$ac_objext \ | |
11938 | conftest$ac_exeext conftest.$ac_ext | |
11939 | LIBS=$ac_check_lib_save_LIBS | |
11940 | fi | |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11942 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11943 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11944 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11945 | else | |
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11947 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11948 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11949 | $as_echo_n "(cached) " >&6 | |
11950 | else | |
11951 | ac_check_lib_save_LIBS=$LIBS | |
11952 | LIBS="-ldld $LIBS" | |
11953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11954 | /* end confdefs.h. */ | |
11955 | ||
11956 | /* Override any GCC internal prototype to avoid an error. | |
11957 | Use char because int might match the return type of a GCC | |
11958 | builtin and then its argument prototype would still apply. */ | |
11959 | #ifdef __cplusplus | |
11960 | extern "C" | |
11961 | #endif | |
11962 | char dld_link (); | |
11963 | int | |
11964 | main () | |
11965 | { | |
11966 | return dld_link (); | |
11967 | ; | |
11968 | return 0; | |
11969 | } | |
11970 | _ACEOF | |
11971 | if ac_fn_c_try_link "$LINENO"; then : | |
11972 | ac_cv_lib_dld_dld_link=yes | |
11973 | else | |
11974 | ac_cv_lib_dld_dld_link=no | |
11975 | fi | |
11976 | rm -f core conftest.err conftest.$ac_objext \ | |
11977 | conftest$ac_exeext conftest.$ac_ext | |
11978 | LIBS=$ac_check_lib_save_LIBS | |
11979 | fi | |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11981 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11982 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11983 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11984 | fi | |
11985 | ||
11986 | ||
11987 | fi | |
11988 | ||
11989 | ||
11990 | fi | |
11991 | ||
11992 | ||
11993 | fi | |
11994 | ||
11995 | ||
11996 | fi | |
11997 | ||
11998 | ||
11999 | fi | |
12000 | ||
12001 | ;; | |
12002 | esac | |
12003 | ||
12004 | if test "x$lt_cv_dlopen" != xno; then | |
12005 | enable_dlopen=yes | |
12006 | else | |
12007 | enable_dlopen=no | |
12008 | fi | |
12009 | ||
12010 | case $lt_cv_dlopen in | |
12011 | dlopen) | |
12012 | save_CPPFLAGS="$CPPFLAGS" | |
12013 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12014 | ||
12015 | save_LDFLAGS="$LDFLAGS" | |
12016 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12017 | ||
12018 | save_LIBS="$LIBS" | |
12019 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12020 | ||
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12022 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12023 | if ${lt_cv_dlopen_self+:} false; then : | |
12024 | $as_echo_n "(cached) " >&6 | |
12025 | else | |
12026 | if test "$cross_compiling" = yes; then : | |
12027 | lt_cv_dlopen_self=cross | |
12028 | else | |
12029 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12030 | lt_status=$lt_dlunknown | |
12031 | cat > conftest.$ac_ext <<_LT_EOF | |
12032 | #line $LINENO "configure" | |
12033 | #include "confdefs.h" | |
12034 | ||
12035 | #if HAVE_DLFCN_H | |
12036 | #include <dlfcn.h> | |
12037 | #endif | |
12038 | ||
12039 | #include <stdio.h> | |
12040 | ||
12041 | #ifdef RTLD_GLOBAL | |
12042 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12043 | #else | |
12044 | # ifdef DL_GLOBAL | |
12045 | # define LT_DLGLOBAL DL_GLOBAL | |
12046 | # else | |
12047 | # define LT_DLGLOBAL 0 | |
12048 | # endif | |
12049 | #endif | |
12050 | ||
12051 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12052 | find out it does not work in some platform. */ | |
12053 | #ifndef LT_DLLAZY_OR_NOW | |
12054 | # ifdef RTLD_LAZY | |
12055 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12056 | # else | |
12057 | # ifdef DL_LAZY | |
12058 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12059 | # else | |
12060 | # ifdef RTLD_NOW | |
12061 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12062 | # else | |
12063 | # ifdef DL_NOW | |
12064 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12065 | # else | |
12066 | # define LT_DLLAZY_OR_NOW 0 | |
12067 | # endif | |
12068 | # endif | |
12069 | # endif | |
12070 | # endif | |
12071 | #endif | |
12072 | ||
12073 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12074 | correspondingly for the symbols needed. */ | |
12075 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12076 | int fnord () __attribute__((visibility("default"))); | |
12077 | #endif | |
12078 | ||
12079 | int fnord () { return 42; } | |
12080 | int main () | |
12081 | { | |
12082 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12083 | int status = $lt_dlunknown; | |
12084 | ||
12085 | if (self) | |
12086 | { | |
12087 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12088 | else | |
12089 | { | |
12090 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12091 | else puts (dlerror ()); | |
12092 | } | |
12093 | /* dlclose (self); */ | |
12094 | } | |
12095 | else | |
12096 | puts (dlerror ()); | |
12097 | ||
12098 | return status; | |
12099 | } | |
12100 | _LT_EOF | |
12101 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12102 | (eval $ac_link) 2>&5 | |
12103 | ac_status=$? | |
12104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12105 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12106 | (./conftest; exit; ) >&5 2>/dev/null | |
12107 | lt_status=$? | |
12108 | case x$lt_status in | |
12109 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12110 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12111 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12112 | esac | |
12113 | else : | |
12114 | # compilation failed | |
12115 | lt_cv_dlopen_self=no | |
12116 | fi | |
12117 | fi | |
12118 | rm -fr conftest* | |
12119 | ||
12120 | ||
12121 | fi | |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12123 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12124 | ||
12125 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12126 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12128 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12129 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12130 | $as_echo_n "(cached) " >&6 | |
12131 | else | |
12132 | if test "$cross_compiling" = yes; then : | |
12133 | lt_cv_dlopen_self_static=cross | |
12134 | else | |
12135 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12136 | lt_status=$lt_dlunknown | |
12137 | cat > conftest.$ac_ext <<_LT_EOF | |
12138 | #line $LINENO "configure" | |
12139 | #include "confdefs.h" | |
12140 | ||
12141 | #if HAVE_DLFCN_H | |
12142 | #include <dlfcn.h> | |
12143 | #endif | |
12144 | ||
12145 | #include <stdio.h> | |
12146 | ||
12147 | #ifdef RTLD_GLOBAL | |
12148 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12149 | #else | |
12150 | # ifdef DL_GLOBAL | |
12151 | # define LT_DLGLOBAL DL_GLOBAL | |
12152 | # else | |
12153 | # define LT_DLGLOBAL 0 | |
12154 | # endif | |
12155 | #endif | |
12156 | ||
12157 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12158 | find out it does not work in some platform. */ | |
12159 | #ifndef LT_DLLAZY_OR_NOW | |
12160 | # ifdef RTLD_LAZY | |
12161 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12162 | # else | |
12163 | # ifdef DL_LAZY | |
12164 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12165 | # else | |
12166 | # ifdef RTLD_NOW | |
12167 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12168 | # else | |
12169 | # ifdef DL_NOW | |
12170 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12171 | # else | |
12172 | # define LT_DLLAZY_OR_NOW 0 | |
12173 | # endif | |
12174 | # endif | |
12175 | # endif | |
12176 | # endif | |
12177 | #endif | |
12178 | ||
12179 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12180 | correspondingly for the symbols needed. */ | |
12181 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12182 | int fnord () __attribute__((visibility("default"))); | |
12183 | #endif | |
12184 | ||
12185 | int fnord () { return 42; } | |
12186 | int main () | |
12187 | { | |
12188 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12189 | int status = $lt_dlunknown; | |
12190 | ||
12191 | if (self) | |
12192 | { | |
12193 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12194 | else | |
12195 | { | |
12196 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12197 | else puts (dlerror ()); | |
12198 | } | |
12199 | /* dlclose (self); */ | |
12200 | } | |
12201 | else | |
12202 | puts (dlerror ()); | |
12203 | ||
12204 | return status; | |
12205 | } | |
12206 | _LT_EOF | |
12207 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12208 | (eval $ac_link) 2>&5 | |
12209 | ac_status=$? | |
12210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12211 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12212 | (./conftest; exit; ) >&5 2>/dev/null | |
12213 | lt_status=$? | |
12214 | case x$lt_status in | |
12215 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12216 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12217 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12218 | esac | |
12219 | else : | |
12220 | # compilation failed | |
12221 | lt_cv_dlopen_self_static=no | |
12222 | fi | |
12223 | fi | |
12224 | rm -fr conftest* | |
12225 | ||
12226 | ||
12227 | fi | |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12229 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12230 | fi | |
12231 | ||
12232 | CPPFLAGS="$save_CPPFLAGS" | |
12233 | LDFLAGS="$save_LDFLAGS" | |
12234 | LIBS="$save_LIBS" | |
12235 | ;; | |
12236 | esac | |
12237 | ||
12238 | case $lt_cv_dlopen_self in | |
12239 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12240 | *) enable_dlopen_self=unknown ;; | |
12241 | esac | |
12242 | ||
12243 | case $lt_cv_dlopen_self_static in | |
12244 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12245 | *) enable_dlopen_self_static=unknown ;; | |
12246 | esac | |
12247 | fi | |
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | striplib= | |
12266 | old_striplib= | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12268 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12269 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12270 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12271 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12273 | $as_echo "yes" >&6; } | |
12274 | else | |
12275 | # FIXME - insert some real tests, host_os isn't really good enough | |
12276 | case $host_os in | |
12277 | darwin*) | |
12278 | if test -n "$STRIP" ; then | |
12279 | striplib="$STRIP -x" | |
12280 | old_striplib="$STRIP -S" | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12282 | $as_echo "yes" >&6; } | |
12283 | else | |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12285 | $as_echo "no" >&6; } | |
12286 | fi | |
12287 | ;; | |
12288 | *) | |
12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12290 | $as_echo "no" >&6; } | |
12291 | ;; | |
12292 | esac | |
12293 | fi | |
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | # Report which library types will actually be built | |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12308 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12310 | $as_echo "$can_build_shared" >&6; } | |
12311 | ||
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12313 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12314 | test "$can_build_shared" = "no" && enable_shared=no | |
12315 | ||
12316 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12317 | # are all built from PIC. | |
12318 | case $host_os in | |
12319 | aix3*) | |
12320 | test "$enable_shared" = yes && enable_static=no | |
12321 | if test -n "$RANLIB"; then | |
12322 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12323 | postinstall_cmds='$RANLIB $lib' | |
12324 | fi | |
12325 | ;; | |
12326 | ||
12327 | aix[4-9]*) | |
12328 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12329 | test "$enable_shared" = yes && enable_static=no | |
12330 | fi | |
12331 | ;; | |
12332 | esac | |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12334 | $as_echo "$enable_shared" >&6; } | |
12335 | ||
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12337 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12338 | # Make sure either enable_shared or enable_static is yes. | |
12339 | test "$enable_shared" = yes || enable_static=yes | |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12341 | $as_echo "$enable_static" >&6; } | |
12342 | ||
12343 | ||
12344 | ||
12345 | ||
12346 | fi | |
12347 | ac_ext=c | |
12348 | ac_cpp='$CPP $CPPFLAGS' | |
12349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12352 | ||
12353 | CC="$lt_save_CC" | |
12354 | ||
12355 | ||
12356 | ||
12357 | ||
12358 | ||
12359 | ||
12360 | ||
12361 | ||
12362 | ||
12363 | ||
12364 | ||
12365 | ||
12366 | ||
12367 | ||
12368 | ||
12369 | ac_config_commands="$ac_config_commands libtool" | |
12370 | ||
12371 | ||
12372 | ||
12373 | ||
12374 | # Only expand once: | |
12375 | ||
12376 | ||
12377 | ||
12378 | ||
12379 | ||
12380 | ||
12381 | ||
12382 | ||
12383 | ||
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12385 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12386 | if ${libltdl_cv_shlibext+:} false; then : | |
12387 | $as_echo_n "(cached) " >&6 | |
12388 | else | |
12389 | ||
12390 | module=yes | |
12391 | eval libltdl_cv_shlibext=$shrext_cmds | |
12392 | module=no | |
12393 | eval libltdl_cv_shrext=$shrext_cmds | |
12394 | ||
12395 | fi | |
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 | |
12397 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12398 | if test -n "$libltdl_cv_shlibext"; then | |
12399 | ||
12400 | cat >>confdefs.h <<_ACEOF | |
12401 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12402 | _ACEOF | |
12403 | ||
12404 | fi | |
12405 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then | |
12406 | ||
12407 | cat >>confdefs.h <<_ACEOF | |
12408 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12409 | _ACEOF | |
12410 | ||
12411 | fi | |
12412 | ||
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 | |
12414 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12415 | if ${lt_cv_module_path_var+:} false; then : | |
12416 | $as_echo_n "(cached) " >&6 | |
12417 | else | |
12418 | lt_cv_module_path_var="$shlibpath_var" | |
12419 | fi | |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12421 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12422 | if test -n "$lt_cv_module_path_var"; then | |
12423 | ||
12424 | cat >>confdefs.h <<_ACEOF | |
12425 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12426 | _ACEOF | |
12427 | ||
12428 | fi | |
12429 | ||
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 | |
12431 | $as_echo_n "checking for the default library search path... " >&6; } | |
12432 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12433 | $as_echo_n "(cached) " >&6 | |
12434 | else | |
12435 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12436 | fi | |
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12438 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12439 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12440 | sys_dlsearch_path= | |
12441 | for dir in $lt_cv_sys_dlsearch_path; do | |
12442 | if test -z "$sys_dlsearch_path"; then | |
12443 | sys_dlsearch_path="$dir" | |
12444 | else | |
12445 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12446 | fi | |
12447 | done | |
12448 | ||
12449 | cat >>confdefs.h <<_ACEOF | |
12450 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12451 | _ACEOF | |
12452 | ||
12453 | fi | |
12454 | ||
12455 | ||
12456 | LT_DLLOADERS= | |
12457 | ||
12458 | ||
12459 | ac_ext=c | |
12460 | ac_cpp='$CPP $CPPFLAGS' | |
12461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12464 | ||
12465 | ||
12466 | LIBADD_DLOPEN= | |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12468 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12469 | if ${ac_cv_search_dlopen+:} false; then : | |
12470 | $as_echo_n "(cached) " >&6 | |
12471 | else | |
12472 | ac_func_search_save_LIBS=$LIBS | |
12473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12474 | /* end confdefs.h. */ | |
12475 | ||
12476 | /* Override any GCC internal prototype to avoid an error. | |
12477 | Use char because int might match the return type of a GCC | |
12478 | builtin and then its argument prototype would still apply. */ | |
12479 | #ifdef __cplusplus | |
12480 | extern "C" | |
12481 | #endif | |
12482 | char dlopen (); | |
12483 | int | |
12484 | main () | |
12485 | { | |
12486 | return dlopen (); | |
12487 | ; | |
12488 | return 0; | |
12489 | } | |
12490 | _ACEOF | |
12491 | for ac_lib in '' dl; do | |
12492 | if test -z "$ac_lib"; then | |
12493 | ac_res="none required" | |
12494 | else | |
12495 | ac_res=-l$ac_lib | |
12496 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12497 | fi | |
12498 | if ac_fn_c_try_link "$LINENO"; then : | |
12499 | ac_cv_search_dlopen=$ac_res | |
12500 | fi | |
12501 | rm -f core conftest.err conftest.$ac_objext \ | |
12502 | conftest$ac_exeext | |
12503 | if ${ac_cv_search_dlopen+:} false; then : | |
12504 | break | |
12505 | fi | |
12506 | done | |
12507 | if ${ac_cv_search_dlopen+:} false; then : | |
12508 | ||
12509 | else | |
12510 | ac_cv_search_dlopen=no | |
12511 | fi | |
12512 | rm conftest.$ac_ext | |
12513 | LIBS=$ac_func_search_save_LIBS | |
12514 | fi | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
12516 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12517 | ac_res=$ac_cv_search_dlopen | |
12518 | if test "$ac_res" != no; then : | |
12519 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12520 | ||
12521 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12522 | ||
12523 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12524 | LIBADD_DLOPEN="-ldl" | |
12525 | fi | |
12526 | libltdl_cv_lib_dl_dlopen="yes" | |
12527 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12528 | else | |
12529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12530 | /* end confdefs.h. */ | |
12531 | #if HAVE_DLFCN_H | |
12532 | # include <dlfcn.h> | |
12533 | #endif | |
12534 | ||
12535 | int | |
12536 | main () | |
12537 | { | |
12538 | dlopen(0, 0); | |
12539 | ; | |
12540 | return 0; | |
12541 | } | |
12542 | _ACEOF | |
12543 | if ac_fn_c_try_link "$LINENO"; then : | |
12544 | ||
12545 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12546 | ||
12547 | libltdl_cv_func_dlopen="yes" | |
12548 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12549 | else | |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12551 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12552 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12553 | $as_echo_n "(cached) " >&6 | |
12554 | else | |
12555 | ac_check_lib_save_LIBS=$LIBS | |
12556 | LIBS="-lsvld $LIBS" | |
12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12558 | /* end confdefs.h. */ | |
12559 | ||
12560 | /* Override any GCC internal prototype to avoid an error. | |
12561 | Use char because int might match the return type of a GCC | |
12562 | builtin and then its argument prototype would still apply. */ | |
12563 | #ifdef __cplusplus | |
12564 | extern "C" | |
12565 | #endif | |
12566 | char dlopen (); | |
12567 | int | |
12568 | main () | |
12569 | { | |
12570 | return dlopen (); | |
12571 | ; | |
12572 | return 0; | |
12573 | } | |
12574 | _ACEOF | |
12575 | if ac_fn_c_try_link "$LINENO"; then : | |
12576 | ac_cv_lib_svld_dlopen=yes | |
12577 | else | |
12578 | ac_cv_lib_svld_dlopen=no | |
12579 | fi | |
12580 | rm -f core conftest.err conftest.$ac_objext \ | |
12581 | conftest$ac_exeext conftest.$ac_ext | |
12582 | LIBS=$ac_check_lib_save_LIBS | |
12583 | fi | |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12585 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12586 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12587 | ||
12588 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12589 | ||
12590 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | |
12591 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12592 | fi | |
12593 | ||
12594 | fi | |
12595 | rm -f core conftest.err conftest.$ac_objext \ | |
12596 | conftest$ac_exeext conftest.$ac_ext | |
12597 | fi | |
12598 | ||
12599 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | |
12600 | then | |
12601 | lt_save_LIBS="$LIBS" | |
12602 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12603 | for ac_func in dlerror | |
12604 | do : | |
12605 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12606 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12607 | cat >>confdefs.h <<_ACEOF | |
12608 | #define HAVE_DLERROR 1 | |
12609 | _ACEOF | |
12610 | ||
12611 | fi | |
12612 | done | |
12613 | ||
12614 | LIBS="$lt_save_LIBS" | |
12615 | fi | |
12616 | ||
12617 | ||
12618 | LIBADD_SHL_LOAD= | |
12619 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12620 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12621 | ||
12622 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | |
12623 | ||
12624 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | |
12625 | else | |
12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12627 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12628 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12629 | $as_echo_n "(cached) " >&6 | |
12630 | else | |
12631 | ac_check_lib_save_LIBS=$LIBS | |
12632 | LIBS="-ldld $LIBS" | |
12633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12634 | /* end confdefs.h. */ | |
12635 | ||
12636 | /* Override any GCC internal prototype to avoid an error. | |
12637 | Use char because int might match the return type of a GCC | |
12638 | builtin and then its argument prototype would still apply. */ | |
12639 | #ifdef __cplusplus | |
12640 | extern "C" | |
12641 | #endif | |
12642 | char shl_load (); | |
12643 | int | |
12644 | main () | |
12645 | { | |
12646 | return shl_load (); | |
12647 | ; | |
12648 | return 0; | |
12649 | } | |
12650 | _ACEOF | |
12651 | if ac_fn_c_try_link "$LINENO"; then : | |
12652 | ac_cv_lib_dld_shl_load=yes | |
12653 | else | |
12654 | ac_cv_lib_dld_shl_load=no | |
12655 | fi | |
12656 | rm -f core conftest.err conftest.$ac_objext \ | |
12657 | conftest$ac_exeext conftest.$ac_ext | |
12658 | LIBS=$ac_check_lib_save_LIBS | |
12659 | fi | |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12661 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12662 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12663 | ||
12664 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | |
12665 | ||
12666 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | |
12667 | LIBADD_SHL_LOAD="-ldld" | |
12668 | fi | |
12669 | ||
12670 | fi | |
12671 | ||
12672 | ||
12673 | ||
12674 | case $host_os in | |
12675 | darwin[1567].*) | |
12676 | # We only want this for pre-Mac OS X 10.4. | |
12677 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12678 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
12679 | ||
12680 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | |
12681 | ||
12682 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | |
12683 | fi | |
12684 | ||
12685 | ;; | |
12686 | beos*) | |
12687 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12688 | ;; | |
12689 | cygwin* | mingw* | os2* | pw32*) | |
12690 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12691 | " | |
12692 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12693 | ac_have_decl=1 | |
12694 | else | |
12695 | ac_have_decl=0 | |
12696 | fi | |
12697 | ||
12698 | cat >>confdefs.h <<_ACEOF | |
12699 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | |
12700 | _ACEOF | |
12701 | ||
12702 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | |
12703 | ;; | |
12704 | esac | |
12705 | ||
12706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12707 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12708 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12709 | $as_echo_n "(cached) " >&6 | |
12710 | else | |
12711 | ac_check_lib_save_LIBS=$LIBS | |
12712 | LIBS="-ldld $LIBS" | |
12713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12714 | /* end confdefs.h. */ | |
12715 | ||
12716 | /* Override any GCC internal prototype to avoid an error. | |
12717 | Use char because int might match the return type of a GCC | |
12718 | builtin and then its argument prototype would still apply. */ | |
12719 | #ifdef __cplusplus | |
12720 | extern "C" | |
12721 | #endif | |
12722 | char dld_link (); | |
12723 | int | |
12724 | main () | |
12725 | { | |
12726 | return dld_link (); | |
12727 | ; | |
12728 | return 0; | |
12729 | } | |
12730 | _ACEOF | |
12731 | if ac_fn_c_try_link "$LINENO"; then : | |
12732 | ac_cv_lib_dld_dld_link=yes | |
12733 | else | |
12734 | ac_cv_lib_dld_dld_link=no | |
12735 | fi | |
12736 | rm -f core conftest.err conftest.$ac_objext \ | |
12737 | conftest$ac_exeext conftest.$ac_ext | |
12738 | LIBS=$ac_check_lib_save_LIBS | |
12739 | fi | |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12741 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12742 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12743 | ||
12744 | $as_echo "#define HAVE_DLD 1" >>confdefs.h | |
12745 | ||
12746 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12747 | fi | |
12748 | ||
12749 | ||
12750 | ||
12751 | ||
12752 | LT_DLPREOPEN= | |
12753 | if test -n "$LT_DLLOADERS" | |
12754 | then | |
12755 | for lt_loader in $LT_DLLOADERS; do | |
12756 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12757 | done | |
12758 | ||
12759 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h | |
12760 | ||
12761 | fi | |
12762 | ||
12763 | ||
12764 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | |
12765 | ||
12766 | ||
12767 | ac_ext=c | |
12768 | ac_cpp='$CPP $CPPFLAGS' | |
12769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12772 | ||
12773 | ||
12774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 | |
12775 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12776 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12777 | $as_echo_n "(cached) " >&6 | |
12778 | else | |
12779 | lt_cv_sys_symbol_underscore=no | |
12780 | cat > conftest.$ac_ext <<_LT_EOF | |
12781 | void nm_test_func(){} | |
12782 | int main(){nm_test_func;return 0;} | |
12783 | _LT_EOF | |
12784 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12785 | (eval $ac_compile) 2>&5 | |
12786 | ac_status=$? | |
12787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12788 | test $ac_status = 0; }; then | |
12789 | # Now try to grab the symbols. | |
12790 | ac_nlist=conftest.nm | |
12791 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12792 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12793 | ac_status=$? | |
12794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12795 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12796 | # See whether the symbols have a leading underscore. | |
12797 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12798 | lt_cv_sys_symbol_underscore=yes | |
12799 | else | |
12800 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12801 | : | |
12802 | else | |
12803 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12804 | fi | |
12805 | fi | |
12806 | else | |
12807 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12808 | fi | |
12809 | else | |
12810 | echo "configure: failed program was:" >&5 | |
12811 | cat conftest.c >&5 | |
12812 | fi | |
12813 | rm -rf conftest* | |
12814 | ||
12815 | fi | |
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 | |
12817 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12818 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
12819 | ||
12820 | ||
12821 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then | |
12822 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12823 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12825 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12826 | if ${libltdl_cv_need_uscore+:} false; then : | |
12827 | $as_echo_n "(cached) " >&6 | |
12828 | else | |
12829 | libltdl_cv_need_uscore=unknown | |
12830 | save_LIBS="$LIBS" | |
12831 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12832 | if test "$cross_compiling" = yes; then : | |
12833 | libltdl_cv_need_uscore=cross | |
12834 | else | |
12835 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12836 | lt_status=$lt_dlunknown | |
12837 | cat > conftest.$ac_ext <<_LT_EOF | |
12838 | #line $LINENO "configure" | |
12839 | #include "confdefs.h" | |
12840 | ||
12841 | #if HAVE_DLFCN_H | |
12842 | #include <dlfcn.h> | |
12843 | #endif | |
12844 | ||
12845 | #include <stdio.h> | |
12846 | ||
12847 | #ifdef RTLD_GLOBAL | |
12848 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12849 | #else | |
12850 | # ifdef DL_GLOBAL | |
12851 | # define LT_DLGLOBAL DL_GLOBAL | |
12852 | # else | |
12853 | # define LT_DLGLOBAL 0 | |
12854 | # endif | |
12855 | #endif | |
12856 | ||
12857 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12858 | find out it does not work in some platform. */ | |
12859 | #ifndef LT_DLLAZY_OR_NOW | |
12860 | # ifdef RTLD_LAZY | |
12861 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12862 | # else | |
12863 | # ifdef DL_LAZY | |
12864 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12865 | # else | |
12866 | # ifdef RTLD_NOW | |
12867 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12868 | # else | |
12869 | # ifdef DL_NOW | |
12870 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12871 | # else | |
12872 | # define LT_DLLAZY_OR_NOW 0 | |
12873 | # endif | |
12874 | # endif | |
12875 | # endif | |
12876 | # endif | |
12877 | #endif | |
12878 | ||
12879 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12880 | correspondingly for the symbols needed. */ | |
12881 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12882 | int fnord () __attribute__((visibility("default"))); | |
12883 | #endif | |
12884 | ||
12885 | int fnord () { return 42; } | |
12886 | int main () | |
12887 | { | |
12888 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12889 | int status = $lt_dlunknown; | |
12890 | ||
12891 | if (self) | |
12892 | { | |
12893 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12894 | else | |
12895 | { | |
12896 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12897 | else puts (dlerror ()); | |
12898 | } | |
12899 | /* dlclose (self); */ | |
12900 | } | |
12901 | else | |
12902 | puts (dlerror ()); | |
12903 | ||
12904 | return status; | |
12905 | } | |
12906 | _LT_EOF | |
12907 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12908 | (eval $ac_link) 2>&5 | |
12909 | ac_status=$? | |
12910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12911 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12912 | (./conftest; exit; ) >&5 2>/dev/null | |
12913 | lt_status=$? | |
12914 | case x$lt_status in | |
12915 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12916 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12917 | x$lt_dlunknown|x*) ;; | |
12918 | esac | |
12919 | else : | |
12920 | # compilation failed | |
12921 | ||
12922 | fi | |
12923 | fi | |
12924 | rm -fr conftest* | |
12925 | ||
12926 | LIBS="$save_LIBS" | |
12927 | ||
12928 | fi | |
12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12930 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12931 | fi | |
12932 | fi | |
12933 | ||
12934 | if test x"$libltdl_cv_need_uscore" = xyes; then | |
12935 | ||
12936 | $as_echo "#define NEED_USCORE 1" >>confdefs.h | |
12937 | ||
12938 | fi | |
12939 | ||
12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 | |
12941 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12942 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12943 | $as_echo_n "(cached) " >&6 | |
12944 | else | |
12945 | # PORTME does your system automatically load deplibs for dlopen? | |
12946 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12947 | # For now, we just catch OSes we know something about -- in the | |
12948 | # future, we'll try test this programmatically. | |
12949 | lt_cv_sys_dlopen_deplibs=unknown | |
12950 | case $host_os in | |
12951 | aix3*|aix4.1.*|aix4.2.*) | |
12952 | # Unknown whether this is true for these versions of AIX, but | |
12953 | # we want this `case' here to explicitly catch those versions. | |
12954 | lt_cv_sys_dlopen_deplibs=unknown | |
12955 | ;; | |
12956 | aix[4-9]*) | |
12957 | lt_cv_sys_dlopen_deplibs=yes | |
12958 | ;; | |
12959 | amigaos*) | |
12960 | case $host_cpu in | |
12961 | powerpc) | |
12962 | lt_cv_sys_dlopen_deplibs=no | |
12963 | ;; | |
12964 | esac | |
12965 | ;; | |
12966 | darwin*) | |
12967 | # Assuming the user has installed a libdl from somewhere, this is true | |
12968 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12969 | lt_cv_sys_dlopen_deplibs=yes | |
12970 | ;; | |
12971 | freebsd* | dragonfly*) | |
12972 | lt_cv_sys_dlopen_deplibs=yes | |
12973 | ;; | |
12974 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12975 | # GNU and its variants, using gnu ld.so (Glibc) | |
12976 | lt_cv_sys_dlopen_deplibs=yes | |
12977 | ;; | |
12978 | hpux10*|hpux11*) | |
12979 | lt_cv_sys_dlopen_deplibs=yes | |
12980 | ;; | |
12981 | interix*) | |
12982 | lt_cv_sys_dlopen_deplibs=yes | |
12983 | ;; | |
12984 | irix[12345]*|irix6.[01]*) | |
12985 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12986 | # know how it worked for any of those versions. | |
12987 | lt_cv_sys_dlopen_deplibs=unknown | |
12988 | ;; | |
12989 | irix*) | |
12990 | # The case above catches anything before 6.2, and it's known that | |
12991 | # at 6.2 and later dlopen does load deplibs. | |
12992 | lt_cv_sys_dlopen_deplibs=yes | |
12993 | ;; | |
12994 | netbsd* | netbsdelf*-gnu) | |
12995 | lt_cv_sys_dlopen_deplibs=yes | |
12996 | ;; | |
12997 | openbsd*) | |
12998 | lt_cv_sys_dlopen_deplibs=yes | |
12999 | ;; | |
13000 | osf[1234]*) | |
13001 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
13002 | # it did *not* use an RPATH in a shared library to find objects the | |
13003 | # library depends on, so we explicitly say `no'. | |
13004 | lt_cv_sys_dlopen_deplibs=no | |
13005 | ;; | |
13006 | osf5.0|osf5.0a|osf5.1) | |
13007 | # dlopen *does* load deplibs and with the right loader patch applied | |
13008 | # it even uses RPATH in a shared library to search for shared objects | |
13009 | # that the library depends on, but there's no easy way to know if that | |
13010 | # patch is installed. Since this is the case, all we can really | |
13011 | # say is unknown -- it depends on the patch being installed. If | |
13012 | # it is, this changes to `yes'. Without it, it would be `no'. | |
13013 | lt_cv_sys_dlopen_deplibs=unknown | |
13014 | ;; | |
13015 | osf*) | |
13016 | # the two cases above should catch all versions of osf <= 5.1. Read | |
13017 | # the comments above for what we know about them. | |
13018 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
13019 | # is used to find them so we can finally say `yes'. | |
13020 | lt_cv_sys_dlopen_deplibs=yes | |
13021 | ;; | |
13022 | qnx*) | |
13023 | lt_cv_sys_dlopen_deplibs=yes | |
13024 | ;; | |
13025 | solaris*) | |
13026 | lt_cv_sys_dlopen_deplibs=yes | |
13027 | ;; | |
13028 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13029 | libltdl_cv_sys_dlopen_deplibs=yes | |
13030 | ;; | |
13031 | esac | |
13032 | ||
13033 | fi | |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
13035 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
13036 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
13037 | ||
13038 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h | |
13039 | ||
13040 | fi | |
13041 | ||
13042 | : | |
13043 | ||
13044 | for ac_header in argz.h | |
13045 | do : | |
13046 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
13047 | " | |
13048 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
13049 | cat >>confdefs.h <<_ACEOF | |
13050 | #define HAVE_ARGZ_H 1 | |
13051 | _ACEOF | |
13052 | ||
13053 | fi | |
13054 | ||
13055 | done | |
13056 | ||
13057 | ||
13058 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) | |
13059 | # include <argz.h> | |
13060 | #endif | |
13061 | " | |
13062 | if test "x$ac_cv_type_error_t" = xyes; then : | |
13063 | ||
13064 | cat >>confdefs.h <<_ACEOF | |
13065 | #define HAVE_ERROR_T 1 | |
13066 | _ACEOF | |
13067 | ||
13068 | ||
13069 | else | |
13070 | ||
13071 | $as_echo "#define error_t int" >>confdefs.h | |
13072 | ||
13073 | ||
13074 | $as_echo "#define __error_t_defined 1" >>confdefs.h | |
13075 | ||
13076 | fi | |
13077 | ||
13078 | ||
13079 | ARGZ_H= | |
13080 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
13081 | argz_next argz_stringify | |
13082 | do : | |
13083 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13084 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13085 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13086 | cat >>confdefs.h <<_ACEOF | |
13087 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13088 | _ACEOF | |
13089 | ||
13090 | else | |
13091 | ARGZ_H=argz.h; | |
13092 | ||
13093 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13094 | ||
13095 | fi | |
13096 | done | |
13097 | ||
13098 | ||
13099 | if test -z "$ARGZ_H"; then : | |
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
13101 | $as_echo_n "checking if argz actually works... " >&6; } | |
13102 | if ${lt_cv_sys_argz_works+:} false; then : | |
13103 | $as_echo_n "(cached) " >&6 | |
13104 | else | |
13105 | case $host_os in #( | |
13106 | *cygwin*) | |
13107 | lt_cv_sys_argz_works=no | |
13108 | if test "$cross_compiling" != no; then | |
13109 | lt_cv_sys_argz_works="guessing no" | |
13110 | else | |
13111 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13112 | save_IFS=$IFS | |
13113 | IFS=-. | |
13114 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13115 | IFS=$save_IFS | |
13116 | lt_os_major=${2-0} | |
13117 | lt_os_minor=${3-0} | |
13118 | lt_os_micro=${4-0} | |
13119 | if test "$lt_os_major" -gt 1 \ | |
13120 | || { test "$lt_os_major" -eq 1 \ | |
13121 | && { test "$lt_os_minor" -gt 5 \ | |
13122 | || { test "$lt_os_minor" -eq 5 \ | |
13123 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
13124 | lt_cv_sys_argz_works=yes | |
13125 | fi | |
13126 | fi | |
13127 | ;; #( | |
13128 | *) lt_cv_sys_argz_works=yes ;; | |
13129 | esac | |
13130 | fi | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
13132 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
13133 | if test "$lt_cv_sys_argz_works" = yes; then : | |
13134 | ||
13135 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h | |
13136 | ||
13137 | else | |
13138 | ARGZ_H=argz.h | |
13139 | ||
13140 | ||
13141 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13142 | ||
13143 | fi | |
13144 | fi | |
13145 | ||
13146 | ||
13147 | ||
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 | |
13149 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13150 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
13151 | $as_echo_n "(cached) " >&6 | |
13152 | else | |
13153 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | |
13154 | libltdl_cv_preloaded_symbols=yes | |
13155 | else | |
13156 | libltdl_cv_preloaded_symbols=no | |
13157 | fi | |
13158 | ||
13159 | fi | |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | |
13161 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
13162 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
13163 | ||
13164 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
13165 | ||
13166 | fi | |
13167 | ||
13168 | # Set options | |
13169 | ||
13170 | ||
13171 | ||
13172 | ||
13173 | ||
13174 | ||
13175 | ||
13176 | ||
13177 | ||
13178 | ||
13179 | ||
13180 | ||
13181 | # Check whether --with-included_ltdl was given. | |
13182 | if test "${with_included_ltdl+set}" = set; then : | |
13183 | withval=$with_included_ltdl; | |
13184 | fi | |
13185 | ||
13186 | ||
13187 | if test "x$with_included_ltdl" != xyes; then | |
13188 | # We are not being forced to use the included libltdl sources, so | |
13189 | # decide whether there is a useful installed version we can use. | |
13190 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
13191 | ||
13192 | " | |
13193 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13194 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
13195 | #include <ltdl.h> | |
13196 | " | |
13197 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
13199 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13200 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
13201 | $as_echo_n "(cached) " >&6 | |
13202 | else | |
13203 | ac_check_lib_save_LIBS=$LIBS | |
13204 | LIBS="-lltdl $LIBS" | |
13205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13206 | /* end confdefs.h. */ | |
13207 | ||
13208 | /* Override any GCC internal prototype to avoid an error. | |
13209 | Use char because int might match the return type of a GCC | |
13210 | builtin and then its argument prototype would still apply. */ | |
13211 | #ifdef __cplusplus | |
13212 | extern "C" | |
13213 | #endif | |
13214 | char lt_dladvise_preload (); | |
13215 | int | |
13216 | main () | |
13217 | { | |
13218 | return lt_dladvise_preload (); | |
13219 | ; | |
13220 | return 0; | |
13221 | } | |
13222 | _ACEOF | |
13223 | if ac_fn_c_try_link "$LINENO"; then : | |
13224 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
13225 | else | |
13226 | ac_cv_lib_ltdl_lt_dladvise_preload=no | |
13227 | fi | |
13228 | rm -f core conftest.err conftest.$ac_objext \ | |
13229 | conftest$ac_exeext conftest.$ac_ext | |
13230 | LIBS=$ac_check_lib_save_LIBS | |
13231 | fi | |
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 | |
13233 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13234 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
13235 | with_included_ltdl=no | |
13236 | else | |
13237 | with_included_ltdl=yes | |
13238 | fi | |
13239 | ||
13240 | else | |
13241 | with_included_ltdl=yes | |
13242 | fi | |
13243 | ||
13244 | else | |
13245 | with_included_ltdl=yes | |
13246 | fi | |
13247 | ||
13248 | ||
13249 | fi | |
13250 | ||
13251 | ||
13252 | ||
13253 | ||
13254 | # Check whether --with-ltdl_include was given. | |
13255 | if test "${with_ltdl_include+set}" = set; then : | |
13256 | withval=$with_ltdl_include; | |
13257 | fi | |
13258 | ||
13259 | ||
13260 | if test -n "$with_ltdl_include"; then | |
13261 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13262 | else | |
13263 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
13264 | fi | |
13265 | else | |
13266 | with_ltdl_include=no | |
13267 | fi | |
13268 | ||
13269 | ||
13270 | # Check whether --with-ltdl_lib was given. | |
13271 | if test "${with_ltdl_lib+set}" = set; then : | |
13272 | withval=$with_ltdl_lib; | |
13273 | fi | |
13274 | ||
13275 | ||
13276 | if test -n "$with_ltdl_lib"; then | |
13277 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13278 | else | |
13279 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
13280 | fi | |
13281 | else | |
13282 | with_ltdl_lib=no | |
13283 | fi | |
13284 | ||
13285 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13286 | ,yes,no,no,) | |
13287 | case $enable_ltdl_convenience in | |
13288 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13289 | "") enable_ltdl_convenience=yes | |
13290 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13291 | esac | |
13292 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13293 | LTDLDEPS=$LIBLTDL | |
13294 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13295 | ||
13296 | ||
13297 | ||
13298 | ||
13299 | ||
13300 | # For backwards non-gettext consistent compatibility... | |
13301 | INCLTDL="$LTDLINCL" | |
13302 | ||
13303 | ||
13304 | ;; | |
13305 | ,no,no,no,) | |
13306 | # If the included ltdl is not to be used, then use the | |
13307 | # preinstalled libltdl we found. | |
13308 | ||
13309 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13310 | ||
13311 | LIBLTDL=-lltdl | |
13312 | LTDLDEPS= | |
13313 | LTDLINCL= | |
13314 | ;; | |
13315 | ,no*,no,*) | |
13316 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13317 | ;; | |
13318 | *) with_included_ltdl=no | |
13319 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13320 | LTDLDEPS= | |
13321 | LTDLINCL="-I$with_ltdl_include" | |
13322 | ;; | |
13323 | esac | |
13324 | INCLTDL="$LTDLINCL" | |
13325 | ||
13326 | # Report our decision... | |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13328 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13330 | $as_echo "$LTDLINCL" >&6; } | |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13332 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13334 | $as_echo "$LIBLTDL" >&6; } | |
13335 | ||
13336 | ||
13337 | ||
13338 | # Check whether --enable-ltdl-install was given. | |
13339 | if test "${enable_ltdl_install+set}" = set; then : | |
13340 | enableval=$enable_ltdl_install; | |
13341 | fi | |
13342 | ||
13343 | ||
13344 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13345 | *yes*) ;; | |
13346 | *) enable_ltdl_convenience=yes ;; | |
13347 | esac | |
13348 | ||
13349 | if test x"${enable_ltdl_install-no}" != xno; then | |
13350 | INSTALL_LTDL_TRUE= | |
13351 | INSTALL_LTDL_FALSE='#' | |
13352 | else | |
13353 | INSTALL_LTDL_TRUE='#' | |
13354 | INSTALL_LTDL_FALSE= | |
13355 | fi | |
13356 | ||
13357 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13358 | CONVENIENCE_LTDL_TRUE= | |
13359 | CONVENIENCE_LTDL_FALSE='#' | |
13360 | else | |
13361 | CONVENIENCE_LTDL_TRUE='#' | |
13362 | CONVENIENCE_LTDL_FALSE= | |
13363 | fi | |
13364 | ||
13365 | ||
13366 | ||
13367 | subdirs="$subdirs libltdl" | |
13368 | ||
13369 | ||
13370 | ||
13371 | ||
13372 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | |
13373 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13374 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13375 | # definitions required by ltdl.c. | |
13376 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
13377 | ||
13378 | ||
13379 | ||
13380 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h | |
13381 | do : | |
13382 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13383 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13384 | " | |
13385 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13386 | cat >>confdefs.h <<_ACEOF | |
13387 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13388 | _ACEOF | |
13389 | ||
13390 | fi | |
13391 | ||
13392 | done | |
13393 | ||
13394 | ||
13395 | for ac_func in closedir opendir readdir | |
13396 | do : | |
13397 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13398 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13399 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13400 | cat >>confdefs.h <<_ACEOF | |
13401 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13402 | _ACEOF | |
13403 | ||
13404 | else | |
13405 | ||
13406 | ||
13407 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | |
13408 | ||
13409 | fi | |
13410 | done | |
13411 | ||
13412 | for ac_func in strlcat strlcpy | |
13413 | do : | |
13414 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13415 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13416 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13417 | cat >>confdefs.h <<_ACEOF | |
13418 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13419 | _ACEOF | |
13420 | ||
13421 | else | |
13422 | ||
13423 | ||
13424 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
13425 | ||
13426 | fi | |
13427 | done | |
13428 | ||
13429 | ||
13430 | ||
13431 | cat >>confdefs.h <<_ACEOF | |
13432 | #define LT_LIBEXT "$libext" | |
13433 | _ACEOF | |
13434 | ||
13435 | ||
13436 | name= | |
13437 | eval "lt_libprefix=\"$libname_spec\"" | |
13438 | ||
13439 | cat >>confdefs.h <<_ACEOF | |
13440 | #define LT_LIBPREFIX "$lt_libprefix" | |
13441 | _ACEOF | |
13442 | ||
13443 | ||
13444 | name=ltdl | |
13445 | eval "LTDLOPEN=\"$libname_spec\"" | |
13446 | ||
13447 | ||
13448 | ||
13449 | ||
13450 | ||
13451 | ||
13452 | ||
13453 | ||
13454 | # Only expand once: | |
13455 | ||
13456 | ||
13457 | ||
13458 | build_ltdl=$with_included_ltdl | |
13459 | if test x"$build_ltdl" = x"yes"; then | |
13460 | BUILD_LTDL_TRUE= | |
13461 | BUILD_LTDL_FALSE='#' | |
13462 | else | |
13463 | BUILD_LTDL_TRUE='#' | |
13464 | BUILD_LTDL_FALSE= | |
13465 | fi | |
13466 | ||
13467 | ||
13468 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
13469 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" | |
13470 | fi | |
13471 | ||
13472 | if test "$ac_cv_prog_cc_g" = yes; then | |
13473 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
13474 | fi | |
13475 | ||
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
13477 | $as_echo_n "checking for /dev/null... " >&6; } | |
13478 | if test -c /dev/null ; then | |
13479 | ||
13480 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
13481 | ||
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13483 | $as_echo "yes" >&6; } | |
13484 | else | |
13485 | ||
13486 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h | |
13487 | ||
13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
13489 | $as_echo "no - using devnull.log" >&6; } | |
13490 | fi | |
13491 | ||
13492 | if test ! -z "$CFLAGS"; then | |
13493 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
13494 | fi | |
13495 | ||
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | |
13497 | $as_echo_n "checking for library containing strerror... " >&6; } | |
13498 | if ${ac_cv_search_strerror+:} false; then : | |
13499 | $as_echo_n "(cached) " >&6 | |
13500 | else | |
13501 | ac_func_search_save_LIBS=$LIBS | |
13502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13503 | /* end confdefs.h. */ | |
13504 | ||
13505 | /* Override any GCC internal prototype to avoid an error. | |
13506 | Use char because int might match the return type of a GCC | |
13507 | builtin and then its argument prototype would still apply. */ | |
13508 | #ifdef __cplusplus | |
13509 | extern "C" | |
13510 | #endif | |
13511 | char strerror (); | |
13512 | int | |
13513 | main () | |
13514 | { | |
13515 | return strerror (); | |
13516 | ; | |
13517 | return 0; | |
13518 | } | |
13519 | _ACEOF | |
13520 | for ac_lib in '' cposix; do | |
13521 | if test -z "$ac_lib"; then | |
13522 | ac_res="none required" | |
13523 | else | |
13524 | ac_res=-l$ac_lib | |
13525 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13526 | fi | |
13527 | if ac_fn_c_try_link "$LINENO"; then : | |
13528 | ac_cv_search_strerror=$ac_res | |
13529 | fi | |
13530 | rm -f core conftest.err conftest.$ac_objext \ | |
13531 | conftest$ac_exeext | |
13532 | if ${ac_cv_search_strerror+:} false; then : | |
13533 | break | |
13534 | fi | |
13535 | done | |
13536 | if ${ac_cv_search_strerror+:} false; then : | |
13537 | ||
13538 | else | |
13539 | ac_cv_search_strerror=no | |
13540 | fi | |
13541 | rm conftest.$ac_ext | |
13542 | LIBS=$ac_func_search_save_LIBS | |
13543 | fi | |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
13545 | $as_echo "$ac_cv_search_strerror" >&6; } | |
13546 | ac_res=$ac_cv_search_strerror | |
13547 | if test "$ac_res" != no; then : | |
13548 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13549 | ||
13550 | fi | |
13551 | ||
13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
13553 | $as_echo_n "checking for inline... " >&6; } | |
13554 | if ${ac_cv_c_inline+:} false; then : | |
13555 | $as_echo_n "(cached) " >&6 | |
13556 | else | |
13557 | ac_cv_c_inline=no | |
13558 | for ac_kw in inline __inline__ __inline; do | |
13559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13560 | /* end confdefs.h. */ | |
13561 | #ifndef __cplusplus | |
13562 | typedef int foo_t; | |
13563 | static $ac_kw foo_t static_foo () {return 0; } | |
13564 | $ac_kw foo_t foo () {return 0; } | |
13565 | #endif | |
13566 | ||
13567 | _ACEOF | |
13568 | if ac_fn_c_try_compile "$LINENO"; then : | |
13569 | ac_cv_c_inline=$ac_kw | |
13570 | fi | |
13571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13572 | test "$ac_cv_c_inline" != no && break | |
13573 | done | |
13574 | ||
13575 | fi | |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13577 | $as_echo "$ac_cv_c_inline" >&6; } | |
13578 | ||
13579 | case $ac_cv_c_inline in | |
13580 | inline | yes) ;; | |
13581 | *) | |
13582 | case $ac_cv_c_inline in | |
13583 | no) ac_val=;; | |
13584 | *) ac_val=$ac_cv_c_inline;; | |
13585 | esac | |
13586 | cat >>confdefs.h <<_ACEOF | |
13587 | #ifndef __cplusplus | |
13588 | #define inline $ac_val | |
13589 | #endif | |
13590 | _ACEOF | |
13591 | ;; | |
13592 | esac | |
13593 | ||
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
13595 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13596 | set x ${MAKE-make} | |
13597 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
13598 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
13599 | $as_echo_n "(cached) " >&6 | |
13600 | else | |
13601 | cat >conftest.make <<\_ACEOF | |
13602 | SHELL = /bin/sh | |
13603 | all: | |
13604 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
13605 | _ACEOF | |
13606 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
13607 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
13608 | *@@@%%%=?*=@@@%%%*) | |
13609 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13610 | *) | |
13611 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
13612 | esac | |
13613 | rm -f conftest.make | |
13614 | fi | |
13615 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13617 | $as_echo "yes" >&6; } | |
13618 | SET_MAKE= | |
13619 | else | |
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13621 | $as_echo "no" >&6; } | |
13622 | SET_MAKE="MAKE=${MAKE-make}" | |
13623 | fi | |
13624 | ||
13625 | ||
13626 | # Extract the first word of "rm", so it can be a program name with args. | |
13627 | set dummy rm; ac_word=$2 | |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13629 | $as_echo_n "checking for $ac_word... " >&6; } | |
13630 | if ${ac_cv_path_RM+:} false; then : | |
13631 | $as_echo_n "(cached) " >&6 | |
13632 | else | |
13633 | case $RM in | |
13634 | [\\/]* | ?:[\\/]*) | |
13635 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
13636 | ;; | |
13637 | *) | |
13638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13639 | for as_dir in $PATH | |
13640 | do | |
13641 | IFS=$as_save_IFS | |
13642 | test -z "$as_dir" && as_dir=. | |
13643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13645 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
13646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13647 | break 2 | |
13648 | fi | |
13649 | done | |
13650 | done | |
13651 | IFS=$as_save_IFS | |
13652 | ||
13653 | ;; | |
13654 | esac | |
13655 | fi | |
13656 | RM=$ac_cv_path_RM | |
13657 | if test -n "$RM"; then | |
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
13659 | $as_echo "$RM" >&6; } | |
13660 | else | |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13662 | $as_echo "no" >&6; } | |
13663 | fi | |
13664 | ||
13665 | ||
13666 | # Extract the first word of "cp", so it can be a program name with args. | |
13667 | set dummy cp; ac_word=$2 | |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13669 | $as_echo_n "checking for $ac_word... " >&6; } | |
13670 | if ${ac_cv_path_CP+:} false; then : | |
13671 | $as_echo_n "(cached) " >&6 | |
13672 | else | |
13673 | case $CP in | |
13674 | [\\/]* | ?:[\\/]*) | |
13675 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
13676 | ;; | |
13677 | *) | |
13678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13679 | for as_dir in $PATH | |
13680 | do | |
13681 | IFS=$as_save_IFS | |
13682 | test -z "$as_dir" && as_dir=. | |
13683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13685 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
13686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13687 | break 2 | |
13688 | fi | |
13689 | done | |
13690 | done | |
13691 | IFS=$as_save_IFS | |
13692 | ||
13693 | ;; | |
13694 | esac | |
13695 | fi | |
13696 | CP=$ac_cv_path_CP | |
13697 | if test -n "$CP"; then | |
13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
13699 | $as_echo "$CP" >&6; } | |
13700 | else | |
13701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13702 | $as_echo "no" >&6; } | |
13703 | fi | |
13704 | ||
13705 | ||
13706 | # Extract the first word of "mv", so it can be a program name with args. | |
13707 | set dummy mv; ac_word=$2 | |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13709 | $as_echo_n "checking for $ac_word... " >&6; } | |
13710 | if ${ac_cv_path_MV+:} false; then : | |
13711 | $as_echo_n "(cached) " >&6 | |
13712 | else | |
13713 | case $MV in | |
13714 | [\\/]* | ?:[\\/]*) | |
13715 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
13716 | ;; | |
13717 | *) | |
13718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13719 | for as_dir in $PATH | |
13720 | do | |
13721 | IFS=$as_save_IFS | |
13722 | test -z "$as_dir" && as_dir=. | |
13723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13725 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
13726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13727 | break 2 | |
13728 | fi | |
13729 | done | |
13730 | done | |
13731 | IFS=$as_save_IFS | |
13732 | ||
13733 | ;; | |
13734 | esac | |
13735 | fi | |
13736 | MV=$ac_cv_path_MV | |
13737 | if test -n "$MV"; then | |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
13739 | $as_echo "$MV" >&6; } | |
13740 | else | |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13742 | $as_echo "no" >&6; } | |
13743 | fi | |
13744 | ||
13745 | ||
13746 | # Extract the first word of "ln", so it can be a program name with args. | |
13747 | set dummy ln; ac_word=$2 | |
13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13749 | $as_echo_n "checking for $ac_word... " >&6; } | |
13750 | if ${ac_cv_path_LN+:} false; then : | |
13751 | $as_echo_n "(cached) " >&6 | |
13752 | else | |
13753 | case $LN in | |
13754 | [\\/]* | ?:[\\/]*) | |
13755 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
13756 | ;; | |
13757 | *) | |
13758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13759 | for as_dir in $PATH | |
13760 | do | |
13761 | IFS=$as_save_IFS | |
13762 | test -z "$as_dir" && as_dir=. | |
13763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13765 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
13766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13767 | break 2 | |
13768 | fi | |
13769 | done | |
13770 | done | |
13771 | IFS=$as_save_IFS | |
13772 | ||
13773 | ;; | |
13774 | esac | |
13775 | fi | |
13776 | LN=$ac_cv_path_LN | |
13777 | if test -n "$LN"; then | |
13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
13779 | $as_echo "$LN" >&6; } | |
13780 | else | |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13782 | $as_echo "no" >&6; } | |
13783 | fi | |
13784 | ||
13785 | ||
13786 | # Extract the first word of "sed", so it can be a program name with args. | |
13787 | set dummy sed; ac_word=$2 | |
13788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13789 | $as_echo_n "checking for $ac_word... " >&6; } | |
13790 | if ${ac_cv_path_SED+:} false; then : | |
13791 | $as_echo_n "(cached) " >&6 | |
13792 | else | |
13793 | case $SED in | |
13794 | [\\/]* | ?:[\\/]*) | |
13795 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
13796 | ;; | |
13797 | *) | |
13798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13799 | for as_dir in $PATH | |
13800 | do | |
13801 | IFS=$as_save_IFS | |
13802 | test -z "$as_dir" && as_dir=. | |
13803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13805 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
13806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13807 | break 2 | |
13808 | fi | |
13809 | done | |
13810 | done | |
13811 | IFS=$as_save_IFS | |
13812 | ||
13813 | ;; | |
13814 | esac | |
13815 | fi | |
13816 | SED=$ac_cv_path_SED | |
13817 | if test -n "$SED"; then | |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
13819 | $as_echo "$SED" >&6; } | |
13820 | else | |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13822 | $as_echo "no" >&6; } | |
13823 | fi | |
13824 | ||
13825 | ||
13826 | # Extract the first word of "ar", so it can be a program name with args. | |
13827 | set dummy ar; ac_word=$2 | |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13829 | $as_echo_n "checking for $ac_word... " >&6; } | |
13830 | if ${ac_cv_path_AR+:} false; then : | |
13831 | $as_echo_n "(cached) " >&6 | |
13832 | else | |
13833 | case $AR in | |
13834 | [\\/]* | ?:[\\/]*) | |
13835 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
13836 | ;; | |
13837 | *) | |
13838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13839 | for as_dir in $PATH | |
13840 | do | |
13841 | IFS=$as_save_IFS | |
13842 | test -z "$as_dir" && as_dir=. | |
13843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13845 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
13846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13847 | break 2 | |
13848 | fi | |
13849 | done | |
13850 | done | |
13851 | IFS=$as_save_IFS | |
13852 | ||
13853 | ;; | |
13854 | esac | |
13855 | fi | |
13856 | AR=$ac_cv_path_AR | |
13857 | if test -n "$AR"; then | |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13859 | $as_echo "$AR" >&6; } | |
13860 | else | |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13862 | $as_echo "no" >&6; } | |
13863 | fi | |
13864 | ||
13865 | ||
13866 | # Extract the first word of "ld", so it can be a program name with args. | |
13867 | set dummy ld; ac_word=$2 | |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13869 | $as_echo_n "checking for $ac_word... " >&6; } | |
13870 | if ${ac_cv_path_LD+:} false; then : | |
13871 | $as_echo_n "(cached) " >&6 | |
13872 | else | |
13873 | case $LD in | |
13874 | [\\/]* | ?:[\\/]*) | |
13875 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
13876 | ;; | |
13877 | *) | |
13878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13879 | for as_dir in $PATH | |
13880 | do | |
13881 | IFS=$as_save_IFS | |
13882 | test -z "$as_dir" && as_dir=. | |
13883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13885 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
13886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13887 | break 2 | |
13888 | fi | |
13889 | done | |
13890 | done | |
13891 | IFS=$as_save_IFS | |
13892 | ||
13893 | ;; | |
13894 | esac | |
13895 | fi | |
13896 | LD=$ac_cv_path_LD | |
13897 | if test -n "$LD"; then | |
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13899 | $as_echo "$LD" >&6; } | |
13900 | else | |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13902 | $as_echo "no" >&6; } | |
13903 | fi | |
13904 | ||
13905 | ||
13906 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13907 | set dummy ranlib; ac_word=$2 | |
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13909 | $as_echo_n "checking for $ac_word... " >&6; } | |
13910 | if ${ac_cv_path_RANLIB+:} false; then : | |
13911 | $as_echo_n "(cached) " >&6 | |
13912 | else | |
13913 | case $RANLIB in | |
13914 | [\\/]* | ?:[\\/]*) | |
13915 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
13916 | ;; | |
13917 | *) | |
13918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13919 | for as_dir in $PATH | |
13920 | do | |
13921 | IFS=$as_save_IFS | |
13922 | test -z "$as_dir" && as_dir=. | |
13923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13925 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" | |
13926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13927 | break 2 | |
13928 | fi | |
13929 | done | |
13930 | done | |
13931 | IFS=$as_save_IFS | |
13932 | ||
13933 | ;; | |
13934 | esac | |
13935 | fi | |
13936 | RANLIB=$ac_cv_path_RANLIB | |
13937 | if test -n "$RANLIB"; then | |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
13939 | $as_echo "$RANLIB" >&6; } | |
13940 | else | |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13942 | $as_echo "no" >&6; } | |
13943 | fi | |
13944 | ||
13945 | ||
13946 | # Extract the first word of "touch", so it can be a program name with args. | |
13947 | set dummy touch; ac_word=$2 | |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13949 | $as_echo_n "checking for $ac_word... " >&6; } | |
13950 | if ${ac_cv_path_TOUCH+:} false; then : | |
13951 | $as_echo_n "(cached) " >&6 | |
13952 | else | |
13953 | case $TOUCH in | |
13954 | [\\/]* | ?:[\\/]*) | |
13955 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
13956 | ;; | |
13957 | *) | |
13958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13959 | for as_dir in $PATH | |
13960 | do | |
13961 | IFS=$as_save_IFS | |
13962 | test -z "$as_dir" && as_dir=. | |
13963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13965 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
13966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13967 | break 2 | |
13968 | fi | |
13969 | done | |
13970 | done | |
13971 | IFS=$as_save_IFS | |
13972 | ||
13973 | ;; | |
13974 | esac | |
13975 | fi | |
13976 | TOUCH=$ac_cv_path_TOUCH | |
13977 | if test -n "$TOUCH"; then | |
13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
13979 | $as_echo "$TOUCH" >&6; } | |
13980 | else | |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13982 | $as_echo "no" >&6; } | |
13983 | fi | |
13984 | ||
13985 | ||
13986 | ||
13987 | for ac_prog in 'bison -y' byacc | |
13988 | do | |
13989 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13990 | set dummy $ac_prog; ac_word=$2 | |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13992 | $as_echo_n "checking for $ac_word... " >&6; } | |
13993 | if ${ac_cv_prog_YACC+:} false; then : | |
13994 | $as_echo_n "(cached) " >&6 | |
13995 | else | |
13996 | if test -n "$YACC"; then | |
13997 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13998 | else | |
13999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14000 | for as_dir in $PATH | |
14001 | do | |
14002 | IFS=$as_save_IFS | |
14003 | test -z "$as_dir" && as_dir=. | |
14004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14005 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14006 | ac_cv_prog_YACC="$ac_prog" | |
14007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14008 | break 2 | |
14009 | fi | |
14010 | done | |
14011 | done | |
14012 | IFS=$as_save_IFS | |
14013 | ||
14014 | fi | |
14015 | fi | |
14016 | YACC=$ac_cv_prog_YACC | |
14017 | if test -n "$YACC"; then | |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14019 | $as_echo "$YACC" >&6; } | |
14020 | else | |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14022 | $as_echo "no" >&6; } | |
14023 | fi | |
14024 | ||
14025 | ||
14026 | test -n "$YACC" && break | |
14027 | done | |
14028 | test -n "$YACC" || YACC="yacc" | |
14029 | ||
14030 | ||
14031 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
14032 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 | |
14033 | fi | |
14034 | ||
14035 | for ac_prog in flex lex | |
14036 | do | |
14037 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14038 | set dummy $ac_prog; ac_word=$2 | |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14040 | $as_echo_n "checking for $ac_word... " >&6; } | |
14041 | if ${ac_cv_prog_LEX+:} false; then : | |
14042 | $as_echo_n "(cached) " >&6 | |
14043 | else | |
14044 | if test -n "$LEX"; then | |
14045 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
14046 | else | |
14047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14048 | for as_dir in $PATH | |
14049 | do | |
14050 | IFS=$as_save_IFS | |
14051 | test -z "$as_dir" && as_dir=. | |
14052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14054 | ac_cv_prog_LEX="$ac_prog" | |
14055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14056 | break 2 | |
14057 | fi | |
14058 | done | |
14059 | done | |
14060 | IFS=$as_save_IFS | |
14061 | ||
14062 | fi | |
14063 | fi | |
14064 | LEX=$ac_cv_prog_LEX | |
14065 | if test -n "$LEX"; then | |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14067 | $as_echo "$LEX" >&6; } | |
14068 | else | |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14070 | $as_echo "no" >&6; } | |
14071 | fi | |
14072 | ||
14073 | ||
14074 | test -n "$LEX" && break | |
14075 | done | |
14076 | test -n "$LEX" || LEX=":" | |
14077 | ||
14078 | if test "x$LEX" != "x:"; then | |
14079 | cat >conftest.l <<_ACEOF | |
14080 | %% | |
14081 | a { ECHO; } | |
14082 | b { REJECT; } | |
14083 | c { yymore (); } | |
14084 | d { yyless (1); } | |
14085 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ | |
14086 | yyless ((input () != 0)); } | |
14087 | f { unput (yytext[0]); } | |
14088 | . { BEGIN INITIAL; } | |
14089 | %% | |
14090 | #ifdef YYTEXT_POINTER | |
14091 | extern char *yytext; | |
14092 | #endif | |
14093 | int | |
14094 | main (void) | |
14095 | { | |
14096 | return ! yylex () + ! yywrap (); | |
14097 | } | |
14098 | _ACEOF | |
14099 | { { ac_try="$LEX conftest.l" | |
14100 | case "(($ac_try" in | |
14101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14102 | *) ac_try_echo=$ac_try;; | |
14103 | esac | |
14104 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14105 | $as_echo "$ac_try_echo"; } >&5 | |
14106 | (eval "$LEX conftest.l") 2>&5 | |
14107 | ac_status=$? | |
14108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14109 | test $ac_status = 0; } | |
14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14111 | $as_echo_n "checking lex output file root... " >&6; } | |
14112 | if ${ac_cv_prog_lex_root+:} false; then : | |
14113 | $as_echo_n "(cached) " >&6 | |
14114 | else | |
14115 | ||
14116 | if test -f lex.yy.c; then | |
14117 | ac_cv_prog_lex_root=lex.yy | |
14118 | elif test -f lexyy.c; then | |
14119 | ac_cv_prog_lex_root=lexyy | |
14120 | else | |
14121 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 | |
14122 | fi | |
14123 | fi | |
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14125 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14126 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14127 | ||
14128 | if test -z "${LEXLIB+set}"; then | |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14130 | $as_echo_n "checking lex library... " >&6; } | |
14131 | if ${ac_cv_lib_lex+:} false; then : | |
14132 | $as_echo_n "(cached) " >&6 | |
14133 | else | |
14134 | ||
14135 | ac_save_LIBS=$LIBS | |
14136 | ac_cv_lib_lex='none needed' | |
14137 | for ac_lib in '' -lfl -ll; do | |
14138 | LIBS="$ac_lib $ac_save_LIBS" | |
14139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14140 | /* end confdefs.h. */ | |
14141 | `cat $LEX_OUTPUT_ROOT.c` | |
14142 | _ACEOF | |
14143 | if ac_fn_c_try_link "$LINENO"; then : | |
14144 | ac_cv_lib_lex=$ac_lib | |
14145 | fi | |
14146 | rm -f core conftest.err conftest.$ac_objext \ | |
14147 | conftest$ac_exeext conftest.$ac_ext | |
14148 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14149 | done | |
14150 | LIBS=$ac_save_LIBS | |
14151 | ||
14152 | fi | |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
14154 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14155 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14156 | fi | |
14157 | ||
14158 | ||
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14160 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
14161 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : | |
14162 | $as_echo_n "(cached) " >&6 | |
14163 | else | |
14164 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
14165 | # default is implementation-dependent. Figure out which it is, since | |
14166 | # not all implementations provide the %pointer and %array declarations. | |
14167 | ac_cv_prog_lex_yytext_pointer=no | |
14168 | ac_save_LIBS=$LIBS | |
14169 | LIBS="$LEXLIB $ac_save_LIBS" | |
14170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14171 | /* end confdefs.h. */ | |
14172 | ||
14173 | #define YYTEXT_POINTER 1 | |
14174 | `cat $LEX_OUTPUT_ROOT.c` | |
14175 | _ACEOF | |
14176 | if ac_fn_c_try_link "$LINENO"; then : | |
14177 | ac_cv_prog_lex_yytext_pointer=yes | |
14178 | fi | |
14179 | rm -f core conftest.err conftest.$ac_objext \ | |
14180 | conftest$ac_exeext conftest.$ac_ext | |
14181 | LIBS=$ac_save_LIBS | |
14182 | ||
14183 | fi | |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
14185 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14186 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
14187 | ||
14188 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h | |
14189 | ||
14190 | fi | |
14191 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14192 | ||
14193 | fi | |
14194 | ||
14195 | if test "$LEX" = ":"; then | |
14196 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 | |
14197 | fi | |
14198 | ||
14199 | # Check whether --enable-fhs-paths was given. | |
14200 | if test "${enable_fhs_paths+set}" = set; then : | |
14201 | enableval=$enable_fhs_paths; | |
14202 | else | |
14203 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14204 | test "$localstatedir" = '${prefix}/var' && \ | |
14205 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14206 | enable_fhs_paths=no | |
14207 | else | |
14208 | enable_fhs_paths=yes | |
14209 | fi | |
14210 | ||
14211 | fi | |
14212 | ||
14213 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14214 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14215 | rundir=${rundir-'${prefix}/run'} | |
14216 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14217 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14218 | else | |
14219 | libexecdir='${bindir}' | |
14220 | pkglibexecdir='${libexecdir}' | |
14221 | rundir='${sysconfdir}' | |
14222 | pkgrundir='${rundir}' | |
14223 | localstatedir='${prefix}' | |
14224 | pkglocalstatedir='${sysconfdir}' | |
14225 | fi | |
14226 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' | |
14227 | ||
14228 | ||
14229 | ||
14230 | ||
14231 | ||
14232 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14233 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14234 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14235 | ac_define_dir=`eval echo $last_ac_define_dir` | |
14236 | ac_define_dir_counter=0 | |
14237 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
14238 | last_ac_define_dir="$ac_define_dir" | |
14239 | ac_define_dir=`eval echo $last_ac_define_dir` | |
14240 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
14241 | if test "x$ac_define_dir_counter" = x128; then : | |
14242 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
14243 | break | |
14244 | fi | |
14245 | done | |
14246 | PKGLOCALSTATEDIR="$ac_define_dir" | |
14247 | ||
14248 | ||
14249 | cat >>confdefs.h <<_ACEOF | |
14250 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
14251 | _ACEOF | |
14252 | ||
14253 | ||
14254 | ||
14255 | ||
14256 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14257 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14258 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
14259 | ac_define_dir=`eval echo $last_ac_define_dir` | |
14260 | ac_define_dir_counter=0 | |
14261 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
14262 | last_ac_define_dir="$ac_define_dir" | |
14263 | ac_define_dir=`eval echo $last_ac_define_dir` | |
14264 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
14265 | if test "x$ac_define_dir_counter" = x128; then : | |
14266 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
14267 | break | |
14268 | fi | |
14269 | done | |
14270 | PKGLIBEXECDIR="$ac_define_dir" | |
14271 | ||
14272 | ||
14273 | cat >>confdefs.h <<_ACEOF | |
14274 | #define PKGLIBEXECDIR "$ac_define_dir" | |
14275 | _ACEOF | |
14276 | ||
14277 | ||
14278 | ||
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
14280 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
14281 | if ${ac_cv_header_stdc+:} false; then : | |
14282 | $as_echo_n "(cached) " >&6 | |
14283 | else | |
14284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14285 | /* end confdefs.h. */ | |
14286 | #include <stdlib.h> | |
14287 | #include <stdarg.h> | |
14288 | #include <string.h> | |
14289 | #include <float.h> | |
14290 | ||
14291 | int | |
14292 | main () | |
14293 | { | |
14294 | ||
14295 | ; | |
14296 | return 0; | |
14297 | } | |
14298 | _ACEOF | |
14299 | if ac_fn_c_try_compile "$LINENO"; then : | |
14300 | ac_cv_header_stdc=yes | |
14301 | else | |
14302 | ac_cv_header_stdc=no | |
14303 | fi | |
14304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14305 | ||
14306 | if test $ac_cv_header_stdc = yes; then | |
14307 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14309 | /* end confdefs.h. */ | |
14310 | #include <string.h> | |
14311 | ||
14312 | _ACEOF | |
14313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14314 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14315 | ||
14316 | else | |
14317 | ac_cv_header_stdc=no | |
14318 | fi | |
14319 | rm -f conftest* | |
14320 | ||
14321 | fi | |
14322 | ||
14323 | if test $ac_cv_header_stdc = yes; then | |
14324 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14326 | /* end confdefs.h. */ | |
14327 | #include <stdlib.h> | |
14328 | ||
14329 | _ACEOF | |
14330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14331 | $EGREP "free" >/dev/null 2>&1; then : | |
14332 | ||
14333 | else | |
14334 | ac_cv_header_stdc=no | |
14335 | fi | |
14336 | rm -f conftest* | |
14337 | ||
14338 | fi | |
14339 | ||
14340 | if test $ac_cv_header_stdc = yes; then | |
14341 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14342 | if test "$cross_compiling" = yes; then : | |
14343 | : | |
14344 | else | |
14345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14346 | /* end confdefs.h. */ | |
14347 | #include <ctype.h> | |
14348 | #include <stdlib.h> | |
14349 | #if ((' ' & 0x0FF) == 0x020) | |
14350 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14351 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14352 | #else | |
14353 | # define ISLOWER(c) \ | |
14354 | (('a' <= (c) && (c) <= 'i') \ | |
14355 | || ('j' <= (c) && (c) <= 'r') \ | |
14356 | || ('s' <= (c) && (c) <= 'z')) | |
14357 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14358 | #endif | |
14359 | ||
14360 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14361 | int | |
14362 | main () | |
14363 | { | |
14364 | int i; | |
14365 | for (i = 0; i < 256; i++) | |
14366 | if (XOR (islower (i), ISLOWER (i)) | |
14367 | || toupper (i) != TOUPPER (i)) | |
14368 | return 2; | |
14369 | return 0; | |
14370 | } | |
14371 | _ACEOF | |
14372 | if ac_fn_c_try_run "$LINENO"; then : | |
14373 | ||
14374 | else | |
14375 | ac_cv_header_stdc=no | |
14376 | fi | |
14377 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14378 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14379 | fi | |
14380 | ||
14381 | fi | |
14382 | fi | |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
14384 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14385 | if test $ac_cv_header_stdc = yes; then | |
14386 | ||
14387 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
14388 | ||
14389 | fi | |
14390 | ||
14391 | ||
14392 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h | |
14393 | do : | |
14394 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14395 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14396 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
14397 | cat >>confdefs.h <<_ACEOF | |
14398 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14399 | _ACEOF | |
14400 | ||
14401 | fi | |
14402 | ||
14403 | done | |
14404 | ||
14405 | ||
14406 | ||
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
14408 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
14409 | if ${ac_cv_c_const+:} false; then : | |
14410 | $as_echo_n "(cached) " >&6 | |
14411 | else | |
14412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14413 | /* end confdefs.h. */ | |
14414 | ||
14415 | int | |
14416 | main () | |
14417 | { | |
14418 | ||
14419 | #ifndef __cplusplus | |
14420 | /* Ultrix mips cc rejects this sort of thing. */ | |
14421 | typedef int charset[2]; | |
14422 | const charset cs = { 0, 0 }; | |
14423 | /* SunOS 4.1.1 cc rejects this. */ | |
14424 | char const *const *pcpcc; | |
14425 | char **ppc; | |
14426 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14427 | struct point {int x, y;}; | |
14428 | static struct point const zero = {0,0}; | |
14429 | /* AIX XL C 1.02.0.0 rejects this. | |
14430 | It does not let you subtract one const X* pointer from another in | |
14431 | an arm of an if-expression whose if-part is not a constant | |
14432 | expression */ | |
14433 | const char *g = "string"; | |
14434 | pcpcc = &g + (g ? g-g : 0); | |
14435 | /* HPUX 7.0 cc rejects these. */ | |
14436 | ++pcpcc; | |
14437 | ppc = (char**) pcpcc; | |
14438 | pcpcc = (char const *const *) ppc; | |
14439 | { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
14440 | char tx; | |
14441 | char *t = &tx; | |
14442 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14443 | ||
14444 | *t++ = 0; | |
14445 | if (s) return 0; | |
14446 | } | |
14447 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14448 | int x[] = {25, 17}; | |
14449 | const int *foo = &x[0]; | |
14450 | ++foo; | |
14451 | } | |
14452 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14453 | typedef const int *iptr; | |
14454 | iptr p = 0; | |
14455 | ++p; | |
14456 | } | |
14457 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
14458 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14459 | struct s { int j; const int *ap[3]; } bx; | |
14460 | struct s *b = &bx; b->j = 5; | |
14461 | } | |
14462 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14463 | const int foo = 10; | |
14464 | if (!foo) return 0; | |
14465 | } | |
14466 | return !cs[0] && !zero.x; | |
14467 | #endif | |
14468 | ||
14469 | ; | |
14470 | return 0; | |
14471 | } | |
14472 | _ACEOF | |
14473 | if ac_fn_c_try_compile "$LINENO"; then : | |
14474 | ac_cv_c_const=yes | |
14475 | else | |
14476 | ac_cv_c_const=no | |
14477 | fi | |
14478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14479 | fi | |
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
14481 | $as_echo "$ac_cv_c_const" >&6; } | |
14482 | if test $ac_cv_c_const = no; then | |
14483 | ||
14484 | $as_echo "#define const /**/" >>confdefs.h | |
14485 | ||
14486 | fi | |
14487 | ||
14488 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14490 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
14491 | if ${ac_cv_c_bigendian+:} false; then : | |
14492 | $as_echo_n "(cached) " >&6 | |
14493 | else | |
14494 | ac_cv_c_bigendian=unknown | |
14495 | # See if we're dealing with a universal compiler. | |
14496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14497 | /* end confdefs.h. */ | |
14498 | #ifndef __APPLE_CC__ | |
14499 | not a universal capable compiler | |
14500 | #endif | |
14501 | typedef int dummy; | |
14502 | ||
14503 | _ACEOF | |
14504 | if ac_fn_c_try_compile "$LINENO"; then : | |
14505 | ||
14506 | # Check for potential -arch flags. It is not universal unless | |
14507 | # there are at least two -arch flags with different values. | |
14508 | ac_arch= | |
14509 | ac_prev= | |
14510 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14511 | if test -n "$ac_prev"; then | |
14512 | case $ac_word in | |
14513 | i?86 | x86_64 | ppc | ppc64) | |
14514 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14515 | ac_arch=$ac_word | |
14516 | else | |
14517 | ac_cv_c_bigendian=universal | |
14518 | break | |
14519 | fi | |
14520 | ;; | |
14521 | esac | |
14522 | ac_prev= | |
14523 | elif test "x$ac_word" = "x-arch"; then | |
14524 | ac_prev=arch | |
14525 | fi | |
14526 | done | |
14527 | fi | |
14528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14529 | if test $ac_cv_c_bigendian = unknown; then | |
14530 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14532 | /* end confdefs.h. */ | |
14533 | #include <sys/types.h> | |
14534 | #include <sys/param.h> | |
14535 | ||
14536 | int | |
14537 | main () | |
14538 | { | |
14539 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
14540 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14541 | && LITTLE_ENDIAN) | |
14542 | bogus endian macros | |
14543 | #endif | |
14544 | ||
14545 | ; | |
14546 | return 0; | |
14547 | } | |
14548 | _ACEOF | |
14549 | if ac_fn_c_try_compile "$LINENO"; then : | |
14550 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14552 | /* end confdefs.h. */ | |
14553 | #include <sys/types.h> | |
14554 | #include <sys/param.h> | |
14555 | ||
14556 | int | |
14557 | main () | |
14558 | { | |
14559 | #if BYTE_ORDER != BIG_ENDIAN | |
14560 | not big endian | |
14561 | #endif | |
14562 | ||
14563 | ; | |
14564 | return 0; | |
14565 | } | |
14566 | _ACEOF | |
14567 | if ac_fn_c_try_compile "$LINENO"; then : | |
14568 | ac_cv_c_bigendian=yes | |
14569 | else | |
14570 | ac_cv_c_bigendian=no | |
14571 | fi | |
14572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14573 | fi | |
14574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14575 | fi | |
14576 | if test $ac_cv_c_bigendian = unknown; then | |
14577 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14579 | /* end confdefs.h. */ | |
14580 | #include <limits.h> | |
14581 | ||
14582 | int | |
14583 | main () | |
14584 | { | |
14585 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14586 | bogus endian macros | |
14587 | #endif | |
14588 | ||
14589 | ; | |
14590 | return 0; | |
14591 | } | |
14592 | _ACEOF | |
14593 | if ac_fn_c_try_compile "$LINENO"; then : | |
14594 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14596 | /* end confdefs.h. */ | |
14597 | #include <limits.h> | |
14598 | ||
14599 | int | |
14600 | main () | |
14601 | { | |
14602 | #ifndef _BIG_ENDIAN | |
14603 | not big endian | |
14604 | #endif | |
14605 | ||
14606 | ; | |
14607 | return 0; | |
14608 | } | |
14609 | _ACEOF | |
14610 | if ac_fn_c_try_compile "$LINENO"; then : | |
14611 | ac_cv_c_bigendian=yes | |
14612 | else | |
14613 | ac_cv_c_bigendian=no | |
14614 | fi | |
14615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14616 | fi | |
14617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14618 | fi | |
14619 | if test $ac_cv_c_bigendian = unknown; then | |
14620 | # Compile a test program. | |
14621 | if test "$cross_compiling" = yes; then : | |
14622 | # Try to guess by grepping values from an object file. | |
14623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14624 | /* end confdefs.h. */ | |
14625 | short int ascii_mm[] = | |
14626 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14627 | short int ascii_ii[] = | |
14628 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14629 | int use_ascii (int i) { | |
14630 | return ascii_mm[i] + ascii_ii[i]; | |
14631 | } | |
14632 | short int ebcdic_ii[] = | |
14633 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14634 | short int ebcdic_mm[] = | |
14635 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14636 | int use_ebcdic (int i) { | |
14637 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14638 | } | |
14639 | extern int foo; | |
14640 | ||
14641 | int | |
14642 | main () | |
14643 | { | |
14644 | return use_ascii (foo) == use_ebcdic (foo); | |
14645 | ; | |
14646 | return 0; | |
14647 | } | |
14648 | _ACEOF | |
14649 | if ac_fn_c_try_compile "$LINENO"; then : | |
14650 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14651 | ac_cv_c_bigendian=yes | |
14652 | fi | |
14653 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14654 | if test "$ac_cv_c_bigendian" = unknown; then | |
14655 | ac_cv_c_bigendian=no | |
14656 | else | |
14657 | # finding both strings is unlikely to happen, but who knows? | |
14658 | ac_cv_c_bigendian=unknown | |
14659 | fi | |
14660 | fi | |
14661 | fi | |
14662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14663 | else | |
14664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14665 | /* end confdefs.h. */ | |
14666 | $ac_includes_default | |
14667 | int | |
14668 | main () | |
14669 | { | |
14670 | ||
14671 | /* Are we little or big endian? From Harbison&Steele. */ | |
14672 | union | |
14673 | { | |
14674 | long int l; | |
14675 | char c[sizeof (long int)]; | |
14676 | } u; | |
14677 | u.l = 1; | |
14678 | return u.c[sizeof (long int) - 1] == 1; | |
14679 | ||
14680 | ; | |
14681 | return 0; | |
14682 | } | |
14683 | _ACEOF | |
14684 | if ac_fn_c_try_run "$LINENO"; then : | |
14685 | ac_cv_c_bigendian=no | |
14686 | else | |
14687 | ac_cv_c_bigendian=yes | |
14688 | fi | |
14689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14690 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14691 | fi | |
14692 | ||
14693 | fi | |
14694 | fi | |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
14696 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14697 | case $ac_cv_c_bigendian in #( | |
14698 | yes) | |
14699 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14700 | ;; #( | |
14701 | no) | |
14702 | ;; #( | |
14703 | universal) | |
14704 | ||
14705 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14706 | ||
14707 | ;; #( | |
14708 | *) | |
14709 | as_fn_error $? "unknown endianness | |
14710 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
14711 | esac | |
14712 | ||
14713 | fi | |
14714 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
14715 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
14716 | ||
14717 | else | |
14718 | ||
14719 | cat >>confdefs.h <<_ACEOF | |
14720 | #define pid_t int | |
14721 | _ACEOF | |
14722 | ||
14723 | fi | |
14724 | ||
14725 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
14726 | if test "x$ac_cv_type_size_t" = xyes; then : | |
14727 | ||
14728 | else | |
14729 | ||
14730 | cat >>confdefs.h <<_ACEOF | |
14731 | #define size_t unsigned int | |
14732 | _ACEOF | |
14733 | ||
14734 | fi | |
14735 | ||
14736 | # The cast to long int works around a bug in the HP C Compiler | |
14737 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14738 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14739 | # This bug is HP SR number 8606223364. | |
14740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14741 | $as_echo_n "checking size of short... " >&6; } | |
14742 | if ${ac_cv_sizeof_short+:} false; then : | |
14743 | $as_echo_n "(cached) " >&6 | |
14744 | else | |
14745 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
14746 | ||
14747 | else | |
14748 | if test "$ac_cv_type_short" = yes; then | |
14749 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14751 | as_fn_error 77 "cannot compute sizeof (short) | |
14752 | See \`config.log' for more details" "$LINENO" 5; } | |
14753 | else | |
14754 | ac_cv_sizeof_short=0 | |
14755 | fi | |
14756 | fi | |
14757 | ||
14758 | fi | |
14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
14760 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
14761 | ||
14762 | ||
14763 | ||
14764 | cat >>confdefs.h <<_ACEOF | |
14765 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14766 | _ACEOF | |
14767 | ||
14768 | ||
14769 | # The cast to long int works around a bug in the HP C Compiler | |
14770 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14771 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14772 | # This bug is HP SR number 8606223364. | |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14774 | $as_echo_n "checking size of int... " >&6; } | |
14775 | if ${ac_cv_sizeof_int+:} false; then : | |
14776 | $as_echo_n "(cached) " >&6 | |
14777 | else | |
14778 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14779 | ||
14780 | else | |
14781 | if test "$ac_cv_type_int" = yes; then | |
14782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14783 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14784 | as_fn_error 77 "cannot compute sizeof (int) | |
14785 | See \`config.log' for more details" "$LINENO" 5; } | |
14786 | else | |
14787 | ac_cv_sizeof_int=0 | |
14788 | fi | |
14789 | fi | |
14790 | ||
14791 | fi | |
14792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14793 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14794 | ||
14795 | ||
14796 | ||
14797 | cat >>confdefs.h <<_ACEOF | |
14798 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14799 | _ACEOF | |
14800 | ||
14801 | ||
14802 | # The cast to long int works around a bug in the HP C Compiler | |
14803 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14804 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14805 | # This bug is HP SR number 8606223364. | |
14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14807 | $as_echo_n "checking size of long... " >&6; } | |
14808 | if ${ac_cv_sizeof_long+:} false; then : | |
14809 | $as_echo_n "(cached) " >&6 | |
14810 | else | |
14811 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
14812 | ||
14813 | else | |
14814 | if test "$ac_cv_type_long" = yes; then | |
14815 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14816 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14817 | as_fn_error 77 "cannot compute sizeof (long) | |
14818 | See \`config.log' for more details" "$LINENO" 5; } | |
14819 | else | |
14820 | ac_cv_sizeof_long=0 | |
14821 | fi | |
14822 | fi | |
14823 | ||
14824 | fi | |
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14826 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
14827 | ||
14828 | ||
14829 | ||
14830 | cat >>confdefs.h <<_ACEOF | |
14831 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14832 | _ACEOF | |
14833 | ||
14834 | ||
14835 | # The cast to long int works around a bug in the HP C Compiler | |
14836 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14837 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14838 | # This bug is HP SR number 8606223364. | |
14839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14840 | $as_echo_n "checking size of long long... " >&6; } | |
14841 | if ${ac_cv_sizeof_long_long+:} false; then : | |
14842 | $as_echo_n "(cached) " >&6 | |
14843 | else | |
14844 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14845 | ||
14846 | else | |
14847 | if test "$ac_cv_type_long_long" = yes; then | |
14848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14850 | as_fn_error 77 "cannot compute sizeof (long long) | |
14851 | See \`config.log' for more details" "$LINENO" 5; } | |
14852 | else | |
14853 | ac_cv_sizeof_long_long=0 | |
14854 | fi | |
14855 | fi | |
14856 | ||
14857 | fi | |
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
14859 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
14860 | ||
14861 | ||
14862 | ||
14863 | cat >>confdefs.h <<_ACEOF | |
14864 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14865 | _ACEOF | |
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
14871 | $as_echo_n "checking for library containing socket... " >&6; } | |
14872 | if ${ac_cv_search_socket+:} false; then : | |
14873 | $as_echo_n "(cached) " >&6 | |
14874 | else | |
14875 | ac_func_search_save_LIBS=$LIBS | |
14876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14877 | /* end confdefs.h. */ | |
14878 | ||
14879 | /* Override any GCC internal prototype to avoid an error. | |
14880 | Use char because int might match the return type of a GCC | |
14881 | builtin and then its argument prototype would still apply. */ | |
14882 | #ifdef __cplusplus | |
14883 | extern "C" | |
14884 | #endif | |
14885 | char socket (); | |
14886 | int | |
14887 | main () | |
14888 | { | |
14889 | return socket (); | |
14890 | ; | |
14891 | return 0; | |
14892 | } | |
14893 | _ACEOF | |
14894 | for ac_lib in '' socket; do | |
14895 | if test -z "$ac_lib"; then | |
14896 | ac_res="none required" | |
14897 | else | |
14898 | ac_res=-l$ac_lib | |
14899 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14900 | fi | |
14901 | if ac_fn_c_try_link "$LINENO"; then : | |
14902 | ac_cv_search_socket=$ac_res | |
14903 | fi | |
14904 | rm -f core conftest.err conftest.$ac_objext \ | |
14905 | conftest$ac_exeext | |
14906 | if ${ac_cv_search_socket+:} false; then : | |
14907 | break | |
14908 | fi | |
14909 | done | |
14910 | if ${ac_cv_search_socket+:} false; then : | |
14911 | ||
14912 | else | |
14913 | ac_cv_search_socket=no | |
14914 | fi | |
14915 | rm conftest.$ac_ext | |
14916 | LIBS=$ac_func_search_save_LIBS | |
14917 | fi | |
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
14919 | $as_echo "$ac_cv_search_socket" >&6; } | |
14920 | ac_res=$ac_cv_search_socket | |
14921 | if test "$ac_res" != no; then : | |
14922 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14923 | ||
14924 | else | |
14925 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 | |
14926 | fi | |
14927 | ||
14928 | ||
14929 | if test x"$SUN" = xyes; then | |
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
14931 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
14932 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
14933 | $as_echo_n "(cached) " >&6 | |
14934 | else | |
14935 | ac_func_search_save_LIBS=$LIBS | |
14936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14937 | /* end confdefs.h. */ | |
14938 | ||
14939 | /* Override any GCC internal prototype to avoid an error. | |
14940 | Use char because int might match the return type of a GCC | |
14941 | builtin and then its argument prototype would still apply. */ | |
14942 | #ifdef __cplusplus | |
14943 | extern "C" | |
14944 | #endif | |
14945 | char inet_ntoa (); | |
14946 | int | |
14947 | main () | |
14948 | { | |
14949 | return inet_ntoa (); | |
14950 | ; | |
14951 | return 0; | |
14952 | } | |
14953 | _ACEOF | |
14954 | for ac_lib in '' nsl; do | |
14955 | if test -z "$ac_lib"; then | |
14956 | ac_res="none required" | |
14957 | else | |
14958 | ac_res=-l$ac_lib | |
14959 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14960 | fi | |
14961 | if ac_fn_c_try_link "$LINENO"; then : | |
14962 | ac_cv_search_inet_ntoa=$ac_res | |
14963 | fi | |
14964 | rm -f core conftest.err conftest.$ac_objext \ | |
14965 | conftest$ac_exeext | |
14966 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
14967 | break | |
14968 | fi | |
14969 | done | |
14970 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
14971 | ||
14972 | else | |
14973 | ac_cv_search_inet_ntoa=no | |
14974 | fi | |
14975 | rm conftest.$ac_ext | |
14976 | LIBS=$ac_func_search_save_LIBS | |
14977 | fi | |
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
14979 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
14980 | ac_res=$ac_cv_search_inet_ntoa | |
14981 | if test "$ac_res" != no; then : | |
14982 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14983 | ||
14984 | else | |
14985 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 | |
14986 | fi | |
14987 | ||
14988 | fi | |
14989 | ||
14990 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
14991 | #include <sys/socket.h> | |
14992 | " | |
14993 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
14994 | ||
14995 | else | |
14996 | ||
14997 | $as_echo "#define socklen_t unsigned int" >>confdefs.h | |
14998 | ||
14999 | fi | |
15000 | ||
15001 | ||
15002 | # Check whether --enable-ipv6 was given. | |
15003 | if test "${enable_ipv6+set}" = set; then : | |
15004 | enableval=$enable_ipv6; ipv6=$enableval | |
15005 | else | |
15006 | ipv6=no | |
15007 | fi | |
15008 | ||
15009 | ||
15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
15011 | $as_echo_n "checking for library containing crypt... " >&6; } | |
15012 | if ${ac_cv_search_crypt+:} false; then : | |
15013 | $as_echo_n "(cached) " >&6 | |
15014 | else | |
15015 | ac_func_search_save_LIBS=$LIBS | |
15016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15017 | /* end confdefs.h. */ | |
15018 | ||
15019 | /* Override any GCC internal prototype to avoid an error. | |
15020 | Use char because int might match the return type of a GCC | |
15021 | builtin and then its argument prototype would still apply. */ | |
15022 | #ifdef __cplusplus | |
15023 | extern "C" | |
15024 | #endif | |
15025 | char crypt (); | |
15026 | int | |
15027 | main () | |
15028 | { | |
15029 | return crypt (); | |
15030 | ; | |
15031 | return 0; | |
15032 | } | |
15033 | _ACEOF | |
15034 | for ac_lib in '' crypt descrypt; do | |
15035 | if test -z "$ac_lib"; then | |
15036 | ac_res="none required" | |
15037 | else | |
15038 | ac_res=-l$ac_lib | |
15039 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15040 | fi | |
15041 | if ac_fn_c_try_link "$LINENO"; then : | |
15042 | ac_cv_search_crypt=$ac_res | |
15043 | fi | |
15044 | rm -f core conftest.err conftest.$ac_objext \ | |
15045 | conftest$ac_exeext | |
15046 | if ${ac_cv_search_crypt+:} false; then : | |
15047 | break | |
15048 | fi | |
15049 | done | |
15050 | if ${ac_cv_search_crypt+:} false; then : | |
15051 | ||
15052 | else | |
15053 | ac_cv_search_crypt=no | |
15054 | fi | |
15055 | rm conftest.$ac_ext | |
15056 | LIBS=$ac_func_search_save_LIBS | |
15057 | fi | |
15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15059 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15060 | ac_res=$ac_cv_search_crypt | |
15061 | if test "$ac_res" != no; then : | |
15062 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15063 | ||
15064 | fi | |
15065 | ||
15066 | ||
15067 | CRYPT_LIB=$ac_cv_search_crypt | |
15068 | ||
15069 | if test "$CRYPT_LIB" = "none required"; then | |
15070 | unset CRYPT_LIB | |
15071 | elif test "$CRYPT_LIB" = no; then | |
15072 | unset CRYPT_LIB | |
15073 | fi | |
15074 | ||
15075 | ||
15076 | ||
15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
15078 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
15079 | if ${ac_cv_c_bigendian+:} false; then : | |
15080 | $as_echo_n "(cached) " >&6 | |
15081 | else | |
15082 | ac_cv_c_bigendian=unknown | |
15083 | # See if we're dealing with a universal compiler. | |
15084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15085 | /* end confdefs.h. */ | |
15086 | #ifndef __APPLE_CC__ | |
15087 | not a universal capable compiler | |
15088 | #endif | |
15089 | typedef int dummy; | |
15090 | ||
15091 | _ACEOF | |
15092 | if ac_fn_c_try_compile "$LINENO"; then : | |
15093 | ||
15094 | # Check for potential -arch flags. It is not universal unless | |
15095 | # there are at least two -arch flags with different values. | |
15096 | ac_arch= | |
15097 | ac_prev= | |
15098 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15099 | if test -n "$ac_prev"; then | |
15100 | case $ac_word in | |
15101 | i?86 | x86_64 | ppc | ppc64) | |
15102 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15103 | ac_arch=$ac_word | |
15104 | else | |
15105 | ac_cv_c_bigendian=universal | |
15106 | break | |
15107 | fi | |
15108 | ;; | |
15109 | esac | |
15110 | ac_prev= | |
15111 | elif test "x$ac_word" = "x-arch"; then | |
15112 | ac_prev=arch | |
15113 | fi | |
15114 | done | |
15115 | fi | |
15116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15117 | if test $ac_cv_c_bigendian = unknown; then | |
15118 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15120 | /* end confdefs.h. */ | |
15121 | #include <sys/types.h> | |
15122 | #include <sys/param.h> | |
15123 | ||
15124 | int | |
15125 | main () | |
15126 | { | |
15127 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15128 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15129 | && LITTLE_ENDIAN) | |
15130 | bogus endian macros | |
15131 | #endif | |
15132 | ||
15133 | ; | |
15134 | return 0; | |
15135 | } | |
15136 | _ACEOF | |
15137 | if ac_fn_c_try_compile "$LINENO"; then : | |
15138 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15140 | /* end confdefs.h. */ | |
15141 | #include <sys/types.h> | |
15142 | #include <sys/param.h> | |
15143 | ||
15144 | int | |
15145 | main () | |
15146 | { | |
15147 | #if BYTE_ORDER != BIG_ENDIAN | |
15148 | not big endian | |
15149 | #endif | |
15150 | ||
15151 | ; | |
15152 | return 0; | |
15153 | } | |
15154 | _ACEOF | |
15155 | if ac_fn_c_try_compile "$LINENO"; then : | |
15156 | ac_cv_c_bigendian=yes | |
15157 | else | |
15158 | ac_cv_c_bigendian=no | |
15159 | fi | |
15160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15161 | fi | |
15162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15163 | fi | |
15164 | if test $ac_cv_c_bigendian = unknown; then | |
15165 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15167 | /* end confdefs.h. */ | |
15168 | #include <limits.h> | |
15169 | ||
15170 | int | |
15171 | main () | |
15172 | { | |
15173 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15174 | bogus endian macros | |
15175 | #endif | |
15176 | ||
15177 | ; | |
15178 | return 0; | |
15179 | } | |
15180 | _ACEOF | |
15181 | if ac_fn_c_try_compile "$LINENO"; then : | |
15182 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15184 | /* end confdefs.h. */ | |
15185 | #include <limits.h> | |
15186 | ||
15187 | int | |
15188 | main () | |
15189 | { | |
15190 | #ifndef _BIG_ENDIAN | |
15191 | not big endian | |
15192 | #endif | |
15193 | ||
15194 | ; | |
15195 | return 0; | |
15196 | } | |
15197 | _ACEOF | |
15198 | if ac_fn_c_try_compile "$LINENO"; then : | |
15199 | ac_cv_c_bigendian=yes | |
15200 | else | |
15201 | ac_cv_c_bigendian=no | |
15202 | fi | |
15203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15204 | fi | |
15205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15206 | fi | |
15207 | if test $ac_cv_c_bigendian = unknown; then | |
15208 | # Compile a test program. | |
15209 | if test "$cross_compiling" = yes; then : | |
15210 | # Try to guess by grepping values from an object file. | |
15211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15212 | /* end confdefs.h. */ | |
15213 | short int ascii_mm[] = | |
15214 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15215 | short int ascii_ii[] = | |
15216 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15217 | int use_ascii (int i) { | |
15218 | return ascii_mm[i] + ascii_ii[i]; | |
15219 | } | |
15220 | short int ebcdic_ii[] = | |
15221 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15222 | short int ebcdic_mm[] = | |
15223 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15224 | int use_ebcdic (int i) { | |
15225 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15226 | } | |
15227 | extern int foo; | |
15228 | ||
15229 | int | |
15230 | main () | |
15231 | { | |
15232 | return use_ascii (foo) == use_ebcdic (foo); | |
15233 | ; | |
15234 | return 0; | |
15235 | } | |
15236 | _ACEOF | |
15237 | if ac_fn_c_try_compile "$LINENO"; then : | |
15238 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15239 | ac_cv_c_bigendian=yes | |
15240 | fi | |
15241 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15242 | if test "$ac_cv_c_bigendian" = unknown; then | |
15243 | ac_cv_c_bigendian=no | |
15244 | else | |
15245 | # finding both strings is unlikely to happen, but who knows? | |
15246 | ac_cv_c_bigendian=unknown | |
15247 | fi | |
15248 | fi | |
15249 | fi | |
15250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15251 | else | |
15252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15253 | /* end confdefs.h. */ | |
15254 | $ac_includes_default | |
15255 | int | |
15256 | main () | |
15257 | { | |
15258 | ||
15259 | /* Are we little or big endian? From Harbison&Steele. */ | |
15260 | union | |
15261 | { | |
15262 | long int l; | |
15263 | char c[sizeof (long int)]; | |
15264 | } u; | |
15265 | u.l = 1; | |
15266 | return u.c[sizeof (long int) - 1] == 1; | |
15267 | ||
15268 | ; | |
15269 | return 0; | |
15270 | } | |
15271 | _ACEOF | |
15272 | if ac_fn_c_try_run "$LINENO"; then : | |
15273 | ac_cv_c_bigendian=no | |
15274 | else | |
15275 | ac_cv_c_bigendian=yes | |
15276 | fi | |
15277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15278 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15279 | fi | |
15280 | ||
15281 | fi | |
15282 | fi | |
15283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15284 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15285 | case $ac_cv_c_bigendian in #( | |
15286 | yes) | |
15287 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15288 | ;; #( | |
15289 | no) | |
15290 | ;; #( | |
15291 | universal) | |
15292 | ||
15293 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
15294 | ||
15295 | ;; #( | |
15296 | *) | |
15297 | as_fn_error $? "unknown endianness | |
15298 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
15299 | esac | |
15300 | ||
15301 | ||
15302 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" | |
15303 | if test "x$ac_cv_header_stdarg_h" = xyes; then : | |
15304 | ||
15305 | else | |
15306 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 | |
15307 | fi | |
15308 | ||
15309 | ||
15310 | for ac_func in strlcat strlcpy | |
15311 | do : | |
15312 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15313 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15314 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15315 | cat >>confdefs.h <<_ACEOF | |
15316 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15317 | _ACEOF | |
15318 | ||
15319 | fi | |
15320 | done | |
15321 | ||
15322 | ||
15323 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" | |
15324 | if test "x$ac_cv_type_u_int32_t" = xyes; then : | |
15325 | ||
15326 | else | |
15327 | ||
15328 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | |
15329 | if test "x$ac_cv_type_uint32_t" = xyes; then : | |
15330 | ||
15331 | ||
15332 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h | |
15333 | ||
15334 | ||
15335 | else | |
15336 | ||
15337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
15338 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
15339 | ||
15340 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h | |
15341 | ||
15342 | ||
15343 | fi | |
15344 | ||
15345 | ||
15346 | fi | |
15347 | ||
15348 | ||
15349 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
15350 | if test "x$ac_cv_type_u_int16_t" = xyes; then : | |
15351 | ||
15352 | else | |
15353 | ||
15354 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" | |
15355 | if test "x$ac_cv_type_uint16_t" = xyes; then : | |
15356 | ||
15357 | ||
15358 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
15359 | ||
15360 | ||
15361 | else | |
15362 | ||
15363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
15364 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
15365 | ||
15366 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h | |
15367 | ||
15368 | ||
15369 | fi | |
15370 | ||
15371 | ||
15372 | fi | |
15373 | ||
15374 | ||
15375 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | |
15376 | #include <netinet/in.h> | |
15377 | " | |
15378 | if test "x$ac_cv_type_in_port_t" = xyes; then : | |
15379 | ||
15380 | else | |
15381 | ||
15382 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h | |
15383 | ||
15384 | fi | |
15385 | ||
15386 | ||
15387 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> | |
15388 | #include <sys/socket.h> | |
15389 | " | |
15390 | if test "x$ac_cv_type_sa_family_t" = xyes; then : | |
15391 | ||
15392 | else | |
15393 | ||
15394 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h | |
15395 | ||
15396 | fi | |
15397 | ||
15398 | ||
15399 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
15400 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | |
15401 | ||
15402 | cat >>confdefs.h <<_ACEOF | |
15403 | #define HAVE_UINTPTR_T 1 | |
15404 | _ACEOF | |
15405 | ||
15406 | ||
15407 | fi | |
15408 | ||
15409 | ||
15410 | for ac_func in snprintf vsnprintf socketpair mmap gettimeofday strdup strndup | |
15411 | do : | |
15412 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15413 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15414 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15415 | cat >>confdefs.h <<_ACEOF | |
15416 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15417 | _ACEOF | |
15418 | ||
15419 | fi | |
15420 | done | |
15421 | ||
15422 | ||
15423 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15424 | # for constant arguments. Useless! | |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
15426 | $as_echo_n "checking for working alloca.h... " >&6; } | |
15427 | if ${ac_cv_working_alloca_h+:} false; then : | |
15428 | $as_echo_n "(cached) " >&6 | |
15429 | else | |
15430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15431 | /* end confdefs.h. */ | |
15432 | #include <alloca.h> | |
15433 | int | |
15434 | main () | |
15435 | { | |
15436 | char *p = (char *) alloca (2 * sizeof (int)); | |
15437 | if (p) return 0; | |
15438 | ; | |
15439 | return 0; | |
15440 | } | |
15441 | _ACEOF | |
15442 | if ac_fn_c_try_link "$LINENO"; then : | |
15443 | ac_cv_working_alloca_h=yes | |
15444 | else | |
15445 | ac_cv_working_alloca_h=no | |
15446 | fi | |
15447 | rm -f core conftest.err conftest.$ac_objext \ | |
15448 | conftest$ac_exeext conftest.$ac_ext | |
15449 | fi | |
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
15451 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
15452 | if test $ac_cv_working_alloca_h = yes; then | |
15453 | ||
15454 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
15455 | ||
15456 | fi | |
15457 | ||
15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
15459 | $as_echo_n "checking for alloca... " >&6; } | |
15460 | if ${ac_cv_func_alloca_works+:} false; then : | |
15461 | $as_echo_n "(cached) " >&6 | |
15462 | else | |
15463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15464 | /* end confdefs.h. */ | |
15465 | #ifdef __GNUC__ | |
15466 | # define alloca __builtin_alloca | |
15467 | #else | |
15468 | # ifdef _MSC_VER | |
15469 | # include <malloc.h> | |
15470 | # define alloca _alloca | |
15471 | # else | |
15472 | # ifdef HAVE_ALLOCA_H | |
15473 | # include <alloca.h> | |
15474 | # else | |
15475 | # ifdef _AIX | |
15476 | #pragma alloca | |
15477 | # else | |
15478 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15479 | void *alloca (size_t); | |
15480 | # endif | |
15481 | # endif | |
15482 | # endif | |
15483 | # endif | |
15484 | #endif | |
15485 | ||
15486 | int | |
15487 | main () | |
15488 | { | |
15489 | char *p = (char *) alloca (1); | |
15490 | if (p) return 0; | |
15491 | ; | |
15492 | return 0; | |
15493 | } | |
15494 | _ACEOF | |
15495 | if ac_fn_c_try_link "$LINENO"; then : | |
15496 | ac_cv_func_alloca_works=yes | |
15497 | else | |
15498 | ac_cv_func_alloca_works=no | |
15499 | fi | |
15500 | rm -f core conftest.err conftest.$ac_objext \ | |
15501 | conftest$ac_exeext conftest.$ac_ext | |
15502 | fi | |
15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
15504 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
15505 | ||
15506 | if test $ac_cv_func_alloca_works = yes; then | |
15507 | ||
15508 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
15509 | ||
15510 | else | |
15511 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15512 | # that cause trouble. Some versions do not even contain alloca or | |
15513 | # contain a buggy version. If you still want to use their alloca, | |
15514 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15515 | ||
15516 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
15517 | ||
15518 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
15519 | ||
15520 | ||
15521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
15522 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
15523 | if ${ac_cv_os_cray+:} false; then : | |
15524 | $as_echo_n "(cached) " >&6 | |
15525 | else | |
15526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15527 | /* end confdefs.h. */ | |
15528 | #if defined CRAY && ! defined CRAY2 | |
15529 | webecray | |
15530 | #else | |
15531 | wenotbecray | |
15532 | #endif | |
15533 | ||
15534 | _ACEOF | |
15535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15536 | $EGREP "webecray" >/dev/null 2>&1; then : | |
15537 | ac_cv_os_cray=yes | |
15538 | else | |
15539 | ac_cv_os_cray=no | |
15540 | fi | |
15541 | rm -f conftest* | |
15542 | ||
15543 | fi | |
15544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
15545 | $as_echo "$ac_cv_os_cray" >&6; } | |
15546 | if test $ac_cv_os_cray = yes; then | |
15547 | for ac_func in _getb67 GETB67 getb67; do | |
15548 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15549 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15550 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15551 | ||
15552 | cat >>confdefs.h <<_ACEOF | |
15553 | #define CRAY_STACKSEG_END $ac_func | |
15554 | _ACEOF | |
15555 | ||
15556 | break | |
15557 | fi | |
15558 | ||
15559 | done | |
15560 | fi | |
15561 | ||
15562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
15563 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
15564 | if ${ac_cv_c_stack_direction+:} false; then : | |
15565 | $as_echo_n "(cached) " >&6 | |
15566 | else | |
15567 | if test "$cross_compiling" = yes; then : | |
15568 | ac_cv_c_stack_direction=0 | |
15569 | else | |
15570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15571 | /* end confdefs.h. */ | |
15572 | $ac_includes_default | |
15573 | int | |
15574 | find_stack_direction (int *addr, int depth) | |
15575 | { | |
15576 | int dir, dummy = 0; | |
15577 | if (! addr) | |
15578 | addr = &dummy; | |
15579 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15580 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15581 | return dir + dummy; | |
15582 | } | |
15583 | ||
15584 | int | |
15585 | main (int argc, char **argv) | |
15586 | { | |
15587 | return find_stack_direction (0, argc + !argv + 20) < 0; | |
15588 | } | |
15589 | _ACEOF | |
15590 | if ac_fn_c_try_run "$LINENO"; then : | |
15591 | ac_cv_c_stack_direction=1 | |
15592 | else | |
15593 | ac_cv_c_stack_direction=-1 | |
15594 | fi | |
15595 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15596 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15597 | fi | |
15598 | ||
15599 | fi | |
15600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
15601 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
15602 | cat >>confdefs.h <<_ACEOF | |
15603 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15604 | _ACEOF | |
15605 | ||
15606 | ||
15607 | fi | |
15608 | ||
15609 | ||
15610 | ||
15611 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
15612 | if test "x$ac_cv_func_nanosleep" = xyes; then : | |
15613 | ||
15614 | else | |
15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 | |
15616 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
15617 | if ${ac_cv_lib_rt_nanosleep+:} false; then : | |
15618 | $as_echo_n "(cached) " >&6 | |
15619 | else | |
15620 | ac_check_lib_save_LIBS=$LIBS | |
15621 | LIBS="-lrt $LIBS" | |
15622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15623 | /* end confdefs.h. */ | |
15624 | ||
15625 | /* Override any GCC internal prototype to avoid an error. | |
15626 | Use char because int might match the return type of a GCC | |
15627 | builtin and then its argument prototype would still apply. */ | |
15628 | #ifdef __cplusplus | |
15629 | extern "C" | |
15630 | #endif | |
15631 | char nanosleep (); | |
15632 | int | |
15633 | main () | |
15634 | { | |
15635 | return nanosleep (); | |
15636 | ; | |
15637 | return 0; | |
15638 | } | |
15639 | _ACEOF | |
15640 | if ac_fn_c_try_link "$LINENO"; then : | |
15641 | ac_cv_lib_rt_nanosleep=yes | |
15642 | else | |
15643 | ac_cv_lib_rt_nanosleep=no | |
15644 | fi | |
15645 | rm -f core conftest.err conftest.$ac_objext \ | |
15646 | conftest$ac_exeext conftest.$ac_ext | |
15647 | LIBS=$ac_check_lib_save_LIBS | |
15648 | fi | |
15649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 | |
15650 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
15651 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : | |
15652 | LIBS="${LIBS} -lrt" | |
15653 | else | |
15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 | |
15655 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
15656 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : | |
15657 | $as_echo_n "(cached) " >&6 | |
15658 | else | |
15659 | ac_check_lib_save_LIBS=$LIBS | |
15660 | LIBS="-lposix4 $LIBS" | |
15661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15662 | /* end confdefs.h. */ | |
15663 | ||
15664 | /* Override any GCC internal prototype to avoid an error. | |
15665 | Use char because int might match the return type of a GCC | |
15666 | builtin and then its argument prototype would still apply. */ | |
15667 | #ifdef __cplusplus | |
15668 | extern "C" | |
15669 | #endif | |
15670 | char nanosleep (); | |
15671 | int | |
15672 | main () | |
15673 | { | |
15674 | return nanosleep (); | |
15675 | ; | |
15676 | return 0; | |
15677 | } | |
15678 | _ACEOF | |
15679 | if ac_fn_c_try_link "$LINENO"; then : | |
15680 | ac_cv_lib_posix4_nanosleep=yes | |
15681 | else | |
15682 | ac_cv_lib_posix4_nanosleep=no | |
15683 | fi | |
15684 | rm -f core conftest.err conftest.$ac_objext \ | |
15685 | conftest$ac_exeext conftest.$ac_ext | |
15686 | LIBS=$ac_check_lib_save_LIBS | |
15687 | fi | |
15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
15689 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
15690 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : | |
15691 | LIBS="${LIBS} -lposix4" | |
15692 | ||
15693 | fi | |
15694 | ||
15695 | fi | |
15696 | ||
15697 | fi | |
15698 | ||
15699 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
15700 | then | |
15701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 | |
15702 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
15703 | else | |
15704 | ||
15705 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | |
15706 | ||
15707 | fi | |
15708 | ||
15709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 | |
15710 | $as_echo_n "checking for OpenSSL... " >&6; } | |
15711 | # Check whether --enable-openssl was given. | |
15712 | if test "${enable_openssl+set}" = set; then : | |
15713 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
15714 | else | |
15715 | cf_enable_openssl="auto" | |
15716 | fi | |
15717 | ||
15718 | ||
15719 | if test "$cf_enable_openssl" != "no" ; then | |
15720 | cf_openssl_basedir="" | |
15721 | if test "$cf_enable_openssl" != "auto" && | |
15722 | test "$cf_enable_openssl" != "yes" ; then | |
15723 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
15724 | else | |
15725 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
15726 | /usr/local/openssl ; do | |
15727 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
15728 | cf_openssl_basedir="${dirs}" | |
15729 | break | |
15730 | fi | |
15731 | done | |
15732 | unset dirs | |
15733 | fi | |
15734 | if test ! -z "$cf_openssl_basedir"; then | |
15735 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
15736 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
15737 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
15738 | else | |
15739 | cf_openssl_basedir="" | |
15740 | fi | |
15741 | else | |
15742 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
15743 | cf_openssl_basedir="/usr" | |
15744 | fi | |
15745 | fi | |
15746 | ||
15747 | if test ! -z "$cf_openssl_basedir"; then | |
15748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 | |
15749 | $as_echo "$cf_openssl_basedir" >&6; } | |
15750 | cf_enable_openssl="yes" | |
15751 | else | |
15752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 | |
15753 | $as_echo "not found. Specify a correct path?" >&6; } | |
15754 | cf_enable_openssl="no" | |
15755 | fi | |
15756 | unset cf_openssl_basedir | |
15757 | else | |
15758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
15759 | $as_echo "disabled" >&6; } | |
15760 | fi | |
15761 | ||
15762 | save_CPPFLAGS="$CPPFLAGS" | |
15763 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
15764 | save_LIBS="$LIBS" | |
15765 | LIBS="$LIBS $SSL_LIBS" | |
15766 | if test "$cf_enable_openssl" != no; then | |
15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 | |
15768 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
15769 | if test "$cross_compiling" = yes; then : | |
15770 | cf_openssl_version_ok=no | |
15771 | else | |
15772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15773 | /* end confdefs.h. */ | |
15774 | #include <openssl/opensslv.h> | |
15775 | #include <stdlib.h> | |
15776 | int | |
15777 | main () | |
15778 | { | |
15779 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
15780 | exit(0); else exit(1); | |
15781 | ; | |
15782 | return 0; | |
15783 | } | |
15784 | _ACEOF | |
15785 | if ac_fn_c_try_run "$LINENO"; then : | |
15786 | cf_openssl_version_ok=yes | |
15787 | else | |
15788 | cf_openssl_version_ok=no | |
15789 | fi | |
15790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15791 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15792 | fi | |
15793 | ||
15794 | ||
15795 | if test "$cf_openssl_version_ok" = yes; then | |
15796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
15797 | $as_echo "found" >&6; } | |
15798 | ||
15799 | ENCSPEED=encspeed | |
15800 | ||
15801 | ||
15802 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 | |
15804 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
15805 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : | |
15806 | $as_echo_n "(cached) " >&6 | |
15807 | else | |
15808 | ac_check_lib_save_LIBS=$LIBS | |
15809 | LIBS="-lcrypto $LIBS" | |
15810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15811 | /* end confdefs.h. */ | |
15812 | ||
15813 | /* Override any GCC internal prototype to avoid an error. | |
15814 | Use char because int might match the return type of a GCC | |
15815 | builtin and then its argument prototype would still apply. */ | |
15816 | #ifdef __cplusplus | |
15817 | extern "C" | |
15818 | #endif | |
15819 | char RSA_free (); | |
15820 | int | |
15821 | main () | |
15822 | { | |
15823 | return RSA_free (); | |
15824 | ; | |
15825 | return 0; | |
15826 | } | |
15827 | _ACEOF | |
15828 | if ac_fn_c_try_link "$LINENO"; then : | |
15829 | ac_cv_lib_crypto_RSA_free=yes | |
15830 | else | |
15831 | ac_cv_lib_crypto_RSA_free=no | |
15832 | fi | |
15833 | rm -f core conftest.err conftest.$ac_objext \ | |
15834 | conftest$ac_exeext conftest.$ac_ext | |
15835 | LIBS=$ac_check_lib_save_LIBS | |
15836 | fi | |
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 | |
15838 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
15839 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : | |
15840 | cat >>confdefs.h <<_ACEOF | |
15841 | #define HAVE_LIBCRYPTO 1 | |
15842 | _ACEOF | |
15843 | ||
15844 | LIBS="-lcrypto $LIBS" | |
15845 | ||
15846 | fi | |
15847 | ||
15848 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
15849 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
15850 | else | |
15851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 | |
15852 | $as_echo "no - OpenSSL support disabled" >&6; } | |
15853 | fi | |
15854 | fi | |
15855 | ||
15856 | CPPFLAGS="$save_CPPFLAGS" | |
15857 | LIBS="$save_LIBS" | |
15858 | ||
15859 | ||
15860 | ||
15861 | ||
15862 | ||
15863 | # Check whether --with-zlib-path was given. | |
15864 | if test "${with_zlib_path+set}" = set; then : | |
15865 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" | |
15866 | fi | |
15867 | ||
15868 | ||
15869 | # Check whether --enable-zlib was given. | |
15870 | if test "${enable_zlib+set}" = set; then : | |
15871 | enableval=$enable_zlib; zlib=$enableval | |
15872 | else | |
15873 | zlib=yes | |
15874 | fi | |
15875 | ||
15876 | ||
15877 | if test "$zlib" = yes; then | |
15878 | ||
15879 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
15880 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
15881 | ||
15882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
15883 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
15884 | if ${ac_cv_lib_z_zlibVersion+:} false; then : | |
15885 | $as_echo_n "(cached) " >&6 | |
15886 | else | |
15887 | ac_check_lib_save_LIBS=$LIBS | |
15888 | LIBS="-lz $LIBS" | |
15889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15890 | /* end confdefs.h. */ | |
15891 | ||
15892 | /* Override any GCC internal prototype to avoid an error. | |
15893 | Use char because int might match the return type of a GCC | |
15894 | builtin and then its argument prototype would still apply. */ | |
15895 | #ifdef __cplusplus | |
15896 | extern "C" | |
15897 | #endif | |
15898 | char zlibVersion (); | |
15899 | int | |
15900 | main () | |
15901 | { | |
15902 | return zlibVersion (); | |
15903 | ; | |
15904 | return 0; | |
15905 | } | |
15906 | _ACEOF | |
15907 | if ac_fn_c_try_link "$LINENO"; then : | |
15908 | ac_cv_lib_z_zlibVersion=yes | |
15909 | else | |
15910 | ac_cv_lib_z_zlibVersion=no | |
15911 | fi | |
15912 | rm -f core conftest.err conftest.$ac_objext \ | |
15913 | conftest$ac_exeext conftest.$ac_ext | |
15914 | LIBS=$ac_check_lib_save_LIBS | |
15915 | fi | |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 | |
15917 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
15918 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : | |
15919 | ||
15920 | ZLIB_LD=-lz | |
15921 | ||
15922 | ||
15923 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
15924 | ||
15925 | ||
15926 | else | |
15927 | zlib=no | |
15928 | fi | |
15929 | ||
15930 | ||
15931 | else | |
15932 | zlib=no | |
15933 | fi | |
15934 | ||
15935 | ||
15936 | ||
15937 | fi | |
15938 | ||
15939 | ||
15940 | # Check whether --with-shared-sqlite was given. | |
15941 | if test "${with_shared_sqlite+set}" = set; then : | |
15942 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
15943 | else | |
15944 | shared_sqlite=no | |
15945 | fi | |
15946 | ||
15947 | ||
15948 | if test "$shared_sqlite" = yes; then | |
15949 | ||
15950 | ||
15951 | ||
15952 | ||
15953 | ||
15954 | ||
15955 | ||
15956 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15957 | if test -n "$ac_tool_prefix"; then | |
15958 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15959 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15961 | $as_echo_n "checking for $ac_word... " >&6; } | |
15962 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15963 | $as_echo_n "(cached) " >&6 | |
15964 | else | |
15965 | case $PKG_CONFIG in | |
15966 | [\\/]* | ?:[\\/]*) | |
15967 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15968 | ;; | |
15969 | *) | |
15970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15971 | for as_dir in $PATH | |
15972 | do | |
15973 | IFS=$as_save_IFS | |
15974 | test -z "$as_dir" && as_dir=. | |
15975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15977 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15979 | break 2 | |
15980 | fi | |
15981 | done | |
15982 | done | |
15983 | IFS=$as_save_IFS | |
15984 | ||
15985 | ;; | |
15986 | esac | |
15987 | fi | |
15988 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15989 | if test -n "$PKG_CONFIG"; then | |
15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15991 | $as_echo "$PKG_CONFIG" >&6; } | |
15992 | else | |
15993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15994 | $as_echo "no" >&6; } | |
15995 | fi | |
15996 | ||
15997 | ||
15998 | fi | |
15999 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16000 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16001 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16002 | set dummy pkg-config; ac_word=$2 | |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16004 | $as_echo_n "checking for $ac_word... " >&6; } | |
16005 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
16006 | $as_echo_n "(cached) " >&6 | |
16007 | else | |
16008 | case $ac_pt_PKG_CONFIG in | |
16009 | [\\/]* | ?:[\\/]*) | |
16010 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16011 | ;; | |
16012 | *) | |
16013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16014 | for as_dir in $PATH | |
16015 | do | |
16016 | IFS=$as_save_IFS | |
16017 | test -z "$as_dir" && as_dir=. | |
16018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16020 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16022 | break 2 | |
16023 | fi | |
16024 | done | |
16025 | done | |
16026 | IFS=$as_save_IFS | |
16027 | ||
16028 | ;; | |
16029 | esac | |
16030 | fi | |
16031 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16032 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16034 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16035 | else | |
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16037 | $as_echo "no" >&6; } | |
16038 | fi | |
16039 | ||
16040 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16041 | PKG_CONFIG="" | |
16042 | else | |
16043 | case $cross_compiling:$ac_tool_warned in | |
16044 | yes:) | |
16045 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16046 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16047 | ac_tool_warned=yes ;; | |
16048 | esac | |
16049 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16050 | fi | |
16051 | else | |
16052 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16053 | fi | |
16054 | ||
16055 | fi | |
16056 | if test -n "$PKG_CONFIG"; then | |
16057 | _pkg_min_version=0.9.0 | |
16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16059 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16060 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16062 | $as_echo "yes" >&6; } | |
16063 | else | |
16064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16065 | $as_echo "no" >&6; } | |
16066 | PKG_CONFIG="" | |
16067 | fi | |
16068 | fi | |
16069 | ||
16070 | pkg_failed=no | |
16071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16072 | $as_echo_n "checking for SQLITE... " >&6; } | |
16073 | ||
16074 | if test -n "$SQLITE_CFLAGS"; then | |
16075 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16076 | elif test -n "$PKG_CONFIG"; then | |
16077 | if test -n "$PKG_CONFIG" && \ | |
16078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16079 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16080 | ac_status=$? | |
16081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16082 | test $ac_status = 0; }; then | |
16083 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16084 | test "x$?" != "x0" && pkg_failed=yes | |
16085 | else | |
16086 | pkg_failed=yes | |
16087 | fi | |
16088 | else | |
16089 | pkg_failed=untried | |
16090 | fi | |
16091 | if test -n "$SQLITE_LIBS"; then | |
16092 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16093 | elif test -n "$PKG_CONFIG"; then | |
16094 | if test -n "$PKG_CONFIG" && \ | |
16095 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16096 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16097 | ac_status=$? | |
16098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16099 | test $ac_status = 0; }; then | |
16100 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16101 | test "x$?" != "x0" && pkg_failed=yes | |
16102 | else | |
16103 | pkg_failed=yes | |
16104 | fi | |
16105 | else | |
16106 | pkg_failed=untried | |
16107 | fi | |
16108 | ||
16109 | ||
16110 | ||
16111 | if test $pkg_failed = yes; then | |
16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16113 | $as_echo "no" >&6; } | |
16114 | ||
16115 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16116 | _pkg_short_errors_supported=yes | |
16117 | else | |
16118 | _pkg_short_errors_supported=no | |
16119 | fi | |
16120 | if test $_pkg_short_errors_supported = yes; then | |
16121 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16122 | else | |
16123 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16124 | fi | |
16125 | # Put the nasty error message in config.log where it belongs | |
16126 | echo "$SQLITE_PKG_ERRORS" >&5 | |
16127 | ||
16128 | shared_sqlite=no | |
16129 | elif test $pkg_failed = untried; then | |
16130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16131 | $as_echo "no" >&6; } | |
16132 | shared_sqlite=no | |
16133 | else | |
16134 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
16135 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16137 | $as_echo "yes" >&6; } | |
16138 | ||
16139 | shared_sqlite=yes | |
16140 | ||
16141 | fi | |
16142 | fi | |
16143 | ||
16144 | if test "$shared_sqlite" = no; then | |
16145 | SQLITE_OBJ='sqlite3.$(OBJEXT)' | |
16146 | fi | |
16147 | ||
16148 | SQLITE_LD="$SQLITE_LIBS" | |
16149 | ||
16150 | SQLITE_INCLUDES="$SQLITE_CFLAGS" | |
16151 | ||
16152 | ||
16153 | ||
16154 | ||
16155 | ||
16156 | # Check whether --with-confdir was given. | |
16157 | if test "${with_confdir+set}" = set; then : | |
16158 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` | |
16159 | else | |
16160 | confdir='${sysconfdir}' | |
16161 | fi | |
16162 | ||
16163 | ||
16164 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16165 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16166 | last_ac_define_dir=`eval echo $sysconfdir` | |
16167 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16168 | ac_define_dir_counter=0 | |
16169 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
16170 | last_ac_define_dir="$ac_define_dir" | |
16171 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16172 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
16173 | if test "x$ac_define_dir_counter" = x128; then : | |
16174 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
16175 | break | |
16176 | fi | |
16177 | done | |
16178 | ETC_DIR="$ac_define_dir" | |
16179 | ||
16180 | ||
16181 | cat >>confdefs.h <<_ACEOF | |
16182 | #define ETC_DIR "$ac_define_dir" | |
16183 | _ACEOF | |
16184 | ||
16185 | ||
16186 | ||
16187 | ||
16188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 | |
16189 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
16190 | ||
16191 | # Check whether --with-logdir was given. | |
16192 | if test "${with_logdir+set}" = set; then : | |
16193 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` | |
16194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16195 | $as_echo "yes" >&6; } | |
16196 | else | |
16197 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16198 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
16199 | else | |
16200 | logdir='${prefix}/logs' | |
16201 | fi | |
16202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16203 | $as_echo "no" >&6; } | |
16204 | fi | |
16205 | ||
16206 | ||
16207 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16208 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16209 | last_ac_define_dir=`eval echo $logdir` | |
16210 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16211 | ac_define_dir_counter=0 | |
16212 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
16213 | last_ac_define_dir="$ac_define_dir" | |
16214 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16215 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
16216 | if test "x$ac_define_dir_counter" = x128; then : | |
16217 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
16218 | break | |
16219 | fi | |
16220 | done | |
16221 | LOG_DIR="$ac_define_dir" | |
16222 | ||
16223 | ||
16224 | cat >>confdefs.h <<_ACEOF | |
16225 | #define LOG_DIR "$ac_define_dir" | |
16226 | _ACEOF | |
16227 | ||
16228 | ||
16229 | ||
16230 | ||
16231 | logdir=`( | |
16232 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16233 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16234 | eval echo \""$logdir"\" | |
16235 | )` | |
16236 | ||
16237 | ||
16238 | ||
16239 | ||
16240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 | |
16241 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
16242 | ||
16243 | # Check whether --with-helpdir was given. | |
16244 | if test "${with_helpdir+set}" = set; then : | |
16245 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` | |
16246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16247 | $as_echo "yes" >&6; } | |
16248 | else | |
16249 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16250 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
16251 | else | |
16252 | helpdir='${prefix}/help' | |
16253 | fi | |
16254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16255 | $as_echo "no" >&6; } | |
16256 | fi | |
16257 | ||
16258 | ||
16259 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16260 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16261 | last_ac_define_dir=`eval echo $helpdir` | |
16262 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16263 | ac_define_dir_counter=0 | |
16264 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
16265 | last_ac_define_dir="$ac_define_dir" | |
16266 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16267 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
16268 | if test "x$ac_define_dir_counter" = x128; then : | |
16269 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
16270 | break | |
16271 | fi | |
16272 | done | |
16273 | HELP_DIR="$ac_define_dir" | |
16274 | ||
16275 | ||
16276 | cat >>confdefs.h <<_ACEOF | |
16277 | #define HELP_DIR "$ac_define_dir" | |
16278 | _ACEOF | |
16279 | ||
16280 | ||
16281 | ||
16282 | ||
16283 | helpdir=`( | |
16284 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16285 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16286 | eval echo \""$helpdir"\" | |
16287 | )` | |
16288 | ||
16289 | ||
16290 | ||
16291 | ||
16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 | |
16293 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
16294 | ||
16295 | # Check whether --with-moduledir was given. | |
16296 | if test "${with_moduledir+set}" = set; then : | |
16297 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` | |
16298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16299 | $as_echo "yes" >&6; } | |
16300 | else | |
16301 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16302 | moduledir='${pkglibdir}/modules' | |
16303 | else | |
16304 | moduledir='${prefix}/modules' | |
16305 | fi | |
16306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16307 | $as_echo "no" >&6; } | |
16308 | ||
16309 | fi | |
16310 | ||
16311 | ||
16312 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16313 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16314 | last_ac_define_dir=`eval echo $moduledir` | |
16315 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16316 | ac_define_dir_counter=0 | |
16317 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
16318 | last_ac_define_dir="$ac_define_dir" | |
16319 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16320 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
16321 | if test "x$ac_define_dir_counter" = x128; then : | |
16322 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
16323 | break | |
16324 | fi | |
16325 | done | |
16326 | MODULE_DIR="$ac_define_dir" | |
16327 | ||
16328 | ||
16329 | cat >>confdefs.h <<_ACEOF | |
16330 | #define MODULE_DIR "$ac_define_dir" | |
16331 | _ACEOF | |
16332 | ||
16333 | ||
16334 | ||
16335 | ||
16336 | moduledir=`( | |
16337 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16338 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16339 | eval echo \""$moduledir"\" | |
16340 | )` | |
16341 | ||
16342 | ||
16343 | ||
16344 | ||
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
16346 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
16347 | ||
16348 | # Check whether --with-rundir was given. | |
16349 | if test "${with_rundir+set}" = set; then : | |
16350 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16351 | $as_echo "yes" >&6; } | |
16352 | rundir=`echo $withval | sed 's/\/$//'` | |
16353 | else | |
16354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16355 | $as_echo "no" >&6; } | |
16356 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16357 | rundir='${prefix}/run' | |
16358 | else | |
16359 | rundir='${sysconfdir}' | |
16360 | fi | |
16361 | fi | |
16362 | ||
16363 | ||
16364 | ||
16365 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16366 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16367 | last_ac_define_dir=`eval echo $pkgrundir` | |
16368 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16369 | ac_define_dir_counter=0 | |
16370 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
16371 | last_ac_define_dir="$ac_define_dir" | |
16372 | ac_define_dir=`eval echo $last_ac_define_dir` | |
16373 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
16374 | if test "x$ac_define_dir_counter" = x128; then : | |
16375 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
16376 | break | |
16377 | fi | |
16378 | done | |
16379 | PKGRUNDIR="$ac_define_dir" | |
16380 | ||
16381 | ||
16382 | cat >>confdefs.h <<_ACEOF | |
16383 | #define PKGRUNDIR "$ac_define_dir" | |
16384 | _ACEOF | |
16385 | ||
16386 | ||
16387 | ||
16388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 | |
16389 | $as_echo_n "checking for program prefix... " >&6; } | |
16390 | ||
16391 | # Check whether --with-program-prefix was given. | |
16392 | if test "${with_program_prefix+set}" = set; then : | |
16393 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
16394 | else | |
16395 | with_program_prefix= | |
16396 | fi | |
16397 | ||
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 | |
16399 | $as_echo "\"$with_program_prefix\"" >&6; } | |
16400 | PROGRAM_PREFIX="$with_program_prefix" | |
16401 | ||
16402 | ||
16403 | cat >>confdefs.h <<_ACEOF | |
16404 | #define PROGRAM_PREFIX "$with_program_prefix" | |
16405 | _ACEOF | |
16406 | ||
16407 | ||
16408 | ||
16409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
16410 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
16411 | ||
16412 | # Check whether --with-custom-branding was given. | |
16413 | if test "${with_custom_branding+set}" = set; then : | |
16414 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
16415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16416 | $as_echo "yes" >&6; } | |
16417 | else | |
16418 | BRANDING_NAME=$PACKAGE_NAME | |
16419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16420 | $as_echo "no" >&6; } | |
16421 | ||
16422 | fi | |
16423 | ||
16424 | ||
16425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
16426 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
16427 | ||
16428 | # Check whether --with-custom-version was given. | |
16429 | if test "${with_custom_version+set}" = set; then : | |
16430 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16432 | $as_echo "yes" >&6; } | |
16433 | else | |
16434 | BRANDING_VERSION=$PACKAGE_VERSION | |
16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16436 | $as_echo "no" >&6; } | |
16437 | ||
16438 | fi | |
16439 | ||
16440 | ||
16441 | ||
16442 | cat >>confdefs.h <<_ACEOF | |
16443 | #define BRANDING_NAME "$BRANDING_NAME" | |
16444 | _ACEOF | |
16445 | ||
16446 | ||
16447 | cat >>confdefs.h <<_ACEOF | |
16448 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
16449 | _ACEOF | |
16450 | ||
16451 | ||
16452 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then | |
16453 | ||
16454 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
16455 | ||
16456 | fi | |
16457 | ||
16458 | ||
16459 | # Check whether --enable-assert was given. | |
16460 | if test "${enable_assert+set}" = set; then : | |
16461 | enableval=$enable_assert; assert=$enableval | |
16462 | else | |
16463 | assert=no | |
16464 | fi | |
16465 | ||
16466 | ||
16467 | if test "$assert" = no; then | |
16468 | ||
16469 | $as_echo "#define NDEBUG 1" >>confdefs.h | |
16470 | ||
16471 | elif test "$assert" = soft; then | |
16472 | ||
16473 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h | |
16474 | ||
16475 | ||
16476 | $as_echo "#define NDEBUG 1" >>confdefs.h | |
16477 | ||
16478 | elif test "$assert" = yes; then | |
16479 | assert = "hard"; | |
16480 | fi | |
16481 | ||
16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 | |
16483 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
16484 | # Check whether --enable-iodebug was given. | |
16485 | if test "${enable_iodebug+set}" = set; then : | |
16486 | enableval=$enable_iodebug; iodebug=$enableval | |
16487 | else | |
16488 | iodebug=no | |
16489 | fi | |
16490 | ||
16491 | ||
16492 | if test "$iodebug" = yes; then | |
16493 | ||
16494 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h | |
16495 | ||
16496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16497 | $as_echo "yes" >&6; } | |
16498 | else | |
16499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16500 | $as_echo "no" >&6; } | |
16501 | fi | |
16502 | ||
16503 | ||
16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 | |
16505 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
16506 | # Check whether --enable-profile was given. | |
16507 | if test "${enable_profile+set}" = set; then : | |
16508 | enableval=$enable_profile; profile=$enableval | |
16509 | else | |
16510 | profile=no | |
16511 | fi | |
16512 | ||
16513 | ||
16514 | if test "$profile" = yes; then | |
16515 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16516 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 | |
16518 | $as_echo "yes, adding -pg" >&6; } | |
16519 | ||
16520 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h | |
16521 | ||
16522 | else | |
16523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 | |
16524 | $as_echo "no, profile builds only work with gcc" >&6; } | |
16525 | fi | |
16526 | else | |
16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16528 | $as_echo "no" >&6; } | |
16529 | fi | |
16530 | ||
16531 | ||
16532 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h | |
16533 | ||
16534 | ||
16535 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h | |
16536 | ||
16537 | ||
16538 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h | |
16539 | ||
16540 | ||
16541 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h | |
16542 | ||
16543 | ||
16544 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h | |
16545 | ||
16546 | ||
16547 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h | |
16548 | ||
16549 | ||
16550 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h | |
16551 | ||
16552 | ||
16553 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h | |
16554 | ||
16555 | ||
16556 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h | |
16557 | ||
16558 | ||
16559 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h | |
16560 | ||
16561 | ||
16562 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h | |
16563 | ||
16564 | ||
16565 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h | |
16566 | ||
16567 | ||
16568 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h | |
16569 | ||
16570 | ||
16571 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h | |
16572 | ||
16573 | ||
16574 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h | |
16575 | ||
16576 | ||
16577 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h | |
16578 | ||
16579 | ||
16580 | ||
16581 | # Check whether --with-nicklen was given. | |
16582 | if test "${with_nicklen+set}" = set; then : | |
16583 | withval=$with_nicklen; | |
16584 | if ! expr "$withval" + 0 >/dev/null 2>&1; then | |
16585 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 | |
16586 | fi | |
16587 | if test $withval -gt 50; then | |
16588 | NICKLEN=50 | |
16589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
16590 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
16591 | elif test $withval -lt 9; then | |
16592 | NICKLEN=9 | |
16593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
16594 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
16595 | else | |
16596 | NICKLEN="$withval" | |
16597 | fi | |
16598 | ||
16599 | else | |
16600 | NICKLEN=31 | |
16601 | fi | |
16602 | ||
16603 | ||
16604 | ||
16605 | # Check whether --with-topiclen was given. | |
16606 | if test "${with_topiclen+set}" = set; then : | |
16607 | withval=$with_topiclen; | |
16608 | if test $withval -gt 390; then | |
16609 | TOPICLEN=390 | |
16610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
16611 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
16612 | else | |
16613 | TOPICLEN=$withval | |
16614 | fi | |
16615 | ||
16616 | else | |
16617 | TOPICLEN=390 | |
16618 | fi | |
16619 | ||
16620 | ||
16621 | ||
16622 | cat >>confdefs.h <<_ACEOF | |
16623 | #define TOPICLEN ${TOPICLEN} | |
16624 | _ACEOF | |
16625 | ||
16626 | ||
16627 | cat >>confdefs.h <<_ACEOF | |
16628 | #define NICKLEN (${NICKLEN}+1) | |
16629 | _ACEOF | |
16630 | ||
16631 | ||
16632 | # rpath, for finding libratbox.so at run time | |
16633 | hold_ldflags=$LDFLAGS | |
16634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 | |
16635 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
16636 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" | |
16637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16638 | /* end confdefs.h. */ | |
16639 | ||
16640 | int | |
16641 | main () | |
16642 | { | |
16643 | int i; | |
16644 | ; | |
16645 | return 0; | |
16646 | } | |
16647 | _ACEOF | |
16648 | if ac_fn_c_try_link "$LINENO"; then : | |
16649 | found=yes | |
16650 | else | |
16651 | found=no | |
16652 | fi | |
16653 | rm -f core conftest.err conftest.$ac_objext \ | |
16654 | conftest$ac_exeext conftest.$ac_ext | |
16655 | LDFLAGS=$hold_ldflags | |
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 | |
16657 | $as_echo "$found" >&6; } | |
16658 | if test "$found" = yes; then | |
16659 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
16660 | fi | |
16661 | ||
16662 | # This must be down here, or it will mess up checks like the ones | |
16663 | # for -Wl,-export-dynamic | |
16664 | # -- jilles | |
16665 | CWARNS="" | |
16666 | # Check whether --enable-warnings was given. | |
16667 | if test "${enable_warnings+set}" = set; then : | |
16668 | enableval=$enable_warnings; | |
16669 | IRC_CFLAGS="$IRC_CFLAGS -O0" | |
16670 | CFLAGS="$IRC_CFLAGS" | |
16671 | ||
16672 | ||
16673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 | |
16674 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
16675 | if test "${GCC-no}" = yes | |
16676 | then | |
16677 | if ${charybdis_cv_c_gcc_w_all+:} false; then : | |
16678 | $as_echo_n "(cached) " >&6 | |
16679 | else | |
16680 | ||
16681 | oldcflags="${CFLAGS-}" | |
16682 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
16683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16684 | /* end confdefs.h. */ | |
16685 | ||
16686 | #include <string.h> | |
16687 | #include <stdio.h> | |
16688 | int main(void); | |
16689 | ||
16690 | int | |
16691 | main () | |
16692 | { | |
16693 | ||
16694 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16695 | ||
16696 | ; | |
16697 | return 0; | |
16698 | } | |
16699 | _ACEOF | |
16700 | if ac_fn_c_try_compile "$LINENO"; then : | |
16701 | charybdis_cv_c_gcc_w_all=yes | |
16702 | else | |
16703 | charybdis_cv_c_gcc_w_all=no | |
16704 | fi | |
16705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16706 | CFLAGS="${oldcflags}" | |
16707 | fi | |
16708 | ||
16709 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
16710 | CWARNS="${CWARNS}-Wall " | |
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
16712 | $as_echo "ok" >&6; } | |
16713 | else | |
16714 | charybdis_cv_c_gcc_w_all='' | |
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16716 | $as_echo "no" >&6; } | |
16717 | fi | |
16718 | else | |
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16720 | $as_echo "no" >&6; } | |
16721 | fi | |
16722 | ||
16723 | ||
16724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 | |
16725 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
16726 | if test "${GCC-no}" = yes | |
16727 | then | |
16728 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : | |
16729 | $as_echo_n "(cached) " >&6 | |
16730 | else | |
16731 | ||
16732 | oldcflags="${CFLAGS-}" | |
16733 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
16734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16735 | /* end confdefs.h. */ | |
16736 | ||
16737 | #include <string.h> | |
16738 | #include <stdio.h> | |
16739 | int main(void); | |
16740 | ||
16741 | int | |
16742 | main () | |
16743 | { | |
16744 | ||
16745 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16746 | ||
16747 | ; | |
16748 | return 0; | |
16749 | } | |
16750 | _ACEOF | |
16751 | if ac_fn_c_try_compile "$LINENO"; then : | |
16752 | charybdis_cv_c_gcc_w_pointer_arith=yes | |
16753 | else | |
16754 | charybdis_cv_c_gcc_w_pointer_arith=no | |
16755 | fi | |
16756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16757 | CFLAGS="${oldcflags}" | |
16758 | fi | |
16759 | ||
16760 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
16761 | CWARNS="${CWARNS}-Wpointer-arith " | |
16762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
16763 | $as_echo "ok" >&6; } | |
16764 | else | |
16765 | charybdis_cv_c_gcc_w_pointer_arith='' | |
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16767 | $as_echo "no" >&6; } | |
16768 | fi | |
16769 | else | |
16770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16771 | $as_echo "no" >&6; } | |
16772 | fi | |
16773 | ||
16774 | ||
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 | |
16776 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
16777 | if test "${GCC-no}" = yes | |
16778 | then | |
16779 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : | |
16780 | $as_echo_n "(cached) " >&6 | |
16781 | else | |
16782 | ||
16783 | oldcflags="${CFLAGS-}" | |
16784 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
16785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16786 | /* end confdefs.h. */ | |
16787 | ||
16788 | #include <string.h> | |
16789 | #include <stdio.h> | |
16790 | int main(void); | |
16791 | ||
16792 | int | |
16793 | main () | |
16794 | { | |
16795 | ||
16796 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16797 | ||
16798 | ; | |
16799 | return 0; | |
16800 | } | |
16801 | _ACEOF | |
16802 | if ac_fn_c_try_compile "$LINENO"; then : | |
16803 | charybdis_cv_c_gcc_w_implicit=yes | |
16804 | else | |
16805 | charybdis_cv_c_gcc_w_implicit=no | |
16806 | fi | |
16807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16808 | CFLAGS="${oldcflags}" | |
16809 | fi | |
16810 | ||
16811 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
16812 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
16813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
16814 | $as_echo "ok" >&6; } | |
16815 | else | |
16816 | charybdis_cv_c_gcc_w_implicit='' | |
16817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16818 | $as_echo "no" >&6; } | |
16819 | fi | |
16820 | else | |
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16822 | $as_echo "no" >&6; } | |
16823 | fi | |
16824 | ||
16825 | ||
16826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 | |
16827 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
16828 | if test "${GCC-no}" = yes | |
16829 | then | |
16830 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : | |
16831 | $as_echo_n "(cached) " >&6 | |
16832 | else | |
16833 | ||
16834 | oldcflags="${CFLAGS-}" | |
16835 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
16836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16837 | /* end confdefs.h. */ | |
16838 | ||
16839 | #include <string.h> | |
16840 | #include <stdio.h> | |
16841 | int main(void); | |
16842 | ||
16843 | int | |
16844 | main () | |
16845 | { | |
16846 | ||
16847 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16848 | ||
16849 | ; | |
16850 | return 0; | |
16851 | } | |
16852 | _ACEOF | |
16853 | if ac_fn_c_try_compile "$LINENO"; then : | |
16854 | charybdis_cv_c_gcc_w_cast_align=yes | |
16855 | else | |
16856 | charybdis_cv_c_gcc_w_cast_align=no | |
16857 | fi | |
16858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16859 | CFLAGS="${oldcflags}" | |
16860 | fi | |
16861 | ||
16862 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
16863 | CWARNS="${CWARNS}-Wcast-align " | |
16864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
16865 | $as_echo "ok" >&6; } | |
16866 | else | |
16867 | charybdis_cv_c_gcc_w_cast_align='' | |
16868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16869 | $as_echo "no" >&6; } | |
16870 | fi | |
16871 | else | |
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16873 | $as_echo "no" >&6; } | |
16874 | fi | |
16875 | ||
16876 | ||
16877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 | |
16878 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
16879 | if test "${GCC-no}" = yes | |
16880 | then | |
16881 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : | |
16882 | $as_echo_n "(cached) " >&6 | |
16883 | else | |
16884 | ||
16885 | oldcflags="${CFLAGS-}" | |
16886 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
16887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16888 | /* end confdefs.h. */ | |
16889 | ||
16890 | #include <string.h> | |
16891 | #include <stdio.h> | |
16892 | int main(void); | |
16893 | ||
16894 | int | |
16895 | main () | |
16896 | { | |
16897 | ||
16898 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16899 | ||
16900 | ; | |
16901 | return 0; | |
16902 | } | |
16903 | _ACEOF | |
16904 | if ac_fn_c_try_compile "$LINENO"; then : | |
16905 | charybdis_cv_c_gcc_w_cast_qual=yes | |
16906 | else | |
16907 | charybdis_cv_c_gcc_w_cast_qual=no | |
16908 | fi | |
16909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16910 | CFLAGS="${oldcflags}" | |
16911 | fi | |
16912 | ||
16913 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
16914 | CWARNS="${CWARNS}-Wcast-qual " | |
16915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
16916 | $as_echo "ok" >&6; } | |
16917 | else | |
16918 | charybdis_cv_c_gcc_w_cast_qual='' | |
16919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16920 | $as_echo "no" >&6; } | |
16921 | fi | |
16922 | else | |
16923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16924 | $as_echo "no" >&6; } | |
16925 | fi | |
16926 | ||
16927 | ||
16928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 | |
16929 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
16930 | if test "${GCC-no}" = yes | |
16931 | then | |
16932 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : | |
16933 | $as_echo_n "(cached) " >&6 | |
16934 | else | |
16935 | ||
16936 | oldcflags="${CFLAGS-}" | |
16937 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
16938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16939 | /* end confdefs.h. */ | |
16940 | ||
16941 | #include <string.h> | |
16942 | #include <stdio.h> | |
16943 | int main(void); | |
16944 | ||
16945 | int | |
16946 | main () | |
16947 | { | |
16948 | ||
16949 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16950 | ||
16951 | ; | |
16952 | return 0; | |
16953 | } | |
16954 | _ACEOF | |
16955 | if ac_fn_c_try_compile "$LINENO"; then : | |
16956 | charybdis_cv_c_gcc_w_write_strings=yes | |
16957 | else | |
16958 | charybdis_cv_c_gcc_w_write_strings=no | |
16959 | fi | |
16960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16961 | CFLAGS="${oldcflags}" | |
16962 | fi | |
16963 | ||
16964 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then | |
16965 | CWARNS="${CWARNS}-Wwrite-strings " | |
16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
16967 | $as_echo "ok" >&6; } | |
16968 | else | |
16969 | charybdis_cv_c_gcc_w_write_strings='' | |
16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16971 | $as_echo "no" >&6; } | |
16972 | fi | |
16973 | else | |
16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16975 | $as_echo "no" >&6; } | |
16976 | fi | |
16977 | ||
16978 | ||
16979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 | |
16980 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
16981 | if test "${GCC-no}" = yes | |
16982 | then | |
16983 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : | |
16984 | $as_echo_n "(cached) " >&6 | |
16985 | else | |
16986 | ||
16987 | oldcflags="${CFLAGS-}" | |
16988 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
16989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16990 | /* end confdefs.h. */ | |
16991 | ||
16992 | #include <string.h> | |
16993 | #include <stdio.h> | |
16994 | int main(void); | |
16995 | ||
16996 | int | |
16997 | main () | |
16998 | { | |
16999 | ||
17000 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17001 | ||
17002 | ; | |
17003 | return 0; | |
17004 | } | |
17005 | _ACEOF | |
17006 | if ac_fn_c_try_compile "$LINENO"; then : | |
17007 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes | |
17008 | else | |
17009 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no | |
17010 | fi | |
17011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17012 | CFLAGS="${oldcflags}" | |
17013 | fi | |
17014 | ||
17015 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
17016 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
17017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17018 | $as_echo "ok" >&6; } | |
17019 | else | |
17020 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
17021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17022 | $as_echo "no" >&6; } | |
17023 | fi | |
17024 | else | |
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17026 | $as_echo "no" >&6; } | |
17027 | fi | |
17028 | ||
17029 | ||
17030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 | |
17031 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
17032 | if test "${GCC-no}" = yes | |
17033 | then | |
17034 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : | |
17035 | $as_echo_n "(cached) " >&6 | |
17036 | else | |
17037 | ||
17038 | oldcflags="${CFLAGS-}" | |
17039 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
17040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17041 | /* end confdefs.h. */ | |
17042 | ||
17043 | #include <string.h> | |
17044 | #include <stdio.h> | |
17045 | int main(void); | |
17046 | ||
17047 | int | |
17048 | main () | |
17049 | { | |
17050 | ||
17051 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17052 | ||
17053 | ; | |
17054 | return 0; | |
17055 | } | |
17056 | _ACEOF | |
17057 | if ac_fn_c_try_compile "$LINENO"; then : | |
17058 | charybdis_cv_c_gcc_prototypes=yes | |
17059 | else | |
17060 | charybdis_cv_c_gcc_prototypes=no | |
17061 | fi | |
17062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17063 | CFLAGS="${oldcflags}" | |
17064 | fi | |
17065 | ||
17066 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
17067 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17069 | $as_echo "ok" >&6; } | |
17070 | else | |
17071 | charybdis_cv_c_gcc_prototypes='' | |
17072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17073 | $as_echo "no" >&6; } | |
17074 | fi | |
17075 | else | |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17077 | $as_echo "no" >&6; } | |
17078 | fi | |
17079 | ||
17080 | ||
17081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 | |
17082 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
17083 | if test "${GCC-no}" = yes | |
17084 | then | |
17085 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : | |
17086 | $as_echo_n "(cached) " >&6 | |
17087 | else | |
17088 | ||
17089 | oldcflags="${CFLAGS-}" | |
17090 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
17091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17092 | /* end confdefs.h. */ | |
17093 | ||
17094 | #include <string.h> | |
17095 | #include <stdio.h> | |
17096 | int main(void); | |
17097 | ||
17098 | int | |
17099 | main () | |
17100 | { | |
17101 | ||
17102 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17103 | ||
17104 | ; | |
17105 | return 0; | |
17106 | } | |
17107 | _ACEOF | |
17108 | if ac_fn_c_try_compile "$LINENO"; then : | |
17109 | charybdis_cv_c_gcc_parenthesis=yes | |
17110 | else | |
17111 | charybdis_cv_c_gcc_parenthesis=no | |
17112 | fi | |
17113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17114 | CFLAGS="${oldcflags}" | |
17115 | fi | |
17116 | ||
17117 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
17118 | CWARNS="${CWARNS}-Wparenthesis " | |
17119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17120 | $as_echo "ok" >&6; } | |
17121 | else | |
17122 | charybdis_cv_c_gcc_parenthesis='' | |
17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17124 | $as_echo "no" >&6; } | |
17125 | fi | |
17126 | else | |
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17128 | $as_echo "no" >&6; } | |
17129 | fi | |
17130 | ||
17131 | ||
17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 | |
17133 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
17134 | if test "${GCC-no}" = yes | |
17135 | then | |
17136 | if ${charybdis_cv_c_gcc_w+:} false; then : | |
17137 | $as_echo_n "(cached) " >&6 | |
17138 | else | |
17139 | ||
17140 | oldcflags="${CFLAGS-}" | |
17141 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
17142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17143 | /* end confdefs.h. */ | |
17144 | ||
17145 | #include <string.h> | |
17146 | #include <stdio.h> | |
17147 | int main(void); | |
17148 | ||
17149 | int | |
17150 | main () | |
17151 | { | |
17152 | ||
17153 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17154 | ||
17155 | ; | |
17156 | return 0; | |
17157 | } | |
17158 | _ACEOF | |
17159 | if ac_fn_c_try_compile "$LINENO"; then : | |
17160 | charybdis_cv_c_gcc_w=yes | |
17161 | else | |
17162 | charybdis_cv_c_gcc_w=no | |
17163 | fi | |
17164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17165 | CFLAGS="${oldcflags}" | |
17166 | fi | |
17167 | ||
17168 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
17169 | CWARNS="${CWARNS}-W -Wno-unused " | |
17170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17171 | $as_echo "ok" >&6; } | |
17172 | else | |
17173 | charybdis_cv_c_gcc_w='' | |
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17175 | $as_echo "no" >&6; } | |
17176 | fi | |
17177 | else | |
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17179 | $as_echo "no" >&6; } | |
17180 | fi | |
17181 | ||
17182 | ||
17183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 | |
17184 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
17185 | if test "${GCC-no}" = yes | |
17186 | then | |
17187 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : | |
17188 | $as_echo_n "(cached) " >&6 | |
17189 | else | |
17190 | ||
17191 | oldcflags="${CFLAGS-}" | |
17192 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
17193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17194 | /* end confdefs.h. */ | |
17195 | ||
17196 | #include <string.h> | |
17197 | #include <stdio.h> | |
17198 | int main(void); | |
17199 | ||
17200 | int | |
17201 | main () | |
17202 | { | |
17203 | ||
17204 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17205 | ||
17206 | ; | |
17207 | return 0; | |
17208 | } | |
17209 | _ACEOF | |
17210 | if ac_fn_c_try_compile "$LINENO"; then : | |
17211 | charybdis_cv_c_gcc_w_extra=yes | |
17212 | else | |
17213 | charybdis_cv_c_gcc_w_extra=no | |
17214 | fi | |
17215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17216 | CFLAGS="${oldcflags}" | |
17217 | fi | |
17218 | ||
17219 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
17220 | CWARNS="${CWARNS}-Wextra " | |
17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17222 | $as_echo "ok" >&6; } | |
17223 | else | |
17224 | charybdis_cv_c_gcc_w_extra='' | |
17225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17226 | $as_echo "no" >&6; } | |
17227 | fi | |
17228 | else | |
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17230 | $as_echo "no" >&6; } | |
17231 | fi | |
17232 | ||
17233 | ||
17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 | |
17235 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
17236 | if test "${GCC-no}" = yes | |
17237 | then | |
17238 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : | |
17239 | $as_echo_n "(cached) " >&6 | |
17240 | else | |
17241 | ||
17242 | oldcflags="${CFLAGS-}" | |
17243 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
17244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17245 | /* end confdefs.h. */ | |
17246 | ||
17247 | #include <string.h> | |
17248 | #include <stdio.h> | |
17249 | int main(void); | |
17250 | ||
17251 | int | |
17252 | main () | |
17253 | { | |
17254 | ||
17255 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17256 | ||
17257 | ; | |
17258 | return 0; | |
17259 | } | |
17260 | _ACEOF | |
17261 | if ac_fn_c_try_compile "$LINENO"; then : | |
17262 | charybdis_cv_c_gcc_w_shadow=yes | |
17263 | else | |
17264 | charybdis_cv_c_gcc_w_shadow=no | |
17265 | fi | |
17266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17267 | CFLAGS="${oldcflags}" | |
17268 | fi | |
17269 | ||
17270 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
17271 | CWARNS="${CWARNS}-Wshadow " | |
17272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17273 | $as_echo "ok" >&6; } | |
17274 | else | |
17275 | charybdis_cv_c_gcc_w_shadow='' | |
17276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17277 | $as_echo "no" >&6; } | |
17278 | fi | |
17279 | else | |
17280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17281 | $as_echo "no" >&6; } | |
17282 | fi | |
17283 | ||
17284 | ||
17285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 | |
17286 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
17287 | if test "${GCC-no}" = yes | |
17288 | then | |
17289 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : | |
17290 | $as_echo_n "(cached) " >&6 | |
17291 | else | |
17292 | ||
17293 | oldcflags="${CFLAGS-}" | |
17294 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
17295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17296 | /* end confdefs.h. */ | |
17297 | ||
17298 | #include <string.h> | |
17299 | #include <stdio.h> | |
17300 | int main(void); | |
17301 | ||
17302 | int | |
17303 | main () | |
17304 | { | |
17305 | ||
17306 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17307 | ||
17308 | ; | |
17309 | return 0; | |
17310 | } | |
17311 | _ACEOF | |
17312 | if ac_fn_c_try_compile "$LINENO"; then : | |
17313 | charybdis_cv_c_gcc_w_missing_noreturn=yes | |
17314 | else | |
17315 | charybdis_cv_c_gcc_w_missing_noreturn=no | |
17316 | fi | |
17317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17318 | CFLAGS="${oldcflags}" | |
17319 | fi | |
17320 | ||
17321 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
17322 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
17323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17324 | $as_echo "ok" >&6; } | |
17325 | else | |
17326 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17328 | $as_echo "no" >&6; } | |
17329 | fi | |
17330 | else | |
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17332 | $as_echo "no" >&6; } | |
17333 | fi | |
17334 | ||
17335 | ||
17336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 | |
17337 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
17338 | if test "${GCC-no}" = yes | |
17339 | then | |
17340 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : | |
17341 | $as_echo_n "(cached) " >&6 | |
17342 | else | |
17343 | ||
17344 | oldcflags="${CFLAGS-}" | |
17345 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
17346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17347 | /* end confdefs.h. */ | |
17348 | ||
17349 | #include <string.h> | |
17350 | #include <stdio.h> | |
17351 | int main(void); | |
17352 | ||
17353 | int | |
17354 | main () | |
17355 | { | |
17356 | ||
17357 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17358 | ||
17359 | ; | |
17360 | return 0; | |
17361 | } | |
17362 | _ACEOF | |
17363 | if ac_fn_c_try_compile "$LINENO"; then : | |
17364 | charybdis_cv_c_gcc_w_undef=yes | |
17365 | else | |
17366 | charybdis_cv_c_gcc_w_undef=no | |
17367 | fi | |
17368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17369 | CFLAGS="${oldcflags}" | |
17370 | fi | |
17371 | ||
17372 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
17373 | CWARNS="${CWARNS}-Wundef " | |
17374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17375 | $as_echo "ok" >&6; } | |
17376 | else | |
17377 | charybdis_cv_c_gcc_w_undef='' | |
17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17379 | $as_echo "no" >&6; } | |
17380 | fi | |
17381 | else | |
17382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17383 | $as_echo "no" >&6; } | |
17384 | fi | |
17385 | ||
17386 | ||
17387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 | |
17388 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
17389 | if test "${GCC-no}" = yes | |
17390 | then | |
17391 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : | |
17392 | $as_echo_n "(cached) " >&6 | |
17393 | else | |
17394 | ||
17395 | oldcflags="${CFLAGS-}" | |
17396 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
17397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17398 | /* end confdefs.h. */ | |
17399 | ||
17400 | #include <string.h> | |
17401 | #include <stdio.h> | |
17402 | int main(void); | |
17403 | ||
17404 | int | |
17405 | main () | |
17406 | { | |
17407 | ||
17408 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17409 | ||
17410 | ; | |
17411 | return 0; | |
17412 | } | |
17413 | _ACEOF | |
17414 | if ac_fn_c_try_compile "$LINENO"; then : | |
17415 | charybdis_cv_c_gcc_w_packed=yes | |
17416 | else | |
17417 | charybdis_cv_c_gcc_w_packed=no | |
17418 | fi | |
17419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17420 | CFLAGS="${oldcflags}" | |
17421 | fi | |
17422 | ||
17423 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
17424 | CWARNS="${CWARNS}-Wpacked " | |
17425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17426 | $as_echo "ok" >&6; } | |
17427 | else | |
17428 | charybdis_cv_c_gcc_w_packed='' | |
17429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17430 | $as_echo "no" >&6; } | |
17431 | fi | |
17432 | else | |
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17434 | $as_echo "no" >&6; } | |
17435 | fi | |
17436 | ||
17437 | ||
17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 | |
17439 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
17440 | if test "${GCC-no}" = yes | |
17441 | then | |
17442 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : | |
17443 | $as_echo_n "(cached) " >&6 | |
17444 | else | |
17445 | ||
17446 | oldcflags="${CFLAGS-}" | |
17447 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
17448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17449 | /* end confdefs.h. */ | |
17450 | ||
17451 | #include <string.h> | |
17452 | #include <stdio.h> | |
17453 | int main(void); | |
17454 | ||
17455 | int | |
17456 | main () | |
17457 | { | |
17458 | ||
17459 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17460 | ||
17461 | ; | |
17462 | return 0; | |
17463 | } | |
17464 | _ACEOF | |
17465 | if ac_fn_c_try_compile "$LINENO"; then : | |
17466 | charybdis_cv_c_gcc_w_nested_externs=yes | |
17467 | else | |
17468 | charybdis_cv_c_gcc_w_nested_externs=no | |
17469 | fi | |
17470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17471 | CFLAGS="${oldcflags}" | |
17472 | fi | |
17473 | ||
17474 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
17475 | CWARNS="${CWARNS}-Wnested-externs " | |
17476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17477 | $as_echo "ok" >&6; } | |
17478 | else | |
17479 | charybdis_cv_c_gcc_w_nested_externs='' | |
17480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17481 | $as_echo "no" >&6; } | |
17482 | fi | |
17483 | else | |
17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17485 | $as_echo "no" >&6; } | |
17486 | fi | |
17487 | ||
17488 | ||
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 | |
17490 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
17491 | if test "${GCC-no}" = yes | |
17492 | then | |
17493 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : | |
17494 | $as_echo_n "(cached) " >&6 | |
17495 | else | |
17496 | ||
17497 | oldcflags="${CFLAGS-}" | |
17498 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
17499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17500 | /* end confdefs.h. */ | |
17501 | ||
17502 | #include <string.h> | |
17503 | #include <stdio.h> | |
17504 | int main(void); | |
17505 | ||
17506 | int | |
17507 | main () | |
17508 | { | |
17509 | ||
17510 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17511 | ||
17512 | ; | |
17513 | return 0; | |
17514 | } | |
17515 | _ACEOF | |
17516 | if ac_fn_c_try_compile "$LINENO"; then : | |
17517 | charybdis_cv_c_gcc_w_unused=yes | |
17518 | else | |
17519 | charybdis_cv_c_gcc_w_unused=no | |
17520 | fi | |
17521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17522 | CFLAGS="${oldcflags}" | |
17523 | fi | |
17524 | ||
17525 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
17526 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
17527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17528 | $as_echo "ok" >&6; } | |
17529 | else | |
17530 | charybdis_cv_c_gcc_w_unused='' | |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17532 | $as_echo "no" >&6; } | |
17533 | fi | |
17534 | else | |
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17536 | $as_echo "no" >&6; } | |
17537 | fi | |
17538 | ||
17539 | ||
17540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 | |
17541 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
17542 | if test "${GCC-no}" = yes | |
17543 | then | |
17544 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : | |
17545 | $as_echo_n "(cached) " >&6 | |
17546 | else | |
17547 | ||
17548 | oldcflags="${CFLAGS-}" | |
17549 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
17550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17551 | /* end confdefs.h. */ | |
17552 | ||
17553 | #include <string.h> | |
17554 | #include <stdio.h> | |
17555 | int main(void); | |
17556 | ||
17557 | int | |
17558 | main () | |
17559 | { | |
17560 | ||
17561 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17562 | ||
17563 | ; | |
17564 | return 0; | |
17565 | } | |
17566 | _ACEOF | |
17567 | if ac_fn_c_try_compile "$LINENO"; then : | |
17568 | charybdis_cv_c_gcc_w_redundant_decls=yes | |
17569 | else | |
17570 | charybdis_cv_c_gcc_w_redundant_decls=no | |
17571 | fi | |
17572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17573 | CFLAGS="${oldcflags}" | |
17574 | fi | |
17575 | ||
17576 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
17577 | CWARNS="${CWARNS}-Wredundant-decls " | |
17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17579 | $as_echo "ok" >&6; } | |
17580 | else | |
17581 | charybdis_cv_c_gcc_w_redundant_decls='' | |
17582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17583 | $as_echo "no" >&6; } | |
17584 | fi | |
17585 | else | |
17586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17587 | $as_echo "no" >&6; } | |
17588 | fi | |
17589 | ||
17590 | ||
17591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 | |
17592 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
17593 | if test "${GCC-no}" = yes | |
17594 | then | |
17595 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : | |
17596 | $as_echo_n "(cached) " >&6 | |
17597 | else | |
17598 | ||
17599 | oldcflags="${CFLAGS-}" | |
17600 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
17601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17602 | /* end confdefs.h. */ | |
17603 | ||
17604 | #include <string.h> | |
17605 | #include <stdio.h> | |
17606 | int main(void); | |
17607 | ||
17608 | int | |
17609 | main () | |
17610 | { | |
17611 | ||
17612 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17613 | ||
17614 | ; | |
17615 | return 0; | |
17616 | } | |
17617 | _ACEOF | |
17618 | if ac_fn_c_try_compile "$LINENO"; then : | |
17619 | charybdis_cv_c_gcc_w_float_equal=yes | |
17620 | else | |
17621 | charybdis_cv_c_gcc_w_float_equal=no | |
17622 | fi | |
17623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17624 | CFLAGS="${oldcflags}" | |
17625 | fi | |
17626 | ||
17627 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
17628 | CWARNS="${CWARNS}-Wfloat-equal " | |
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17630 | $as_echo "ok" >&6; } | |
17631 | else | |
17632 | charybdis_cv_c_gcc_w_float_equal='' | |
17633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17634 | $as_echo "no" >&6; } | |
17635 | fi | |
17636 | else | |
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17638 | $as_echo "no" >&6; } | |
17639 | fi | |
17640 | ||
17641 | ||
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 | |
17643 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
17644 | if test "${GCC-no}" = yes | |
17645 | then | |
17646 | if ${charybdis_cv_c_gcc_w_format+:} false; then : | |
17647 | $as_echo_n "(cached) " >&6 | |
17648 | else | |
17649 | ||
17650 | oldcflags="${CFLAGS-}" | |
17651 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" | |
17652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17653 | /* end confdefs.h. */ | |
17654 | ||
17655 | #include <string.h> | |
17656 | #include <stdio.h> | |
17657 | int main(void); | |
17658 | ||
17659 | int | |
17660 | main () | |
17661 | { | |
17662 | ||
17663 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17664 | ||
17665 | ; | |
17666 | return 0; | |
17667 | } | |
17668 | _ACEOF | |
17669 | if ac_fn_c_try_compile "$LINENO"; then : | |
17670 | charybdis_cv_c_gcc_w_format=yes | |
17671 | else | |
17672 | charybdis_cv_c_gcc_w_format=no | |
17673 | fi | |
17674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17675 | CFLAGS="${oldcflags}" | |
17676 | fi | |
17677 | ||
17678 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
17679 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
17680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17681 | $as_echo "ok" >&6; } | |
17682 | else | |
17683 | charybdis_cv_c_gcc_w_format='' | |
17684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17685 | $as_echo "no" >&6; } | |
17686 | fi | |
17687 | else | |
17688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17689 | $as_echo "no" >&6; } | |
17690 | fi | |
17691 | ||
17692 | ||
17693 | IRC_CFLAGS="$CFLAGS" | |
17694 | ||
17695 | fi | |
17696 | ||
17697 | ||
17698 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" | |
17699 | ||
17700 | ||
17701 | ||
17702 | ||
17703 | ||
17704 | ||
17705 | ||
17706 | ||
17707 | ||
17708 | ||
17709 | ||
17710 | ||
17711 | ||
17712 | ||
17713 | if test "$prefix" = "NONE"; then | |
17714 | ||
17715 | cat >>confdefs.h <<_ACEOF | |
17716 | #define IRCD_PREFIX "$ac_default_prefix" | |
17717 | _ACEOF | |
17718 | ||
17719 | ||
17720 | else | |
17721 | ||
17722 | ||
17723 | prefix=`echo $prefix | sed 's/\/$//'` | |
17724 | ||
17725 | cat >>confdefs.h <<_ACEOF | |
17726 | #define IRCD_PREFIX "$prefix" | |
17727 | _ACEOF | |
17728 | ||
17729 | ||
17730 | fi | |
17731 | ||
17732 | ac_config_files="$ac_config_files Makefile authd/Makefile bandb/Makefile ssld/Makefile extensions/Makefile ircd/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" | |
17733 | ||
17734 | ac_config_commands="$ac_config_commands tools/genssl_chmod" | |
17735 | ||
17736 | ||
17737 | cat >confcache <<\_ACEOF | |
17738 | # This file is a shell script that caches the results of configure | |
17739 | # tests run on this system so they can be shared between configure | |
17740 | # scripts and configure runs, see configure's option --config-cache. | |
17741 | # It is not useful on other systems. If it contains results you don't | |
17742 | # want to keep, you may remove or edit it. | |
17743 | # | |
17744 | # config.status only pays attention to the cache file if you give it | |
17745 | # the --recheck option to rerun configure. | |
17746 | # | |
17747 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17748 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17749 | # following values. | |
17750 | ||
17751 | _ACEOF | |
17752 | ||
17753 | # The following way of writing the cache mishandles newlines in values, | |
17754 | # but we know of no workaround that is simple, portable, and efficient. | |
17755 | # So, we kill variables containing newlines. | |
17756 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17757 | # and sets the high bit in the cache file unless we assign to the vars. | |
17758 | ( | |
17759 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17760 | eval ac_val=\$$ac_var | |
17761 | case $ac_val in #( | |
17762 | *${as_nl}*) | |
17763 | case $ac_var in #( | |
17764 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17765 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17766 | esac | |
17767 | case $ac_var in #( | |
17768 | _ | IFS | as_nl) ;; #( | |
17769 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17770 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17771 | esac ;; | |
17772 | esac | |
17773 | done | |
17774 | ||
17775 | (set) 2>&1 | | |
17776 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17777 | *${as_nl}ac_space=\ *) | |
17778 | # `set' does not quote correctly, so add quotes: double-quote | |
17779 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
17780 | sed -n \ | |
17781 | "s/'/'\\\\''/g; | |
17782 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17783 | ;; #( | |
17784 | *) | |
17785 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17786 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17787 | ;; | |
17788 | esac | | |
17789 | sort | |
17790 | ) | | |
17791 | sed ' | |
17792 | /^ac_cv_env_/b end | |
17793 | t clear | |
17794 | :clear | |
17795 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17796 | t end | |
17797 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17798 | :end' >>confcache | |
17799 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17800 | if test -w "$cache_file"; then | |
17801 | if test "x$cache_file" != "x/dev/null"; then | |
17802 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
17803 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
17804 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
17805 | cat confcache >"$cache_file" | |
17806 | else | |
17807 | case $cache_file in #( | |
17808 | */* | ?:*) | |
17809 | mv -f confcache "$cache_file"$$ && | |
17810 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17811 | *) | |
17812 | mv -f confcache "$cache_file" ;; | |
17813 | esac | |
17814 | fi | |
17815 | fi | |
17816 | else | |
17817 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
17818 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17819 | fi | |
17820 | fi | |
17821 | rm -f confcache | |
17822 | ||
17823 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17824 | # Let make expand exec_prefix. | |
17825 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17826 | ||
17827 | DEFS=-DHAVE_CONFIG_H | |
17828 | ||
17829 | ac_libobjs= | |
17830 | ac_ltlibobjs= | |
17831 | U= | |
17832 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17833 | # 1. Remove the extension, and $U if already installed. | |
17834 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
17835 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17836 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17837 | # will be set to the directory where LIBOBJS objects are built. | |
17838 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17839 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
17840 | done | |
17841 | LIBOBJS=$ac_libobjs | |
17842 | ||
17843 | LTLIBOBJS=$ac_ltlibobjs | |
17844 | ||
17845 | ||
17846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
17847 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17848 | if test -n "$am_sleep_pid"; then | |
17849 | # Hide warnings about reused PIDs. | |
17850 | wait $am_sleep_pid 2>/dev/null | |
17851 | fi | |
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17853 | $as_echo "done" >&6; } | |
17854 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
17855 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17856 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17857 | fi | |
17858 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17859 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17860 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17861 | fi | |
17862 | if test -n "$EXEEXT"; then | |
17863 | am__EXEEXT_TRUE= | |
17864 | am__EXEEXT_FALSE='#' | |
17865 | else | |
17866 | am__EXEEXT_TRUE='#' | |
17867 | am__EXEEXT_FALSE= | |
17868 | fi | |
17869 | ||
17870 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | |
17871 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
17872 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17873 | fi | |
17874 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
17875 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
17876 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17877 | fi | |
17878 | LT_CONFIG_H=include/setup.h | |
17879 | ||
17880 | _ltdl_libobjs= | |
17881 | _ltdl_ltlibobjs= | |
17882 | if test -n "$_LT_LIBOBJS"; then | |
17883 | # Remove the extension. | |
17884 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17885 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
17886 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
17887 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
17888 | done | |
17889 | fi | |
17890 | ltdl_LIBOBJS=$_ltdl_libobjs | |
17891 | ||
17892 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
17893 | ||
17894 | ||
17895 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
17896 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
17897 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17898 | fi | |
17899 | ||
17900 | ||
17901 | ||
17902 | : "${CONFIG_STATUS=./config.status}" | |
17903 | ac_write_fail=0 | |
17904 | ac_clean_files_save=$ac_clean_files | |
17905 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
17906 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
17907 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17908 | as_write_fail=0 | |
17909 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
17910 | #! $SHELL | |
17911 | # Generated by $as_me. | |
17912 | # Run this file to recreate the current configuration. | |
17913 | # Compiler output produced by configure, useful for debugging | |
17914 | # configure, is in config.log if it exists. | |
17915 | ||
17916 | debug=false | |
17917 | ac_cs_recheck=false | |
17918 | ac_cs_silent=false | |
17919 | ||
17920 | SHELL=\${CONFIG_SHELL-$SHELL} | |
17921 | export SHELL | |
17922 | _ASEOF | |
17923 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17924 | ## -------------------- ## | |
17925 | ## M4sh Initialization. ## | |
17926 | ## -------------------- ## | |
17927 | ||
17928 | # Be more Bourne compatible | |
17929 | DUALCASE=1; export DUALCASE # for MKS sh | |
17930 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
17931 | emulate sh | |
17932 | NULLCMD=: | |
17933 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
17934 | # is contrary to our usage. Disable this feature. | |
17935 | alias -g '${1+"$@"}'='"$@"' | |
17936 | setopt NO_GLOB_SUBST | |
17937 | else | |
17938 | case `(set -o) 2>/dev/null` in #( | |
17939 | *posix*) : | |
17940 | set -o posix ;; #( | |
17941 | *) : | |
17942 | ;; | |
17943 | esac | |
17944 | fi | |
17945 | ||
17946 | ||
17947 | as_nl=' | |
17948 | ' | |
17949 | export as_nl | |
17950 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17951 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17952 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17953 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17954 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17955 | # but without wasting forks for bash or zsh. | |
17956 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17957 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17958 | as_echo='print -r --' | |
17959 | as_echo_n='print -rn --' | |
17960 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17961 | as_echo='printf %s\n' | |
17962 | as_echo_n='printf %s' | |
17963 | else | |
17964 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17965 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17966 | as_echo_n='/usr/ucb/echo -n' | |
17967 | else | |
17968 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17969 | as_echo_n_body='eval | |
17970 | arg=$1; | |
17971 | case $arg in #( | |
17972 | *"$as_nl"*) | |
17973 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17974 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17975 | esac; | |
17976 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17977 | ' | |
17978 | export as_echo_n_body | |
17979 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17980 | fi | |
17981 | export as_echo_body | |
17982 | as_echo='sh -c $as_echo_body as_echo' | |
17983 | fi | |
17984 | ||
17985 | # The user is always right. | |
17986 | if test "${PATH_SEPARATOR+set}" != set; then | |
17987 | PATH_SEPARATOR=: | |
17988 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17989 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17990 | PATH_SEPARATOR=';' | |
17991 | } | |
17992 | fi | |
17993 | ||
17994 | ||
17995 | # IFS | |
17996 | # We need space, tab and new line, in precisely that order. Quoting is | |
17997 | # there to prevent editors from complaining about space-tab. | |
17998 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17999 | # splitting by setting IFS to empty value.) | |
18000 | IFS=" "" $as_nl" | |
18001 | ||
18002 | # Find who we are. Look in the path if we contain no directory separator. | |
18003 | as_myself= | |
18004 | case $0 in #(( | |
18005 | *[\\/]* ) as_myself=$0 ;; | |
18006 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18007 | for as_dir in $PATH | |
18008 | do | |
18009 | IFS=$as_save_IFS | |
18010 | test -z "$as_dir" && as_dir=. | |
18011 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18012 | done | |
18013 | IFS=$as_save_IFS | |
18014 | ||
18015 | ;; | |
18016 | esac | |
18017 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18018 | # in which case we are not to be found in the path. | |
18019 | if test "x$as_myself" = x; then | |
18020 | as_myself=$0 | |
18021 | fi | |
18022 | if test ! -f "$as_myself"; then | |
18023 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18024 | exit 1 | |
18025 | fi | |
18026 | ||
18027 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18028 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18029 | # suppresses any "Segmentation fault" message there. '((' could | |
18030 | # trigger a bug in pdksh 5.2.14. | |
18031 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18032 | do eval test x\${$as_var+set} = xset \ | |
18033 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18034 | done | |
18035 | PS1='$ ' | |
18036 | PS2='> ' | |
18037 | PS4='+ ' | |
18038 | ||
18039 | # NLS nuisances. | |
18040 | LC_ALL=C | |
18041 | export LC_ALL | |
18042 | LANGUAGE=C | |
18043 | export LANGUAGE | |
18044 | ||
18045 | # CDPATH. | |
18046 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18047 | ||
18048 | ||
18049 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
18050 | # ---------------------------------------- | |
18051 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
18052 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
18053 | # script with STATUS, using 1 if that was 0. | |
18054 | as_fn_error () | |
18055 | { | |
18056 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
18057 | if test "$4"; then | |
18058 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18059 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
18060 | fi | |
18061 | $as_echo "$as_me: error: $2" >&2 | |
18062 | as_fn_exit $as_status | |
18063 | } # as_fn_error | |
18064 | ||
18065 | ||
18066 | # as_fn_set_status STATUS | |
18067 | # ----------------------- | |
18068 | # Set $? to STATUS, without forking. | |
18069 | as_fn_set_status () | |
18070 | { | |
18071 | return $1 | |
18072 | } # as_fn_set_status | |
18073 | ||
18074 | # as_fn_exit STATUS | |
18075 | # ----------------- | |
18076 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18077 | as_fn_exit () | |
18078 | { | |
18079 | set +e | |
18080 | as_fn_set_status $1 | |
18081 | exit $1 | |
18082 | } # as_fn_exit | |
18083 | ||
18084 | # as_fn_unset VAR | |
18085 | # --------------- | |
18086 | # Portably unset VAR. | |
18087 | as_fn_unset () | |
18088 | { | |
18089 | { eval $1=; unset $1;} | |
18090 | } | |
18091 | as_unset=as_fn_unset | |
18092 | # as_fn_append VAR VALUE | |
18093 | # ---------------------- | |
18094 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18095 | # advantage of any shell optimizations that allow amortized linear growth over | |
18096 | # repeated appends, instead of the typical quadratic growth present in naive | |
18097 | # implementations. | |
18098 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18099 | eval 'as_fn_append () | |
18100 | { | |
18101 | eval $1+=\$2 | |
18102 | }' | |
18103 | else | |
18104 | as_fn_append () | |
18105 | { | |
18106 | eval $1=\$$1\$2 | |
18107 | } | |
18108 | fi # as_fn_append | |
18109 | ||
18110 | # as_fn_arith ARG... | |
18111 | # ------------------ | |
18112 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18113 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18114 | # must be portable across $(()) and expr. | |
18115 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18116 | eval 'as_fn_arith () | |
18117 | { | |
18118 | as_val=$(( $* )) | |
18119 | }' | |
18120 | else | |
18121 | as_fn_arith () | |
18122 | { | |
18123 | as_val=`expr "$@" || test $? -eq 1` | |
18124 | } | |
18125 | fi # as_fn_arith | |
18126 | ||
18127 | ||
18128 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18129 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
18130 | as_expr=expr | |
18131 | else | |
18132 | as_expr=false | |
18133 | fi | |
18134 | ||
18135 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
18136 | as_basename=basename | |
18137 | else | |
18138 | as_basename=false | |
18139 | fi | |
18140 | ||
18141 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
18142 | as_dirname=dirname | |
18143 | else | |
18144 | as_dirname=false | |
18145 | fi | |
18146 | ||
18147 | as_me=`$as_basename -- "$0" || | |
18148 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
18149 | X"$0" : 'X\(//\)$' \| \ | |
18150 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
18151 | $as_echo X/"$0" | | |
18152 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18153 | s//\1/ | |
18154 | q | |
18155 | } | |
18156 | /^X\/\(\/\/\)$/{ | |
18157 | s//\1/ | |
18158 | q | |
18159 | } | |
18160 | /^X\/\(\/\).*/{ | |
18161 | s//\1/ | |
18162 | q | |
18163 | } | |
18164 | s/.*/./; q'` | |
18165 | ||
18166 | # Avoid depending upon Character Ranges. | |
18167 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18168 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18169 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18170 | as_cr_digits='0123456789' | |
18171 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18172 | ||
18173 | ECHO_C= ECHO_N= ECHO_T= | |
18174 | case `echo -n x` in #((((( | |
18175 | -n*) | |
18176 | case `echo 'xy\c'` in | |
18177 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18178 | xy) ECHO_C='\c';; | |
18179 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18180 | ECHO_T=' ';; | |
18181 | esac;; | |
18182 | *) | |
18183 | ECHO_N='-n';; | |
18184 | esac | |
18185 | ||
18186 | rm -f conf$$ conf$$.exe conf$$.file | |
18187 | if test -d conf$$.dir; then | |
18188 | rm -f conf$$.dir/conf$$.file | |
18189 | else | |
18190 | rm -f conf$$.dir | |
18191 | mkdir conf$$.dir 2>/dev/null | |
18192 | fi | |
18193 | if (echo >conf$$.file) 2>/dev/null; then | |
18194 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18195 | as_ln_s='ln -s' | |
18196 | # ... but there are two gotchas: | |
18197 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18198 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18199 | # In both cases, we have to default to `cp -pR'. | |
18200 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18201 | as_ln_s='cp -pR' | |
18202 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18203 | as_ln_s=ln | |
18204 | else | |
18205 | as_ln_s='cp -pR' | |
18206 | fi | |
18207 | else | |
18208 | as_ln_s='cp -pR' | |
18209 | fi | |
18210 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
18211 | rmdir conf$$.dir 2>/dev/null | |
18212 | ||
18213 | ||
18214 | # as_fn_mkdir_p | |
18215 | # ------------- | |
18216 | # Create "$as_dir" as a directory, including parents if necessary. | |
18217 | as_fn_mkdir_p () | |
18218 | { | |
18219 | ||
18220 | case $as_dir in #( | |
18221 | -*) as_dir=./$as_dir;; | |
18222 | esac | |
18223 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18224 | as_dirs= | |
18225 | while :; do | |
18226 | case $as_dir in #( | |
18227 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18228 | *) as_qdir=$as_dir;; | |
18229 | esac | |
18230 | as_dirs="'$as_qdir' $as_dirs" | |
18231 | as_dir=`$as_dirname -- "$as_dir" || | |
18232 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18233 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18234 | X"$as_dir" : 'X\(//\)$' \| \ | |
18235 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18236 | $as_echo X"$as_dir" | | |
18237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18238 | s//\1/ | |
18239 | q | |
18240 | } | |
18241 | /^X\(\/\/\)[^/].*/{ | |
18242 | s//\1/ | |
18243 | q | |
18244 | } | |
18245 | /^X\(\/\/\)$/{ | |
18246 | s//\1/ | |
18247 | q | |
18248 | } | |
18249 | /^X\(\/\).*/{ | |
18250 | s//\1/ | |
18251 | q | |
18252 | } | |
18253 | s/.*/./; q'` | |
18254 | test -d "$as_dir" && break | |
18255 | done | |
18256 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18257 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
18258 | ||
18259 | ||
18260 | } # as_fn_mkdir_p | |
18261 | if mkdir -p . 2>/dev/null; then | |
18262 | as_mkdir_p='mkdir -p "$as_dir"' | |
18263 | else | |
18264 | test -d ./-p && rmdir ./-p | |
18265 | as_mkdir_p=false | |
18266 | fi | |
18267 | ||
18268 | ||
18269 | # as_fn_executable_p FILE | |
18270 | # ----------------------- | |
18271 | # Test if FILE is an executable regular file. | |
18272 | as_fn_executable_p () | |
18273 | { | |
18274 | test -f "$1" && test -x "$1" | |
18275 | } # as_fn_executable_p | |
18276 | as_test_x='test -x' | |
18277 | as_executable_p=as_fn_executable_p | |
18278 | ||
18279 | # Sed expression to map a string onto a valid CPP name. | |
18280 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18281 | ||
18282 | # Sed expression to map a string onto a valid variable name. | |
18283 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18284 | ||
18285 | ||
18286 | exec 6>&1 | |
18287 | ## ----------------------------------- ## | |
18288 | ## Main body of $CONFIG_STATUS script. ## | |
18289 | ## ----------------------------------- ## | |
18290 | _ASEOF | |
18291 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18292 | ||
18293 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18294 | # Save the log message, to keep $0 and so on meaningful, and to | |
18295 | # report actual input values of CONFIG_FILES etc. instead of their | |
18296 | # values after options handling. | |
18297 | ac_log=" | |
18298 | This file was extended by charybdis $as_me 3.6.0-dev, which was | |
18299 | generated by GNU Autoconf 2.69. Invocation command line was | |
18300 | ||
18301 | CONFIG_FILES = $CONFIG_FILES | |
18302 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18303 | CONFIG_LINKS = $CONFIG_LINKS | |
18304 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18305 | $ $0 $@ | |
18306 | ||
18307 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
18308 | " | |
18309 | ||
18310 | _ACEOF | |
18311 | ||
18312 | case $ac_config_files in *" | |
18313 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18314 | esac | |
18315 | ||
18316 | case $ac_config_headers in *" | |
18317 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18318 | esac | |
18319 | ||
18320 | ||
18321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18322 | # Files that config.status was made for. | |
18323 | config_files="$ac_config_files" | |
18324 | config_headers="$ac_config_headers" | |
18325 | config_commands="$ac_config_commands" | |
18326 | ||
18327 | _ACEOF | |
18328 | ||
18329 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18330 | ac_cs_usage="\ | |
18331 | \`$as_me' instantiates files and other configuration actions | |
18332 | from templates according to the current configuration. Unless the files | |
18333 | and actions are specified as TAGs, all are instantiated by default. | |
18334 | ||
18335 | Usage: $0 [OPTION]... [TAG]... | |
18336 | ||
18337 | -h, --help print this help, then exit | |
18338 | -V, --version print version number and configuration settings, then exit | |
18339 | --config print configuration, then exit | |
18340 | -q, --quiet, --silent | |
18341 | do not print progress messages | |
18342 | -d, --debug don't remove temporary files | |
18343 | --recheck update $as_me by reconfiguring in the same conditions | |
18344 | --file=FILE[:TEMPLATE] | |
18345 | instantiate the configuration file FILE | |
18346 | --header=FILE[:TEMPLATE] | |
18347 | instantiate the configuration header FILE | |
18348 | ||
18349 | Configuration files: | |
18350 | $config_files | |
18351 | ||
18352 | Configuration headers: | |
18353 | $config_headers | |
18354 | ||
18355 | Configuration commands: | |
18356 | $config_commands | |
18357 | ||
18358 | Report bugs to the package provider." | |
18359 | ||
18360 | _ACEOF | |
18361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18362 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
18363 | ac_cs_version="\\ | |
18364 | charybdis config.status 3.6.0-dev | |
18365 | configured by $0, generated by GNU Autoconf 2.69, | |
18366 | with options \\"\$ac_cs_config\\" | |
18367 | ||
18368 | Copyright (C) 2012 Free Software Foundation, Inc. | |
18369 | This config.status script is free software; the Free Software Foundation | |
18370 | gives unlimited permission to copy, distribute and modify it." | |
18371 | ||
18372 | ac_pwd='$ac_pwd' | |
18373 | srcdir='$srcdir' | |
18374 | INSTALL='$INSTALL' | |
18375 | MKDIR_P='$MKDIR_P' | |
18376 | AWK='$AWK' | |
18377 | test -n "\$AWK" || AWK=awk | |
18378 | _ACEOF | |
18379 | ||
18380 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18381 | # The default lists apply if the user does not specify any file. | |
18382 | ac_need_defaults=: | |
18383 | while test $# != 0 | |
18384 | do | |
18385 | case $1 in | |
18386 | --*=?*) | |
18387 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18388 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
18389 | ac_shift=: | |
18390 | ;; | |
18391 | --*=) | |
18392 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18393 | ac_optarg= | |
18394 | ac_shift=: | |
18395 | ;; | |
18396 | *) | |
18397 | ac_option=$1 | |
18398 | ac_optarg=$2 | |
18399 | ac_shift=shift | |
18400 | ;; | |
18401 | esac | |
18402 | ||
18403 | case $ac_option in | |
18404 | # Handling of the options. | |
18405 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
18406 | ac_cs_recheck=: ;; | |
18407 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
18408 | $as_echo "$ac_cs_version"; exit ;; | |
18409 | --config | --confi | --conf | --con | --co | --c ) | |
18410 | $as_echo "$ac_cs_config"; exit ;; | |
18411 | --debug | --debu | --deb | --de | --d | -d ) | |
18412 | debug=: ;; | |
18413 | --file | --fil | --fi | --f ) | |
18414 | $ac_shift | |
18415 | case $ac_optarg in | |
18416 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18417 | '') as_fn_error $? "missing file argument" ;; | |
18418 | esac | |
18419 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
18420 | ac_need_defaults=false;; | |
18421 | --header | --heade | --head | --hea ) | |
18422 | $ac_shift | |
18423 | case $ac_optarg in | |
18424 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18425 | esac | |
18426 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
18427 | ac_need_defaults=false;; | |
18428 | --he | --h) | |
18429 | # Conflict between --help and --header | |
18430 | as_fn_error $? "ambiguous option: \`$1' | |
18431 | Try \`$0 --help' for more information.";; | |
18432 | --help | --hel | -h ) | |
18433 | $as_echo "$ac_cs_usage"; exit ;; | |
18434 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
18435 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18436 | ac_cs_silent=: ;; | |
18437 | ||
18438 | # This is an error. | |
18439 | -*) as_fn_error $? "unrecognized option: \`$1' | |
18440 | Try \`$0 --help' for more information." ;; | |
18441 | ||
18442 | *) as_fn_append ac_config_targets " $1" | |
18443 | ac_need_defaults=false ;; | |
18444 | ||
18445 | esac | |
18446 | shift | |
18447 | done | |
18448 | ||
18449 | ac_configure_extra_args= | |
18450 | ||
18451 | if $ac_cs_silent; then | |
18452 | exec 6>/dev/null | |
18453 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18454 | fi | |
18455 | ||
18456 | _ACEOF | |
18457 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18458 | if \$ac_cs_recheck; then | |
18459 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
18460 | shift | |
18461 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18462 | CONFIG_SHELL='$SHELL' | |
18463 | export CONFIG_SHELL | |
18464 | exec "\$@" | |
18465 | fi | |
18466 | ||
18467 | _ACEOF | |
18468 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18469 | exec 5>>config.log | |
18470 | { | |
18471 | echo | |
18472 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18473 | ## Running $as_me. ## | |
18474 | _ASBOX | |
18475 | $as_echo "$ac_log" | |
18476 | } >&5 | |
18477 | ||
18478 | _ACEOF | |
18479 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18480 | # | |
18481 | # INIT-COMMANDS | |
18482 | # | |
18483 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18484 | ||
18485 | ||
18486 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18487 | # if CDPATH is set. | |
18488 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18489 | ||
18490 | sed_quote_subst='$sed_quote_subst' | |
18491 | double_quote_subst='$double_quote_subst' | |
18492 | delay_variable_subst='$delay_variable_subst' | |
18493 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18494 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18495 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18496 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18497 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18498 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18499 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18500 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18501 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18502 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18503 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18504 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18505 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18506 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18507 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18508 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18509 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18510 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18511 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18512 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18513 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18514 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18515 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18516 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18517 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18518 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18519 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18520 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18521 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18522 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18523 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18524 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18525 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18526 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18527 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18528 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18529 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
18530 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
18531 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
18532 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
18533 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18534 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18535 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
18536 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18537 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18538 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18539 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18540 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18541 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18542 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18543 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18544 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18545 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18546 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18547 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18548 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18549 | 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"`' | |
18550 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18551 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
18552 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18553 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18554 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18555 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18556 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18557 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18558 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18559 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18560 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
18561 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18562 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18563 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18564 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18565 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18566 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18567 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18568 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18569 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18570 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18571 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18572 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18573 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18574 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18575 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18576 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18577 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18578 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18579 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18580 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18581 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18582 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18583 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18584 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18585 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18586 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18587 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18588 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18589 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18590 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18591 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18592 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18593 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18594 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18595 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18596 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18597 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
18598 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18599 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18600 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18601 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18602 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18603 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18604 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18605 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18606 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18607 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18608 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18609 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18610 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18611 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18612 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18613 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18614 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18615 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18616 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18617 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18618 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18619 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18620 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18621 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18622 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18623 | ||
18624 | LTCC='$LTCC' | |
18625 | LTCFLAGS='$LTCFLAGS' | |
18626 | compiler='$compiler_DEFAULT' | |
18627 | ||
18628 | # A function that is used when there is no print builtin or printf. | |
18629 | func_fallback_echo () | |
18630 | { | |
18631 | eval 'cat <<_LTECHO_EOF | |
18632 | \$1 | |
18633 | _LTECHO_EOF' | |
18634 | } | |
18635 | ||
18636 | # Quote evaled strings. | |
18637 | for var in SHELL \ | |
18638 | ECHO \ | |
18639 | PATH_SEPARATOR \ | |
18640 | SED \ | |
18641 | GREP \ | |
18642 | EGREP \ | |
18643 | FGREP \ | |
18644 | LD \ | |
18645 | NM \ | |
18646 | LN_S \ | |
18647 | lt_SP2NL \ | |
18648 | lt_NL2SP \ | |
18649 | reload_flag \ | |
18650 | OBJDUMP \ | |
18651 | deplibs_check_method \ | |
18652 | file_magic_cmd \ | |
18653 | file_magic_glob \ | |
18654 | want_nocaseglob \ | |
18655 | DLLTOOL \ | |
18656 | sharedlib_from_linklib_cmd \ | |
18657 | AR \ | |
18658 | AR_FLAGS \ | |
18659 | archiver_list_spec \ | |
18660 | STRIP \ | |
18661 | RANLIB \ | |
18662 | CC \ | |
18663 | CFLAGS \ | |
18664 | compiler \ | |
18665 | lt_cv_sys_global_symbol_pipe \ | |
18666 | lt_cv_sys_global_symbol_to_cdecl \ | |
18667 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18668 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18669 | nm_file_list_spec \ | |
18670 | lt_prog_compiler_no_builtin_flag \ | |
18671 | lt_prog_compiler_pic \ | |
18672 | lt_prog_compiler_wl \ | |
18673 | lt_prog_compiler_static \ | |
18674 | lt_cv_prog_compiler_c_o \ | |
18675 | need_locks \ | |
18676 | MANIFEST_TOOL \ | |
18677 | DSYMUTIL \ | |
18678 | NMEDIT \ | |
18679 | LIPO \ | |
18680 | OTOOL \ | |
18681 | OTOOL64 \ | |
18682 | shrext_cmds \ | |
18683 | export_dynamic_flag_spec \ | |
18684 | whole_archive_flag_spec \ | |
18685 | compiler_needs_object \ | |
18686 | with_gnu_ld \ | |
18687 | allow_undefined_flag \ | |
18688 | no_undefined_flag \ | |
18689 | hardcode_libdir_flag_spec \ | |
18690 | hardcode_libdir_separator \ | |
18691 | exclude_expsyms \ | |
18692 | include_expsyms \ | |
18693 | file_list_spec \ | |
18694 | variables_saved_for_relink \ | |
18695 | libname_spec \ | |
18696 | library_names_spec \ | |
18697 | soname_spec \ | |
18698 | install_override_mode \ | |
18699 | finish_eval \ | |
18700 | old_striplib \ | |
18701 | striplib; do | |
18702 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18703 | *[\\\\\\\`\\"\\\$]*) | |
18704 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18705 | ;; | |
18706 | *) | |
18707 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18708 | ;; | |
18709 | esac | |
18710 | done | |
18711 | ||
18712 | # Double-quote double-evaled strings. | |
18713 | for var in reload_cmds \ | |
18714 | old_postinstall_cmds \ | |
18715 | old_postuninstall_cmds \ | |
18716 | old_archive_cmds \ | |
18717 | extract_expsyms_cmds \ | |
18718 | old_archive_from_new_cmds \ | |
18719 | old_archive_from_expsyms_cmds \ | |
18720 | archive_cmds \ | |
18721 | archive_expsym_cmds \ | |
18722 | module_cmds \ | |
18723 | module_expsym_cmds \ | |
18724 | export_symbols_cmds \ | |
18725 | prelink_cmds \ | |
18726 | postlink_cmds \ | |
18727 | postinstall_cmds \ | |
18728 | postuninstall_cmds \ | |
18729 | finish_cmds \ | |
18730 | sys_lib_search_path_spec \ | |
18731 | sys_lib_dlsearch_path_spec; do | |
18732 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18733 | *[\\\\\\\`\\"\\\$]*) | |
18734 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18735 | ;; | |
18736 | *) | |
18737 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18738 | ;; | |
18739 | esac | |
18740 | done | |
18741 | ||
18742 | ac_aux_dir='$ac_aux_dir' | |
18743 | xsi_shell='$xsi_shell' | |
18744 | lt_shell_append='$lt_shell_append' | |
18745 | ||
18746 | # See if we are running on zsh, and set the options which allow our | |
18747 | # commands through without removal of \ escapes INIT. | |
18748 | if test -n "\${ZSH_VERSION+set}" ; then | |
18749 | setopt NO_GLOB_SUBST | |
18750 | fi | |
18751 | ||
18752 | ||
18753 | PACKAGE='$PACKAGE' | |
18754 | VERSION='$VERSION' | |
18755 | TIMESTAMP='$TIMESTAMP' | |
18756 | RM='$RM' | |
18757 | ofile='$ofile' | |
18758 | ||
18759 | ||
18760 | ||
18761 | ||
18762 | _ACEOF | |
18763 | ||
18764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18765 | ||
18766 | # Handling of arguments. | |
18767 | for ac_config_target in $ac_config_targets | |
18768 | do | |
18769 | case $ac_config_target in | |
18770 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
18771 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18772 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18773 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18774 | "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;; | |
18775 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; | |
18776 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; | |
18777 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; | |
18778 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; | |
18779 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
18780 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
18781 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; | |
18782 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
18783 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
18784 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; | |
18785 | ||
18786 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
18787 | esac | |
18788 | done | |
18789 | ||
18790 | ||
18791 | # If the user did not use the arguments to specify the items to instantiate, | |
18792 | # then the envvar interface is used. Set only those that are not. | |
18793 | # We use the long form for the default assignment because of an extremely | |
18794 | # bizarre bug on SunOS 4.1.3. | |
18795 | if $ac_need_defaults; then | |
18796 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18797 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18798 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18799 | fi | |
18800 | ||
18801 | # Have a temporary directory for convenience. Make it in the build tree | |
18802 | # simply because there is no reason against having it here, and in addition, | |
18803 | # creating and moving files from /tmp can sometimes cause problems. | |
18804 | # Hook for its removal unless debugging. | |
18805 | # Note that there is a small window in which the directory will not be cleaned: | |
18806 | # after its creation but before its name has been assigned to `$tmp'. | |
18807 | $debug || | |
18808 | { | |
18809 | tmp= ac_tmp= | |
18810 | trap 'exit_status=$? | |
18811 | : "${ac_tmp:=$tmp}" | |
18812 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
18813 | ' 0 | |
18814 | trap 'as_fn_exit 1' 1 2 13 15 | |
18815 | } | |
18816 | # Create a (secure) tmp directory for tmp files. | |
18817 | ||
18818 | { | |
18819 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
18820 | test -d "$tmp" | |
18821 | } || | |
18822 | { | |
18823 | tmp=./conf$$-$RANDOM | |
18824 | (umask 077 && mkdir "$tmp") | |
18825 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
18826 | ac_tmp=$tmp | |
18827 | ||
18828 | # Set up the scripts for CONFIG_FILES section. | |
18829 | # No need to generate them if there are no CONFIG_FILES. | |
18830 | # This happens for instance with `./config.status config.h'. | |
18831 | if test -n "$CONFIG_FILES"; then | |
18832 | ||
18833 | ||
18834 | ac_cr=`echo X | tr X '\015'` | |
18835 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18836 | # But we know of no other shell where ac_cr would be empty at this | |
18837 | # point, so we can use a bashism as a fallback. | |
18838 | if test "x$ac_cr" = x; then | |
18839 | eval ac_cr=\$\'\\r\' | |
18840 | fi | |
18841 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18842 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18843 | ac_cs_awk_cr='\\r' | |
18844 | else | |
18845 | ac_cs_awk_cr=$ac_cr | |
18846 | fi | |
18847 | ||
18848 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
18849 | _ACEOF | |
18850 | ||
18851 | ||
18852 | { | |
18853 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18854 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18855 | echo "_ACEOF" | |
18856 | } >conf$$subs.sh || | |
18857 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18858 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
18859 | ac_delim='%!_!# ' | |
18860 | for ac_last_try in false false false false false :; do | |
18861 | . ./conf$$subs.sh || | |
18862 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18863 | ||
18864 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18865 | if test $ac_delim_n = $ac_delim_num; then | |
18866 | break | |
18867 | elif $ac_last_try; then | |
18868 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18869 | else | |
18870 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18871 | fi | |
18872 | done | |
18873 | rm -f conf$$subs.sh | |
18874 | ||
18875 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18876 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
18877 | _ACEOF | |
18878 | sed -n ' | |
18879 | h | |
18880 | s/^/S["/; s/!.*/"]=/ | |
18881 | p | |
18882 | g | |
18883 | s/^[^!]*!// | |
18884 | :repl | |
18885 | t repl | |
18886 | s/'"$ac_delim"'$// | |
18887 | t delim | |
18888 | :nl | |
18889 | h | |
18890 | s/\(.\{148\}\)..*/\1/ | |
18891 | t more1 | |
18892 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18893 | p | |
18894 | n | |
18895 | b repl | |
18896 | :more1 | |
18897 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18898 | p | |
18899 | g | |
18900 | s/.\{148\}// | |
18901 | t nl | |
18902 | :delim | |
18903 | h | |
18904 | s/\(.\{148\}\)..*/\1/ | |
18905 | t more2 | |
18906 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18907 | p | |
18908 | b | |
18909 | :more2 | |
18910 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18911 | p | |
18912 | g | |
18913 | s/.\{148\}// | |
18914 | t delim | |
18915 | ' <conf$$subs.awk | sed ' | |
18916 | /^[^""]/{ | |
18917 | N | |
18918 | s/\n// | |
18919 | } | |
18920 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18921 | rm -f conf$$subs.awk | |
18922 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18923 | _ACAWK | |
18924 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
18925 | for (key in S) S_is_set[key] = 1 | |
18926 | FS = "\a" | |
18927 | ||
18928 | } | |
18929 | { | |
18930 | line = $ 0 | |
18931 | nfields = split(line, field, "@") | |
18932 | substed = 0 | |
18933 | len = length(field[1]) | |
18934 | for (i = 2; i < nfields; i++) { | |
18935 | key = field[i] | |
18936 | keylen = length(key) | |
18937 | if (S_is_set[key]) { | |
18938 | value = S[key] | |
18939 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18940 | len += length(value) + length(field[++i]) | |
18941 | substed = 1 | |
18942 | } else | |
18943 | len += 1 + keylen | |
18944 | } | |
18945 | ||
18946 | print line | |
18947 | } | |
18948 | ||
18949 | _ACAWK | |
18950 | _ACEOF | |
18951 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18952 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18953 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18954 | else | |
18955 | cat | |
18956 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
18957 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
18958 | _ACEOF | |
18959 | ||
18960 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
18961 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
18962 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18963 | # (actually we leave an empty line to preserve line numbers). | |
18964 | if test "x$srcdir" = x.; then | |
18965 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
18966 | h | |
18967 | s/// | |
18968 | s/^/:/ | |
18969 | s/[ ]*$/:/ | |
18970 | s/:\$(srcdir):/:/g | |
18971 | s/:\${srcdir}:/:/g | |
18972 | s/:@srcdir@:/:/g | |
18973 | s/^:*// | |
18974 | s/:*$// | |
18975 | x | |
18976 | s/\(=[ ]*\).*/\1/ | |
18977 | G | |
18978 | s/\n// | |
18979 | s/^[^=]*=[ ]*$// | |
18980 | }' | |
18981 | fi | |
18982 | ||
18983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18984 | fi # test -n "$CONFIG_FILES" | |
18985 | ||
18986 | # Set up the scripts for CONFIG_HEADERS section. | |
18987 | # No need to generate them if there are no CONFIG_HEADERS. | |
18988 | # This happens for instance with `./config.status Makefile'. | |
18989 | if test -n "$CONFIG_HEADERS"; then | |
18990 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
18991 | BEGIN { | |
18992 | _ACEOF | |
18993 | ||
18994 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18995 | # here-document in config.status, that substitutes the proper values into | |
18996 | # config.h.in to produce config.h. | |
18997 | ||
18998 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18999 | # handling of long lines. | |
19000 | ac_delim='%!_!# ' | |
19001 | for ac_last_try in false false :; do | |
19002 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
19003 | if test -z "$ac_tt"; then | |
19004 | break | |
19005 | elif $ac_last_try; then | |
19006 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
19007 | else | |
19008 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19009 | fi | |
19010 | done | |
19011 | ||
19012 | # For the awk script, D is an array of macro values keyed by name, | |
19013 | # likewise P contains macro parameters if any. Preserve backslash | |
19014 | # newline sequences. | |
19015 | ||
19016 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19017 | sed -n ' | |
19018 | s/.\{148\}/&'"$ac_delim"'/g | |
19019 | t rset | |
19020 | :rset | |
19021 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19022 | t def | |
19023 | d | |
19024 | :def | |
19025 | s/\\$// | |
19026 | t bsnl | |
19027 | s/["\\]/\\&/g | |
19028 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19029 | D["\1"]=" \3"/p | |
19030 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19031 | d | |
19032 | :bsnl | |
19033 | s/["\\]/\\&/g | |
19034 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19035 | D["\1"]=" \3\\\\\\n"\\/p | |
19036 | t cont | |
19037 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19038 | t cont | |
19039 | d | |
19040 | :cont | |
19041 | n | |
19042 | s/.\{148\}/&'"$ac_delim"'/g | |
19043 | t clear | |
19044 | :clear | |
19045 | s/\\$// | |
19046 | t bsnlc | |
19047 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19048 | d | |
19049 | :bsnlc | |
19050 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19051 | b cont | |
19052 | ' <confdefs.h | sed ' | |
19053 | s/'"$ac_delim"'/"\\\ | |
19054 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19055 | ||
19056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19057 | for (key in D) D_is_set[key] = 1 | |
19058 | FS = "\a" | |
19059 | } | |
19060 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19061 | line = \$ 0 | |
19062 | split(line, arg, " ") | |
19063 | if (arg[1] == "#") { | |
19064 | defundef = arg[2] | |
19065 | mac1 = arg[3] | |
19066 | } else { | |
19067 | defundef = substr(arg[1], 2) | |
19068 | mac1 = arg[2] | |
19069 | } | |
19070 | split(mac1, mac2, "(") #) | |
19071 | macro = mac2[1] | |
19072 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19073 | if (D_is_set[macro]) { | |
19074 | # Preserve the white space surrounding the "#". | |
19075 | print prefix "define", macro P[macro] D[macro] | |
19076 | next | |
19077 | } else { | |
19078 | # Replace #undef with comments. This is necessary, for example, | |
19079 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19080 | # on some systems where configure will not decide to define it. | |
19081 | if (defundef == "undef") { | |
19082 | print "/*", prefix defundef, macro, "*/" | |
19083 | next | |
19084 | } | |
19085 | } | |
19086 | } | |
19087 | { print } | |
19088 | _ACAWK | |
19089 | _ACEOF | |
19090 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19091 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
19092 | fi # test -n "$CONFIG_HEADERS" | |
19093 | ||
19094 | ||
19095 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
19096 | shift | |
19097 | for ac_tag | |
19098 | do | |
19099 | case $ac_tag in | |
19100 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19101 | esac | |
19102 | case $ac_mode$ac_tag in | |
19103 | :[FHL]*:*);; | |
19104 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
19105 | :[FH]-) ac_tag=-:-;; | |
19106 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19107 | esac | |
19108 | ac_save_IFS=$IFS | |
19109 | IFS=: | |
19110 | set x $ac_tag | |
19111 | IFS=$ac_save_IFS | |
19112 | shift | |
19113 | ac_file=$1 | |
19114 | shift | |
19115 | ||
19116 | case $ac_mode in | |
19117 | :L) ac_source=$1;; | |
19118 | :[FH]) | |
19119 | ac_file_inputs= | |
19120 | for ac_f | |
19121 | do | |
19122 | case $ac_f in | |
19123 | -) ac_f="$ac_tmp/stdin";; | |
19124 | *) # Look for the file first in the build tree, then in the source tree | |
19125 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19126 | # because $ac_f cannot contain `:'. | |
19127 | test -f "$ac_f" || | |
19128 | case $ac_f in | |
19129 | [\\/$]*) false;; | |
19130 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19131 | esac || | |
19132 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
19133 | esac | |
19134 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19135 | as_fn_append ac_file_inputs " '$ac_f'" | |
19136 | done | |
19137 | ||
19138 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19139 | # use $as_me), people would be surprised to read: | |
19140 | # /* config.h. Generated by config.status. */ | |
19141 | configure_input='Generated from '` | |
19142 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19143 | `' by configure.' | |
19144 | if test x"$ac_file" != x-; then | |
19145 | configure_input="$ac_file. $configure_input" | |
19146 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19147 | $as_echo "$as_me: creating $ac_file" >&6;} | |
19148 | fi | |
19149 | # Neutralize special characters interpreted by sed in replacement strings. | |
19150 | case $configure_input in #( | |
19151 | *\&* | *\|* | *\\* ) | |
19152 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19153 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19154 | *) ac_sed_conf_input=$configure_input;; | |
19155 | esac | |
19156 | ||
19157 | case $ac_tag in | |
19158 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
19159 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
19160 | esac | |
19161 | ;; | |
19162 | esac | |
19163 | ||
19164 | ac_dir=`$as_dirname -- "$ac_file" || | |
19165 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19166 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19167 | X"$ac_file" : 'X\(//\)$' \| \ | |
19168 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
19169 | $as_echo X"$ac_file" | | |
19170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19171 | s//\1/ | |
19172 | q | |
19173 | } | |
19174 | /^X\(\/\/\)[^/].*/{ | |
19175 | s//\1/ | |
19176 | q | |
19177 | } | |
19178 | /^X\(\/\/\)$/{ | |
19179 | s//\1/ | |
19180 | q | |
19181 | } | |
19182 | /^X\(\/\).*/{ | |
19183 | s//\1/ | |
19184 | q | |
19185 | } | |
19186 | s/.*/./; q'` | |
19187 | as_dir="$ac_dir"; as_fn_mkdir_p | |
19188 | ac_builddir=. | |
19189 | ||
19190 | case "$ac_dir" in | |
19191 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19192 | *) | |
19193 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19194 | # A ".." for each directory in $ac_dir_suffix. | |
19195 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19196 | case $ac_top_builddir_sub in | |
19197 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19198 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19199 | esac ;; | |
19200 | esac | |
19201 | ac_abs_top_builddir=$ac_pwd | |
19202 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19203 | # for backward compatibility: | |
19204 | ac_top_builddir=$ac_top_build_prefix | |
19205 | ||
19206 | case $srcdir in | |
19207 | .) # We are building in place. | |
19208 | ac_srcdir=. | |
19209 | ac_top_srcdir=$ac_top_builddir_sub | |
19210 | ac_abs_top_srcdir=$ac_pwd ;; | |
19211 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
19212 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19213 | ac_top_srcdir=$srcdir | |
19214 | ac_abs_top_srcdir=$srcdir ;; | |
19215 | *) # Relative name. | |
19216 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19217 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19218 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
19219 | esac | |
19220 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
19221 | ||
19222 | ||
19223 | case $ac_mode in | |
19224 | :F) | |
19225 | # | |
19226 | # CONFIG_FILE | |
19227 | # | |
19228 | ||
19229 | case $INSTALL in | |
19230 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
19231 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
19232 | esac | |
19233 | ac_MKDIR_P=$MKDIR_P | |
19234 | case $MKDIR_P in | |
19235 | [\\/$]* | ?:[\\/]* ) ;; | |
19236 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19237 | esac | |
19238 | _ACEOF | |
19239 | ||
19240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19241 | # If the template does not know about datarootdir, expand it. | |
19242 | # FIXME: This hack should be removed a few years after 2.60. | |
19243 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19244 | ac_sed_dataroot=' | |
19245 | /datarootdir/ { | |
19246 | p | |
19247 | q | |
19248 | } | |
19249 | /@datadir@/p | |
19250 | /@docdir@/p | |
19251 | /@infodir@/p | |
19252 | /@localedir@/p | |
19253 | /@mandir@/p' | |
19254 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19255 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19256 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19258 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19259 | _ACEOF | |
19260 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19261 | ac_datarootdir_hack=' | |
19262 | s&@datadir@&$datadir&g | |
19263 | s&@docdir@&$docdir&g | |
19264 | s&@infodir@&$infodir&g | |
19265 | s&@localedir@&$localedir&g | |
19266 | s&@mandir@&$mandir&g | |
19267 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19268 | esac | |
19269 | _ACEOF | |
19270 | ||
19271 | # Neutralize VPATH when `$srcdir' = `.'. | |
19272 | # Shell code in configure.ac might set extrasub. | |
19273 | # FIXME: do we really want to maintain this feature? | |
19274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19275 | ac_sed_extra="$ac_vpsub | |
19276 | $extrasub | |
19277 | _ACEOF | |
19278 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19279 | :t | |
19280 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
19281 | s|@configure_input@|$ac_sed_conf_input|;t t | |
19282 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19283 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19284 | s&@srcdir@&$ac_srcdir&;t t | |
19285 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19286 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19287 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19288 | s&@builddir@&$ac_builddir&;t t | |
19289 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19290 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19291 | s&@INSTALL@&$ac_INSTALL&;t t | |
19292 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
19293 | $ac_datarootdir_hack | |
19294 | " | |
19295 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
19296 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19297 | ||
19298 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19299 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
19300 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19301 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
19302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19303 | which seems to be undefined. Please make sure it is defined" >&5 | |
19304 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19305 | which seems to be undefined. Please make sure it is defined" >&2;} | |
19306 | ||
19307 | rm -f "$ac_tmp/stdin" | |
19308 | case $ac_file in | |
19309 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
19310 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
19311 | esac \ | |
19312 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19313 | ;; | |
19314 | :H) | |
19315 | # | |
19316 | # CONFIG_HEADER | |
19317 | # | |
19318 | if test x"$ac_file" != x-; then | |
19319 | { | |
19320 | $as_echo "/* $configure_input */" \ | |
19321 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
19322 | } >"$ac_tmp/config.h" \ | |
19323 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19324 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
19325 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
19326 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
19327 | else | |
19328 | rm -f "$ac_file" | |
19329 | mv "$ac_tmp/config.h" "$ac_file" \ | |
19330 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19331 | fi | |
19332 | else | |
19333 | $as_echo "/* $configure_input */" \ | |
19334 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
19335 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
19336 | fi | |
19337 | # Compute "$ac_file"'s index in $config_headers. | |
19338 | _am_arg="$ac_file" | |
19339 | _am_stamp_count=1 | |
19340 | for _am_header in $config_headers :; do | |
19341 | case $_am_header in | |
19342 | $_am_arg | $_am_arg:* ) | |
19343 | break ;; | |
19344 | * ) | |
19345 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19346 | esac | |
19347 | done | |
19348 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19349 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19350 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19351 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19352 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19353 | $as_echo X"$_am_arg" | | |
19354 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19355 | s//\1/ | |
19356 | q | |
19357 | } | |
19358 | /^X\(\/\/\)[^/].*/{ | |
19359 | s//\1/ | |
19360 | q | |
19361 | } | |
19362 | /^X\(\/\/\)$/{ | |
19363 | s//\1/ | |
19364 | q | |
19365 | } | |
19366 | /^X\(\/\).*/{ | |
19367 | s//\1/ | |
19368 | q | |
19369 | } | |
19370 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19371 | ;; | |
19372 | ||
19373 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
19374 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19375 | ;; | |
19376 | esac | |
19377 | ||
19378 | ||
19379 | case $ac_file$ac_mode in | |
19380 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
19381 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19382 | # are listed without --file. Let's play safe and only enable the eval | |
19383 | # if we detect the quoting. | |
19384 | case $CONFIG_FILES in | |
19385 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19386 | *) set x $CONFIG_FILES ;; | |
19387 | esac | |
19388 | shift | |
19389 | for mf | |
19390 | do | |
19391 | # Strip MF so we end up with the name of the file. | |
19392 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19393 | # Check whether this is an Automake generated Makefile or not. | |
19394 | # We used to match only the files named 'Makefile.in', but | |
19395 | # some people rename them; so instead we look at the file content. | |
19396 | # Grep'ing the first line is not enough: some people post-process | |
19397 | # each Makefile.in and add a new line on top of each file to say so. | |
19398 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19399 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19400 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19401 | dirpart=`$as_dirname -- "$mf" || | |
19402 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19403 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19404 | X"$mf" : 'X\(//\)$' \| \ | |
19405 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19406 | $as_echo X"$mf" | | |
19407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19408 | s//\1/ | |
19409 | q | |
19410 | } | |
19411 | /^X\(\/\/\)[^/].*/{ | |
19412 | s//\1/ | |
19413 | q | |
19414 | } | |
19415 | /^X\(\/\/\)$/{ | |
19416 | s//\1/ | |
19417 | q | |
19418 | } | |
19419 | /^X\(\/\).*/{ | |
19420 | s//\1/ | |
19421 | q | |
19422 | } | |
19423 | s/.*/./; q'` | |
19424 | else | |
19425 | continue | |
19426 | fi | |
19427 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19428 | # from the Makefile without running 'make'. | |
19429 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19430 | test -z "$DEPDIR" && continue | |
19431 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19432 | test -z "$am__include" && continue | |
19433 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19434 | # Find all dependency output files, they are included files with | |
19435 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19436 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19437 | # expansion. | |
19438 | for file in `sed -n " | |
19439 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19440 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19441 | # Make sure the directory exists. | |
19442 | test -f "$dirpart/$file" && continue | |
19443 | fdir=`$as_dirname -- "$file" || | |
19444 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19445 | X"$file" : 'X\(//\)[^/]' \| \ | |
19446 | X"$file" : 'X\(//\)$' \| \ | |
19447 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19448 | $as_echo X"$file" | | |
19449 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19450 | s//\1/ | |
19451 | q | |
19452 | } | |
19453 | /^X\(\/\/\)[^/].*/{ | |
19454 | s//\1/ | |
19455 | q | |
19456 | } | |
19457 | /^X\(\/\/\)$/{ | |
19458 | s//\1/ | |
19459 | q | |
19460 | } | |
19461 | /^X\(\/\).*/{ | |
19462 | s//\1/ | |
19463 | q | |
19464 | } | |
19465 | s/.*/./; q'` | |
19466 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19467 | # echo "creating $dirpart/$file" | |
19468 | echo '# dummy' > "$dirpart/$file" | |
19469 | done | |
19470 | done | |
19471 | } | |
19472 | ;; | |
19473 | "libtool":C) | |
19474 | ||
19475 | # See if we are running on zsh, and set the options which allow our | |
19476 | # commands through without removal of \ escapes. | |
19477 | if test -n "${ZSH_VERSION+set}" ; then | |
19478 | setopt NO_GLOB_SUBST | |
19479 | fi | |
19480 | ||
19481 | cfgfile="${ofile}T" | |
19482 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19483 | $RM "$cfgfile" | |
19484 | ||
19485 | cat <<_LT_EOF >> "$cfgfile" | |
19486 | #! $SHELL | |
19487 | ||
19488 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19489 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19490 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19491 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19492 | # | |
19493 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19494 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
19495 | # Foundation, Inc. | |
19496 | # Written by Gordon Matzigkeit, 1996 | |
19497 | # | |
19498 | # This file is part of GNU Libtool. | |
19499 | # | |
19500 | # GNU Libtool is free software; you can redistribute it and/or | |
19501 | # modify it under the terms of the GNU General Public License as | |
19502 | # published by the Free Software Foundation; either version 2 of | |
19503 | # the License, or (at your option) any later version. | |
19504 | # | |
19505 | # As a special exception to the GNU General Public License, | |
19506 | # if you distribute this file as part of a program or library that | |
19507 | # is built using GNU Libtool, you may include this file under the | |
19508 | # same distribution terms that you use for the rest of that program. | |
19509 | # | |
19510 | # GNU Libtool is distributed in the hope that it will be useful, | |
19511 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19512 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19513 | # GNU General Public License for more details. | |
19514 | # | |
19515 | # You should have received a copy of the GNU General Public License | |
19516 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19517 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19518 | # obtained by writing to the Free Software Foundation, Inc., | |
19519 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19520 | ||
19521 | ||
19522 | # The names of the tagged configurations supported by this script. | |
19523 | available_tags="" | |
19524 | ||
19525 | # ### BEGIN LIBTOOL CONFIG | |
19526 | ||
19527 | # Which release of libtool.m4 was used? | |
19528 | macro_version=$macro_version | |
19529 | macro_revision=$macro_revision | |
19530 | ||
19531 | # Whether or not to build static libraries. | |
19532 | build_old_libs=$enable_static | |
19533 | ||
19534 | # Whether or not to build shared libraries. | |
19535 | build_libtool_libs=$enable_shared | |
19536 | ||
19537 | # What type of objects to build. | |
19538 | pic_mode=$pic_mode | |
19539 | ||
19540 | # Whether or not to optimize for fast installation. | |
19541 | fast_install=$enable_fast_install | |
19542 | ||
19543 | # Shell to use when invoking shell scripts. | |
19544 | SHELL=$lt_SHELL | |
19545 | ||
19546 | # An echo program that protects backslashes. | |
19547 | ECHO=$lt_ECHO | |
19548 | ||
19549 | # The PATH separator for the build system. | |
19550 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19551 | ||
19552 | # The host system. | |
19553 | host_alias=$host_alias | |
19554 | host=$host | |
19555 | host_os=$host_os | |
19556 | ||
19557 | # The build system. | |
19558 | build_alias=$build_alias | |
19559 | build=$build | |
19560 | build_os=$build_os | |
19561 | ||
19562 | # A sed program that does not truncate output. | |
19563 | SED=$lt_SED | |
19564 | ||
19565 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19566 | Xsed="\$SED -e 1s/^X//" | |
19567 | ||
19568 | # A grep program that handles long lines. | |
19569 | GREP=$lt_GREP | |
19570 | ||
19571 | # An ERE matcher. | |
19572 | EGREP=$lt_EGREP | |
19573 | ||
19574 | # A literal string matcher. | |
19575 | FGREP=$lt_FGREP | |
19576 | ||
19577 | # A BSD- or MS-compatible name lister. | |
19578 | NM=$lt_NM | |
19579 | ||
19580 | # Whether we need soft or hard links. | |
19581 | LN_S=$lt_LN_S | |
19582 | ||
19583 | # What is the maximum length of a command? | |
19584 | max_cmd_len=$max_cmd_len | |
19585 | ||
19586 | # Object file suffix (normally "o"). | |
19587 | objext=$ac_objext | |
19588 | ||
19589 | # Executable file suffix (normally ""). | |
19590 | exeext=$exeext | |
19591 | ||
19592 | # whether the shell understands "unset". | |
19593 | lt_unset=$lt_unset | |
19594 | ||
19595 | # turn spaces into newlines. | |
19596 | SP2NL=$lt_lt_SP2NL | |
19597 | ||
19598 | # turn newlines into spaces. | |
19599 | NL2SP=$lt_lt_NL2SP | |
19600 | ||
19601 | # convert \$build file names to \$host format. | |
19602 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
19603 | ||
19604 | # convert \$build files to toolchain format. | |
19605 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
19606 | ||
19607 | # An object symbol dumper. | |
19608 | OBJDUMP=$lt_OBJDUMP | |
19609 | ||
19610 | # Method to check whether dependent libraries are shared objects. | |
19611 | deplibs_check_method=$lt_deplibs_check_method | |
19612 | ||
19613 | # Command to use when deplibs_check_method = "file_magic". | |
19614 | file_magic_cmd=$lt_file_magic_cmd | |
19615 | ||
19616 | # How to find potential files when deplibs_check_method = "file_magic". | |
19617 | file_magic_glob=$lt_file_magic_glob | |
19618 | ||
19619 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
19620 | want_nocaseglob=$lt_want_nocaseglob | |
19621 | ||
19622 | # DLL creation program. | |
19623 | DLLTOOL=$lt_DLLTOOL | |
19624 | ||
19625 | # Command to associate shared and link libraries. | |
19626 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
19627 | ||
19628 | # The archiver. | |
19629 | AR=$lt_AR | |
19630 | ||
19631 | # Flags to create an archive. | |
19632 | AR_FLAGS=$lt_AR_FLAGS | |
19633 | ||
19634 | # How to feed a file listing to the archiver. | |
19635 | archiver_list_spec=$lt_archiver_list_spec | |
19636 | ||
19637 | # A symbol stripping program. | |
19638 | STRIP=$lt_STRIP | |
19639 | ||
19640 | # Commands used to install an old-style archive. | |
19641 | RANLIB=$lt_RANLIB | |
19642 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19643 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19644 | ||
19645 | # Whether to use a lock for old archive extraction. | |
19646 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19647 | ||
19648 | # A C compiler. | |
19649 | LTCC=$lt_CC | |
19650 | ||
19651 | # LTCC compiler flags. | |
19652 | LTCFLAGS=$lt_CFLAGS | |
19653 | ||
19654 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19655 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19656 | ||
19657 | # Transform the output of nm in a proper C declaration. | |
19658 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19659 | ||
19660 | # Transform the output of nm in a C name address pair. | |
19661 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19662 | ||
19663 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19664 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19665 | ||
19666 | # Specify filename containing input files for \$NM. | |
19667 | nm_file_list_spec=$lt_nm_file_list_spec | |
19668 | ||
19669 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
19670 | lt_sysroot=$lt_sysroot | |
19671 | ||
19672 | # The name of the directory that contains temporary libtool files. | |
19673 | objdir=$objdir | |
19674 | ||
19675 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19676 | MAGIC_CMD=$MAGIC_CMD | |
19677 | ||
19678 | # Must we lock files when doing compilation? | |
19679 | need_locks=$lt_need_locks | |
19680 | ||
19681 | # Manifest tool. | |
19682 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
19683 | ||
19684 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19685 | DSYMUTIL=$lt_DSYMUTIL | |
19686 | ||
19687 | # Tool to change global to local symbols on Mac OS X. | |
19688 | NMEDIT=$lt_NMEDIT | |
19689 | ||
19690 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19691 | LIPO=$lt_LIPO | |
19692 | ||
19693 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19694 | OTOOL=$lt_OTOOL | |
19695 | ||
19696 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19697 | OTOOL64=$lt_OTOOL64 | |
19698 | ||
19699 | # Old archive suffix (normally "a"). | |
19700 | libext=$libext | |
19701 | ||
19702 | # Shared library suffix (normally ".so"). | |
19703 | shrext_cmds=$lt_shrext_cmds | |
19704 | ||
19705 | # The commands to extract the exported symbol list from a shared archive. | |
19706 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19707 | ||
19708 | # Variables whose values should be saved in libtool wrapper scripts and | |
19709 | # restored at link time. | |
19710 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19711 | ||
19712 | # Do we need the "lib" prefix for modules? | |
19713 | need_lib_prefix=$need_lib_prefix | |
19714 | ||
19715 | # Do we need a version for libraries? | |
19716 | need_version=$need_version | |
19717 | ||
19718 | # Library versioning type. | |
19719 | version_type=$version_type | |
19720 | ||
19721 | # Shared library runtime path variable. | |
19722 | runpath_var=$runpath_var | |
19723 | ||
19724 | # Shared library path variable. | |
19725 | shlibpath_var=$shlibpath_var | |
19726 | ||
19727 | # Is shlibpath searched before the hard-coded library search path? | |
19728 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19729 | ||
19730 | # Format of library name prefix. | |
19731 | libname_spec=$lt_libname_spec | |
19732 | ||
19733 | # List of archive names. First name is the real one, the rest are links. | |
19734 | # The last name is the one that the linker finds with -lNAME | |
19735 | library_names_spec=$lt_library_names_spec | |
19736 | ||
19737 | # The coded name of the library, if different from the real name. | |
19738 | soname_spec=$lt_soname_spec | |
19739 | ||
19740 | # Permission mode override for installation of shared libraries. | |
19741 | install_override_mode=$lt_install_override_mode | |
19742 | ||
19743 | # Command to use after installation of a shared archive. | |
19744 | postinstall_cmds=$lt_postinstall_cmds | |
19745 | ||
19746 | # Command to use after uninstallation of a shared archive. | |
19747 | postuninstall_cmds=$lt_postuninstall_cmds | |
19748 | ||
19749 | # Commands used to finish a libtool library installation in a directory. | |
19750 | finish_cmds=$lt_finish_cmds | |
19751 | ||
19752 | # As "finish_cmds", except a single script fragment to be evaled but | |
19753 | # not shown. | |
19754 | finish_eval=$lt_finish_eval | |
19755 | ||
19756 | # Whether we should hardcode library paths into libraries. | |
19757 | hardcode_into_libs=$hardcode_into_libs | |
19758 | ||
19759 | # Compile-time system search path for libraries. | |
19760 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19761 | ||
19762 | # Run-time system search path for libraries. | |
19763 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19764 | ||
19765 | # Whether dlopen is supported. | |
19766 | dlopen_support=$enable_dlopen | |
19767 | ||
19768 | # Whether dlopen of programs is supported. | |
19769 | dlopen_self=$enable_dlopen_self | |
19770 | ||
19771 | # Whether dlopen of statically linked programs is supported. | |
19772 | dlopen_self_static=$enable_dlopen_self_static | |
19773 | ||
19774 | # Commands to strip libraries. | |
19775 | old_striplib=$lt_old_striplib | |
19776 | striplib=$lt_striplib | |
19777 | ||
19778 | ||
19779 | # The linker used to build libraries. | |
19780 | LD=$lt_LD | |
19781 | ||
19782 | # How to create reloadable object files. | |
19783 | reload_flag=$lt_reload_flag | |
19784 | reload_cmds=$lt_reload_cmds | |
19785 | ||
19786 | # Commands used to build an old-style archive. | |
19787 | old_archive_cmds=$lt_old_archive_cmds | |
19788 | ||
19789 | # A language specific compiler. | |
19790 | CC=$lt_compiler | |
19791 | ||
19792 | # Is the compiler the GNU compiler? | |
19793 | with_gcc=$GCC | |
19794 | ||
19795 | # Compiler flag to turn off builtin functions. | |
19796 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19797 | ||
19798 | # Additional compiler flags for building library objects. | |
19799 | pic_flag=$lt_lt_prog_compiler_pic | |
19800 | ||
19801 | # How to pass a linker flag through the compiler. | |
19802 | wl=$lt_lt_prog_compiler_wl | |
19803 | ||
19804 | # Compiler flag to prevent dynamic linking. | |
19805 | link_static_flag=$lt_lt_prog_compiler_static | |
19806 | ||
19807 | # Does compiler simultaneously support -c and -o options? | |
19808 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19809 | ||
19810 | # Whether or not to add -lc for building shared libraries. | |
19811 | build_libtool_need_lc=$archive_cmds_need_lc | |
19812 | ||
19813 | # Whether or not to disallow shared libs when runtime libs are static. | |
19814 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19815 | ||
19816 | # Compiler flag to allow reflexive dlopens. | |
19817 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19818 | ||
19819 | # Compiler flag to generate shared objects directly from archives. | |
19820 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19821 | ||
19822 | # Whether the compiler copes with passing no objects directly. | |
19823 | compiler_needs_object=$lt_compiler_needs_object | |
19824 | ||
19825 | # Create an old-style archive from a shared archive. | |
19826 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19827 | ||
19828 | # Create a temporary old-style archive to link instead of a shared archive. | |
19829 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19830 | ||
19831 | # Commands used to build a shared archive. | |
19832 | archive_cmds=$lt_archive_cmds | |
19833 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19834 | ||
19835 | # Commands used to build a loadable module if different from building | |
19836 | # a shared archive. | |
19837 | module_cmds=$lt_module_cmds | |
19838 | module_expsym_cmds=$lt_module_expsym_cmds | |
19839 | ||
19840 | # Whether we are building with GNU ld or not. | |
19841 | with_gnu_ld=$lt_with_gnu_ld | |
19842 | ||
19843 | # Flag that allows shared libraries with undefined symbols to be built. | |
19844 | allow_undefined_flag=$lt_allow_undefined_flag | |
19845 | ||
19846 | # Flag that enforces no undefined symbols. | |
19847 | no_undefined_flag=$lt_no_undefined_flag | |
19848 | ||
19849 | # Flag to hardcode \$libdir into a binary during linking. | |
19850 | # This must work even if \$libdir does not exist | |
19851 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19852 | ||
19853 | # Whether we need a single "-rpath" flag with a separated argument. | |
19854 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19855 | ||
19856 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19857 | # DIR into the resulting binary. | |
19858 | hardcode_direct=$hardcode_direct | |
19859 | ||
19860 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19861 | # DIR into the resulting binary and the resulting library dependency is | |
19862 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19863 | # library is relocated. | |
19864 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19865 | ||
19866 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19867 | # into the resulting binary. | |
19868 | hardcode_minus_L=$hardcode_minus_L | |
19869 | ||
19870 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19871 | # into the resulting binary. | |
19872 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19873 | ||
19874 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19875 | # into the library and all subsequent libraries and executables linked | |
19876 | # against it. | |
19877 | hardcode_automatic=$hardcode_automatic | |
19878 | ||
19879 | # Set to yes if linker adds runtime paths of dependent libraries | |
19880 | # to runtime path list. | |
19881 | inherit_rpath=$inherit_rpath | |
19882 | ||
19883 | # Whether libtool must link a program against all its dependency libraries. | |
19884 | link_all_deplibs=$link_all_deplibs | |
19885 | ||
19886 | # Set to "yes" if exported symbols are required. | |
19887 | always_export_symbols=$always_export_symbols | |
19888 | ||
19889 | # The commands to list exported symbols. | |
19890 | export_symbols_cmds=$lt_export_symbols_cmds | |
19891 | ||
19892 | # Symbols that should not be listed in the preloaded symbols. | |
19893 | exclude_expsyms=$lt_exclude_expsyms | |
19894 | ||
19895 | # Symbols that must always be exported. | |
19896 | include_expsyms=$lt_include_expsyms | |
19897 | ||
19898 | # Commands necessary for linking programs (against libraries) with templates. | |
19899 | prelink_cmds=$lt_prelink_cmds | |
19900 | ||
19901 | # Commands necessary for finishing linking programs. | |
19902 | postlink_cmds=$lt_postlink_cmds | |
19903 | ||
19904 | # Specify filename containing input files. | |
19905 | file_list_spec=$lt_file_list_spec | |
19906 | ||
19907 | # How to hardcode a shared library path into an executable. | |
19908 | hardcode_action=$hardcode_action | |
19909 | ||
19910 | # ### END LIBTOOL CONFIG | |
19911 | ||
19912 | _LT_EOF | |
19913 | ||
19914 | case $host_os in | |
19915 | aix3*) | |
19916 | cat <<\_LT_EOF >> "$cfgfile" | |
19917 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19918 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19919 | # vanish in a puff of smoke. | |
19920 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19921 | COLLECT_NAMES= | |
19922 | export COLLECT_NAMES | |
19923 | fi | |
19924 | _LT_EOF | |
19925 | ;; | |
19926 | esac | |
19927 | ||
19928 | ||
19929 | ltmain="$ac_aux_dir/ltmain.sh" | |
19930 | ||
19931 | ||
19932 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19933 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19934 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19935 | # is reportedly fixed, but why not run on old versions too? | |
19936 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
19937 | || (rm -f "$cfgfile"; exit 1) | |
19938 | ||
19939 | if test x"$xsi_shell" = xyes; then | |
19940 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
19941 | func_dirname ()\ | |
19942 | {\ | |
19943 | \ case ${1} in\ | |
19944 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
19945 | \ * ) func_dirname_result="${3}" ;;\ | |
19946 | \ esac\ | |
19947 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
19948 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19949 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19950 | test 0 -eq $? || _lt_function_replace_fail=: | |
19951 | ||
19952 | ||
19953 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
19954 | func_basename ()\ | |
19955 | {\ | |
19956 | \ func_basename_result="${1##*/}"\ | |
19957 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
19958 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19959 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19960 | test 0 -eq $? || _lt_function_replace_fail=: | |
19961 | ||
19962 | ||
19963 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
19964 | func_dirname_and_basename ()\ | |
19965 | {\ | |
19966 | \ case ${1} in\ | |
19967 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
19968 | \ * ) func_dirname_result="${3}" ;;\ | |
19969 | \ esac\ | |
19970 | \ func_basename_result="${1##*/}"\ | |
19971 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
19972 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19973 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19974 | test 0 -eq $? || _lt_function_replace_fail=: | |
19975 | ||
19976 | ||
19977 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
19978 | func_stripname ()\ | |
19979 | {\ | |
19980 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
19981 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
19982 | \ func_stripname_result=${3}\ | |
19983 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
19984 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
19985 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
19986 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19987 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19988 | test 0 -eq $? || _lt_function_replace_fail=: | |
19989 | ||
19990 | ||
19991 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
19992 | func_split_long_opt ()\ | |
19993 | {\ | |
19994 | \ func_split_long_opt_name=${1%%=*}\ | |
19995 | \ func_split_long_opt_arg=${1#*=}\ | |
19996 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
19997 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19998 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19999 | test 0 -eq $? || _lt_function_replace_fail=: | |
20000 | ||
20001 | ||
20002 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
20003 | func_split_short_opt ()\ | |
20004 | {\ | |
20005 | \ func_split_short_opt_arg=${1#??}\ | |
20006 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
20007 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20008 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20009 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20010 | test 0 -eq $? || _lt_function_replace_fail=: | |
20011 | ||
20012 | ||
20013 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
20014 | func_lo2o ()\ | |
20015 | {\ | |
20016 | \ case ${1} in\ | |
20017 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
20018 | \ *) func_lo2o_result=${1} ;;\ | |
20019 | \ esac\ | |
20020 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
20021 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20022 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20023 | test 0 -eq $? || _lt_function_replace_fail=: | |
20024 | ||
20025 | ||
20026 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
20027 | func_xform ()\ | |
20028 | {\ | |
20029 | func_xform_result=${1%.*}.lo\ | |
20030 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
20031 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20032 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20033 | test 0 -eq $? || _lt_function_replace_fail=: | |
20034 | ||
20035 | ||
20036 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
20037 | func_arith ()\ | |
20038 | {\ | |
20039 | func_arith_result=$(( $* ))\ | |
20040 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
20041 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20042 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20043 | test 0 -eq $? || _lt_function_replace_fail=: | |
20044 | ||
20045 | ||
20046 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
20047 | func_len ()\ | |
20048 | {\ | |
20049 | func_len_result=${#1}\ | |
20050 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
20051 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20052 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20053 | test 0 -eq $? || _lt_function_replace_fail=: | |
20054 | ||
20055 | fi | |
20056 | ||
20057 | if test x"$lt_shell_append" = xyes; then | |
20058 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
20059 | func_append ()\ | |
20060 | {\ | |
20061 | eval "${1}+=\\${2}"\ | |
20062 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
20063 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20064 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20065 | test 0 -eq $? || _lt_function_replace_fail=: | |
20066 | ||
20067 | ||
20068 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
20069 | func_append_quoted ()\ | |
20070 | {\ | |
20071 | \ func_quote_for_eval "${2}"\ | |
20072 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
20073 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
20074 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20075 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20076 | test 0 -eq $? || _lt_function_replace_fail=: | |
20077 | ||
20078 | ||
20079 | # Save a `func_append' function call where possible by direct use of '+=' | |
20080 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
20081 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20082 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20083 | test 0 -eq $? || _lt_function_replace_fail=: | |
20084 | else | |
20085 | # Save a `func_append' function call even when '+=' is not available | |
20086 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
20087 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20088 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20089 | test 0 -eq $? || _lt_function_replace_fail=: | |
20090 | fi | |
20091 | ||
20092 | if test x"$_lt_function_replace_fail" = x":"; then | |
20093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
20094 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
20095 | fi | |
20096 | ||
20097 | ||
20098 | mv -f "$cfgfile" "$ofile" || | |
20099 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20100 | chmod +x "$ofile" | |
20101 | ||
20102 | ;; | |
20103 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; | |
20104 | ||
20105 | esac | |
20106 | done # for ac_tag | |
20107 | ||
20108 | ||
20109 | as_fn_exit 0 | |
20110 | _ACEOF | |
20111 | ac_clean_files=$ac_clean_files_save | |
20112 | ||
20113 | test $ac_write_fail = 0 || | |
20114 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20115 | ||
20116 | ||
20117 | # configure is writing to config.log, and then calls config.status. | |
20118 | # config.status does its own redirection, appending to config.log. | |
20119 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20120 | # by configure, so config.status won't be able to write to it; its | |
20121 | # output is simply discarded. So we exec the FD to /dev/null, | |
20122 | # effectively closing config.log, so it can be properly (re)opened and | |
20123 | # appended to by config.status. When coming back to configure, we | |
20124 | # need to make the FD available again. | |
20125 | if test "$no_create" != yes; then | |
20126 | ac_cs_success=: | |
20127 | ac_config_status_args= | |
20128 | test "$silent" = yes && | |
20129 | ac_config_status_args="$ac_config_status_args --quiet" | |
20130 | exec 5>/dev/null | |
20131 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20132 | exec 5>>config.log | |
20133 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20134 | # would make configure fail if this is the last instruction. | |
20135 | $ac_cs_success || as_fn_exit 1 | |
20136 | fi | |
20137 | ||
20138 | # | |
20139 | # CONFIG_SUBDIRS section. | |
20140 | # | |
20141 | if test "$no_recursion" != yes; then | |
20142 | ||
20143 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
20144 | # so they do not pile up. | |
20145 | ac_sub_configure_args= | |
20146 | ac_prev= | |
20147 | eval "set x $ac_configure_args" | |
20148 | shift | |
20149 | for ac_arg | |
20150 | do | |
20151 | if test -n "$ac_prev"; then | |
20152 | ac_prev= | |
20153 | continue | |
20154 | fi | |
20155 | case $ac_arg in | |
20156 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
20157 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20158 | ac_prev=cache_file ;; | |
20159 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
20160 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
20161 | | --c=*) | |
20162 | ;; | |
20163 | --config-cache | -C) | |
20164 | ;; | |
20165 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20166 | ac_prev=srcdir ;; | |
20167 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20168 | ;; | |
20169 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
20170 | ac_prev=prefix ;; | |
20171 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
20172 | ;; | |
20173 | --disable-option-checking) | |
20174 | ;; | |
20175 | *) | |
20176 | case $ac_arg in | |
20177 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20178 | esac | |
20179 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
20180 | esac | |
20181 | done | |
20182 | ||
20183 | # Always prepend --prefix to ensure using the same prefix | |
20184 | # in subdir configurations. | |
20185 | ac_arg="--prefix=$prefix" | |
20186 | case $ac_arg in | |
20187 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20188 | esac | |
20189 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
20190 | ||
20191 | # Pass --silent | |
20192 | if test "$silent" = yes; then | |
20193 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
20194 | fi | |
20195 | ||
20196 | # Always prepend --disable-option-checking to silence warnings, since | |
20197 | # different subdirs can have different --enable and --with options. | |
20198 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
20199 | ||
20200 | ac_popdir=`pwd` | |
20201 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
20202 | ||
20203 | # Do not complain, so a configure script can configure whichever | |
20204 | # parts of a large source tree are present. | |
20205 | test -d "$srcdir/$ac_dir" || continue | |
20206 | ||
20207 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
20208 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
20209 | $as_echo "$ac_msg" >&6 | |
20210 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20211 | ac_builddir=. | |
20212 | ||
20213 | case "$ac_dir" in | |
20214 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20215 | *) | |
20216 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20217 | # A ".." for each directory in $ac_dir_suffix. | |
20218 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20219 | case $ac_top_builddir_sub in | |
20220 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20221 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20222 | esac ;; | |
20223 | esac | |
20224 | ac_abs_top_builddir=$ac_pwd | |
20225 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20226 | # for backward compatibility: | |
20227 | ac_top_builddir=$ac_top_build_prefix | |
20228 | ||
20229 | case $srcdir in | |
20230 | .) # We are building in place. | |
20231 | ac_srcdir=. | |
20232 | ac_top_srcdir=$ac_top_builddir_sub | |
20233 | ac_abs_top_srcdir=$ac_pwd ;; | |
20234 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20235 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20236 | ac_top_srcdir=$srcdir | |
20237 | ac_abs_top_srcdir=$srcdir ;; | |
20238 | *) # Relative name. | |
20239 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20240 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20241 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20242 | esac | |
20243 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20244 | ||
20245 | ||
20246 | cd "$ac_dir" | |
20247 | ||
20248 | # Check for guested configure; otherwise get Cygnus style configure. | |
20249 | if test -f "$ac_srcdir/configure.gnu"; then | |
20250 | ac_sub_configure=$ac_srcdir/configure.gnu | |
20251 | elif test -f "$ac_srcdir/configure"; then | |
20252 | ac_sub_configure=$ac_srcdir/configure | |
20253 | elif test -f "$ac_srcdir/configure.in"; then | |
20254 | # This should be Cygnus configure. | |
20255 | ac_sub_configure=$ac_aux_dir/configure | |
20256 | else | |
20257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
20258 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
20259 | ac_sub_configure= | |
20260 | fi | |
20261 | ||
20262 | # The recursion is here. | |
20263 | if test -n "$ac_sub_configure"; then | |
20264 | # Make the cache file name correct relative to the subdirectory. | |
20265 | case $cache_file in | |
20266 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
20267 | *) # Relative name. | |
20268 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
20269 | esac | |
20270 | ||
20271 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
20272 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
20273 | # The eval makes quoting arguments work. | |
20274 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
20275 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
20276 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
20277 | fi | |
20278 | ||
20279 | cd "$ac_popdir" | |
20280 | done | |
20281 | fi | |
20282 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20284 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20285 | fi | |
20286 | ||
20287 | ||
20288 | if test "$cf_openssl_version_ok" = yes; then | |
20289 | openssl="yes" | |
20290 | else | |
20291 | openssl="no" | |
20292 | fi | |
20293 | ||
20294 | echo " | |
20295 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: | |
20296 | Install directory : $prefix | |
20297 | ||
20298 | Ziplinks : $zlib | |
20299 | OpenSSL : $openssl | |
20300 | ||
20301 | Nickname length : $NICKLEN | |
20302 | Topic length : $TOPICLEN | |
20303 | ||
20304 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. | |
20305 | " |