]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
c52df125 | 3 | # Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev. |
212380e3 | 4 | # |
6fb6bd15 | 5 | # |
2eff3833 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
6fb6bd15 | 7 | # |
7083c021 | 8 | # |
212380e3 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
212380e3 | 14 | |
631ef239 AC |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
18 | emulate sh |
19 | NULLCMD=: | |
7083c021 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
23 | setopt NO_GLOB_SUBST |
24 | else | |
7083c021 AC |
25 | case `(set -o) 2>/dev/null` in #( |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
631ef239 | 30 | esac |
631ef239 AC |
31 | fi |
32 | ||
33 | ||
7083c021 AC |
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' | |
631ef239 | 54 | else |
7083c021 AC |
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' | |
631ef239 | 67 | fi |
7083c021 AC |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 70 | fi |
212380e3 | 71 | |
7083c021 AC |
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 | } | |
212380e3 AC |
79 | fi |
80 | ||
81 | ||
631ef239 AC |
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.) | |
631ef239 AC |
87 | IFS=" "" $as_nl" |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 90 | as_myself= |
7083c021 | 91 | case $0 in #(( |
631ef239 AC |
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=. | |
7083c021 AC |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 | done | |
631ef239 AC |
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 | |
7083c021 AC |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 | exit 1 | |
631ef239 AC |
112 | fi |
113 | ||
7083c021 AC |
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 || : | |
631ef239 | 121 | done |
212380e3 AC |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
7083c021 AC |
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 | ||
2eff3833 JT |
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;} | |
7083c021 AC |
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 | |
2eff3833 JT |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
7083c021 AC |
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 | |
c52df125 AC |
199 | |
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
7083c021 AC |
207 | test \$(( 1 + 1 )) = 2 || 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 | |
212380e3 | 219 | do |
7083c021 AC |
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 : | |
2eff3833 JT |
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 | |
7083c021 AC |
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." | |
212380e3 | 274 | else |
7083c021 AC |
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." | |
212380e3 | 279 | fi |
7083c021 AC |
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" | |
b6d0720c | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
2eff3833 JT |
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 | |
7083c021 AC |
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 | ||
b6d0720c AC |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
7083c021 AC |
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 | |
b6d0720c | 415 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
416 | as_fn_error () |
417 | { | |
b6d0720c AC |
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 | |
7083c021 | 422 | fi |
b6d0720c | 423 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
212380e3 | 426 | |
631ef239 AC |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
631ef239 | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
7083c021 AC |
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 | |
212380e3 | 445 | |
631ef239 | 446 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 450 | $as_echo X/"$0" | |
631ef239 AC |
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'` | |
212380e3 | 464 | |
7083c021 AC |
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 | |
212380e3 | 471 | |
212380e3 | 472 | |
7083c021 AC |
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; } | |
212380e3 | 495 | |
2eff3833 JT |
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 | |
7083c021 AC |
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 | |
631ef239 | 506 | } |
212380e3 | 507 | |
7083c021 AC |
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 | |
631ef239 | 520 | |
7083c021 AC |
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. | |
2eff3833 | 534 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 536 | as_ln_s='cp -pR' |
7083c021 AC |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
2eff3833 | 540 | as_ln_s='cp -pR' |
7083c021 | 541 | fi |
631ef239 | 542 | else |
2eff3833 | 543 | as_ln_s='cp -pR' |
631ef239 | 544 | fi |
7083c021 AC |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 547 | |
7083c021 AC |
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 | |
631ef239 AC |
553 | fi |
554 | ||
2eff3833 JT |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
631ef239 | 557 | |
7083c021 AC |
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'" | |
631ef239 | 560 | |
7083c021 AC |
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'" | |
631ef239 | 563 | |
c52df125 AC |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
566 | lt_ltdl_dir='extra/libltdl' | |
567 | ||
568 | lt_dlopen_dir="$lt_ltdl_dir" | |
569 | ||
631ef239 | 570 | |
6fb6bd15 AC |
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
572 | exec 6>&1 | |
631ef239 | 573 | |
7083c021 | 574 | # Name of the host. |
b6d0720c | 575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
576 | # so uname gets run too. |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 578 | |
7083c021 AC |
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= | |
212380e3 | 590 | |
212380e3 AC |
591 | # Identity of this package. |
592 | PACKAGE_NAME='charybdis' | |
593 | PACKAGE_TARNAME='charybdis' | |
c52df125 AC |
594 | PACKAGE_VERSION='3.6.0-dev' |
595 | PACKAGE_STRING='charybdis 3.6.0-dev' | |
212380e3 | 596 | PACKAGE_BUGREPORT='' |
7083c021 | 597 | PACKAGE_URL='' |
212380e3 AC |
598 | |
599 | ac_default_prefix=$HOME/ircd | |
600 | # Factoring default headers for most tests. | |
601 | ac_includes_default="\ | |
602 | #include <stdio.h> | |
631ef239 | 603 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
604 | # include <sys/types.h> |
605 | #endif | |
631ef239 | 606 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
607 | # include <sys/stat.h> |
608 | #endif | |
631ef239 | 609 | #ifdef STDC_HEADERS |
212380e3 AC |
610 | # include <stdlib.h> |
611 | # include <stddef.h> | |
612 | #else | |
631ef239 | 613 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
614 | # include <stdlib.h> |
615 | # endif | |
616 | #endif | |
631ef239 AC |
617 | #ifdef HAVE_STRING_H |
618 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
619 | # include <memory.h> |
620 | # endif | |
621 | # include <string.h> | |
622 | #endif | |
631ef239 | 623 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
624 | # include <strings.h> |
625 | #endif | |
631ef239 | 626 | #ifdef HAVE_INTTYPES_H |
212380e3 | 627 | # include <inttypes.h> |
212380e3 | 628 | #endif |
631ef239 AC |
629 | #ifdef HAVE_STDINT_H |
630 | # include <stdint.h> | |
631 | #endif | |
632 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
633 | # include <unistd.h> |
634 | #endif" | |
635 | ||
1db8e007 | 636 | enable_option_checking=no |
c52df125 AC |
637 | ac_subst_vars='ltdl_LTLIBOBJS |
638 | ltdl_LIBOBJS | |
639 | am__EXEEXT_FALSE | |
640 | am__EXEEXT_TRUE | |
641 | LTLIBOBJS | |
631ef239 | 642 | LIBOBJS |
7083c021 AC |
643 | SEDOBJ |
644 | IRC_CFLAGS | |
645 | PICFLAGS | |
646 | SSL_LIBS | |
647 | SSL_INCLUDES | |
648 | SSL_SRCS_ENABLE | |
649 | MOD_TARGET | |
650 | MODULES_LIBS | |
651 | SELECT_TYPE | |
9f9b7042 NPB |
652 | PROGRAM_PREFIX |
653 | PKGRUNDIR | |
7083c021 AC |
654 | moduledir |
655 | MODULE_DIR | |
656 | helpdir | |
657 | HELP_DIR | |
658 | logdir | |
659 | LOG_DIR | |
7083c021 | 660 | ETC_DIR |
c52df125 | 661 | SQLITE_OBJ |
a5471f24 | 662 | SQLITE_INCLUDES |
497e30a0 | 663 | SQLITE_LD |
a5471f24 LS |
664 | SQLITE_LIBS |
665 | SQLITE_CFLAGS | |
666 | PKG_CONFIG_LIBDIR | |
667 | PKG_CONFIG_PATH | |
668 | PKG_CONFIG | |
7083c021 AC |
669 | ZLIB_LD |
670 | ENCSPEED | |
671 | ALLOCA | |
672 | VICONF | |
673 | CRYPT_LIB | |
9f9b7042 NPB |
674 | PKGLIBEXECDIR |
675 | pkglibexecdir | |
676 | PKGLOCALSTATEDIR | |
677 | pkglocalstatedir | |
678 | pkgrundir | |
679 | rundir | |
680 | pkglibdir | |
7083c021 AC |
681 | LEXLIB |
682 | LEX_OUTPUT_ROOT | |
683 | LEX | |
684 | YFLAGS | |
685 | YACC | |
686 | TOUCH | |
7083c021 AC |
687 | LN |
688 | MV | |
689 | CP | |
690 | RM | |
7083c021 AC |
691 | STDOUT |
692 | MAKEDEPEND | |
693 | MKDEP | |
c52df125 AC |
694 | BUILD_LTDL_FALSE |
695 | BUILD_LTDL_TRUE | |
696 | LTDLOPEN | |
697 | LT_CONFIG_H | |
1db8e007 | 698 | subdirs |
c52df125 AC |
699 | CONVENIENCE_LTDL_FALSE |
700 | CONVENIENCE_LTDL_TRUE | |
701 | INSTALL_LTDL_FALSE | |
702 | INSTALL_LTDL_TRUE | |
703 | ARGZ_H | |
704 | sys_symbol_underscore | |
705 | LIBADD_DL | |
706 | LT_DLPREOPEN | |
707 | LIBADD_DLD_LINK | |
708 | LIBADD_SHL_LOAD | |
709 | LIBADD_DLOPEN | |
710 | LT_DLLOADERS | |
711 | INCLTDL | |
712 | LTDLINCL | |
713 | LTDLDEPS | |
714 | LIBLTDL | |
715 | CPP | |
716 | OTOOL64 | |
717 | OTOOL | |
718 | LIPO | |
719 | NMEDIT | |
720 | DSYMUTIL | |
721 | MANIFEST_TOOL | |
722 | RANLIB | |
723 | DLLTOOL | |
724 | OBJDUMP | |
725 | LN_S | |
726 | NM | |
727 | ac_ct_DUMPBIN | |
728 | DUMPBIN | |
729 | LD | |
730 | FGREP | |
7083c021 AC |
731 | EGREP |
732 | GREP | |
c52df125 AC |
733 | SED |
734 | host_os | |
735 | host_vendor | |
736 | host_cpu | |
737 | host | |
738 | build_os | |
739 | build_vendor | |
740 | build_cpu | |
741 | build | |
742 | LIBTOOL | |
743 | am__fastdepCC_FALSE | |
744 | am__fastdepCC_TRUE | |
745 | CCDEPMODE | |
746 | am__nodep | |
747 | AMDEPBACKSLASH | |
748 | AMDEP_FALSE | |
749 | AMDEP_TRUE | |
750 | am__quote | |
751 | am__include | |
752 | DEPDIR | |
7083c021 AC |
753 | OBJEXT |
754 | EXEEXT | |
755 | ac_ct_CC | |
756 | CPPFLAGS | |
757 | LDFLAGS | |
758 | CFLAGS | |
759 | CC | |
c52df125 AC |
760 | ac_ct_AR |
761 | AR | |
762 | AM_BACKSLASH | |
763 | AM_DEFAULT_VERBOSITY | |
764 | AM_DEFAULT_V | |
765 | AM_V | |
766 | am__untar | |
767 | am__tar | |
768 | AMTAR | |
769 | am__leading_dot | |
770 | SET_MAKE | |
771 | AWK | |
772 | mkdir_p | |
773 | MKDIR_P | |
774 | INSTALL_STRIP_PROGRAM | |
775 | STRIP | |
776 | install_sh | |
777 | MAKEINFO | |
778 | AUTOHEADER | |
779 | AUTOMAKE | |
780 | AUTOCONF | |
781 | ACLOCAL | |
782 | VERSION | |
783 | PACKAGE | |
784 | CYGPATH_W | |
785 | am__isrc | |
786 | INSTALL_DATA | |
787 | INSTALL_SCRIPT | |
788 | INSTALL_PROGRAM | |
7083c021 AC |
789 | target_alias |
790 | host_alias | |
791 | build_alias | |
792 | LIBS | |
793 | ECHO_T | |
794 | ECHO_N | |
795 | ECHO_C | |
796 | DEFS | |
797 | mandir | |
798 | localedir | |
799 | libdir | |
800 | psdir | |
801 | pdfdir | |
802 | dvidir | |
803 | htmldir | |
804 | infodir | |
805 | docdir | |
806 | oldincludedir | |
807 | includedir | |
808 | localstatedir | |
809 | sharedstatedir | |
810 | sysconfdir | |
811 | datadir | |
812 | datarootdir | |
813 | libexecdir | |
814 | sbindir | |
815 | bindir | |
816 | program_transform_name | |
817 | prefix | |
818 | exec_prefix | |
819 | PACKAGE_URL | |
820 | PACKAGE_BUGREPORT | |
821 | PACKAGE_STRING | |
822 | PACKAGE_VERSION | |
823 | PACKAGE_TARNAME | |
824 | PACKAGE_NAME | |
825 | PATH_SEPARATOR | |
826 | SHELL' | |
212380e3 | 827 | ac_subst_files='' |
7083c021 AC |
828 | ac_user_opts=' |
829 | enable_option_checking | |
c52df125 AC |
830 | enable_silent_rules |
831 | enable_dependency_tracking | |
832 | enable_static | |
833 | enable_shared | |
834 | with_pic | |
835 | enable_fast_install | |
836 | with_gnu_ld | |
837 | with_sysroot | |
838 | enable_libtool_lock | |
839 | with_included_ltdl | |
840 | with_ltdl_include | |
841 | with_ltdl_lib | |
842 | enable_ltdl_install | |
9f9b7042 | 843 | enable_fhs_paths |
7083c021 AC |
844 | enable_ipv6 |
845 | enable_openssl | |
846 | with_zlib_path | |
847 | enable_zlib | |
a6ef3156 | 848 | with_shared_sqlite |
7083c021 AC |
849 | enable_ports |
850 | enable_poll | |
851 | enable_select | |
852 | enable_kqueue | |
853 | enable_epoll | |
854 | with_confdir | |
855 | with_logdir | |
856 | with_helpdir | |
857 | with_moduledir | |
9f9b7042 NPB |
858 | with_rundir |
859 | with_program_prefix | |
b6d0720c AC |
860 | with_custom_branding |
861 | with_custom_version | |
7083c021 AC |
862 | enable_assert |
863 | enable_iodebug | |
864 | enable_profile | |
865 | enable_balloc | |
866 | enable_small_net | |
867 | with_nicklen | |
868 | with_topiclen | |
869 | enable_warnings | |
870 | ' | |
631ef239 AC |
871 | ac_precious_vars='build_alias |
872 | host_alias | |
873 | target_alias | |
874 | CC | |
875 | CFLAGS | |
876 | LDFLAGS | |
877 | LIBS | |
878 | CPPFLAGS | |
879 | CPP | |
880 | YACC | |
a5471f24 LS |
881 | YFLAGS |
882 | PKG_CONFIG | |
883 | PKG_CONFIG_PATH | |
884 | PKG_CONFIG_LIBDIR | |
885 | SQLITE_CFLAGS | |
886 | SQLITE_LIBS' | |
c52df125 AC |
887 | ac_subdirs_all='extra/libltdl |
888 | libratbox' | |
212380e3 AC |
889 | |
890 | # Initialize some variables set by options. | |
891 | ac_init_help= | |
892 | ac_init_version=false | |
7083c021 AC |
893 | ac_unrecognized_opts= |
894 | ac_unrecognized_sep= | |
212380e3 AC |
895 | # The variables have the same names as the options, with |
896 | # dashes changed to underlines. | |
897 | cache_file=/dev/null | |
898 | exec_prefix=NONE | |
899 | no_create= | |
900 | no_recursion= | |
901 | prefix=NONE | |
902 | program_prefix=NONE | |
903 | program_suffix=NONE | |
904 | program_transform_name=s,x,x, | |
905 | silent= | |
906 | site= | |
907 | srcdir= | |
908 | verbose= | |
909 | x_includes=NONE | |
910 | x_libraries=NONE | |
911 | ||
912 | # Installation directory options. | |
913 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
914 | # and all the variables that are supposed to be based on exec_prefix | |
915 | # by default will actually change. | |
916 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 917 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
918 | bindir='${exec_prefix}/bin' |
919 | sbindir='${exec_prefix}/sbin' | |
920 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
921 | datarootdir='${prefix}/share' |
922 | datadir='${datarootdir}' | |
212380e3 AC |
923 | sysconfdir='${prefix}/etc' |
924 | sharedstatedir='${prefix}/com' | |
925 | localstatedir='${prefix}/var' | |
212380e3 AC |
926 | includedir='${prefix}/include' |
927 | oldincludedir='/usr/include' | |
631ef239 AC |
928 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
929 | infodir='${datarootdir}/info' | |
930 | htmldir='${docdir}' | |
931 | dvidir='${docdir}' | |
932 | pdfdir='${docdir}' | |
933 | psdir='${docdir}' | |
934 | libdir='${exec_prefix}/lib' | |
935 | localedir='${datarootdir}/locale' | |
936 | mandir='${datarootdir}/man' | |
212380e3 AC |
937 | |
938 | ac_prev= | |
631ef239 | 939 | ac_dashdash= |
212380e3 AC |
940 | for ac_option |
941 | do | |
942 | # If the previous option needs an argument, assign it. | |
943 | if test -n "$ac_prev"; then | |
631ef239 | 944 | eval $ac_prev=\$ac_option |
212380e3 AC |
945 | ac_prev= |
946 | continue | |
947 | fi | |
948 | ||
631ef239 | 949 | case $ac_option in |
b6d0720c AC |
950 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
951 | *=) ac_optarg= ;; | |
952 | *) ac_optarg=yes ;; | |
631ef239 | 953 | esac |
212380e3 AC |
954 | |
955 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
956 | ||
631ef239 AC |
957 | case $ac_dashdash$ac_option in |
958 | --) | |
959 | ac_dashdash=yes ;; | |
212380e3 AC |
960 | |
961 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
962 | ac_prev=bindir ;; | |
963 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
964 | bindir=$ac_optarg ;; | |
965 | ||
966 | -build | --build | --buil | --bui | --bu) | |
967 | ac_prev=build_alias ;; | |
968 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
969 | build_alias=$ac_optarg ;; | |
970 | ||
971 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
972 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
973 | ac_prev=cache_file ;; | |
974 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
975 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
976 | cache_file=$ac_optarg ;; | |
977 | ||
978 | --config-cache | -C) | |
979 | cache_file=config.cache ;; | |
980 | ||
631ef239 | 981 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 982 | ac_prev=datadir ;; |
631ef239 | 983 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
984 | datadir=$ac_optarg ;; |
985 | ||
631ef239 AC |
986 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
987 | | --dataroo | --dataro | --datar) | |
988 | ac_prev=datarootdir ;; | |
989 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
990 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
991 | datarootdir=$ac_optarg ;; | |
992 | ||
212380e3 | 993 | -disable-* | --disable-*) |
7083c021 | 994 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 995 | # Reject names that are not valid shell variable names. |
7083c021 | 996 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 997 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
998 | ac_useropt_orig=$ac_useropt |
999 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1000 | case $ac_user_opts in | |
1001 | *" | |
1002 | "enable_$ac_useropt" | |
1003 | "*) ;; | |
1004 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1005 | ac_unrecognized_sep=', ';; | |
1006 | esac | |
1007 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
1008 | |
1009 | -docdir | --docdir | --docdi | --doc | --do) | |
1010 | ac_prev=docdir ;; | |
1011 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1012 | docdir=$ac_optarg ;; | |
1013 | ||
1014 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1015 | ac_prev=dvidir ;; | |
1016 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1017 | dvidir=$ac_optarg ;; | |
212380e3 AC |
1018 | |
1019 | -enable-* | --enable-*) | |
7083c021 | 1020 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 1021 | # Reject names that are not valid shell variable names. |
7083c021 | 1022 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1023 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
1024 | ac_useropt_orig=$ac_useropt |
1025 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1026 | case $ac_user_opts in | |
1027 | *" | |
1028 | "enable_$ac_useropt" | |
1029 | "*) ;; | |
1030 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1031 | ac_unrecognized_sep=', ';; | |
1032 | esac | |
1033 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1034 | |
1035 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1036 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1037 | | --exec | --exe | --ex) | |
1038 | ac_prev=exec_prefix ;; | |
1039 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1040 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1041 | | --exec=* | --exe=* | --ex=*) | |
1042 | exec_prefix=$ac_optarg ;; | |
1043 | ||
1044 | -gas | --gas | --ga | --g) | |
1045 | # Obsolete; use --with-gas. | |
1046 | with_gas=yes ;; | |
1047 | ||
1048 | -help | --help | --hel | --he | -h) | |
1049 | ac_init_help=long ;; | |
1050 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1051 | ac_init_help=recursive ;; | |
1052 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1053 | ac_init_help=short ;; | |
1054 | ||
1055 | -host | --host | --hos | --ho) | |
1056 | ac_prev=host_alias ;; | |
1057 | -host=* | --host=* | --hos=* | --ho=*) | |
1058 | host_alias=$ac_optarg ;; | |
1059 | ||
631ef239 AC |
1060 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1061 | ac_prev=htmldir ;; | |
1062 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1063 | | --ht=*) | |
1064 | htmldir=$ac_optarg ;; | |
1065 | ||
212380e3 AC |
1066 | -includedir | --includedir | --includedi | --included | --include \ |
1067 | | --includ | --inclu | --incl | --inc) | |
1068 | ac_prev=includedir ;; | |
1069 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1070 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1071 | includedir=$ac_optarg ;; | |
1072 | ||
1073 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1074 | ac_prev=infodir ;; | |
1075 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1076 | infodir=$ac_optarg ;; | |
1077 | ||
1078 | -libdir | --libdir | --libdi | --libd) | |
1079 | ac_prev=libdir ;; | |
1080 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1081 | libdir=$ac_optarg ;; | |
1082 | ||
1083 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1084 | | --libexe | --libex | --libe) | |
1085 | ac_prev=libexecdir ;; | |
1086 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1087 | | --libexe=* | --libex=* | --libe=*) | |
1088 | libexecdir=$ac_optarg ;; | |
1089 | ||
631ef239 AC |
1090 | -localedir | --localedir | --localedi | --localed | --locale) |
1091 | ac_prev=localedir ;; | |
1092 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1093 | localedir=$ac_optarg ;; | |
1094 | ||
212380e3 | 1095 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 1096 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
1097 | ac_prev=localstatedir ;; |
1098 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 1099 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
1100 | localstatedir=$ac_optarg ;; |
1101 | ||
1102 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1103 | ac_prev=mandir ;; | |
1104 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1105 | mandir=$ac_optarg ;; | |
1106 | ||
1107 | -nfp | --nfp | --nf) | |
1108 | # Obsolete; use --without-fp. | |
1109 | with_fp=no ;; | |
1110 | ||
1111 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1112 | | --no-cr | --no-c | -n) | |
1113 | no_create=yes ;; | |
1114 | ||
1115 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1116 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1117 | no_recursion=yes ;; | |
1118 | ||
1119 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1120 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1121 | | --oldin | --oldi | --old | --ol | --o) | |
1122 | ac_prev=oldincludedir ;; | |
1123 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1124 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1125 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1126 | oldincludedir=$ac_optarg ;; | |
1127 | ||
1128 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1129 | ac_prev=prefix ;; | |
1130 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1131 | prefix=$ac_optarg ;; | |
1132 | ||
1133 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1134 | | --program-pre | --program-pr | --program-p) | |
1135 | ac_prev=program_prefix ;; | |
1136 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1137 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1138 | program_prefix=$ac_optarg ;; | |
1139 | ||
1140 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1141 | | --program-suf | --program-su | --program-s) | |
1142 | ac_prev=program_suffix ;; | |
1143 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1144 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1145 | program_suffix=$ac_optarg ;; | |
1146 | ||
1147 | -program-transform-name | --program-transform-name \ | |
1148 | | --program-transform-nam | --program-transform-na \ | |
1149 | | --program-transform-n | --program-transform- \ | |
1150 | | --program-transform | --program-transfor \ | |
1151 | | --program-transfo | --program-transf \ | |
1152 | | --program-trans | --program-tran \ | |
1153 | | --progr-tra | --program-tr | --program-t) | |
1154 | ac_prev=program_transform_name ;; | |
1155 | -program-transform-name=* | --program-transform-name=* \ | |
1156 | | --program-transform-nam=* | --program-transform-na=* \ | |
1157 | | --program-transform-n=* | --program-transform-=* \ | |
1158 | | --program-transform=* | --program-transfor=* \ | |
1159 | | --program-transfo=* | --program-transf=* \ | |
1160 | | --program-trans=* | --program-tran=* \ | |
1161 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1162 | program_transform_name=$ac_optarg ;; | |
1163 | ||
631ef239 AC |
1164 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1165 | ac_prev=pdfdir ;; | |
1166 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1167 | pdfdir=$ac_optarg ;; | |
1168 | ||
1169 | -psdir | --psdir | --psdi | --psd | --ps) | |
1170 | ac_prev=psdir ;; | |
1171 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1172 | psdir=$ac_optarg ;; | |
1173 | ||
212380e3 AC |
1174 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1175 | | -silent | --silent | --silen | --sile | --sil) | |
1176 | silent=yes ;; | |
1177 | ||
1178 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1179 | ac_prev=sbindir ;; | |
1180 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1181 | | --sbi=* | --sb=*) | |
1182 | sbindir=$ac_optarg ;; | |
1183 | ||
1184 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1185 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1186 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1187 | | --sha | --sh) | |
1188 | ac_prev=sharedstatedir ;; | |
1189 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1190 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1191 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1192 | | --sha=* | --sh=*) | |
1193 | sharedstatedir=$ac_optarg ;; | |
1194 | ||
1195 | -site | --site | --sit) | |
1196 | ac_prev=site ;; | |
1197 | -site=* | --site=* | --sit=*) | |
1198 | site=$ac_optarg ;; | |
1199 | ||
1200 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1201 | ac_prev=srcdir ;; | |
1202 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1203 | srcdir=$ac_optarg ;; | |
1204 | ||
1205 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1206 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1207 | ac_prev=sysconfdir ;; | |
1208 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1209 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1210 | sysconfdir=$ac_optarg ;; | |
1211 | ||
1212 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1213 | ac_prev=target_alias ;; | |
1214 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1215 | target_alias=$ac_optarg ;; | |
1216 | ||
1217 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1218 | verbose=yes ;; | |
1219 | ||
1220 | -version | --version | --versio | --versi | --vers | -V) | |
1221 | ac_init_version=: ;; | |
1222 | ||
1223 | -with-* | --with-*) | |
7083c021 | 1224 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1225 | # Reject names that are not valid shell variable names. |
7083c021 | 1226 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1227 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1228 | ac_useropt_orig=$ac_useropt |
1229 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1230 | case $ac_user_opts in | |
1231 | *" | |
1232 | "with_$ac_useropt" | |
1233 | "*) ;; | |
1234 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1235 | ac_unrecognized_sep=', ';; | |
1236 | esac | |
1237 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1238 | |
1239 | -without-* | --without-*) | |
7083c021 | 1240 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1241 | # Reject names that are not valid shell variable names. |
7083c021 | 1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1243 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1244 | ac_useropt_orig=$ac_useropt |
1245 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1246 | case $ac_user_opts in | |
1247 | *" | |
1248 | "with_$ac_useropt" | |
1249 | "*) ;; | |
1250 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1251 | ac_unrecognized_sep=', ';; | |
1252 | esac | |
1253 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1254 | |
1255 | --x) | |
1256 | # Obsolete; use --with-x. | |
1257 | with_x=yes ;; | |
1258 | ||
1259 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1260 | | --x-incl | --x-inc | --x-in | --x-i) | |
1261 | ac_prev=x_includes ;; | |
1262 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1263 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1264 | x_includes=$ac_optarg ;; | |
1265 | ||
1266 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1267 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1268 | ac_prev=x_libraries ;; | |
1269 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1270 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1271 | x_libraries=$ac_optarg ;; | |
1272 | ||
b6d0720c AC |
1273 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1274 | Try \`$0 --help' for more information" | |
212380e3 AC |
1275 | ;; |
1276 | ||
1277 | *=*) | |
1278 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1279 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1280 | case $ac_envvar in #( |
1281 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1282 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1283 | esac |
631ef239 | 1284 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1285 | export $ac_envvar ;; |
1286 | ||
1287 | *) | |
1288 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1289 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1290 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1291 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1292 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1293 | ;; |
1294 | ||
1295 | esac | |
1296 | done | |
1297 | ||
1298 | if test -n "$ac_prev"; then | |
1299 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1300 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1301 | fi |
1302 | ||
7083c021 AC |
1303 | if test -n "$ac_unrecognized_opts"; then |
1304 | case $enable_option_checking in | |
1305 | no) ;; | |
b6d0720c | 1306 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1307 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1308 | esac | |
1309 | fi | |
1310 | ||
1311 | # Check all directory arguments for consistency. | |
631ef239 AC |
1312 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1313 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1314 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1315 | libdir localedir mandir | |
212380e3 | 1316 | do |
631ef239 | 1317 | eval ac_val=\$$ac_var |
7083c021 AC |
1318 | # Remove trailing slashes. |
1319 | case $ac_val in | |
1320 | */ ) | |
1321 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1322 | eval $ac_var=\$ac_val;; | |
1323 | esac | |
1324 | # Be sure to have absolute directory names. | |
212380e3 | 1325 | case $ac_val in |
631ef239 AC |
1326 | [\\/$]* | ?:[\\/]* ) continue;; |
1327 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1328 | esac |
b6d0720c | 1329 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1330 | done |
1331 | ||
1332 | # There might be people who depend on the old broken behavior: `$host' | |
1333 | # used to hold the argument of --host etc. | |
1334 | # FIXME: To remove some day. | |
1335 | build=$build_alias | |
1336 | host=$host_alias | |
1337 | target=$target_alias | |
1338 | ||
1339 | # FIXME: To remove some day. | |
1340 | if test "x$host_alias" != x; then | |
1341 | if test "x$build_alias" = x; then | |
1342 | cross_compiling=maybe | |
212380e3 AC |
1343 | elif test "x$build_alias" != "x$host_alias"; then |
1344 | cross_compiling=yes | |
1345 | fi | |
1346 | fi | |
1347 | ||
1348 | ac_tool_prefix= | |
1349 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1350 | ||
1351 | test "$silent" = yes && exec 6>/dev/null | |
1352 | ||
1353 | ||
631ef239 AC |
1354 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1355 | ac_ls_di=`ls -di .` && | |
1356 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1357 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1358 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1359 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1360 | |
1361 | ||
1362 | # Find the source files, if location was not specified. | |
1363 | if test -z "$srcdir"; then | |
212380e3 | 1364 | ac_srcdir_defaulted=yes |
631ef239 | 1365 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1366 | ac_confdir=`$as_dirname -- "$as_myself" || |
1367 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1368 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1369 | X"$as_myself" : 'X\(//\)$' \| \ | |
1370 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1371 | $as_echo X"$as_myself" | | |
631ef239 AC |
1372 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\/\)[^/].*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\/\)$/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\).*/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | s/.*/./; q'` | |
212380e3 | 1389 | srcdir=$ac_confdir |
631ef239 | 1390 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1391 | srcdir=.. |
1392 | fi | |
1393 | else | |
1394 | ac_srcdir_defaulted=no | |
1395 | fi | |
631ef239 AC |
1396 | if test ! -r "$srcdir/$ac_unique_file"; then |
1397 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1398 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1399 | fi |
631ef239 AC |
1400 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1401 | ac_abs_confdir=`( | |
b6d0720c | 1402 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1403 | pwd)` |
1404 | # When building in place, set srcdir=. | |
1405 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1406 | srcdir=. | |
1407 | fi | |
1408 | # Remove unnecessary trailing slashes from srcdir. | |
1409 | # Double slashes in file names in object file debugging info | |
1410 | # mess up M-x gdb in Emacs. | |
1411 | case $srcdir in | |
1412 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1413 | esac | |
1414 | for ac_var in $ac_precious_vars; do | |
1415 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1416 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1417 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1418 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1419 | done | |
212380e3 AC |
1420 | |
1421 | # | |
1422 | # Report the --help message. | |
1423 | # | |
1424 | if test "$ac_init_help" = "long"; then | |
1425 | # Omit some internal or obsolete options to make the list less imposing. | |
1426 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1427 | cat <<_ACEOF | |
c52df125 | 1428 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1429 | |
1430 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1431 | ||
1432 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1433 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1434 | ||
1435 | Defaults for the options are specified in brackets. | |
1436 | ||
1437 | Configuration: | |
1438 | -h, --help display this help and exit | |
1439 | --help=short display options specific to this package | |
1440 | --help=recursive display the short help of all the included packages | |
1441 | -V, --version display version information and exit | |
b6d0720c | 1442 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1443 | --cache-file=FILE cache test results in FILE [disabled] |
1444 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1445 | -n, --no-create do not create output files | |
1446 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1447 | ||
212380e3 AC |
1448 | Installation directories: |
1449 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1450 | [$ac_default_prefix] |
212380e3 | 1451 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1452 | [PREFIX] |
212380e3 AC |
1453 | |
1454 | By default, \`make install' will install all the files in | |
1455 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1456 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1457 | for instance \`--prefix=\$HOME'. | |
1458 | ||
1459 | For better control, use the options below. | |
1460 | ||
1461 | Fine tuning of the installation directories: | |
7083c021 AC |
1462 | --bindir=DIR user executables [EPREFIX/bin] |
1463 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1464 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1465 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1466 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1467 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1468 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1469 | --includedir=DIR C header files [PREFIX/include] | |
1470 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1471 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1472 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1473 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1474 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1475 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1476 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1477 | --htmldir=DIR html documentation [DOCDIR] | |
1478 | --dvidir=DIR dvi documentation [DOCDIR] | |
1479 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1480 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1481 | _ACEOF |
1482 | ||
1483 | cat <<\_ACEOF | |
c52df125 AC |
1484 | |
1485 | Program names: | |
1486 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1487 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1488 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1489 | ||
1490 | System types: | |
1491 | --build=BUILD configure for building on BUILD [guessed] | |
1492 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
212380e3 AC |
1493 | _ACEOF |
1494 | fi | |
1495 | ||
1496 | if test -n "$ac_init_help"; then | |
1497 | case $ac_init_help in | |
c52df125 | 1498 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; |
212380e3 AC |
1499 | esac |
1500 | cat <<\_ACEOF | |
1501 | ||
1502 | Optional Features: | |
7083c021 | 1503 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1504 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1505 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c52df125 AC |
1506 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1507 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1508 | --enable-dependency-tracking | |
1509 | do not reject slow dependency extractors | |
1510 | --disable-dependency-tracking | |
1511 | speeds up one-time build | |
1512 | --enable-static[=PKGS] build static libraries [default=no] | |
1513 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1514 | --enable-fast-install[=PKGS] | |
1515 | optimize for fast installation [default=yes] | |
1516 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1517 | --enable-ltdl-install install libltdl | |
6929cd01 | 1518 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1519 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1520 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1521 | --disable-openssl Disable OpenSSL support. |
1522 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1523 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1524 | --enable-poll Force poll() usage. |
1525 | --enable-select Force select() usage. | |
1526 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1527 | --enable-epoll Force sys_epoll usage (Linux only). |
1528 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1529 | hard(aborts the daemon) | |
1530 | --enable-iodebug Enable IO Debugging hooks | |
1531 | --enable-profile Enable profiling | |
1532 | --disable-balloc Disable the block allocator. | |
212380e3 | 1533 | --enable-small-net Enable small network support. |
212380e3 AC |
1534 | --enable-warnings Enable all sorts of warnings for debugging. |
1535 | ||
1536 | Optional Packages: | |
1537 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1538 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
c52df125 AC |
1539 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1540 | both] | |
1541 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1542 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1543 | (or the compiler's sysroot if not specified). | |
1544 | --with-included-ltdl use the GNU ltdl sources included here | |
1545 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1546 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
212380e3 | 1547 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
a6ef3156 | 1548 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1549 | --with-confdir=DIR Directory to install config files [deprecated, use |
1550 | --sysconfdir instead]. | |
212380e3 AC |
1551 | --with-logdir=DIR Directory where to write logfiles. |
1552 | --with-helpdir=DIR Directory to install help files. | |
1553 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1554 | --with-rundir=DIR Directory in which to store pidfile. |
1555 | --with-program-prefix= If set, programs installed into PATH will be | |
1556 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1557 | --with-custom-branding=NAME |
1558 | Custom branding name. | |
1559 | --with-custom-version=NAME | |
1560 | Custom version branding. | |
b583faf9 | 1561 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1562 | 31, max 50) |
212380e3 AC |
1563 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1564 | 390) | |
212380e3 AC |
1565 | |
1566 | Some influential environment variables: | |
1567 | CC C compiler command | |
1568 | CFLAGS C compiler flags | |
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1570 | nonstandard directory <lib dir> | |
631ef239 | 1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1572 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1573 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1574 | CPP C preprocessor |
b6d0720c AC |
1575 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1576 | Defaults to the first program found out of: `bison -y', `byacc', | |
1577 | `yacc'. | |
631ef239 AC |
1578 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1579 | This script will default YFLAGS to the empty string to avoid a | |
1580 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1581 | PKG_CONFIG path to pkg-config utility |
1582 | PKG_CONFIG_PATH | |
1583 | directories to add to pkg-config's search path | |
1584 | PKG_CONFIG_LIBDIR | |
1585 | path overriding pkg-config's built-in search path | |
1586 | SQLITE_CFLAGS | |
1587 | C compiler flags for SQLITE, overriding pkg-config | |
1588 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1589 | |
1590 | Use these variables to override the choices made by `configure' or to help | |
1591 | it to find libraries and programs with nonstandard names/locations. | |
1592 | ||
7083c021 | 1593 | Report bugs to the package provider. |
212380e3 | 1594 | _ACEOF |
631ef239 | 1595 | ac_status=$? |
212380e3 AC |
1596 | fi |
1597 | ||
1598 | if test "$ac_init_help" = "recursive"; then | |
1599 | # If there are subdirs, report their specific --help. | |
212380e3 | 1600 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1601 | test -d "$ac_dir" || |
1602 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1603 | continue | |
212380e3 AC |
1604 | ac_builddir=. |
1605 | ||
631ef239 AC |
1606 | case "$ac_dir" in |
1607 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1608 | *) | |
7083c021 | 1609 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1610 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1611 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1612 | case $ac_top_builddir_sub in |
1613 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1614 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1615 | esac ;; | |
1616 | esac | |
1617 | ac_abs_top_builddir=$ac_pwd | |
1618 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1619 | # for backward compatibility: | |
1620 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1621 | |
1622 | case $srcdir in | |
631ef239 | 1623 | .) # We are building in place. |
212380e3 | 1624 | ac_srcdir=. |
631ef239 AC |
1625 | ac_top_srcdir=$ac_top_builddir_sub |
1626 | ac_abs_top_srcdir=$ac_pwd ;; | |
1627 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1628 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1629 | ac_top_srcdir=$srcdir |
1630 | ac_abs_top_srcdir=$srcdir ;; | |
1631 | *) # Relative name. | |
1632 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1633 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1634 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1635 | esac |
631ef239 AC |
1636 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1637 | ||
1638 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1639 | # Check for guested configure. | |
1640 | if test -f "$ac_srcdir/configure.gnu"; then | |
1641 | echo && | |
1642 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1643 | elif test -f "$ac_srcdir/configure"; then | |
1644 | echo && | |
1645 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1646 | else |
7083c021 | 1647 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1648 | fi || ac_status=$? |
1649 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1650 | done |
1651 | fi | |
1652 | ||
631ef239 | 1653 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1654 | if $ac_init_version; then |
1655 | cat <<\_ACEOF | |
c52df125 | 1656 | charybdis configure 3.6.0-dev |
2eff3833 | 1657 | generated by GNU Autoconf 2.69 |
212380e3 | 1658 | |
2eff3833 | 1659 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1660 | This configure script is free software; the Free Software Foundation |
1661 | gives unlimited permission to copy, distribute and modify it. | |
212380e3 | 1662 | _ACEOF |
631ef239 | 1663 | exit |
212380e3 | 1664 | fi |
212380e3 | 1665 | |
7083c021 AC |
1666 | ## ------------------------ ## |
1667 | ## Autoconf initialization. ## | |
1668 | ## ------------------------ ## | |
212380e3 | 1669 | |
7083c021 AC |
1670 | # ac_fn_c_try_compile LINENO |
1671 | # -------------------------- | |
1672 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1673 | ac_fn_c_try_compile () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1676 | rm -f conftest.$ac_objext | |
1677 | if { { ac_try="$ac_compile" | |
1678 | case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | $as_echo "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_compile") 2>conftest.err | |
1685 | ac_status=$? | |
1686 | if test -s conftest.err; then | |
1687 | grep -v '^ *+' conftest.err >conftest.er1 | |
1688 | cat conftest.er1 >&5 | |
1689 | mv -f conftest.er1 conftest.err | |
1690 | fi | |
1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1692 | test $ac_status = 0; } && { | |
1693 | test -z "$ac_c_werror_flag" || | |
1694 | test ! -s conftest.err | |
1695 | } && test -s conftest.$ac_objext; then : | |
1696 | ac_retval=0 | |
1697 | else | |
1698 | $as_echo "$as_me: failed program was:" >&5 | |
1699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1700 | |
7083c021 AC |
1701 | ac_retval=1 |
1702 | fi | |
b6d0720c | 1703 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1704 | as_fn_set_status $ac_retval |
7083c021 AC |
1705 | |
1706 | } # ac_fn_c_try_compile | |
1707 | ||
c52df125 AC |
1708 | # ac_fn_c_try_link LINENO |
1709 | # ----------------------- | |
1710 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1711 | ac_fn_c_try_link () | |
212380e3 | 1712 | { |
7083c021 | 1713 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
c52df125 AC |
1714 | rm -f conftest.$ac_objext conftest$ac_exeext |
1715 | if { { ac_try="$ac_link" | |
7083c021 AC |
1716 | case "(($ac_try" in |
1717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1718 | *) ac_try_echo=$ac_try;; | |
1719 | esac | |
1720 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1721 | $as_echo "$ac_try_echo"; } >&5 | |
c52df125 | 1722 | (eval "$ac_link") 2>conftest.err |
7083c021 AC |
1723 | ac_status=$? |
1724 | if test -s conftest.err; then | |
1725 | grep -v '^ *+' conftest.err >conftest.er1 | |
1726 | cat conftest.er1 >&5 | |
1727 | mv -f conftest.er1 conftest.err | |
1728 | fi | |
1729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c52df125 AC |
1730 | test $ac_status = 0; } && { |
1731 | test -z "$ac_c_werror_flag" || | |
7083c021 | 1732 | test ! -s conftest.err |
c52df125 AC |
1733 | } && test -s conftest$ac_exeext && { |
1734 | test "$cross_compiling" = yes || | |
1735 | test -x conftest$ac_exeext | |
7083c021 AC |
1736 | }; then : |
1737 | ac_retval=0 | |
1738 | else | |
1739 | $as_echo "$as_me: failed program was:" >&5 | |
1740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1741 | |
c52df125 | 1742 | ac_retval=1 |
7083c021 | 1743 | fi |
c52df125 AC |
1744 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1745 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1746 | # interfere with the next link command; also delete a directory that is | |
1747 | # left behind by Apple's compiler. We do this before executing the actions. | |
1748 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1749 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1750 | as_fn_set_status $ac_retval |
212380e3 | 1751 | |
c52df125 | 1752 | } # ac_fn_c_try_link |
212380e3 | 1753 | |
c52df125 | 1754 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
7083c021 | 1755 | # ------------------------------------------------------- |
c52df125 AC |
1756 | # Tests whether HEADER exists and can be compiled using the include files in |
1757 | # INCLUDES, setting the cache variable VAR accordingly. | |
1758 | ac_fn_c_check_header_compile () | |
7083c021 AC |
1759 | { |
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7083c021 AC |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1762 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1763 | if eval \${$3+:} false; then : |
7083c021 | 1764 | $as_echo_n "(cached) " >&6 |
7083c021 | 1765 | else |
c52df125 | 1766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 AC |
1767 | /* end confdefs.h. */ |
1768 | $4 | |
1769 | #include <$2> | |
1770 | _ACEOF | |
1771 | if ac_fn_c_try_compile "$LINENO"; then : | |
c52df125 | 1772 | eval "$3=yes" |
7083c021 | 1773 | else |
c52df125 | 1774 | eval "$3=no" |
7083c021 AC |
1775 | fi |
1776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7083c021 AC |
1777 | fi |
1778 | eval ac_res=\$$3 | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1780 | $as_echo "$ac_res" >&6; } | |
c52df125 AC |
1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1782 | ||
1783 | } # ac_fn_c_check_header_compile | |
1784 | ||
1785 | # ac_fn_c_try_cpp LINENO | |
1786 | # ---------------------- | |
1787 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1788 | ac_fn_c_try_cpp () | |
1789 | { | |
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1791 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1792 | case "(($ac_try" in | |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1799 | ac_status=$? | |
1800 | if test -s conftest.err; then | |
1801 | grep -v '^ *+' conftest.err >conftest.er1 | |
1802 | cat conftest.er1 >&5 | |
1803 | mv -f conftest.er1 conftest.err | |
1804 | fi | |
1805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1806 | test $ac_status = 0; } > conftest.i && { | |
1807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1808 | test ! -s conftest.err | |
1809 | }; then : | |
1810 | ac_retval=0 | |
1811 | else | |
1812 | $as_echo "$as_me: failed program was:" >&5 | |
1813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1814 | ||
1815 | ac_retval=1 | |
7083c021 | 1816 | fi |
b6d0720c | 1817 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c52df125 | 1818 | as_fn_set_status $ac_retval |
212380e3 | 1819 | |
c52df125 | 1820 | } # ac_fn_c_try_cpp |
212380e3 | 1821 | |
7083c021 AC |
1822 | # ac_fn_c_try_run LINENO |
1823 | # ---------------------- | |
1824 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1825 | # that executables *can* be run. | |
1826 | ac_fn_c_try_run () | |
1827 | { | |
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1829 | if { { ac_try="$ac_link" | |
1830 | case "(($ac_try" in | |
1831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1832 | *) ac_try_echo=$ac_try;; | |
1833 | esac | |
1834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1835 | $as_echo "$ac_try_echo"; } >&5 | |
1836 | (eval "$ac_link") 2>&5 | |
1837 | ac_status=$? | |
1838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1839 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1840 | { { case "(($ac_try" in | |
1841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1842 | *) ac_try_echo=$ac_try;; | |
1843 | esac | |
1844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1845 | $as_echo "$ac_try_echo"; } >&5 | |
1846 | (eval "$ac_try") 2>&5 | |
1847 | ac_status=$? | |
1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1849 | test $ac_status = 0; }; }; then : | |
1850 | ac_retval=0 | |
1851 | else | |
1852 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1853 | $as_echo "$as_me: failed program was:" >&5 | |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1855 | |
7083c021 AC |
1856 | ac_retval=$ac_status |
1857 | fi | |
1858 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1859 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1860 | as_fn_set_status $ac_retval |
212380e3 | 1861 | |
7083c021 | 1862 | } # ac_fn_c_try_run |
212380e3 | 1863 | |
c52df125 AC |
1864 | # ac_fn_c_check_func LINENO FUNC VAR |
1865 | # ---------------------------------- | |
1866 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1867 | ac_fn_c_check_func () | |
7083c021 AC |
1868 | { |
1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1871 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1872 | if eval \${$3+:} false; then : |
7083c021 AC |
1873 | $as_echo_n "(cached) " >&6 |
1874 | else | |
1875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1876 | /* end confdefs.h. */ | |
c52df125 AC |
1877 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1879 | #define $2 innocuous_$2 | |
1880 | ||
1881 | /* System header to define __stub macros and hopefully few prototypes, | |
1882 | which can conflict with char $2 (); below. | |
1883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1884 | <limits.h> exists even on freestanding compilers. */ | |
1885 | ||
1886 | #ifdef __STDC__ | |
1887 | # include <limits.h> | |
1888 | #else | |
1889 | # include <assert.h> | |
1890 | #endif | |
1891 | ||
1892 | #undef $2 | |
1893 | ||
1894 | /* Override any GCC internal prototype to avoid an error. | |
1895 | Use char because int might match the return type of a GCC | |
1896 | builtin and then its argument prototype would still apply. */ | |
1897 | #ifdef __cplusplus | |
1898 | extern "C" | |
1899 | #endif | |
1900 | char $2 (); | |
1901 | /* The GNU C library defines this for functions which it implements | |
1902 | to always fail with ENOSYS. Some functions are actually named | |
1903 | something starting with __ and the normal name is an alias. */ | |
1904 | #if defined __stub_$2 || defined __stub___$2 | |
1905 | choke me | |
1906 | #endif | |
1907 | ||
1908 | int | |
1909 | main () | |
1910 | { | |
1911 | return $2 (); | |
1912 | ; | |
1913 | return 0; | |
1914 | } | |
1915 | _ACEOF | |
1916 | if ac_fn_c_try_link "$LINENO"; then : | |
1917 | eval "$3=yes" | |
1918 | else | |
1919 | eval "$3=no" | |
1920 | fi | |
1921 | rm -f core conftest.err conftest.$ac_objext \ | |
1922 | conftest$ac_exeext conftest.$ac_ext | |
1923 | fi | |
1924 | eval ac_res=\$$3 | |
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1926 | $as_echo "$ac_res" >&6; } | |
1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1928 | ||
1929 | } # ac_fn_c_check_func | |
1930 | ||
1931 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1932 | # --------------------------------------------- | |
1933 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1934 | # accordingly. | |
1935 | ac_fn_c_check_decl () | |
1936 | { | |
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1938 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1939 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1941 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1942 | if eval \${$3+:} false; then : | |
1943 | $as_echo_n "(cached) " >&6 | |
1944 | else | |
1945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1946 | /* end confdefs.h. */ | |
7083c021 | 1947 | $4 |
c52df125 AC |
1948 | int |
1949 | main () | |
1950 | { | |
1951 | #ifndef $as_decl_name | |
1952 | #ifdef __cplusplus | |
1953 | (void) $as_decl_use; | |
1954 | #else | |
1955 | (void) $as_decl_name; | |
1956 | #endif | |
1957 | #endif | |
1958 | ||
1959 | ; | |
1960 | return 0; | |
1961 | } | |
212380e3 | 1962 | _ACEOF |
7083c021 AC |
1963 | if ac_fn_c_try_compile "$LINENO"; then : |
1964 | eval "$3=yes" | |
1965 | else | |
1966 | eval "$3=no" | |
1967 | fi | |
1968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1969 | fi | |
1970 | eval ac_res=\$$3 | |
1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1972 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1973 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1974 | |
c52df125 | 1975 | } # ac_fn_c_check_decl |
212380e3 | 1976 | |
c52df125 AC |
1977 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1978 | # ------------------------------------------- | |
1979 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1980 | # variable VAR accordingly. | |
1981 | ac_fn_c_check_type () | |
7083c021 AC |
1982 | { |
1983 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1985 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1986 | if eval \${$3+:} false; then : |
7083c021 | 1987 | $as_echo_n "(cached) " >&6 |
212380e3 | 1988 | else |
7083c021 AC |
1989 | eval "$3=no" |
1990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1991 | /* end confdefs.h. */ | |
1992 | $4 | |
1993 | int | |
1994 | main () | |
1995 | { | |
1996 | if (sizeof ($2)) | |
1997 | return 0; | |
1998 | ; | |
1999 | return 0; | |
2000 | } | |
212380e3 | 2001 | _ACEOF |
7083c021 AC |
2002 | if ac_fn_c_try_compile "$LINENO"; then : |
2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2004 | /* end confdefs.h. */ |
7083c021 | 2005 | $4 |
212380e3 AC |
2006 | int |
2007 | main () | |
2008 | { | |
7083c021 AC |
2009 | if (sizeof (($2))) |
2010 | return 0; | |
212380e3 AC |
2011 | ; |
2012 | return 0; | |
2013 | } | |
2014 | _ACEOF | |
7083c021 | 2015 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 2016 | |
631ef239 | 2017 | else |
7083c021 | 2018 | eval "$3=yes" |
212380e3 | 2019 | fi |
7083c021 | 2020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2021 | fi |
7083c021 | 2022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2023 | fi |
7083c021 AC |
2024 | eval ac_res=\$$3 |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2026 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2028 | |
7083c021 AC |
2029 | } # ac_fn_c_check_type |
2030 | ||
c52df125 AC |
2031 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
2032 | # ------------------------------------------------------- | |
2033 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2034 | # the include files in INCLUDES and setting the cache variable VAR | |
2035 | # accordingly. | |
2036 | ac_fn_c_check_header_mongrel () | |
2037 | { | |
2038 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2039 | if eval \${$3+:} false; then : | |
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2041 | $as_echo_n "checking for $2... " >&6; } | |
2042 | if eval \${$3+:} false; then : | |
2043 | $as_echo_n "(cached) " >&6 | |
2044 | fi | |
2045 | eval ac_res=\$$3 | |
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2047 | $as_echo "$ac_res" >&6; } | |
2048 | else | |
2049 | # Is the header compilable? | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2051 | $as_echo_n "checking $2 usability... " >&6; } | |
2052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2053 | /* end confdefs.h. */ | |
2054 | $4 | |
2055 | #include <$2> | |
2056 | _ACEOF | |
2057 | if ac_fn_c_try_compile "$LINENO"; then : | |
2058 | ac_header_compiler=yes | |
2059 | else | |
2060 | ac_header_compiler=no | |
2061 | fi | |
2062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2064 | $as_echo "$ac_header_compiler" >&6; } | |
2065 | ||
2066 | # Is the header present? | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2068 | $as_echo_n "checking $2 presence... " >&6; } | |
2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2070 | /* end confdefs.h. */ | |
2071 | #include <$2> | |
2072 | _ACEOF | |
2073 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2074 | ac_header_preproc=yes | |
2075 | else | |
2076 | ac_header_preproc=no | |
2077 | fi | |
2078 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2080 | $as_echo "$ac_header_preproc" >&6; } | |
2081 | ||
2082 | # So? What about this header? | |
2083 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2084 | yes:no: ) | |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2086 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2088 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2089 | ;; | |
2090 | no:yes:* ) | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2092 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2094 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2096 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2098 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2100 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2101 | ;; | |
2102 | esac | |
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2104 | $as_echo_n "checking for $2... " >&6; } | |
2105 | if eval \${$3+:} false; then : | |
2106 | $as_echo_n "(cached) " >&6 | |
2107 | else | |
2108 | eval "$3=\$ac_header_compiler" | |
2109 | fi | |
2110 | eval ac_res=\$$3 | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2112 | $as_echo "$ac_res" >&6; } | |
2113 | fi | |
2114 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2115 | ||
2116 | } # ac_fn_c_check_header_mongrel | |
2117 | ||
7083c021 AC |
2118 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2119 | # -------------------------------------------- | |
2120 | # Tries to find the compile-time value of EXPR in a program that includes | |
2121 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2122 | # computed | |
2123 | ac_fn_c_compute_int () | |
2124 | { | |
2125 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2126 | if test "$cross_compiling" = yes; then | |
2127 | # Depending upon the size, compute the lo and hi bounds. | |
2128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2129 | /* end confdefs.h. */ | |
2130 | $4 | |
2131 | int | |
2132 | main () | |
2133 | { | |
2134 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
2135 | test_array [0] = 0; |
2136 | return test_array [0]; | |
7083c021 AC |
2137 | |
2138 | ; | |
2139 | return 0; | |
2140 | } | |
212380e3 | 2141 | _ACEOF |
7083c021 AC |
2142 | if ac_fn_c_try_compile "$LINENO"; then : |
2143 | ac_lo=0 ac_mid=0 | |
2144 | while :; do | |
2145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2146 | /* end confdefs.h. */ |
7083c021 AC |
2147 | $4 |
2148 | int | |
2149 | main () | |
2150 | { | |
2151 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2152 | test_array [0] = 0; |
2153 | return test_array [0]; | |
212380e3 | 2154 | |
7083c021 AC |
2155 | ; |
2156 | return 0; | |
2157 | } | |
212380e3 | 2158 | _ACEOF |
7083c021 AC |
2159 | if ac_fn_c_try_compile "$LINENO"; then : |
2160 | ac_hi=$ac_mid; break | |
212380e3 | 2161 | else |
7083c021 AC |
2162 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2163 | if test $ac_lo -le $ac_mid; then | |
2164 | ac_lo= ac_hi= | |
2165 | break | |
2166 | fi | |
2167 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 2168 | fi |
631ef239 | 2169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
2170 | done |
2171 | else | |
2172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2173 | /* end confdefs.h. */ | |
2174 | $4 | |
2175 | int | |
2176 | main () | |
2177 | { | |
2178 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
2179 | test_array [0] = 0; |
2180 | return test_array [0]; | |
212380e3 | 2181 | |
7083c021 AC |
2182 | ; |
2183 | return 0; | |
2184 | } | |
212380e3 | 2185 | _ACEOF |
7083c021 AC |
2186 | if ac_fn_c_try_compile "$LINENO"; then : |
2187 | ac_hi=-1 ac_mid=-1 | |
2188 | while :; do | |
2189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2190 | /* end confdefs.h. */ | |
2191 | $4 | |
2192 | int | |
2193 | main () | |
2194 | { | |
2195 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
2196 | test_array [0] = 0; |
2197 | return test_array [0]; | |
212380e3 | 2198 | |
7083c021 AC |
2199 | ; |
2200 | return 0; | |
2201 | } | |
2202 | _ACEOF | |
2203 | if ac_fn_c_try_compile "$LINENO"; then : | |
2204 | ac_lo=$ac_mid; break | |
2205 | else | |
2206 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2207 | if test $ac_mid -le $ac_hi; then | |
2208 | ac_lo= ac_hi= | |
2209 | break | |
2210 | fi | |
2211 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 2212 | fi |
7083c021 AC |
2213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2214 | done | |
212380e3 | 2215 | else |
7083c021 AC |
2216 | ac_lo= ac_hi= |
2217 | fi | |
2218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2219 | fi | |
2220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2221 | # Binary search between lo and hi bounds. | |
2222 | while test "x$ac_lo" != "x$ac_hi"; do | |
2223 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2225 | /* end confdefs.h. */ |
7083c021 AC |
2226 | $4 |
2227 | int | |
2228 | main () | |
2229 | { | |
2230 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2231 | test_array [0] = 0; |
2232 | return test_array [0]; | |
7083c021 AC |
2233 | |
2234 | ; | |
2235 | return 0; | |
2236 | } | |
212380e3 | 2237 | _ACEOF |
7083c021 AC |
2238 | if ac_fn_c_try_compile "$LINENO"; then : |
2239 | ac_hi=$ac_mid | |
212380e3 | 2240 | else |
7083c021 | 2241 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 2242 | fi |
7083c021 AC |
2243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2244 | done | |
2245 | case $ac_lo in #(( | |
2246 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2247 | '') ac_retval=1 ;; | |
2248 | esac | |
2249 | else | |
2250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2251 | /* end confdefs.h. */ | |
2252 | $4 | |
2253 | static long int longval () { return $2; } | |
2254 | static unsigned long int ulongval () { return $2; } | |
2255 | #include <stdio.h> | |
2256 | #include <stdlib.h> | |
2257 | int | |
2258 | main () | |
2259 | { | |
631ef239 | 2260 | |
7083c021 AC |
2261 | FILE *f = fopen ("conftest.val", "w"); |
2262 | if (! f) | |
2263 | return 1; | |
2264 | if (($2) < 0) | |
2265 | { | |
2266 | long int i = longval (); | |
2267 | if (i != ($2)) | |
2268 | return 1; | |
2269 | fprintf (f, "%ld", i); | |
2270 | } | |
2271 | else | |
2272 | { | |
2273 | unsigned long int i = ulongval (); | |
2274 | if (i != ($2)) | |
2275 | return 1; | |
2276 | fprintf (f, "%lu", i); | |
2277 | } | |
2278 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2279 | on some platforms. */ | |
2280 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2281 | |
7083c021 AC |
2282 | ; |
2283 | return 0; | |
2284 | } | |
212380e3 | 2285 | _ACEOF |
7083c021 AC |
2286 | if ac_fn_c_try_run "$LINENO"; then : |
2287 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2288 | else |
7083c021 | 2289 | ac_retval=1 |
212380e3 | 2290 | fi |
7083c021 AC |
2291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2292 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2293 | rm -f conftest.val | |
631ef239 | 2294 | |
7083c021 | 2295 | fi |
b6d0720c | 2296 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2297 | as_fn_set_status $ac_retval |
212380e3 | 2298 | |
7083c021 | 2299 | } # ac_fn_c_compute_int |
7083c021 AC |
2300 | cat >config.log <<_ACEOF |
2301 | This file contains any messages produced by compilers while | |
2302 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2303 | |
c52df125 | 2304 | It was created by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 2305 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2306 | |
7083c021 | 2307 | $ $0 $@ |
212380e3 | 2308 | |
7083c021 AC |
2309 | _ACEOF |
2310 | exec 5>>config.log | |
2311 | { | |
2312 | cat <<_ASUNAME | |
2313 | ## --------- ## | |
2314 | ## Platform. ## | |
2315 | ## --------- ## | |
2316 | ||
2317 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2318 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2319 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2320 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2321 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2322 | ||
2323 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2324 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2325 | ||
2326 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2327 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2328 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2329 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2330 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2331 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2332 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2333 | ||
2334 | _ASUNAME | |
212380e3 | 2335 | |
631ef239 | 2336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2337 | for as_dir in $PATH |
631ef239 AC |
2338 | do |
2339 | IFS=$as_save_IFS | |
2340 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2341 | $as_echo "PATH: $as_dir" |
631ef239 | 2342 | done |
631ef239 AC |
2343 | IFS=$as_save_IFS |
2344 | ||
7083c021 | 2345 | } >&5 |
631ef239 | 2346 | |
7083c021 | 2347 | cat >&5 <<_ACEOF |
631ef239 | 2348 | |
631ef239 | 2349 | |
7083c021 AC |
2350 | ## ----------- ## |
2351 | ## Core tests. ## | |
2352 | ## ----------- ## | |
631ef239 | 2353 | |
7083c021 | 2354 | _ACEOF |
631ef239 AC |
2355 | |
2356 | ||
7083c021 AC |
2357 | # Keep a trace of the command line. |
2358 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2359 | # Strip out --silent because we don't want to record it for future runs. | |
2360 | # Also quote any args containing shell meta-characters. | |
2361 | # Make two passes to allow for proper duplicate-argument suppression. | |
2362 | ac_configure_args= | |
2363 | ac_configure_args0= | |
2364 | ac_configure_args1= | |
2365 | ac_must_keep_next=false | |
2366 | for ac_pass in 1 2 | |
631ef239 | 2367 | do |
7083c021 | 2368 | for ac_arg |
631ef239 | 2369 | do |
7083c021 AC |
2370 | case $ac_arg in |
2371 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2372 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2373 | | -silent | --silent | --silen | --sile | --sil) | |
2374 | continue ;; | |
2375 | *\'*) | |
2376 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2377 | esac | |
2378 | case $ac_pass in | |
2379 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2380 | 2) | |
2381 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2382 | if test $ac_must_keep_next = true; then | |
2383 | ac_must_keep_next=false # Got value, back to normal. | |
2384 | else | |
2385 | case $ac_arg in | |
2386 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2387 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2388 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2389 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2390 | case "$ac_configure_args0 " in | |
2391 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2392 | esac | |
2393 | ;; | |
2394 | -* ) ac_must_keep_next=true ;; | |
2395 | esac | |
2396 | fi | |
2397 | as_fn_append ac_configure_args " '$ac_arg'" | |
2398 | ;; | |
2399 | esac | |
631ef239 AC |
2400 | done |
2401 | done | |
7083c021 AC |
2402 | { ac_configure_args0=; unset ac_configure_args0;} |
2403 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2404 | |
7083c021 AC |
2405 | # When interrupted or exit'd, cleanup temporary files, and complete |
2406 | # config.log. We remove comments because anyway the quotes in there | |
2407 | # would cause problems or look ugly. | |
2408 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2409 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2410 | trap 'exit_status=$? | |
2411 | # Save into config.log some information that might help in debugging. | |
2412 | { | |
2413 | echo | |
631ef239 | 2414 | |
b6d0720c | 2415 | $as_echo "## ---------------- ## |
7083c021 | 2416 | ## Cache variables. ## |
b6d0720c | 2417 | ## ---------------- ##" |
7083c021 AC |
2418 | echo |
2419 | # The following way of writing the cache mishandles newlines in values, | |
2420 | ( | |
2421 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2422 | eval ac_val=\$$ac_var | |
2423 | case $ac_val in #( | |
2424 | *${as_nl}*) | |
2425 | case $ac_var in #( | |
2426 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2427 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2428 | esac | |
2429 | case $ac_var in #( | |
2430 | _ | IFS | as_nl) ;; #( | |
2431 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2432 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2433 | esac ;; | |
2434 | esac | |
2435 | done | |
2436 | (set) 2>&1 | | |
2437 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2438 | *${as_nl}ac_space=\ *) | |
2439 | sed -n \ | |
2440 | "s/'\''/'\''\\\\'\'''\''/g; | |
2441 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2442 | ;; #( | |
2443 | *) | |
2444 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2445 | ;; | |
2446 | esac | | |
2447 | sort | |
2448 | ) | |
2449 | echo | |
631ef239 | 2450 | |
b6d0720c | 2451 | $as_echo "## ----------------- ## |
7083c021 | 2452 | ## Output variables. ## |
b6d0720c | 2453 | ## ----------------- ##" |
7083c021 AC |
2454 | echo |
2455 | for ac_var in $ac_subst_vars | |
2456 | do | |
2457 | eval ac_val=\$$ac_var | |
2458 | case $ac_val in | |
2459 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2460 | esac | |
2461 | $as_echo "$ac_var='\''$ac_val'\''" | |
2462 | done | sort | |
2463 | echo | |
631ef239 | 2464 | |
7083c021 | 2465 | if test -n "$ac_subst_files"; then |
b6d0720c | 2466 | $as_echo "## ------------------- ## |
7083c021 | 2467 | ## File substitutions. ## |
b6d0720c | 2468 | ## ------------------- ##" |
7083c021 AC |
2469 | echo |
2470 | for ac_var in $ac_subst_files | |
2471 | do | |
2472 | eval ac_val=\$$ac_var | |
2473 | case $ac_val in | |
2474 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2475 | esac | |
2476 | $as_echo "$ac_var='\''$ac_val'\''" | |
2477 | done | sort | |
2478 | echo | |
2479 | fi | |
631ef239 | 2480 | |
7083c021 | 2481 | if test -s confdefs.h; then |
b6d0720c | 2482 | $as_echo "## ----------- ## |
7083c021 | 2483 | ## confdefs.h. ## |
b6d0720c | 2484 | ## ----------- ##" |
7083c021 AC |
2485 | echo |
2486 | cat confdefs.h | |
2487 | echo | |
2488 | fi | |
2489 | test "$ac_signal" != 0 && | |
2490 | $as_echo "$as_me: caught signal $ac_signal" | |
2491 | $as_echo "$as_me: exit $exit_status" | |
2492 | } >&5 | |
2493 | rm -f core *.core core.conftest.* && | |
2494 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2495 | exit $exit_status | |
2496 | ' 0 | |
2497 | for ac_signal in 1 2 13 15; do | |
2498 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2499 | done | |
2500 | ac_signal=0 | |
631ef239 | 2501 | |
7083c021 AC |
2502 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2503 | rm -f -r conftest* confdefs.h | |
631ef239 | 2504 | |
7083c021 | 2505 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2506 | |
7083c021 | 2507 | # Predefined preprocessor variables. |
212380e3 | 2508 | |
7083c021 AC |
2509 | cat >>confdefs.h <<_ACEOF |
2510 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2511 | _ACEOF |
212380e3 | 2512 | |
7083c021 AC |
2513 | cat >>confdefs.h <<_ACEOF |
2514 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2515 | _ACEOF |
212380e3 | 2516 | |
7083c021 AC |
2517 | cat >>confdefs.h <<_ACEOF |
2518 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2519 | _ACEOF |
212380e3 | 2520 | |
7083c021 AC |
2521 | cat >>confdefs.h <<_ACEOF |
2522 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2523 | _ACEOF | |
212380e3 | 2524 | |
7083c021 AC |
2525 | cat >>confdefs.h <<_ACEOF |
2526 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2527 | _ACEOF | |
212380e3 | 2528 | |
7083c021 AC |
2529 | cat >>confdefs.h <<_ACEOF |
2530 | #define PACKAGE_URL "$PACKAGE_URL" | |
2531 | _ACEOF | |
212380e3 | 2532 | |
631ef239 | 2533 | |
7083c021 AC |
2534 | # Let the site file select an alternate cache file if it wants to. |
2535 | # Prefer an explicitly selected file to automatically selected ones. | |
2536 | ac_site_file1=NONE | |
2537 | ac_site_file2=NONE | |
2538 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2539 | # We do not want a PATH search for config.site. |
2540 | case $CONFIG_SITE in #(( | |
2541 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2542 | */*) ac_site_file1=$CONFIG_SITE;; | |
2543 | *) ac_site_file1=./$CONFIG_SITE;; | |
2544 | esac | |
7083c021 AC |
2545 | elif test "x$prefix" != xNONE; then |
2546 | ac_site_file1=$prefix/share/config.site | |
2547 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2548 | else |
7083c021 AC |
2549 | ac_site_file1=$ac_default_prefix/share/config.site |
2550 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2551 | fi | |
2552 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2553 | do |
7083c021 | 2554 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2555 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2557 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2558 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2559 | . "$ac_site_file" \ |
2560 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2561 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2562 | as_fn_error $? "failed to load site script $ac_site_file | |
2563 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2564 | fi |
2565 | done | |
212380e3 | 2566 | |
7083c021 | 2567 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2568 | # Some versions of bash will fail to source /dev/null (special files |
2569 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2570 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2572 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2573 | case $cache_file in | |
2574 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2575 | *) . "./$cache_file";; | |
2576 | esac | |
2577 | fi | |
212380e3 | 2578 | else |
7083c021 AC |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2580 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2581 | >$cache_file | |
212380e3 AC |
2582 | fi |
2583 | ||
7083c021 AC |
2584 | # Check that the precious variables saved in the cache have kept the same |
2585 | # value. | |
2586 | ac_cache_corrupted=false | |
2587 | for ac_var in $ac_precious_vars; do | |
2588 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2589 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2590 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2591 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2592 | case $ac_old_set,$ac_new_set in | |
2593 | set,) | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2595 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2596 | ac_cache_corrupted=: ;; | |
2597 | ,set) | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2599 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2600 | ac_cache_corrupted=: ;; | |
2601 | ,);; | |
2602 | *) | |
2603 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2604 | # differences in whitespace do not lead to failure. | |
2605 | ac_old_val_w=`echo x $ac_old_val` | |
2606 | ac_new_val_w=`echo x $ac_new_val` | |
2607 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2609 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2610 | ac_cache_corrupted=: | |
2611 | else | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2613 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2614 | eval $ac_var=\$ac_old_val | |
2615 | fi | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2617 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2619 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2620 | fi;; | |
2621 | esac | |
2622 | # Pass precious variables to config.status. | |
2623 | if test "$ac_new_set" = set; then | |
2624 | case $ac_new_val in | |
2625 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2626 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2627 | esac | |
2628 | case " $ac_configure_args " in | |
2629 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2630 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2631 | esac | |
212380e3 AC |
2632 | fi |
2633 | done | |
7083c021 AC |
2634 | if $ac_cache_corrupted; then |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2638 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2639 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2640 | fi |
7083c021 AC |
2641 | ## -------------------- ## |
2642 | ## Main body of script. ## | |
2643 | ## -------------------- ## | |
212380e3 | 2644 | |
7083c021 AC |
2645 | ac_ext=c |
2646 | ac_cpp='$CPP $CPPFLAGS' | |
2647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2650 | |
212380e3 | 2651 | |
212380e3 | 2652 | |
a5471f24 | 2653 | |
212380e3 | 2654 | |
c52df125 | 2655 | ac_config_headers="$ac_config_headers include/setup.h" |
212380e3 | 2656 | |
631ef239 | 2657 | |
c52df125 AC |
2658 | ac_aux_dir= |
2659 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
2660 | if test -f "$ac_dir/install-sh"; then | |
2661 | ac_aux_dir=$ac_dir | |
2662 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2663 | break | |
2664 | elif test -f "$ac_dir/install.sh"; then | |
2665 | ac_aux_dir=$ac_dir | |
2666 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2667 | break | |
2668 | elif test -f "$ac_dir/shtool"; then | |
2669 | ac_aux_dir=$ac_dir | |
2670 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2671 | break | |
212380e3 AC |
2672 | fi |
2673 | done | |
c52df125 AC |
2674 | if test -z "$ac_aux_dir"; then |
2675 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
212380e3 AC |
2676 | fi |
2677 | ||
c52df125 AC |
2678 | # These three variables are undocumented and unsupported, |
2679 | # and are intended to be withdrawn in a future Autoconf release. | |
2680 | # They can cause serious problems if a builder's source tree is in a directory | |
2681 | # whose full name contains unusual characters. | |
2682 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2683 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2684 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
631ef239 | 2685 | |
c52df125 AC |
2686 | |
2687 | ||
2688 | am__api_version='1.15' | |
2689 | ||
2690 | # Find a good install program. We prefer a C program (faster), | |
2691 | # so one script is as good as another. But avoid the broken or | |
2692 | # incompatible versions: | |
2693 | # SysV /etc/install, /usr/sbin/install | |
2694 | # SunOS /usr/etc/install | |
2695 | # IRIX /sbin/install | |
2696 | # AIX /bin/install | |
2697 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2698 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2699 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2700 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2701 | # OS/2's system install, which has a completely different semantic | |
2702 | # ./install, which can be erroneously created by make from ./install.sh. | |
2703 | # Reject install programs that cannot install multiple files. | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2705 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2706 | if test -z "$INSTALL"; then | |
2707 | if ${ac_cv_path_install+:} false; then : | |
7083c021 | 2708 | $as_echo_n "(cached) " >&6 |
212380e3 | 2709 | else |
c52df125 | 2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2711 | for as_dir in $PATH |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
c52df125 AC |
2715 | # Account for people who put trailing slashes in PATH elements. |
2716 | case $as_dir/ in #(( | |
2717 | ./ | .// | /[cC]/* | \ | |
2718 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2719 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2720 | /usr/ucb/* ) ;; | |
2721 | *) | |
2722 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2723 | # Don't use installbsd from OSF since it installs stuff as root | |
2724 | # by default. | |
2725 | for ac_prog in ginstall scoinst install; do | |
2726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2727 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2728 | if test $ac_prog = install && | |
2729 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2730 | # AIX install. It has an incompatible calling convention. | |
2731 | : | |
2732 | elif test $ac_prog = install && | |
2733 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2734 | # program-specific install script used by HP pwplus--don't use. | |
2735 | : | |
2736 | else | |
2737 | rm -rf conftest.one conftest.two conftest.dir | |
2738 | echo one > conftest.one | |
2739 | echo two > conftest.two | |
2740 | mkdir conftest.dir | |
2741 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2742 | test -s conftest.one && test -s conftest.two && | |
2743 | test -s conftest.dir/conftest.one && | |
2744 | test -s conftest.dir/conftest.two | |
2745 | then | |
2746 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2747 | break 3 | |
2748 | fi | |
2749 | fi | |
2750 | fi | |
2751 | done | |
2752 | done | |
2753 | ;; | |
2754 | esac | |
2755 | ||
7083c021 | 2756 | done |
631ef239 | 2757 | IFS=$as_save_IFS |
212380e3 | 2758 | |
c52df125 AC |
2759 | rm -rf conftest.one conftest.two conftest.dir |
2760 | ||
212380e3 | 2761 | fi |
c52df125 AC |
2762 | if test "${ac_cv_path_install+set}" = set; then |
2763 | INSTALL=$ac_cv_path_install | |
2764 | else | |
2765 | # As a last resort, use the slow shell script. Don't cache a | |
2766 | # value for INSTALL within a source directory, because that will | |
2767 | # break other packages using the cache if that directory is | |
2768 | # removed, or if the value is a relative name. | |
2769 | INSTALL=$ac_install_sh | |
2770 | fi | |
7083c021 | 2771 | fi |
c52df125 AC |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2773 | $as_echo "$INSTALL" >&6; } | |
212380e3 | 2774 | |
c52df125 AC |
2775 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2776 | # It thinks the first close brace ends the variable substitution. | |
2777 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2778 | ||
2779 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2780 | ||
2781 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2782 | ||
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2784 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2785 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2786 | # name. Accept space and tab only in the latter. | |
2787 | am_lf=' | |
2788 | ' | |
2789 | case `pwd` in | |
2790 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2791 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
7083c021 | 2792 | esac |
c52df125 AC |
2793 | case $srcdir in |
2794 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2795 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2796 | esac | |
2797 | ||
2798 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2799 | # arguments. Must try -L first in case configure is actually a | |
2800 | # symlink; some systems play weird games with the mod time of symlinks | |
2801 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2802 | # directory). | |
2803 | if ( | |
2804 | am_has_slept=no | |
2805 | for am_try in 1 2; do | |
2806 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2807 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2808 | if test "$*" = "X"; then | |
2809 | # -L didn't work. | |
2810 | set X `ls -t "$srcdir/configure" conftest.file` | |
2811 | fi | |
2812 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2813 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2814 | ||
2815 | # If neither matched, then we have a broken ls. This can happen | |
2816 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2817 | # broken ls alias from the environment. This has actually | |
2818 | # happened. Such a system could not be considered "sane". | |
2819 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2820 | alias in your environment" "$LINENO" 5 | |
2821 | fi | |
2822 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2823 | break | |
2824 | fi | |
2825 | # Just in case. | |
2826 | sleep 1 | |
2827 | am_has_slept=yes | |
2828 | done | |
2829 | test "$2" = conftest.file | |
2830 | ) | |
2831 | then | |
2832 | # Ok. | |
2833 | : | |
7083c021 | 2834 | else |
c52df125 AC |
2835 | as_fn_error $? "newly created file is older than distributed files! |
2836 | Check your system clock" "$LINENO" 5 | |
2837 | fi | |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2839 | $as_echo "yes" >&6; } | |
2840 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2841 | # generated files are strictly newer. | |
2842 | am_sleep_pid= | |
2843 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2844 | ( sleep 1 ) & | |
2845 | am_sleep_pid=$! | |
2846 | fi | |
2847 | ||
2848 | rm -f conftest.file | |
2849 | ||
2850 | test "$program_prefix" != NONE && | |
2851 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2852 | # Use a double $ so make ignores it. | |
2853 | test "$program_suffix" != NONE && | |
2854 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2855 | # Double any \ or $. | |
2856 | # By default was `s,x,x', remove it if useless. | |
2857 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2858 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2859 | ||
2860 | # Expand $ac_aux_dir to an absolute path. | |
2861 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2862 | ||
2863 | if test x"${MISSING+set}" != xset; then | |
2864 | case $am_aux_dir in | |
2865 | *\ * | *\ *) | |
2866 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2867 | *) | |
2868 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2869 | esac | |
2870 | fi | |
2871 | # Use eval to expand $SHELL | |
2872 | if eval "$MISSING --is-lightweight"; then | |
2873 | am_missing_run="$MISSING " | |
2874 | else | |
2875 | am_missing_run= | |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2877 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
7083c021 | 2878 | fi |
631ef239 | 2879 | |
c52df125 AC |
2880 | if test x"${install_sh+set}" != xset; then |
2881 | case $am_aux_dir in | |
2882 | *\ * | *\ *) | |
2883 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2884 | *) | |
2885 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2886 | esac | |
2887 | fi | |
2888 | ||
2889 | # Installed binaries are usually stripped using 'strip' when the user | |
2890 | # run "make install-strip". However 'strip' might not be the right | |
2891 | # tool to use in cross-compilation environments, therefore Automake | |
2892 | # will honor the 'STRIP' environment variable to overrule this program. | |
2893 | if test "$cross_compiling" != no; then | |
2894 | if test -n "$ac_tool_prefix"; then | |
2895 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2896 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7083c021 AC |
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2898 | $as_echo_n "checking for $ac_word... " >&6; } | |
c52df125 | 2899 | if ${ac_cv_prog_STRIP+:} false; then : |
7083c021 | 2900 | $as_echo_n "(cached) " >&6 |
212380e3 | 2901 | else |
c52df125 AC |
2902 | if test -n "$STRIP"; then |
2903 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7083c021 AC |
2904 | else |
2905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2906 | for as_dir in $PATH |
2907 | do | |
2908 | IFS=$as_save_IFS | |
2909 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2910 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c52df125 | 2912 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7083c021 | 2913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2914 | break 2 |
2915 | fi | |
2916 | done | |
7083c021 | 2917 | done |
631ef239 | 2918 | IFS=$as_save_IFS |
7083c021 | 2919 | |
212380e3 | 2920 | fi |
7083c021 | 2921 | fi |
c52df125 AC |
2922 | STRIP=$ac_cv_prog_STRIP |
2923 | if test -n "$STRIP"; then | |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2925 | $as_echo "$STRIP" >&6; } | |
212380e3 | 2926 | else |
7083c021 AC |
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2928 | $as_echo "no" >&6; } | |
212380e3 AC |
2929 | fi |
2930 | ||
631ef239 | 2931 | |
7083c021 | 2932 | fi |
c52df125 AC |
2933 | if test -z "$ac_cv_prog_STRIP"; then |
2934 | ac_ct_STRIP=$STRIP | |
2935 | # Extract the first word of "strip", so it can be a program name with args. | |
2936 | set dummy strip; ac_word=$2 | |
7083c021 AC |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2938 | $as_echo_n "checking for $ac_word... " >&6; } | |
c52df125 | 2939 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
7083c021 | 2940 | $as_echo_n "(cached) " >&6 |
212380e3 | 2941 | else |
c52df125 AC |
2942 | if test -n "$ac_ct_STRIP"; then |
2943 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7083c021 | 2944 | else |
7083c021 | 2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2946 | for as_dir in $PATH |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2950 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c52df125 | 2952 | ac_cv_prog_ac_ct_STRIP="strip" |
7083c021 | 2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2954 | break 2 |
2955 | fi | |
2956 | done | |
7083c021 | 2957 | done |
631ef239 | 2958 | IFS=$as_save_IFS |
212380e3 | 2959 | |
212380e3 | 2960 | fi |
7083c021 | 2961 | fi |
c52df125 AC |
2962 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2963 | if test -n "$ac_ct_STRIP"; then | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2965 | $as_echo "$ac_ct_STRIP" >&6; } | |
212380e3 | 2966 | else |
7083c021 AC |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2968 | $as_echo "no" >&6; } | |
212380e3 AC |
2969 | fi |
2970 | ||
c52df125 AC |
2971 | if test "x$ac_ct_STRIP" = x; then |
2972 | STRIP=":" | |
2973 | else | |
2974 | case $cross_compiling:$ac_tool_warned in | |
2975 | yes:) | |
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2978 | ac_tool_warned=yes ;; | |
2979 | esac | |
2980 | STRIP=$ac_ct_STRIP | |
2981 | fi | |
2982 | else | |
2983 | STRIP="$ac_cv_prog_STRIP" | |
2984 | fi | |
212380e3 | 2985 | |
7083c021 | 2986 | fi |
c52df125 AC |
2987 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2988 | ||
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2990 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2991 | if test -z "$MKDIR_P"; then | |
2992 | if ${ac_cv_path_mkdir+:} false; then : | |
7083c021 | 2993 | $as_echo_n "(cached) " >&6 |
212380e3 | 2994 | else |
c52df125 AC |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2996 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
212380e3 AC |
2997 | do |
2998 | IFS=$as_save_IFS | |
2999 | test -z "$as_dir" && as_dir=. | |
c52df125 AC |
3000 | for ac_prog in mkdir gmkdir; do |
3001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3002 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3003 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3004 | 'mkdir (GNU coreutils) '* | \ | |
3005 | 'mkdir (coreutils) '* | \ | |
3006 | 'mkdir (fileutils) '4.1*) | |
3007 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3008 | break 3;; | |
3009 | esac | |
3010 | done | |
3011 | done | |
7083c021 | 3012 | done |
631ef239 | 3013 | IFS=$as_save_IFS |
212380e3 AC |
3014 | |
3015 | fi | |
631ef239 | 3016 | |
c52df125 AC |
3017 | test -d ./--version && rmdir ./--version |
3018 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3019 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3020 | else | |
3021 | # As a last resort, use the slow shell script. Don't cache a | |
3022 | # value for MKDIR_P within a source directory, because that will | |
3023 | # break other packages using the cache if that directory is | |
3024 | # removed, or if the value is a relative name. | |
3025 | MKDIR_P="$ac_install_sh -d" | |
3026 | fi | |
212380e3 | 3027 | fi |
c52df125 AC |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3029 | $as_echo "$MKDIR_P" >&6; } | |
3030 | ||
3031 | for ac_prog in gawk mawk nawk awk | |
212380e3 AC |
3032 | do |
3033 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3034 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3036 | $as_echo_n "checking for $ac_word... " >&6; } | |
c52df125 | 3037 | if ${ac_cv_prog_AWK+:} false; then : |
7083c021 | 3038 | $as_echo_n "(cached) " >&6 |
212380e3 | 3039 | else |
c52df125 AC |
3040 | if test -n "$AWK"; then |
3041 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
212380e3 AC |
3042 | else |
3043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3044 | for as_dir in $PATH | |
3045 | do | |
3046 | IFS=$as_save_IFS | |
3047 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3048 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 3049 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c52df125 | 3050 | ac_cv_prog_AWK="$ac_prog" |
7083c021 | 3051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
3052 | break 2 |
3053 | fi | |
3054 | done | |
7083c021 | 3055 | done |
631ef239 | 3056 | IFS=$as_save_IFS |
212380e3 AC |
3057 | |
3058 | fi | |
3059 | fi | |
c52df125 AC |
3060 | AWK=$ac_cv_prog_AWK |
3061 | if test -n "$AWK"; then | |
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3063 | $as_echo "$AWK" >&6; } | |
212380e3 | 3064 | else |
7083c021 AC |
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3066 | $as_echo "no" >&6; } | |
212380e3 AC |
3067 | fi |
3068 | ||
631ef239 | 3069 | |
c52df125 | 3070 | test -n "$AWK" && break |
212380e3 | 3071 | done |
212380e3 | 3072 | |
c52df125 AC |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3074 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3075 | set x ${MAKE-make} | |
3076 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3077 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3078 | $as_echo_n "(cached) " >&6 | |
3079 | else | |
3080 | cat >conftest.make <<\_ACEOF | |
3081 | SHELL = /bin/sh | |
3082 | all: | |
3083 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3084 | _ACEOF | |
3085 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3086 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3087 | *@@@%%%=?*=@@@%%%*) | |
3088 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3089 | *) | |
3090 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3091 | esac | |
3092 | rm -f conftest.make | |
3093 | fi | |
3094 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3096 | $as_echo "yes" >&6; } | |
3097 | SET_MAKE= | |
3098 | else | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3100 | $as_echo "no" >&6; } | |
3101 | SET_MAKE="MAKE=${MAKE-make}" | |
3102 | fi | |
3103 | ||
3104 | rm -rf .tst 2>/dev/null | |
3105 | mkdir .tst 2>/dev/null | |
3106 | if test -d .tst; then | |
3107 | am__leading_dot=. | |
3108 | else | |
3109 | am__leading_dot=_ | |
3110 | fi | |
3111 | rmdir .tst 2>/dev/null | |
3112 | ||
3113 | # Check whether --enable-silent-rules was given. | |
3114 | if test "${enable_silent_rules+set}" = set; then : | |
3115 | enableval=$enable_silent_rules; | |
3116 | fi | |
3117 | ||
3118 | case $enable_silent_rules in # ((( | |
3119 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3120 | no) AM_DEFAULT_VERBOSITY=1;; | |
3121 | *) AM_DEFAULT_VERBOSITY=1;; | |
3122 | esac | |
3123 | am_make=${MAKE-make} | |
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3125 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3126 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3127 | $as_echo_n "(cached) " >&6 | |
3128 | else | |
3129 | if $as_echo 'TRUE=$(BAR$(V)) | |
3130 | BAR0=false | |
3131 | BAR1=true | |
3132 | V=1 | |
3133 | am__doit: | |
3134 | @$(TRUE) | |
3135 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3136 | am_cv_make_support_nested_variables=yes | |
3137 | else | |
3138 | am_cv_make_support_nested_variables=no | |
3139 | fi | |
3140 | fi | |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3142 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3143 | if test $am_cv_make_support_nested_variables = yes; then | |
3144 | AM_V='$(V)' | |
3145 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3146 | else | |
3147 | AM_V=$AM_DEFAULT_VERBOSITY | |
3148 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3149 | fi | |
3150 | AM_BACKSLASH='\' | |
3151 | ||
3152 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3153 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3154 | # is not polluted with repeated "-I." | |
3155 | am__isrc=' -I$(srcdir)' | |
3156 | # test to see if srcdir already configured | |
3157 | if test -f $srcdir/config.status; then | |
3158 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3159 | fi | |
3160 | fi | |
3161 | ||
3162 | # test whether we have cygpath | |
3163 | if test -z "$CYGPATH_W"; then | |
3164 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3165 | CYGPATH_W='cygpath -w' | |
3166 | else | |
3167 | CYGPATH_W=echo | |
3168 | fi | |
3169 | fi | |
3170 | ||
3171 | ||
3172 | # Define the identity of the package. | |
3173 | PACKAGE='charybdis' | |
3174 | VERSION='3.6.0-dev' | |
3175 | ||
3176 | ||
3177 | cat >>confdefs.h <<_ACEOF | |
3178 | #define PACKAGE "$PACKAGE" | |
3179 | _ACEOF | |
3180 | ||
3181 | ||
3182 | cat >>confdefs.h <<_ACEOF | |
3183 | #define VERSION "$VERSION" | |
3184 | _ACEOF | |
3185 | ||
3186 | # Some tools Automake needs. | |
3187 | ||
3188 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3189 | ||
3190 | ||
3191 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3192 | ||
3193 | ||
3194 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3195 | ||
3196 | ||
3197 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3198 | ||
3199 | ||
3200 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3201 | ||
3202 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3203 | # dies out for good. For more background, see: | |
3204 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3205 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3206 | mkdir_p='$(MKDIR_P)' | |
3207 | ||
3208 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3209 | # system "awk" is bad on some platforms. | |
3210 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3211 | # in the wild :-( We should find a proper way to deprecate it ... | |
3212 | AMTAR='$${TAR-tar}' | |
3213 | ||
3214 | ||
3215 | # We'll loop over all known methods to create a tar archive until one works. | |
3216 | _am_tools='gnutar pax cpio none' | |
3217 | ||
3218 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3219 | ||
3220 | ||
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | # POSIX will say in a future version that running "rm -f" with no argument | |
3226 | # is OK; and we want to be able to make that assumption in our Makefile | |
3227 | # recipes. So use an aggressive probe to check that the usage we want is | |
3228 | # actually supported "in the wild" to an acceptable degree. | |
3229 | # See automake bug#10828. | |
3230 | # To make any issue more visible, cause the running configure to be aborted | |
3231 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3232 | # user can still override this though. | |
3233 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3234 | cat >&2 <<'END' | |
3235 | Oops! | |
3236 | ||
3237 | Your 'rm' program seems unable to run without file operands specified | |
3238 | on the command line, even when the '-f' option is present. This is contrary | |
3239 | to the behaviour of most rm programs out there, and not conforming with | |
3240 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3241 | ||
3242 | Please tell bug-automake@gnu.org about your system, including the value | |
3243 | of your $PATH and any error possibly output before this message. This | |
3244 | can help us improve future automake versions. | |
3245 | ||
3246 | END | |
3247 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3248 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3249 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3250 | echo >&2 | |
3251 | else | |
3252 | cat >&2 <<'END' | |
3253 | Aborting the configuration process, to ensure you take notice of the issue. | |
3254 | ||
3255 | You can download and install GNU coreutils to get an 'rm' implementation | |
3256 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3257 | ||
3258 | If you want to complete the configuration process using your problematic | |
3259 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3260 | to "yes", and re-run configure. | |
3261 | ||
3262 | END | |
3263 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3264 | fi | |
3265 | fi | |
3266 | ||
3267 | # Check whether --enable-silent-rules was given. | |
3268 | if test "${enable_silent_rules+set}" = set; then : | |
3269 | enableval=$enable_silent_rules; | |
3270 | fi | |
3271 | ||
3272 | case $enable_silent_rules in # ((( | |
3273 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3274 | no) AM_DEFAULT_VERBOSITY=1;; | |
3275 | *) AM_DEFAULT_VERBOSITY=0;; | |
3276 | esac | |
3277 | am_make=${MAKE-make} | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3279 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3280 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3281 | $as_echo_n "(cached) " >&6 | |
3282 | else | |
3283 | if $as_echo 'TRUE=$(BAR$(V)) | |
3284 | BAR0=false | |
3285 | BAR1=true | |
3286 | V=1 | |
3287 | am__doit: | |
3288 | @$(TRUE) | |
3289 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3290 | am_cv_make_support_nested_variables=yes | |
3291 | else | |
3292 | am_cv_make_support_nested_variables=no | |
3293 | fi | |
3294 | fi | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3296 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3297 | if test $am_cv_make_support_nested_variables = yes; then | |
3298 | AM_V='$(V)' | |
3299 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3300 | else | |
3301 | AM_V=$AM_DEFAULT_VERBOSITY | |
3302 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3303 | fi | |
3304 | AM_BACKSLASH='\' | |
3305 | ||
3306 | DEPDIR="${am__leading_dot}deps" | |
3307 | ||
3308 | ac_config_commands="$ac_config_commands depfiles" | |
3309 | ||
3310 | ||
3311 | am_make=${MAKE-make} | |
3312 | cat > confinc << 'END' | |
3313 | am__doit: | |
3314 | @echo this is the am__doit target | |
3315 | .PHONY: am__doit | |
3316 | END | |
3317 | # If we don't find an include directive, just comment out the code. | |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3319 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3320 | am__include="#" | |
3321 | am__quote= | |
3322 | _am_result=none | |
3323 | # First try GNU make style include. | |
3324 | echo "include confinc" > confmf | |
3325 | # Ignore all kinds of additional output from 'make'. | |
3326 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3327 | *the\ am__doit\ target*) | |
3328 | am__include=include | |
3329 | am__quote= | |
3330 | _am_result=GNU | |
3331 | ;; | |
3332 | esac | |
3333 | # Now try BSD make style include. | |
3334 | if test "$am__include" = "#"; then | |
3335 | echo '.include "confinc"' > confmf | |
3336 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3337 | *the\ am__doit\ target*) | |
3338 | am__include=.include | |
3339 | am__quote="\"" | |
3340 | _am_result=BSD | |
3341 | ;; | |
3342 | esac | |
3343 | fi | |
3344 | ||
3345 | ||
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3347 | $as_echo "$_am_result" >&6; } | |
3348 | rm -f confinc confmf | |
3349 | ||
3350 | # Check whether --enable-dependency-tracking was given. | |
3351 | if test "${enable_dependency_tracking+set}" = set; then : | |
3352 | enableval=$enable_dependency_tracking; | |
3353 | fi | |
3354 | ||
3355 | if test "x$enable_dependency_tracking" != xno; then | |
3356 | am_depcomp="$ac_aux_dir/depcomp" | |
3357 | AMDEPBACKSLASH='\' | |
3358 | am__nodep='_no' | |
3359 | fi | |
3360 | if test "x$enable_dependency_tracking" != xno; then | |
3361 | AMDEP_TRUE= | |
3362 | AMDEP_FALSE='#' | |
3363 | else | |
3364 | AMDEP_TRUE='#' | |
3365 | AMDEP_FALSE= | |
3366 | fi | |
3367 | ||
3368 | ||
3369 | ac_ext=c | |
3370 | ac_cpp='$CPP $CPPFLAGS' | |
3371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3374 | if test -n "$ac_tool_prefix"; then | |
3375 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3376 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3378 | $as_echo_n "checking for $ac_word... " >&6; } | |
3379 | if ${ac_cv_prog_CC+:} false; then : | |
3380 | $as_echo_n "(cached) " >&6 | |
3381 | else | |
3382 | if test -n "$CC"; then | |
3383 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3384 | else | |
3385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3386 | for as_dir in $PATH | |
3387 | do | |
3388 | IFS=$as_save_IFS | |
3389 | test -z "$as_dir" && as_dir=. | |
3390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3392 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3394 | break 2 | |
3395 | fi | |
3396 | done | |
3397 | done | |
3398 | IFS=$as_save_IFS | |
3399 | ||
3400 | fi | |
3401 | fi | |
3402 | CC=$ac_cv_prog_CC | |
3403 | if test -n "$CC"; then | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3405 | $as_echo "$CC" >&6; } | |
3406 | else | |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3408 | $as_echo "no" >&6; } | |
3409 | fi | |
3410 | ||
3411 | ||
3412 | fi | |
3413 | if test -z "$ac_cv_prog_CC"; then | |
3414 | ac_ct_CC=$CC | |
3415 | # Extract the first word of "gcc", so it can be a program name with args. | |
3416 | set dummy gcc; ac_word=$2 | |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3418 | $as_echo_n "checking for $ac_word... " >&6; } | |
3419 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3420 | $as_echo_n "(cached) " >&6 | |
3421 | else | |
3422 | if test -n "$ac_ct_CC"; then | |
3423 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3424 | else | |
3425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3426 | for as_dir in $PATH | |
3427 | do | |
3428 | IFS=$as_save_IFS | |
3429 | test -z "$as_dir" && as_dir=. | |
3430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3432 | ac_cv_prog_ac_ct_CC="gcc" | |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3434 | break 2 | |
3435 | fi | |
3436 | done | |
3437 | done | |
3438 | IFS=$as_save_IFS | |
3439 | ||
3440 | fi | |
3441 | fi | |
3442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3443 | if test -n "$ac_ct_CC"; then | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3445 | $as_echo "$ac_ct_CC" >&6; } | |
3446 | else | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3448 | $as_echo "no" >&6; } | |
3449 | fi | |
3450 | ||
3451 | if test "x$ac_ct_CC" = x; then | |
3452 | CC="" | |
7083c021 AC |
3453 | else |
3454 | case $cross_compiling:$ac_tool_warned in | |
3455 | yes:) | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3458 | ac_tool_warned=yes ;; | |
3459 | esac | |
3460 | CC=$ac_ct_CC | |
3461 | fi | |
c52df125 AC |
3462 | else |
3463 | CC="$ac_cv_prog_CC" | |
3464 | fi | |
3465 | ||
3466 | if test -z "$CC"; then | |
3467 | if test -n "$ac_tool_prefix"; then | |
3468 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3469 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3471 | $as_echo_n "checking for $ac_word... " >&6; } | |
3472 | if ${ac_cv_prog_CC+:} false; then : | |
3473 | $as_echo_n "(cached) " >&6 | |
3474 | else | |
3475 | if test -n "$CC"; then | |
3476 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3477 | else | |
3478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3479 | for as_dir in $PATH | |
3480 | do | |
3481 | IFS=$as_save_IFS | |
3482 | test -z "$as_dir" && as_dir=. | |
3483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3485 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3487 | break 2 | |
3488 | fi | |
3489 | done | |
3490 | done | |
3491 | IFS=$as_save_IFS | |
3492 | ||
3493 | fi | |
3494 | fi | |
3495 | CC=$ac_cv_prog_CC | |
3496 | if test -n "$CC"; then | |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3498 | $as_echo "$CC" >&6; } | |
3499 | else | |
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3501 | $as_echo "no" >&6; } | |
3502 | fi | |
3503 | ||
3504 | ||
3505 | fi | |
3506 | fi | |
3507 | if test -z "$CC"; then | |
3508 | # Extract the first word of "cc", so it can be a program name with args. | |
3509 | set dummy cc; ac_word=$2 | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3511 | $as_echo_n "checking for $ac_word... " >&6; } | |
3512 | if ${ac_cv_prog_CC+:} false; then : | |
3513 | $as_echo_n "(cached) " >&6 | |
3514 | else | |
3515 | if test -n "$CC"; then | |
3516 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3517 | else | |
3518 | ac_prog_rejected=no | |
3519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3520 | for as_dir in $PATH | |
3521 | do | |
3522 | IFS=$as_save_IFS | |
3523 | test -z "$as_dir" && as_dir=. | |
3524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3526 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3527 | ac_prog_rejected=yes | |
3528 | continue | |
3529 | fi | |
3530 | ac_cv_prog_CC="cc" | |
3531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3532 | break 2 | |
3533 | fi | |
3534 | done | |
3535 | done | |
3536 | IFS=$as_save_IFS | |
3537 | ||
3538 | if test $ac_prog_rejected = yes; then | |
3539 | # We found a bogon in the path, so make sure we never use it. | |
3540 | set dummy $ac_cv_prog_CC | |
3541 | shift | |
3542 | if test $# != 0; then | |
3543 | # We chose a different compiler from the bogus one. | |
3544 | # However, it has the same basename, so the bogon will be chosen | |
3545 | # first if we set CC to just the basename; use the full file name. | |
3546 | shift | |
3547 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3548 | fi | |
3549 | fi | |
3550 | fi | |
3551 | fi | |
3552 | CC=$ac_cv_prog_CC | |
3553 | if test -n "$CC"; then | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3555 | $as_echo "$CC" >&6; } | |
3556 | else | |
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3558 | $as_echo "no" >&6; } | |
3559 | fi | |
3560 | ||
3561 | ||
3562 | fi | |
3563 | if test -z "$CC"; then | |
3564 | if test -n "$ac_tool_prefix"; then | |
3565 | for ac_prog in cl.exe | |
3566 | do | |
3567 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3568 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3570 | $as_echo_n "checking for $ac_word... " >&6; } | |
3571 | if ${ac_cv_prog_CC+:} false; then : | |
3572 | $as_echo_n "(cached) " >&6 | |
3573 | else | |
3574 | if test -n "$CC"; then | |
3575 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3576 | else | |
3577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3578 | for as_dir in $PATH | |
3579 | do | |
3580 | IFS=$as_save_IFS | |
3581 | test -z "$as_dir" && as_dir=. | |
3582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3584 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3586 | break 2 | |
3587 | fi | |
3588 | done | |
3589 | done | |
3590 | IFS=$as_save_IFS | |
3591 | ||
3592 | fi | |
3593 | fi | |
3594 | CC=$ac_cv_prog_CC | |
3595 | if test -n "$CC"; then | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3597 | $as_echo "$CC" >&6; } | |
3598 | else | |
3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3600 | $as_echo "no" >&6; } | |
3601 | fi | |
3602 | ||
3603 | ||
3604 | test -n "$CC" && break | |
3605 | done | |
3606 | fi | |
3607 | if test -z "$CC"; then | |
3608 | ac_ct_CC=$CC | |
3609 | for ac_prog in cl.exe | |
3610 | do | |
3611 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3612 | set dummy $ac_prog; ac_word=$2 | |
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3614 | $as_echo_n "checking for $ac_word... " >&6; } | |
3615 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3616 | $as_echo_n "(cached) " >&6 | |
3617 | else | |
3618 | if test -n "$ac_ct_CC"; then | |
3619 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3620 | else | |
3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3622 | for as_dir in $PATH | |
3623 | do | |
3624 | IFS=$as_save_IFS | |
3625 | test -z "$as_dir" && as_dir=. | |
3626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3628 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3630 | break 2 | |
3631 | fi | |
3632 | done | |
3633 | done | |
3634 | IFS=$as_save_IFS | |
3635 | ||
3636 | fi | |
3637 | fi | |
3638 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3639 | if test -n "$ac_ct_CC"; then | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3641 | $as_echo "$ac_ct_CC" >&6; } | |
3642 | else | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3644 | $as_echo "no" >&6; } | |
3645 | fi | |
3646 | ||
3647 | ||
3648 | test -n "$ac_ct_CC" && break | |
3649 | done | |
3650 | ||
3651 | if test "x$ac_ct_CC" = x; then | |
3652 | CC="" | |
3653 | else | |
3654 | case $cross_compiling:$ac_tool_warned in | |
3655 | yes:) | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3657 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3658 | ac_tool_warned=yes ;; | |
3659 | esac | |
3660 | CC=$ac_ct_CC | |
3661 | fi | |
3662 | fi | |
3663 | ||
3664 | fi | |
3665 | ||
3666 | ||
3667 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3669 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3670 | See \`config.log' for more details" "$LINENO" 5; } | |
3671 | ||
3672 | # Provide some information about the compiler. | |
3673 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3674 | set X $ac_compile | |
3675 | ac_compiler=$2 | |
3676 | for ac_option in --version -v -V -qversion; do | |
3677 | { { ac_try="$ac_compiler $ac_option >&5" | |
3678 | case "(($ac_try" in | |
3679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3680 | *) ac_try_echo=$ac_try;; | |
3681 | esac | |
3682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3683 | $as_echo "$ac_try_echo"; } >&5 | |
3684 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3685 | ac_status=$? | |
3686 | if test -s conftest.err; then | |
3687 | sed '10a\ | |
3688 | ... rest of stderr output deleted ... | |
3689 | 10q' conftest.err >conftest.er1 | |
3690 | cat conftest.er1 >&5 | |
3691 | fi | |
3692 | rm -f conftest.er1 conftest.err | |
3693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3694 | test $ac_status = 0; } | |
3695 | done | |
3696 | ||
3697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3698 | /* end confdefs.h. */ | |
3699 | ||
3700 | int | |
3701 | main () | |
3702 | { | |
3703 | ||
3704 | ; | |
3705 | return 0; | |
3706 | } | |
3707 | _ACEOF | |
3708 | ac_clean_files_save=$ac_clean_files | |
3709 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3710 | # Try to create an executable without -o first, disregard a.out. | |
3711 | # It will help us diagnose broken compilers, and finding out an intuition | |
3712 | # of exeext. | |
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3714 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3715 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3716 | ||
3717 | # The possible output files: | |
3718 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3719 | ||
3720 | ac_rmfiles= | |
3721 | for ac_file in $ac_files | |
3722 | do | |
3723 | case $ac_file in | |
3724 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3725 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3726 | esac | |
3727 | done | |
3728 | rm -f $ac_rmfiles | |
3729 | ||
3730 | if { { ac_try="$ac_link_default" | |
3731 | case "(($ac_try" in | |
3732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3733 | *) ac_try_echo=$ac_try;; | |
3734 | esac | |
3735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3736 | $as_echo "$ac_try_echo"; } >&5 | |
3737 | (eval "$ac_link_default") 2>&5 | |
3738 | ac_status=$? | |
3739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3740 | test $ac_status = 0; }; then : | |
3741 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3742 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3743 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3744 | # so that the user can short-circuit this test for compilers unknown to | |
3745 | # Autoconf. | |
3746 | for ac_file in $ac_files '' | |
3747 | do | |
3748 | test -f "$ac_file" || continue | |
3749 | case $ac_file in | |
3750 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3751 | ;; | |
3752 | [ab].out ) | |
3753 | # We found the default executable, but exeext='' is most | |
3754 | # certainly right. | |
3755 | break;; | |
3756 | *.* ) | |
3757 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3758 | then :; else | |
3759 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3760 | fi | |
3761 | # We set ac_cv_exeext here because the later test for it is not | |
3762 | # safe: cross compilers may not add the suffix if given an `-o' | |
3763 | # argument, so we may need to know it at that point already. | |
3764 | # Even if this section looks crufty: it has the advantage of | |
3765 | # actually working. | |
3766 | break;; | |
3767 | * ) | |
3768 | break;; | |
3769 | esac | |
3770 | done | |
3771 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3772 | ||
3773 | else | |
3774 | ac_file='' | |
3775 | fi | |
3776 | if test -z "$ac_file"; then : | |
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3778 | $as_echo "no" >&6; } | |
3779 | $as_echo "$as_me: failed program was:" >&5 | |
3780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3781 | ||
3782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3783 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3784 | as_fn_error 77 "C compiler cannot create executables | |
3785 | See \`config.log' for more details" "$LINENO" 5; } | |
3786 | else | |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3788 | $as_echo "yes" >&6; } | |
3789 | fi | |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3791 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3793 | $as_echo "$ac_file" >&6; } | |
3794 | ac_exeext=$ac_cv_exeext | |
3795 | ||
3796 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3797 | ac_clean_files=$ac_clean_files_save | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3799 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3800 | if { { ac_try="$ac_link" | |
3801 | case "(($ac_try" in | |
3802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3803 | *) ac_try_echo=$ac_try;; | |
3804 | esac | |
3805 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3806 | $as_echo "$ac_try_echo"; } >&5 | |
3807 | (eval "$ac_link") 2>&5 | |
3808 | ac_status=$? | |
3809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3810 | test $ac_status = 0; }; then : | |
3811 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3812 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3813 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3814 | # `rm'. | |
3815 | for ac_file in conftest.exe conftest conftest.*; do | |
3816 | test -f "$ac_file" || continue | |
3817 | case $ac_file in | |
3818 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3819 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3820 | break;; | |
3821 | * ) break;; | |
3822 | esac | |
3823 | done | |
3824 | else | |
3825 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3826 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3827 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3828 | See \`config.log' for more details" "$LINENO" 5; } | |
3829 | fi | |
3830 | rm -f conftest conftest$ac_cv_exeext | |
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3832 | $as_echo "$ac_cv_exeext" >&6; } | |
3833 | ||
3834 | rm -f conftest.$ac_ext | |
3835 | EXEEXT=$ac_cv_exeext | |
3836 | ac_exeext=$EXEEXT | |
3837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3838 | /* end confdefs.h. */ | |
3839 | #include <stdio.h> | |
3840 | int | |
3841 | main () | |
3842 | { | |
3843 | FILE *f = fopen ("conftest.out", "w"); | |
3844 | return ferror (f) || fclose (f) != 0; | |
3845 | ||
3846 | ; | |
3847 | return 0; | |
3848 | } | |
3849 | _ACEOF | |
3850 | ac_clean_files="$ac_clean_files conftest.out" | |
3851 | # Check that the compiler produces executables we can run. If not, either | |
3852 | # the compiler is broken, or we cross compile. | |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3854 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3855 | if test "$cross_compiling" != yes; then | |
3856 | { { ac_try="$ac_link" | |
3857 | case "(($ac_try" in | |
3858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3859 | *) ac_try_echo=$ac_try;; | |
3860 | esac | |
3861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3862 | $as_echo "$ac_try_echo"; } >&5 | |
3863 | (eval "$ac_link") 2>&5 | |
3864 | ac_status=$? | |
3865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3866 | test $ac_status = 0; } | |
3867 | if { ac_try='./conftest$ac_cv_exeext' | |
3868 | { { case "(($ac_try" in | |
3869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3870 | *) ac_try_echo=$ac_try;; | |
3871 | esac | |
3872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3873 | $as_echo "$ac_try_echo"; } >&5 | |
3874 | (eval "$ac_try") 2>&5 | |
3875 | ac_status=$? | |
3876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3877 | test $ac_status = 0; }; }; then | |
3878 | cross_compiling=no | |
3879 | else | |
3880 | if test "$cross_compiling" = maybe; then | |
3881 | cross_compiling=yes | |
3882 | else | |
3883 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3884 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3885 | as_fn_error $? "cannot run C compiled programs. | |
3886 | If you meant to cross compile, use \`--host'. | |
3887 | See \`config.log' for more details" "$LINENO" 5; } | |
3888 | fi | |
3889 | fi | |
3890 | fi | |
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3892 | $as_echo "$cross_compiling" >&6; } | |
3893 | ||
3894 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3895 | ac_clean_files=$ac_clean_files_save | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3897 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3898 | if ${ac_cv_objext+:} false; then : | |
3899 | $as_echo_n "(cached) " >&6 | |
3900 | else | |
3901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3902 | /* end confdefs.h. */ | |
3903 | ||
3904 | int | |
3905 | main () | |
3906 | { | |
3907 | ||
3908 | ; | |
3909 | return 0; | |
3910 | } | |
3911 | _ACEOF | |
3912 | rm -f conftest.o conftest.obj | |
3913 | if { { ac_try="$ac_compile" | |
3914 | case "(($ac_try" in | |
3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3916 | *) ac_try_echo=$ac_try;; | |
3917 | esac | |
3918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3919 | $as_echo "$ac_try_echo"; } >&5 | |
3920 | (eval "$ac_compile") 2>&5 | |
3921 | ac_status=$? | |
3922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3923 | test $ac_status = 0; }; then : | |
3924 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3925 | test -f "$ac_file" || continue; | |
3926 | case $ac_file in | |
3927 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3928 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3929 | break;; | |
3930 | esac | |
3931 | done | |
3932 | else | |
3933 | $as_echo "$as_me: failed program was:" >&5 | |
3934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3935 | ||
3936 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3938 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3939 | See \`config.log' for more details" "$LINENO" 5; } | |
3940 | fi | |
3941 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3942 | fi | |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3944 | $as_echo "$ac_cv_objext" >&6; } | |
3945 | OBJEXT=$ac_cv_objext | |
3946 | ac_objext=$OBJEXT | |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3948 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3949 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3950 | $as_echo_n "(cached) " >&6 | |
3951 | else | |
3952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3953 | /* end confdefs.h. */ | |
3954 | ||
3955 | int | |
3956 | main () | |
3957 | { | |
3958 | #ifndef __GNUC__ | |
3959 | choke me | |
3960 | #endif | |
3961 | ||
3962 | ; | |
3963 | return 0; | |
3964 | } | |
3965 | _ACEOF | |
3966 | if ac_fn_c_try_compile "$LINENO"; then : | |
3967 | ac_compiler_gnu=yes | |
3968 | else | |
3969 | ac_compiler_gnu=no | |
3970 | fi | |
3971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3972 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3973 | ||
3974 | fi | |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3976 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3977 | if test $ac_compiler_gnu = yes; then | |
3978 | GCC=yes | |
3979 | else | |
3980 | GCC= | |
3981 | fi | |
3982 | ac_test_CFLAGS=${CFLAGS+set} | |
3983 | ac_save_CFLAGS=$CFLAGS | |
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3985 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3986 | if ${ac_cv_prog_cc_g+:} false; then : | |
3987 | $as_echo_n "(cached) " >&6 | |
3988 | else | |
3989 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3990 | ac_c_werror_flag=yes | |
3991 | ac_cv_prog_cc_g=no | |
3992 | CFLAGS="-g" | |
3993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3994 | /* end confdefs.h. */ | |
3995 | ||
3996 | int | |
3997 | main () | |
3998 | { | |
3999 | ||
4000 | ; | |
4001 | return 0; | |
4002 | } | |
4003 | _ACEOF | |
4004 | if ac_fn_c_try_compile "$LINENO"; then : | |
4005 | ac_cv_prog_cc_g=yes | |
4006 | else | |
4007 | CFLAGS="" | |
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4009 | /* end confdefs.h. */ | |
4010 | ||
4011 | int | |
4012 | main () | |
4013 | { | |
4014 | ||
4015 | ; | |
4016 | return 0; | |
4017 | } | |
4018 | _ACEOF | |
4019 | if ac_fn_c_try_compile "$LINENO"; then : | |
4020 | ||
4021 | else | |
4022 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4023 | CFLAGS="-g" | |
4024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4025 | /* end confdefs.h. */ | |
4026 | ||
4027 | int | |
4028 | main () | |
4029 | { | |
4030 | ||
4031 | ; | |
4032 | return 0; | |
4033 | } | |
4034 | _ACEOF | |
4035 | if ac_fn_c_try_compile "$LINENO"; then : | |
4036 | ac_cv_prog_cc_g=yes | |
4037 | fi | |
4038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4039 | fi | |
4040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4041 | fi | |
4042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4043 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4044 | fi | |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4046 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4047 | if test "$ac_test_CFLAGS" = set; then | |
4048 | CFLAGS=$ac_save_CFLAGS | |
4049 | elif test $ac_cv_prog_cc_g = yes; then | |
4050 | if test "$GCC" = yes; then | |
4051 | CFLAGS="-g -O2" | |
4052 | else | |
4053 | CFLAGS="-g" | |
4054 | fi | |
4055 | else | |
4056 | if test "$GCC" = yes; then | |
4057 | CFLAGS="-O2" | |
4058 | else | |
4059 | CFLAGS= | |
4060 | fi | |
4061 | fi | |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4063 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4064 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4065 | $as_echo_n "(cached) " >&6 | |
4066 | else | |
4067 | ac_cv_prog_cc_c89=no | |
4068 | ac_save_CC=$CC | |
4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4070 | /* end confdefs.h. */ | |
4071 | #include <stdarg.h> | |
4072 | #include <stdio.h> | |
4073 | struct stat; | |
4074 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4075 | struct buf { int x; }; | |
4076 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4077 | static char *e (p, i) | |
4078 | char **p; | |
4079 | int i; | |
4080 | { | |
4081 | return p[i]; | |
4082 | } | |
4083 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4084 | { | |
4085 | char *s; | |
4086 | va_list v; | |
4087 | va_start (v,p); | |
4088 | s = g (p, va_arg (v,int)); | |
4089 | va_end (v); | |
4090 | return s; | |
4091 | } | |
4092 | ||
4093 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4094 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4095 | These don't provoke an error unfortunately, instead are silently treated | |
4096 | as 'x'. The following induces an error, until -std is added to get | |
4097 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4098 | array size at least. It's necessary to write '\x00'==0 to get something | |
4099 | that's true only with -std. */ | |
4100 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4101 | ||
4102 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4103 | inside strings and character constants. */ | |
4104 | #define FOO(x) 'x' | |
4105 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4106 | ||
4107 | int test (int i, double x); | |
4108 | struct s1 {int (*f) (int a);}; | |
4109 | struct s2 {int (*f) (double a);}; | |
4110 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4111 | int argc; | |
4112 | char **argv; | |
4113 | int | |
4114 | main () | |
4115 | { | |
4116 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4117 | ; | |
4118 | return 0; | |
4119 | } | |
4120 | _ACEOF | |
4121 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4122 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4123 | do | |
4124 | CC="$ac_save_CC $ac_arg" | |
4125 | if ac_fn_c_try_compile "$LINENO"; then : | |
4126 | ac_cv_prog_cc_c89=$ac_arg | |
4127 | fi | |
4128 | rm -f core conftest.err conftest.$ac_objext | |
4129 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4130 | done | |
4131 | rm -f conftest.$ac_ext | |
4132 | CC=$ac_save_CC | |
4133 | ||
4134 | fi | |
4135 | # AC_CACHE_VAL | |
4136 | case "x$ac_cv_prog_cc_c89" in | |
4137 | x) | |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4139 | $as_echo "none needed" >&6; } ;; | |
4140 | xno) | |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4142 | $as_echo "unsupported" >&6; } ;; | |
4143 | *) | |
4144 | CC="$CC $ac_cv_prog_cc_c89" | |
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4146 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4147 | esac | |
4148 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4149 | ||
4150 | fi | |
4151 | ||
4152 | ac_ext=c | |
4153 | ac_cpp='$CPP $CPPFLAGS' | |
4154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4157 | ||
4158 | ac_ext=c | |
4159 | ac_cpp='$CPP $CPPFLAGS' | |
4160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4164 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4165 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4166 | $as_echo_n "(cached) " >&6 | |
4167 | else | |
4168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4169 | /* end confdefs.h. */ | |
4170 | ||
4171 | int | |
4172 | main () | |
4173 | { | |
4174 | ||
4175 | ; | |
4176 | return 0; | |
4177 | } | |
4178 | _ACEOF | |
4179 | # Make sure it works both with $CC and with simple cc. | |
4180 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4181 | # compilers refuse to overwrite an existing .o file with -o, | |
4182 | # though they will create one. | |
4183 | am_cv_prog_cc_c_o=yes | |
4184 | for am_i in 1 2; do | |
4185 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4186 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4187 | ac_status=$? | |
4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4189 | (exit $ac_status); } \ | |
4190 | && test -f conftest2.$ac_objext; then | |
4191 | : OK | |
4192 | else | |
4193 | am_cv_prog_cc_c_o=no | |
4194 | break | |
4195 | fi | |
4196 | done | |
4197 | rm -f core conftest* | |
4198 | unset am_i | |
4199 | fi | |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4201 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4202 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4203 | # Losing compiler, so override with the script. | |
4204 | # FIXME: It is wrong to rewrite CC. | |
4205 | # But if we don't then we get into trouble of one sort or another. | |
4206 | # A longer-term fix would be to have automake use am__CC in this case, | |
4207 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4208 | CC="$am_aux_dir/compile $CC" | |
4209 | fi | |
4210 | ac_ext=c | |
4211 | ac_cpp='$CPP $CPPFLAGS' | |
4212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4215 | ||
4216 | ||
4217 | depcc="$CC" am_compiler_list= | |
4218 | ||
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4220 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4221 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4222 | $as_echo_n "(cached) " >&6 | |
4223 | else | |
4224 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4225 | # We make a subdir and do the tests there. Otherwise we can end up | |
4226 | # making bogus files that we don't know about and never remove. For | |
4227 | # instance it was reported that on HP-UX the gcc test will end up | |
4228 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4229 | # in D". | |
4230 | rm -rf conftest.dir | |
4231 | mkdir conftest.dir | |
4232 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4233 | # using a relative directory. | |
4234 | cp "$am_depcomp" conftest.dir | |
4235 | cd conftest.dir | |
4236 | # We will build objects and dependencies in a subdirectory because | |
4237 | # it helps to detect inapplicable dependency modes. For instance | |
4238 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4239 | # side effect of compilation, but ICC will put the dependencies in | |
4240 | # the current directory while Tru64 will put them in the object | |
4241 | # directory. | |
4242 | mkdir sub | |
4243 | ||
4244 | am_cv_CC_dependencies_compiler_type=none | |
4245 | if test "$am_compiler_list" = ""; then | |
4246 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4247 | fi | |
4248 | am__universal=false | |
4249 | case " $depcc " in #( | |
4250 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4251 | esac | |
4252 | ||
4253 | for depmode in $am_compiler_list; do | |
4254 | # Setup a source with many dependencies, because some compilers | |
4255 | # like to wrap large dependency lists on column 80 (with \), and | |
4256 | # we should not choose a depcomp mode which is confused by this. | |
4257 | # | |
4258 | # We need to recreate these files for each test, as the compiler may | |
4259 | # overwrite some of them when testing with obscure command lines. | |
4260 | # This happens at least with the AIX C compiler. | |
4261 | : > sub/conftest.c | |
4262 | for i in 1 2 3 4 5 6; do | |
4263 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4264 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4265 | # Solaris 10 /bin/sh. | |
4266 | echo '/* dummy */' > sub/conftst$i.h | |
4267 | done | |
4268 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4269 | ||
4270 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4271 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4272 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4273 | # versions had trouble with output in subdirs. | |
4274 | am__obj=sub/conftest.${OBJEXT-o} | |
4275 | am__minus_obj="-o $am__obj" | |
4276 | case $depmode in | |
4277 | gcc) | |
4278 | # This depmode causes a compiler race in universal mode. | |
4279 | test "$am__universal" = false || continue | |
4280 | ;; | |
4281 | nosideeffect) | |
4282 | # After this tag, mechanisms are not by side-effect, so they'll | |
4283 | # only be used when explicitly requested. | |
4284 | if test "x$enable_dependency_tracking" = xyes; then | |
4285 | continue | |
4286 | else | |
4287 | break | |
4288 | fi | |
4289 | ;; | |
4290 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4291 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4292 | # not run yet. These depmodes are late enough in the game, and | |
4293 | # so weak that their functioning should not be impacted. | |
4294 | am__obj=conftest.${OBJEXT-o} | |
4295 | am__minus_obj= | |
4296 | ;; | |
4297 | none) break ;; | |
4298 | esac | |
4299 | if depmode=$depmode \ | |
4300 | source=sub/conftest.c object=$am__obj \ | |
4301 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4302 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4303 | >/dev/null 2>conftest.err && | |
4304 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4305 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4306 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4307 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4308 | # icc doesn't choke on unknown options, it will just issue warnings | |
4309 | # or remarks (even with -Werror). So we grep stderr for any message | |
4310 | # that says an option was ignored or not supported. | |
4311 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4312 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4313 | # The diagnosis changed in icc 8.0: | |
4314 | # icc: Command line remark: option '-MP' not supported | |
4315 | if (grep 'ignoring option' conftest.err || | |
4316 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4317 | am_cv_CC_dependencies_compiler_type=$depmode | |
4318 | break | |
4319 | fi | |
4320 | fi | |
4321 | done | |
4322 | ||
4323 | cd .. | |
4324 | rm -rf conftest.dir | |
4325 | else | |
4326 | am_cv_CC_dependencies_compiler_type=none | |
4327 | fi | |
4328 | ||
4329 | fi | |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4331 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4332 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4333 | ||
4334 | if | |
4335 | test "x$enable_dependency_tracking" != xno \ | |
4336 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4337 | am__fastdepCC_TRUE= | |
4338 | am__fastdepCC_FALSE='#' | |
4339 | else | |
4340 | am__fastdepCC_TRUE='#' | |
4341 | am__fastdepCC_FALSE= | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | ||
4346 | if test -n "$ac_tool_prefix"; then | |
4347 | for ac_prog in ar lib "link -lib" | |
4348 | do | |
4349 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4350 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4352 | $as_echo_n "checking for $ac_word... " >&6; } | |
4353 | if ${ac_cv_prog_AR+:} false; then : | |
4354 | $as_echo_n "(cached) " >&6 | |
4355 | else | |
4356 | if test -n "$AR"; then | |
4357 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4358 | else | |
4359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4360 | for as_dir in $PATH | |
4361 | do | |
4362 | IFS=$as_save_IFS | |
4363 | test -z "$as_dir" && as_dir=. | |
4364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4366 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4368 | break 2 | |
4369 | fi | |
4370 | done | |
4371 | done | |
4372 | IFS=$as_save_IFS | |
4373 | ||
4374 | fi | |
4375 | fi | |
4376 | AR=$ac_cv_prog_AR | |
4377 | if test -n "$AR"; then | |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4379 | $as_echo "$AR" >&6; } | |
4380 | else | |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4382 | $as_echo "no" >&6; } | |
4383 | fi | |
4384 | ||
4385 | ||
4386 | test -n "$AR" && break | |
4387 | done | |
4388 | fi | |
4389 | if test -z "$AR"; then | |
4390 | ac_ct_AR=$AR | |
4391 | for ac_prog in ar lib "link -lib" | |
4392 | do | |
4393 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4394 | set dummy $ac_prog; ac_word=$2 | |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4396 | $as_echo_n "checking for $ac_word... " >&6; } | |
4397 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4398 | $as_echo_n "(cached) " >&6 | |
4399 | else | |
4400 | if test -n "$ac_ct_AR"; then | |
4401 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4402 | else | |
4403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4404 | for as_dir in $PATH | |
4405 | do | |
4406 | IFS=$as_save_IFS | |
4407 | test -z "$as_dir" && as_dir=. | |
4408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4410 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
4411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4412 | break 2 | |
4413 | fi | |
4414 | done | |
4415 | done | |
4416 | IFS=$as_save_IFS | |
4417 | ||
4418 | fi | |
4419 | fi | |
4420 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4421 | if test -n "$ac_ct_AR"; then | |
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4423 | $as_echo "$ac_ct_AR" >&6; } | |
4424 | else | |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4426 | $as_echo "no" >&6; } | |
4427 | fi | |
4428 | ||
4429 | ||
4430 | test -n "$ac_ct_AR" && break | |
4431 | done | |
4432 | ||
4433 | if test "x$ac_ct_AR" = x; then | |
4434 | AR="false" | |
4435 | else | |
4436 | case $cross_compiling:$ac_tool_warned in | |
4437 | yes:) | |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4439 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4440 | ac_tool_warned=yes ;; | |
4441 | esac | |
4442 | AR=$ac_ct_AR | |
4443 | fi | |
4444 | fi | |
4445 | ||
4446 | : ${AR=ar} | |
4447 | ||
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
4449 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
4450 | if ${am_cv_ar_interface+:} false; then : | |
4451 | $as_echo_n "(cached) " >&6 | |
4452 | else | |
4453 | ac_ext=c | |
4454 | ac_cpp='$CPP $CPPFLAGS' | |
4455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4458 | ||
4459 | am_cv_ar_interface=ar | |
4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4461 | /* end confdefs.h. */ | |
4462 | int some_variable = 0; | |
4463 | _ACEOF | |
4464 | if ac_fn_c_try_compile "$LINENO"; then : | |
4465 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
4466 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4467 | (eval $am_ar_try) 2>&5 | |
4468 | ac_status=$? | |
4469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4470 | test $ac_status = 0; } | |
4471 | if test "$ac_status" -eq 0; then | |
4472 | am_cv_ar_interface=ar | |
4473 | else | |
4474 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
4475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4476 | (eval $am_ar_try) 2>&5 | |
4477 | ac_status=$? | |
4478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4479 | test $ac_status = 0; } | |
4480 | if test "$ac_status" -eq 0; then | |
4481 | am_cv_ar_interface=lib | |
4482 | else | |
4483 | am_cv_ar_interface=unknown | |
4484 | fi | |
4485 | fi | |
4486 | rm -f conftest.lib libconftest.a | |
4487 | ||
4488 | fi | |
4489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4490 | ac_ext=c | |
4491 | ac_cpp='$CPP $CPPFLAGS' | |
4492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4495 | ||
4496 | fi | |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
4498 | $as_echo "$am_cv_ar_interface" >&6; } | |
4499 | ||
4500 | case $am_cv_ar_interface in | |
4501 | ar) | |
4502 | ;; | |
4503 | lib) | |
4504 | # Microsoft lib, so override with the ar-lib wrapper script. | |
4505 | # FIXME: It is wrong to rewrite AR. | |
4506 | # But if we don't then we get into trouble of one sort or another. | |
4507 | # A longer-term fix would be to have automake use am__AR in this case, | |
4508 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
4509 | # similar. | |
4510 | AR="$am_aux_dir/ar-lib $AR" | |
4511 | ;; | |
4512 | unknown) | |
4513 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
4514 | ;; | |
4515 | esac | |
4516 | ||
4517 | ||
4518 | case `pwd` in | |
4519 | *\ * | *\ *) | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4521 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4522 | esac | |
4523 | ||
4524 | ||
4525 | ||
4526 | macro_version='2.4.2' | |
4527 | macro_revision='1.3337' | |
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ltmain="$ac_aux_dir/ltmain.sh" | |
4542 | ||
4543 | # Make sure we can run config.sub. | |
4544 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4545 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4546 | ||
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4548 | $as_echo_n "checking build system type... " >&6; } | |
4549 | if ${ac_cv_build+:} false; then : | |
4550 | $as_echo_n "(cached) " >&6 | |
4551 | else | |
4552 | ac_build_alias=$build_alias | |
4553 | test "x$ac_build_alias" = x && | |
4554 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4555 | test "x$ac_build_alias" = x && | |
4556 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4557 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4558 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4559 | ||
4560 | fi | |
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4562 | $as_echo "$ac_cv_build" >&6; } | |
4563 | case $ac_cv_build in | |
4564 | *-*-*) ;; | |
4565 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4566 | esac | |
4567 | build=$ac_cv_build | |
4568 | ac_save_IFS=$IFS; IFS='-' | |
4569 | set x $ac_cv_build | |
4570 | shift | |
4571 | build_cpu=$1 | |
4572 | build_vendor=$2 | |
4573 | shift; shift | |
4574 | # Remember, the first character of IFS is used to create $*, | |
4575 | # except with old shells: | |
4576 | build_os=$* | |
4577 | IFS=$ac_save_IFS | |
4578 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4579 | ||
4580 | ||
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4582 | $as_echo_n "checking host system type... " >&6; } | |
4583 | if ${ac_cv_host+:} false; then : | |
4584 | $as_echo_n "(cached) " >&6 | |
4585 | else | |
4586 | if test "x$host_alias" = x; then | |
4587 | ac_cv_host=$ac_cv_build | |
4588 | else | |
4589 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4590 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4591 | fi | |
4592 | ||
4593 | fi | |
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4595 | $as_echo "$ac_cv_host" >&6; } | |
4596 | case $ac_cv_host in | |
4597 | *-*-*) ;; | |
4598 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4599 | esac | |
4600 | host=$ac_cv_host | |
4601 | ac_save_IFS=$IFS; IFS='-' | |
4602 | set x $ac_cv_host | |
4603 | shift | |
4604 | host_cpu=$1 | |
4605 | host_vendor=$2 | |
4606 | shift; shift | |
4607 | # Remember, the first character of IFS is used to create $*, | |
4608 | # except with old shells: | |
4609 | host_os=$* | |
4610 | IFS=$ac_save_IFS | |
4611 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4612 | ||
4613 | ||
4614 | # Backslashify metacharacters that are still active within | |
4615 | # double-quoted strings. | |
4616 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4617 | ||
4618 | # Same as above, but do not quote variable references. | |
4619 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4620 | ||
4621 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4622 | # double_quote_subst'ed string. | |
4623 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4624 | ||
4625 | # Sed substitution to delay expansion of an escaped single quote. | |
4626 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4627 | ||
4628 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4629 | no_glob_subst='s/\*/\\\*/g' | |
4630 | ||
4631 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4632 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4633 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4634 | ||
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4636 | $as_echo_n "checking how to print strings... " >&6; } | |
4637 | # Test print first, because it will be a builtin if present. | |
4638 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4639 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4640 | ECHO='print -r --' | |
4641 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4642 | ECHO='printf %s\n' | |
4643 | else | |
4644 | # Use this function as a fallback that always works. | |
4645 | func_fallback_echo () | |
4646 | { | |
4647 | eval 'cat <<_LTECHO_EOF | |
4648 | $1 | |
4649 | _LTECHO_EOF' | |
4650 | } | |
4651 | ECHO='func_fallback_echo' | |
4652 | fi | |
4653 | ||
4654 | # func_echo_all arg... | |
4655 | # Invoke $ECHO with all args, space-separated. | |
4656 | func_echo_all () | |
4657 | { | |
4658 | $ECHO "" | |
4659 | } | |
4660 | ||
4661 | case "$ECHO" in | |
4662 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4663 | $as_echo "printf" >&6; } ;; | |
4664 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4665 | $as_echo "print -r" >&6; } ;; | |
4666 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4667 | $as_echo "cat" >&6; } ;; | |
4668 | esac | |
4669 | ||
4670 | ||
4671 | ||
4672 | ||
4673 | ||
4674 | ||
4675 | ||
4676 | ||
4677 | ||
4678 | ||
4679 | ||
4680 | ||
4681 | ||
4682 | ||
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4684 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4685 | if ${ac_cv_path_SED+:} false; then : | |
4686 | $as_echo_n "(cached) " >&6 | |
4687 | else | |
4688 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4689 | for ac_i in 1 2 3 4 5 6 7; do | |
4690 | ac_script="$ac_script$as_nl$ac_script" | |
4691 | done | |
4692 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4693 | { ac_script=; unset ac_script;} | |
4694 | if test -z "$SED"; then | |
4695 | ac_path_SED_found=false | |
4696 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4698 | for as_dir in $PATH | |
4699 | do | |
4700 | IFS=$as_save_IFS | |
4701 | test -z "$as_dir" && as_dir=. | |
4702 | for ac_prog in sed gsed; do | |
4703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4704 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4705 | as_fn_executable_p "$ac_path_SED" || continue | |
4706 | # Check for GNU ac_path_SED and select it if it is found. | |
4707 | # Check for GNU $ac_path_SED | |
4708 | case `"$ac_path_SED" --version 2>&1` in | |
4709 | *GNU*) | |
4710 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4711 | *) | |
4712 | ac_count=0 | |
4713 | $as_echo_n 0123456789 >"conftest.in" | |
4714 | while : | |
4715 | do | |
4716 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4717 | mv "conftest.tmp" "conftest.in" | |
4718 | cp "conftest.in" "conftest.nl" | |
4719 | $as_echo '' >> "conftest.nl" | |
4720 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4721 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4722 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4723 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4724 | # Best one so far, save it but keep looking for a better one | |
4725 | ac_cv_path_SED="$ac_path_SED" | |
4726 | ac_path_SED_max=$ac_count | |
4727 | fi | |
4728 | # 10*(2^10) chars as input seems more than enough | |
4729 | test $ac_count -gt 10 && break | |
4730 | done | |
4731 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4732 | esac | |
4733 | ||
4734 | $ac_path_SED_found && break 3 | |
4735 | done | |
4736 | done | |
4737 | done | |
4738 | IFS=$as_save_IFS | |
4739 | if test -z "$ac_cv_path_SED"; then | |
4740 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4741 | fi | |
4742 | else | |
4743 | ac_cv_path_SED=$SED | |
4744 | fi | |
4745 | ||
4746 | fi | |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4748 | $as_echo "$ac_cv_path_SED" >&6; } | |
4749 | SED="$ac_cv_path_SED" | |
4750 | rm -f conftest.sed | |
4751 | ||
4752 | test -z "$SED" && SED=sed | |
4753 | Xsed="$SED -e 1s/^X//" | |
4754 | ||
4755 | ||
4756 | ||
4757 | ||
4758 | ||
4759 | ||
4760 | ||
4761 | ||
4762 | ||
4763 | ||
4764 | ||
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4766 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4767 | if ${ac_cv_path_GREP+:} false; then : | |
4768 | $as_echo_n "(cached) " >&6 | |
4769 | else | |
4770 | if test -z "$GREP"; then | |
4771 | ac_path_GREP_found=false | |
4772 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4774 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4775 | do | |
4776 | IFS=$as_save_IFS | |
4777 | test -z "$as_dir" && as_dir=. | |
4778 | for ac_prog in grep ggrep; do | |
4779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4780 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4781 | as_fn_executable_p "$ac_path_GREP" || continue | |
4782 | # Check for GNU ac_path_GREP and select it if it is found. | |
4783 | # Check for GNU $ac_path_GREP | |
4784 | case `"$ac_path_GREP" --version 2>&1` in | |
4785 | *GNU*) | |
4786 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4787 | *) | |
4788 | ac_count=0 | |
4789 | $as_echo_n 0123456789 >"conftest.in" | |
4790 | while : | |
4791 | do | |
4792 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4793 | mv "conftest.tmp" "conftest.in" | |
4794 | cp "conftest.in" "conftest.nl" | |
4795 | $as_echo 'GREP' >> "conftest.nl" | |
4796 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4797 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4798 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4799 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4800 | # Best one so far, save it but keep looking for a better one | |
4801 | ac_cv_path_GREP="$ac_path_GREP" | |
4802 | ac_path_GREP_max=$ac_count | |
4803 | fi | |
4804 | # 10*(2^10) chars as input seems more than enough | |
4805 | test $ac_count -gt 10 && break | |
4806 | done | |
4807 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4808 | esac | |
4809 | ||
4810 | $ac_path_GREP_found && break 3 | |
4811 | done | |
4812 | done | |
4813 | done | |
4814 | IFS=$as_save_IFS | |
4815 | if test -z "$ac_cv_path_GREP"; then | |
4816 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4817 | fi | |
4818 | else | |
4819 | ac_cv_path_GREP=$GREP | |
4820 | fi | |
4821 | ||
4822 | fi | |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4824 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4825 | GREP="$ac_cv_path_GREP" | |
4826 | ||
4827 | ||
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4829 | $as_echo_n "checking for egrep... " >&6; } | |
4830 | if ${ac_cv_path_EGREP+:} false; then : | |
4831 | $as_echo_n "(cached) " >&6 | |
4832 | else | |
4833 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4834 | then ac_cv_path_EGREP="$GREP -E" | |
4835 | else | |
4836 | if test -z "$EGREP"; then | |
4837 | ac_path_EGREP_found=false | |
4838 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4840 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4841 | do | |
4842 | IFS=$as_save_IFS | |
4843 | test -z "$as_dir" && as_dir=. | |
4844 | for ac_prog in egrep; do | |
4845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4846 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4847 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4848 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4849 | # Check for GNU $ac_path_EGREP | |
4850 | case `"$ac_path_EGREP" --version 2>&1` in | |
4851 | *GNU*) | |
4852 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4853 | *) | |
4854 | ac_count=0 | |
4855 | $as_echo_n 0123456789 >"conftest.in" | |
4856 | while : | |
4857 | do | |
4858 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4859 | mv "conftest.tmp" "conftest.in" | |
4860 | cp "conftest.in" "conftest.nl" | |
4861 | $as_echo 'EGREP' >> "conftest.nl" | |
4862 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4863 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4864 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4865 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4866 | # Best one so far, save it but keep looking for a better one | |
4867 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4868 | ac_path_EGREP_max=$ac_count | |
4869 | fi | |
4870 | # 10*(2^10) chars as input seems more than enough | |
4871 | test $ac_count -gt 10 && break | |
4872 | done | |
4873 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4874 | esac | |
4875 | ||
4876 | $ac_path_EGREP_found && break 3 | |
4877 | done | |
4878 | done | |
4879 | done | |
4880 | IFS=$as_save_IFS | |
4881 | if test -z "$ac_cv_path_EGREP"; then | |
4882 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4883 | fi | |
4884 | else | |
4885 | ac_cv_path_EGREP=$EGREP | |
4886 | fi | |
4887 | ||
4888 | fi | |
4889 | fi | |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4891 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4892 | EGREP="$ac_cv_path_EGREP" | |
4893 | ||
4894 | ||
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4896 | $as_echo_n "checking for fgrep... " >&6; } | |
4897 | if ${ac_cv_path_FGREP+:} false; then : | |
4898 | $as_echo_n "(cached) " >&6 | |
4899 | else | |
4900 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4901 | then ac_cv_path_FGREP="$GREP -F" | |
4902 | else | |
4903 | if test -z "$FGREP"; then | |
4904 | ac_path_FGREP_found=false | |
4905 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4907 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4908 | do | |
4909 | IFS=$as_save_IFS | |
4910 | test -z "$as_dir" && as_dir=. | |
4911 | for ac_prog in fgrep; do | |
4912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4913 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4914 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4915 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4916 | # Check for GNU $ac_path_FGREP | |
4917 | case `"$ac_path_FGREP" --version 2>&1` in | |
4918 | *GNU*) | |
4919 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4920 | *) | |
4921 | ac_count=0 | |
4922 | $as_echo_n 0123456789 >"conftest.in" | |
4923 | while : | |
4924 | do | |
4925 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4926 | mv "conftest.tmp" "conftest.in" | |
4927 | cp "conftest.in" "conftest.nl" | |
4928 | $as_echo 'FGREP' >> "conftest.nl" | |
4929 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4930 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4931 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4932 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4933 | # Best one so far, save it but keep looking for a better one | |
4934 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4935 | ac_path_FGREP_max=$ac_count | |
4936 | fi | |
4937 | # 10*(2^10) chars as input seems more than enough | |
4938 | test $ac_count -gt 10 && break | |
4939 | done | |
4940 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4941 | esac | |
4942 | ||
4943 | $ac_path_FGREP_found && break 3 | |
4944 | done | |
4945 | done | |
4946 | done | |
4947 | IFS=$as_save_IFS | |
4948 | if test -z "$ac_cv_path_FGREP"; then | |
4949 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4950 | fi | |
4951 | else | |
4952 | ac_cv_path_FGREP=$FGREP | |
4953 | fi | |
4954 | ||
4955 | fi | |
4956 | fi | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4958 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4959 | FGREP="$ac_cv_path_FGREP" | |
4960 | ||
4961 | ||
4962 | test -z "$GREP" && GREP=grep | |
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | ||
4980 | ||
4981 | ||
4982 | # Check whether --with-gnu-ld was given. | |
4983 | if test "${with_gnu_ld+set}" = set; then : | |
4984 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4985 | else | |
4986 | with_gnu_ld=no | |
4987 | fi | |
4988 | ||
4989 | ac_prog=ld | |
4990 | if test "$GCC" = yes; then | |
4991 | # Check if gcc -print-prog-name=ld gives a path. | |
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4993 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4994 | case $host in | |
4995 | *-*-mingw*) | |
4996 | # gcc leaves a trailing carriage return which upsets mingw | |
4997 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4998 | *) | |
4999 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5000 | esac | |
5001 | case $ac_prog in | |
5002 | # Accept absolute paths. | |
5003 | [\\/]* | ?:[\\/]*) | |
5004 | re_direlt='/[^/][^/]*/\.\./' | |
5005 | # Canonicalize the pathname of ld | |
5006 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5007 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5008 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5009 | done | |
5010 | test -z "$LD" && LD="$ac_prog" | |
5011 | ;; | |
5012 | "") | |
5013 | # If it fails, then pretend we aren't using GCC. | |
5014 | ac_prog=ld | |
5015 | ;; | |
5016 | *) | |
5017 | # If it is relative, then search for the first ld in PATH. | |
5018 | with_gnu_ld=unknown | |
5019 | ;; | |
5020 | esac | |
5021 | elif test "$with_gnu_ld" = yes; then | |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5023 | $as_echo_n "checking for GNU ld... " >&6; } | |
5024 | else | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5026 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5027 | fi | |
5028 | if ${lt_cv_path_LD+:} false; then : | |
5029 | $as_echo_n "(cached) " >&6 | |
5030 | else | |
5031 | if test -z "$LD"; then | |
5032 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5033 | for ac_dir in $PATH; do | |
5034 | IFS="$lt_save_ifs" | |
5035 | test -z "$ac_dir" && ac_dir=. | |
5036 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5037 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5038 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5039 | # but apparently some variants of GNU ld only accept -v. | |
5040 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5041 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5042 | *GNU* | *'with BFD'*) | |
5043 | test "$with_gnu_ld" != no && break | |
5044 | ;; | |
5045 | *) | |
5046 | test "$with_gnu_ld" != yes && break | |
5047 | ;; | |
5048 | esac | |
5049 | fi | |
5050 | done | |
5051 | IFS="$lt_save_ifs" | |
5052 | else | |
5053 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5054 | fi | |
5055 | fi | |
5056 | ||
5057 | LD="$lt_cv_path_LD" | |
5058 | if test -n "$LD"; then | |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5060 | $as_echo "$LD" >&6; } | |
5061 | else | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5063 | $as_echo "no" >&6; } | |
5064 | fi | |
5065 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5067 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5068 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5069 | $as_echo_n "(cached) " >&6 | |
5070 | else | |
5071 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5072 | case `$LD -v 2>&1 </dev/null` in | |
5073 | *GNU* | *'with BFD'*) | |
5074 | lt_cv_prog_gnu_ld=yes | |
5075 | ;; | |
5076 | *) | |
5077 | lt_cv_prog_gnu_ld=no | |
5078 | ;; | |
5079 | esac | |
5080 | fi | |
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5082 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5083 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5084 | ||
5085 | ||
5086 | ||
5087 | ||
5088 | ||
5089 | ||
5090 | ||
5091 | ||
5092 | ||
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5094 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5095 | if ${lt_cv_path_NM+:} false; then : | |
5096 | $as_echo_n "(cached) " >&6 | |
5097 | else | |
5098 | if test -n "$NM"; then | |
5099 | # Let the user override the test. | |
5100 | lt_cv_path_NM="$NM" | |
5101 | else | |
5102 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5103 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5104 | lt_nm_to_check="$lt_nm_to_check nm" | |
5105 | fi | |
5106 | for lt_tmp_nm in $lt_nm_to_check; do | |
5107 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5108 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5109 | IFS="$lt_save_ifs" | |
5110 | test -z "$ac_dir" && ac_dir=. | |
5111 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5112 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5113 | # Check to see if the nm accepts a BSD-compat flag. | |
5114 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5115 | # nm: unknown option "B" ignored | |
5116 | # Tru64's nm complains that /dev/null is an invalid object file | |
5117 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5118 | */dev/null* | *'Invalid file or object type'*) | |
5119 | lt_cv_path_NM="$tmp_nm -B" | |
5120 | break | |
5121 | ;; | |
5122 | *) | |
5123 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5124 | */dev/null*) | |
5125 | lt_cv_path_NM="$tmp_nm -p" | |
5126 | break | |
5127 | ;; | |
5128 | *) | |
5129 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5130 | continue # so that we can try to find one that supports BSD flags | |
5131 | ;; | |
5132 | esac | |
5133 | ;; | |
5134 | esac | |
5135 | fi | |
5136 | done | |
5137 | IFS="$lt_save_ifs" | |
5138 | done | |
5139 | : ${lt_cv_path_NM=no} | |
5140 | fi | |
5141 | fi | |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5143 | $as_echo "$lt_cv_path_NM" >&6; } | |
5144 | if test "$lt_cv_path_NM" != "no"; then | |
5145 | NM="$lt_cv_path_NM" | |
5146 | else | |
5147 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5148 | if test -n "$DUMPBIN"; then : | |
5149 | # Let the user override the test. | |
5150 | else | |
5151 | if test -n "$ac_tool_prefix"; then | |
5152 | for ac_prog in dumpbin "link -dump" | |
5153 | do | |
5154 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5155 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5157 | $as_echo_n "checking for $ac_word... " >&6; } | |
5158 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5159 | $as_echo_n "(cached) " >&6 | |
5160 | else | |
5161 | if test -n "$DUMPBIN"; then | |
5162 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5163 | else | |
5164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5165 | for as_dir in $PATH | |
5166 | do | |
5167 | IFS=$as_save_IFS | |
5168 | test -z "$as_dir" && as_dir=. | |
5169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5171 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5173 | break 2 | |
5174 | fi | |
5175 | done | |
5176 | done | |
5177 | IFS=$as_save_IFS | |
5178 | ||
5179 | fi | |
5180 | fi | |
5181 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5182 | if test -n "$DUMPBIN"; then | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5184 | $as_echo "$DUMPBIN" >&6; } | |
5185 | else | |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5187 | $as_echo "no" >&6; } | |
5188 | fi | |
5189 | ||
5190 | ||
5191 | test -n "$DUMPBIN" && break | |
5192 | done | |
5193 | fi | |
5194 | if test -z "$DUMPBIN"; then | |
5195 | ac_ct_DUMPBIN=$DUMPBIN | |
5196 | for ac_prog in dumpbin "link -dump" | |
5197 | do | |
5198 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5199 | set dummy $ac_prog; ac_word=$2 | |
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5201 | $as_echo_n "checking for $ac_word... " >&6; } | |
5202 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5203 | $as_echo_n "(cached) " >&6 | |
5204 | else | |
5205 | if test -n "$ac_ct_DUMPBIN"; then | |
5206 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5207 | else | |
5208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5209 | for as_dir in $PATH | |
5210 | do | |
5211 | IFS=$as_save_IFS | |
5212 | test -z "$as_dir" && as_dir=. | |
5213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5215 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5217 | break 2 | |
5218 | fi | |
5219 | done | |
5220 | done | |
5221 | IFS=$as_save_IFS | |
5222 | ||
5223 | fi | |
5224 | fi | |
5225 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5226 | if test -n "$ac_ct_DUMPBIN"; then | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5228 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5229 | else | |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5231 | $as_echo "no" >&6; } | |
5232 | fi | |
5233 | ||
5234 | ||
5235 | test -n "$ac_ct_DUMPBIN" && break | |
5236 | done | |
5237 | ||
5238 | if test "x$ac_ct_DUMPBIN" = x; then | |
5239 | DUMPBIN=":" | |
5240 | else | |
5241 | case $cross_compiling:$ac_tool_warned in | |
5242 | yes:) | |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5244 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5245 | ac_tool_warned=yes ;; | |
5246 | esac | |
5247 | DUMPBIN=$ac_ct_DUMPBIN | |
5248 | fi | |
5249 | fi | |
5250 | ||
5251 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5252 | *COFF*) | |
5253 | DUMPBIN="$DUMPBIN -symbols" | |
5254 | ;; | |
5255 | *) | |
5256 | DUMPBIN=: | |
5257 | ;; | |
5258 | esac | |
5259 | fi | |
5260 | ||
5261 | if test "$DUMPBIN" != ":"; then | |
5262 | NM="$DUMPBIN" | |
5263 | fi | |
5264 | fi | |
5265 | test -z "$NM" && NM=nm | |
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5273 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5274 | if ${lt_cv_nm_interface+:} false; then : | |
5275 | $as_echo_n "(cached) " >&6 | |
5276 | else | |
5277 | lt_cv_nm_interface="BSD nm" | |
5278 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5279 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5280 | (eval "$ac_compile" 2>conftest.err) | |
5281 | cat conftest.err >&5 | |
5282 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5283 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5284 | cat conftest.err >&5 | |
5285 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5286 | cat conftest.out >&5 | |
5287 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5288 | lt_cv_nm_interface="MS dumpbin" | |
5289 | fi | |
5290 | rm -f conftest* | |
5291 | fi | |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5293 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5294 | ||
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5296 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5297 | LN_S=$as_ln_s | |
5298 | if test "$LN_S" = "ln -s"; then | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5300 | $as_echo "yes" >&6; } | |
5301 | else | |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5303 | $as_echo "no, using $LN_S" >&6; } | |
5304 | fi | |
5305 | ||
5306 | # find the maximum length of command line arguments | |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5308 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5309 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5310 | $as_echo_n "(cached) " >&6 | |
5311 | else | |
5312 | i=0 | |
5313 | teststring="ABCD" | |
5314 | ||
5315 | case $build_os in | |
5316 | msdosdjgpp*) | |
5317 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5318 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5319 | # during glob expansion). Even if it were fixed, the result of this | |
5320 | # check would be larger than it should be. | |
5321 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5322 | ;; | |
5323 | ||
5324 | gnu*) | |
5325 | # Under GNU Hurd, this test is not required because there is | |
5326 | # no limit to the length of command line arguments. | |
5327 | # Libtool will interpret -1 as no limit whatsoever | |
5328 | lt_cv_sys_max_cmd_len=-1; | |
5329 | ;; | |
5330 | ||
5331 | cygwin* | mingw* | cegcc*) | |
5332 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5333 | # about 5 minutes as the teststring grows exponentially. | |
5334 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5335 | # you end up with a "frozen" computer, even though with patience | |
5336 | # the test eventually succeeds (with a max line length of 256k). | |
5337 | # Instead, let's just punt: use the minimum linelength reported by | |
5338 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5339 | lt_cv_sys_max_cmd_len=8192; | |
5340 | ;; | |
5341 | ||
5342 | mint*) | |
5343 | # On MiNT this can take a long time and run out of memory. | |
5344 | lt_cv_sys_max_cmd_len=8192; | |
5345 | ;; | |
5346 | ||
5347 | amigaos*) | |
5348 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5349 | # So we just punt and use a minimum line length of 8192. | |
5350 | lt_cv_sys_max_cmd_len=8192; | |
5351 | ;; | |
5352 | ||
5353 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5354 | # This has been around since 386BSD, at least. Likely further. | |
5355 | if test -x /sbin/sysctl; then | |
5356 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5357 | elif test -x /usr/sbin/sysctl; then | |
5358 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5359 | else | |
5360 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5361 | fi | |
5362 | # And add a safety zone | |
5363 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5364 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5365 | ;; | |
5366 | ||
5367 | interix*) | |
5368 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5369 | lt_cv_sys_max_cmd_len=196608 | |
5370 | ;; | |
5371 | ||
5372 | os2*) | |
5373 | # The test takes a long time on OS/2. | |
5374 | lt_cv_sys_max_cmd_len=8192 | |
5375 | ;; | |
5376 | ||
5377 | osf*) | |
5378 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5379 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5380 | # nice to cause kernel panics so lets avoid the loop below. | |
5381 | # First set a reasonable default. | |
5382 | lt_cv_sys_max_cmd_len=16384 | |
5383 | # | |
5384 | if test -x /sbin/sysconfig; then | |
5385 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5386 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5387 | esac | |
5388 | fi | |
5389 | ;; | |
5390 | sco3.2v5*) | |
5391 | lt_cv_sys_max_cmd_len=102400 | |
5392 | ;; | |
5393 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5394 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5395 | if test -n "$kargmax"; then | |
5396 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5397 | else | |
5398 | lt_cv_sys_max_cmd_len=32768 | |
5399 | fi | |
5400 | ;; | |
5401 | *) | |
5402 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5403 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5404 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5405 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5406 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5407 | else | |
5408 | # Make teststring a little bigger before we do anything with it. | |
5409 | # a 1K string should be a reasonable start. | |
5410 | for i in 1 2 3 4 5 6 7 8 ; do | |
5411 | teststring=$teststring$teststring | |
5412 | done | |
5413 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5414 | # If test is not a shell built-in, we'll probably end up computing a | |
5415 | # maximum length that is only half of the actual maximum length, but | |
5416 | # we can't tell. | |
5417 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5418 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5419 | test $i != 17 # 1/2 MB should be enough | |
5420 | do | |
5421 | i=`expr $i + 1` | |
5422 | teststring=$teststring$teststring | |
5423 | done | |
5424 | # Only check the string length outside the loop. | |
5425 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5426 | teststring= | |
5427 | # Add a significant safety factor because C++ compilers can tack on | |
5428 | # massive amounts of additional arguments before passing them to the | |
5429 | # linker. It appears as though 1/2 is a usable value. | |
5430 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5431 | fi | |
5432 | ;; | |
5433 | esac | |
5434 | ||
5435 | fi | |
5436 | ||
5437 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5439 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5440 | else | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5442 | $as_echo "none" >&6; } | |
5443 | fi | |
5444 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | : ${CP="cp -f"} | |
5452 | : ${MV="mv -f"} | |
5453 | : ${RM="rm -f"} | |
5454 | ||
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5456 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5457 | # Try some XSI features | |
5458 | xsi_shell=no | |
5459 | ( _lt_dummy="a/b/c" | |
5460 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5461 | = c,a/b,b/c, \ | |
5462 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5463 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5464 | && xsi_shell=yes | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5466 | $as_echo "$xsi_shell" >&6; } | |
5467 | ||
5468 | ||
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5470 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5471 | lt_shell_append=no | |
5472 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5473 | >/dev/null 2>&1 \ | |
5474 | && lt_shell_append=yes | |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5476 | $as_echo "$lt_shell_append" >&6; } | |
5477 | ||
5478 | ||
5479 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5480 | lt_unset=unset | |
5481 | else | |
5482 | lt_unset=false | |
5483 | fi | |
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | # test EBCDIC or ASCII | |
5490 | case `echo X|tr X '\101'` in | |
5491 | A) # ASCII based system | |
5492 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5493 | lt_SP2NL='tr \040 \012' | |
5494 | lt_NL2SP='tr \015\012 \040\040' | |
5495 | ;; | |
5496 | *) # EBCDIC based system | |
5497 | lt_SP2NL='tr \100 \n' | |
5498 | lt_NL2SP='tr \r\n \100\100' | |
5499 | ;; | |
5500 | esac | |
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5511 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5512 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5513 | $as_echo_n "(cached) " >&6 | |
5514 | else | |
5515 | case $host in | |
5516 | *-*-mingw* ) | |
5517 | case $build in | |
5518 | *-*-mingw* ) # actually msys | |
5519 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5520 | ;; | |
5521 | *-*-cygwin* ) | |
5522 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5523 | ;; | |
5524 | * ) # otherwise, assume *nix | |
5525 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5526 | ;; | |
5527 | esac | |
5528 | ;; | |
5529 | *-*-cygwin* ) | |
5530 | case $build in | |
5531 | *-*-mingw* ) # actually msys | |
5532 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5533 | ;; | |
5534 | *-*-cygwin* ) | |
5535 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5536 | ;; | |
5537 | * ) # otherwise, assume *nix | |
5538 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5539 | ;; | |
5540 | esac | |
5541 | ;; | |
5542 | * ) # unhandled hosts (and "normal" native builds) | |
5543 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5544 | ;; | |
5545 | esac | |
5546 | ||
5547 | fi | |
5548 | ||
5549 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5551 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5558 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5559 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5560 | $as_echo_n "(cached) " >&6 | |
5561 | else | |
5562 | #assume ordinary cross tools, or native build. | |
5563 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5564 | case $host in | |
5565 | *-*-mingw* ) | |
5566 | case $build in | |
5567 | *-*-mingw* ) # actually msys | |
5568 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5569 | ;; | |
5570 | esac | |
5571 | ;; | |
5572 | esac | |
5573 | ||
5574 | fi | |
5575 | ||
5576 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5578 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5585 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5586 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5587 | $as_echo_n "(cached) " >&6 | |
5588 | else | |
5589 | lt_cv_ld_reload_flag='-r' | |
5590 | fi | |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5592 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5593 | reload_flag=$lt_cv_ld_reload_flag | |
5594 | case $reload_flag in | |
5595 | "" | " "*) ;; | |
5596 | *) reload_flag=" $reload_flag" ;; | |
5597 | esac | |
5598 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5599 | case $host_os in | |
5600 | cygwin* | mingw* | pw32* | cegcc*) | |
5601 | if test "$GCC" != yes; then | |
5602 | reload_cmds=false | |
5603 | fi | |
5604 | ;; | |
5605 | darwin*) | |
5606 | if test "$GCC" = yes; then | |
5607 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5608 | else | |
5609 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5610 | fi | |
5611 | ;; | |
5612 | esac | |
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | if test -n "$ac_tool_prefix"; then | |
5623 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5624 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5626 | $as_echo_n "checking for $ac_word... " >&6; } | |
5627 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5628 | $as_echo_n "(cached) " >&6 | |
5629 | else | |
5630 | if test -n "$OBJDUMP"; then | |
5631 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5632 | else | |
5633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5634 | for as_dir in $PATH | |
5635 | do | |
5636 | IFS=$as_save_IFS | |
5637 | test -z "$as_dir" && as_dir=. | |
5638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5640 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5642 | break 2 | |
5643 | fi | |
5644 | done | |
5645 | done | |
5646 | IFS=$as_save_IFS | |
5647 | ||
5648 | fi | |
5649 | fi | |
5650 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5651 | if test -n "$OBJDUMP"; then | |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5653 | $as_echo "$OBJDUMP" >&6; } | |
5654 | else | |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5656 | $as_echo "no" >&6; } | |
5657 | fi | |
5658 | ||
5659 | ||
5660 | fi | |
5661 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5662 | ac_ct_OBJDUMP=$OBJDUMP | |
5663 | # Extract the first word of "objdump", so it can be a program name with args. | |
5664 | set dummy objdump; ac_word=$2 | |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5666 | $as_echo_n "checking for $ac_word... " >&6; } | |
5667 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5668 | $as_echo_n "(cached) " >&6 | |
5669 | else | |
5670 | if test -n "$ac_ct_OBJDUMP"; then | |
5671 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5672 | else | |
5673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5674 | for as_dir in $PATH | |
5675 | do | |
5676 | IFS=$as_save_IFS | |
5677 | test -z "$as_dir" && as_dir=. | |
5678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5680 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5682 | break 2 | |
5683 | fi | |
5684 | done | |
5685 | done | |
5686 | IFS=$as_save_IFS | |
5687 | ||
5688 | fi | |
5689 | fi | |
5690 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5691 | if test -n "$ac_ct_OBJDUMP"; then | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5693 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5694 | else | |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5696 | $as_echo "no" >&6; } | |
5697 | fi | |
5698 | ||
5699 | if test "x$ac_ct_OBJDUMP" = x; then | |
5700 | OBJDUMP="false" | |
5701 | else | |
5702 | case $cross_compiling:$ac_tool_warned in | |
5703 | yes:) | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5705 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5706 | ac_tool_warned=yes ;; | |
5707 | esac | |
5708 | OBJDUMP=$ac_ct_OBJDUMP | |
5709 | fi | |
5710 | else | |
5711 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5712 | fi | |
5713 | ||
5714 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5725 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5726 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5727 | $as_echo_n "(cached) " >&6 | |
5728 | else | |
5729 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5730 | lt_cv_file_magic_test_file= | |
5731 | lt_cv_deplibs_check_method='unknown' | |
5732 | # Need to set the preceding variable on all platforms that support | |
5733 | # interlibrary dependencies. | |
5734 | # 'none' -- dependencies not supported. | |
5735 | # `unknown' -- same as none, but documents that we really don't know. | |
5736 | # 'pass_all' -- all dependencies passed with no checks. | |
5737 | # 'test_compile' -- check by making test program. | |
5738 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5739 | # which responds to the $file_magic_cmd with a given extended regex. | |
5740 | # If you have `file' or equivalent on your system and you're not sure | |
5741 | # whether `pass_all' will *always* work, you probably want this one. | |
5742 | ||
5743 | case $host_os in | |
5744 | aix[4-9]*) | |
5745 | lt_cv_deplibs_check_method=pass_all | |
5746 | ;; | |
5747 | ||
5748 | beos*) | |
5749 | lt_cv_deplibs_check_method=pass_all | |
5750 | ;; | |
5751 | ||
5752 | bsdi[45]*) | |
5753 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5754 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5755 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5756 | ;; | |
5757 | ||
5758 | cygwin*) | |
5759 | # func_win32_libid is a shell function defined in ltmain.sh | |
5760 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5761 | lt_cv_file_magic_cmd='func_win32_libid' | |
5762 | ;; | |
5763 | ||
5764 | mingw* | pw32*) | |
5765 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5766 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5767 | # unless we find 'file', for example because we are cross-compiling. | |
5768 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5769 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5770 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5771 | lt_cv_file_magic_cmd='func_win32_libid' | |
5772 | else | |
5773 | # Keep this pattern in sync with the one in func_win32_libid. | |
5774 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5775 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5776 | fi | |
5777 | ;; | |
5778 | ||
5779 | cegcc*) | |
5780 | # use the weaker test based on 'objdump'. See mingw*. | |
5781 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5782 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5783 | ;; | |
5784 | ||
5785 | darwin* | rhapsody*) | |
5786 | lt_cv_deplibs_check_method=pass_all | |
5787 | ;; | |
5788 | ||
5789 | freebsd* | dragonfly*) | |
5790 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5791 | case $host_cpu in | |
5792 | i*86 ) | |
5793 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5794 | # Let's accept both of them until this is cleared up. | |
5795 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5796 | lt_cv_file_magic_cmd=/usr/bin/file | |
5797 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5798 | ;; | |
5799 | esac | |
5800 | else | |
5801 | lt_cv_deplibs_check_method=pass_all | |
5802 | fi | |
5803 | ;; | |
5804 | ||
5805 | haiku*) | |
5806 | lt_cv_deplibs_check_method=pass_all | |
5807 | ;; | |
5808 | ||
5809 | hpux10.20* | hpux11*) | |
5810 | lt_cv_file_magic_cmd=/usr/bin/file | |
5811 | case $host_cpu in | |
5812 | ia64*) | |
5813 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5814 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5815 | ;; | |
5816 | hppa*64*) | |
5817 | 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]' | |
5818 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5819 | ;; | |
5820 | *) | |
5821 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5822 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5823 | ;; | |
5824 | esac | |
5825 | ;; | |
5826 | ||
5827 | interix[3-9]*) | |
5828 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5829 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5830 | ;; | |
5831 | ||
5832 | irix5* | irix6* | nonstopux*) | |
5833 | case $LD in | |
5834 | *-32|*"-32 ") libmagic=32-bit;; | |
5835 | *-n32|*"-n32 ") libmagic=N32;; | |
5836 | *-64|*"-64 ") libmagic=64-bit;; | |
5837 | *) libmagic=never-match;; | |
5838 | esac | |
5839 | lt_cv_deplibs_check_method=pass_all | |
5840 | ;; | |
5841 | ||
5842 | # This must be glibc/ELF. | |
5843 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5844 | lt_cv_deplibs_check_method=pass_all | |
5845 | ;; | |
5846 | ||
5847 | netbsd* | netbsdelf*-gnu) | |
5848 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5849 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5850 | else | |
5851 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5852 | fi | |
5853 | ;; | |
5854 | ||
5855 | newos6*) | |
5856 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5857 | lt_cv_file_magic_cmd=/usr/bin/file | |
5858 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5859 | ;; | |
5860 | ||
5861 | *nto* | *qnx*) | |
5862 | lt_cv_deplibs_check_method=pass_all | |
5863 | ;; | |
5864 | ||
5865 | openbsd*) | |
5866 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5867 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5868 | else | |
5869 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5870 | fi | |
5871 | ;; | |
5872 | ||
5873 | osf3* | osf4* | osf5*) | |
5874 | lt_cv_deplibs_check_method=pass_all | |
5875 | ;; | |
5876 | ||
5877 | rdos*) | |
5878 | lt_cv_deplibs_check_method=pass_all | |
5879 | ;; | |
5880 | ||
5881 | solaris*) | |
5882 | lt_cv_deplibs_check_method=pass_all | |
5883 | ;; | |
5884 | ||
5885 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5886 | lt_cv_deplibs_check_method=pass_all | |
5887 | ;; | |
5888 | ||
5889 | sysv4 | sysv4.3*) | |
5890 | case $host_vendor in | |
5891 | motorola) | |
5892 | 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]' | |
5893 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5894 | ;; | |
5895 | ncr) | |
5896 | lt_cv_deplibs_check_method=pass_all | |
5897 | ;; | |
5898 | sequent) | |
5899 | lt_cv_file_magic_cmd='/bin/file' | |
5900 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5901 | ;; | |
5902 | sni) | |
5903 | lt_cv_file_magic_cmd='/bin/file' | |
5904 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5905 | lt_cv_file_magic_test_file=/lib/libc.so | |
5906 | ;; | |
5907 | siemens) | |
5908 | lt_cv_deplibs_check_method=pass_all | |
5909 | ;; | |
5910 | pc) | |
5911 | lt_cv_deplibs_check_method=pass_all | |
5912 | ;; | |
5913 | esac | |
5914 | ;; | |
5915 | ||
5916 | tpf*) | |
5917 | lt_cv_deplibs_check_method=pass_all | |
5918 | ;; | |
5919 | esac | |
5920 | ||
5921 | fi | |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5923 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5924 | ||
5925 | file_magic_glob= | |
5926 | want_nocaseglob=no | |
5927 | if test "$build" = "$host"; then | |
5928 | case $host_os in | |
5929 | mingw* | pw32*) | |
5930 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5931 | want_nocaseglob=yes | |
5932 | else | |
5933 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5934 | fi | |
5935 | ;; | |
5936 | esac | |
5937 | fi | |
5938 | ||
5939 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5940 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5941 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | ||
5961 | ||
5962 | ||
5963 | ||
5964 | if test -n "$ac_tool_prefix"; then | |
5965 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5966 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5968 | $as_echo_n "checking for $ac_word... " >&6; } | |
5969 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5970 | $as_echo_n "(cached) " >&6 | |
5971 | else | |
5972 | if test -n "$DLLTOOL"; then | |
5973 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5974 | else | |
5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5976 | for as_dir in $PATH | |
5977 | do | |
5978 | IFS=$as_save_IFS | |
5979 | test -z "$as_dir" && as_dir=. | |
5980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5982 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5984 | break 2 | |
5985 | fi | |
5986 | done | |
5987 | done | |
5988 | IFS=$as_save_IFS | |
5989 | ||
5990 | fi | |
5991 | fi | |
5992 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5993 | if test -n "$DLLTOOL"; then | |
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5995 | $as_echo "$DLLTOOL" >&6; } | |
5996 | else | |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5998 | $as_echo "no" >&6; } | |
5999 | fi | |
6000 | ||
6001 | ||
6002 | fi | |
6003 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6004 | ac_ct_DLLTOOL=$DLLTOOL | |
6005 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6006 | set dummy dlltool; ac_word=$2 | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6008 | $as_echo_n "checking for $ac_word... " >&6; } | |
6009 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6010 | $as_echo_n "(cached) " >&6 | |
6011 | else | |
6012 | if test -n "$ac_ct_DLLTOOL"; then | |
6013 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6014 | else | |
6015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6016 | for as_dir in $PATH | |
6017 | do | |
6018 | IFS=$as_save_IFS | |
6019 | test -z "$as_dir" && as_dir=. | |
6020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6022 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6024 | break 2 | |
6025 | fi | |
6026 | done | |
6027 | done | |
6028 | IFS=$as_save_IFS | |
6029 | ||
6030 | fi | |
6031 | fi | |
6032 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6033 | if test -n "$ac_ct_DLLTOOL"; then | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6035 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6036 | else | |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6038 | $as_echo "no" >&6; } | |
6039 | fi | |
6040 | ||
6041 | if test "x$ac_ct_DLLTOOL" = x; then | |
6042 | DLLTOOL="false" | |
6043 | else | |
6044 | case $cross_compiling:$ac_tool_warned in | |
6045 | yes:) | |
6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6047 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6048 | ac_tool_warned=yes ;; | |
6049 | esac | |
6050 | DLLTOOL=$ac_ct_DLLTOOL | |
6051 | fi | |
6052 | else | |
6053 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6054 | fi | |
6055 | ||
6056 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
6065 | ||
6066 | ||
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6068 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6069 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6070 | $as_echo_n "(cached) " >&6 | |
6071 | else | |
6072 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6073 | ||
6074 | case $host_os in | |
6075 | cygwin* | mingw* | pw32* | cegcc*) | |
6076 | # two different shell functions defined in ltmain.sh | |
6077 | # decide which to use based on capabilities of $DLLTOOL | |
6078 | case `$DLLTOOL --help 2>&1` in | |
6079 | *--identify-strict*) | |
6080 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6081 | ;; | |
6082 | *) | |
6083 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6084 | ;; | |
6085 | esac | |
6086 | ;; | |
6087 | *) | |
6088 | # fallback: assume linklib IS sharedlib | |
6089 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6090 | ;; | |
6091 | esac | |
6092 | ||
6093 | fi | |
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6095 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6096 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6097 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6098 | ||
6099 | ||
6100 | ||
6101 | ||
6102 | ||
6103 | ||
6104 | ||
6105 | if test -n "$ac_tool_prefix"; then | |
6106 | for ac_prog in ar | |
6107 | do | |
6108 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6109 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6111 | $as_echo_n "checking for $ac_word... " >&6; } | |
6112 | if ${ac_cv_prog_AR+:} false; then : | |
6113 | $as_echo_n "(cached) " >&6 | |
6114 | else | |
6115 | if test -n "$AR"; then | |
6116 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6117 | else | |
6118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6119 | for as_dir in $PATH | |
6120 | do | |
6121 | IFS=$as_save_IFS | |
6122 | test -z "$as_dir" && as_dir=. | |
6123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6125 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6127 | break 2 | |
6128 | fi | |
6129 | done | |
6130 | done | |
6131 | IFS=$as_save_IFS | |
6132 | ||
6133 | fi | |
6134 | fi | |
6135 | AR=$ac_cv_prog_AR | |
6136 | if test -n "$AR"; then | |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6138 | $as_echo "$AR" >&6; } | |
6139 | else | |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6141 | $as_echo "no" >&6; } | |
6142 | fi | |
6143 | ||
6144 | ||
6145 | test -n "$AR" && break | |
6146 | done | |
6147 | fi | |
6148 | if test -z "$AR"; then | |
6149 | ac_ct_AR=$AR | |
6150 | for ac_prog in ar | |
6151 | do | |
6152 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6153 | set dummy $ac_prog; ac_word=$2 | |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6155 | $as_echo_n "checking for $ac_word... " >&6; } | |
6156 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6157 | $as_echo_n "(cached) " >&6 | |
6158 | else | |
6159 | if test -n "$ac_ct_AR"; then | |
6160 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6161 | else | |
6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6163 | for as_dir in $PATH | |
6164 | do | |
6165 | IFS=$as_save_IFS | |
6166 | test -z "$as_dir" && as_dir=. | |
6167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6169 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6171 | break 2 | |
6172 | fi | |
6173 | done | |
6174 | done | |
6175 | IFS=$as_save_IFS | |
6176 | ||
6177 | fi | |
6178 | fi | |
6179 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6180 | if test -n "$ac_ct_AR"; then | |
6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6182 | $as_echo "$ac_ct_AR" >&6; } | |
6183 | else | |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6185 | $as_echo "no" >&6; } | |
6186 | fi | |
6187 | ||
6188 | ||
6189 | test -n "$ac_ct_AR" && break | |
6190 | done | |
6191 | ||
6192 | if test "x$ac_ct_AR" = x; then | |
6193 | AR="false" | |
6194 | else | |
6195 | case $cross_compiling:$ac_tool_warned in | |
6196 | yes:) | |
6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6198 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6199 | ac_tool_warned=yes ;; | |
6200 | esac | |
6201 | AR=$ac_ct_AR | |
6202 | fi | |
6203 | fi | |
6204 | ||
6205 | : ${AR=ar} | |
6206 | : ${AR_FLAGS=cru} | |
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6219 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6220 | if ${lt_cv_ar_at_file+:} false; then : | |
6221 | $as_echo_n "(cached) " >&6 | |
6222 | else | |
6223 | lt_cv_ar_at_file=no | |
6224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6225 | /* end confdefs.h. */ | |
6226 | ||
6227 | int | |
6228 | main () | |
6229 | { | |
6230 | ||
6231 | ; | |
6232 | return 0; | |
6233 | } | |
6234 | _ACEOF | |
6235 | if ac_fn_c_try_compile "$LINENO"; then : | |
6236 | echo conftest.$ac_objext > conftest.lst | |
6237 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6238 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6239 | (eval $lt_ar_try) 2>&5 | |
6240 | ac_status=$? | |
6241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6242 | test $ac_status = 0; } | |
6243 | if test "$ac_status" -eq 0; then | |
6244 | # Ensure the archiver fails upon bogus file names. | |
6245 | rm -f conftest.$ac_objext libconftest.a | |
6246 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6247 | (eval $lt_ar_try) 2>&5 | |
6248 | ac_status=$? | |
6249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6250 | test $ac_status = 0; } | |
6251 | if test "$ac_status" -ne 0; then | |
6252 | lt_cv_ar_at_file=@ | |
6253 | fi | |
6254 | fi | |
6255 | rm -f conftest.* libconftest.a | |
6256 | ||
6257 | fi | |
6258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6259 | ||
6260 | fi | |
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6262 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6263 | ||
6264 | if test "x$lt_cv_ar_at_file" = xno; then | |
6265 | archiver_list_spec= | |
6266 | else | |
6267 | archiver_list_spec=$lt_cv_ar_at_file | |
6268 | fi | |
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | if test -n "$ac_tool_prefix"; then | |
6277 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6278 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6280 | $as_echo_n "checking for $ac_word... " >&6; } | |
6281 | if ${ac_cv_prog_STRIP+:} false; then : | |
6282 | $as_echo_n "(cached) " >&6 | |
6283 | else | |
6284 | if test -n "$STRIP"; then | |
6285 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6286 | else | |
6287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6288 | for as_dir in $PATH | |
6289 | do | |
6290 | IFS=$as_save_IFS | |
6291 | test -z "$as_dir" && as_dir=. | |
6292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6294 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6296 | break 2 | |
6297 | fi | |
6298 | done | |
6299 | done | |
6300 | IFS=$as_save_IFS | |
6301 | ||
6302 | fi | |
6303 | fi | |
6304 | STRIP=$ac_cv_prog_STRIP | |
6305 | if test -n "$STRIP"; then | |
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6307 | $as_echo "$STRIP" >&6; } | |
6308 | else | |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6310 | $as_echo "no" >&6; } | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | fi | |
6315 | if test -z "$ac_cv_prog_STRIP"; then | |
6316 | ac_ct_STRIP=$STRIP | |
6317 | # Extract the first word of "strip", so it can be a program name with args. | |
6318 | set dummy strip; ac_word=$2 | |
6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6320 | $as_echo_n "checking for $ac_word... " >&6; } | |
6321 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6322 | $as_echo_n "(cached) " >&6 | |
6323 | else | |
6324 | if test -n "$ac_ct_STRIP"; then | |
6325 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6326 | else | |
6327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6328 | for as_dir in $PATH | |
6329 | do | |
6330 | IFS=$as_save_IFS | |
6331 | test -z "$as_dir" && as_dir=. | |
6332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6334 | ac_cv_prog_ac_ct_STRIP="strip" | |
6335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6336 | break 2 | |
6337 | fi | |
6338 | done | |
6339 | done | |
6340 | IFS=$as_save_IFS | |
6341 | ||
6342 | fi | |
6343 | fi | |
6344 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6345 | if test -n "$ac_ct_STRIP"; then | |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6347 | $as_echo "$ac_ct_STRIP" >&6; } | |
6348 | else | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6350 | $as_echo "no" >&6; } | |
6351 | fi | |
6352 | ||
6353 | if test "x$ac_ct_STRIP" = x; then | |
6354 | STRIP=":" | |
6355 | else | |
6356 | case $cross_compiling:$ac_tool_warned in | |
6357 | yes:) | |
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6359 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6360 | ac_tool_warned=yes ;; | |
6361 | esac | |
6362 | STRIP=$ac_ct_STRIP | |
6363 | fi | |
6364 | else | |
6365 | STRIP="$ac_cv_prog_STRIP" | |
6366 | fi | |
6367 | ||
6368 | test -z "$STRIP" && STRIP=: | |
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | if test -n "$ac_tool_prefix"; then | |
6376 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6377 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6379 | $as_echo_n "checking for $ac_word... " >&6; } | |
6380 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6381 | $as_echo_n "(cached) " >&6 | |
6382 | else | |
6383 | if test -n "$RANLIB"; then | |
6384 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6385 | else | |
6386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6387 | for as_dir in $PATH | |
6388 | do | |
6389 | IFS=$as_save_IFS | |
6390 | test -z "$as_dir" && as_dir=. | |
6391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6393 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6395 | break 2 | |
6396 | fi | |
6397 | done | |
6398 | done | |
6399 | IFS=$as_save_IFS | |
6400 | ||
6401 | fi | |
6402 | fi | |
6403 | RANLIB=$ac_cv_prog_RANLIB | |
6404 | if test -n "$RANLIB"; then | |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6406 | $as_echo "$RANLIB" >&6; } | |
6407 | else | |
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6409 | $as_echo "no" >&6; } | |
6410 | fi | |
6411 | ||
6412 | ||
6413 | fi | |
6414 | if test -z "$ac_cv_prog_RANLIB"; then | |
6415 | ac_ct_RANLIB=$RANLIB | |
6416 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6417 | set dummy ranlib; ac_word=$2 | |
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6419 | $as_echo_n "checking for $ac_word... " >&6; } | |
6420 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6421 | $as_echo_n "(cached) " >&6 | |
6422 | else | |
6423 | if test -n "$ac_ct_RANLIB"; then | |
6424 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6425 | else | |
6426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6427 | for as_dir in $PATH | |
6428 | do | |
6429 | IFS=$as_save_IFS | |
6430 | test -z "$as_dir" && as_dir=. | |
6431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6433 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6435 | break 2 | |
6436 | fi | |
6437 | done | |
6438 | done | |
6439 | IFS=$as_save_IFS | |
6440 | ||
6441 | fi | |
6442 | fi | |
6443 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6444 | if test -n "$ac_ct_RANLIB"; then | |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6446 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6447 | else | |
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6449 | $as_echo "no" >&6; } | |
6450 | fi | |
6451 | ||
6452 | if test "x$ac_ct_RANLIB" = x; then | |
6453 | RANLIB=":" | |
6454 | else | |
6455 | case $cross_compiling:$ac_tool_warned in | |
6456 | yes:) | |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6458 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6459 | ac_tool_warned=yes ;; | |
6460 | esac | |
6461 | RANLIB=$ac_ct_RANLIB | |
6462 | fi | |
6463 | else | |
6464 | RANLIB="$ac_cv_prog_RANLIB" | |
6465 | fi | |
6466 | ||
6467 | test -z "$RANLIB" && RANLIB=: | |
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | # Determine commands to create old-style static archives. | |
6475 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6476 | old_postinstall_cmds='chmod 644 $oldlib' | |
6477 | old_postuninstall_cmds= | |
6478 | ||
6479 | if test -n "$RANLIB"; then | |
6480 | case $host_os in | |
6481 | openbsd*) | |
6482 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6483 | ;; | |
6484 | *) | |
6485 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6486 | ;; | |
6487 | esac | |
6488 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6489 | fi | |
6490 | ||
6491 | case $host_os in | |
6492 | darwin*) | |
6493 | lock_old_archive_extraction=yes ;; | |
6494 | *) | |
6495 | lock_old_archive_extraction=no ;; | |
6496 | esac | |
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | ||
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | # If no C compiler was specified, use CC. | |
6537 | LTCC=${LTCC-"$CC"} | |
6538 | ||
6539 | # If no C compiler flags were specified, use CFLAGS. | |
6540 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6541 | ||
6542 | # Allow CC to be a program name with arguments. | |
6543 | compiler=$CC | |
6544 | ||
6545 | ||
6546 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6548 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6549 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6550 | $as_echo_n "(cached) " >&6 | |
6551 | else | |
6552 | ||
6553 | # These are sane defaults that work on at least a few old systems. | |
6554 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6555 | ||
6556 | # Character class describing NM global symbol codes. | |
6557 | symcode='[BCDEGRST]' | |
6558 | ||
6559 | # Regexp to match symbols that can be accessed directly from C. | |
6560 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6561 | ||
6562 | # Define system-specific variables. | |
6563 | case $host_os in | |
6564 | aix*) | |
6565 | symcode='[BCDT]' | |
6566 | ;; | |
6567 | cygwin* | mingw* | pw32* | cegcc*) | |
6568 | symcode='[ABCDGISTW]' | |
6569 | ;; | |
6570 | hpux*) | |
6571 | if test "$host_cpu" = ia64; then | |
6572 | symcode='[ABCDEGRST]' | |
6573 | fi | |
6574 | ;; | |
6575 | irix* | nonstopux*) | |
6576 | symcode='[BCDEGRST]' | |
6577 | ;; | |
6578 | osf*) | |
6579 | symcode='[BCDEGQRST]' | |
6580 | ;; | |
6581 | solaris*) | |
6582 | symcode='[BDRT]' | |
6583 | ;; | |
6584 | sco3.2v5*) | |
6585 | symcode='[DT]' | |
6586 | ;; | |
6587 | sysv4.2uw2*) | |
6588 | symcode='[DT]' | |
6589 | ;; | |
6590 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6591 | symcode='[ABDT]' | |
6592 | ;; | |
6593 | sysv4) | |
6594 | symcode='[DFNSTU]' | |
6595 | ;; | |
6596 | esac | |
6597 | ||
6598 | # If we're using GNU nm, then use its standard symbol codes. | |
6599 | case `$NM -V 2>&1` in | |
6600 | *GNU* | *'with BFD'*) | |
6601 | symcode='[ABCDGIRSTW]' ;; | |
6602 | esac | |
6603 | ||
6604 | # Transform an extracted symbol line into a proper C declaration. | |
6605 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6606 | # so use this general approach. | |
6607 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6608 | ||
6609 | # Transform an extracted symbol line into symbol name and symbol address | |
6610 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6611 | 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'" | |
6612 | ||
6613 | # Handle CRLF in mingw tool chain | |
6614 | opt_cr= | |
6615 | case $build_os in | |
6616 | mingw*) | |
6617 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6618 | ;; | |
6619 | esac | |
6620 | ||
6621 | # Try without a prefix underscore, then with it. | |
6622 | for ac_symprfx in "" "_"; do | |
6623 | ||
6624 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6625 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6626 | ||
6627 | # Write the raw and C identifiers. | |
6628 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6629 | # Fake it for dumpbin and say T for any non-static function | |
6630 | # and D for any global variable. | |
6631 | # Also find C++ and __fastcall symbols from MSVC++, | |
6632 | # which start with @ or ?. | |
6633 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6634 | " {last_section=section; section=\$ 3};"\ | |
6635 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6636 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6637 | " \$ 0!~/External *\|/{next};"\ | |
6638 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6639 | " {if(hide[section]) next};"\ | |
6640 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6641 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6642 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6643 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6644 | " ' prfx=^$ac_symprfx" | |
6645 | else | |
6646 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6647 | fi | |
6648 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6649 | ||
6650 | # Check to see that the pipe works correctly. | |
6651 | pipe_works=no | |
6652 | ||
6653 | rm -f conftest* | |
6654 | cat > conftest.$ac_ext <<_LT_EOF | |
6655 | #ifdef __cplusplus | |
6656 | extern "C" { | |
6657 | #endif | |
6658 | char nm_test_var; | |
6659 | void nm_test_func(void); | |
6660 | void nm_test_func(void){} | |
6661 | #ifdef __cplusplus | |
6662 | } | |
6663 | #endif | |
6664 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6665 | _LT_EOF | |
6666 | ||
6667 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6668 | (eval $ac_compile) 2>&5 | |
6669 | ac_status=$? | |
6670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6671 | test $ac_status = 0; }; then | |
6672 | # Now try to grab the symbols. | |
6673 | nlist=conftest.nm | |
6674 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6675 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6676 | ac_status=$? | |
6677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6678 | test $ac_status = 0; } && test -s "$nlist"; then | |
6679 | # Try sorting and uniquifying the output. | |
6680 | if sort "$nlist" | uniq > "$nlist"T; then | |
6681 | mv -f "$nlist"T "$nlist" | |
6682 | else | |
6683 | rm -f "$nlist"T | |
6684 | fi | |
6685 | ||
6686 | # Make sure that we snagged all the symbols we need. | |
6687 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6688 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6689 | cat <<_LT_EOF > conftest.$ac_ext | |
6690 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6691 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6692 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6693 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6694 | # define LT_DLSYM_CONST | |
6695 | #elif defined(__osf__) | |
6696 | /* This system does not cope well with relocations in const data. */ | |
6697 | # define LT_DLSYM_CONST | |
6698 | #else | |
6699 | # define LT_DLSYM_CONST const | |
6700 | #endif | |
6701 | ||
6702 | #ifdef __cplusplus | |
6703 | extern "C" { | |
6704 | #endif | |
6705 | ||
6706 | _LT_EOF | |
6707 | # Now generate the symbol file. | |
6708 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6709 | ||
6710 | cat <<_LT_EOF >> conftest.$ac_ext | |
6711 | ||
6712 | /* The mapping between symbol names and symbols. */ | |
6713 | LT_DLSYM_CONST struct { | |
6714 | const char *name; | |
6715 | void *address; | |
6716 | } | |
6717 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6718 | { | |
6719 | { "@PROGRAM@", (void *) 0 }, | |
6720 | _LT_EOF | |
6721 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6722 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6723 | {0, (void *) 0} | |
6724 | }; | |
6725 | ||
6726 | /* This works around a problem in FreeBSD linker */ | |
6727 | #ifdef FREEBSD_WORKAROUND | |
6728 | static const void *lt_preloaded_setup() { | |
6729 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6730 | } | |
6731 | #endif | |
6732 | ||
6733 | #ifdef __cplusplus | |
6734 | } | |
6735 | #endif | |
6736 | _LT_EOF | |
6737 | # Now try linking the two files. | |
6738 | mv conftest.$ac_objext conftstm.$ac_objext | |
6739 | lt_globsym_save_LIBS=$LIBS | |
6740 | lt_globsym_save_CFLAGS=$CFLAGS | |
6741 | LIBS="conftstm.$ac_objext" | |
6742 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6743 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6744 | (eval $ac_link) 2>&5 | |
6745 | ac_status=$? | |
6746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6747 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6748 | pipe_works=yes | |
6749 | fi | |
6750 | LIBS=$lt_globsym_save_LIBS | |
6751 | CFLAGS=$lt_globsym_save_CFLAGS | |
6752 | else | |
6753 | echo "cannot find nm_test_func in $nlist" >&5 | |
6754 | fi | |
6755 | else | |
6756 | echo "cannot find nm_test_var in $nlist" >&5 | |
6757 | fi | |
6758 | else | |
6759 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6760 | fi | |
6761 | else | |
6762 | echo "$progname: failed program was:" >&5 | |
6763 | cat conftest.$ac_ext >&5 | |
6764 | fi | |
6765 | rm -rf conftest* conftst* | |
6766 | ||
6767 | # Do not use the global_symbol_pipe unless it works. | |
6768 | if test "$pipe_works" = yes; then | |
6769 | break | |
6770 | else | |
6771 | lt_cv_sys_global_symbol_pipe= | |
6772 | fi | |
6773 | done | |
6774 | ||
6775 | fi | |
6776 | ||
6777 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6778 | lt_cv_sys_global_symbol_to_cdecl= | |
6779 | fi | |
6780 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6782 | $as_echo "failed" >&6; } | |
6783 | else | |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6785 | $as_echo "ok" >&6; } | |
6786 | fi | |
6787 | ||
6788 | # Response file support. | |
6789 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6790 | nm_file_list_spec='@' | |
6791 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6792 | nm_file_list_spec='@' | |
6793 | fi | |
6794 | ||
6795 | ||
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6822 | $as_echo_n "checking for sysroot... " >&6; } | |
6823 | ||
6824 | # Check whether --with-sysroot was given. | |
6825 | if test "${with_sysroot+set}" = set; then : | |
6826 | withval=$with_sysroot; | |
6827 | else | |
6828 | with_sysroot=no | |
6829 | fi | |
6830 | ||
6831 | ||
6832 | lt_sysroot= | |
6833 | case ${with_sysroot} in #( | |
6834 | yes) | |
6835 | if test "$GCC" = yes; then | |
6836 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6837 | fi | |
6838 | ;; #( | |
6839 | /*) | |
6840 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6841 | ;; #( | |
6842 | no|'') | |
6843 | ;; #( | |
6844 | *) | |
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6846 | $as_echo "${with_sysroot}" >&6; } | |
6847 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6848 | ;; | |
6849 | esac | |
6850 | ||
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6852 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6853 | ||
6854 | ||
6855 | ||
6856 | ||
6857 | ||
6858 | # Check whether --enable-libtool-lock was given. | |
6859 | if test "${enable_libtool_lock+set}" = set; then : | |
6860 | enableval=$enable_libtool_lock; | |
6861 | fi | |
6862 | ||
6863 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6864 | ||
6865 | # Some flags need to be propagated to the compiler or linker for good | |
6866 | # libtool support. | |
6867 | case $host in | |
6868 | ia64-*-hpux*) | |
6869 | # Find out which ABI we are using. | |
6870 | echo 'int i;' > conftest.$ac_ext | |
6871 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6872 | (eval $ac_compile) 2>&5 | |
6873 | ac_status=$? | |
6874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6875 | test $ac_status = 0; }; then | |
6876 | case `/usr/bin/file conftest.$ac_objext` in | |
6877 | *ELF-32*) | |
6878 | HPUX_IA64_MODE="32" | |
6879 | ;; | |
6880 | *ELF-64*) | |
6881 | HPUX_IA64_MODE="64" | |
6882 | ;; | |
6883 | esac | |
6884 | fi | |
6885 | rm -rf conftest* | |
6886 | ;; | |
6887 | *-*-irix6*) | |
6888 | # Find out which ABI we are using. | |
6889 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6890 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6891 | (eval $ac_compile) 2>&5 | |
6892 | ac_status=$? | |
6893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6894 | test $ac_status = 0; }; then | |
6895 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6896 | case `/usr/bin/file conftest.$ac_objext` in | |
6897 | *32-bit*) | |
6898 | LD="${LD-ld} -melf32bsmip" | |
6899 | ;; | |
6900 | *N32*) | |
6901 | LD="${LD-ld} -melf32bmipn32" | |
6902 | ;; | |
6903 | *64-bit*) | |
6904 | LD="${LD-ld} -melf64bmip" | |
6905 | ;; | |
6906 | esac | |
6907 | else | |
6908 | case `/usr/bin/file conftest.$ac_objext` in | |
6909 | *32-bit*) | |
6910 | LD="${LD-ld} -32" | |
6911 | ;; | |
6912 | *N32*) | |
6913 | LD="${LD-ld} -n32" | |
6914 | ;; | |
6915 | *64-bit*) | |
6916 | LD="${LD-ld} -64" | |
6917 | ;; | |
6918 | esac | |
6919 | fi | |
6920 | fi | |
6921 | rm -rf conftest* | |
6922 | ;; | |
6923 | ||
6924 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6925 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6926 | # Find out which ABI we are using. | |
6927 | echo 'int i;' > conftest.$ac_ext | |
6928 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6929 | (eval $ac_compile) 2>&5 | |
6930 | ac_status=$? | |
6931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6932 | test $ac_status = 0; }; then | |
6933 | case `/usr/bin/file conftest.o` in | |
6934 | *32-bit*) | |
6935 | case $host in | |
6936 | x86_64-*kfreebsd*-gnu) | |
6937 | LD="${LD-ld} -m elf_i386_fbsd" | |
6938 | ;; | |
6939 | x86_64-*linux*) | |
6940 | case `/usr/bin/file conftest.o` in | |
6941 | *x86-64*) | |
6942 | LD="${LD-ld} -m elf32_x86_64" | |
6943 | ;; | |
6944 | *) | |
6945 | LD="${LD-ld} -m elf_i386" | |
6946 | ;; | |
6947 | esac | |
6948 | ;; | |
6949 | powerpc64le-*) | |
6950 | LD="${LD-ld} -m elf32lppclinux" | |
6951 | ;; | |
6952 | powerpc64-*) | |
6953 | LD="${LD-ld} -m elf32ppclinux" | |
6954 | ;; | |
6955 | s390x-*linux*) | |
6956 | LD="${LD-ld} -m elf_s390" | |
6957 | ;; | |
6958 | sparc64-*linux*) | |
6959 | LD="${LD-ld} -m elf32_sparc" | |
6960 | ;; | |
6961 | esac | |
6962 | ;; | |
6963 | *64-bit*) | |
6964 | case $host in | |
6965 | x86_64-*kfreebsd*-gnu) | |
6966 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6967 | ;; | |
6968 | x86_64-*linux*) | |
6969 | LD="${LD-ld} -m elf_x86_64" | |
6970 | ;; | |
6971 | powerpcle-*) | |
6972 | LD="${LD-ld} -m elf64lppc" | |
6973 | ;; | |
6974 | powerpc-*) | |
6975 | LD="${LD-ld} -m elf64ppc" | |
6976 | ;; | |
6977 | s390*-*linux*|s390*-*tpf*) | |
6978 | LD="${LD-ld} -m elf64_s390" | |
6979 | ;; | |
6980 | sparc*-*linux*) | |
6981 | LD="${LD-ld} -m elf64_sparc" | |
6982 | ;; | |
6983 | esac | |
6984 | ;; | |
6985 | esac | |
6986 | fi | |
6987 | rm -rf conftest* | |
6988 | ;; | |
6989 | ||
6990 | *-*-sco3.2v5*) | |
6991 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6992 | SAVE_CFLAGS="$CFLAGS" | |
6993 | CFLAGS="$CFLAGS -belf" | |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6995 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6996 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6997 | $as_echo_n "(cached) " >&6 | |
6998 | else | |
6999 | ac_ext=c | |
7000 | ac_cpp='$CPP $CPPFLAGS' | |
7001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7004 | ||
7005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7006 | /* end confdefs.h. */ | |
7007 | ||
7008 | int | |
7009 | main () | |
7010 | { | |
7011 | ||
7012 | ; | |
7013 | return 0; | |
7014 | } | |
7015 | _ACEOF | |
7016 | if ac_fn_c_try_link "$LINENO"; then : | |
7017 | lt_cv_cc_needs_belf=yes | |
7018 | else | |
7019 | lt_cv_cc_needs_belf=no | |
7020 | fi | |
7021 | rm -f core conftest.err conftest.$ac_objext \ | |
7022 | conftest$ac_exeext conftest.$ac_ext | |
7023 | ac_ext=c | |
7024 | ac_cpp='$CPP $CPPFLAGS' | |
7025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7028 | ||
7029 | fi | |
7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7031 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7032 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7033 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7034 | CFLAGS="$SAVE_CFLAGS" | |
7035 | fi | |
7036 | ;; | |
7037 | *-*solaris*) | |
7038 | # Find out which ABI we are using. | |
7039 | echo 'int i;' > conftest.$ac_ext | |
7040 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7041 | (eval $ac_compile) 2>&5 | |
7042 | ac_status=$? | |
7043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7044 | test $ac_status = 0; }; then | |
7045 | case `/usr/bin/file conftest.o` in | |
7046 | *64-bit*) | |
7047 | case $lt_cv_prog_gnu_ld in | |
7048 | yes*) | |
7049 | case $host in | |
7050 | i?86-*-solaris*) | |
7051 | LD="${LD-ld} -m elf_x86_64" | |
7052 | ;; | |
7053 | sparc*-*-solaris*) | |
7054 | LD="${LD-ld} -m elf64_sparc" | |
7055 | ;; | |
7056 | esac | |
7057 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7058 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7059 | LD="${LD-ld}_sol2" | |
7060 | fi | |
7061 | ;; | |
7062 | *) | |
7063 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7064 | LD="${LD-ld} -64" | |
7065 | fi | |
7066 | ;; | |
7067 | esac | |
7068 | ;; | |
7069 | esac | |
7070 | fi | |
7071 | rm -rf conftest* | |
7072 | ;; | |
7073 | esac | |
7074 | ||
7075 | need_locks="$enable_libtool_lock" | |
7076 | ||
7077 | if test -n "$ac_tool_prefix"; then | |
7078 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7079 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7081 | $as_echo_n "checking for $ac_word... " >&6; } | |
7082 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7083 | $as_echo_n "(cached) " >&6 | |
7084 | else | |
7085 | if test -n "$MANIFEST_TOOL"; then | |
7086 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7087 | else | |
7088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7089 | for as_dir in $PATH | |
7090 | do | |
7091 | IFS=$as_save_IFS | |
7092 | test -z "$as_dir" && as_dir=. | |
7093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7095 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7097 | break 2 | |
7098 | fi | |
7099 | done | |
7100 | done | |
7101 | IFS=$as_save_IFS | |
7102 | ||
7103 | fi | |
7104 | fi | |
7105 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7106 | if test -n "$MANIFEST_TOOL"; then | |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7108 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7109 | else | |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7111 | $as_echo "no" >&6; } | |
7112 | fi | |
7113 | ||
7114 | ||
7115 | fi | |
7116 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7117 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7118 | # Extract the first word of "mt", so it can be a program name with args. | |
7119 | set dummy mt; ac_word=$2 | |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7121 | $as_echo_n "checking for $ac_word... " >&6; } | |
7122 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7123 | $as_echo_n "(cached) " >&6 | |
7124 | else | |
7125 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7126 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7127 | else | |
7128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7129 | for as_dir in $PATH | |
7130 | do | |
7131 | IFS=$as_save_IFS | |
7132 | test -z "$as_dir" && as_dir=. | |
7133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7135 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7137 | break 2 | |
7138 | fi | |
7139 | done | |
7140 | done | |
7141 | IFS=$as_save_IFS | |
7142 | ||
7143 | fi | |
7144 | fi | |
7145 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7146 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7148 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7149 | else | |
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7151 | $as_echo "no" >&6; } | |
7152 | fi | |
7153 | ||
7154 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7155 | MANIFEST_TOOL=":" | |
7156 | else | |
7157 | case $cross_compiling:$ac_tool_warned in | |
7158 | yes:) | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7161 | ac_tool_warned=yes ;; | |
7162 | esac | |
7163 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7164 | fi | |
7165 | else | |
7166 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7167 | fi | |
7168 | ||
7169 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7171 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7172 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7173 | $as_echo_n "(cached) " >&6 | |
7174 | else | |
7175 | lt_cv_path_mainfest_tool=no | |
7176 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7177 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7178 | cat conftest.err >&5 | |
7179 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7180 | lt_cv_path_mainfest_tool=yes | |
7181 | fi | |
7182 | rm -f conftest* | |
7183 | fi | |
7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7185 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7186 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7187 | MANIFEST_TOOL=: | |
7188 | fi | |
7189 | ||
7190 | ||
7191 | ||
7192 | ||
7193 | ||
7194 | ||
7195 | case $host_os in | |
7196 | rhapsody* | darwin*) | |
7197 | if test -n "$ac_tool_prefix"; then | |
7198 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7199 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7201 | $as_echo_n "checking for $ac_word... " >&6; } | |
7202 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7203 | $as_echo_n "(cached) " >&6 | |
7204 | else | |
7205 | if test -n "$DSYMUTIL"; then | |
7206 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7207 | else | |
7208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7209 | for as_dir in $PATH | |
7210 | do | |
7211 | IFS=$as_save_IFS | |
7212 | test -z "$as_dir" && as_dir=. | |
7213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7215 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7217 | break 2 | |
7218 | fi | |
7219 | done | |
7220 | done | |
7221 | IFS=$as_save_IFS | |
7222 | ||
7223 | fi | |
7224 | fi | |
7225 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7226 | if test -n "$DSYMUTIL"; then | |
7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7228 | $as_echo "$DSYMUTIL" >&6; } | |
7229 | else | |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7231 | $as_echo "no" >&6; } | |
7232 | fi | |
7233 | ||
7234 | ||
7235 | fi | |
7236 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7237 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7238 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7239 | set dummy dsymutil; ac_word=$2 | |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7241 | $as_echo_n "checking for $ac_word... " >&6; } | |
7242 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7243 | $as_echo_n "(cached) " >&6 | |
7244 | else | |
7245 | if test -n "$ac_ct_DSYMUTIL"; then | |
7246 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7247 | else | |
7248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7249 | for as_dir in $PATH | |
7250 | do | |
7251 | IFS=$as_save_IFS | |
7252 | test -z "$as_dir" && as_dir=. | |
7253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7255 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7257 | break 2 | |
7258 | fi | |
7259 | done | |
7260 | done | |
7261 | IFS=$as_save_IFS | |
7262 | ||
7263 | fi | |
7264 | fi | |
7265 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7266 | if test -n "$ac_ct_DSYMUTIL"; then | |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7268 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7269 | else | |
7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7271 | $as_echo "no" >&6; } | |
7272 | fi | |
7273 | ||
7274 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7275 | DSYMUTIL=":" | |
7276 | else | |
7277 | case $cross_compiling:$ac_tool_warned in | |
7278 | yes:) | |
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7280 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7281 | ac_tool_warned=yes ;; | |
7282 | esac | |
7283 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7284 | fi | |
7285 | else | |
7286 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7287 | fi | |
7288 | ||
7289 | if test -n "$ac_tool_prefix"; then | |
7290 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7291 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7293 | $as_echo_n "checking for $ac_word... " >&6; } | |
7294 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7295 | $as_echo_n "(cached) " >&6 | |
7296 | else | |
7297 | if test -n "$NMEDIT"; then | |
7298 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7299 | else | |
7300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7301 | for as_dir in $PATH | |
7302 | do | |
7303 | IFS=$as_save_IFS | |
7304 | test -z "$as_dir" && as_dir=. | |
7305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7306 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7307 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7309 | break 2 | |
7310 | fi | |
7311 | done | |
7312 | done | |
7313 | IFS=$as_save_IFS | |
7314 | ||
7315 | fi | |
7316 | fi | |
7317 | NMEDIT=$ac_cv_prog_NMEDIT | |
7318 | if test -n "$NMEDIT"; then | |
7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7320 | $as_echo "$NMEDIT" >&6; } | |
7321 | else | |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7323 | $as_echo "no" >&6; } | |
7324 | fi | |
7325 | ||
7326 | ||
7327 | fi | |
7328 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7329 | ac_ct_NMEDIT=$NMEDIT | |
7330 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7331 | set dummy nmedit; ac_word=$2 | |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7333 | $as_echo_n "checking for $ac_word... " >&6; } | |
7334 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7335 | $as_echo_n "(cached) " >&6 | |
7336 | else | |
7337 | if test -n "$ac_ct_NMEDIT"; then | |
7338 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7339 | else | |
7340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7341 | for as_dir in $PATH | |
7342 | do | |
7343 | IFS=$as_save_IFS | |
7344 | test -z "$as_dir" && as_dir=. | |
7345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7347 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7349 | break 2 | |
7350 | fi | |
7351 | done | |
7352 | done | |
7353 | IFS=$as_save_IFS | |
7354 | ||
7355 | fi | |
7356 | fi | |
7357 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7358 | if test -n "$ac_ct_NMEDIT"; then | |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7360 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7361 | else | |
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7363 | $as_echo "no" >&6; } | |
7364 | fi | |
7365 | ||
7366 | if test "x$ac_ct_NMEDIT" = x; then | |
7367 | NMEDIT=":" | |
7368 | else | |
7369 | case $cross_compiling:$ac_tool_warned in | |
7370 | yes:) | |
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7373 | ac_tool_warned=yes ;; | |
7374 | esac | |
7375 | NMEDIT=$ac_ct_NMEDIT | |
7376 | fi | |
7377 | else | |
7378 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7379 | fi | |
7380 | ||
7381 | if test -n "$ac_tool_prefix"; then | |
7382 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7383 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7385 | $as_echo_n "checking for $ac_word... " >&6; } | |
7386 | if ${ac_cv_prog_LIPO+:} false; then : | |
7387 | $as_echo_n "(cached) " >&6 | |
7388 | else | |
7389 | if test -n "$LIPO"; then | |
7390 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7391 | else | |
7392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7393 | for as_dir in $PATH | |
7394 | do | |
7395 | IFS=$as_save_IFS | |
7396 | test -z "$as_dir" && as_dir=. | |
7397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7399 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7401 | break 2 | |
7402 | fi | |
7403 | done | |
7404 | done | |
7405 | IFS=$as_save_IFS | |
7406 | ||
7407 | fi | |
7408 | fi | |
7409 | LIPO=$ac_cv_prog_LIPO | |
7410 | if test -n "$LIPO"; then | |
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7412 | $as_echo "$LIPO" >&6; } | |
7413 | else | |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7415 | $as_echo "no" >&6; } | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | fi | |
7420 | if test -z "$ac_cv_prog_LIPO"; then | |
7421 | ac_ct_LIPO=$LIPO | |
7422 | # Extract the first word of "lipo", so it can be a program name with args. | |
7423 | set dummy lipo; ac_word=$2 | |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7425 | $as_echo_n "checking for $ac_word... " >&6; } | |
7426 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7427 | $as_echo_n "(cached) " >&6 | |
7428 | else | |
7429 | if test -n "$ac_ct_LIPO"; then | |
7430 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7431 | else | |
7432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7433 | for as_dir in $PATH | |
7434 | do | |
7435 | IFS=$as_save_IFS | |
7436 | test -z "$as_dir" && as_dir=. | |
7437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7439 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7441 | break 2 | |
7442 | fi | |
7443 | done | |
7444 | done | |
7445 | IFS=$as_save_IFS | |
7446 | ||
7447 | fi | |
7448 | fi | |
7449 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7450 | if test -n "$ac_ct_LIPO"; then | |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7452 | $as_echo "$ac_ct_LIPO" >&6; } | |
7453 | else | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7455 | $as_echo "no" >&6; } | |
7456 | fi | |
7457 | ||
7458 | if test "x$ac_ct_LIPO" = x; then | |
7459 | LIPO=":" | |
7460 | else | |
7461 | case $cross_compiling:$ac_tool_warned in | |
7462 | yes:) | |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7464 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7465 | ac_tool_warned=yes ;; | |
7466 | esac | |
7467 | LIPO=$ac_ct_LIPO | |
7468 | fi | |
7469 | else | |
7470 | LIPO="$ac_cv_prog_LIPO" | |
7471 | fi | |
7472 | ||
7473 | if test -n "$ac_tool_prefix"; then | |
7474 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7475 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7477 | $as_echo_n "checking for $ac_word... " >&6; } | |
7478 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7479 | $as_echo_n "(cached) " >&6 | |
7480 | else | |
7481 | if test -n "$OTOOL"; then | |
7482 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7483 | else | |
7484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7485 | for as_dir in $PATH | |
7486 | do | |
7487 | IFS=$as_save_IFS | |
7488 | test -z "$as_dir" && as_dir=. | |
7489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7491 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7493 | break 2 | |
7494 | fi | |
7495 | done | |
7496 | done | |
7497 | IFS=$as_save_IFS | |
7498 | ||
7499 | fi | |
7500 | fi | |
7501 | OTOOL=$ac_cv_prog_OTOOL | |
7502 | if test -n "$OTOOL"; then | |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7504 | $as_echo "$OTOOL" >&6; } | |
7505 | else | |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7507 | $as_echo "no" >&6; } | |
7508 | fi | |
7509 | ||
7510 | ||
7511 | fi | |
7512 | if test -z "$ac_cv_prog_OTOOL"; then | |
7513 | ac_ct_OTOOL=$OTOOL | |
7514 | # Extract the first word of "otool", so it can be a program name with args. | |
7515 | set dummy otool; ac_word=$2 | |
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7517 | $as_echo_n "checking for $ac_word... " >&6; } | |
7518 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7519 | $as_echo_n "(cached) " >&6 | |
7520 | else | |
7521 | if test -n "$ac_ct_OTOOL"; then | |
7522 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7523 | else | |
7524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7525 | for as_dir in $PATH | |
7526 | do | |
7527 | IFS=$as_save_IFS | |
7528 | test -z "$as_dir" && as_dir=. | |
7529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7531 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7533 | break 2 | |
7534 | fi | |
7535 | done | |
7536 | done | |
7537 | IFS=$as_save_IFS | |
7538 | ||
7539 | fi | |
7540 | fi | |
7541 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7542 | if test -n "$ac_ct_OTOOL"; then | |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7544 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7545 | else | |
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7547 | $as_echo "no" >&6; } | |
7548 | fi | |
7549 | ||
7550 | if test "x$ac_ct_OTOOL" = x; then | |
7551 | OTOOL=":" | |
7552 | else | |
7553 | case $cross_compiling:$ac_tool_warned in | |
7554 | yes:) | |
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7556 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7557 | ac_tool_warned=yes ;; | |
7558 | esac | |
7559 | OTOOL=$ac_ct_OTOOL | |
7560 | fi | |
7561 | else | |
7562 | OTOOL="$ac_cv_prog_OTOOL" | |
7563 | fi | |
7564 | ||
7565 | if test -n "$ac_tool_prefix"; then | |
7566 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7567 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7569 | $as_echo_n "checking for $ac_word... " >&6; } | |
7570 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7571 | $as_echo_n "(cached) " >&6 | |
7572 | else | |
7573 | if test -n "$OTOOL64"; then | |
7574 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7575 | else | |
7576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7577 | for as_dir in $PATH | |
7578 | do | |
7579 | IFS=$as_save_IFS | |
7580 | test -z "$as_dir" && as_dir=. | |
7581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7582 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7583 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7585 | break 2 | |
7586 | fi | |
7587 | done | |
7588 | done | |
7589 | IFS=$as_save_IFS | |
7590 | ||
7591 | fi | |
7592 | fi | |
7593 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7594 | if test -n "$OTOOL64"; then | |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7596 | $as_echo "$OTOOL64" >&6; } | |
7597 | else | |
7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7599 | $as_echo "no" >&6; } | |
7600 | fi | |
7601 | ||
7602 | ||
7603 | fi | |
7604 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7605 | ac_ct_OTOOL64=$OTOOL64 | |
7606 | # Extract the first word of "otool64", so it can be a program name with args. | |
7607 | set dummy otool64; ac_word=$2 | |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7609 | $as_echo_n "checking for $ac_word... " >&6; } | |
7610 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7611 | $as_echo_n "(cached) " >&6 | |
7612 | else | |
7613 | if test -n "$ac_ct_OTOOL64"; then | |
7614 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7615 | else | |
7616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7617 | for as_dir in $PATH | |
7618 | do | |
7619 | IFS=$as_save_IFS | |
7620 | test -z "$as_dir" && as_dir=. | |
7621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7623 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7625 | break 2 | |
7626 | fi | |
7627 | done | |
7628 | done | |
7629 | IFS=$as_save_IFS | |
7630 | ||
7631 | fi | |
7632 | fi | |
7633 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7634 | if test -n "$ac_ct_OTOOL64"; then | |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7636 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7637 | else | |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7639 | $as_echo "no" >&6; } | |
7640 | fi | |
7641 | ||
7642 | if test "x$ac_ct_OTOOL64" = x; then | |
7643 | OTOOL64=":" | |
7644 | else | |
7645 | case $cross_compiling:$ac_tool_warned in | |
7646 | yes:) | |
7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7649 | ac_tool_warned=yes ;; | |
7650 | esac | |
7651 | OTOOL64=$ac_ct_OTOOL64 | |
7652 | fi | |
7653 | else | |
7654 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7655 | fi | |
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | ||
7672 | ||
7673 | ||
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
7682 | ||
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7684 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7685 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7686 | $as_echo_n "(cached) " >&6 | |
7687 | else | |
7688 | lt_cv_apple_cc_single_mod=no | |
7689 | if test -z "${LT_MULTI_MODULE}"; then | |
7690 | # By default we will add the -single_module flag. You can override | |
7691 | # by either setting the environment variable LT_MULTI_MODULE | |
7692 | # non-empty at configure time, or by adding -multi_module to the | |
7693 | # link flags. | |
7694 | rm -rf libconftest.dylib* | |
7695 | echo "int foo(void){return 1;}" > conftest.c | |
7696 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7697 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7698 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7699 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7700 | _lt_result=$? | |
7701 | # If there is a non-empty error log, and "single_module" | |
7702 | # appears in it, assume the flag caused a linker warning | |
7703 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7704 | cat conftest.err >&5 | |
7705 | # Otherwise, if the output was created with a 0 exit code from | |
7706 | # the compiler, it worked. | |
7707 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
7708 | lt_cv_apple_cc_single_mod=yes | |
7709 | else | |
7710 | cat conftest.err >&5 | |
7711 | fi | |
7712 | rm -rf libconftest.dylib* | |
7713 | rm -f conftest.* | |
7714 | fi | |
7715 | fi | |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7717 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7718 | ||
7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7720 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7721 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7722 | $as_echo_n "(cached) " >&6 | |
7723 | else | |
7724 | lt_cv_ld_exported_symbols_list=no | |
7725 | save_LDFLAGS=$LDFLAGS | |
7726 | echo "_main" > conftest.sym | |
7727 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7729 | /* end confdefs.h. */ | |
7730 | ||
7731 | int | |
7732 | main () | |
7733 | { | |
7734 | ||
7735 | ; | |
7736 | return 0; | |
7737 | } | |
7738 | _ACEOF | |
7739 | if ac_fn_c_try_link "$LINENO"; then : | |
7740 | lt_cv_ld_exported_symbols_list=yes | |
7741 | else | |
7742 | lt_cv_ld_exported_symbols_list=no | |
7743 | fi | |
7744 | rm -f core conftest.err conftest.$ac_objext \ | |
7745 | conftest$ac_exeext conftest.$ac_ext | |
7746 | LDFLAGS="$save_LDFLAGS" | |
7747 | ||
7748 | fi | |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7750 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7751 | ||
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7753 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7754 | if ${lt_cv_ld_force_load+:} false; then : | |
7755 | $as_echo_n "(cached) " >&6 | |
7756 | else | |
7757 | lt_cv_ld_force_load=no | |
7758 | cat > conftest.c << _LT_EOF | |
7759 | int forced_loaded() { return 2;} | |
7760 | _LT_EOF | |
7761 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7762 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7763 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7764 | $AR cru libconftest.a conftest.o 2>&5 | |
7765 | echo "$RANLIB libconftest.a" >&5 | |
7766 | $RANLIB libconftest.a 2>&5 | |
7767 | cat > conftest.c << _LT_EOF | |
7768 | int main() { return 0;} | |
7769 | _LT_EOF | |
7770 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7771 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7772 | _lt_result=$? | |
7773 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7774 | cat conftest.err >&5 | |
7775 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
7776 | lt_cv_ld_force_load=yes | |
7777 | else | |
7778 | cat conftest.err >&5 | |
7779 | fi | |
7780 | rm -f conftest.err libconftest.a conftest conftest.c | |
7781 | rm -rf conftest.dSYM | |
7782 | ||
7783 | fi | |
7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7785 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7786 | case $host_os in | |
7787 | rhapsody* | darwin1.[012]) | |
7788 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7789 | darwin1.*) | |
7790 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7791 | darwin*) # darwin 5.x on | |
7792 | # if running on 10.5 or later, the deployment target defaults | |
7793 | # to the OS version, if on x86, and 10.4, the deployment | |
7794 | # target defaults to 10.4. Don't you love it? | |
7795 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7796 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7797 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7798 | 10.[012]*) | |
7799 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7800 | 10.*) | |
7801 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7802 | esac | |
7803 | ;; | |
7804 | esac | |
7805 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7806 | _lt_dar_single_mod='$single_module' | |
7807 | fi | |
7808 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7809 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7810 | else | |
7811 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7812 | fi | |
7813 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7814 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7815 | else | |
7816 | _lt_dsymutil= | |
7817 | fi | |
7818 | ;; | |
7819 | esac | |
7820 | ||
7821 | ac_ext=c | |
7822 | ac_cpp='$CPP $CPPFLAGS' | |
7823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7827 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7828 | # On Suns, sometimes $CPP names a directory. | |
7829 | if test -n "$CPP" && test -d "$CPP"; then | |
7830 | CPP= | |
7831 | fi | |
7832 | if test -z "$CPP"; then | |
7833 | if ${ac_cv_prog_CPP+:} false; then : | |
7834 | $as_echo_n "(cached) " >&6 | |
7835 | else | |
7836 | # Double quotes because CPP needs to be expanded | |
7837 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7838 | do | |
7839 | ac_preproc_ok=false | |
7840 | for ac_c_preproc_warn_flag in '' yes | |
7841 | do | |
7842 | # Use a header file that comes with gcc, so configuring glibc | |
7843 | # with a fresh cross-compiler works. | |
7844 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7845 | # <limits.h> exists even on freestanding compilers. | |
7846 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7847 | # not just through cpp. "Syntax error" is here to catch this case. | |
7848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7849 | /* end confdefs.h. */ | |
7850 | #ifdef __STDC__ | |
7851 | # include <limits.h> | |
7852 | #else | |
7853 | # include <assert.h> | |
7854 | #endif | |
7855 | Syntax error | |
7856 | _ACEOF | |
7857 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7858 | ||
7859 | else | |
7860 | # Broken: fails on valid input. | |
7861 | continue | |
7862 | fi | |
7863 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7864 | ||
7865 | # OK, works on sane cases. Now check whether nonexistent headers | |
7866 | # can be detected and how. | |
7867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7868 | /* end confdefs.h. */ | |
7869 | #include <ac_nonexistent.h> | |
7870 | _ACEOF | |
7871 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7872 | # Broken: success on invalid input. | |
7873 | continue | |
7874 | else | |
7875 | # Passes both tests. | |
7876 | ac_preproc_ok=: | |
7877 | break | |
7878 | fi | |
7879 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7880 | ||
7881 | done | |
7882 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7883 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7884 | if $ac_preproc_ok; then : | |
7885 | break | |
7886 | fi | |
7887 | ||
7888 | done | |
7889 | ac_cv_prog_CPP=$CPP | |
7890 | ||
7891 | fi | |
7892 | CPP=$ac_cv_prog_CPP | |
7893 | else | |
7894 | ac_cv_prog_CPP=$CPP | |
7895 | fi | |
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7897 | $as_echo "$CPP" >&6; } | |
7898 | ac_preproc_ok=false | |
7899 | for ac_c_preproc_warn_flag in '' yes | |
7900 | do | |
7901 | # Use a header file that comes with gcc, so configuring glibc | |
7902 | # with a fresh cross-compiler works. | |
7903 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7904 | # <limits.h> exists even on freestanding compilers. | |
7905 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7906 | # not just through cpp. "Syntax error" is here to catch this case. | |
7907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7908 | /* end confdefs.h. */ | |
7909 | #ifdef __STDC__ | |
7910 | # include <limits.h> | |
7911 | #else | |
7912 | # include <assert.h> | |
7913 | #endif | |
7914 | Syntax error | |
7915 | _ACEOF | |
7916 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7917 | ||
7918 | else | |
7919 | # Broken: fails on valid input. | |
7920 | continue | |
7921 | fi | |
7922 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7923 | ||
7924 | # OK, works on sane cases. Now check whether nonexistent headers | |
7925 | # can be detected and how. | |
7926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7927 | /* end confdefs.h. */ | |
7928 | #include <ac_nonexistent.h> | |
7929 | _ACEOF | |
7930 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7931 | # Broken: success on invalid input. | |
7932 | continue | |
7933 | else | |
7934 | # Passes both tests. | |
7935 | ac_preproc_ok=: | |
7936 | break | |
7937 | fi | |
7938 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7939 | ||
7940 | done | |
7941 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7942 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7943 | if $ac_preproc_ok; then : | |
7944 | ||
7945 | else | |
7946 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7947 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7948 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7949 | See \`config.log' for more details" "$LINENO" 5; } | |
7950 | fi | |
7951 | ||
7952 | ac_ext=c | |
7953 | ac_cpp='$CPP $CPPFLAGS' | |
7954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7957 | ||
7958 | ||
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7960 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7961 | if ${ac_cv_header_stdc+:} false; then : | |
7962 | $as_echo_n "(cached) " >&6 | |
7963 | else | |
7964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7965 | /* end confdefs.h. */ | |
7966 | #include <stdlib.h> | |
7967 | #include <stdarg.h> | |
7968 | #include <string.h> | |
7969 | #include <float.h> | |
7970 | ||
7971 | int | |
7972 | main () | |
7973 | { | |
7974 | ||
7975 | ; | |
7976 | return 0; | |
7977 | } | |
7978 | _ACEOF | |
7979 | if ac_fn_c_try_compile "$LINENO"; then : | |
7980 | ac_cv_header_stdc=yes | |
7981 | else | |
7982 | ac_cv_header_stdc=no | |
7983 | fi | |
7984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7985 | ||
7986 | if test $ac_cv_header_stdc = yes; then | |
7987 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7989 | /* end confdefs.h. */ | |
7990 | #include <string.h> | |
7991 | ||
7992 | _ACEOF | |
7993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7994 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7995 | ||
7996 | else | |
7997 | ac_cv_header_stdc=no | |
7998 | fi | |
7999 | rm -f conftest* | |
8000 | ||
8001 | fi | |
8002 | ||
8003 | if test $ac_cv_header_stdc = yes; then | |
8004 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8006 | /* end confdefs.h. */ | |
8007 | #include <stdlib.h> | |
8008 | ||
8009 | _ACEOF | |
8010 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8011 | $EGREP "free" >/dev/null 2>&1; then : | |
8012 | ||
8013 | else | |
8014 | ac_cv_header_stdc=no | |
8015 | fi | |
8016 | rm -f conftest* | |
8017 | ||
8018 | fi | |
8019 | ||
8020 | if test $ac_cv_header_stdc = yes; then | |
8021 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8022 | if test "$cross_compiling" = yes; then : | |
8023 | : | |
8024 | else | |
8025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8026 | /* end confdefs.h. */ | |
8027 | #include <ctype.h> | |
8028 | #include <stdlib.h> | |
8029 | #if ((' ' & 0x0FF) == 0x020) | |
8030 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8031 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8032 | #else | |
8033 | # define ISLOWER(c) \ | |
8034 | (('a' <= (c) && (c) <= 'i') \ | |
8035 | || ('j' <= (c) && (c) <= 'r') \ | |
8036 | || ('s' <= (c) && (c) <= 'z')) | |
8037 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8038 | #endif | |
8039 | ||
8040 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8041 | int | |
8042 | main () | |
8043 | { | |
8044 | int i; | |
8045 | for (i = 0; i < 256; i++) | |
8046 | if (XOR (islower (i), ISLOWER (i)) | |
8047 | || toupper (i) != TOUPPER (i)) | |
8048 | return 2; | |
8049 | return 0; | |
8050 | } | |
8051 | _ACEOF | |
8052 | if ac_fn_c_try_run "$LINENO"; then : | |
8053 | ||
8054 | else | |
8055 | ac_cv_header_stdc=no | |
8056 | fi | |
8057 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8058 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8059 | fi | |
8060 | ||
8061 | fi | |
8062 | fi | |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8064 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8065 | if test $ac_cv_header_stdc = yes; then | |
8066 | ||
8067 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8068 | ||
8069 | fi | |
8070 | ||
8071 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8072 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8073 | inttypes.h stdint.h unistd.h | |
8074 | do : | |
8075 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8076 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8077 | " | |
8078 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8079 | cat >>confdefs.h <<_ACEOF | |
8080 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8081 | _ACEOF | |
8082 | ||
8083 | fi | |
8084 | ||
8085 | done | |
8086 | ||
8087 | ||
8088 | for ac_header in dlfcn.h | |
8089 | do : | |
8090 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8091 | " | |
8092 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8093 | cat >>confdefs.h <<_ACEOF | |
8094 | #define HAVE_DLFCN_H 1 | |
8095 | _ACEOF | |
8096 | ||
8097 | fi | |
8098 | ||
8099 | done | |
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | # Set options | |
8106 | enable_dlopen=yes | |
8107 | # Check whether --enable-static was given. | |
8108 | if test "${enable_static+set}" = set; then : | |
8109 | enableval=$enable_static; p=${PACKAGE-default} | |
8110 | case $enableval in | |
8111 | yes) enable_static=yes ;; | |
8112 | no) enable_static=no ;; | |
8113 | *) | |
8114 | enable_static=no | |
8115 | # Look at the argument we got. We use all the common list separators. | |
8116 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8117 | for pkg in $enableval; do | |
8118 | IFS="$lt_save_ifs" | |
8119 | if test "X$pkg" = "X$p"; then | |
8120 | enable_static=yes | |
8121 | fi | |
8122 | done | |
8123 | IFS="$lt_save_ifs" | |
8124 | ;; | |
8125 | esac | |
8126 | else | |
8127 | enable_static=no | |
8128 | fi | |
8129 | ||
8130 | ||
8131 | ||
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | enable_win32_dll=no | |
8141 | ||
8142 | ||
8143 | # Check whether --enable-shared was given. | |
8144 | if test "${enable_shared+set}" = set; then : | |
8145 | enableval=$enable_shared; p=${PACKAGE-default} | |
8146 | case $enableval in | |
8147 | yes) enable_shared=yes ;; | |
8148 | no) enable_shared=no ;; | |
8149 | *) | |
8150 | enable_shared=no | |
8151 | # Look at the argument we got. We use all the common list separators. | |
8152 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8153 | for pkg in $enableval; do | |
8154 | IFS="$lt_save_ifs" | |
8155 | if test "X$pkg" = "X$p"; then | |
8156 | enable_shared=yes | |
8157 | fi | |
8158 | done | |
8159 | IFS="$lt_save_ifs" | |
8160 | ;; | |
8161 | esac | |
8162 | else | |
8163 | enable_shared=yes | |
8164 | fi | |
8165 | ||
8166 | ||
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | ||
8172 | ||
8173 | ||
8174 | ||
8175 | ||
8176 | # Check whether --with-pic was given. | |
8177 | if test "${with_pic+set}" = set; then : | |
8178 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8179 | case $withval in | |
8180 | yes|no) pic_mode=$withval ;; | |
8181 | *) | |
8182 | pic_mode=default | |
8183 | # Look at the argument we got. We use all the common list separators. | |
8184 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8185 | for lt_pkg in $withval; do | |
8186 | IFS="$lt_save_ifs" | |
8187 | if test "X$lt_pkg" = "X$lt_p"; then | |
8188 | pic_mode=yes | |
8189 | fi | |
8190 | done | |
8191 | IFS="$lt_save_ifs" | |
8192 | ;; | |
8193 | esac | |
8194 | else | |
8195 | pic_mode=default | |
8196 | fi | |
8197 | ||
8198 | ||
8199 | test -z "$pic_mode" && pic_mode=default | |
8200 | ||
8201 | ||
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | # Check whether --enable-fast-install was given. | |
8208 | if test "${enable_fast_install+set}" = set; then : | |
8209 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8210 | case $enableval in | |
8211 | yes) enable_fast_install=yes ;; | |
8212 | no) enable_fast_install=no ;; | |
8213 | *) | |
8214 | enable_fast_install=no | |
8215 | # Look at the argument we got. We use all the common list separators. | |
8216 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8217 | for pkg in $enableval; do | |
8218 | IFS="$lt_save_ifs" | |
8219 | if test "X$pkg" = "X$p"; then | |
8220 | enable_fast_install=yes | |
8221 | fi | |
8222 | done | |
8223 | IFS="$lt_save_ifs" | |
8224 | ;; | |
8225 | esac | |
8226 | else | |
8227 | enable_fast_install=yes | |
8228 | fi | |
8229 | ||
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | ||
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | # This can be used to rebuild libtool when needed | |
8241 | LIBTOOL_DEPS="$ltmain" | |
8242 | ||
8243 | # Always use our own libtool. | |
8244 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | ||
8274 | ||
8275 | test -z "$LN_S" && LN_S="ln -s" | |
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | ||
8288 | ||
8289 | ||
8290 | if test -n "${ZSH_VERSION+set}" ; then | |
8291 | setopt NO_GLOB_SUBST | |
8292 | fi | |
8293 | ||
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8295 | $as_echo_n "checking for objdir... " >&6; } | |
8296 | if ${lt_cv_objdir+:} false; then : | |
8297 | $as_echo_n "(cached) " >&6 | |
8298 | else | |
8299 | rm -f .libs 2>/dev/null | |
8300 | mkdir .libs 2>/dev/null | |
8301 | if test -d .libs; then | |
8302 | lt_cv_objdir=.libs | |
8303 | else | |
8304 | # MS-DOS does not allow filenames that begin with a dot. | |
8305 | lt_cv_objdir=_libs | |
8306 | fi | |
8307 | rmdir .libs 2>/dev/null | |
8308 | fi | |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8310 | $as_echo "$lt_cv_objdir" >&6; } | |
8311 | objdir=$lt_cv_objdir | |
8312 | ||
8313 | ||
8314 | ||
8315 | ||
8316 | ||
8317 | cat >>confdefs.h <<_ACEOF | |
8318 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8319 | _ACEOF | |
8320 | ||
8321 | ||
8322 | ||
8323 | ||
8324 | case $host_os in | |
8325 | aix3*) | |
8326 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8327 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8328 | # vanish in a puff of smoke. | |
8329 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8330 | COLLECT_NAMES= | |
8331 | export COLLECT_NAMES | |
8332 | fi | |
8333 | ;; | |
8334 | esac | |
8335 | ||
8336 | # Global variables: | |
8337 | ofile=libtool | |
8338 | can_build_shared=yes | |
8339 | ||
8340 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8341 | # which needs '.lib'). | |
8342 | libext=a | |
8343 | ||
8344 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8345 | ||
8346 | old_CC="$CC" | |
8347 | old_CFLAGS="$CFLAGS" | |
8348 | ||
8349 | # Set sane defaults for various variables | |
8350 | test -z "$CC" && CC=cc | |
8351 | test -z "$LTCC" && LTCC=$CC | |
8352 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8353 | test -z "$LD" && LD=ld | |
8354 | test -z "$ac_objext" && ac_objext=o | |
8355 | ||
8356 | for cc_temp in $compiler""; do | |
8357 | case $cc_temp in | |
8358 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8359 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8360 | \-*) ;; | |
8361 | *) break;; | |
8362 | esac | |
8363 | done | |
8364 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8365 | ||
8366 | ||
8367 | # Only perform the check for file, if the check method requires it | |
8368 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8369 | case $deplibs_check_method in | |
8370 | file_magic*) | |
8371 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8373 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8374 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8375 | $as_echo_n "(cached) " >&6 | |
8376 | else | |
8377 | case $MAGIC_CMD in | |
8378 | [\\/*] | ?:[\\/]*) | |
8379 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8380 | ;; | |
8381 | *) | |
8382 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8383 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8384 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8385 | for ac_dir in $ac_dummy; do | |
8386 | IFS="$lt_save_ifs" | |
8387 | test -z "$ac_dir" && ac_dir=. | |
8388 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8389 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8390 | if test -n "$file_magic_test_file"; then | |
8391 | case $deplibs_check_method in | |
8392 | "file_magic "*) | |
8393 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8394 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8395 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8396 | $EGREP "$file_magic_regex" > /dev/null; then | |
8397 | : | |
8398 | else | |
8399 | cat <<_LT_EOF 1>&2 | |
8400 | ||
8401 | *** Warning: the command libtool uses to detect shared libraries, | |
8402 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8403 | *** The result is that libtool may fail to recognize shared libraries | |
8404 | *** as such. This will affect the creation of libtool libraries that | |
8405 | *** depend on shared libraries, but programs linked with such libtool | |
8406 | *** libraries will work regardless of this problem. Nevertheless, you | |
8407 | *** may want to report the problem to your system manager and/or to | |
8408 | *** bug-libtool@gnu.org | |
8409 | ||
8410 | _LT_EOF | |
8411 | fi ;; | |
8412 | esac | |
8413 | fi | |
8414 | break | |
8415 | fi | |
8416 | done | |
8417 | IFS="$lt_save_ifs" | |
8418 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8419 | ;; | |
8420 | esac | |
8421 | fi | |
8422 | ||
8423 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8424 | if test -n "$MAGIC_CMD"; then | |
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8426 | $as_echo "$MAGIC_CMD" >&6; } | |
8427 | else | |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8429 | $as_echo "no" >&6; } | |
8430 | fi | |
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8437 | if test -n "$ac_tool_prefix"; then | |
8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8439 | $as_echo_n "checking for file... " >&6; } | |
8440 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8441 | $as_echo_n "(cached) " >&6 | |
8442 | else | |
8443 | case $MAGIC_CMD in | |
8444 | [\\/*] | ?:[\\/]*) | |
8445 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8446 | ;; | |
8447 | *) | |
8448 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8449 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8450 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8451 | for ac_dir in $ac_dummy; do | |
8452 | IFS="$lt_save_ifs" | |
8453 | test -z "$ac_dir" && ac_dir=. | |
8454 | if test -f $ac_dir/file; then | |
8455 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8456 | if test -n "$file_magic_test_file"; then | |
8457 | case $deplibs_check_method in | |
8458 | "file_magic "*) | |
8459 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8460 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8461 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8462 | $EGREP "$file_magic_regex" > /dev/null; then | |
8463 | : | |
8464 | else | |
8465 | cat <<_LT_EOF 1>&2 | |
8466 | ||
8467 | *** Warning: the command libtool uses to detect shared libraries, | |
8468 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8469 | *** The result is that libtool may fail to recognize shared libraries | |
8470 | *** as such. This will affect the creation of libtool libraries that | |
8471 | *** depend on shared libraries, but programs linked with such libtool | |
8472 | *** libraries will work regardless of this problem. Nevertheless, you | |
8473 | *** may want to report the problem to your system manager and/or to | |
8474 | *** bug-libtool@gnu.org | |
8475 | ||
8476 | _LT_EOF | |
8477 | fi ;; | |
8478 | esac | |
8479 | fi | |
8480 | break | |
8481 | fi | |
8482 | done | |
8483 | IFS="$lt_save_ifs" | |
8484 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8485 | ;; | |
8486 | esac | |
8487 | fi | |
8488 | ||
8489 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8490 | if test -n "$MAGIC_CMD"; then | |
8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8492 | $as_echo "$MAGIC_CMD" >&6; } | |
8493 | else | |
8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8495 | $as_echo "no" >&6; } | |
8496 | fi | |
8497 | ||
8498 | ||
8499 | else | |
8500 | MAGIC_CMD=: | |
8501 | fi | |
8502 | fi | |
8503 | ||
8504 | fi | |
8505 | ;; | |
8506 | esac | |
8507 | ||
8508 | # Use C for the default configuration in the libtool script | |
8509 | ||
8510 | lt_save_CC="$CC" | |
8511 | ac_ext=c | |
8512 | ac_cpp='$CPP $CPPFLAGS' | |
8513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8516 | ||
8517 | ||
8518 | # Source file extension for C test sources. | |
8519 | ac_ext=c | |
8520 | ||
8521 | # Object file extension for compiled C test sources. | |
8522 | objext=o | |
8523 | objext=$objext | |
8524 | ||
8525 | # Code to be used in simple compile tests | |
8526 | lt_simple_compile_test_code="int some_variable = 0;" | |
8527 | ||
8528 | # Code to be used in simple link tests | |
8529 | lt_simple_link_test_code='int main(){return(0);}' | |
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | # If no C compiler was specified, use CC. | |
8538 | LTCC=${LTCC-"$CC"} | |
8539 | ||
8540 | # If no C compiler flags were specified, use CFLAGS. | |
8541 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8542 | ||
8543 | # Allow CC to be a program name with arguments. | |
8544 | compiler=$CC | |
8545 | ||
8546 | # Save the default compiler, since it gets overwritten when the other | |
8547 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8548 | compiler_DEFAULT=$CC | |
8549 | ||
8550 | # save warnings/boilerplate of simple test code | |
8551 | ac_outfile=conftest.$ac_objext | |
8552 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8553 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8554 | _lt_compiler_boilerplate=`cat conftest.err` | |
8555 | $RM conftest* | |
8556 | ||
8557 | ac_outfile=conftest.$ac_objext | |
8558 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8559 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8560 | _lt_linker_boilerplate=`cat conftest.err` | |
8561 | $RM -r conftest* | |
8562 | ||
8563 | ||
8564 | ## CAVEAT EMPTOR: | |
8565 | ## There is no encapsulation within the following macros, do not change | |
8566 | ## the running order or otherwise move them around unless you know exactly | |
8567 | ## what you are doing... | |
8568 | if test -n "$compiler"; then | |
8569 | ||
8570 | lt_prog_compiler_no_builtin_flag= | |
8571 | ||
8572 | if test "$GCC" = yes; then | |
8573 | case $cc_basename in | |
8574 | nvcc*) | |
8575 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8576 | *) | |
8577 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8578 | esac | |
8579 | ||
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8581 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8582 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8583 | $as_echo_n "(cached) " >&6 | |
8584 | else | |
8585 | lt_cv_prog_compiler_rtti_exceptions=no | |
8586 | ac_outfile=conftest.$ac_objext | |
8587 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8588 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8589 | # Insert the option either (1) after the last *FLAGS variable, or | |
8590 | # (2) before a word containing "conftest.", or (3) at the end. | |
8591 | # Note that $ac_compile itself does not contain backslashes and begins | |
8592 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8593 | # The option is referenced via a variable to avoid confusing sed. | |
8594 | lt_compile=`echo "$ac_compile" | $SED \ | |
8595 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8596 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8597 | -e 's:$: $lt_compiler_flag:'` | |
8598 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8599 | (eval "$lt_compile" 2>conftest.err) | |
8600 | ac_status=$? | |
8601 | cat conftest.err >&5 | |
8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8603 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8604 | # The compiler can only warn and ignore the option if not recognized | |
8605 | # So say no if there are warnings other than the usual output. | |
8606 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8607 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8608 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8609 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8610 | fi | |
8611 | fi | |
8612 | $RM conftest* | |
8613 | ||
8614 | fi | |
8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8616 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8617 | ||
8618 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8619 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8620 | else | |
8621 | : | |
8622 | fi | |
8623 | ||
8624 | fi | |
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | lt_prog_compiler_wl= | |
8632 | lt_prog_compiler_pic= | |
8633 | lt_prog_compiler_static= | |
8634 | ||
8635 | ||
8636 | if test "$GCC" = yes; then | |
8637 | lt_prog_compiler_wl='-Wl,' | |
8638 | lt_prog_compiler_static='-static' | |
8639 | ||
8640 | case $host_os in | |
8641 | aix*) | |
8642 | # All AIX code is PIC. | |
8643 | if test "$host_cpu" = ia64; then | |
8644 | # AIX 5 now supports IA64 processor | |
8645 | lt_prog_compiler_static='-Bstatic' | |
8646 | fi | |
8647 | ;; | |
8648 | ||
8649 | amigaos*) | |
8650 | case $host_cpu in | |
8651 | powerpc) | |
8652 | # see comment about AmigaOS4 .so support | |
8653 | lt_prog_compiler_pic='-fPIC' | |
8654 | ;; | |
8655 | m68k) | |
8656 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8657 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8658 | # like `-m68040'. | |
8659 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8660 | ;; | |
8661 | esac | |
8662 | ;; | |
8663 | ||
8664 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8665 | # PIC is the default for these OSes. | |
8666 | ;; | |
8667 | ||
8668 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8669 | # This hack is so that the source file can tell whether it is being | |
8670 | # built for inclusion in a dll (and should export symbols for example). | |
8671 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8672 | # (--disable-auto-import) libraries | |
8673 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8674 | ;; | |
8675 | ||
8676 | darwin* | rhapsody*) | |
8677 | # PIC is the default on this platform | |
8678 | # Common symbols not allowed in MH_DYLIB files | |
8679 | lt_prog_compiler_pic='-fno-common' | |
8680 | ;; | |
8681 | ||
8682 | haiku*) | |
8683 | # PIC is the default for Haiku. | |
8684 | # The "-static" flag exists, but is broken. | |
8685 | lt_prog_compiler_static= | |
8686 | ;; | |
8687 | ||
8688 | hpux*) | |
8689 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8690 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8691 | # sets the default TLS model and affects inlining. | |
8692 | case $host_cpu in | |
8693 | hppa*64*) | |
8694 | # +Z the default | |
8695 | ;; | |
8696 | *) | |
8697 | lt_prog_compiler_pic='-fPIC' | |
8698 | ;; | |
8699 | esac | |
8700 | ;; | |
8701 | ||
8702 | interix[3-9]*) | |
8703 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8704 | # Instead, we relocate shared libraries at runtime. | |
8705 | ;; | |
8706 | ||
8707 | msdosdjgpp*) | |
8708 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8709 | # on systems that don't support them. | |
8710 | lt_prog_compiler_can_build_shared=no | |
8711 | enable_shared=no | |
8712 | ;; | |
8713 | ||
8714 | *nto* | *qnx*) | |
8715 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8716 | # it will coredump. | |
8717 | lt_prog_compiler_pic='-fPIC -shared' | |
8718 | ;; | |
8719 | ||
8720 | sysv4*MP*) | |
8721 | if test -d /usr/nec; then | |
8722 | lt_prog_compiler_pic=-Kconform_pic | |
8723 | fi | |
8724 | ;; | |
8725 | ||
8726 | *) | |
8727 | lt_prog_compiler_pic='-fPIC' | |
8728 | ;; | |
8729 | esac | |
8730 | ||
8731 | case $cc_basename in | |
8732 | nvcc*) # Cuda Compiler Driver 2.2 | |
8733 | lt_prog_compiler_wl='-Xlinker ' | |
8734 | if test -n "$lt_prog_compiler_pic"; then | |
8735 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8736 | fi | |
8737 | ;; | |
8738 | esac | |
8739 | else | |
8740 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8741 | case $host_os in | |
8742 | aix*) | |
8743 | lt_prog_compiler_wl='-Wl,' | |
8744 | if test "$host_cpu" = ia64; then | |
8745 | # AIX 5 now supports IA64 processor | |
8746 | lt_prog_compiler_static='-Bstatic' | |
8747 | else | |
8748 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8749 | fi | |
8750 | ;; | |
8751 | ||
8752 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8753 | # This hack is so that the source file can tell whether it is being | |
8754 | # built for inclusion in a dll (and should export symbols for example). | |
8755 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8756 | ;; | |
8757 | ||
8758 | hpux9* | hpux10* | hpux11*) | |
8759 | lt_prog_compiler_wl='-Wl,' | |
8760 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8761 | # not for PA HP-UX. | |
8762 | case $host_cpu in | |
8763 | hppa*64*|ia64*) | |
8764 | # +Z the default | |
8765 | ;; | |
8766 | *) | |
8767 | lt_prog_compiler_pic='+Z' | |
8768 | ;; | |
8769 | esac | |
8770 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8771 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8772 | ;; | |
8773 | ||
8774 | irix5* | irix6* | nonstopux*) | |
8775 | lt_prog_compiler_wl='-Wl,' | |
8776 | # PIC (with -KPIC) is the default. | |
8777 | lt_prog_compiler_static='-non_shared' | |
8778 | ;; | |
8779 | ||
8780 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8781 | case $cc_basename in | |
8782 | # old Intel for x86_64 which still supported -KPIC. | |
8783 | ecc*) | |
8784 | lt_prog_compiler_wl='-Wl,' | |
8785 | lt_prog_compiler_pic='-KPIC' | |
8786 | lt_prog_compiler_static='-static' | |
8787 | ;; | |
8788 | # icc used to be incompatible with GCC. | |
8789 | # ICC 10 doesn't accept -KPIC any more. | |
8790 | icc* | ifort*) | |
8791 | lt_prog_compiler_wl='-Wl,' | |
8792 | lt_prog_compiler_pic='-fPIC' | |
8793 | lt_prog_compiler_static='-static' | |
8794 | ;; | |
8795 | # Lahey Fortran 8.1. | |
8796 | lf95*) | |
8797 | lt_prog_compiler_wl='-Wl,' | |
8798 | lt_prog_compiler_pic='--shared' | |
8799 | lt_prog_compiler_static='--static' | |
8800 | ;; | |
8801 | nagfor*) | |
8802 | # NAG Fortran compiler | |
8803 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8804 | lt_prog_compiler_pic='-PIC' | |
8805 | lt_prog_compiler_static='-Bstatic' | |
8806 | ;; | |
8807 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8808 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8809 | # which looks to be a dead project) | |
8810 | lt_prog_compiler_wl='-Wl,' | |
8811 | lt_prog_compiler_pic='-fpic' | |
8812 | lt_prog_compiler_static='-Bstatic' | |
8813 | ;; | |
8814 | ccc*) | |
8815 | lt_prog_compiler_wl='-Wl,' | |
8816 | # All Alpha code is PIC. | |
8817 | lt_prog_compiler_static='-non_shared' | |
8818 | ;; | |
8819 | xl* | bgxl* | bgf* | mpixl*) | |
8820 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8821 | lt_prog_compiler_wl='-Wl,' | |
8822 | lt_prog_compiler_pic='-qpic' | |
8823 | lt_prog_compiler_static='-qstaticlink' | |
8824 | ;; | |
8825 | *) | |
8826 | case `$CC -V 2>&1 | sed 5q` in | |
8827 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8828 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8829 | lt_prog_compiler_pic='-KPIC' | |
8830 | lt_prog_compiler_static='-Bstatic' | |
8831 | lt_prog_compiler_wl='' | |
8832 | ;; | |
8833 | *Sun\ F* | *Sun*Fortran*) | |
8834 | lt_prog_compiler_pic='-KPIC' | |
8835 | lt_prog_compiler_static='-Bstatic' | |
8836 | lt_prog_compiler_wl='-Qoption ld ' | |
8837 | ;; | |
8838 | *Sun\ C*) | |
8839 | # Sun C 5.9 | |
8840 | lt_prog_compiler_pic='-KPIC' | |
8841 | lt_prog_compiler_static='-Bstatic' | |
8842 | lt_prog_compiler_wl='-Wl,' | |
8843 | ;; | |
8844 | *Intel*\ [CF]*Compiler*) | |
8845 | lt_prog_compiler_wl='-Wl,' | |
8846 | lt_prog_compiler_pic='-fPIC' | |
8847 | lt_prog_compiler_static='-static' | |
8848 | ;; | |
8849 | *Portland\ Group*) | |
8850 | lt_prog_compiler_wl='-Wl,' | |
8851 | lt_prog_compiler_pic='-fpic' | |
8852 | lt_prog_compiler_static='-Bstatic' | |
8853 | ;; | |
8854 | esac | |
8855 | ;; | |
8856 | esac | |
8857 | ;; | |
8858 | ||
8859 | newsos6) | |
8860 | lt_prog_compiler_pic='-KPIC' | |
8861 | lt_prog_compiler_static='-Bstatic' | |
8862 | ;; | |
8863 | ||
8864 | *nto* | *qnx*) | |
8865 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8866 | # it will coredump. | |
8867 | lt_prog_compiler_pic='-fPIC -shared' | |
8868 | ;; | |
8869 | ||
8870 | osf3* | osf4* | osf5*) | |
8871 | lt_prog_compiler_wl='-Wl,' | |
8872 | # All OSF/1 code is PIC. | |
8873 | lt_prog_compiler_static='-non_shared' | |
8874 | ;; | |
8875 | ||
8876 | rdos*) | |
8877 | lt_prog_compiler_static='-non_shared' | |
8878 | ;; | |
8879 | ||
8880 | solaris*) | |
8881 | lt_prog_compiler_pic='-KPIC' | |
8882 | lt_prog_compiler_static='-Bstatic' | |
8883 | case $cc_basename in | |
8884 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8885 | lt_prog_compiler_wl='-Qoption ld ';; | |
8886 | *) | |
8887 | lt_prog_compiler_wl='-Wl,';; | |
8888 | esac | |
8889 | ;; | |
8890 | ||
8891 | sunos4*) | |
8892 | lt_prog_compiler_wl='-Qoption ld ' | |
8893 | lt_prog_compiler_pic='-PIC' | |
8894 | lt_prog_compiler_static='-Bstatic' | |
8895 | ;; | |
8896 | ||
8897 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8898 | lt_prog_compiler_wl='-Wl,' | |
8899 | lt_prog_compiler_pic='-KPIC' | |
8900 | lt_prog_compiler_static='-Bstatic' | |
8901 | ;; | |
8902 | ||
8903 | sysv4*MP*) | |
8904 | if test -d /usr/nec ;then | |
8905 | lt_prog_compiler_pic='-Kconform_pic' | |
8906 | lt_prog_compiler_static='-Bstatic' | |
8907 | fi | |
8908 | ;; | |
8909 | ||
8910 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8911 | lt_prog_compiler_wl='-Wl,' | |
8912 | lt_prog_compiler_pic='-KPIC' | |
8913 | lt_prog_compiler_static='-Bstatic' | |
8914 | ;; | |
8915 | ||
8916 | unicos*) | |
8917 | lt_prog_compiler_wl='-Wl,' | |
8918 | lt_prog_compiler_can_build_shared=no | |
8919 | ;; | |
8920 | ||
8921 | uts4*) | |
8922 | lt_prog_compiler_pic='-pic' | |
8923 | lt_prog_compiler_static='-Bstatic' | |
8924 | ;; | |
8925 | ||
8926 | *) | |
8927 | lt_prog_compiler_can_build_shared=no | |
8928 | ;; | |
8929 | esac | |
8930 | fi | |
8931 | ||
8932 | case $host_os in | |
8933 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8934 | *djgpp*) | |
8935 | lt_prog_compiler_pic= | |
8936 | ;; | |
8937 | *) | |
8938 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8939 | ;; | |
8940 | esac | |
8941 | ||
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8943 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8944 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8945 | $as_echo_n "(cached) " >&6 | |
8946 | else | |
8947 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8948 | fi | |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8950 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8951 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8952 | ||
8953 | # | |
8954 | # Check to make sure the PIC flag actually works. | |
8955 | # | |
8956 | if test -n "$lt_prog_compiler_pic"; then | |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8958 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8959 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8960 | $as_echo_n "(cached) " >&6 | |
8961 | else | |
8962 | lt_cv_prog_compiler_pic_works=no | |
8963 | ac_outfile=conftest.$ac_objext | |
8964 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8965 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8966 | # Insert the option either (1) after the last *FLAGS variable, or | |
8967 | # (2) before a word containing "conftest.", or (3) at the end. | |
8968 | # Note that $ac_compile itself does not contain backslashes and begins | |
8969 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8970 | # The option is referenced via a variable to avoid confusing sed. | |
8971 | lt_compile=`echo "$ac_compile" | $SED \ | |
8972 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8973 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8974 | -e 's:$: $lt_compiler_flag:'` | |
8975 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8976 | (eval "$lt_compile" 2>conftest.err) | |
8977 | ac_status=$? | |
8978 | cat conftest.err >&5 | |
8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8980 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8981 | # The compiler can only warn and ignore the option if not recognized | |
8982 | # So say no if there are warnings other than the usual output. | |
8983 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8984 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8985 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8986 | lt_cv_prog_compiler_pic_works=yes | |
8987 | fi | |
8988 | fi | |
8989 | $RM conftest* | |
8990 | ||
8991 | fi | |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8993 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8994 | ||
8995 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8996 | case $lt_prog_compiler_pic in | |
8997 | "" | " "*) ;; | |
8998 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8999 | esac | |
9000 | else | |
9001 | lt_prog_compiler_pic= | |
9002 | lt_prog_compiler_can_build_shared=no | |
9003 | fi | |
9004 | ||
9005 | fi | |
9006 | ||
9007 | ||
9008 | ||
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | ||
9015 | ||
9016 | ||
9017 | # | |
9018 | # Check to make sure the static flag actually works. | |
9019 | # | |
9020 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9022 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9023 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9024 | $as_echo_n "(cached) " >&6 | |
9025 | else | |
9026 | lt_cv_prog_compiler_static_works=no | |
9027 | save_LDFLAGS="$LDFLAGS" | |
9028 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9029 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9030 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9031 | # The linker can only warn and ignore the option if not recognized | |
9032 | # So say no if there are warnings | |
9033 | if test -s conftest.err; then | |
9034 | # Append any errors to the config.log. | |
9035 | cat conftest.err 1>&5 | |
9036 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9037 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9038 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9039 | lt_cv_prog_compiler_static_works=yes | |
9040 | fi | |
9041 | else | |
9042 | lt_cv_prog_compiler_static_works=yes | |
9043 | fi | |
9044 | fi | |
9045 | $RM -r conftest* | |
9046 | LDFLAGS="$save_LDFLAGS" | |
9047 | ||
9048 | fi | |
9049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9050 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9051 | ||
9052 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9053 | : | |
9054 | else | |
9055 | lt_prog_compiler_static= | |
9056 | fi | |
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9065 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9066 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9067 | $as_echo_n "(cached) " >&6 | |
9068 | else | |
9069 | lt_cv_prog_compiler_c_o=no | |
9070 | $RM -r conftest 2>/dev/null | |
9071 | mkdir conftest | |
9072 | cd conftest | |
9073 | mkdir out | |
9074 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9075 | ||
9076 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9077 | # Insert the option either (1) after the last *FLAGS variable, or | |
9078 | # (2) before a word containing "conftest.", or (3) at the end. | |
9079 | # Note that $ac_compile itself does not contain backslashes and begins | |
9080 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9081 | lt_compile=`echo "$ac_compile" | $SED \ | |
9082 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9083 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9084 | -e 's:$: $lt_compiler_flag:'` | |
9085 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9086 | (eval "$lt_compile" 2>out/conftest.err) | |
9087 | ac_status=$? | |
9088 | cat out/conftest.err >&5 | |
9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9090 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9091 | then | |
9092 | # The compiler can only warn and ignore the option if not recognized | |
9093 | # So say no if there are warnings | |
9094 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9095 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9096 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9097 | lt_cv_prog_compiler_c_o=yes | |
9098 | fi | |
9099 | fi | |
9100 | chmod u+w . 2>&5 | |
9101 | $RM conftest* | |
9102 | # SGI C++ compiler will create directory out/ii_files/ for | |
9103 | # template instantiation | |
9104 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9105 | $RM out/* && rmdir out | |
9106 | cd .. | |
9107 | $RM -r conftest | |
9108 | $RM conftest* | |
9109 | ||
9110 | fi | |
9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9112 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9113 | ||
9114 | ||
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9120 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9121 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9122 | $as_echo_n "(cached) " >&6 | |
9123 | else | |
9124 | lt_cv_prog_compiler_c_o=no | |
9125 | $RM -r conftest 2>/dev/null | |
9126 | mkdir conftest | |
9127 | cd conftest | |
9128 | mkdir out | |
9129 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9130 | ||
9131 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9132 | # Insert the option either (1) after the last *FLAGS variable, or | |
9133 | # (2) before a word containing "conftest.", or (3) at the end. | |
9134 | # Note that $ac_compile itself does not contain backslashes and begins | |
9135 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9136 | lt_compile=`echo "$ac_compile" | $SED \ | |
9137 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9138 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9139 | -e 's:$: $lt_compiler_flag:'` | |
9140 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9141 | (eval "$lt_compile" 2>out/conftest.err) | |
9142 | ac_status=$? | |
9143 | cat out/conftest.err >&5 | |
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9145 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9146 | then | |
9147 | # The compiler can only warn and ignore the option if not recognized | |
9148 | # So say no if there are warnings | |
9149 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9150 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9151 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9152 | lt_cv_prog_compiler_c_o=yes | |
9153 | fi | |
9154 | fi | |
9155 | chmod u+w . 2>&5 | |
9156 | $RM conftest* | |
9157 | # SGI C++ compiler will create directory out/ii_files/ for | |
9158 | # template instantiation | |
9159 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9160 | $RM out/* && rmdir out | |
9161 | cd .. | |
9162 | $RM -r conftest | |
9163 | $RM conftest* | |
9164 | ||
9165 | fi | |
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9167 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | hard_links="nottested" | |
9173 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9174 | # do not overwrite the value of need_locks provided by the user | |
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9176 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9177 | hard_links=yes | |
9178 | $RM conftest* | |
9179 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9180 | touch conftest.a | |
9181 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9182 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9184 | $as_echo "$hard_links" >&6; } | |
9185 | if test "$hard_links" = no; then | |
9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9187 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9188 | need_locks=warn | |
9189 | fi | |
9190 | else | |
9191 | need_locks=no | |
9192 | fi | |
9193 | ||
9194 | ||
9195 | ||
9196 | ||
9197 | ||
9198 | ||
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9200 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9201 | ||
9202 | runpath_var= | |
9203 | allow_undefined_flag= | |
9204 | always_export_symbols=no | |
9205 | archive_cmds= | |
9206 | archive_expsym_cmds= | |
9207 | compiler_needs_object=no | |
9208 | enable_shared_with_static_runtimes=no | |
9209 | export_dynamic_flag_spec= | |
9210 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9211 | hardcode_automatic=no | |
9212 | hardcode_direct=no | |
9213 | hardcode_direct_absolute=no | |
9214 | hardcode_libdir_flag_spec= | |
9215 | hardcode_libdir_separator= | |
9216 | hardcode_minus_L=no | |
9217 | hardcode_shlibpath_var=unsupported | |
9218 | inherit_rpath=no | |
9219 | link_all_deplibs=unknown | |
9220 | module_cmds= | |
9221 | module_expsym_cmds= | |
9222 | old_archive_from_new_cmds= | |
9223 | old_archive_from_expsyms_cmds= | |
9224 | thread_safe_flag_spec= | |
9225 | whole_archive_flag_spec= | |
9226 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9227 | # included in the symbol list | |
9228 | include_expsyms= | |
9229 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9230 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9231 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9232 | # as well as any symbol that contains `d'. | |
9233 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9234 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9235 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9236 | # the symbol is explicitly referenced. Since portable code cannot | |
9237 | # rely on this symbol name, it's probably fine to never include it in | |
9238 | # preloaded symbol tables. | |
9239 | # Exclude shared library initialization/finalization symbols. | |
9240 | extract_expsyms_cmds= | |
9241 | ||
9242 | case $host_os in | |
9243 | cygwin* | mingw* | pw32* | cegcc*) | |
9244 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9245 | # When not using gcc, we currently assume that we are using | |
9246 | # Microsoft Visual C++. | |
9247 | if test "$GCC" != yes; then | |
9248 | with_gnu_ld=no | |
9249 | fi | |
9250 | ;; | |
9251 | interix*) | |
9252 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9253 | with_gnu_ld=yes | |
9254 | ;; | |
9255 | openbsd*) | |
9256 | with_gnu_ld=no | |
9257 | ;; | |
9258 | linux* | k*bsd*-gnu | gnu*) | |
9259 | link_all_deplibs=no | |
9260 | ;; | |
9261 | esac | |
9262 | ||
9263 | ld_shlibs=yes | |
9264 | ||
9265 | # On some targets, GNU ld is compatible enough with the native linker | |
9266 | # that we're better off using the native interface for both. | |
9267 | lt_use_gnu_ld_interface=no | |
9268 | if test "$with_gnu_ld" = yes; then | |
9269 | case $host_os in | |
9270 | aix*) | |
9271 | # The AIX port of GNU ld has always aspired to compatibility | |
9272 | # with the native linker. However, as the warning in the GNU ld | |
9273 | # block says, versions before 2.19.5* couldn't really create working | |
9274 | # shared libraries, regardless of the interface used. | |
9275 | case `$LD -v 2>&1` in | |
9276 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9277 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9278 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9279 | *) | |
9280 | lt_use_gnu_ld_interface=yes | |
9281 | ;; | |
9282 | esac | |
9283 | ;; | |
9284 | *) | |
9285 | lt_use_gnu_ld_interface=yes | |
9286 | ;; | |
9287 | esac | |
9288 | fi | |
9289 | ||
9290 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9291 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9292 | wlarc='${wl}' | |
9293 | ||
9294 | # Set some defaults for GNU ld with shared library support. These | |
9295 | # are reset later if shared libraries are not supported. Putting them | |
9296 | # here allows them to be overridden if necessary. | |
9297 | runpath_var=LD_RUN_PATH | |
9298 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9299 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9300 | # ancient GNU ld didn't support --whole-archive et. al. | |
9301 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9302 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9303 | else | |
9304 | whole_archive_flag_spec= | |
9305 | fi | |
9306 | supports_anon_versioning=no | |
9307 | case `$LD -v 2>&1` in | |
9308 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9309 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9310 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9311 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9312 | *\ 2.11.*) ;; # other 2.11 versions | |
9313 | *) supports_anon_versioning=yes ;; | |
9314 | esac | |
9315 | ||
9316 | # See if GNU ld supports shared libraries. | |
9317 | case $host_os in | |
9318 | aix[3-9]*) | |
9319 | # On AIX/PPC, the GNU linker is very broken | |
9320 | if test "$host_cpu" != ia64; then | |
9321 | ld_shlibs=no | |
9322 | cat <<_LT_EOF 1>&2 | |
9323 | ||
9324 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9325 | *** to be unable to reliably create shared libraries on AIX. | |
9326 | *** Therefore, libtool is disabling shared libraries support. If you | |
9327 | *** really care for shared libraries, you may want to install binutils | |
9328 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9329 | *** You will then need to restart the configuration process. | |
9330 | ||
9331 | _LT_EOF | |
9332 | fi | |
9333 | ;; | |
9334 | ||
9335 | amigaos*) | |
9336 | case $host_cpu in | |
9337 | powerpc) | |
9338 | # see comment about AmigaOS4 .so support | |
9339 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9340 | archive_expsym_cmds='' | |
9341 | ;; | |
9342 | m68k) | |
9343 | 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)' | |
9344 | hardcode_libdir_flag_spec='-L$libdir' | |
9345 | hardcode_minus_L=yes | |
9346 | ;; | |
9347 | esac | |
9348 | ;; | |
9349 | ||
9350 | beos*) | |
9351 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9352 | allow_undefined_flag=unsupported | |
9353 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9354 | # support --undefined. This deserves some investigation. FIXME | |
9355 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9356 | else | |
9357 | ld_shlibs=no | |
9358 | fi | |
9359 | ;; | |
9360 | ||
9361 | cygwin* | mingw* | pw32* | cegcc*) | |
9362 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9363 | # as there is no search path for DLLs. | |
9364 | hardcode_libdir_flag_spec='-L$libdir' | |
9365 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9366 | allow_undefined_flag=unsupported | |
9367 | always_export_symbols=no | |
9368 | enable_shared_with_static_runtimes=yes | |
9369 | 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' | |
9370 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9371 | ||
9372 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9373 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9374 | # If the export-symbols file already is a .def file (1st line | |
9375 | # is EXPORTS), use it as is; otherwise, prepend... | |
9376 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9377 | cp $export_symbols $output_objdir/$soname.def; | |
9378 | else | |
9379 | echo EXPORTS > $output_objdir/$soname.def; | |
9380 | cat $export_symbols >> $output_objdir/$soname.def; | |
9381 | fi~ | |
9382 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9383 | else | |
9384 | ld_shlibs=no | |
9385 | fi | |
9386 | ;; | |
9387 | ||
9388 | haiku*) | |
9389 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9390 | link_all_deplibs=yes | |
9391 | ;; | |
9392 | ||
9393 | interix[3-9]*) | |
9394 | hardcode_direct=no | |
9395 | hardcode_shlibpath_var=no | |
9396 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9397 | export_dynamic_flag_spec='${wl}-E' | |
9398 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9399 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9400 | # default) and relocated if they conflict, which is a slow very memory | |
9401 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9402 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9403 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9404 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9405 | 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' | |
9406 | ;; | |
9407 | ||
9408 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9409 | tmp_diet=no | |
9410 | if test "$host_os" = linux-dietlibc; then | |
9411 | case $cc_basename in | |
9412 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9413 | esac | |
9414 | fi | |
9415 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9416 | && test "$tmp_diet" = no | |
9417 | then | |
9418 | tmp_addflag=' $pic_flag' | |
9419 | tmp_sharedflag='-shared' | |
9420 | case $cc_basename,$host_cpu in | |
9421 | pgcc*) # Portland Group C compiler | |
9422 | 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' | |
9423 | tmp_addflag=' $pic_flag' | |
9424 | ;; | |
9425 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9426 | # Portland Group f77 and f90 compilers | |
9427 | 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' | |
9428 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9429 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9430 | tmp_addflag=' -i_dynamic' ;; | |
9431 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9432 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9433 | ifc* | ifort*) # Intel Fortran compiler | |
9434 | tmp_addflag=' -nofor_main' ;; | |
9435 | lf95*) # Lahey Fortran 8.1 | |
9436 | whole_archive_flag_spec= | |
9437 | tmp_sharedflag='--shared' ;; | |
9438 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9439 | tmp_sharedflag='-qmkshrobj' | |
9440 | tmp_addflag= ;; | |
9441 | nvcc*) # Cuda Compiler Driver 2.2 | |
9442 | 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' | |
9443 | compiler_needs_object=yes | |
9444 | ;; | |
9445 | esac | |
9446 | case `$CC -V 2>&1 | sed 5q` in | |
9447 | *Sun\ C*) # Sun C 5.9 | |
9448 | 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' | |
9449 | compiler_needs_object=yes | |
9450 | tmp_sharedflag='-G' ;; | |
9451 | *Sun\ F*) # Sun Fortran 8.3 | |
9452 | tmp_sharedflag='-G' ;; | |
9453 | esac | |
9454 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9455 | ||
9456 | if test "x$supports_anon_versioning" = xyes; then | |
9457 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9458 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9459 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9460 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9461 | fi | |
9462 | ||
9463 | case $cc_basename in | |
9464 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9465 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9466 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9467 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9468 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9469 | if test "x$supports_anon_versioning" = xyes; then | |
9470 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9471 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9472 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9473 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9474 | fi | |
9475 | ;; | |
9476 | esac | |
9477 | else | |
9478 | ld_shlibs=no | |
9479 | fi | |
9480 | ;; | |
9481 | ||
9482 | netbsd* | netbsdelf*-gnu) | |
9483 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9484 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9485 | wlarc= | |
9486 | else | |
9487 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9488 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9489 | fi | |
9490 | ;; | |
9491 | ||
9492 | solaris*) | |
9493 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9494 | ld_shlibs=no | |
9495 | cat <<_LT_EOF 1>&2 | |
9496 | ||
9497 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9498 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9499 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9500 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9501 | *** your PATH or compiler configuration so that the native linker is | |
9502 | *** used, and then restart. | |
9503 | ||
9504 | _LT_EOF | |
9505 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9506 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9507 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9508 | else | |
9509 | ld_shlibs=no | |
9510 | fi | |
9511 | ;; | |
9512 | ||
9513 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9514 | case `$LD -v 2>&1` in | |
9515 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9516 | ld_shlibs=no | |
9517 | cat <<_LT_EOF 1>&2 | |
9518 | ||
9519 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9520 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9521 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9522 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9523 | *** your PATH or compiler configuration so that the native linker is | |
9524 | *** used, and then restart. | |
9525 | ||
9526 | _LT_EOF | |
9527 | ;; | |
9528 | *) | |
9529 | # For security reasons, it is highly recommended that you always | |
9530 | # use absolute paths for naming shared libraries, and exclude the | |
9531 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9532 | # requires that you compile everything twice, which is a pain. | |
9533 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9534 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9535 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9536 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9537 | else | |
9538 | ld_shlibs=no | |
9539 | fi | |
9540 | ;; | |
9541 | esac | |
9542 | ;; | |
9543 | ||
9544 | sunos4*) | |
9545 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9546 | wlarc= | |
9547 | hardcode_direct=yes | |
9548 | hardcode_shlibpath_var=no | |
9549 | ;; | |
9550 | ||
9551 | *) | |
9552 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9553 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9554 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9555 | else | |
9556 | ld_shlibs=no | |
9557 | fi | |
9558 | ;; | |
9559 | esac | |
9560 | ||
9561 | if test "$ld_shlibs" = no; then | |
9562 | runpath_var= | |
9563 | hardcode_libdir_flag_spec= | |
9564 | export_dynamic_flag_spec= | |
9565 | whole_archive_flag_spec= | |
9566 | fi | |
9567 | else | |
9568 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9569 | case $host_os in | |
9570 | aix3*) | |
9571 | allow_undefined_flag=unsupported | |
9572 | always_export_symbols=yes | |
9573 | 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' | |
9574 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9575 | # are no directories specified by -L. | |
9576 | hardcode_minus_L=yes | |
9577 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9578 | # Neither direct hardcoding nor static linking is supported with a | |
9579 | # broken collect2. | |
9580 | hardcode_direct=unsupported | |
9581 | fi | |
9582 | ;; | |
9583 | ||
9584 | aix[4-9]*) | |
9585 | if test "$host_cpu" = ia64; then | |
9586 | # On IA64, the linker does run time linking by default, so we don't | |
9587 | # have to do anything special. | |
9588 | aix_use_runtimelinking=no | |
9589 | exp_sym_flag='-Bexport' | |
9590 | no_entry_flag="" | |
9591 | else | |
9592 | # If we're using GNU nm, then we don't want the "-C" option. | |
9593 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9594 | # Also, AIX nm treats weak defined symbols like other global | |
9595 | # defined symbols, whereas GNU nm marks them as "W". | |
9596 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9597 | 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' | |
9598 | else | |
9599 | 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' | |
9600 | fi | |
9601 | aix_use_runtimelinking=no | |
9602 | ||
9603 | # Test if we are trying to use run time linking or normal | |
9604 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9605 | # need to do runtime linking. | |
9606 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9607 | for ld_flag in $LDFLAGS; do | |
9608 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9609 | aix_use_runtimelinking=yes | |
9610 | break | |
9611 | fi | |
9612 | done | |
9613 | ;; | |
9614 | esac | |
9615 | ||
9616 | exp_sym_flag='-bexport' | |
9617 | no_entry_flag='-bnoentry' | |
9618 | fi | |
9619 | ||
9620 | # When large executables or shared objects are built, AIX ld can | |
9621 | # have problems creating the table of contents. If linking a library | |
9622 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9623 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9624 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9625 | ||
9626 | archive_cmds='' | |
9627 | hardcode_direct=yes | |
9628 | hardcode_direct_absolute=yes | |
9629 | hardcode_libdir_separator=':' | |
9630 | link_all_deplibs=yes | |
9631 | file_list_spec='${wl}-f,' | |
9632 | ||
9633 | if test "$GCC" = yes; then | |
9634 | case $host_os in aix4.[012]|aix4.[012].*) | |
9635 | # We only want to do this on AIX 4.2 and lower, the check | |
9636 | # below for broken collect2 doesn't work under 4.3+ | |
9637 | collect2name=`${CC} -print-prog-name=collect2` | |
9638 | if test -f "$collect2name" && | |
9639 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9640 | then | |
9641 | # We have reworked collect2 | |
9642 | : | |
9643 | else | |
9644 | # We have old collect2 | |
9645 | hardcode_direct=unsupported | |
9646 | # It fails to find uninstalled libraries when the uninstalled | |
9647 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9648 | # to unsupported forces relinking | |
9649 | hardcode_minus_L=yes | |
9650 | hardcode_libdir_flag_spec='-L$libdir' | |
9651 | hardcode_libdir_separator= | |
9652 | fi | |
9653 | ;; | |
9654 | esac | |
9655 | shared_flag='-shared' | |
9656 | if test "$aix_use_runtimelinking" = yes; then | |
9657 | shared_flag="$shared_flag "'${wl}-G' | |
9658 | fi | |
9659 | link_all_deplibs=no | |
9660 | else | |
9661 | # not using gcc | |
9662 | if test "$host_cpu" = ia64; then | |
9663 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9664 | # chokes on -Wl,-G. The following line is correct: | |
9665 | shared_flag='-G' | |
9666 | else | |
9667 | if test "$aix_use_runtimelinking" = yes; then | |
9668 | shared_flag='${wl}-G' | |
9669 | else | |
9670 | shared_flag='${wl}-bM:SRE' | |
9671 | fi | |
9672 | fi | |
9673 | fi | |
9674 | ||
9675 | export_dynamic_flag_spec='${wl}-bexpall' | |
9676 | # It seems that -bexpall does not export symbols beginning with | |
9677 | # underscore (_), so it is better to generate a list of symbols to export. | |
9678 | always_export_symbols=yes | |
9679 | if test "$aix_use_runtimelinking" = yes; then | |
9680 | # Warning - without using the other runtime loading flags (-brtl), | |
9681 | # -berok will link without error, but may produce a broken library. | |
9682 | allow_undefined_flag='-berok' | |
9683 | # Determine the default libpath from the value encoded in an | |
9684 | # empty executable. | |
9685 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9686 | aix_libpath=$lt_cv_aix_libpath | |
9687 | else | |
9688 | if ${lt_cv_aix_libpath_+:} false; then : | |
9689 | $as_echo_n "(cached) " >&6 | |
9690 | else | |
9691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9692 | /* end confdefs.h. */ | |
9693 | ||
9694 | int | |
9695 | main () | |
9696 | { | |
9697 | ||
9698 | ; | |
9699 | return 0; | |
9700 | } | |
9701 | _ACEOF | |
9702 | if ac_fn_c_try_link "$LINENO"; then : | |
9703 | ||
9704 | lt_aix_libpath_sed=' | |
9705 | /Import File Strings/,/^$/ { | |
9706 | /^0/ { | |
9707 | s/^0 *\([^ ]*\) *$/\1/ | |
9708 | p | |
9709 | } | |
9710 | }' | |
9711 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9712 | # Check for a 64-bit object if we didn't find anything. | |
9713 | if test -z "$lt_cv_aix_libpath_"; then | |
9714 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9715 | fi | |
9716 | fi | |
9717 | rm -f core conftest.err conftest.$ac_objext \ | |
9718 | conftest$ac_exeext conftest.$ac_ext | |
9719 | if test -z "$lt_cv_aix_libpath_"; then | |
9720 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9721 | fi | |
9722 | ||
9723 | fi | |
9724 | ||
9725 | aix_libpath=$lt_cv_aix_libpath_ | |
9726 | fi | |
9727 | ||
9728 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9729 | 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" | |
9730 | else | |
9731 | if test "$host_cpu" = ia64; then | |
9732 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9733 | allow_undefined_flag="-z nodefs" | |
9734 | 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" | |
9735 | else | |
9736 | # Determine the default libpath from the value encoded in an | |
9737 | # empty executable. | |
9738 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9739 | aix_libpath=$lt_cv_aix_libpath | |
9740 | else | |
9741 | if ${lt_cv_aix_libpath_+:} false; then : | |
9742 | $as_echo_n "(cached) " >&6 | |
9743 | else | |
9744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9745 | /* end confdefs.h. */ | |
9746 | ||
9747 | int | |
9748 | main () | |
9749 | { | |
9750 | ||
9751 | ; | |
9752 | return 0; | |
9753 | } | |
9754 | _ACEOF | |
9755 | if ac_fn_c_try_link "$LINENO"; then : | |
9756 | ||
9757 | lt_aix_libpath_sed=' | |
9758 | /Import File Strings/,/^$/ { | |
9759 | /^0/ { | |
9760 | s/^0 *\([^ ]*\) *$/\1/ | |
9761 | p | |
9762 | } | |
9763 | }' | |
9764 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9765 | # Check for a 64-bit object if we didn't find anything. | |
9766 | if test -z "$lt_cv_aix_libpath_"; then | |
9767 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9768 | fi | |
9769 | fi | |
9770 | rm -f core conftest.err conftest.$ac_objext \ | |
9771 | conftest$ac_exeext conftest.$ac_ext | |
9772 | if test -z "$lt_cv_aix_libpath_"; then | |
9773 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9774 | fi | |
9775 | ||
9776 | fi | |
9777 | ||
9778 | aix_libpath=$lt_cv_aix_libpath_ | |
9779 | fi | |
9780 | ||
9781 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9782 | # Warning - without using the other run time loading flags, | |
9783 | # -berok will link without error, but may produce a broken library. | |
9784 | no_undefined_flag=' ${wl}-bernotok' | |
9785 | allow_undefined_flag=' ${wl}-berok' | |
9786 | if test "$with_gnu_ld" = yes; then | |
9787 | # We only use this code for GNU lds that support --whole-archive. | |
9788 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9789 | else | |
9790 | # Exported symbols can be pulled into shared objects from archives | |
9791 | whole_archive_flag_spec='$convenience' | |
9792 | fi | |
9793 | archive_cmds_need_lc=yes | |
9794 | # This is similar to how AIX traditionally builds its shared libraries. | |
9795 | 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' | |
9796 | fi | |
9797 | fi | |
9798 | ;; | |
9799 | ||
9800 | amigaos*) | |
9801 | case $host_cpu in | |
9802 | powerpc) | |
9803 | # see comment about AmigaOS4 .so support | |
9804 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9805 | archive_expsym_cmds='' | |
9806 | ;; | |
9807 | m68k) | |
9808 | 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)' | |
9809 | hardcode_libdir_flag_spec='-L$libdir' | |
9810 | hardcode_minus_L=yes | |
9811 | ;; | |
9812 | esac | |
9813 | ;; | |
9814 | ||
9815 | bsdi[45]*) | |
9816 | export_dynamic_flag_spec=-rdynamic | |
9817 | ;; | |
9818 | ||
9819 | cygwin* | mingw* | pw32* | cegcc*) | |
9820 | # When not using gcc, we currently assume that we are using | |
9821 | # Microsoft Visual C++. | |
9822 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9823 | # no search path for DLLs. | |
9824 | case $cc_basename in | |
9825 | cl*) | |
9826 | # Native MSVC | |
9827 | hardcode_libdir_flag_spec=' ' | |
9828 | allow_undefined_flag=unsupported | |
9829 | always_export_symbols=yes | |
9830 | file_list_spec='@' | |
9831 | # Tell ltmain to make .lib files, not .a files. | |
9832 | libext=lib | |
9833 | # Tell ltmain to make .dll files, not .so files. | |
9834 | shrext_cmds=".dll" | |
9835 | # FIXME: Setting linknames here is a bad hack. | |
9836 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9837 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9838 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9839 | else | |
9840 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9841 | fi~ | |
9842 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9843 | linknames=' | |
9844 | # The linker will not automatically build a static lib if we build a DLL. | |
9845 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9846 | enable_shared_with_static_runtimes=yes | |
9847 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9848 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9849 | # Don't use ranlib | |
9850 | old_postinstall_cmds='chmod 644 $oldlib' | |
9851 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9852 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9853 | case $lt_outputfile in | |
9854 | *.exe|*.EXE) ;; | |
9855 | *) | |
9856 | lt_outputfile="$lt_outputfile.exe" | |
9857 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9858 | ;; | |
9859 | esac~ | |
9860 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9861 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9862 | $RM "$lt_outputfile.manifest"; | |
9863 | fi' | |
9864 | ;; | |
9865 | *) | |
9866 | # Assume MSVC wrapper | |
9867 | hardcode_libdir_flag_spec=' ' | |
9868 | allow_undefined_flag=unsupported | |
9869 | # Tell ltmain to make .lib files, not .a files. | |
9870 | libext=lib | |
9871 | # Tell ltmain to make .dll files, not .so files. | |
9872 | shrext_cmds=".dll" | |
9873 | # FIXME: Setting linknames here is a bad hack. | |
9874 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9875 | # The linker will automatically build a .lib file if we build a DLL. | |
9876 | old_archive_from_new_cmds='true' | |
9877 | # FIXME: Should let the user specify the lib program. | |
9878 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9879 | enable_shared_with_static_runtimes=yes | |
9880 | ;; | |
9881 | esac | |
9882 | ;; | |
9883 | ||
9884 | darwin* | rhapsody*) | |
9885 | ||
9886 | ||
9887 | archive_cmds_need_lc=no | |
9888 | hardcode_direct=no | |
9889 | hardcode_automatic=yes | |
9890 | hardcode_shlibpath_var=unsupported | |
9891 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9892 | 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\"`' | |
9893 | ||
9894 | else | |
9895 | whole_archive_flag_spec='' | |
9896 | fi | |
9897 | link_all_deplibs=yes | |
9898 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9899 | case $cc_basename in | |
9900 | ifort*) _lt_dar_can_shared=yes ;; | |
9901 | *) _lt_dar_can_shared=$GCC ;; | |
9902 | esac | |
9903 | if test "$_lt_dar_can_shared" = "yes"; then | |
9904 | output_verbose_link_cmd=func_echo_all | |
9905 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9906 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9907 | 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}" | |
9908 | 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}" | |
9909 | ||
9910 | else | |
9911 | ld_shlibs=no | |
9912 | fi | |
9913 | ||
9914 | ;; | |
9915 | ||
9916 | dgux*) | |
9917 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9918 | hardcode_libdir_flag_spec='-L$libdir' | |
9919 | hardcode_shlibpath_var=no | |
9920 | ;; | |
9921 | ||
9922 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9923 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9924 | # does not break anything, and helps significantly (at the cost of a little | |
9925 | # extra space). | |
9926 | freebsd2.2*) | |
9927 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9928 | hardcode_libdir_flag_spec='-R$libdir' | |
9929 | hardcode_direct=yes | |
9930 | hardcode_shlibpath_var=no | |
9931 | ;; | |
9932 | ||
9933 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9934 | freebsd2.*) | |
9935 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9936 | hardcode_direct=yes | |
9937 | hardcode_minus_L=yes | |
9938 | hardcode_shlibpath_var=no | |
9939 | ;; | |
9940 | ||
9941 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9942 | freebsd* | dragonfly*) | |
9943 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9944 | hardcode_libdir_flag_spec='-R$libdir' | |
9945 | hardcode_direct=yes | |
9946 | hardcode_shlibpath_var=no | |
9947 | ;; | |
9948 | ||
9949 | hpux9*) | |
9950 | if test "$GCC" = yes; then | |
9951 | 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' | |
9952 | else | |
9953 | 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' | |
9954 | fi | |
9955 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9956 | hardcode_libdir_separator=: | |
9957 | hardcode_direct=yes | |
9958 | ||
9959 | # hardcode_minus_L: Not really in the search PATH, | |
9960 | # but as the default location of the library. | |
9961 | hardcode_minus_L=yes | |
9962 | export_dynamic_flag_spec='${wl}-E' | |
9963 | ;; | |
9964 | ||
9965 | hpux10*) | |
9966 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9967 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9968 | else | |
9969 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9970 | fi | |
9971 | if test "$with_gnu_ld" = no; then | |
9972 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9973 | hardcode_libdir_separator=: | |
9974 | hardcode_direct=yes | |
9975 | hardcode_direct_absolute=yes | |
9976 | export_dynamic_flag_spec='${wl}-E' | |
9977 | # hardcode_minus_L: Not really in the search PATH, | |
9978 | # but as the default location of the library. | |
9979 | hardcode_minus_L=yes | |
9980 | fi | |
9981 | ;; | |
9982 | ||
9983 | hpux11*) | |
9984 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9985 | case $host_cpu in | |
9986 | hppa*64*) | |
9987 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9988 | ;; | |
9989 | ia64*) | |
9990 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9991 | ;; | |
9992 | *) | |
9993 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9994 | ;; | |
9995 | esac | |
9996 | else | |
9997 | case $host_cpu in | |
9998 | hppa*64*) | |
9999 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10000 | ;; | |
10001 | ia64*) | |
10002 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10003 | ;; | |
10004 | *) | |
10005 | ||
10006 | # Older versions of the 11.00 compiler do not understand -b yet | |
10007 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10009 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10010 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10011 | $as_echo_n "(cached) " >&6 | |
10012 | else | |
10013 | lt_cv_prog_compiler__b=no | |
10014 | save_LDFLAGS="$LDFLAGS" | |
10015 | LDFLAGS="$LDFLAGS -b" | |
10016 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10017 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10018 | # The linker can only warn and ignore the option if not recognized | |
10019 | # So say no if there are warnings | |
10020 | if test -s conftest.err; then | |
10021 | # Append any errors to the config.log. | |
10022 | cat conftest.err 1>&5 | |
10023 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10024 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10025 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10026 | lt_cv_prog_compiler__b=yes | |
10027 | fi | |
10028 | else | |
10029 | lt_cv_prog_compiler__b=yes | |
10030 | fi | |
10031 | fi | |
10032 | $RM -r conftest* | |
10033 | LDFLAGS="$save_LDFLAGS" | |
10034 | ||
10035 | fi | |
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10037 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10038 | ||
10039 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10040 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10041 | else | |
10042 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10043 | fi | |
10044 | ||
10045 | ;; | |
10046 | esac | |
10047 | fi | |
10048 | if test "$with_gnu_ld" = no; then | |
10049 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10050 | hardcode_libdir_separator=: | |
10051 | ||
10052 | case $host_cpu in | |
10053 | hppa*64*|ia64*) | |
10054 | hardcode_direct=no | |
10055 | hardcode_shlibpath_var=no | |
10056 | ;; | |
10057 | *) | |
10058 | hardcode_direct=yes | |
10059 | hardcode_direct_absolute=yes | |
10060 | export_dynamic_flag_spec='${wl}-E' | |
10061 | ||
10062 | # hardcode_minus_L: Not really in the search PATH, | |
10063 | # but as the default location of the library. | |
10064 | hardcode_minus_L=yes | |
10065 | ;; | |
10066 | esac | |
10067 | fi | |
10068 | ;; | |
10069 | ||
10070 | irix5* | irix6* | nonstopux*) | |
10071 | if test "$GCC" = yes; then | |
10072 | 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' | |
10073 | # Try to use the -exported_symbol ld option, if it does not | |
10074 | # work, assume that -exports_file does not work either and | |
10075 | # implicitly export all symbols. | |
10076 | # This should be the same for all languages, so no per-tag cache variable. | |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10078 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10079 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10080 | $as_echo_n "(cached) " >&6 | |
10081 | else | |
10082 | save_LDFLAGS="$LDFLAGS" | |
10083 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10085 | /* end confdefs.h. */ | |
10086 | int foo (void) { return 0; } | |
10087 | _ACEOF | |
10088 | if ac_fn_c_try_link "$LINENO"; then : | |
10089 | lt_cv_irix_exported_symbol=yes | |
10090 | else | |
10091 | lt_cv_irix_exported_symbol=no | |
10092 | fi | |
10093 | rm -f core conftest.err conftest.$ac_objext \ | |
10094 | conftest$ac_exeext conftest.$ac_ext | |
10095 | LDFLAGS="$save_LDFLAGS" | |
10096 | fi | |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10098 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10099 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10100 | 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' | |
10101 | fi | |
10102 | else | |
10103 | 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' | |
10104 | 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' | |
10105 | fi | |
10106 | archive_cmds_need_lc='no' | |
10107 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10108 | hardcode_libdir_separator=: | |
10109 | inherit_rpath=yes | |
10110 | link_all_deplibs=yes | |
10111 | ;; | |
10112 | ||
10113 | netbsd* | netbsdelf*-gnu) | |
10114 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10115 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10116 | else | |
10117 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10118 | fi | |
10119 | hardcode_libdir_flag_spec='-R$libdir' | |
10120 | hardcode_direct=yes | |
10121 | hardcode_shlibpath_var=no | |
10122 | ;; | |
10123 | ||
10124 | newsos6) | |
10125 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10126 | hardcode_direct=yes | |
10127 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10128 | hardcode_libdir_separator=: | |
10129 | hardcode_shlibpath_var=no | |
10130 | ;; | |
10131 | ||
10132 | *nto* | *qnx*) | |
10133 | ;; | |
10134 | ||
10135 | openbsd*) | |
10136 | if test -f /usr/libexec/ld.so; then | |
10137 | hardcode_direct=yes | |
10138 | hardcode_shlibpath_var=no | |
10139 | hardcode_direct_absolute=yes | |
10140 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10141 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10142 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10143 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10144 | export_dynamic_flag_spec='${wl}-E' | |
10145 | else | |
10146 | case $host_os in | |
10147 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10148 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10149 | hardcode_libdir_flag_spec='-R$libdir' | |
10150 | ;; | |
10151 | *) | |
10152 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10153 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10154 | ;; | |
10155 | esac | |
10156 | fi | |
10157 | else | |
10158 | ld_shlibs=no | |
10159 | fi | |
10160 | ;; | |
10161 | ||
10162 | os2*) | |
10163 | hardcode_libdir_flag_spec='-L$libdir' | |
10164 | hardcode_minus_L=yes | |
10165 | allow_undefined_flag=unsupported | |
10166 | 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' | |
10167 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10168 | ;; | |
10169 | ||
10170 | osf3*) | |
10171 | if test "$GCC" = yes; then | |
10172 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10173 | 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' | |
10174 | else | |
10175 | allow_undefined_flag=' -expect_unresolved \*' | |
10176 | 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' | |
10177 | fi | |
10178 | archive_cmds_need_lc='no' | |
10179 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10180 | hardcode_libdir_separator=: | |
10181 | ;; | |
10182 | ||
10183 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10184 | if test "$GCC" = yes; then | |
10185 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10186 | 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' | |
10187 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10188 | else | |
10189 | allow_undefined_flag=' -expect_unresolved \*' | |
10190 | 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' | |
10191 | 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~ | |
10192 | $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' | |
10193 | ||
10194 | # Both c and cxx compiler support -rpath directly | |
10195 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10196 | fi | |
10197 | archive_cmds_need_lc='no' | |
10198 | hardcode_libdir_separator=: | |
10199 | ;; | |
10200 | ||
10201 | solaris*) | |
10202 | no_undefined_flag=' -z defs' | |
10203 | if test "$GCC" = yes; then | |
10204 | wlarc='${wl}' | |
10205 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10206 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10207 | $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' | |
10208 | else | |
10209 | case `$CC -V 2>&1` in | |
10210 | *"Compilers 5.0"*) | |
10211 | wlarc='' | |
10212 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10213 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10214 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10215 | ;; | |
10216 | *) | |
10217 | wlarc='${wl}' | |
10218 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10219 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10220 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10221 | ;; | |
10222 | esac | |
10223 | fi | |
10224 | hardcode_libdir_flag_spec='-R$libdir' | |
10225 | hardcode_shlibpath_var=no | |
10226 | case $host_os in | |
10227 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10228 | *) | |
10229 | # The compiler driver will combine and reorder linker options, | |
10230 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10231 | # but is careful enough not to reorder. | |
10232 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10233 | if test "$GCC" = yes; then | |
10234 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10235 | else | |
10236 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10237 | fi | |
10238 | ;; | |
10239 | esac | |
10240 | link_all_deplibs=yes | |
10241 | ;; | |
10242 | ||
10243 | sunos4*) | |
10244 | if test "x$host_vendor" = xsequent; then | |
10245 | # Use $CC to link under sequent, because it throws in some extra .o | |
10246 | # files that make .init and .fini sections work. | |
10247 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10248 | else | |
10249 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10250 | fi | |
10251 | hardcode_libdir_flag_spec='-L$libdir' | |
10252 | hardcode_direct=yes | |
10253 | hardcode_minus_L=yes | |
10254 | hardcode_shlibpath_var=no | |
10255 | ;; | |
10256 | ||
10257 | sysv4) | |
10258 | case $host_vendor in | |
10259 | sni) | |
10260 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10261 | hardcode_direct=yes # is this really true??? | |
10262 | ;; | |
10263 | siemens) | |
10264 | ## LD is ld it makes a PLAMLIB | |
10265 | ## CC just makes a GrossModule. | |
10266 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10267 | reload_cmds='$CC -r -o $output$reload_objs' | |
10268 | hardcode_direct=no | |
10269 | ;; | |
10270 | motorola) | |
10271 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10272 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10273 | ;; | |
10274 | esac | |
10275 | runpath_var='LD_RUN_PATH' | |
10276 | hardcode_shlibpath_var=no | |
10277 | ;; | |
10278 | ||
10279 | sysv4.3*) | |
10280 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10281 | hardcode_shlibpath_var=no | |
10282 | export_dynamic_flag_spec='-Bexport' | |
10283 | ;; | |
10284 | ||
10285 | sysv4*MP*) | |
10286 | if test -d /usr/nec; then | |
10287 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10288 | hardcode_shlibpath_var=no | |
10289 | runpath_var=LD_RUN_PATH | |
10290 | hardcode_runpath_var=yes | |
10291 | ld_shlibs=yes | |
10292 | fi | |
10293 | ;; | |
10294 | ||
10295 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10296 | no_undefined_flag='${wl}-z,text' | |
10297 | archive_cmds_need_lc=no | |
10298 | hardcode_shlibpath_var=no | |
10299 | runpath_var='LD_RUN_PATH' | |
10300 | ||
10301 | if test "$GCC" = yes; then | |
10302 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10303 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10304 | else | |
10305 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10306 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10307 | fi | |
10308 | ;; | |
10309 | ||
10310 | sysv5* | sco3.2v5* | sco5v6*) | |
10311 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10312 | # link with -lc, and that would cause any symbols used from libc to | |
10313 | # always be unresolved, which means just about no library would | |
10314 | # ever link correctly. If we're not using GNU ld we use -z text | |
10315 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10316 | # as -z defs. | |
10317 | no_undefined_flag='${wl}-z,text' | |
10318 | allow_undefined_flag='${wl}-z,nodefs' | |
10319 | archive_cmds_need_lc=no | |
10320 | hardcode_shlibpath_var=no | |
10321 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10322 | hardcode_libdir_separator=':' | |
10323 | link_all_deplibs=yes | |
10324 | export_dynamic_flag_spec='${wl}-Bexport' | |
10325 | runpath_var='LD_RUN_PATH' | |
10326 | ||
10327 | if test "$GCC" = yes; then | |
10328 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10329 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10330 | else | |
10331 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10332 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10333 | fi | |
10334 | ;; | |
10335 | ||
10336 | uts4*) | |
10337 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10338 | hardcode_libdir_flag_spec='-L$libdir' | |
10339 | hardcode_shlibpath_var=no | |
10340 | ;; | |
10341 | ||
10342 | *) | |
10343 | ld_shlibs=no | |
10344 | ;; | |
10345 | esac | |
10346 | ||
10347 | if test x$host_vendor = xsni; then | |
10348 | case $host in | |
10349 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10350 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10351 | ;; | |
10352 | esac | |
10353 | fi | |
10354 | fi | |
10355 | ||
10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10357 | $as_echo "$ld_shlibs" >&6; } | |
10358 | test "$ld_shlibs" = no && can_build_shared=no | |
10359 | ||
10360 | with_gnu_ld=$with_gnu_ld | |
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | # | |
10377 | # Do we need to explicitly link libc? | |
10378 | # | |
10379 | case "x$archive_cmds_need_lc" in | |
10380 | x|xyes) | |
10381 | # Assume -lc should be added | |
10382 | archive_cmds_need_lc=yes | |
10383 | ||
10384 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10385 | case $archive_cmds in | |
10386 | *'~'*) | |
10387 | # FIXME: we may have to deal with multi-command sequences. | |
10388 | ;; | |
10389 | '$CC '*) | |
10390 | # Test whether the compiler implicitly links with -lc since on some | |
10391 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10392 | # to ld, don't add -lc before -lgcc. | |
10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10394 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10395 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10396 | $as_echo_n "(cached) " >&6 | |
10397 | else | |
10398 | $RM conftest* | |
10399 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10400 | ||
10401 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10402 | (eval $ac_compile) 2>&5 | |
10403 | ac_status=$? | |
10404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10405 | test $ac_status = 0; } 2>conftest.err; then | |
10406 | soname=conftest | |
10407 | lib=conftest | |
10408 | libobjs=conftest.$ac_objext | |
10409 | deplibs= | |
10410 | wl=$lt_prog_compiler_wl | |
10411 | pic_flag=$lt_prog_compiler_pic | |
10412 | compiler_flags=-v | |
10413 | linker_flags=-v | |
10414 | verstring= | |
10415 | output_objdir=. | |
10416 | libname=conftest | |
10417 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10418 | allow_undefined_flag= | |
10419 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10420 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10421 | ac_status=$? | |
10422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10423 | test $ac_status = 0; } | |
10424 | then | |
10425 | lt_cv_archive_cmds_need_lc=no | |
10426 | else | |
10427 | lt_cv_archive_cmds_need_lc=yes | |
10428 | fi | |
10429 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10430 | else | |
10431 | cat conftest.err 1>&5 | |
10432 | fi | |
10433 | $RM conftest* | |
10434 | ||
10435 | fi | |
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10437 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10438 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10439 | ;; | |
10440 | esac | |
10441 | fi | |
10442 | ;; | |
10443 | esac | |
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10597 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10598 | ||
10599 | if test "$GCC" = yes; then | |
10600 | case $host_os in | |
10601 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10602 | *) lt_awk_arg="/^libraries:/" ;; | |
10603 | esac | |
10604 | case $host_os in | |
10605 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10606 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10607 | esac | |
10608 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10609 | case $lt_search_path_spec in | |
10610 | *\;*) | |
10611 | # if the path contains ";" then we assume it to be the separator | |
10612 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10613 | # assumed that no part of a normal pathname contains ";" but that should | |
10614 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10615 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10616 | ;; | |
10617 | *) | |
10618 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10619 | ;; | |
10620 | esac | |
10621 | # Ok, now we have the path, separated by spaces, we can step through it | |
10622 | # and add multilib dir if necessary. | |
10623 | lt_tmp_lt_search_path_spec= | |
10624 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10625 | for lt_sys_path in $lt_search_path_spec; do | |
10626 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10627 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10628 | else | |
10629 | test -d "$lt_sys_path" && \ | |
10630 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10631 | fi | |
10632 | done | |
10633 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10634 | BEGIN {RS=" "; FS="/|\n";} { | |
10635 | lt_foo=""; | |
10636 | lt_count=0; | |
10637 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10638 | if ($lt_i != "" && $lt_i != ".") { | |
10639 | if ($lt_i == "..") { | |
10640 | lt_count++; | |
10641 | } else { | |
10642 | if (lt_count == 0) { | |
10643 | lt_foo="/" $lt_i lt_foo; | |
10644 | } else { | |
10645 | lt_count--; | |
10646 | } | |
10647 | } | |
10648 | } | |
10649 | } | |
10650 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10651 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10652 | }'` | |
10653 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10654 | # for these hosts. | |
10655 | case $host_os in | |
10656 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10657 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10658 | esac | |
10659 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10660 | else | |
10661 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10662 | fi | |
10663 | library_names_spec= | |
10664 | libname_spec='lib$name' | |
10665 | soname_spec= | |
10666 | shrext_cmds=".so" | |
10667 | postinstall_cmds= | |
10668 | postuninstall_cmds= | |
10669 | finish_cmds= | |
10670 | finish_eval= | |
10671 | shlibpath_var= | |
10672 | shlibpath_overrides_runpath=unknown | |
10673 | version_type=none | |
10674 | dynamic_linker="$host_os ld.so" | |
10675 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10676 | need_lib_prefix=unknown | |
10677 | hardcode_into_libs=no | |
10678 | ||
10679 | # when you set need_version to no, make sure it does not cause -set_version | |
10680 | # flags to be left without arguments | |
10681 | need_version=unknown | |
10682 | ||
10683 | case $host_os in | |
10684 | aix3*) | |
10685 | version_type=linux # correct to gnu/linux during the next big refactor | |
10686 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10687 | shlibpath_var=LIBPATH | |
10688 | ||
10689 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10690 | soname_spec='${libname}${release}${shared_ext}$major' | |
10691 | ;; | |
10692 | ||
10693 | aix[4-9]*) | |
10694 | version_type=linux # correct to gnu/linux during the next big refactor | |
10695 | need_lib_prefix=no | |
10696 | need_version=no | |
10697 | hardcode_into_libs=yes | |
10698 | if test "$host_cpu" = ia64; then | |
10699 | # AIX 5 supports IA64 | |
10700 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10701 | shlibpath_var=LD_LIBRARY_PATH | |
10702 | else | |
10703 | # With GCC up to 2.95.x, collect2 would create an import file | |
10704 | # for dependence libraries. The import file would start with | |
10705 | # the line `#! .'. This would cause the generated library to | |
10706 | # depend on `.', always an invalid library. This was fixed in | |
10707 | # development snapshots of GCC prior to 3.0. | |
10708 | case $host_os in | |
10709 | aix4 | aix4.[01] | aix4.[01].*) | |
10710 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10711 | echo ' yes ' | |
10712 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10713 | : | |
10714 | else | |
10715 | can_build_shared=no | |
10716 | fi | |
10717 | ;; | |
10718 | esac | |
10719 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10720 | # soname into executable. Probably we can add versioning support to | |
10721 | # collect2, so additional links can be useful in future. | |
10722 | if test "$aix_use_runtimelinking" = yes; then | |
10723 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10724 | # instead of lib<name>.a to let people know that these are not | |
10725 | # typical AIX shared libraries. | |
10726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10727 | else | |
10728 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10729 | # and later when we are not doing run time linking. | |
10730 | library_names_spec='${libname}${release}.a $libname.a' | |
10731 | soname_spec='${libname}${release}${shared_ext}$major' | |
10732 | fi | |
10733 | shlibpath_var=LIBPATH | |
10734 | fi | |
10735 | ;; | |
10736 | ||
10737 | amigaos*) | |
10738 | case $host_cpu in | |
10739 | powerpc) | |
10740 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10741 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10743 | ;; | |
10744 | m68k) | |
10745 | library_names_spec='$libname.ixlibrary $libname.a' | |
10746 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10747 | 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' | |
10748 | ;; | |
10749 | esac | |
10750 | ;; | |
10751 | ||
10752 | beos*) | |
10753 | library_names_spec='${libname}${shared_ext}' | |
10754 | dynamic_linker="$host_os ld.so" | |
10755 | shlibpath_var=LIBRARY_PATH | |
10756 | ;; | |
10757 | ||
10758 | bsdi[45]*) | |
10759 | version_type=linux # correct to gnu/linux during the next big refactor | |
10760 | need_version=no | |
10761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10762 | soname_spec='${libname}${release}${shared_ext}$major' | |
10763 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10764 | shlibpath_var=LD_LIBRARY_PATH | |
10765 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10766 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10767 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10768 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10769 | # libtool to hard-code these into programs | |
10770 | ;; | |
10771 | ||
10772 | cygwin* | mingw* | pw32* | cegcc*) | |
10773 | version_type=windows | |
10774 | shrext_cmds=".dll" | |
10775 | need_version=no | |
10776 | need_lib_prefix=no | |
10777 | ||
10778 | case $GCC,$cc_basename in | |
10779 | yes,*) | |
10780 | # gcc | |
10781 | library_names_spec='$libname.dll.a' | |
10782 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10783 | postinstall_cmds='base_file=`basename \${file}`~ | |
10784 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10785 | dldir=$destdir/`dirname \$dlpath`~ | |
10786 | test -d \$dldir || mkdir -p \$dldir~ | |
10787 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10788 | chmod a+x \$dldir/$dlname~ | |
10789 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10790 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10791 | fi' | |
10792 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10793 | dlpath=$dir/\$dldll~ | |
10794 | $RM \$dlpath' | |
10795 | shlibpath_overrides_runpath=yes | |
10796 | ||
10797 | case $host_os in | |
10798 | cygwin*) | |
10799 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10800 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10801 | ||
10802 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10803 | ;; | |
10804 | mingw* | cegcc*) | |
10805 | # MinGW DLLs use traditional 'lib' prefix | |
10806 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10807 | ;; | |
10808 | pw32*) | |
10809 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10810 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10811 | ;; | |
10812 | esac | |
10813 | dynamic_linker='Win32 ld.exe' | |
10814 | ;; | |
10815 | ||
10816 | *,cl*) | |
10817 | # Native MSVC | |
10818 | libname_spec='$name' | |
10819 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10820 | library_names_spec='${libname}.dll.lib' | |
10821 | ||
10822 | case $build_os in | |
10823 | mingw*) | |
10824 | sys_lib_search_path_spec= | |
10825 | lt_save_ifs=$IFS | |
10826 | IFS=';' | |
10827 | for lt_path in $LIB | |
10828 | do | |
10829 | IFS=$lt_save_ifs | |
10830 | # Let DOS variable expansion print the short 8.3 style file name. | |
10831 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10832 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10833 | done | |
10834 | IFS=$lt_save_ifs | |
10835 | # Convert to MSYS style. | |
10836 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10837 | ;; | |
10838 | cygwin*) | |
10839 | # Convert to unix form, then to dos form, then back to unix form | |
10840 | # but this time dos style (no spaces!) so that the unix form looks | |
10841 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10842 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10843 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10844 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10845 | ;; | |
10846 | *) | |
10847 | sys_lib_search_path_spec="$LIB" | |
10848 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10849 | # It is most probably a Windows format PATH. | |
10850 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10851 | else | |
10852 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10853 | fi | |
10854 | # FIXME: find the short name or the path components, as spaces are | |
10855 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10856 | ;; | |
10857 | esac | |
10858 | ||
10859 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10860 | postinstall_cmds='base_file=`basename \${file}`~ | |
10861 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10862 | dldir=$destdir/`dirname \$dlpath`~ | |
10863 | test -d \$dldir || mkdir -p \$dldir~ | |
10864 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10865 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10866 | dlpath=$dir/\$dldll~ | |
10867 | $RM \$dlpath' | |
10868 | shlibpath_overrides_runpath=yes | |
10869 | dynamic_linker='Win32 link.exe' | |
10870 | ;; | |
10871 | ||
10872 | *) | |
10873 | # Assume MSVC wrapper | |
10874 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10875 | dynamic_linker='Win32 ld.exe' | |
10876 | ;; | |
10877 | esac | |
10878 | # FIXME: first we should search . and the directory the executable is in | |
10879 | shlibpath_var=PATH | |
10880 | ;; | |
10881 | ||
10882 | darwin* | rhapsody*) | |
10883 | dynamic_linker="$host_os dyld" | |
10884 | version_type=darwin | |
10885 | need_lib_prefix=no | |
10886 | need_version=no | |
10887 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10888 | soname_spec='${libname}${release}${major}$shared_ext' | |
10889 | shlibpath_overrides_runpath=yes | |
10890 | shlibpath_var=DYLD_LIBRARY_PATH | |
10891 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10892 | ||
10893 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10894 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10895 | ;; | |
10896 | ||
10897 | dgux*) | |
10898 | version_type=linux # correct to gnu/linux during the next big refactor | |
10899 | need_lib_prefix=no | |
10900 | need_version=no | |
10901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10902 | soname_spec='${libname}${release}${shared_ext}$major' | |
10903 | shlibpath_var=LD_LIBRARY_PATH | |
10904 | ;; | |
10905 | ||
10906 | freebsd* | dragonfly*) | |
10907 | # DragonFly does not have aout. When/if they implement a new | |
10908 | # versioning mechanism, adjust this. | |
10909 | if test -x /usr/bin/objformat; then | |
10910 | objformat=`/usr/bin/objformat` | |
10911 | else | |
10912 | case $host_os in | |
10913 | freebsd[23].*) objformat=aout ;; | |
10914 | *) objformat=elf ;; | |
10915 | esac | |
10916 | fi | |
10917 | version_type=freebsd-$objformat | |
10918 | case $version_type in | |
10919 | freebsd-elf*) | |
10920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10921 | need_version=no | |
10922 | need_lib_prefix=no | |
10923 | ;; | |
10924 | freebsd-*) | |
10925 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10926 | need_version=yes | |
10927 | ;; | |
10928 | esac | |
10929 | shlibpath_var=LD_LIBRARY_PATH | |
10930 | case $host_os in | |
10931 | freebsd2.*) | |
10932 | shlibpath_overrides_runpath=yes | |
10933 | ;; | |
10934 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10935 | shlibpath_overrides_runpath=yes | |
10936 | hardcode_into_libs=yes | |
10937 | ;; | |
10938 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10939 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10940 | shlibpath_overrides_runpath=no | |
10941 | hardcode_into_libs=yes | |
10942 | ;; | |
10943 | *) # from 4.6 on, and DragonFly | |
10944 | shlibpath_overrides_runpath=yes | |
10945 | hardcode_into_libs=yes | |
10946 | ;; | |
10947 | esac | |
10948 | ;; | |
10949 | ||
10950 | haiku*) | |
10951 | version_type=linux # correct to gnu/linux during the next big refactor | |
10952 | need_lib_prefix=no | |
10953 | need_version=no | |
10954 | dynamic_linker="$host_os runtime_loader" | |
10955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10956 | soname_spec='${libname}${release}${shared_ext}$major' | |
10957 | shlibpath_var=LIBRARY_PATH | |
10958 | shlibpath_overrides_runpath=yes | |
10959 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10960 | hardcode_into_libs=yes | |
10961 | ;; | |
10962 | ||
10963 | hpux9* | hpux10* | hpux11*) | |
10964 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10965 | # link against other versions. | |
10966 | version_type=sunos | |
10967 | need_lib_prefix=no | |
10968 | need_version=no | |
10969 | case $host_cpu in | |
10970 | ia64*) | |
10971 | shrext_cmds='.so' | |
10972 | hardcode_into_libs=yes | |
10973 | dynamic_linker="$host_os dld.so" | |
10974 | shlibpath_var=LD_LIBRARY_PATH | |
10975 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10977 | soname_spec='${libname}${release}${shared_ext}$major' | |
10978 | if test "X$HPUX_IA64_MODE" = X32; then | |
10979 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10980 | else | |
10981 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10982 | fi | |
10983 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10984 | ;; | |
10985 | hppa*64*) | |
10986 | shrext_cmds='.sl' | |
10987 | hardcode_into_libs=yes | |
10988 | dynamic_linker="$host_os dld.sl" | |
10989 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10990 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10992 | soname_spec='${libname}${release}${shared_ext}$major' | |
10993 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10994 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10995 | ;; | |
10996 | *) | |
10997 | shrext_cmds='.sl' | |
10998 | dynamic_linker="$host_os dld.sl" | |
10999 | shlibpath_var=SHLIB_PATH | |
11000 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11002 | soname_spec='${libname}${release}${shared_ext}$major' | |
11003 | ;; | |
11004 | esac | |
11005 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11006 | postinstall_cmds='chmod 555 $lib' | |
11007 | # or fails outright, so override atomically: | |
11008 | install_override_mode=555 | |
11009 | ;; | |
11010 | ||
11011 | interix[3-9]*) | |
11012 | version_type=linux # correct to gnu/linux during the next big refactor | |
11013 | need_lib_prefix=no | |
11014 | need_version=no | |
11015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11016 | soname_spec='${libname}${release}${shared_ext}$major' | |
11017 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11018 | shlibpath_var=LD_LIBRARY_PATH | |
11019 | shlibpath_overrides_runpath=no | |
11020 | hardcode_into_libs=yes | |
11021 | ;; | |
11022 | ||
11023 | irix5* | irix6* | nonstopux*) | |
11024 | case $host_os in | |
11025 | nonstopux*) version_type=nonstopux ;; | |
11026 | *) | |
11027 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11028 | version_type=linux # correct to gnu/linux during the next big refactor | |
11029 | else | |
11030 | version_type=irix | |
11031 | fi ;; | |
11032 | esac | |
11033 | need_lib_prefix=no | |
11034 | need_version=no | |
11035 | soname_spec='${libname}${release}${shared_ext}$major' | |
11036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11037 | case $host_os in | |
11038 | irix5* | nonstopux*) | |
11039 | libsuff= shlibsuff= | |
11040 | ;; | |
11041 | *) | |
11042 | case $LD in # libtool.m4 will add one of these switches to LD | |
11043 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11044 | libsuff= shlibsuff= libmagic=32-bit;; | |
11045 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11046 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11047 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11048 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11049 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11050 | esac | |
11051 | ;; | |
11052 | esac | |
11053 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11054 | shlibpath_overrides_runpath=no | |
11055 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11056 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11057 | hardcode_into_libs=yes | |
11058 | ;; | |
11059 | ||
11060 | # No shared lib support for Linux oldld, aout, or coff. | |
11061 | linux*oldld* | linux*aout* | linux*coff*) | |
11062 | dynamic_linker=no | |
11063 | ;; | |
11064 | ||
11065 | # This must be glibc/ELF. | |
11066 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11067 | version_type=linux # correct to gnu/linux during the next big refactor | |
11068 | need_lib_prefix=no | |
11069 | need_version=no | |
11070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11071 | soname_spec='${libname}${release}${shared_ext}$major' | |
11072 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11073 | shlibpath_var=LD_LIBRARY_PATH | |
11074 | shlibpath_overrides_runpath=no | |
11075 | ||
11076 | # Some binutils ld are patched to set DT_RUNPATH | |
11077 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11078 | $as_echo_n "(cached) " >&6 | |
11079 | else | |
11080 | lt_cv_shlibpath_overrides_runpath=no | |
11081 | save_LDFLAGS=$LDFLAGS | |
11082 | save_libdir=$libdir | |
11083 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11084 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11086 | /* end confdefs.h. */ | |
11087 | ||
11088 | int | |
11089 | main () | |
11090 | { | |
11091 | ||
11092 | ; | |
11093 | return 0; | |
11094 | } | |
11095 | _ACEOF | |
11096 | if ac_fn_c_try_link "$LINENO"; then : | |
11097 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11098 | lt_cv_shlibpath_overrides_runpath=yes | |
11099 | fi | |
11100 | fi | |
11101 | rm -f core conftest.err conftest.$ac_objext \ | |
11102 | conftest$ac_exeext conftest.$ac_ext | |
11103 | LDFLAGS=$save_LDFLAGS | |
11104 | libdir=$save_libdir | |
11105 | ||
11106 | fi | |
11107 | ||
11108 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11109 | ||
11110 | # This implies no fast_install, which is unacceptable. | |
11111 | # Some rework will be needed to allow for fast_install | |
11112 | # before this can be enabled. | |
11113 | hardcode_into_libs=yes | |
11114 | ||
11115 | # Append ld.so.conf contents to the search path | |
11116 | if test -f /etc/ld.so.conf; then | |
11117 | 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' ' '` | |
11118 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11119 | fi | |
11120 | ||
11121 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11122 | # powerpc, because MkLinux only supported shared libraries with the | |
11123 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11124 | # most powerpc-linux boxes support dynamic linking these days and | |
11125 | # people can always --disable-shared, the test was removed, and we | |
11126 | # assume the GNU/Linux dynamic linker is in use. | |
11127 | dynamic_linker='GNU/Linux ld.so' | |
11128 | ;; | |
11129 | ||
11130 | netbsdelf*-gnu) | |
11131 | version_type=linux | |
11132 | need_lib_prefix=no | |
11133 | need_version=no | |
11134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11135 | soname_spec='${libname}${release}${shared_ext}$major' | |
11136 | shlibpath_var=LD_LIBRARY_PATH | |
11137 | shlibpath_overrides_runpath=no | |
11138 | hardcode_into_libs=yes | |
11139 | dynamic_linker='NetBSD ld.elf_so' | |
11140 | ;; | |
11141 | ||
11142 | netbsd*) | |
11143 | version_type=sunos | |
11144 | need_lib_prefix=no | |
11145 | need_version=no | |
11146 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11148 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11149 | dynamic_linker='NetBSD (a.out) ld.so' | |
11150 | else | |
11151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11152 | soname_spec='${libname}${release}${shared_ext}$major' | |
11153 | dynamic_linker='NetBSD ld.elf_so' | |
11154 | fi | |
11155 | shlibpath_var=LD_LIBRARY_PATH | |
11156 | shlibpath_overrides_runpath=yes | |
11157 | hardcode_into_libs=yes | |
11158 | ;; | |
11159 | ||
11160 | newsos6) | |
11161 | version_type=linux # correct to gnu/linux during the next big refactor | |
11162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11163 | shlibpath_var=LD_LIBRARY_PATH | |
11164 | shlibpath_overrides_runpath=yes | |
11165 | ;; | |
11166 | ||
11167 | *nto* | *qnx*) | |
11168 | version_type=qnx | |
11169 | need_lib_prefix=no | |
11170 | need_version=no | |
11171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11172 | soname_spec='${libname}${release}${shared_ext}$major' | |
11173 | shlibpath_var=LD_LIBRARY_PATH | |
11174 | shlibpath_overrides_runpath=no | |
11175 | hardcode_into_libs=yes | |
11176 | dynamic_linker='ldqnx.so' | |
11177 | ;; | |
11178 | ||
11179 | openbsd*) | |
11180 | version_type=sunos | |
11181 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11182 | need_lib_prefix=no | |
11183 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11184 | case $host_os in | |
11185 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11186 | *) need_version=no ;; | |
11187 | esac | |
11188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11189 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11190 | shlibpath_var=LD_LIBRARY_PATH | |
11191 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11192 | case $host_os in | |
11193 | openbsd2.[89] | openbsd2.[89].*) | |
11194 | shlibpath_overrides_runpath=no | |
11195 | ;; | |
11196 | *) | |
11197 | shlibpath_overrides_runpath=yes | |
11198 | ;; | |
11199 | esac | |
11200 | else | |
11201 | shlibpath_overrides_runpath=yes | |
11202 | fi | |
11203 | ;; | |
11204 | ||
11205 | os2*) | |
11206 | libname_spec='$name' | |
11207 | shrext_cmds=".dll" | |
11208 | need_lib_prefix=no | |
11209 | library_names_spec='$libname${shared_ext} $libname.a' | |
11210 | dynamic_linker='OS/2 ld.exe' | |
11211 | shlibpath_var=LIBPATH | |
11212 | ;; | |
11213 | ||
11214 | osf3* | osf4* | osf5*) | |
11215 | version_type=osf | |
11216 | need_lib_prefix=no | |
11217 | need_version=no | |
11218 | soname_spec='${libname}${release}${shared_ext}$major' | |
11219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11220 | shlibpath_var=LD_LIBRARY_PATH | |
11221 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11222 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11223 | ;; | |
11224 | ||
11225 | rdos*) | |
11226 | dynamic_linker=no | |
11227 | ;; | |
11228 | ||
11229 | solaris*) | |
11230 | version_type=linux # correct to gnu/linux during the next big refactor | |
11231 | need_lib_prefix=no | |
11232 | need_version=no | |
11233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11234 | soname_spec='${libname}${release}${shared_ext}$major' | |
11235 | shlibpath_var=LD_LIBRARY_PATH | |
11236 | shlibpath_overrides_runpath=yes | |
11237 | hardcode_into_libs=yes | |
11238 | # ldd complains unless libraries are executable | |
11239 | postinstall_cmds='chmod +x $lib' | |
11240 | ;; | |
11241 | ||
11242 | sunos4*) | |
11243 | version_type=sunos | |
11244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11245 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11246 | shlibpath_var=LD_LIBRARY_PATH | |
11247 | shlibpath_overrides_runpath=yes | |
11248 | if test "$with_gnu_ld" = yes; then | |
11249 | need_lib_prefix=no | |
11250 | fi | |
11251 | need_version=yes | |
11252 | ;; | |
11253 | ||
11254 | sysv4 | sysv4.3*) | |
11255 | version_type=linux # correct to gnu/linux during the next big refactor | |
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 | shlibpath_var=LD_LIBRARY_PATH | |
11259 | case $host_vendor in | |
11260 | sni) | |
11261 | shlibpath_overrides_runpath=no | |
11262 | need_lib_prefix=no | |
11263 | runpath_var=LD_RUN_PATH | |
11264 | ;; | |
11265 | siemens) | |
11266 | need_lib_prefix=no | |
11267 | ;; | |
11268 | motorola) | |
11269 | need_lib_prefix=no | |
11270 | need_version=no | |
11271 | shlibpath_overrides_runpath=no | |
11272 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11273 | ;; | |
11274 | esac | |
11275 | ;; | |
11276 | ||
11277 | sysv4*MP*) | |
11278 | if test -d /usr/nec ;then | |
11279 | version_type=linux # correct to gnu/linux during the next big refactor | |
11280 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11281 | soname_spec='$libname${shared_ext}.$major' | |
11282 | shlibpath_var=LD_LIBRARY_PATH | |
11283 | fi | |
11284 | ;; | |
11285 | ||
11286 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11287 | version_type=freebsd-elf | |
11288 | need_lib_prefix=no | |
11289 | need_version=no | |
11290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11291 | soname_spec='${libname}${release}${shared_ext}$major' | |
11292 | shlibpath_var=LD_LIBRARY_PATH | |
11293 | shlibpath_overrides_runpath=yes | |
11294 | hardcode_into_libs=yes | |
11295 | if test "$with_gnu_ld" = yes; then | |
11296 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11297 | else | |
11298 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11299 | case $host_os in | |
11300 | sco3.2v5*) | |
11301 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11302 | ;; | |
11303 | esac | |
11304 | fi | |
11305 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11306 | ;; | |
11307 | ||
11308 | tpf*) | |
11309 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11310 | version_type=linux # correct to gnu/linux during the next big refactor | |
11311 | need_lib_prefix=no | |
11312 | need_version=no | |
11313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11314 | shlibpath_var=LD_LIBRARY_PATH | |
11315 | shlibpath_overrides_runpath=no | |
11316 | hardcode_into_libs=yes | |
11317 | ;; | |
11318 | ||
11319 | uts4*) | |
11320 | version_type=linux # correct to gnu/linux during the next big refactor | |
11321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11322 | soname_spec='${libname}${release}${shared_ext}$major' | |
11323 | shlibpath_var=LD_LIBRARY_PATH | |
11324 | ;; | |
11325 | ||
11326 | *) | |
11327 | dynamic_linker=no | |
11328 | ;; | |
11329 | esac | |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11331 | $as_echo "$dynamic_linker" >&6; } | |
11332 | test "$dynamic_linker" = no && can_build_shared=no | |
11333 | ||
11334 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11335 | if test "$GCC" = yes; then | |
11336 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11337 | fi | |
11338 | ||
11339 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11340 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11341 | fi | |
11342 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11343 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11344 | fi | |
11345 | ||
11346 | ||
11347 | ||
11348 | ||
11349 | ||
11350 | ||
11351 | ||
11352 | ||
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11438 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11439 | hardcode_action= | |
11440 | if test -n "$hardcode_libdir_flag_spec" || | |
11441 | test -n "$runpath_var" || | |
11442 | test "X$hardcode_automatic" = "Xyes" ; then | |
11443 | ||
11444 | # We can hardcode non-existent directories. | |
11445 | if test "$hardcode_direct" != no && | |
11446 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11447 | # have to relink, otherwise we might link with an installed library | |
11448 | # when we should be linking with a yet-to-be-installed one | |
11449 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11450 | test "$hardcode_minus_L" != no; then | |
11451 | # Linking always hardcodes the temporary library directory. | |
11452 | hardcode_action=relink | |
11453 | else | |
11454 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11455 | hardcode_action=immediate | |
11456 | fi | |
11457 | else | |
11458 | # We cannot hardcode anything, or else we can only hardcode existing | |
11459 | # directories. | |
11460 | hardcode_action=unsupported | |
11461 | fi | |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11463 | $as_echo "$hardcode_action" >&6; } | |
11464 | ||
11465 | if test "$hardcode_action" = relink || | |
11466 | test "$inherit_rpath" = yes; then | |
11467 | # Fast installation is not supported | |
11468 | enable_fast_install=no | |
11469 | elif test "$shlibpath_overrides_runpath" = yes || | |
11470 | test "$enable_shared" = no; then | |
11471 | # Fast installation is not necessary | |
11472 | enable_fast_install=needless | |
11473 | fi | |
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | if test "x$enable_dlopen" != xyes; then | |
11481 | enable_dlopen=unknown | |
11482 | enable_dlopen_self=unknown | |
11483 | enable_dlopen_self_static=unknown | |
11484 | else | |
11485 | lt_cv_dlopen=no | |
11486 | lt_cv_dlopen_libs= | |
11487 | ||
11488 | case $host_os in | |
11489 | beos*) | |
11490 | lt_cv_dlopen="load_add_on" | |
11491 | lt_cv_dlopen_libs= | |
11492 | lt_cv_dlopen_self=yes | |
11493 | ;; | |
11494 | ||
11495 | mingw* | pw32* | cegcc*) | |
11496 | lt_cv_dlopen="LoadLibrary" | |
11497 | lt_cv_dlopen_libs= | |
11498 | ;; | |
11499 | ||
11500 | cygwin*) | |
11501 | lt_cv_dlopen="dlopen" | |
11502 | lt_cv_dlopen_libs= | |
11503 | ;; | |
11504 | ||
11505 | darwin*) | |
11506 | # if libdl is installed we need to link against it | |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11508 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11509 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11510 | $as_echo_n "(cached) " >&6 | |
11511 | else | |
11512 | ac_check_lib_save_LIBS=$LIBS | |
11513 | LIBS="-ldl $LIBS" | |
11514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11515 | /* end confdefs.h. */ | |
11516 | ||
11517 | /* Override any GCC internal prototype to avoid an error. | |
11518 | Use char because int might match the return type of a GCC | |
11519 | builtin and then its argument prototype would still apply. */ | |
11520 | #ifdef __cplusplus | |
11521 | extern "C" | |
11522 | #endif | |
11523 | char dlopen (); | |
11524 | int | |
11525 | main () | |
11526 | { | |
11527 | return dlopen (); | |
11528 | ; | |
11529 | return 0; | |
11530 | } | |
11531 | _ACEOF | |
11532 | if ac_fn_c_try_link "$LINENO"; then : | |
11533 | ac_cv_lib_dl_dlopen=yes | |
11534 | else | |
11535 | ac_cv_lib_dl_dlopen=no | |
11536 | fi | |
11537 | rm -f core conftest.err conftest.$ac_objext \ | |
11538 | conftest$ac_exeext conftest.$ac_ext | |
11539 | LIBS=$ac_check_lib_save_LIBS | |
11540 | fi | |
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11542 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11543 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11544 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11545 | else | |
11546 | ||
11547 | lt_cv_dlopen="dyld" | |
11548 | lt_cv_dlopen_libs= | |
11549 | lt_cv_dlopen_self=yes | |
11550 | ||
11551 | fi | |
11552 | ||
11553 | ;; | |
11554 | ||
11555 | *) | |
11556 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11557 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11558 | lt_cv_dlopen="shl_load" | |
11559 | else | |
11560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11561 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11562 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11563 | $as_echo_n "(cached) " >&6 | |
11564 | else | |
11565 | ac_check_lib_save_LIBS=$LIBS | |
11566 | LIBS="-ldld $LIBS" | |
11567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11568 | /* end confdefs.h. */ | |
11569 | ||
11570 | /* Override any GCC internal prototype to avoid an error. | |
11571 | Use char because int might match the return type of a GCC | |
11572 | builtin and then its argument prototype would still apply. */ | |
11573 | #ifdef __cplusplus | |
11574 | extern "C" | |
11575 | #endif | |
11576 | char shl_load (); | |
11577 | int | |
11578 | main () | |
11579 | { | |
11580 | return shl_load (); | |
11581 | ; | |
11582 | return 0; | |
11583 | } | |
11584 | _ACEOF | |
11585 | if ac_fn_c_try_link "$LINENO"; then : | |
11586 | ac_cv_lib_dld_shl_load=yes | |
11587 | else | |
11588 | ac_cv_lib_dld_shl_load=no | |
11589 | fi | |
11590 | rm -f core conftest.err conftest.$ac_objext \ | |
11591 | conftest$ac_exeext conftest.$ac_ext | |
11592 | LIBS=$ac_check_lib_save_LIBS | |
11593 | fi | |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11595 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11596 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11597 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11598 | else | |
11599 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11600 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11601 | lt_cv_dlopen="dlopen" | |
11602 | else | |
11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11604 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11605 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11606 | $as_echo_n "(cached) " >&6 | |
11607 | else | |
11608 | ac_check_lib_save_LIBS=$LIBS | |
11609 | LIBS="-ldl $LIBS" | |
11610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11611 | /* end confdefs.h. */ | |
11612 | ||
11613 | /* Override any GCC internal prototype to avoid an error. | |
11614 | Use char because int might match the return type of a GCC | |
11615 | builtin and then its argument prototype would still apply. */ | |
11616 | #ifdef __cplusplus | |
11617 | extern "C" | |
11618 | #endif | |
11619 | char dlopen (); | |
11620 | int | |
11621 | main () | |
11622 | { | |
11623 | return dlopen (); | |
11624 | ; | |
11625 | return 0; | |
11626 | } | |
11627 | _ACEOF | |
11628 | if ac_fn_c_try_link "$LINENO"; then : | |
11629 | ac_cv_lib_dl_dlopen=yes | |
11630 | else | |
11631 | ac_cv_lib_dl_dlopen=no | |
11632 | fi | |
11633 | rm -f core conftest.err conftest.$ac_objext \ | |
11634 | conftest$ac_exeext conftest.$ac_ext | |
11635 | LIBS=$ac_check_lib_save_LIBS | |
11636 | fi | |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11638 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11639 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11640 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11641 | else | |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11643 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11644 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11645 | $as_echo_n "(cached) " >&6 | |
11646 | else | |
11647 | ac_check_lib_save_LIBS=$LIBS | |
11648 | LIBS="-lsvld $LIBS" | |
11649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11650 | /* end confdefs.h. */ | |
11651 | ||
11652 | /* Override any GCC internal prototype to avoid an error. | |
11653 | Use char because int might match the return type of a GCC | |
11654 | builtin and then its argument prototype would still apply. */ | |
11655 | #ifdef __cplusplus | |
11656 | extern "C" | |
11657 | #endif | |
11658 | char dlopen (); | |
11659 | int | |
11660 | main () | |
11661 | { | |
11662 | return dlopen (); | |
11663 | ; | |
11664 | return 0; | |
11665 | } | |
11666 | _ACEOF | |
11667 | if ac_fn_c_try_link "$LINENO"; then : | |
11668 | ac_cv_lib_svld_dlopen=yes | |
11669 | else | |
11670 | ac_cv_lib_svld_dlopen=no | |
11671 | fi | |
11672 | rm -f core conftest.err conftest.$ac_objext \ | |
11673 | conftest$ac_exeext conftest.$ac_ext | |
11674 | LIBS=$ac_check_lib_save_LIBS | |
11675 | fi | |
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11677 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11678 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11679 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11680 | else | |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11682 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11683 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11684 | $as_echo_n "(cached) " >&6 | |
11685 | else | |
11686 | ac_check_lib_save_LIBS=$LIBS | |
11687 | LIBS="-ldld $LIBS" | |
11688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11689 | /* end confdefs.h. */ | |
11690 | ||
11691 | /* Override any GCC internal prototype to avoid an error. | |
11692 | Use char because int might match the return type of a GCC | |
11693 | builtin and then its argument prototype would still apply. */ | |
11694 | #ifdef __cplusplus | |
11695 | extern "C" | |
11696 | #endif | |
11697 | char dld_link (); | |
11698 | int | |
11699 | main () | |
11700 | { | |
11701 | return dld_link (); | |
11702 | ; | |
11703 | return 0; | |
11704 | } | |
11705 | _ACEOF | |
11706 | if ac_fn_c_try_link "$LINENO"; then : | |
11707 | ac_cv_lib_dld_dld_link=yes | |
11708 | else | |
11709 | ac_cv_lib_dld_dld_link=no | |
11710 | fi | |
11711 | rm -f core conftest.err conftest.$ac_objext \ | |
11712 | conftest$ac_exeext conftest.$ac_ext | |
11713 | LIBS=$ac_check_lib_save_LIBS | |
11714 | fi | |
11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11716 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11717 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11718 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11719 | fi | |
11720 | ||
11721 | ||
11722 | fi | |
11723 | ||
11724 | ||
11725 | fi | |
11726 | ||
11727 | ||
11728 | fi | |
11729 | ||
11730 | ||
11731 | fi | |
11732 | ||
11733 | ||
11734 | fi | |
11735 | ||
11736 | ;; | |
11737 | esac | |
11738 | ||
11739 | if test "x$lt_cv_dlopen" != xno; then | |
11740 | enable_dlopen=yes | |
11741 | else | |
11742 | enable_dlopen=no | |
11743 | fi | |
11744 | ||
11745 | case $lt_cv_dlopen in | |
11746 | dlopen) | |
11747 | save_CPPFLAGS="$CPPFLAGS" | |
11748 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11749 | ||
11750 | save_LDFLAGS="$LDFLAGS" | |
11751 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11752 | ||
11753 | save_LIBS="$LIBS" | |
11754 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11755 | ||
11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11757 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11758 | if ${lt_cv_dlopen_self+:} false; then : | |
11759 | $as_echo_n "(cached) " >&6 | |
11760 | else | |
11761 | if test "$cross_compiling" = yes; then : | |
11762 | lt_cv_dlopen_self=cross | |
11763 | else | |
11764 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11765 | lt_status=$lt_dlunknown | |
11766 | cat > conftest.$ac_ext <<_LT_EOF | |
11767 | #line $LINENO "configure" | |
11768 | #include "confdefs.h" | |
11769 | ||
11770 | #if HAVE_DLFCN_H | |
11771 | #include <dlfcn.h> | |
11772 | #endif | |
11773 | ||
11774 | #include <stdio.h> | |
11775 | ||
11776 | #ifdef RTLD_GLOBAL | |
11777 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11778 | #else | |
11779 | # ifdef DL_GLOBAL | |
11780 | # define LT_DLGLOBAL DL_GLOBAL | |
11781 | # else | |
11782 | # define LT_DLGLOBAL 0 | |
11783 | # endif | |
11784 | #endif | |
11785 | ||
11786 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11787 | find out it does not work in some platform. */ | |
11788 | #ifndef LT_DLLAZY_OR_NOW | |
11789 | # ifdef RTLD_LAZY | |
11790 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11791 | # else | |
11792 | # ifdef DL_LAZY | |
11793 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11794 | # else | |
11795 | # ifdef RTLD_NOW | |
11796 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11797 | # else | |
11798 | # ifdef DL_NOW | |
11799 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11800 | # else | |
11801 | # define LT_DLLAZY_OR_NOW 0 | |
11802 | # endif | |
11803 | # endif | |
11804 | # endif | |
11805 | # endif | |
11806 | #endif | |
11807 | ||
11808 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11809 | correspondingly for the symbols needed. */ | |
11810 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11811 | int fnord () __attribute__((visibility("default"))); | |
11812 | #endif | |
11813 | ||
11814 | int fnord () { return 42; } | |
11815 | int main () | |
11816 | { | |
11817 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11818 | int status = $lt_dlunknown; | |
11819 | ||
11820 | if (self) | |
11821 | { | |
11822 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11823 | else | |
11824 | { | |
11825 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11826 | else puts (dlerror ()); | |
11827 | } | |
11828 | /* dlclose (self); */ | |
11829 | } | |
11830 | else | |
11831 | puts (dlerror ()); | |
11832 | ||
11833 | return status; | |
11834 | } | |
11835 | _LT_EOF | |
11836 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11837 | (eval $ac_link) 2>&5 | |
11838 | ac_status=$? | |
11839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11840 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11841 | (./conftest; exit; ) >&5 2>/dev/null | |
11842 | lt_status=$? | |
11843 | case x$lt_status in | |
11844 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11845 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11846 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11847 | esac | |
11848 | else : | |
11849 | # compilation failed | |
11850 | lt_cv_dlopen_self=no | |
11851 | fi | |
11852 | fi | |
11853 | rm -fr conftest* | |
11854 | ||
11855 | ||
11856 | fi | |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11858 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11859 | ||
11860 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11861 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11863 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11864 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11865 | $as_echo_n "(cached) " >&6 | |
11866 | else | |
11867 | if test "$cross_compiling" = yes; then : | |
11868 | lt_cv_dlopen_self_static=cross | |
11869 | else | |
11870 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11871 | lt_status=$lt_dlunknown | |
11872 | cat > conftest.$ac_ext <<_LT_EOF | |
11873 | #line $LINENO "configure" | |
11874 | #include "confdefs.h" | |
11875 | ||
11876 | #if HAVE_DLFCN_H | |
11877 | #include <dlfcn.h> | |
11878 | #endif | |
11879 | ||
11880 | #include <stdio.h> | |
11881 | ||
11882 | #ifdef RTLD_GLOBAL | |
11883 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11884 | #else | |
11885 | # ifdef DL_GLOBAL | |
11886 | # define LT_DLGLOBAL DL_GLOBAL | |
11887 | # else | |
11888 | # define LT_DLGLOBAL 0 | |
11889 | # endif | |
11890 | #endif | |
11891 | ||
11892 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11893 | find out it does not work in some platform. */ | |
11894 | #ifndef LT_DLLAZY_OR_NOW | |
11895 | # ifdef RTLD_LAZY | |
11896 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11897 | # else | |
11898 | # ifdef DL_LAZY | |
11899 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11900 | # else | |
11901 | # ifdef RTLD_NOW | |
11902 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11903 | # else | |
11904 | # ifdef DL_NOW | |
11905 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11906 | # else | |
11907 | # define LT_DLLAZY_OR_NOW 0 | |
11908 | # endif | |
11909 | # endif | |
11910 | # endif | |
11911 | # endif | |
11912 | #endif | |
11913 | ||
11914 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11915 | correspondingly for the symbols needed. */ | |
11916 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11917 | int fnord () __attribute__((visibility("default"))); | |
11918 | #endif | |
11919 | ||
11920 | int fnord () { return 42; } | |
11921 | int main () | |
11922 | { | |
11923 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11924 | int status = $lt_dlunknown; | |
11925 | ||
11926 | if (self) | |
11927 | { | |
11928 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11929 | else | |
11930 | { | |
11931 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11932 | else puts (dlerror ()); | |
11933 | } | |
11934 | /* dlclose (self); */ | |
11935 | } | |
11936 | else | |
11937 | puts (dlerror ()); | |
11938 | ||
11939 | return status; | |
11940 | } | |
11941 | _LT_EOF | |
11942 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11943 | (eval $ac_link) 2>&5 | |
11944 | ac_status=$? | |
11945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11946 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11947 | (./conftest; exit; ) >&5 2>/dev/null | |
11948 | lt_status=$? | |
11949 | case x$lt_status in | |
11950 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11951 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11952 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11953 | esac | |
11954 | else : | |
11955 | # compilation failed | |
11956 | lt_cv_dlopen_self_static=no | |
11957 | fi | |
11958 | fi | |
11959 | rm -fr conftest* | |
11960 | ||
11961 | ||
11962 | fi | |
11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11964 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11965 | fi | |
11966 | ||
11967 | CPPFLAGS="$save_CPPFLAGS" | |
11968 | LDFLAGS="$save_LDFLAGS" | |
11969 | LIBS="$save_LIBS" | |
11970 | ;; | |
11971 | esac | |
11972 | ||
11973 | case $lt_cv_dlopen_self in | |
11974 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11975 | *) enable_dlopen_self=unknown ;; | |
11976 | esac | |
11977 | ||
11978 | case $lt_cv_dlopen_self_static in | |
11979 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11980 | *) enable_dlopen_self_static=unknown ;; | |
11981 | esac | |
11982 | fi | |
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | striplib= | |
12001 | old_striplib= | |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12003 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12004 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12005 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12006 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12008 | $as_echo "yes" >&6; } | |
12009 | else | |
12010 | # FIXME - insert some real tests, host_os isn't really good enough | |
12011 | case $host_os in | |
12012 | darwin*) | |
12013 | if test -n "$STRIP" ; then | |
12014 | striplib="$STRIP -x" | |
12015 | old_striplib="$STRIP -S" | |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12017 | $as_echo "yes" >&6; } | |
12018 | else | |
12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12020 | $as_echo "no" >&6; } | |
12021 | fi | |
12022 | ;; | |
12023 | *) | |
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12025 | $as_echo "no" >&6; } | |
12026 | ;; | |
12027 | esac | |
12028 | fi | |
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | ||
12041 | # Report which library types will actually be built | |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12043 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12045 | $as_echo "$can_build_shared" >&6; } | |
12046 | ||
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12048 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12049 | test "$can_build_shared" = "no" && enable_shared=no | |
12050 | ||
12051 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12052 | # are all built from PIC. | |
12053 | case $host_os in | |
12054 | aix3*) | |
12055 | test "$enable_shared" = yes && enable_static=no | |
12056 | if test -n "$RANLIB"; then | |
12057 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12058 | postinstall_cmds='$RANLIB $lib' | |
12059 | fi | |
12060 | ;; | |
12061 | ||
12062 | aix[4-9]*) | |
12063 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12064 | test "$enable_shared" = yes && enable_static=no | |
12065 | fi | |
12066 | ;; | |
12067 | esac | |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12069 | $as_echo "$enable_shared" >&6; } | |
12070 | ||
12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12072 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12073 | # Make sure either enable_shared or enable_static is yes. | |
12074 | test "$enable_shared" = yes || enable_static=yes | |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12076 | $as_echo "$enable_static" >&6; } | |
12077 | ||
12078 | ||
12079 | ||
12080 | ||
12081 | fi | |
12082 | ac_ext=c | |
12083 | ac_cpp='$CPP $CPPFLAGS' | |
12084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12087 | ||
12088 | CC="$lt_save_CC" | |
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | ||
12097 | ||
12098 | ||
12099 | ||
12100 | ||
12101 | ||
12102 | ||
12103 | ||
12104 | ac_config_commands="$ac_config_commands libtool" | |
12105 | ||
12106 | ||
12107 | ||
12108 | ||
12109 | # Only expand once: | |
12110 | ||
12111 | ||
12112 | ||
12113 | ||
12114 | ||
12115 | ||
12116 | ||
12117 | ||
12118 | ||
12119 | ||
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12121 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12122 | if ${libltdl_cv_shlibext+:} false; then : | |
12123 | $as_echo_n "(cached) " >&6 | |
12124 | else | |
12125 | ||
12126 | module=yes | |
12127 | eval libltdl_cv_shlibext=$shrext_cmds | |
12128 | module=no | |
12129 | eval libltdl_cv_shrext=$shrext_cmds | |
12130 | ||
12131 | fi | |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 | |
12133 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12134 | if test -n "$libltdl_cv_shlibext"; then | |
12135 | ||
12136 | cat >>confdefs.h <<_ACEOF | |
12137 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12138 | _ACEOF | |
12139 | ||
12140 | fi | |
12141 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then | |
12142 | ||
12143 | cat >>confdefs.h <<_ACEOF | |
12144 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12145 | _ACEOF | |
12146 | ||
12147 | fi | |
12148 | ||
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 | |
12150 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12151 | if ${lt_cv_module_path_var+:} false; then : | |
12152 | $as_echo_n "(cached) " >&6 | |
12153 | else | |
12154 | lt_cv_module_path_var="$shlibpath_var" | |
12155 | fi | |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12157 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12158 | if test -n "$lt_cv_module_path_var"; then | |
12159 | ||
12160 | cat >>confdefs.h <<_ACEOF | |
12161 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12162 | _ACEOF | |
12163 | ||
12164 | fi | |
12165 | ||
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 | |
12167 | $as_echo_n "checking for the default library search path... " >&6; } | |
12168 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12169 | $as_echo_n "(cached) " >&6 | |
12170 | else | |
12171 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12172 | fi | |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12174 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12175 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12176 | sys_dlsearch_path= | |
12177 | for dir in $lt_cv_sys_dlsearch_path; do | |
12178 | if test -z "$sys_dlsearch_path"; then | |
12179 | sys_dlsearch_path="$dir" | |
12180 | else | |
12181 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12182 | fi | |
12183 | done | |
12184 | ||
12185 | cat >>confdefs.h <<_ACEOF | |
12186 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12187 | _ACEOF | |
12188 | ||
12189 | fi | |
12190 | ||
12191 | ||
12192 | LT_DLLOADERS= | |
12193 | ||
12194 | ||
12195 | ac_ext=c | |
12196 | ac_cpp='$CPP $CPPFLAGS' | |
12197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12200 | ||
12201 | ||
12202 | LIBADD_DLOPEN= | |
12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12204 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12205 | if ${ac_cv_search_dlopen+:} false; then : | |
12206 | $as_echo_n "(cached) " >&6 | |
12207 | else | |
12208 | ac_func_search_save_LIBS=$LIBS | |
12209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12210 | /* end confdefs.h. */ | |
12211 | ||
12212 | /* Override any GCC internal prototype to avoid an error. | |
12213 | Use char because int might match the return type of a GCC | |
12214 | builtin and then its argument prototype would still apply. */ | |
12215 | #ifdef __cplusplus | |
12216 | extern "C" | |
12217 | #endif | |
12218 | char dlopen (); | |
12219 | int | |
12220 | main () | |
12221 | { | |
12222 | return dlopen (); | |
12223 | ; | |
12224 | return 0; | |
12225 | } | |
12226 | _ACEOF | |
12227 | for ac_lib in '' dl; do | |
12228 | if test -z "$ac_lib"; then | |
12229 | ac_res="none required" | |
12230 | else | |
12231 | ac_res=-l$ac_lib | |
12232 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12233 | fi | |
12234 | if ac_fn_c_try_link "$LINENO"; then : | |
12235 | ac_cv_search_dlopen=$ac_res | |
12236 | fi | |
12237 | rm -f core conftest.err conftest.$ac_objext \ | |
12238 | conftest$ac_exeext | |
12239 | if ${ac_cv_search_dlopen+:} false; then : | |
12240 | break | |
12241 | fi | |
12242 | done | |
12243 | if ${ac_cv_search_dlopen+:} false; then : | |
12244 | ||
12245 | else | |
12246 | ac_cv_search_dlopen=no | |
12247 | fi | |
12248 | rm conftest.$ac_ext | |
12249 | LIBS=$ac_func_search_save_LIBS | |
12250 | fi | |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
12252 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12253 | ac_res=$ac_cv_search_dlopen | |
12254 | if test "$ac_res" != no; then : | |
12255 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12256 | ||
12257 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12258 | ||
12259 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12260 | LIBADD_DLOPEN="-ldl" | |
12261 | fi | |
12262 | libltdl_cv_lib_dl_dlopen="yes" | |
12263 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12264 | else | |
12265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12266 | /* end confdefs.h. */ | |
12267 | #if HAVE_DLFCN_H | |
12268 | # include <dlfcn.h> | |
12269 | #endif | |
12270 | ||
12271 | int | |
12272 | main () | |
12273 | { | |
12274 | dlopen(0, 0); | |
12275 | ; | |
12276 | return 0; | |
12277 | } | |
12278 | _ACEOF | |
12279 | if ac_fn_c_try_link "$LINENO"; then : | |
12280 | ||
12281 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12282 | ||
12283 | libltdl_cv_func_dlopen="yes" | |
12284 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12285 | else | |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12287 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12288 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12289 | $as_echo_n "(cached) " >&6 | |
12290 | else | |
12291 | ac_check_lib_save_LIBS=$LIBS | |
12292 | LIBS="-lsvld $LIBS" | |
12293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12294 | /* end confdefs.h. */ | |
12295 | ||
12296 | /* Override any GCC internal prototype to avoid an error. | |
12297 | Use char because int might match the return type of a GCC | |
12298 | builtin and then its argument prototype would still apply. */ | |
12299 | #ifdef __cplusplus | |
12300 | extern "C" | |
12301 | #endif | |
12302 | char dlopen (); | |
12303 | int | |
12304 | main () | |
12305 | { | |
12306 | return dlopen (); | |
12307 | ; | |
12308 | return 0; | |
12309 | } | |
12310 | _ACEOF | |
12311 | if ac_fn_c_try_link "$LINENO"; then : | |
12312 | ac_cv_lib_svld_dlopen=yes | |
12313 | else | |
12314 | ac_cv_lib_svld_dlopen=no | |
7083c021 | 12315 | fi |
c52df125 AC |
12316 | rm -f core conftest.err conftest.$ac_objext \ |
12317 | conftest$ac_exeext conftest.$ac_ext | |
12318 | LIBS=$ac_check_lib_save_LIBS | |
12319 | fi | |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12321 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12322 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
7083c021 | 12323 | |
c52df125 AC |
12324 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12325 | ||
12326 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | |
12327 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
7083c021 AC |
12328 | fi |
12329 | ||
c52df125 AC |
12330 | fi |
12331 | rm -f core conftest.err conftest.$ac_objext \ | |
12332 | conftest$ac_exeext conftest.$ac_ext | |
12333 | fi | |
7083c021 | 12334 | |
c52df125 AC |
12335 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12336 | then | |
12337 | lt_save_LIBS="$LIBS" | |
12338 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12339 | for ac_func in dlerror | |
12340 | do : | |
12341 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12342 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12343 | cat >>confdefs.h <<_ACEOF | |
12344 | #define HAVE_DLERROR 1 | |
12345 | _ACEOF | |
7083c021 | 12346 | |
c52df125 | 12347 | fi |
7083c021 AC |
12348 | done |
12349 | ||
c52df125 AC |
12350 | LIBS="$lt_save_LIBS" |
12351 | fi | |
12352 | ||
12353 | ||
12354 | LIBADD_SHL_LOAD= | |
12355 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12356 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12357 | ||
12358 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | |
12359 | ||
12360 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | |
12361 | else | |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12363 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12364 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12365 | $as_echo_n "(cached) " >&6 | |
12366 | else | |
12367 | ac_check_lib_save_LIBS=$LIBS | |
12368 | LIBS="-ldld $LIBS" | |
7083c021 AC |
12369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12370 | /* end confdefs.h. */ | |
6fb6bd15 | 12371 | |
c52df125 AC |
12372 | /* Override any GCC internal prototype to avoid an error. |
12373 | Use char because int might match the return type of a GCC | |
12374 | builtin and then its argument prototype would still apply. */ | |
12375 | #ifdef __cplusplus | |
12376 | extern "C" | |
12377 | #endif | |
12378 | char shl_load (); | |
212380e3 | 12379 | int |
7083c021 | 12380 | main () |
212380e3 | 12381 | { |
c52df125 | 12382 | return shl_load (); |
7083c021 AC |
12383 | ; |
12384 | return 0; | |
212380e3 AC |
12385 | } |
12386 | _ACEOF | |
c52df125 AC |
12387 | if ac_fn_c_try_link "$LINENO"; then : |
12388 | ac_cv_lib_dld_shl_load=yes | |
12389 | else | |
12390 | ac_cv_lib_dld_shl_load=no | |
12391 | fi | |
12392 | rm -f core conftest.err conftest.$ac_objext \ | |
12393 | conftest$ac_exeext conftest.$ac_ext | |
12394 | LIBS=$ac_check_lib_save_LIBS | |
12395 | fi | |
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12397 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12398 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
7083c021 | 12399 | |
c52df125 | 12400 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
7083c021 | 12401 | |
c52df125 AC |
12402 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12403 | LIBADD_SHL_LOAD="-ldld" | |
12404 | fi | |
7083c021 | 12405 | |
c52df125 | 12406 | fi |
212380e3 | 12407 | |
c52df125 AC |
12408 | |
12409 | ||
12410 | case $host_os in | |
12411 | darwin[1567].*) | |
12412 | # We only want this for pre-Mac OS X 10.4. | |
12413 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12414 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
12415 | ||
12416 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | |
12417 | ||
12418 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | |
631ef239 | 12419 | fi |
7083c021 | 12420 | |
c52df125 AC |
12421 | ;; |
12422 | beos*) | |
12423 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12424 | ;; | |
12425 | cygwin* | mingw* | os2* | pw32*) | |
12426 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12427 | " | |
12428 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12429 | ac_have_decl=1 | |
6fb6bd15 | 12430 | else |
c52df125 | 12431 | ac_have_decl=0 |
631ef239 | 12432 | fi |
631ef239 | 12433 | |
c52df125 AC |
12434 | cat >>confdefs.h <<_ACEOF |
12435 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | |
12436 | _ACEOF | |
12437 | ||
12438 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | |
12439 | ;; | |
7083c021 | 12440 | esac |
7083c021 | 12441 | |
c52df125 AC |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12443 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12444 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12445 | $as_echo_n "(cached) " >&6 | |
12446 | else | |
12447 | ac_check_lib_save_LIBS=$LIBS | |
12448 | LIBS="-ldld $LIBS" | |
6fb6bd15 AC |
12449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12450 | /* end confdefs.h. */ | |
c52df125 AC |
12451 | |
12452 | /* Override any GCC internal prototype to avoid an error. | |
12453 | Use char because int might match the return type of a GCC | |
12454 | builtin and then its argument prototype would still apply. */ | |
12455 | #ifdef __cplusplus | |
12456 | extern "C" | |
12457 | #endif | |
12458 | char dld_link (); | |
6fb6bd15 AC |
12459 | int |
12460 | main () | |
12461 | { | |
c52df125 | 12462 | return dld_link (); |
6fb6bd15 AC |
12463 | ; |
12464 | return 0; | |
12465 | } | |
12466 | _ACEOF | |
c52df125 AC |
12467 | if ac_fn_c_try_link "$LINENO"; then : |
12468 | ac_cv_lib_dld_dld_link=yes | |
12469 | else | |
12470 | ac_cv_lib_dld_dld_link=no | |
12471 | fi | |
12472 | rm -f core conftest.err conftest.$ac_objext \ | |
12473 | conftest$ac_exeext conftest.$ac_ext | |
12474 | LIBS=$ac_check_lib_save_LIBS | |
12475 | fi | |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12477 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12478 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12479 | ||
12480 | $as_echo "#define HAVE_DLD 1" >>confdefs.h | |
12481 | ||
12482 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12483 | fi | |
12484 | ||
12485 | ||
12486 | ||
12487 | ||
12488 | LT_DLPREOPEN= | |
12489 | if test -n "$LT_DLLOADERS" | |
12490 | then | |
12491 | for lt_loader in $LT_DLLOADERS; do | |
12492 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12493 | done | |
12494 | ||
12495 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h | |
12496 | ||
12497 | fi | |
12498 | ||
12499 | ||
12500 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | |
12501 | ||
12502 | ||
12503 | ac_ext=c | |
12504 | ac_cpp='$CPP $CPPFLAGS' | |
12505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12508 | ||
12509 | ||
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 | |
12511 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12512 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12513 | $as_echo_n "(cached) " >&6 | |
12514 | else | |
12515 | lt_cv_sys_symbol_underscore=no | |
12516 | cat > conftest.$ac_ext <<_LT_EOF | |
12517 | void nm_test_func(){} | |
12518 | int main(){nm_test_func;return 0;} | |
12519 | _LT_EOF | |
12520 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12521 | (eval $ac_compile) 2>&5 | |
6fb6bd15 AC |
12522 | ac_status=$? |
12523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c52df125 AC |
12524 | test $ac_status = 0; }; then |
12525 | # Now try to grab the symbols. | |
12526 | ac_nlist=conftest.nm | |
12527 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12528 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
6fb6bd15 AC |
12529 | ac_status=$? |
12530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c52df125 AC |
12531 | test $ac_status = 0; } && test -s "$ac_nlist"; then |
12532 | # See whether the symbols have a leading underscore. | |
12533 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12534 | lt_cv_sys_symbol_underscore=yes | |
12535 | else | |
12536 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12537 | : | |
12538 | else | |
12539 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12540 | fi | |
12541 | fi | |
6fb6bd15 | 12542 | else |
c52df125 | 12543 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6fb6bd15 | 12544 | fi |
c52df125 AC |
12545 | else |
12546 | echo "configure: failed program was:" >&5 | |
12547 | cat conftest.c >&5 | |
6fb6bd15 | 12548 | fi |
c52df125 AC |
12549 | rm -rf conftest* |
12550 | ||
6fb6bd15 | 12551 | fi |
c52df125 AC |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12553 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12554 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
6fb6bd15 | 12555 | |
c52df125 AC |
12556 | |
12557 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then | |
12558 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12559 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12561 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12562 | if ${libltdl_cv_need_uscore+:} false; then : | |
7083c021 AC |
12563 | $as_echo_n "(cached) " >&6 |
12564 | else | |
c52df125 AC |
12565 | libltdl_cv_need_uscore=unknown |
12566 | save_LIBS="$LIBS" | |
12567 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12568 | if test "$cross_compiling" = yes; then : | |
12569 | libltdl_cv_need_uscore=cross | |
12570 | else | |
12571 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12572 | lt_status=$lt_dlunknown | |
12573 | cat > conftest.$ac_ext <<_LT_EOF | |
12574 | #line $LINENO "configure" | |
12575 | #include "confdefs.h" | |
212380e3 | 12576 | |
c52df125 AC |
12577 | #if HAVE_DLFCN_H |
12578 | #include <dlfcn.h> | |
12579 | #endif | |
12580 | ||
12581 | #include <stdio.h> | |
12582 | ||
12583 | #ifdef RTLD_GLOBAL | |
12584 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12585 | #else | |
12586 | # ifdef DL_GLOBAL | |
12587 | # define LT_DLGLOBAL DL_GLOBAL | |
12588 | # else | |
12589 | # define LT_DLGLOBAL 0 | |
12590 | # endif | |
12591 | #endif | |
12592 | ||
12593 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12594 | find out it does not work in some platform. */ | |
12595 | #ifndef LT_DLLAZY_OR_NOW | |
12596 | # ifdef RTLD_LAZY | |
12597 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12598 | # else | |
12599 | # ifdef DL_LAZY | |
12600 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12601 | # else | |
12602 | # ifdef RTLD_NOW | |
12603 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12604 | # else | |
12605 | # ifdef DL_NOW | |
12606 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12607 | # else | |
12608 | # define LT_DLLAZY_OR_NOW 0 | |
12609 | # endif | |
12610 | # endif | |
12611 | # endif | |
12612 | # endif | |
12613 | #endif | |
12614 | ||
12615 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12616 | correspondingly for the symbols needed. */ | |
12617 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12618 | int fnord () __attribute__((visibility("default"))); | |
12619 | #endif | |
12620 | ||
12621 | int fnord () { return 42; } | |
12622 | int main () | |
7083c021 | 12623 | { |
c52df125 AC |
12624 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12625 | int status = $lt_dlunknown; | |
7083c021 | 12626 | |
c52df125 AC |
12627 | if (self) |
12628 | { | |
12629 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12630 | else | |
12631 | { | |
12632 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12633 | else puts (dlerror ()); | |
12634 | } | |
12635 | /* dlclose (self); */ | |
12636 | } | |
12637 | else | |
12638 | puts (dlerror ()); | |
12639 | ||
12640 | return status; | |
7083c021 | 12641 | } |
c52df125 AC |
12642 | _LT_EOF |
12643 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12644 | (eval $ac_link) 2>&5 | |
212380e3 | 12645 | ac_status=$? |
7083c021 | 12646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c52df125 AC |
12647 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12648 | (./conftest; exit; ) >&5 2>/dev/null | |
12649 | lt_status=$? | |
12650 | case x$lt_status in | |
12651 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12652 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12653 | x$lt_dlunknown|x*) ;; | |
12654 | esac | |
12655 | else : | |
12656 | # compilation failed | |
212380e3 | 12657 | |
c52df125 | 12658 | fi |
7083c021 | 12659 | fi |
c52df125 AC |
12660 | rm -fr conftest* |
12661 | ||
12662 | LIBS="$save_LIBS" | |
12663 | ||
212380e3 | 12664 | fi |
c52df125 AC |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
12666 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12667 | fi | |
12668 | fi | |
12669 | ||
12670 | if test x"$libltdl_cv_need_uscore" = xyes; then | |
12671 | ||
12672 | $as_echo "#define NEED_USCORE 1" >>confdefs.h | |
12673 | ||
12674 | fi | |
12675 | ||
12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 | |
12677 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12678 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
7083c021 AC |
12679 | $as_echo_n "(cached) " >&6 |
12680 | else | |
c52df125 AC |
12681 | # PORTME does your system automatically load deplibs for dlopen? |
12682 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12683 | # For now, we just catch OSes we know something about -- in the | |
12684 | # future, we'll try test this programmatically. | |
12685 | lt_cv_sys_dlopen_deplibs=unknown | |
12686 | case $host_os in | |
12687 | aix3*|aix4.1.*|aix4.2.*) | |
12688 | # Unknown whether this is true for these versions of AIX, but | |
12689 | # we want this `case' here to explicitly catch those versions. | |
12690 | lt_cv_sys_dlopen_deplibs=unknown | |
12691 | ;; | |
12692 | aix[4-9]*) | |
12693 | lt_cv_sys_dlopen_deplibs=yes | |
12694 | ;; | |
12695 | amigaos*) | |
12696 | case $host_cpu in | |
12697 | powerpc) | |
12698 | lt_cv_sys_dlopen_deplibs=no | |
12699 | ;; | |
12700 | esac | |
12701 | ;; | |
12702 | darwin*) | |
12703 | # Assuming the user has installed a libdl from somewhere, this is true | |
12704 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12705 | lt_cv_sys_dlopen_deplibs=yes | |
12706 | ;; | |
12707 | freebsd* | dragonfly*) | |
12708 | lt_cv_sys_dlopen_deplibs=yes | |
12709 | ;; | |
12710 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12711 | # GNU and its variants, using gnu ld.so (Glibc) | |
12712 | lt_cv_sys_dlopen_deplibs=yes | |
12713 | ;; | |
12714 | hpux10*|hpux11*) | |
12715 | lt_cv_sys_dlopen_deplibs=yes | |
12716 | ;; | |
12717 | interix*) | |
12718 | lt_cv_sys_dlopen_deplibs=yes | |
12719 | ;; | |
12720 | irix[12345]*|irix6.[01]*) | |
12721 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12722 | # know how it worked for any of those versions. | |
12723 | lt_cv_sys_dlopen_deplibs=unknown | |
12724 | ;; | |
12725 | irix*) | |
12726 | # The case above catches anything before 6.2, and it's known that | |
12727 | # at 6.2 and later dlopen does load deplibs. | |
12728 | lt_cv_sys_dlopen_deplibs=yes | |
12729 | ;; | |
12730 | netbsd* | netbsdelf*-gnu) | |
12731 | lt_cv_sys_dlopen_deplibs=yes | |
12732 | ;; | |
12733 | openbsd*) | |
12734 | lt_cv_sys_dlopen_deplibs=yes | |
12735 | ;; | |
12736 | osf[1234]*) | |
12737 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
12738 | # it did *not* use an RPATH in a shared library to find objects the | |
12739 | # library depends on, so we explicitly say `no'. | |
12740 | lt_cv_sys_dlopen_deplibs=no | |
12741 | ;; | |
12742 | osf5.0|osf5.0a|osf5.1) | |
12743 | # dlopen *does* load deplibs and with the right loader patch applied | |
12744 | # it even uses RPATH in a shared library to search for shared objects | |
12745 | # that the library depends on, but there's no easy way to know if that | |
12746 | # patch is installed. Since this is the case, all we can really | |
12747 | # say is unknown -- it depends on the patch being installed. If | |
12748 | # it is, this changes to `yes'. Without it, it would be `no'. | |
12749 | lt_cv_sys_dlopen_deplibs=unknown | |
12750 | ;; | |
12751 | osf*) | |
12752 | # the two cases above should catch all versions of osf <= 5.1. Read | |
12753 | # the comments above for what we know about them. | |
12754 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
12755 | # is used to find them so we can finally say `yes'. | |
12756 | lt_cv_sys_dlopen_deplibs=yes | |
12757 | ;; | |
12758 | qnx*) | |
12759 | lt_cv_sys_dlopen_deplibs=yes | |
12760 | ;; | |
12761 | solaris*) | |
12762 | lt_cv_sys_dlopen_deplibs=yes | |
12763 | ;; | |
12764 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12765 | libltdl_cv_sys_dlopen_deplibs=yes | |
12766 | ;; | |
12767 | esac | |
212380e3 | 12768 | |
c52df125 AC |
12769 | fi |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
12771 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
12772 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
12773 | ||
12774 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h | |
12775 | ||
12776 | fi | |
12777 | ||
12778 | : | |
12779 | ||
12780 | for ac_header in argz.h | |
12781 | do : | |
12782 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
12783 | " | |
12784 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
12785 | cat >>confdefs.h <<_ACEOF | |
12786 | #define HAVE_ARGZ_H 1 | |
12787 | _ACEOF | |
12788 | ||
12789 | fi | |
12790 | ||
12791 | done | |
12792 | ||
12793 | ||
12794 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) | |
12795 | # include <argz.h> | |
7083c021 | 12796 | #endif |
c52df125 AC |
12797 | " |
12798 | if test "x$ac_cv_type_error_t" = xyes; then : | |
212380e3 | 12799 | |
c52df125 AC |
12800 | cat >>confdefs.h <<_ACEOF |
12801 | #define HAVE_ERROR_T 1 | |
7083c021 | 12802 | _ACEOF |
c52df125 AC |
12803 | |
12804 | ||
7083c021 | 12805 | else |
c52df125 AC |
12806 | |
12807 | $as_echo "#define error_t int" >>confdefs.h | |
12808 | ||
12809 | ||
12810 | $as_echo "#define __error_t_defined 1" >>confdefs.h | |
7083c021 AC |
12811 | |
12812 | fi | |
c52df125 AC |
12813 | |
12814 | ||
12815 | ARGZ_H= | |
12816 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
12817 | argz_next argz_stringify | |
12818 | do : | |
12819 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12820 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12821 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
12822 | cat >>confdefs.h <<_ACEOF | |
12823 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12824 | _ACEOF | |
12825 | ||
7083c021 | 12826 | else |
c52df125 AC |
12827 | ARGZ_H=argz.h; |
12828 | ||
12829 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
12830 | ||
212380e3 | 12831 | fi |
c52df125 AC |
12832 | done |
12833 | ||
12834 | ||
12835 | if test -z "$ARGZ_H"; then : | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
12837 | $as_echo_n "checking if argz actually works... " >&6; } | |
12838 | if ${lt_cv_sys_argz_works+:} false; then : | |
7083c021 AC |
12839 | $as_echo_n "(cached) " >&6 |
12840 | else | |
c52df125 AC |
12841 | case $host_os in #( |
12842 | *cygwin*) | |
12843 | lt_cv_sys_argz_works=no | |
12844 | if test "$cross_compiling" != no; then | |
12845 | lt_cv_sys_argz_works="guessing no" | |
12846 | else | |
12847 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
12848 | save_IFS=$IFS | |
12849 | IFS=-. | |
12850 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
12851 | IFS=$save_IFS | |
12852 | lt_os_major=${2-0} | |
12853 | lt_os_minor=${3-0} | |
12854 | lt_os_micro=${4-0} | |
12855 | if test "$lt_os_major" -gt 1 \ | |
12856 | || { test "$lt_os_major" -eq 1 \ | |
12857 | && { test "$lt_os_minor" -gt 5 \ | |
12858 | || { test "$lt_os_minor" -eq 5 \ | |
12859 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
12860 | lt_cv_sys_argz_works=yes | |
12861 | fi | |
12862 | fi | |
12863 | ;; #( | |
12864 | *) lt_cv_sys_argz_works=yes ;; | |
12865 | esac | |
12866 | fi | |
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
12868 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
12869 | if test "$lt_cv_sys_argz_works" = yes; then : | |
212380e3 | 12870 | |
c52df125 | 12871 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
631ef239 | 12872 | |
212380e3 | 12873 | else |
c52df125 AC |
12874 | ARGZ_H=argz.h |
12875 | ||
12876 | ||
12877 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
12878 | ||
12879 | fi | |
12880 | fi | |
12881 | ||
12882 | ||
12883 | ||
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 | |
12885 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
12886 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
12887 | $as_echo_n "(cached) " >&6 | |
12888 | else | |
12889 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | |
12890 | libltdl_cv_preloaded_symbols=yes | |
12891 | else | |
12892 | libltdl_cv_preloaded_symbols=no | |
12893 | fi | |
12894 | ||
12895 | fi | |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | |
12897 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
12898 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
12899 | ||
12900 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
12901 | ||
12902 | fi | |
12903 | ||
12904 | ||
12905 | ||
12906 | # Set options | |
12907 | ||
12908 | ||
12909 | ||
12910 | ||
12911 | ||
12912 | ||
12913 | ||
12914 | ||
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | # Check whether --with-included_ltdl was given. | |
12920 | if test "${with_included_ltdl+set}" = set; then : | |
12921 | withval=$with_included_ltdl; | |
12922 | fi | |
212380e3 | 12923 | |
631ef239 | 12924 | |
c52df125 AC |
12925 | if test "x$with_included_ltdl" != xyes; then |
12926 | # We are not being forced to use the included libltdl sources, so | |
12927 | # decide whether there is a useful installed version we can use. | |
12928 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
631ef239 | 12929 | |
c52df125 AC |
12930 | " |
12931 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
12932 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
12933 | #include <ltdl.h> | |
12934 | " | |
12935 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
12937 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
12938 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
12939 | $as_echo_n "(cached) " >&6 | |
7083c021 | 12940 | else |
c52df125 AC |
12941 | ac_check_lib_save_LIBS=$LIBS |
12942 | LIBS="-lltdl $LIBS" | |
12943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 | 12944 | /* end confdefs.h. */ |
212380e3 | 12945 | |
c52df125 AC |
12946 | /* Override any GCC internal prototype to avoid an error. |
12947 | Use char because int might match the return type of a GCC | |
12948 | builtin and then its argument prototype would still apply. */ | |
12949 | #ifdef __cplusplus | |
12950 | extern "C" | |
12951 | #endif | |
12952 | char lt_dladvise_preload (); | |
7083c021 AC |
12953 | int |
12954 | main () | |
12955 | { | |
c52df125 | 12956 | return lt_dladvise_preload (); |
7083c021 AC |
12957 | ; |
12958 | return 0; | |
12959 | } | |
212380e3 | 12960 | _ACEOF |
c52df125 AC |
12961 | if ac_fn_c_try_link "$LINENO"; then : |
12962 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
12963 | else | |
12964 | ac_cv_lib_ltdl_lt_dladvise_preload=no | |
212380e3 | 12965 | fi |
c52df125 AC |
12966 | rm -f core conftest.err conftest.$ac_objext \ |
12967 | conftest$ac_exeext conftest.$ac_ext | |
12968 | LIBS=$ac_check_lib_save_LIBS | |
212380e3 | 12969 | fi |
c52df125 AC |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
12971 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
12972 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
12973 | with_included_ltdl=no | |
12974 | else | |
12975 | with_included_ltdl=yes | |
212380e3 | 12976 | fi |
c52df125 AC |
12977 | |
12978 | else | |
12979 | with_included_ltdl=yes | |
212380e3 | 12980 | fi |
c52df125 AC |
12981 | |
12982 | else | |
12983 | with_included_ltdl=yes | |
12984 | fi | |
12985 | ||
12986 | ||
12987 | fi | |
12988 | ||
12989 | ||
12990 | ||
12991 | ||
12992 | # Check whether --with-ltdl_include was given. | |
12993 | if test "${with_ltdl_include+set}" = set; then : | |
12994 | withval=$with_ltdl_include; | |
12995 | fi | |
12996 | ||
12997 | ||
12998 | if test -n "$with_ltdl_include"; then | |
12999 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
7083c021 | 13000 | else |
c52df125 | 13001 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
7083c021 | 13002 | fi |
212380e3 | 13003 | else |
c52df125 AC |
13004 | with_ltdl_include=no |
13005 | fi | |
13006 | ||
13007 | ||
13008 | # Check whether --with-ltdl_lib was given. | |
13009 | if test "${with_ltdl_lib+set}" = set; then : | |
13010 | withval=$with_ltdl_lib; | |
13011 | fi | |
13012 | ||
13013 | ||
13014 | if test -n "$with_ltdl_lib"; then | |
13015 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
7083c021 | 13016 | else |
c52df125 | 13017 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
7083c021 | 13018 | fi |
7083c021 | 13019 | else |
c52df125 AC |
13020 | with_ltdl_lib=no |
13021 | fi | |
7083c021 | 13022 | |
c52df125 AC |
13023 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
13024 | ,yes,no,no,) | |
13025 | case $enable_ltdl_convenience in | |
13026 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13027 | "") enable_ltdl_convenience=yes | |
13028 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13029 | esac | |
13030 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13031 | LTDLDEPS=$LIBLTDL | |
13032 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
7083c021 | 13033 | |
212380e3 | 13034 | |
7083c021 | 13035 | |
c52df125 AC |
13036 | |
13037 | ||
13038 | # For backwards non-gettext consistent compatibility... | |
13039 | INCLTDL="$LTDLINCL" | |
13040 | ||
13041 | ||
13042 | ;; | |
13043 | ,no,no,no,) | |
13044 | # If the included ltdl is not to be used, then use the | |
13045 | # preinstalled libltdl we found. | |
13046 | ||
13047 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13048 | ||
13049 | LIBLTDL=-lltdl | |
13050 | LTDLDEPS= | |
13051 | LTDLINCL= | |
13052 | ;; | |
13053 | ,no*,no,*) | |
13054 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13055 | ;; | |
13056 | *) with_included_ltdl=no | |
13057 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13058 | LTDLDEPS= | |
13059 | LTDLINCL="-I$with_ltdl_include" | |
13060 | ;; | |
631ef239 | 13061 | esac |
c52df125 AC |
13062 | INCLTDL="$LTDLINCL" |
13063 | ||
13064 | # Report our decision... | |
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13066 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13068 | $as_echo "$LTDLINCL" >&6; } | |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13070 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13072 | $as_echo "$LIBLTDL" >&6; } | |
13073 | ||
13074 | ||
212380e3 | 13075 | |
c52df125 AC |
13076 | # Check whether --enable-ltdl-install was given. |
13077 | if test "${enable_ltdl_install+set}" = set; then : | |
13078 | enableval=$enable_ltdl_install; | |
212380e3 | 13079 | fi |
631ef239 | 13080 | |
212380e3 | 13081 | |
c52df125 AC |
13082 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
13083 | *yes*) ;; | |
13084 | *) enable_ltdl_convenience=yes ;; | |
13085 | esac | |
212380e3 | 13086 | |
c52df125 AC |
13087 | if test x"${enable_ltdl_install-no}" != xno; then |
13088 | INSTALL_LTDL_TRUE= | |
13089 | INSTALL_LTDL_FALSE='#' | |
13090 | else | |
13091 | INSTALL_LTDL_TRUE='#' | |
13092 | INSTALL_LTDL_FALSE= | |
7083c021 | 13093 | fi |
c52df125 AC |
13094 | |
13095 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13096 | CONVENIENCE_LTDL_TRUE= | |
13097 | CONVENIENCE_LTDL_FALSE='#' | |
7083c021 | 13098 | else |
c52df125 AC |
13099 | CONVENIENCE_LTDL_TRUE='#' |
13100 | CONVENIENCE_LTDL_FALSE= | |
13101 | fi | |
13102 | ||
13103 | ||
13104 | ||
13105 | subdirs="$subdirs extra/libltdl" | |
13106 | ||
13107 | ||
13108 | ||
13109 | ||
13110 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | |
13111 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13112 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13113 | # definitions required by ltdl.c. | |
13114 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
13115 | ||
13116 | ||
13117 | ||
13118 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h | |
13119 | do : | |
13120 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13121 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13122 | " | |
13123 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13124 | cat >>confdefs.h <<_ACEOF | |
13125 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13126 | _ACEOF | |
13127 | ||
13128 | fi | |
13129 | ||
13130 | done | |
13131 | ||
13132 | ||
13133 | for ac_func in closedir opendir readdir | |
13134 | do : | |
13135 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13136 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13137 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13138 | cat >>confdefs.h <<_ACEOF | |
13139 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13140 | _ACEOF |
212380e3 | 13141 | |
7083c021 | 13142 | else |
c52df125 AC |
13143 | |
13144 | ||
13145 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | |
13146 | ||
212380e3 | 13147 | fi |
c52df125 | 13148 | done |
212380e3 | 13149 | |
c52df125 AC |
13150 | for ac_func in strlcat strlcpy |
13151 | do : | |
13152 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13153 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13154 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13155 | cat >>confdefs.h <<_ACEOF | |
13156 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13157 | _ACEOF |
c52df125 | 13158 | |
212380e3 | 13159 | else |
212380e3 | 13160 | |
212380e3 | 13161 | |
c52df125 | 13162 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
7083c021 AC |
13163 | |
13164 | fi | |
c52df125 AC |
13165 | done |
13166 | ||
13167 | ||
13168 | ||
13169 | cat >>confdefs.h <<_ACEOF | |
13170 | #define LT_LIBEXT "$libext" | |
212380e3 AC |
13171 | _ACEOF |
13172 | ||
212380e3 | 13173 | |
c52df125 AC |
13174 | name= |
13175 | eval "lt_libprefix=\"$libname_spec\"" | |
13176 | ||
13177 | cat >>confdefs.h <<_ACEOF | |
13178 | #define LT_LIBPREFIX "$lt_libprefix" | |
212380e3 | 13179 | _ACEOF |
212380e3 | 13180 | |
212380e3 | 13181 | |
c52df125 AC |
13182 | name=ltdl |
13183 | eval "LTDLOPEN=\"$libname_spec\"" | |
212380e3 AC |
13184 | |
13185 | ||
13186 | ||
7083c021 | 13187 | |
212380e3 | 13188 | |
631ef239 | 13189 | |
212380e3 | 13190 | |
212380e3 | 13191 | |
c52df125 | 13192 | # Only expand once: |
212380e3 | 13193 | |
c52df125 AC |
13194 | |
13195 | ||
13196 | build_ltdl=$with_included_ltdl | |
13197 | if test x"$build_ltdl" = x"yes"; then | |
13198 | BUILD_LTDL_TRUE= | |
13199 | BUILD_LTDL_FALSE='#' | |
13200 | else | |
13201 | BUILD_LTDL_TRUE='#' | |
13202 | BUILD_LTDL_FALSE= | |
212380e3 | 13203 | fi |
212380e3 AC |
13204 | |
13205 | ||
c52df125 AC |
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
13207 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
13208 | if ${ac_cv_prog_cc_c99+:} false; then : | |
7083c021 | 13209 | $as_echo_n "(cached) " >&6 |
212380e3 | 13210 | else |
c52df125 AC |
13211 | ac_cv_prog_cc_c99=no |
13212 | ac_save_CC=$CC | |
13213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13214 | /* end confdefs.h. */ |
7083c021 | 13215 | #include <stdarg.h> |
c52df125 AC |
13216 | #include <stdbool.h> |
13217 | #include <stdlib.h> | |
13218 | #include <wchar.h> | |
13219 | #include <stdio.h> | |
212380e3 | 13220 | |
c52df125 AC |
13221 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
13222 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
13223 | #define showlist(...) puts (#__VA_ARGS__) | |
13224 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
13225 | static void | |
13226 | test_varargs_macros (void) | |
212380e3 | 13227 | { |
c52df125 AC |
13228 | int x = 1234; |
13229 | int y = 5678; | |
13230 | debug ("Flag"); | |
13231 | debug ("X = %d\n", x); | |
13232 | showlist (The first, second, and third items.); | |
13233 | report (x>y, "x is %d but y is %d", x, y); | |
13234 | } | |
212380e3 | 13235 | |
c52df125 AC |
13236 | // Check long long types. |
13237 | #define BIG64 18446744073709551615ull | |
13238 | #define BIG32 4294967295ul | |
13239 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
13240 | #if !BIG_OK | |
13241 | your preprocessor is broken; | |
13242 | #endif | |
13243 | #if BIG_OK | |
13244 | #else | |
13245 | your preprocessor is broken; | |
13246 | #endif | |
13247 | static long long int bignum = -9223372036854775807LL; | |
13248 | static unsigned long long int ubignum = BIG64; | |
13249 | ||
13250 | struct incomplete_array | |
13251 | { | |
13252 | int datasize; | |
13253 | double data[]; | |
13254 | }; | |
13255 | ||
13256 | struct named_init { | |
13257 | int number; | |
13258 | const wchar_t *name; | |
13259 | double average; | |
13260 | }; | |
13261 | ||
13262 | typedef const char *ccp; | |
13263 | ||
13264 | static inline int | |
13265 | test_restrict (ccp restrict text) | |
13266 | { | |
13267 | // See if C++-style comments work. | |
13268 | // Iterate through items via the restricted pointer. | |
13269 | // Also check for declarations in for loops. | |
13270 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
13271 | continue; | |
212380e3 AC |
13272 | return 0; |
13273 | } | |
212380e3 | 13274 | |
c52df125 AC |
13275 | // Check varargs and va_copy. |
13276 | static void | |
13277 | test_varargs (const char *format, ...) | |
13278 | { | |
13279 | va_list args; | |
13280 | va_start (args, format); | |
13281 | va_list args_copy; | |
13282 | va_copy (args_copy, args); | |
212380e3 | 13283 | |
c52df125 AC |
13284 | const char *str; |
13285 | int number; | |
13286 | float fnumber; | |
13287 | ||
13288 | while (*format) | |
13289 | { | |
13290 | switch (*format++) | |
13291 | { | |
13292 | case 's': // string | |
13293 | str = va_arg (args_copy, const char *); | |
13294 | break; | |
13295 | case 'd': // int | |
13296 | number = va_arg (args_copy, int); | |
13297 | break; | |
13298 | case 'f': // float | |
13299 | fnumber = va_arg (args_copy, double); | |
13300 | break; | |
13301 | default: | |
13302 | break; | |
13303 | } | |
13304 | } | |
13305 | va_end (args_copy); | |
13306 | va_end (args); | |
13307 | } | |
13308 | ||
13309 | int | |
13310 | main () | |
13311 | { | |
13312 | ||
13313 | // Check bool. | |
13314 | _Bool success = false; | |
212380e3 | 13315 | |
c52df125 AC |
13316 | // Check restrict. |
13317 | if (test_restrict ("String literal") == 0) | |
13318 | success = true; | |
13319 | char *restrict newvar = "Another string"; | |
212380e3 | 13320 | |
c52df125 AC |
13321 | // Check varargs. |
13322 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
13323 | test_varargs_macros (); | |
212380e3 | 13324 | |
c52df125 AC |
13325 | // Check flexible array members. |
13326 | struct incomplete_array *ia = | |
13327 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
13328 | ia->datasize = 10; | |
13329 | for (int i = 0; i < ia->datasize; ++i) | |
13330 | ia->data[i] = i * 1.234; | |
212380e3 | 13331 | |
c52df125 AC |
13332 | // Check named initializers. |
13333 | struct named_init ni = { | |
13334 | .number = 34, | |
13335 | .name = L"Test wide string", | |
13336 | .average = 543.34343, | |
13337 | }; | |
7083c021 | 13338 | |
c52df125 | 13339 | ni.number = 58; |
212380e3 | 13340 | |
c52df125 AC |
13341 | int dynamic_array[ni.number]; |
13342 | dynamic_array[ni.number - 1] = 543; | |
631ef239 | 13343 | |
c52df125 AC |
13344 | // work around unused variable warnings |
13345 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
13346 | || dynamic_array[ni.number - 1] != 543); | |
7083c021 | 13347 | |
c52df125 | 13348 | ; |
212380e3 AC |
13349 | return 0; |
13350 | } | |
13351 | _ACEOF | |
c52df125 AC |
13352 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
13353 | do | |
13354 | CC="$ac_save_CC $ac_arg" | |
13355 | if ac_fn_c_try_compile "$LINENO"; then : | |
13356 | ac_cv_prog_cc_c99=$ac_arg | |
7083c021 | 13357 | fi |
c52df125 AC |
13358 | rm -f core conftest.err conftest.$ac_objext |
13359 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
13360 | done | |
13361 | rm -f conftest.$ac_ext | |
13362 | CC=$ac_save_CC | |
631ef239 | 13363 | |
212380e3 | 13364 | fi |
c52df125 AC |
13365 | # AC_CACHE_VAL |
13366 | case "x$ac_cv_prog_cc_c99" in | |
13367 | x) | |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
13369 | $as_echo "none needed" >&6; } ;; | |
13370 | xno) | |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
13372 | $as_echo "unsupported" >&6; } ;; | |
13373 | *) | |
13374 | CC="$CC $ac_cv_prog_cc_c99" | |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
13376 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
13377 | esac | |
13378 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
631ef239 | 13379 | |
7083c021 | 13380 | fi |
631ef239 | 13381 | |
7083c021 AC |
13382 | |
13383 | ||
13384 | ||
13385 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
b6d0720c | 13386 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 | 13387 | MINIX=yes |
212380e3 | 13388 | else |
7083c021 AC |
13389 | MINIX= |
13390 | fi | |
13391 | ||
13392 | ||
13393 | if test "$MINIX" = yes; then | |
13394 | ||
13395 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
13396 | ||
212380e3 | 13397 | |
7083c021 | 13398 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
631ef239 AC |
13399 | |
13400 | ||
7083c021 | 13401 | $as_echo "#define _MINIX 1" >>confdefs.h |
631ef239 | 13402 | |
7083c021 | 13403 | fi |
212380e3 | 13404 | |
212380e3 | 13405 | |
7083c021 AC |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
13407 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
b6d0720c | 13408 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
7083c021 | 13409 | $as_echo_n "(cached) " >&6 |
212380e3 | 13410 | else |
7083c021 | 13411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 13412 | /* end confdefs.h. */ |
7083c021 | 13413 | |
2eff3833 JT |
13414 | # define __EXTENSIONS__ 1 |
13415 | $ac_includes_default | |
212380e3 AC |
13416 | int |
13417 | main () | |
13418 | { | |
7083c021 | 13419 | |
212380e3 AC |
13420 | ; |
13421 | return 0; | |
13422 | } | |
13423 | _ACEOF | |
7083c021 AC |
13424 | if ac_fn_c_try_compile "$LINENO"; then : |
13425 | ac_cv_safe_to_define___extensions__=yes | |
212380e3 | 13426 | else |
7083c021 | 13427 | ac_cv_safe_to_define___extensions__=no |
212380e3 | 13428 | fi |
631ef239 | 13429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 13430 | fi |
7083c021 AC |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
13432 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
13433 | test $ac_cv_safe_to_define___extensions__ = yes && | |
13434 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
212380e3 | 13435 | |
7083c021 | 13436 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
212380e3 | 13437 | |
7083c021 AC |
13438 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
13439 | ||
13440 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
13441 | ||
13442 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
212380e3 | 13443 | |
7083c021 AC |
13444 | |
13445 | ||
13446 | ||
13447 | OLD_CFLAGS="$CFLAGS" | |
13448 | ac_ext=c | |
13449 | ac_cpp='$CPP $CPPFLAGS' | |
13450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13453 | if test -n "$ac_tool_prefix"; then | |
13454 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
13455 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13457 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13458 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 13459 | $as_echo_n "(cached) " >&6 |
212380e3 | 13460 | else |
7083c021 AC |
13461 | if test -n "$CC"; then |
13462 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 13463 | else |
7083c021 AC |
13464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13465 | for as_dir in $PATH | |
13466 | do | |
13467 | IFS=$as_save_IFS | |
13468 | test -z "$as_dir" && as_dir=. | |
13469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13470 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13471 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
13472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13473 | break 2 | |
13474 | fi | |
13475 | done | |
13476 | done | |
13477 | IFS=$as_save_IFS | |
212380e3 | 13478 | |
212380e3 | 13479 | fi |
212380e3 | 13480 | fi |
7083c021 AC |
13481 | CC=$ac_cv_prog_CC |
13482 | if test -n "$CC"; then | |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13484 | $as_echo "$CC" >&6; } | |
212380e3 | 13485 | else |
7083c021 AC |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13487 | $as_echo "no" >&6; } | |
13488 | fi | |
212380e3 | 13489 | |
212380e3 AC |
13490 | |
13491 | fi | |
7083c021 AC |
13492 | if test -z "$ac_cv_prog_CC"; then |
13493 | ac_ct_CC=$CC | |
13494 | # Extract the first word of "gcc", so it can be a program name with args. | |
13495 | set dummy gcc; ac_word=$2 | |
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13497 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13498 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 13499 | $as_echo_n "(cached) " >&6 |
212380e3 | 13500 | else |
7083c021 AC |
13501 | if test -n "$ac_ct_CC"; then |
13502 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 13503 | else |
7083c021 AC |
13504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13505 | for as_dir in $PATH | |
13506 | do | |
13507 | IFS=$as_save_IFS | |
13508 | test -z "$as_dir" && as_dir=. | |
13509 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13511 | ac_cv_prog_ac_ct_CC="gcc" |
13512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13513 | break 2 | |
13514 | fi | |
13515 | done | |
13516 | done | |
13517 | IFS=$as_save_IFS | |
212380e3 | 13518 | |
212380e3 | 13519 | fi |
212380e3 | 13520 | fi |
7083c021 AC |
13521 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
13522 | if test -n "$ac_ct_CC"; then | |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
13524 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 13525 | else |
7083c021 AC |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13527 | $as_echo "no" >&6; } | |
13528 | fi | |
212380e3 | 13529 | |
7083c021 AC |
13530 | if test "x$ac_ct_CC" = x; then |
13531 | CC="" | |
13532 | else | |
13533 | case $cross_compiling:$ac_tool_warned in | |
13534 | yes:) | |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13536 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13537 | ac_tool_warned=yes ;; | |
631ef239 | 13538 | esac |
7083c021 AC |
13539 | CC=$ac_ct_CC |
13540 | fi | |
212380e3 | 13541 | else |
7083c021 | 13542 | CC="$ac_cv_prog_CC" |
212380e3 | 13543 | fi |
631ef239 | 13544 | |
7083c021 AC |
13545 | if test -z "$CC"; then |
13546 | if test -n "$ac_tool_prefix"; then | |
13547 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
13548 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13550 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13551 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 13552 | $as_echo_n "(cached) " >&6 |
212380e3 | 13553 | else |
7083c021 AC |
13554 | if test -n "$CC"; then |
13555 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 13556 | else |
7083c021 AC |
13557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13558 | for as_dir in $PATH | |
13559 | do | |
13560 | IFS=$as_save_IFS | |
13561 | test -z "$as_dir" && as_dir=. | |
13562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13563 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13564 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
13565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13566 | break 2 | |
13567 | fi | |
13568 | done | |
13569 | done | |
13570 | IFS=$as_save_IFS | |
212380e3 | 13571 | |
212380e3 | 13572 | fi |
7083c021 AC |
13573 | fi |
13574 | CC=$ac_cv_prog_CC | |
13575 | if test -n "$CC"; then | |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13577 | $as_echo "$CC" >&6; } | |
212380e3 | 13578 | else |
7083c021 AC |
13579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13580 | $as_echo "no" >&6; } | |
13581 | fi | |
13582 | ||
212380e3 | 13583 | |
7083c021 | 13584 | fi |
212380e3 | 13585 | fi |
7083c021 AC |
13586 | if test -z "$CC"; then |
13587 | # Extract the first word of "cc", so it can be a program name with args. | |
13588 | set dummy cc; ac_word=$2 | |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13590 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13591 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 AC |
13592 | $as_echo_n "(cached) " >&6 |
13593 | else | |
13594 | if test -n "$CC"; then | |
13595 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
13596 | else | |
13597 | ac_prog_rejected=no | |
13598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13599 | for as_dir in $PATH | |
13600 | do | |
13601 | IFS=$as_save_IFS | |
13602 | test -z "$as_dir" && as_dir=. | |
13603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13605 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
13606 | ac_prog_rejected=yes | |
13607 | continue | |
13608 | fi | |
13609 | ac_cv_prog_CC="cc" | |
13610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13611 | break 2 | |
13612 | fi | |
13613 | done | |
13614 | done | |
13615 | IFS=$as_save_IFS | |
631ef239 | 13616 | |
7083c021 AC |
13617 | if test $ac_prog_rejected = yes; then |
13618 | # We found a bogon in the path, so make sure we never use it. | |
13619 | set dummy $ac_cv_prog_CC | |
13620 | shift | |
13621 | if test $# != 0; then | |
13622 | # We chose a different compiler from the bogus one. | |
13623 | # However, it has the same basename, so the bogon will be chosen | |
13624 | # first if we set CC to just the basename; use the full file name. | |
13625 | shift | |
13626 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
13627 | fi | |
13628 | fi | |
13629 | fi | |
13630 | fi | |
13631 | CC=$ac_cv_prog_CC | |
13632 | if test -n "$CC"; then | |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13634 | $as_echo "$CC" >&6; } | |
13635 | else | |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13637 | $as_echo "no" >&6; } | |
212380e3 | 13638 | fi |
631ef239 | 13639 | |
212380e3 | 13640 | |
7083c021 AC |
13641 | fi |
13642 | if test -z "$CC"; then | |
13643 | if test -n "$ac_tool_prefix"; then | |
13644 | for ac_prog in cl.exe | |
13645 | do | |
13646 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13647 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13649 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13650 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 13651 | $as_echo_n "(cached) " >&6 |
212380e3 | 13652 | else |
7083c021 AC |
13653 | if test -n "$CC"; then |
13654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
13655 | else | |
13656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13657 | for as_dir in $PATH | |
13658 | do | |
13659 | IFS=$as_save_IFS | |
13660 | test -z "$as_dir" && as_dir=. | |
13661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13663 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
13664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13665 | break 2 | |
13666 | fi | |
13667 | done | |
13668 | done | |
13669 | IFS=$as_save_IFS | |
212380e3 | 13670 | |
212380e3 | 13671 | fi |
7083c021 AC |
13672 | fi |
13673 | CC=$ac_cv_prog_CC | |
13674 | if test -n "$CC"; then | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13676 | $as_echo "$CC" >&6; } | |
212380e3 | 13677 | else |
7083c021 AC |
13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13679 | $as_echo "no" >&6; } | |
13680 | fi | |
212380e3 | 13681 | |
212380e3 | 13682 | |
7083c021 AC |
13683 | test -n "$CC" && break |
13684 | done | |
13685 | fi | |
13686 | if test -z "$CC"; then | |
13687 | ac_ct_CC=$CC | |
13688 | for ac_prog in cl.exe | |
13689 | do | |
13690 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13691 | set dummy $ac_prog; ac_word=$2 | |
13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13693 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13694 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 13695 | $as_echo_n "(cached) " >&6 |
212380e3 | 13696 | else |
7083c021 AC |
13697 | if test -n "$ac_ct_CC"; then |
13698 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
13699 | else | |
13700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13701 | for as_dir in $PATH | |
13702 | do | |
13703 | IFS=$as_save_IFS | |
13704 | test -z "$as_dir" && as_dir=. | |
13705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13707 | ac_cv_prog_ac_ct_CC="$ac_prog" |
13708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13709 | break 2 | |
13710 | fi | |
13711 | done | |
13712 | done | |
13713 | IFS=$as_save_IFS | |
212380e3 | 13714 | |
212380e3 AC |
13715 | fi |
13716 | fi | |
7083c021 AC |
13717 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
13718 | if test -n "$ac_ct_CC"; then | |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
13720 | $as_echo "$ac_ct_CC" >&6; } | |
13721 | else | |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13723 | $as_echo "no" >&6; } | |
212380e3 | 13724 | fi |
631ef239 AC |
13725 | |
13726 | ||
7083c021 AC |
13727 | test -n "$ac_ct_CC" && break |
13728 | done | |
631ef239 | 13729 | |
7083c021 AC |
13730 | if test "x$ac_ct_CC" = x; then |
13731 | CC="" | |
13732 | else | |
13733 | case $cross_compiling:$ac_tool_warned in | |
13734 | yes:) | |
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13736 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13737 | ac_tool_warned=yes ;; | |
13738 | esac | |
13739 | CC=$ac_ct_CC | |
13740 | fi | |
13741 | fi | |
212380e3 | 13742 | |
7083c021 | 13743 | fi |
212380e3 | 13744 | |
7083c021 AC |
13745 | |
13746 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13747 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
13748 | as_fn_error $? "no acceptable C compiler found in \$PATH |
13749 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
13750 | |
13751 | # Provide some information about the compiler. | |
13752 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
13753 | set X $ac_compile | |
13754 | ac_compiler=$2 | |
13755 | for ac_option in --version -v -V -qversion; do | |
13756 | { { ac_try="$ac_compiler $ac_option >&5" | |
631ef239 AC |
13757 | case "(($ac_try" in |
13758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13759 | *) ac_try_echo=$ac_try;; | |
13760 | esac | |
7083c021 AC |
13761 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
13762 | $as_echo "$ac_try_echo"; } >&5 | |
13763 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
212380e3 | 13764 | ac_status=$? |
7083c021 AC |
13765 | if test -s conftest.err; then |
13766 | sed '10a\ | |
13767 | ... rest of stderr output deleted ... | |
13768 | 10q' conftest.err >conftest.er1 | |
13769 | cat conftest.er1 >&5 | |
7083c021 | 13770 | fi |
6fb6bd15 | 13771 | rm -f conftest.er1 conftest.err |
7083c021 AC |
13772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13773 | test $ac_status = 0; } | |
13774 | done | |
212380e3 | 13775 | |
7083c021 AC |
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
13777 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 13778 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 | 13779 | $as_echo_n "(cached) " >&6 |
212380e3 | 13780 | else |
7083c021 | 13781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 13782 | /* end confdefs.h. */ |
7083c021 | 13783 | |
212380e3 AC |
13784 | int |
13785 | main () | |
13786 | { | |
7083c021 AC |
13787 | #ifndef __GNUC__ |
13788 | choke me | |
13789 | #endif | |
212380e3 AC |
13790 | |
13791 | ; | |
13792 | return 0; | |
13793 | } | |
13794 | _ACEOF | |
7083c021 AC |
13795 | if ac_fn_c_try_compile "$LINENO"; then : |
13796 | ac_compiler_gnu=yes | |
13797 | else | |
13798 | ac_compiler_gnu=no | |
13799 | fi | |
13800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13801 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
13802 | ||
13803 | fi | |
13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
13805 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
13806 | if test $ac_compiler_gnu = yes; then | |
13807 | GCC=yes | |
13808 | else | |
13809 | GCC= | |
13810 | fi | |
13811 | ac_test_CFLAGS=${CFLAGS+set} | |
13812 | ac_save_CFLAGS=$CFLAGS | |
13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
13814 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 13815 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
13816 | $as_echo_n "(cached) " >&6 |
13817 | else | |
13818 | ac_save_c_werror_flag=$ac_c_werror_flag | |
13819 | ac_c_werror_flag=yes | |
13820 | ac_cv_prog_cc_g=no | |
13821 | CFLAGS="-g" | |
13822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13823 | /* end confdefs.h. */ |
7083c021 | 13824 | |
212380e3 AC |
13825 | int |
13826 | main () | |
13827 | { | |
212380e3 AC |
13828 | |
13829 | ; | |
13830 | return 0; | |
13831 | } | |
13832 | _ACEOF | |
7083c021 AC |
13833 | if ac_fn_c_try_compile "$LINENO"; then : |
13834 | ac_cv_prog_cc_g=yes | |
212380e3 | 13835 | else |
7083c021 AC |
13836 | CFLAGS="" |
13837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13838 | /* end confdefs.h. */ |
7083c021 | 13839 | |
212380e3 AC |
13840 | int |
13841 | main () | |
13842 | { | |
212380e3 AC |
13843 | |
13844 | ; | |
13845 | return 0; | |
13846 | } | |
13847 | _ACEOF | |
7083c021 AC |
13848 | if ac_fn_c_try_compile "$LINENO"; then : |
13849 | ||
13850 | else | |
13851 | ac_c_werror_flag=$ac_save_c_werror_flag | |
13852 | CFLAGS="-g" | |
13853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13854 | /* end confdefs.h. */ |
7083c021 | 13855 | |
212380e3 AC |
13856 | int |
13857 | main () | |
13858 | { | |
212380e3 AC |
13859 | |
13860 | ; | |
13861 | return 0; | |
13862 | } | |
13863 | _ACEOF | |
7083c021 AC |
13864 | if ac_fn_c_try_compile "$LINENO"; then : |
13865 | ac_cv_prog_cc_g=yes | |
212380e3 | 13866 | fi |
631ef239 | 13867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 13868 | fi |
631ef239 | 13869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 13870 | fi |
631ef239 | 13871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
13872 | ac_c_werror_flag=$ac_save_c_werror_flag |
13873 | fi | |
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
13875 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
13876 | if test "$ac_test_CFLAGS" = set; then | |
13877 | CFLAGS=$ac_save_CFLAGS | |
13878 | elif test $ac_cv_prog_cc_g = yes; then | |
13879 | if test "$GCC" = yes; then | |
13880 | CFLAGS="-g -O2" | |
13881 | else | |
13882 | CFLAGS="-g" | |
13883 | fi | |
13884 | else | |
13885 | if test "$GCC" = yes; then | |
13886 | CFLAGS="-O2" | |
13887 | else | |
13888 | CFLAGS= | |
13889 | fi | |
13890 | fi | |
13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
13892 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 13893 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
13894 | $as_echo_n "(cached) " >&6 |
13895 | else | |
13896 | ac_cv_prog_cc_c89=no | |
13897 | ac_save_CC=$CC | |
13898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13899 | /* end confdefs.h. */ |
7083c021 AC |
13900 | #include <stdarg.h> |
13901 | #include <stdio.h> | |
2eff3833 | 13902 | struct stat; |
7083c021 AC |
13903 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
13904 | struct buf { int x; }; | |
13905 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
13906 | static char *e (p, i) | |
13907 | char **p; | |
13908 | int i; | |
13909 | { | |
13910 | return p[i]; | |
13911 | } | |
13912 | static char *f (char * (*g) (char **, int), char **p, ...) | |
13913 | { | |
13914 | char *s; | |
13915 | va_list v; | |
13916 | va_start (v,p); | |
13917 | s = g (p, va_arg (v,int)); | |
13918 | va_end (v); | |
13919 | return s; | |
13920 | } | |
13921 | ||
13922 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
13923 | function prototypes and stuff, but not '\xHH' hex character constants. | |
13924 | These don't provoke an error unfortunately, instead are silently treated | |
13925 | as 'x'. The following induces an error, until -std is added to get | |
13926 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
13927 | array size at least. It's necessary to write '\x00'==0 to get something | |
13928 | that's true only with -std. */ | |
13929 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
13930 | ||
13931 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
13932 | inside strings and character constants. */ | |
13933 | #define FOO(x) 'x' | |
13934 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
13935 | ||
13936 | int test (int i, double x); | |
13937 | struct s1 {int (*f) (int a);}; | |
13938 | struct s2 {int (*f) (double a);}; | |
13939 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
13940 | int argc; | |
13941 | char **argv; | |
212380e3 AC |
13942 | int |
13943 | main () | |
13944 | { | |
7083c021 | 13945 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
13946 | ; |
13947 | return 0; | |
13948 | } | |
13949 | _ACEOF | |
7083c021 AC |
13950 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
13951 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
13952 | do | |
13953 | CC="$ac_save_CC $ac_arg" | |
13954 | if ac_fn_c_try_compile "$LINENO"; then : | |
13955 | ac_cv_prog_cc_c89=$ac_arg | |
13956 | fi | |
13957 | rm -f core conftest.err conftest.$ac_objext | |
13958 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
13959 | done | |
13960 | rm -f conftest.$ac_ext | |
13961 | CC=$ac_save_CC | |
13962 | ||
13963 | fi | |
13964 | # AC_CACHE_VAL | |
13965 | case "x$ac_cv_prog_cc_c89" in | |
13966 | x) | |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
13968 | $as_echo "none needed" >&6; } ;; | |
13969 | xno) | |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
13971 | $as_echo "unsupported" >&6; } ;; | |
13972 | *) | |
13973 | CC="$CC $ac_cv_prog_cc_c89" | |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
13975 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 13976 | esac |
7083c021 | 13977 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 13978 | |
212380e3 | 13979 | fi |
631ef239 | 13980 | |
7083c021 AC |
13981 | ac_ext=c |
13982 | ac_cpp='$CPP $CPPFLAGS' | |
13983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13986 | ||
13987 | ac_ext=c | |
13988 | ac_cpp='$CPP $CPPFLAGS' | |
13989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
13993 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
13994 | if ${am_cv_prog_cc_c_o+:} false; then : | |
13995 | $as_echo_n "(cached) " >&6 | |
13996 | else | |
13997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13998 | /* end confdefs.h. */ | |
13999 | ||
14000 | int | |
14001 | main () | |
14002 | { | |
14003 | ||
14004 | ; | |
14005 | return 0; | |
14006 | } | |
14007 | _ACEOF | |
14008 | # Make sure it works both with $CC and with simple cc. | |
14009 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
14010 | # compilers refuse to overwrite an existing .o file with -o, | |
14011 | # though they will create one. | |
14012 | am_cv_prog_cc_c_o=yes | |
14013 | for am_i in 1 2; do | |
14014 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
14015 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
14016 | ac_status=$? | |
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14018 | (exit $ac_status); } \ | |
14019 | && test -f conftest2.$ac_objext; then | |
14020 | : OK | |
14021 | else | |
14022 | am_cv_prog_cc_c_o=no | |
14023 | break | |
14024 | fi | |
14025 | done | |
14026 | rm -f core conftest* | |
14027 | unset am_i | |
14028 | fi | |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
14030 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
14031 | if test "$am_cv_prog_cc_c_o" != yes; then | |
14032 | # Losing compiler, so override with the script. | |
14033 | # FIXME: It is wrong to rewrite CC. | |
14034 | # But if we don't then we get into trouble of one sort or another. | |
14035 | # A longer-term fix would be to have automake use am__CC in this case, | |
14036 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
14037 | CC="$am_aux_dir/compile $CC" | |
14038 | fi | |
14039 | ac_ext=c | |
14040 | ac_cpp='$CPP $CPPFLAGS' | |
14041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7083c021 AC |
14044 | |
14045 | ||
c52df125 | 14046 | depcc="$CC" am_compiler_list= |
7083c021 | 14047 | |
c52df125 AC |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
14049 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
14050 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
14051 | $as_echo_n "(cached) " >&6 | |
14052 | else | |
14053 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
14054 | # We make a subdir and do the tests there. Otherwise we can end up | |
14055 | # making bogus files that we don't know about and never remove. For | |
14056 | # instance it was reported that on HP-UX the gcc test will end up | |
14057 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
14058 | # in D". | |
14059 | rm -rf conftest.dir | |
14060 | mkdir conftest.dir | |
14061 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
14062 | # using a relative directory. | |
14063 | cp "$am_depcomp" conftest.dir | |
14064 | cd conftest.dir | |
14065 | # We will build objects and dependencies in a subdirectory because | |
14066 | # it helps to detect inapplicable dependency modes. For instance | |
14067 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
14068 | # side effect of compilation, but ICC will put the dependencies in | |
14069 | # the current directory while Tru64 will put them in the object | |
14070 | # directory. | |
14071 | mkdir sub | |
14072 | ||
14073 | am_cv_CC_dependencies_compiler_type=none | |
14074 | if test "$am_compiler_list" = ""; then | |
14075 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
1db8e007 | 14076 | fi |
c52df125 AC |
14077 | am__universal=false |
14078 | case " $depcc " in #( | |
14079 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
14080 | esac | |
14081 | ||
14082 | for depmode in $am_compiler_list; do | |
14083 | # Setup a source with many dependencies, because some compilers | |
14084 | # like to wrap large dependency lists on column 80 (with \), and | |
14085 | # we should not choose a depcomp mode which is confused by this. | |
14086 | # | |
14087 | # We need to recreate these files for each test, as the compiler may | |
14088 | # overwrite some of them when testing with obscure command lines. | |
14089 | # This happens at least with the AIX C compiler. | |
14090 | : > sub/conftest.c | |
14091 | for i in 1 2 3 4 5 6; do | |
14092 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
14093 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
14094 | # Solaris 10 /bin/sh. | |
14095 | echo '/* dummy */' > sub/conftst$i.h | |
14096 | done | |
14097 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
14098 | ||
14099 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
14100 | # mode. It turns out that the SunPro C++ compiler does not properly | |
14101 | # handle '-M -o', and we need to detect this. Also, some Intel | |
14102 | # versions had trouble with output in subdirs. | |
14103 | am__obj=sub/conftest.${OBJEXT-o} | |
14104 | am__minus_obj="-o $am__obj" | |
14105 | case $depmode in | |
14106 | gcc) | |
14107 | # This depmode causes a compiler race in universal mode. | |
14108 | test "$am__universal" = false || continue | |
14109 | ;; | |
14110 | nosideeffect) | |
14111 | # After this tag, mechanisms are not by side-effect, so they'll | |
14112 | # only be used when explicitly requested. | |
14113 | if test "x$enable_dependency_tracking" = xyes; then | |
14114 | continue | |
14115 | else | |
14116 | break | |
14117 | fi | |
14118 | ;; | |
14119 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
14120 | # This compiler won't grok '-c -o', but also, the minuso test has | |
14121 | # not run yet. These depmodes are late enough in the game, and | |
14122 | # so weak that their functioning should not be impacted. | |
14123 | am__obj=conftest.${OBJEXT-o} | |
14124 | am__minus_obj= | |
14125 | ;; | |
14126 | none) break ;; | |
14127 | esac | |
14128 | if depmode=$depmode \ | |
14129 | source=sub/conftest.c object=$am__obj \ | |
14130 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
14131 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
14132 | >/dev/null 2>conftest.err && | |
14133 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
14134 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
14135 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
14136 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
14137 | # icc doesn't choke on unknown options, it will just issue warnings | |
14138 | # or remarks (even with -Werror). So we grep stderr for any message | |
14139 | # that says an option was ignored or not supported. | |
14140 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
14141 | # icc: Command line warning: ignoring option '-M'; no argument required | |
14142 | # The diagnosis changed in icc 8.0: | |
14143 | # icc: Command line remark: option '-MP' not supported | |
14144 | if (grep 'ignoring option' conftest.err || | |
14145 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
14146 | am_cv_CC_dependencies_compiler_type=$depmode | |
14147 | break | |
14148 | fi | |
14149 | fi | |
14150 | done | |
1db8e007 | 14151 | |
c52df125 AC |
14152 | cd .. |
14153 | rm -rf conftest.dir | |
14154 | else | |
14155 | am_cv_CC_dependencies_compiler_type=none | |
14156 | fi | |
1db8e007 | 14157 | |
c52df125 AC |
14158 | fi |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
14160 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
14161 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
1db8e007 | 14162 | |
c52df125 AC |
14163 | if |
14164 | test "x$enable_dependency_tracking" != xno \ | |
14165 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
14166 | am__fastdepCC_TRUE= | |
14167 | am__fastdepCC_FALSE='#' | |
14168 | else | |
14169 | am__fastdepCC_TRUE='#' | |
14170 | am__fastdepCC_FALSE= | |
14171 | fi | |
1db8e007 JT |
14172 | |
14173 | ||
c52df125 AC |
14174 | ac_ext=c |
14175 | ac_cpp='$CPP $CPPFLAGS' | |
14176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1db8e007 | 14179 | |
7083c021 | 14180 | |
c52df125 | 14181 | CFLAGS="$OLD_CFLAGS" |
7083c021 | 14182 | |
c52df125 | 14183 | subdirs="$subdirs libratbox" |
7083c021 | 14184 | |
212380e3 | 14185 | |
631ef239 | 14186 | |
cfa7b5fd AC |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX, HPUX or Darwin" >&5 |
14188 | $as_echo_n "checking uname -s for Solaris, AIX, HPUX or Darwin... " >&6; } | |
7083c021 AC |
14189 | OSNAME=`uname -s` |
14190 | case "$OSNAME" in | |
14191 | HP-UX*) | |
631ef239 | 14192 | |
7083c021 AC |
14193 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 | |
14195 | $as_echo "assuming old HPUX with its own cc" >&6; } | |
14196 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
14197 | HPUX=yes | |
14198 | else | |
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 | |
14200 | $as_echo "already using newer HPUX" >&6; } | |
14201 | fi | |
14202 | ;; | |
14203 | SunOS*) | |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 | |
14205 | $as_echo "SunOS or Solaris" >&6; } | |
212380e3 | 14206 | |
7083c021 | 14207 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
212380e3 | 14208 | |
7083c021 AC |
14209 | SUN=yes |
14210 | ;; | |
14211 | AIX*) | |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5 | |
14213 | $as_echo "AIX - Sorry you poor bastard..really we are" >&6; } | |
14214 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
14215 | ;; | |
cfa7b5fd AC |
14216 | Darwin*) |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 | |
14218 | $as_echo "Darwin" >&6; } | |
7083c021 AC |
14219 | AppleGCC=yes |
14220 | ;; | |
14221 | *) | |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14223 | $as_echo "no" >&6; } | |
7083c021 | 14224 | ;; |
cfa7b5fd | 14225 | esac |
7083c021 | 14226 | |
cfa7b5fd | 14227 | if test "$ac_cv_c_compiler_gnu" = yes; then |
7083c021 | 14228 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" |
212380e3 | 14229 | fi |
631ef239 | 14230 | |
7083c021 AC |
14231 | if test "$ac_cv_prog_cc_g" = yes; then |
14232 | if test "$Tru" = yes; then | |
14233 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
14234 | else | |
14235 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
14236 | fi | |
212380e3 | 14237 | fi |
212380e3 | 14238 | |
7083c021 AC |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 |
14240 | $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } | |
14241 | if test "$SGS" = "yes"; then | |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14243 | $as_echo "yes" >&6; } | |
212380e3 | 14244 | else |
7083c021 AC |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14246 | $as_echo "no" >&6; } | |
14247 | fi | |
212380e3 | 14248 | |
7083c021 AC |
14249 | # Extract the first word of "mkdep", so it can be a program name with args. |
14250 | set dummy mkdep; ac_word=$2 | |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14252 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14253 | if ${ac_cv_path_MKDEP+:} false; then : |
7083c021 AC |
14254 | $as_echo_n "(cached) " >&6 |
14255 | else | |
14256 | case $MKDEP in | |
14257 | [\\/]* | ?:[\\/]*) | |
14258 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
14259 | ;; | |
14260 | *) | |
14261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14262 | for as_dir in $PATH | |
14263 | do | |
14264 | IFS=$as_save_IFS | |
14265 | test -z "$as_dir" && as_dir=. | |
14266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14268 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
14269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14270 | break 2 | |
14271 | fi | |
14272 | done | |
14273 | done | |
14274 | IFS=$as_save_IFS | |
212380e3 | 14275 | |
7083c021 | 14276 | ;; |
631ef239 | 14277 | esac |
7083c021 AC |
14278 | fi |
14279 | MKDEP=$ac_cv_path_MKDEP | |
14280 | if test -n "$MKDEP"; then | |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 | |
14282 | $as_echo "$MKDEP" >&6; } | |
212380e3 | 14283 | else |
7083c021 AC |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14285 | $as_echo "no" >&6; } | |
212380e3 | 14286 | fi |
631ef239 | 14287 | |
7083c021 AC |
14288 | |
14289 | # Extract the first word of "makedepend", so it can be a program name with args. | |
14290 | set dummy makedepend; ac_word=$2 | |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14292 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14293 | if ${ac_cv_path_MAKEDEPEND+:} false; then : |
7083c021 AC |
14294 | $as_echo_n "(cached) " >&6 |
14295 | else | |
14296 | case $MAKEDEPEND in | |
14297 | [\\/]* | ?:[\\/]*) | |
14298 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
14299 | ;; | |
14300 | *) | |
14301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14302 | for as_dir in $PATH | |
14303 | do | |
14304 | IFS=$as_save_IFS | |
14305 | test -z "$as_dir" && as_dir=. | |
14306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14308 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
14309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14310 | break 2 | |
14311 | fi | |
14312 | done | |
212380e3 | 14313 | done |
7083c021 AC |
14314 | IFS=$as_save_IFS |
14315 | ||
14316 | ;; | |
14317 | esac | |
14318 | fi | |
14319 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
14320 | if test -n "$MAKEDEPEND"; then | |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 | |
14322 | $as_echo "$MAKEDEPEND" >&6; } | |
212380e3 | 14323 | else |
7083c021 AC |
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14325 | $as_echo "no" >&6; } | |
14326 | fi | |
212380e3 | 14327 | |
212380e3 | 14328 | |
212380e3 | 14329 | |
7083c021 AC |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 |
14331 | $as_echo_n "checking how to generate dependency info... " >&6; } | |
14332 | ||
14333 | STDOUT="> .depend" | |
14334 | ||
14335 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 | |
14337 | $as_echo "gcc -MM" >&6; } | |
14338 | MKDEP="$CC -MM" | |
14339 | elif test ! -z "$MKDEP"; then | |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 | |
14341 | $as_echo "mkdep" >&6; } | |
14342 | ||
14343 | if test -z "$Tru"; then | |
14344 | STDOUT="" | |
14345 | else | |
14346 | STDOUT=" 2> /dev/null" | |
14347 | fi | |
14348 | elif test "$SunWorkShop" = yes; then | |
14349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 | |
14350 | $as_echo "$CC -xM" >&6; } | |
14351 | MKDEP="$CC -xM" | |
14352 | STDOUT="> .depend 2> /dev/null" | |
14353 | elif test ! -z "$MAKEDEPEND"; then | |
14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 | |
14355 | $as_echo "makedepend" >&6; } | |
14356 | MKDEP="$MAKEDEPEND -f-" | |
212380e3 | 14357 | else |
7083c021 AC |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 |
14359 | $as_echo "nothing suitable.. forget it!" >&6; } | |
14360 | MKDEP=":" | |
212380e3 | 14361 | fi |
631ef239 | 14362 | |
7083c021 AC |
14363 | |
14364 | ||
14365 | ||
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
14367 | $as_echo_n "checking for /dev/null... " >&6; } | |
14368 | if test -c /dev/null ; then | |
14369 | ||
14370 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
14371 | ||
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14373 | $as_echo "yes" >&6; } | |
212380e3 | 14374 | else |
212380e3 | 14375 | |
7083c021 AC |
14376 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
14377 | ||
14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
14379 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 14380 | fi |
631ef239 | 14381 | |
7083c021 AC |
14382 | if test ! -z "$CFLAGS"; then |
14383 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 14384 | fi |
631ef239 | 14385 | |
7083c021 AC |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
14387 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 14388 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
14389 | $as_echo_n "(cached) " >&6 |
14390 | else | |
14391 | ac_func_search_save_LIBS=$LIBS | |
14392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14393 | /* end confdefs.h. */ |
7083c021 AC |
14394 | |
14395 | /* Override any GCC internal prototype to avoid an error. | |
14396 | Use char because int might match the return type of a GCC | |
14397 | builtin and then its argument prototype would still apply. */ | |
14398 | #ifdef __cplusplus | |
14399 | extern "C" | |
14400 | #endif | |
14401 | char strerror (); | |
212380e3 AC |
14402 | int |
14403 | main () | |
14404 | { | |
7083c021 | 14405 | return strerror (); |
212380e3 AC |
14406 | ; |
14407 | return 0; | |
14408 | } | |
14409 | _ACEOF | |
7083c021 AC |
14410 | for ac_lib in '' cposix; do |
14411 | if test -z "$ac_lib"; then | |
14412 | ac_res="none required" | |
14413 | else | |
14414 | ac_res=-l$ac_lib | |
14415 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14416 | fi | |
14417 | if ac_fn_c_try_link "$LINENO"; then : | |
14418 | ac_cv_search_strerror=$ac_res | |
14419 | fi | |
14420 | rm -f core conftest.err conftest.$ac_objext \ | |
14421 | conftest$ac_exeext | |
b6d0720c | 14422 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
14423 | break |
14424 | fi | |
14425 | done | |
b6d0720c | 14426 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 14427 | |
212380e3 | 14428 | else |
7083c021 AC |
14429 | ac_cv_search_strerror=no |
14430 | fi | |
14431 | rm conftest.$ac_ext | |
14432 | LIBS=$ac_func_search_save_LIBS | |
14433 | fi | |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
14435 | $as_echo "$ac_cv_search_strerror" >&6; } | |
14436 | ac_res=$ac_cv_search_strerror | |
14437 | if test "$ac_res" != no; then : | |
14438 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14439 | |
212380e3 | 14440 | fi |
631ef239 | 14441 | |
7083c021 AC |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
14443 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 14444 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
14445 | $as_echo_n "(cached) " >&6 |
14446 | else | |
14447 | ac_cv_c_inline=no | |
14448 | for ac_kw in inline __inline__ __inline; do | |
14449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14450 | /* end confdefs.h. */ | |
14451 | #ifndef __cplusplus | |
14452 | typedef int foo_t; | |
14453 | static $ac_kw foo_t static_foo () {return 0; } | |
14454 | $ac_kw foo_t foo () {return 0; } | |
14455 | #endif | |
14456 | ||
14457 | _ACEOF | |
14458 | if ac_fn_c_try_compile "$LINENO"; then : | |
14459 | ac_cv_c_inline=$ac_kw | |
14460 | fi | |
631ef239 | 14461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 14462 | test "$ac_cv_c_inline" != no && break |
212380e3 | 14463 | done |
7083c021 AC |
14464 | |
14465 | fi | |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
14467 | $as_echo "$ac_cv_c_inline" >&6; } | |
14468 | ||
14469 | case $ac_cv_c_inline in | |
14470 | inline | yes) ;; | |
14471 | *) | |
14472 | case $ac_cv_c_inline in | |
14473 | no) ac_val=;; | |
14474 | *) ac_val=$ac_cv_c_inline;; | |
14475 | esac | |
14476 | cat >>confdefs.h <<_ACEOF | |
14477 | #ifndef __cplusplus | |
14478 | #define inline $ac_val | |
14479 | #endif | |
14480 | _ACEOF | |
14481 | ;; | |
212380e3 | 14482 | esac |
7083c021 AC |
14483 | |
14484 | if test $ac_cv_c_compiler_gnu = yes; then | |
14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
14486 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
b6d0720c | 14487 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
7083c021 | 14488 | $as_echo_n "(cached) " >&6 |
212380e3 | 14489 | else |
7083c021 AC |
14490 | ac_pattern="Autoconf.*'x'" |
14491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14492 | /* end confdefs.h. */ | |
14493 | #include <sgtty.h> | |
14494 | Autoconf TIOCGETP | |
212380e3 | 14495 | _ACEOF |
7083c021 AC |
14496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14497 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
14498 | ac_cv_prog_gcc_traditional=yes | |
14499 | else | |
14500 | ac_cv_prog_gcc_traditional=no | |
14501 | fi | |
14502 | rm -f conftest* | |
14503 | ||
14504 | ||
14505 | if test $ac_cv_prog_gcc_traditional = no; then | |
14506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14507 | /* end confdefs.h. */ |
7083c021 AC |
14508 | #include <termio.h> |
14509 | Autoconf TCGETA | |
14510 | _ACEOF | |
14511 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14512 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
14513 | ac_cv_prog_gcc_traditional=yes | |
14514 | fi | |
14515 | rm -f conftest* | |
212380e3 | 14516 | |
7083c021 AC |
14517 | fi |
14518 | fi | |
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
14520 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
14521 | if test $ac_cv_prog_gcc_traditional = yes; then | |
14522 | CC="$CC -traditional" | |
14523 | fi | |
14524 | fi | |
212380e3 | 14525 | |
7083c021 AC |
14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
14527 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
14528 | set x ${MAKE-make} | |
14529 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 14530 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
14531 | $as_echo_n "(cached) " >&6 |
14532 | else | |
14533 | cat >conftest.make <<\_ACEOF | |
14534 | SHELL = /bin/sh | |
14535 | all: | |
14536 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 14537 | _ACEOF |
b6d0720c | 14538 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
14539 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
14540 | *@@@%%%=?*=@@@%%%*) | |
14541 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
14542 | *) | |
14543 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 14544 | esac |
7083c021 AC |
14545 | rm -f conftest.make |
14546 | fi | |
14547 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14549 | $as_echo "yes" >&6; } | |
14550 | SET_MAKE= | |
14551 | else | |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14553 | $as_echo "no" >&6; } | |
c52df125 | 14554 | SET_MAKE="MAKE=${MAKE-make}" |
7083c021 | 14555 | fi |
7083c021 | 14556 | |
7083c021 AC |
14557 | |
14558 | # Extract the first word of "rm", so it can be a program name with args. | |
14559 | set dummy rm; ac_word=$2 | |
14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14561 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14562 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 14563 | $as_echo_n "(cached) " >&6 |
212380e3 | 14564 | else |
7083c021 AC |
14565 | case $RM in |
14566 | [\\/]* | ?:[\\/]*) | |
14567 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
14568 | ;; | |
14569 | *) | |
14570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14571 | for as_dir in $PATH | |
14572 | do | |
14573 | IFS=$as_save_IFS | |
14574 | test -z "$as_dir" && as_dir=. | |
14575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14577 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
14578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14579 | break 2 | |
14580 | fi | |
14581 | done | |
14582 | done | |
14583 | IFS=$as_save_IFS | |
212380e3 | 14584 | |
7083c021 AC |
14585 | ;; |
14586 | esac | |
212380e3 | 14587 | fi |
7083c021 AC |
14588 | RM=$ac_cv_path_RM |
14589 | if test -n "$RM"; then | |
14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
14591 | $as_echo "$RM" >&6; } | |
14592 | else | |
14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14594 | $as_echo "no" >&6; } | |
212380e3 | 14595 | fi |
631ef239 AC |
14596 | |
14597 | ||
7083c021 AC |
14598 | # Extract the first word of "cp", so it can be a program name with args. |
14599 | set dummy cp; ac_word=$2 | |
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14601 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14602 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
14603 | $as_echo_n "(cached) " >&6 |
14604 | else | |
14605 | case $CP in | |
14606 | [\\/]* | ?:[\\/]*) | |
14607 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
14608 | ;; | |
14609 | *) | |
14610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14611 | for as_dir in $PATH | |
14612 | do | |
14613 | IFS=$as_save_IFS | |
14614 | test -z "$as_dir" && as_dir=. | |
14615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14617 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
14618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14619 | break 2 | |
14620 | fi | |
14621 | done | |
14622 | done | |
14623 | IFS=$as_save_IFS | |
631ef239 | 14624 | |
7083c021 AC |
14625 | ;; |
14626 | esac | |
14627 | fi | |
14628 | CP=$ac_cv_path_CP | |
14629 | if test -n "$CP"; then | |
14630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
14631 | $as_echo "$CP" >&6; } | |
14632 | else | |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14634 | $as_echo "no" >&6; } | |
14635 | fi | |
212380e3 AC |
14636 | |
14637 | ||
7083c021 AC |
14638 | # Extract the first word of "mv", so it can be a program name with args. |
14639 | set dummy mv; ac_word=$2 | |
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14641 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14642 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 14643 | $as_echo_n "(cached) " >&6 |
212380e3 | 14644 | else |
7083c021 AC |
14645 | case $MV in |
14646 | [\\/]* | ?:[\\/]*) | |
14647 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
14648 | ;; | |
14649 | *) | |
14650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14651 | for as_dir in $PATH | |
14652 | do | |
14653 | IFS=$as_save_IFS | |
14654 | test -z "$as_dir" && as_dir=. | |
14655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14657 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
14658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14659 | break 2 | |
14660 | fi | |
14661 | done | |
14662 | done | |
14663 | IFS=$as_save_IFS | |
14664 | ||
14665 | ;; | |
631ef239 | 14666 | esac |
7083c021 AC |
14667 | fi |
14668 | MV=$ac_cv_path_MV | |
14669 | if test -n "$MV"; then | |
14670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
14671 | $as_echo "$MV" >&6; } | |
212380e3 | 14672 | else |
7083c021 AC |
14673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14674 | $as_echo "no" >&6; } | |
212380e3 | 14675 | fi |
631ef239 | 14676 | |
212380e3 | 14677 | |
7083c021 AC |
14678 | # Extract the first word of "ln", so it can be a program name with args. |
14679 | set dummy ln; ac_word=$2 | |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14681 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14682 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 14683 | $as_echo_n "(cached) " >&6 |
212380e3 | 14684 | else |
7083c021 AC |
14685 | case $LN in |
14686 | [\\/]* | ?:[\\/]*) | |
14687 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
14688 | ;; | |
14689 | *) | |
14690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14691 | for as_dir in $PATH | |
14692 | do | |
14693 | IFS=$as_save_IFS | |
14694 | test -z "$as_dir" && as_dir=. | |
14695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14697 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
14698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14699 | break 2 | |
14700 | fi | |
14701 | done | |
14702 | done | |
14703 | IFS=$as_save_IFS | |
212380e3 | 14704 | |
7083c021 | 14705 | ;; |
631ef239 | 14706 | esac |
7083c021 AC |
14707 | fi |
14708 | LN=$ac_cv_path_LN | |
14709 | if test -n "$LN"; then | |
14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
14711 | $as_echo "$LN" >&6; } | |
212380e3 | 14712 | else |
7083c021 AC |
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14714 | $as_echo "no" >&6; } | |
212380e3 | 14715 | fi |
631ef239 | 14716 | |
7083c021 AC |
14717 | |
14718 | # Extract the first word of "sed", so it can be a program name with args. | |
14719 | set dummy sed; ac_word=$2 | |
14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14721 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14722 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
14723 | $as_echo_n "(cached) " >&6 |
14724 | else | |
14725 | case $SED in | |
14726 | [\\/]* | ?:[\\/]*) | |
14727 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
14728 | ;; | |
14729 | *) | |
14730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14731 | for as_dir in $PATH | |
14732 | do | |
14733 | IFS=$as_save_IFS | |
14734 | test -z "$as_dir" && as_dir=. | |
14735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14737 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
14738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14739 | break 2 | |
14740 | fi | |
14741 | done | |
212380e3 | 14742 | done |
7083c021 AC |
14743 | IFS=$as_save_IFS |
14744 | ||
14745 | ;; | |
14746 | esac | |
14747 | fi | |
14748 | SED=$ac_cv_path_SED | |
14749 | if test -n "$SED"; then | |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
14751 | $as_echo "$SED" >&6; } | |
212380e3 | 14752 | else |
7083c021 AC |
14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14754 | $as_echo "no" >&6; } | |
14755 | fi | |
212380e3 | 14756 | |
212380e3 | 14757 | |
7083c021 AC |
14758 | # Extract the first word of "ar", so it can be a program name with args. |
14759 | set dummy ar; ac_word=$2 | |
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14761 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14762 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
14763 | $as_echo_n "(cached) " >&6 |
14764 | else | |
14765 | case $AR in | |
14766 | [\\/]* | ?:[\\/]*) | |
14767 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
14768 | ;; | |
14769 | *) | |
14770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14771 | for as_dir in $PATH | |
14772 | do | |
14773 | IFS=$as_save_IFS | |
14774 | test -z "$as_dir" && as_dir=. | |
14775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14777 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
14778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14779 | break 2 | |
14780 | fi | |
14781 | done | |
14782 | done | |
14783 | IFS=$as_save_IFS | |
212380e3 | 14784 | |
7083c021 | 14785 | ;; |
631ef239 | 14786 | esac |
7083c021 AC |
14787 | fi |
14788 | AR=$ac_cv_path_AR | |
14789 | if test -n "$AR"; then | |
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
14791 | $as_echo "$AR" >&6; } | |
212380e3 | 14792 | else |
7083c021 AC |
14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14794 | $as_echo "no" >&6; } | |
212380e3 | 14795 | fi |
631ef239 | 14796 | |
7083c021 AC |
14797 | |
14798 | # Extract the first word of "ld", so it can be a program name with args. | |
14799 | set dummy ld; ac_word=$2 | |
14800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14801 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14802 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 14803 | $as_echo_n "(cached) " >&6 |
212380e3 | 14804 | else |
7083c021 AC |
14805 | case $LD in |
14806 | [\\/]* | ?:[\\/]*) | |
14807 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
14808 | ;; | |
14809 | *) | |
14810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14811 | for as_dir in $PATH | |
14812 | do | |
14813 | IFS=$as_save_IFS | |
14814 | test -z "$as_dir" && as_dir=. | |
14815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14817 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
14818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14819 | break 2 | |
14820 | fi | |
14821 | done | |
14822 | done | |
14823 | IFS=$as_save_IFS | |
212380e3 | 14824 | |
7083c021 AC |
14825 | ;; |
14826 | esac | |
212380e3 | 14827 | fi |
7083c021 AC |
14828 | LD=$ac_cv_path_LD |
14829 | if test -n "$LD"; then | |
14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14831 | $as_echo "$LD" >&6; } | |
14832 | else | |
14833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14834 | $as_echo "no" >&6; } | |
212380e3 | 14835 | fi |
631ef239 | 14836 | |
212380e3 | 14837 | |
7083c021 AC |
14838 | # Extract the first word of "ranlib", so it can be a program name with args. |
14839 | set dummy ranlib; ac_word=$2 | |
14840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14841 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14842 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 14843 | $as_echo_n "(cached) " >&6 |
212380e3 | 14844 | else |
7083c021 AC |
14845 | case $RANLIB in |
14846 | [\\/]* | ?:[\\/]*) | |
14847 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
14848 | ;; | |
14849 | *) | |
14850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14851 | for as_dir in $PATH | |
14852 | do | |
14853 | IFS=$as_save_IFS | |
14854 | test -z "$as_dir" && as_dir=. | |
14855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14857 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
14858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14859 | break 2 | |
14860 | fi | |
14861 | done | |
14862 | done | |
14863 | IFS=$as_save_IFS | |
212380e3 | 14864 | |
7083c021 AC |
14865 | ;; |
14866 | esac | |
14867 | fi | |
14868 | RANLIB=$ac_cv_path_RANLIB | |
14869 | if test -n "$RANLIB"; then | |
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
14871 | $as_echo "$RANLIB" >&6; } | |
14872 | else | |
14873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14874 | $as_echo "no" >&6; } | |
212380e3 | 14875 | fi |
631ef239 | 14876 | |
7083c021 AC |
14877 | |
14878 | # Extract the first word of "touch", so it can be a program name with args. | |
14879 | set dummy touch; ac_word=$2 | |
14880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14881 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14882 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
14883 | $as_echo_n "(cached) " >&6 |
14884 | else | |
14885 | case $TOUCH in | |
14886 | [\\/]* | ?:[\\/]*) | |
14887 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
14888 | ;; | |
14889 | *) | |
14890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14891 | for as_dir in $PATH | |
14892 | do | |
14893 | IFS=$as_save_IFS | |
14894 | test -z "$as_dir" && as_dir=. | |
14895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14897 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
14898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14899 | break 2 | |
14900 | fi | |
212380e3 | 14901 | done |
7083c021 AC |
14902 | done |
14903 | IFS=$as_save_IFS | |
14904 | ||
14905 | ;; | |
212380e3 | 14906 | esac |
7083c021 AC |
14907 | fi |
14908 | TOUCH=$ac_cv_path_TOUCH | |
14909 | if test -n "$TOUCH"; then | |
14910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
14911 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 14912 | else |
7083c021 AC |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14914 | $as_echo "no" >&6; } | |
14915 | fi | |
212380e3 | 14916 | |
212380e3 | 14917 | |
7083c021 AC |
14918 | |
14919 | for ac_prog in 'bison -y' byacc | |
14920 | do | |
14921 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14922 | set dummy $ac_prog; ac_word=$2 | |
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14924 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14925 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 14926 | $as_echo_n "(cached) " >&6 |
212380e3 | 14927 | else |
7083c021 AC |
14928 | if test -n "$YACC"; then |
14929 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
14930 | else | |
14931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14932 | for as_dir in $PATH | |
14933 | do | |
14934 | IFS=$as_save_IFS | |
14935 | test -z "$as_dir" && as_dir=. | |
14936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14938 | ac_cv_prog_YACC="$ac_prog" |
14939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14940 | break 2 | |
14941 | fi | |
14942 | done | |
14943 | done | |
14944 | IFS=$as_save_IFS | |
212380e3 | 14945 | |
212380e3 AC |
14946 | fi |
14947 | fi | |
7083c021 AC |
14948 | YACC=$ac_cv_prog_YACC |
14949 | if test -n "$YACC"; then | |
14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14951 | $as_echo "$YACC" >&6; } | |
14952 | else | |
14953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14954 | $as_echo "no" >&6; } | |
212380e3 | 14955 | fi |
631ef239 AC |
14956 | |
14957 | ||
7083c021 AC |
14958 | test -n "$YACC" && break |
14959 | done | |
14960 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
14961 | |
14962 | ||
7083c021 | 14963 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 14964 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 14965 | fi |
212380e3 | 14966 | |
7083c021 AC |
14967 | for ac_prog in flex lex |
14968 | do | |
14969 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14970 | set dummy $ac_prog; ac_word=$2 | |
14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14972 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14973 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 14974 | $as_echo_n "(cached) " >&6 |
212380e3 | 14975 | else |
7083c021 AC |
14976 | if test -n "$LEX"; then |
14977 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 14978 | else |
7083c021 AC |
14979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14980 | for as_dir in $PATH | |
14981 | do | |
14982 | IFS=$as_save_IFS | |
14983 | test -z "$as_dir" && as_dir=. | |
14984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14986 | ac_cv_prog_LEX="$ac_prog" |
14987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14988 | break 2 | |
14989 | fi | |
631ef239 | 14990 | done |
7083c021 AC |
14991 | done |
14992 | IFS=$as_save_IFS | |
631ef239 | 14993 | |
7083c021 AC |
14994 | fi |
14995 | fi | |
14996 | LEX=$ac_cv_prog_LEX | |
14997 | if test -n "$LEX"; then | |
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14999 | $as_echo "$LEX" >&6; } | |
631ef239 | 15000 | else |
7083c021 AC |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15002 | $as_echo "no" >&6; } | |
631ef239 AC |
15003 | fi |
15004 | ||
15005 | ||
7083c021 AC |
15006 | test -n "$LEX" && break |
15007 | done | |
15008 | test -n "$LEX" || LEX=":" | |
212380e3 | 15009 | |
7083c021 AC |
15010 | if test "x$LEX" != "x:"; then |
15011 | cat >conftest.l <<_ACEOF | |
15012 | %% | |
15013 | a { ECHO; } | |
15014 | b { REJECT; } | |
15015 | c { yymore (); } | |
15016 | d { yyless (1); } | |
2eff3833 JT |
15017 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
15018 | yyless ((input () != 0)); } | |
7083c021 AC |
15019 | f { unput (yytext[0]); } |
15020 | . { BEGIN INITIAL; } | |
15021 | %% | |
15022 | #ifdef YYTEXT_POINTER | |
15023 | extern char *yytext; | |
212380e3 | 15024 | #endif |
212380e3 | 15025 | int |
7083c021 | 15026 | main (void) |
212380e3 | 15027 | { |
7083c021 | 15028 | return ! yylex () + ! yywrap (); |
212380e3 AC |
15029 | } |
15030 | _ACEOF | |
7083c021 | 15031 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
15032 | case "(($ac_try" in |
15033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15034 | *) ac_try_echo=$ac_try;; | |
15035 | esac | |
7083c021 AC |
15036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
15037 | $as_echo "$ac_try_echo"; } >&5 | |
15038 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 15039 | ac_status=$? |
7083c021 AC |
15040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15041 | test $ac_status = 0; } | |
15042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
15043 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 15044 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 15045 | $as_echo_n "(cached) " >&6 |
212380e3 | 15046 | else |
212380e3 | 15047 | |
7083c021 AC |
15048 | if test -f lex.yy.c; then |
15049 | ac_cv_prog_lex_root=lex.yy | |
15050 | elif test -f lexyy.c; then | |
15051 | ac_cv_prog_lex_root=lexyy | |
15052 | else | |
b6d0720c | 15053 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
15054 | fi |
15055 | fi | |
15056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
15057 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
15058 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
15059 | ||
15060 | if test -z "${LEXLIB+set}"; then | |
15061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
15062 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 15063 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
15064 | $as_echo_n "(cached) " >&6 |
15065 | else | |
631ef239 | 15066 | |
7083c021 AC |
15067 | ac_save_LIBS=$LIBS |
15068 | ac_cv_lib_lex='none needed' | |
15069 | for ac_lib in '' -lfl -ll; do | |
15070 | LIBS="$ac_lib $ac_save_LIBS" | |
15071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15072 | /* end confdefs.h. */ | |
15073 | `cat $LEX_OUTPUT_ROOT.c` | |
15074 | _ACEOF | |
15075 | if ac_fn_c_try_link "$LINENO"; then : | |
15076 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 15077 | fi |
7083c021 AC |
15078 | rm -f core conftest.err conftest.$ac_objext \ |
15079 | conftest$ac_exeext conftest.$ac_ext | |
15080 | test "$ac_cv_lib_lex" != 'none needed' && break | |
15081 | done | |
15082 | LIBS=$ac_save_LIBS | |
631ef239 | 15083 | |
631ef239 | 15084 | fi |
7083c021 AC |
15085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
15086 | $as_echo "$ac_cv_lib_lex" >&6; } | |
15087 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
15088 | fi | |
15089 | ||
15090 | ||
15091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
15092 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 15093 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 15094 | $as_echo_n "(cached) " >&6 |
631ef239 | 15095 | else |
7083c021 AC |
15096 | # POSIX says lex can declare yytext either as a pointer or an array; the |
15097 | # default is implementation-dependent. Figure out which it is, since | |
15098 | # not all implementations provide the %pointer and %array declarations. | |
15099 | ac_cv_prog_lex_yytext_pointer=no | |
15100 | ac_save_LIBS=$LIBS | |
15101 | LIBS="$LEXLIB $ac_save_LIBS" | |
15102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15103 | /* end confdefs.h. */ | |
b6d0720c AC |
15104 | |
15105 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
15106 | `cat $LEX_OUTPUT_ROOT.c` |
15107 | _ACEOF | |
15108 | if ac_fn_c_try_link "$LINENO"; then : | |
15109 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 15110 | fi |
7083c021 AC |
15111 | rm -f core conftest.err conftest.$ac_objext \ |
15112 | conftest$ac_exeext conftest.$ac_ext | |
15113 | LIBS=$ac_save_LIBS | |
15114 | ||
212380e3 | 15115 | fi |
7083c021 AC |
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
15117 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
15118 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 15119 | |
7083c021 AC |
15120 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
15121 | ||
15122 | fi | |
15123 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
15124 | ||
15125 | fi | |
15126 | ||
15127 | if test "$LEX" = ":"; then | |
b6d0720c | 15128 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
15129 | fi |
15130 | ||
9f9b7042 NPB |
15131 | # Check whether --enable-fhs-paths was given. |
15132 | if test "${enable_fhs_paths+set}" = set; then : | |
15133 | enableval=$enable_fhs_paths; | |
15134 | else | |
15135 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
15136 | test "$localstatedir" = '${prefix}/var' && \ | |
15137 | test "$libdir" = '${exec_prefix}/lib'; then : | |
15138 | enable_fhs_paths=no | |
15139 | else | |
15140 | enable_fhs_paths=yes | |
15141 | fi | |
15142 | ||
15143 | fi | |
15144 | ||
15145 | if test "x$enable_fhs_paths" = "xyes"; then : | |
15146 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
15147 | rundir=${rundir-'${prefix}/run'} | |
15148 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
15149 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
15150 | else | |
15151 | libexecdir='${bindir}' | |
15152 | pkglibexecdir='${libexecdir}' | |
15153 | rundir='${sysconfdir}' | |
15154 | pkgrundir='${rundir}' | |
7083c021 | 15155 | localstatedir='${prefix}' |
9f9b7042 | 15156 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 15157 | fi |
9f9b7042 NPB |
15158 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
15159 | ||
15160 | ||
15161 | ||
15162 | ||
15163 | ||
15164 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
15165 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15166 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
15167 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 15168 | ac_define_dir_counter=0 |
9f9b7042 NPB |
15169 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
15170 | last_ac_define_dir="$ac_define_dir" | |
15171 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
15172 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
15173 | if test "x$ac_define_dir_counter" = x128; then : | |
15174 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
15175 | break | |
15176 | fi | |
9f9b7042 NPB |
15177 | done |
15178 | PKGLOCALSTATEDIR="$ac_define_dir" | |
15179 | ||
15180 | ||
15181 | cat >>confdefs.h <<_ACEOF | |
15182 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
15183 | _ACEOF | |
15184 | ||
15185 | ||
15186 | ||
15187 | ||
15188 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
15189 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15190 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
15191 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 15192 | ac_define_dir_counter=0 |
9f9b7042 NPB |
15193 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
15194 | last_ac_define_dir="$ac_define_dir" | |
15195 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
15196 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
15197 | if test "x$ac_define_dir_counter" = x128; then : | |
15198 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
15199 | break | |
15200 | fi | |
9f9b7042 NPB |
15201 | done |
15202 | PKGLIBEXECDIR="$ac_define_dir" | |
15203 | ||
15204 | ||
15205 | cat >>confdefs.h <<_ACEOF | |
15206 | #define PKGLIBEXECDIR "$ac_define_dir" | |
15207 | _ACEOF | |
15208 | ||
15209 | ||
212380e3 | 15210 | |
7083c021 AC |
15211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
15212 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 15213 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 15214 | $as_echo_n "(cached) " >&6 |
212380e3 | 15215 | else |
7083c021 | 15216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15217 | /* end confdefs.h. */ |
7083c021 AC |
15218 | #include <stdlib.h> |
15219 | #include <stdarg.h> | |
15220 | #include <string.h> | |
15221 | #include <float.h> | |
212380e3 AC |
15222 | |
15223 | int | |
15224 | main () | |
15225 | { | |
7083c021 | 15226 | |
212380e3 AC |
15227 | ; |
15228 | return 0; | |
15229 | } | |
15230 | _ACEOF | |
7083c021 AC |
15231 | if ac_fn_c_try_compile "$LINENO"; then : |
15232 | ac_cv_header_stdc=yes | |
212380e3 | 15233 | else |
7083c021 | 15234 | ac_cv_header_stdc=no |
212380e3 | 15235 | fi |
631ef239 | 15236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15237 | |
7083c021 AC |
15238 | if test $ac_cv_header_stdc = yes; then |
15239 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15241 | /* end confdefs.h. */ | |
15242 | #include <string.h> | |
15243 | ||
212380e3 | 15244 | _ACEOF |
7083c021 AC |
15245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15246 | $EGREP "memchr" >/dev/null 2>&1; then : | |
15247 | ||
15248 | else | |
15249 | ac_cv_header_stdc=no | |
15250 | fi | |
15251 | rm -f conftest* | |
212380e3 AC |
15252 | |
15253 | fi | |
15254 | ||
7083c021 AC |
15255 | if test $ac_cv_header_stdc = yes; then |
15256 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15258 | /* end confdefs.h. */ | |
15259 | #include <stdlib.h> | |
15260 | ||
15261 | _ACEOF | |
15262 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15263 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 15264 | |
212380e3 | 15265 | else |
7083c021 | 15266 | ac_cv_header_stdc=no |
631ef239 | 15267 | fi |
7083c021 | 15268 | rm -f conftest* |
631ef239 | 15269 | |
7083c021 | 15270 | fi |
212380e3 | 15271 | |
7083c021 AC |
15272 | if test $ac_cv_header_stdc = yes; then |
15273 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15274 | if test "$cross_compiling" = yes; then : | |
15275 | : | |
212380e3 | 15276 | else |
7083c021 | 15277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15278 | /* end confdefs.h. */ |
7083c021 AC |
15279 | #include <ctype.h> |
15280 | #include <stdlib.h> | |
15281 | #if ((' ' & 0x0FF) == 0x020) | |
15282 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15283 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15284 | #else | |
15285 | # define ISLOWER(c) \ | |
15286 | (('a' <= (c) && (c) <= 'i') \ | |
15287 | || ('j' <= (c) && (c) <= 'r') \ | |
15288 | || ('s' <= (c) && (c) <= 'z')) | |
15289 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 15290 | #endif |
7083c021 AC |
15291 | |
15292 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
15293 | int |
15294 | main () | |
15295 | { | |
7083c021 AC |
15296 | int i; |
15297 | for (i = 0; i < 256; i++) | |
15298 | if (XOR (islower (i), ISLOWER (i)) | |
15299 | || toupper (i) != TOUPPER (i)) | |
15300 | return 2; | |
212380e3 AC |
15301 | return 0; |
15302 | } | |
15303 | _ACEOF | |
7083c021 | 15304 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 15305 | |
7083c021 AC |
15306 | else |
15307 | ac_cv_header_stdc=no | |
631ef239 | 15308 | fi |
7083c021 AC |
15309 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15310 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15311 | fi |
7083c021 | 15312 | |
212380e3 | 15313 | fi |
212380e3 | 15314 | fi |
7083c021 AC |
15315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
15316 | $as_echo "$ac_cv_header_stdc" >&6; } | |
15317 | if test $ac_cv_header_stdc = yes; then | |
15318 | ||
15319 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
15320 | |
15321 | fi | |
15322 | ||
15323 | ||
7083c021 AC |
15324 | 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 |
15325 | do : | |
15326 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15327 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 15328 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
15329 | cat >>confdefs.h <<_ACEOF |
15330 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15331 | _ACEOF | |
212380e3 | 15332 | |
212380e3 AC |
15333 | fi |
15334 | ||
7083c021 | 15335 | done |
212380e3 AC |
15336 | |
15337 | ||
212380e3 | 15338 | |
7083c021 AC |
15339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
15340 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 15341 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
15342 | $as_echo_n "(cached) " >&6 |
15343 | else | |
15344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15345 | /* end confdefs.h. */ | |
212380e3 | 15346 | |
7083c021 AC |
15347 | int |
15348 | main () | |
15349 | { | |
2eff3833 | 15350 | |
7083c021 | 15351 | #ifndef __cplusplus |
2eff3833 | 15352 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 15353 | typedef int charset[2]; |
2eff3833 | 15354 | const charset cs = { 0, 0 }; |
7083c021 AC |
15355 | /* SunOS 4.1.1 cc rejects this. */ |
15356 | char const *const *pcpcc; | |
15357 | char **ppc; | |
15358 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15359 | struct point {int x, y;}; | |
15360 | static struct point const zero = {0,0}; | |
15361 | /* AIX XL C 1.02.0.0 rejects this. | |
15362 | It does not let you subtract one const X* pointer from another in | |
15363 | an arm of an if-expression whose if-part is not a constant | |
15364 | expression */ | |
15365 | const char *g = "string"; | |
15366 | pcpcc = &g + (g ? g-g : 0); | |
15367 | /* HPUX 7.0 cc rejects these. */ | |
15368 | ++pcpcc; | |
15369 | ppc = (char**) pcpcc; | |
15370 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
15371 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
15372 | char tx; | |
15373 | char *t = &tx; | |
7083c021 | 15374 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 15375 | |
7083c021 AC |
15376 | *t++ = 0; |
15377 | if (s) return 0; | |
15378 | } | |
15379 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15380 | int x[] = {25, 17}; | |
15381 | const int *foo = &x[0]; | |
15382 | ++foo; | |
15383 | } | |
15384 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15385 | typedef const int *iptr; | |
15386 | iptr p = 0; | |
15387 | ++p; | |
15388 | } | |
2eff3833 | 15389 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 15390 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
15391 | struct s { int j; const int *ap[3]; } bx; |
15392 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
15393 | } |
15394 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15395 | const int foo = 10; | |
15396 | if (!foo) return 0; | |
15397 | } | |
15398 | return !cs[0] && !zero.x; | |
15399 | #endif | |
212380e3 | 15400 | |
7083c021 AC |
15401 | ; |
15402 | return 0; | |
15403 | } | |
212380e3 | 15404 | _ACEOF |
7083c021 AC |
15405 | if ac_fn_c_try_compile "$LINENO"; then : |
15406 | ac_cv_c_const=yes | |
212380e3 | 15407 | else |
7083c021 | 15408 | ac_cv_c_const=no |
212380e3 | 15409 | fi |
631ef239 | 15410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15411 | fi |
7083c021 AC |
15412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
15413 | $as_echo "$ac_cv_c_const" >&6; } | |
15414 | if test $ac_cv_c_const = no; then | |
212380e3 | 15415 | |
7083c021 | 15416 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
15417 | |
15418 | fi | |
15419 | ||
7083c021 AC |
15420 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
15421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
15422 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 15423 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 15424 | $as_echo_n "(cached) " >&6 |
212380e3 | 15425 | else |
7083c021 AC |
15426 | ac_cv_c_bigendian=unknown |
15427 | # See if we're dealing with a universal compiler. | |
15428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15429 | /* end confdefs.h. */ | |
15430 | #ifndef __APPLE_CC__ | |
15431 | not a universal capable compiler | |
15432 | #endif | |
15433 | typedef int dummy; | |
15434 | ||
15435 | _ACEOF | |
15436 | if ac_fn_c_try_compile "$LINENO"; then : | |
15437 | ||
15438 | # Check for potential -arch flags. It is not universal unless | |
15439 | # there are at least two -arch flags with different values. | |
15440 | ac_arch= | |
15441 | ac_prev= | |
15442 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15443 | if test -n "$ac_prev"; then | |
15444 | case $ac_word in | |
15445 | i?86 | x86_64 | ppc | ppc64) | |
15446 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15447 | ac_arch=$ac_word | |
15448 | else | |
15449 | ac_cv_c_bigendian=universal | |
15450 | break | |
15451 | fi | |
15452 | ;; | |
15453 | esac | |
15454 | ac_prev= | |
15455 | elif test "x$ac_word" = "x-arch"; then | |
15456 | ac_prev=arch | |
15457 | fi | |
15458 | done | |
15459 | fi | |
15460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15461 | if test $ac_cv_c_bigendian = unknown; then | |
15462 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
15464 | /* end confdefs.h. */ |
15465 | #include <sys/types.h> | |
7083c021 | 15466 | #include <sys/param.h> |
212380e3 AC |
15467 | |
15468 | int | |
15469 | main () | |
15470 | { | |
7083c021 AC |
15471 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
15472 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15473 | && LITTLE_ENDIAN) | |
15474 | bogus endian macros | |
15475 | #endif | |
212380e3 AC |
15476 | |
15477 | ; | |
15478 | return 0; | |
15479 | } | |
15480 | _ACEOF | |
7083c021 | 15481 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 15482 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 15483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15484 | /* end confdefs.h. */ |
15485 | #include <sys/types.h> | |
7083c021 | 15486 | #include <sys/param.h> |
212380e3 AC |
15487 | |
15488 | int | |
15489 | main () | |
15490 | { | |
15491 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
15492 | not big endian |
15493 | #endif | |
212380e3 AC |
15494 | |
15495 | ; | |
15496 | return 0; | |
15497 | } | |
15498 | _ACEOF | |
7083c021 | 15499 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
15500 | ac_cv_c_bigendian=yes |
15501 | else | |
7083c021 | 15502 | ac_cv_c_bigendian=no |
212380e3 | 15503 | fi |
631ef239 | 15504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
15505 | fi |
15506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15507 | fi | |
15508 | if test $ac_cv_c_bigendian = unknown; then | |
15509 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15511 | /* end confdefs.h. */ | |
15512 | #include <limits.h> | |
212380e3 | 15513 | |
7083c021 AC |
15514 | int |
15515 | main () | |
15516 | { | |
15517 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15518 | bogus endian macros | |
15519 | #endif | |
15520 | ||
15521 | ; | |
15522 | return 0; | |
15523 | } | |
212380e3 | 15524 | _ACEOF |
7083c021 AC |
15525 | if ac_fn_c_try_compile "$LINENO"; then : |
15526 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15528 | /* end confdefs.h. */ |
7083c021 AC |
15529 | #include <limits.h> |
15530 | ||
212380e3 AC |
15531 | int |
15532 | main () | |
15533 | { | |
7083c021 AC |
15534 | #ifndef _BIG_ENDIAN |
15535 | not big endian | |
15536 | #endif | |
15537 | ||
212380e3 AC |
15538 | ; |
15539 | return 0; | |
15540 | } | |
15541 | _ACEOF | |
7083c021 | 15542 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 15543 | ac_cv_c_bigendian=yes |
7083c021 AC |
15544 | else |
15545 | ac_cv_c_bigendian=no | |
212380e3 | 15546 | fi |
7083c021 | 15547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15548 | fi |
7083c021 AC |
15549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15550 | fi | |
15551 | if test $ac_cv_c_bigendian = unknown; then | |
15552 | # Compile a test program. | |
15553 | if test "$cross_compiling" = yes; then : | |
15554 | # Try to guess by grepping values from an object file. | |
15555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15556 | /* end confdefs.h. */ | |
15557 | short int ascii_mm[] = | |
15558 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15559 | short int ascii_ii[] = | |
15560 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15561 | int use_ascii (int i) { | |
15562 | return ascii_mm[i] + ascii_ii[i]; | |
15563 | } | |
15564 | short int ebcdic_ii[] = | |
15565 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15566 | short int ebcdic_mm[] = | |
15567 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15568 | int use_ebcdic (int i) { | |
15569 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15570 | } | |
15571 | extern int foo; | |
631ef239 | 15572 | |
7083c021 AC |
15573 | int |
15574 | main () | |
15575 | { | |
15576 | return use_ascii (foo) == use_ebcdic (foo); | |
15577 | ; | |
15578 | return 0; | |
15579 | } | |
15580 | _ACEOF | |
15581 | if ac_fn_c_try_compile "$LINENO"; then : | |
15582 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15583 | ac_cv_c_bigendian=yes | |
15584 | fi | |
15585 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15586 | if test "$ac_cv_c_bigendian" = unknown; then | |
15587 | ac_cv_c_bigendian=no | |
15588 | else | |
15589 | # finding both strings is unlikely to happen, but who knows? | |
15590 | ac_cv_c_bigendian=unknown | |
15591 | fi | |
15592 | fi | |
212380e3 | 15593 | fi |
631ef239 | 15594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15595 | else |
7083c021 | 15596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15597 | /* end confdefs.h. */ |
631ef239 | 15598 | $ac_includes_default |
212380e3 AC |
15599 | int |
15600 | main () | |
15601 | { | |
631ef239 | 15602 | |
7083c021 AC |
15603 | /* Are we little or big endian? From Harbison&Steele. */ |
15604 | union | |
15605 | { | |
15606 | long int l; | |
15607 | char c[sizeof (long int)]; | |
15608 | } u; | |
15609 | u.l = 1; | |
15610 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
15611 | |
15612 | ; | |
15613 | return 0; | |
212380e3 AC |
15614 | } |
15615 | _ACEOF | |
7083c021 | 15616 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15617 | ac_cv_c_bigendian=no |
15618 | else | |
7083c021 | 15619 | ac_cv_c_bigendian=yes |
212380e3 | 15620 | fi |
7083c021 AC |
15621 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15622 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15623 | fi |
631ef239 | 15624 | |
7083c021 | 15625 | fi |
212380e3 | 15626 | fi |
7083c021 AC |
15627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15628 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15629 | case $ac_cv_c_bigendian in #( | |
15630 | yes) | |
15631 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15632 | ;; #( | |
15633 | no) | |
15634 | ;; #( | |
15635 | universal) | |
15636 | ||
15637 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
15638 | ||
15639 | ;; #( | |
15640 | *) | |
b6d0720c | 15641 | as_fn_error $? "unknown endianness |
7083c021 AC |
15642 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
15643 | esac | |
631ef239 | 15644 | |
212380e3 | 15645 | fi |
7083c021 | 15646 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 15647 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 15648 | |
7083c021 | 15649 | else |
212380e3 | 15650 | |
7083c021 AC |
15651 | cat >>confdefs.h <<_ACEOF |
15652 | #define pid_t int | |
15653 | _ACEOF | |
212380e3 | 15654 | |
212380e3 | 15655 | fi |
7083c021 AC |
15656 | |
15657 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 15658 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 15659 | |
212380e3 | 15660 | else |
7083c021 AC |
15661 | |
15662 | cat >>confdefs.h <<_ACEOF | |
15663 | #define size_t unsigned int | |
212380e3 | 15664 | _ACEOF |
7083c021 AC |
15665 | |
15666 | fi | |
15667 | ||
15668 | # The cast to long int works around a bug in the HP C Compiler | |
15669 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15670 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15671 | # This bug is HP SR number 8606223364. | |
15672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
15673 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 15674 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 15675 | $as_echo_n "(cached) " >&6 |
212380e3 | 15676 | else |
7083c021 AC |
15677 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
15678 | ||
15679 | else | |
15680 | if test "$ac_cv_type_short" = yes; then | |
15681 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
15683 | as_fn_error 77 "cannot compute sizeof (short) |
15684 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
15685 | else |
15686 | ac_cv_sizeof_short=0 | |
15687 | fi | |
15688 | fi | |
212380e3 | 15689 | |
212380e3 | 15690 | fi |
7083c021 AC |
15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
15692 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 15693 | |
212380e3 | 15694 | |
7083c021 AC |
15695 | |
15696 | cat >>confdefs.h <<_ACEOF | |
15697 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 15698 | _ACEOF |
7083c021 AC |
15699 | |
15700 | ||
15701 | # The cast to long int works around a bug in the HP C Compiler | |
15702 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15703 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15704 | # This bug is HP SR number 8606223364. | |
15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15706 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 15707 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
15708 | $as_echo_n "(cached) " >&6 |
15709 | else | |
15710 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
15711 | ||
15712 | else | |
15713 | if test "$ac_cv_type_int" = yes; then | |
15714 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15715 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
15716 | as_fn_error 77 "cannot compute sizeof (int) |
15717 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
15718 | else |
15719 | ac_cv_sizeof_int=0 | |
15720 | fi | |
15721 | fi | |
15722 | ||
15723 | fi | |
15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15725 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
15726 | ||
15727 | ||
15728 | ||
15729 | cat >>confdefs.h <<_ACEOF | |
15730 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 15731 | _ACEOF |
7083c021 AC |
15732 | |
15733 | ||
15734 | # The cast to long int works around a bug in the HP C Compiler | |
15735 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15736 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15737 | # This bug is HP SR number 8606223364. | |
15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15739 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 15740 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 15741 | $as_echo_n "(cached) " >&6 |
212380e3 | 15742 | else |
7083c021 | 15743 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 15744 | |
7083c021 AC |
15745 | else |
15746 | if test "$ac_cv_type_long" = yes; then | |
15747 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
15749 | as_fn_error 77 "cannot compute sizeof (long) |
15750 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
15751 | else |
15752 | ac_cv_sizeof_long=0 | |
15753 | fi | |
212380e3 | 15754 | fi |
631ef239 | 15755 | |
7083c021 AC |
15756 | fi |
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15758 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 15759 | |
631ef239 | 15760 | |
7083c021 AC |
15761 | |
15762 | cat >>confdefs.h <<_ACEOF | |
15763 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15764 | _ACEOF | |
15765 | ||
15766 | ||
15767 | # The cast to long int works around a bug in the HP C Compiler | |
15768 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15769 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15770 | # This bug is HP SR number 8606223364. | |
15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
15772 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 15773 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
15774 | $as_echo_n "(cached) " >&6 |
15775 | else | |
15776 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
15777 | ||
212380e3 | 15778 | else |
7083c021 AC |
15779 | if test "$ac_cv_type_long_long" = yes; then |
15780 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15781 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
15782 | as_fn_error 77 "cannot compute sizeof (long long) |
15783 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
15784 | else |
15785 | ac_cv_sizeof_long_long=0 | |
15786 | fi | |
212380e3 | 15787 | fi |
212380e3 AC |
15788 | |
15789 | fi | |
7083c021 AC |
15790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
15791 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
15792 | |
15793 | ||
15794 | ||
7083c021 AC |
15795 | cat >>confdefs.h <<_ACEOF |
15796 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15797 | _ACEOF | |
212380e3 | 15798 | |
212380e3 | 15799 | |
212380e3 | 15800 | |
7083c021 AC |
15801 | |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
15803 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 15804 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
15805 | $as_echo_n "(cached) " >&6 |
15806 | else | |
15807 | ac_func_search_save_LIBS=$LIBS | |
15808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15809 | /* end confdefs.h. */ |
7083c021 AC |
15810 | |
15811 | /* Override any GCC internal prototype to avoid an error. | |
15812 | Use char because int might match the return type of a GCC | |
15813 | builtin and then its argument prototype would still apply. */ | |
15814 | #ifdef __cplusplus | |
15815 | extern "C" | |
15816 | #endif | |
15817 | char socket (); | |
212380e3 AC |
15818 | int |
15819 | main () | |
15820 | { | |
7083c021 | 15821 | return socket (); |
212380e3 AC |
15822 | ; |
15823 | return 0; | |
15824 | } | |
15825 | _ACEOF | |
7083c021 AC |
15826 | for ac_lib in '' socket; do |
15827 | if test -z "$ac_lib"; then | |
15828 | ac_res="none required" | |
15829 | else | |
15830 | ac_res=-l$ac_lib | |
15831 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15832 | fi | |
15833 | if ac_fn_c_try_link "$LINENO"; then : | |
15834 | ac_cv_search_socket=$ac_res | |
15835 | fi | |
15836 | rm -f core conftest.err conftest.$ac_objext \ | |
15837 | conftest$ac_exeext | |
b6d0720c | 15838 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
15839 | break |
15840 | fi | |
15841 | done | |
b6d0720c | 15842 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
15843 | |
15844 | else | |
7083c021 AC |
15845 | ac_cv_search_socket=no |
15846 | fi | |
15847 | rm conftest.$ac_ext | |
15848 | LIBS=$ac_func_search_save_LIBS | |
15849 | fi | |
15850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
15851 | $as_echo "$ac_cv_search_socket" >&6; } | |
15852 | ac_res=$ac_cv_search_socket | |
15853 | if test "$ac_res" != no; then : | |
15854 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15855 | |
7083c021 | 15856 | else |
b6d0720c | 15857 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 15858 | fi |
631ef239 | 15859 | |
212380e3 | 15860 | |
7083c021 AC |
15861 | if test x"$SUN" = xyes; then |
15862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
15863 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 15864 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
15865 | $as_echo_n "(cached) " >&6 |
15866 | else | |
15867 | ac_func_search_save_LIBS=$LIBS | |
15868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15869 | /* end confdefs.h. */ |
7083c021 AC |
15870 | |
15871 | /* Override any GCC internal prototype to avoid an error. | |
15872 | Use char because int might match the return type of a GCC | |
15873 | builtin and then its argument prototype would still apply. */ | |
15874 | #ifdef __cplusplus | |
15875 | extern "C" | |
15876 | #endif | |
15877 | char inet_ntoa (); | |
212380e3 AC |
15878 | int |
15879 | main () | |
15880 | { | |
7083c021 | 15881 | return inet_ntoa (); |
212380e3 AC |
15882 | ; |
15883 | return 0; | |
15884 | } | |
15885 | _ACEOF | |
7083c021 AC |
15886 | for ac_lib in '' nsl; do |
15887 | if test -z "$ac_lib"; then | |
15888 | ac_res="none required" | |
15889 | else | |
15890 | ac_res=-l$ac_lib | |
15891 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15892 | fi | |
15893 | if ac_fn_c_try_link "$LINENO"; then : | |
15894 | ac_cv_search_inet_ntoa=$ac_res | |
15895 | fi | |
15896 | rm -f core conftest.err conftest.$ac_objext \ | |
15897 | conftest$ac_exeext | |
b6d0720c | 15898 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
15899 | break |
15900 | fi | |
15901 | done | |
b6d0720c | 15902 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
15903 | |
15904 | else | |
7083c021 AC |
15905 | ac_cv_search_inet_ntoa=no |
15906 | fi | |
15907 | rm conftest.$ac_ext | |
15908 | LIBS=$ac_func_search_save_LIBS | |
15909 | fi | |
15910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
15911 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
15912 | ac_res=$ac_cv_search_inet_ntoa | |
15913 | if test "$ac_res" != no; then : | |
15914 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15915 | |
7083c021 | 15916 | else |
b6d0720c | 15917 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 15918 | fi |
631ef239 | 15919 | |
7083c021 | 15920 | fi |
212380e3 | 15921 | |
7083c021 AC |
15922 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
15923 | #include <sys/socket.h> | |
15924 | " | |
b6d0720c | 15925 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
15926 | |
15927 | else | |
15928 | ||
7083c021 | 15929 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 15930 | |
7083c021 | 15931 | fi |
212380e3 AC |
15932 | |
15933 | ||
7083c021 AC |
15934 | # Check whether --enable-ipv6 was given. |
15935 | if test "${enable_ipv6+set}" = set; then : | |
15936 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 15937 | else |
7083c021 AC |
15938 | ipv6=no |
15939 | fi | |
212380e3 | 15940 | |
212380e3 | 15941 | |
7083c021 AC |
15942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
15943 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 15944 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15945 | $as_echo_n "(cached) " >&6 |
15946 | else | |
15947 | ac_func_search_save_LIBS=$LIBS | |
15948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15949 | /* end confdefs.h. */ | |
212380e3 | 15950 | |
631ef239 AC |
15951 | /* Override any GCC internal prototype to avoid an error. |
15952 | Use char because int might match the return type of a GCC | |
15953 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15954 | #ifdef __cplusplus |
15955 | extern "C" | |
212380e3 | 15956 | #endif |
7083c021 | 15957 | char crypt (); |
212380e3 AC |
15958 | int |
15959 | main () | |
15960 | { | |
7083c021 | 15961 | return crypt (); |
212380e3 AC |
15962 | ; |
15963 | return 0; | |
15964 | } | |
15965 | _ACEOF | |
7083c021 AC |
15966 | for ac_lib in '' crypt descrypt; do |
15967 | if test -z "$ac_lib"; then | |
15968 | ac_res="none required" | |
15969 | else | |
15970 | ac_res=-l$ac_lib | |
15971 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15972 | fi | |
15973 | if ac_fn_c_try_link "$LINENO"; then : | |
15974 | ac_cv_search_crypt=$ac_res | |
15975 | fi | |
15976 | rm -f core conftest.err conftest.$ac_objext \ | |
15977 | conftest$ac_exeext | |
b6d0720c | 15978 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15979 | break |
15980 | fi | |
15981 | done | |
b6d0720c | 15982 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 15983 | |
212380e3 | 15984 | else |
7083c021 AC |
15985 | ac_cv_search_crypt=no |
15986 | fi | |
15987 | rm conftest.$ac_ext | |
15988 | LIBS=$ac_func_search_save_LIBS | |
15989 | fi | |
15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15991 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15992 | ac_res=$ac_cv_search_crypt | |
15993 | if test "$ac_res" != no; then : | |
15994 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15995 | |
212380e3 | 15996 | fi |
631ef239 | 15997 | |
7083c021 AC |
15998 | |
15999 | CRYPT_LIB=$ac_cv_search_crypt | |
16000 | ||
16001 | if test "$CRYPT_LIB" = "none required"; then | |
16002 | unset CRYPT_LIB | |
16003 | elif test "$CRYPT_LIB" = no; then | |
16004 | unset CRYPT_LIB | |
212380e3 | 16005 | fi |
7083c021 AC |
16006 | |
16007 | ||
16008 | ||
16009 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
16010 | VICONF=viconf | |
16011 | else | |
16012 | VICONF="" | |
16013 | fi | |
16014 | ||
16015 | ||
16016 | ||
16017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
16018 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b6d0720c | 16019 | if ${gcc_cv_header_string+:} false; then : |
7083c021 AC |
16020 | $as_echo_n "(cached) " >&6 |
16021 | else | |
16022 | ||
16023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16024 | /* end confdefs.h. */ | |
16025 | #include <string.h> | |
16026 | #include <strings.h> | |
212380e3 | 16027 | _ACEOF |
7083c021 AC |
16028 | if ac_fn_c_try_compile "$LINENO"; then : |
16029 | gcc_cv_header_string=yes | |
16030 | else | |
16031 | gcc_cv_header_string=no | |
16032 | fi | |
16033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
16034 | |
16035 | fi | |
7083c021 AC |
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
16037 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 16038 | |
7083c021 AC |
16039 | if test "$gcc_cv_header_string" = "yes"; then |
16040 | ||
16041 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
16042 | ||
16043 | fi | |
212380e3 | 16044 | |
7083c021 AC |
16045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
16046 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 16047 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
16048 | $as_echo_n "(cached) " >&6 |
16049 | else | |
16050 | ac_cv_c_bigendian=unknown | |
16051 | # See if we're dealing with a universal compiler. | |
16052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16053 | /* end confdefs.h. */ | |
16054 | #ifndef __APPLE_CC__ | |
16055 | not a universal capable compiler | |
16056 | #endif | |
16057 | typedef int dummy; | |
16058 | ||
16059 | _ACEOF | |
16060 | if ac_fn_c_try_compile "$LINENO"; then : | |
16061 | ||
16062 | # Check for potential -arch flags. It is not universal unless | |
16063 | # there are at least two -arch flags with different values. | |
16064 | ac_arch= | |
16065 | ac_prev= | |
16066 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
16067 | if test -n "$ac_prev"; then | |
16068 | case $ac_word in | |
16069 | i?86 | x86_64 | ppc | ppc64) | |
16070 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
16071 | ac_arch=$ac_word | |
16072 | else | |
16073 | ac_cv_c_bigendian=universal | |
16074 | break | |
16075 | fi | |
16076 | ;; | |
16077 | esac | |
16078 | ac_prev= | |
16079 | elif test "x$ac_word" = "x-arch"; then | |
16080 | ac_prev=arch | |
16081 | fi | |
16082 | done | |
212380e3 | 16083 | fi |
7083c021 AC |
16084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16085 | if test $ac_cv_c_bigendian = unknown; then | |
16086 | # See if sys/param.h defines the BYTE_ORDER macro. | |
16087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16088 | /* end confdefs.h. */ | |
16089 | #include <sys/types.h> | |
16090 | #include <sys/param.h> | |
16091 | ||
16092 | int | |
16093 | main () | |
16094 | { | |
16095 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
16096 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
16097 | && LITTLE_ENDIAN) | |
16098 | bogus endian macros | |
16099 | #endif | |
16100 | ||
16101 | ; | |
16102 | return 0; | |
16103 | } | |
16104 | _ACEOF | |
16105 | if ac_fn_c_try_compile "$LINENO"; then : | |
16106 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
16107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16108 | /* end confdefs.h. */ | |
16109 | #include <sys/types.h> | |
16110 | #include <sys/param.h> | |
16111 | ||
16112 | int | |
16113 | main () | |
16114 | { | |
16115 | #if BYTE_ORDER != BIG_ENDIAN | |
16116 | not big endian | |
16117 | #endif | |
212380e3 | 16118 | |
7083c021 AC |
16119 | ; |
16120 | return 0; | |
16121 | } | |
16122 | _ACEOF | |
16123 | if ac_fn_c_try_compile "$LINENO"; then : | |
16124 | ac_cv_c_bigendian=yes | |
212380e3 | 16125 | else |
7083c021 AC |
16126 | ac_cv_c_bigendian=no |
16127 | fi | |
16128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16129 | fi | |
16130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16131 | fi | |
16132 | if test $ac_cv_c_bigendian = unknown; then | |
16133 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
16134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16135 | /* end confdefs.h. */ | |
16136 | #include <limits.h> | |
16137 | ||
16138 | int | |
16139 | main () | |
16140 | { | |
16141 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
16142 | bogus endian macros | |
16143 | #endif | |
16144 | ||
16145 | ; | |
16146 | return 0; | |
16147 | } | |
212380e3 | 16148 | _ACEOF |
7083c021 AC |
16149 | if ac_fn_c_try_compile "$LINENO"; then : |
16150 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
16151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 16152 | /* end confdefs.h. */ |
7083c021 AC |
16153 | #include <limits.h> |
16154 | ||
212380e3 AC |
16155 | int |
16156 | main () | |
16157 | { | |
7083c021 AC |
16158 | #ifndef _BIG_ENDIAN |
16159 | not big endian | |
16160 | #endif | |
16161 | ||
212380e3 AC |
16162 | ; |
16163 | return 0; | |
16164 | } | |
16165 | _ACEOF | |
7083c021 AC |
16166 | if ac_fn_c_try_compile "$LINENO"; then : |
16167 | ac_cv_c_bigendian=yes | |
212380e3 | 16168 | else |
7083c021 | 16169 | ac_cv_c_bigendian=no |
212380e3 | 16170 | fi |
631ef239 | 16171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 16172 | fi |
7083c021 AC |
16173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16174 | fi | |
16175 | if test $ac_cv_c_bigendian = unknown; then | |
16176 | # Compile a test program. | |
16177 | if test "$cross_compiling" = yes; then : | |
16178 | # Try to guess by grepping values from an object file. | |
16179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16180 | /* end confdefs.h. */ | |
16181 | short int ascii_mm[] = | |
16182 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
16183 | short int ascii_ii[] = | |
16184 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
16185 | int use_ascii (int i) { | |
16186 | return ascii_mm[i] + ascii_ii[i]; | |
16187 | } | |
16188 | short int ebcdic_ii[] = | |
16189 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
16190 | short int ebcdic_mm[] = | |
16191 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
16192 | int use_ebcdic (int i) { | |
16193 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
16194 | } | |
16195 | extern int foo; | |
212380e3 | 16196 | |
7083c021 AC |
16197 | int |
16198 | main () | |
16199 | { | |
16200 | return use_ascii (foo) == use_ebcdic (foo); | |
16201 | ; | |
16202 | return 0; | |
16203 | } | |
212380e3 | 16204 | _ACEOF |
7083c021 AC |
16205 | if ac_fn_c_try_compile "$LINENO"; then : |
16206 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
16207 | ac_cv_c_bigendian=yes | |
16208 | fi | |
16209 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
16210 | if test "$ac_cv_c_bigendian" = unknown; then | |
16211 | ac_cv_c_bigendian=no | |
16212 | else | |
16213 | # finding both strings is unlikely to happen, but who knows? | |
16214 | ac_cv_c_bigendian=unknown | |
16215 | fi | |
16216 | fi | |
16217 | fi | |
16218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16219 | else | |
16220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
16221 | /* end confdefs.h. */ |
16222 | $ac_includes_default | |
16223 | int | |
16224 | main () | |
16225 | { | |
7083c021 AC |
16226 | |
16227 | /* Are we little or big endian? From Harbison&Steele. */ | |
16228 | union | |
16229 | { | |
16230 | long int l; | |
16231 | char c[sizeof (long int)]; | |
16232 | } u; | |
16233 | u.l = 1; | |
16234 | return u.c[sizeof (long int) - 1] == 1; | |
16235 | ||
212380e3 AC |
16236 | ; |
16237 | return 0; | |
16238 | } | |
16239 | _ACEOF | |
7083c021 AC |
16240 | if ac_fn_c_try_run "$LINENO"; then : |
16241 | ac_cv_c_bigendian=no | |
212380e3 | 16242 | else |
7083c021 | 16243 | ac_cv_c_bigendian=yes |
212380e3 | 16244 | fi |
7083c021 AC |
16245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16246 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 16247 | fi |
212380e3 | 16248 | |
7083c021 AC |
16249 | fi |
16250 | fi | |
16251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
16252 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
16253 | case $ac_cv_c_bigendian in #( | |
16254 | yes) | |
16255 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
16256 | ;; #( | |
16257 | no) | |
16258 | ;; #( | |
16259 | universal) | |
212380e3 | 16260 | |
7083c021 | 16261 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 16262 | |
7083c021 AC |
16263 | ;; #( |
16264 | *) | |
b6d0720c | 16265 | as_fn_error $? "unknown endianness |
7083c021 AC |
16266 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
16267 | esac | |
212380e3 | 16268 | |
212380e3 | 16269 | |
7083c021 | 16270 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 16271 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 16272 | |
7083c021 | 16273 | else |
b6d0720c | 16274 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 16275 | fi |
212380e3 AC |
16276 | |
16277 | ||
212380e3 AC |
16278 | |
16279 | ||
7083c021 | 16280 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 16281 | |
7083c021 AC |
16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
16283 | $as_echo_n "checking for strlcpy... " >&6; } | |
16284 | save_CFLAGS=$CFLAGS | |
16285 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 16286 | |
7083c021 | 16287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 16288 | /* end confdefs.h. */ |
7083c021 AC |
16289 | #include <string.h> |
16290 | #include <stdlib.h> | |
212380e3 AC |
16291 | int |
16292 | main () | |
16293 | { | |
7083c021 AC |
16294 | char *a = malloc(6); |
16295 | strlcpy(a, "hello", 6); | |
16296 | ||
212380e3 AC |
16297 | ; |
16298 | return 0; | |
16299 | } | |
16300 | _ACEOF | |
7083c021 AC |
16301 | if ac_fn_c_try_link "$LINENO"; then : |
16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16303 | $as_echo "yes" >&6; } | |
212380e3 | 16304 | |
7083c021 | 16305 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 16306 | |
212380e3 | 16307 | else |
7083c021 AC |
16308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16309 | $as_echo "no" >&6; } | |
212380e3 | 16310 | |
7083c021 AC |
16311 | fi |
16312 | rm -f core conftest.err conftest.$ac_objext \ | |
16313 | conftest$ac_exeext conftest.$ac_ext | |
16314 | ||
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
16316 | $as_echo_n "checking for strlcat... " >&6; } | |
16317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 16318 | /* end confdefs.h. */ |
7083c021 AC |
16319 | #include <string.h> |
16320 | #include <stdlib.h> | |
212380e3 AC |
16321 | int |
16322 | main () | |
16323 | { | |
7083c021 AC |
16324 | char *a = malloc(6); |
16325 | a[0] = '\0'; | |
16326 | strlcat(a, "hello", 6); | |
16327 | ||
212380e3 AC |
16328 | ; |
16329 | return 0; | |
16330 | } | |
16331 | _ACEOF | |
7083c021 AC |
16332 | if ac_fn_c_try_link "$LINENO"; then : |
16333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16334 | $as_echo "yes" >&6; } | |
631ef239 | 16335 | |
7083c021 | 16336 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 16337 | |
7083c021 AC |
16338 | else |
16339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16340 | $as_echo "no" >&6; } | |
212380e3 | 16341 | |
7083c021 AC |
16342 | fi |
16343 | rm -f core conftest.err conftest.$ac_objext \ | |
16344 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 16345 | |
7083c021 | 16346 | CFLAGS=$save_CFLAGS |
212380e3 AC |
16347 | |
16348 | else | |
16349 | ||
212380e3 | 16350 | |
7083c021 AC |
16351 | for ac_func in strlcat strlcpy |
16352 | do : | |
16353 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16354 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 16355 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
16356 | cat >>confdefs.h <<_ACEOF |
16357 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
16358 | _ACEOF |
16359 | ||
212380e3 | 16360 | fi |
7083c021 | 16361 | done |
212380e3 AC |
16362 | |
16363 | ||
16364 | fi | |
16365 | ||
7083c021 | 16366 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 16367 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 16368 | |
212380e3 | 16369 | else |
212380e3 | 16370 | |
7083c021 | 16371 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 16372 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 16373 | |
631ef239 | 16374 | |
7083c021 | 16375 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 16376 | |
212380e3 | 16377 | |
7083c021 | 16378 | else |
212380e3 | 16379 | |
7083c021 AC |
16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
16381 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 16382 | |
7083c021 | 16383 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 16384 | |
212380e3 | 16385 | |
212380e3 | 16386 | fi |
631ef239 | 16387 | |
7083c021 | 16388 | |
212380e3 | 16389 | fi |
7083c021 AC |
16390 | |
16391 | ||
16392 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 16393 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 16394 | |
212380e3 AC |
16395 | else |
16396 | ||
7083c021 | 16397 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 16398 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 16399 | |
7083c021 AC |
16400 | |
16401 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
16402 | |
16403 | ||
212380e3 | 16404 | else |
212380e3 | 16405 | |
7083c021 AC |
16406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
16407 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 16408 | |
7083c021 | 16409 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 16410 | |
7083c021 AC |
16411 | |
16412 | fi | |
212380e3 AC |
16413 | |
16414 | ||
16415 | fi | |
16416 | ||
16417 | ||
7083c021 AC |
16418 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
16419 | #include <netinet/in.h> | |
16420 | " | |
b6d0720c | 16421 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 16422 | |
7083c021 | 16423 | else |
212380e3 | 16424 | |
7083c021 | 16425 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 16426 | |
7083c021 | 16427 | fi |
212380e3 AC |
16428 | |
16429 | ||
7083c021 AC |
16430 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
16431 | #include <sys/socket.h> | |
16432 | " | |
b6d0720c | 16433 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 16434 | |
212380e3 | 16435 | else |
212380e3 | 16436 | |
7083c021 | 16437 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 16438 | |
7083c021 | 16439 | fi |
212380e3 | 16440 | |
212380e3 | 16441 | |
7083c021 | 16442 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 16443 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 16444 | |
7083c021 AC |
16445 | cat >>confdefs.h <<_ACEOF |
16446 | #define HAVE_UINTPTR_T 1 | |
16447 | _ACEOF | |
212380e3 | 16448 | |
631ef239 | 16449 | |
212380e3 | 16450 | fi |
7083c021 AC |
16451 | |
16452 | ||
16453 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
16454 | do : | |
16455 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16456 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 16457 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 16458 | cat >>confdefs.h <<_ACEOF |
7083c021 | 16459 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
16460 | _ACEOF |
16461 | ||
16462 | fi | |
16463 | done | |
16464 | ||
16465 | ||
16466 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
16467 | # for constant arguments. Useless! | |
7083c021 AC |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
16469 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 16470 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 16471 | $as_echo_n "(cached) " >&6 |
212380e3 | 16472 | else |
7083c021 | 16473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16474 | /* end confdefs.h. */ |
16475 | #include <alloca.h> | |
16476 | int | |
16477 | main () | |
16478 | { | |
16479 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 16480 | if (p) return 0; |
212380e3 AC |
16481 | ; |
16482 | return 0; | |
16483 | } | |
16484 | _ACEOF | |
7083c021 | 16485 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16486 | ac_cv_working_alloca_h=yes |
16487 | else | |
7083c021 | 16488 | ac_cv_working_alloca_h=no |
212380e3 | 16489 | fi |
7083c021 AC |
16490 | rm -f core conftest.err conftest.$ac_objext \ |
16491 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 16492 | fi |
7083c021 AC |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
16494 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
16495 | if test $ac_cv_working_alloca_h = yes; then |
16496 | ||
7083c021 | 16497 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
16498 | |
16499 | fi | |
16500 | ||
7083c021 AC |
16501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
16502 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 16503 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 16504 | $as_echo_n "(cached) " >&6 |
212380e3 | 16505 | else |
7083c021 | 16506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16507 | /* end confdefs.h. */ |
16508 | #ifdef __GNUC__ | |
16509 | # define alloca __builtin_alloca | |
16510 | #else | |
16511 | # ifdef _MSC_VER | |
16512 | # include <malloc.h> | |
16513 | # define alloca _alloca | |
16514 | # else | |
631ef239 | 16515 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
16516 | # include <alloca.h> |
16517 | # else | |
16518 | # ifdef _AIX | |
16519 | #pragma alloca | |
16520 | # else | |
16521 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 16522 | void *alloca (size_t); |
212380e3 AC |
16523 | # endif |
16524 | # endif | |
16525 | # endif | |
16526 | # endif | |
16527 | #endif | |
16528 | ||
16529 | int | |
16530 | main () | |
16531 | { | |
16532 | char *p = (char *) alloca (1); | |
631ef239 | 16533 | if (p) return 0; |
212380e3 AC |
16534 | ; |
16535 | return 0; | |
16536 | } | |
16537 | _ACEOF | |
7083c021 | 16538 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16539 | ac_cv_func_alloca_works=yes |
16540 | else | |
7083c021 | 16541 | ac_cv_func_alloca_works=no |
212380e3 | 16542 | fi |
7083c021 AC |
16543 | rm -f core conftest.err conftest.$ac_objext \ |
16544 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 16545 | fi |
7083c021 AC |
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
16547 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
16548 | |
16549 | if test $ac_cv_func_alloca_works = yes; then | |
16550 | ||
7083c021 | 16551 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
16552 | |
16553 | else | |
16554 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
16555 | # that cause trouble. Some versions do not even contain alloca or | |
16556 | # contain a buggy version. If you still want to use their alloca, | |
16557 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
16558 | ||
631ef239 | 16559 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 16560 | |
7083c021 | 16561 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
16562 | |
16563 | ||
7083c021 AC |
16564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
16565 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 16566 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 16567 | $as_echo_n "(cached) " >&6 |
212380e3 | 16568 | else |
7083c021 | 16569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 16570 | /* end confdefs.h. */ |
631ef239 | 16571 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
16572 | webecray |
16573 | #else | |
16574 | wenotbecray | |
16575 | #endif | |
16576 | ||
16577 | _ACEOF | |
16578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 16579 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
16580 | ac_cv_os_cray=yes |
16581 | else | |
16582 | ac_cv_os_cray=no | |
16583 | fi | |
16584 | rm -f conftest* | |
16585 | ||
16586 | fi | |
7083c021 AC |
16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
16588 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
16589 | if test $ac_cv_os_cray = yes; then |
16590 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
16591 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16592 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 16593 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
16594 | |
16595 | cat >>confdefs.h <<_ACEOF | |
16596 | #define CRAY_STACKSEG_END $ac_func | |
16597 | _ACEOF | |
16598 | ||
16599 | break | |
16600 | fi | |
16601 | ||
16602 | done | |
16603 | fi | |
16604 | ||
7083c021 AC |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
16606 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 16607 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 16608 | $as_echo_n "(cached) " >&6 |
212380e3 | 16609 | else |
7083c021 | 16610 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
16611 | ac_cv_c_stack_direction=0 |
16612 | else | |
7083c021 | 16613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 16614 | /* end confdefs.h. */ |
631ef239 | 16615 | $ac_includes_default |
212380e3 | 16616 | int |
2eff3833 | 16617 | find_stack_direction (int *addr, int depth) |
212380e3 | 16618 | { |
2eff3833 JT |
16619 | int dir, dummy = 0; |
16620 | if (! addr) | |
16621 | addr = &dummy; | |
16622 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
16623 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
16624 | return dir + dummy; | |
212380e3 AC |
16625 | } |
16626 | ||
16627 | int | |
2eff3833 | 16628 | main (int argc, char **argv) |
212380e3 | 16629 | { |
2eff3833 | 16630 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
16631 | } |
16632 | _ACEOF | |
7083c021 | 16633 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
16634 | ac_cv_c_stack_direction=1 |
16635 | else | |
7083c021 | 16636 | ac_cv_c_stack_direction=-1 |
212380e3 | 16637 | fi |
7083c021 AC |
16638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16639 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 16640 | fi |
631ef239 | 16641 | |
212380e3 | 16642 | fi |
7083c021 AC |
16643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
16644 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
16645 | cat >>confdefs.h <<_ACEOF |
16646 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
16647 | _ACEOF | |
16648 | ||
16649 | ||
16650 | fi | |
16651 | ||
16652 | ||
16653 | ||
7083c021 | 16654 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 16655 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 16656 | |
212380e3 | 16657 | else |
7083c021 AC |
16658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
16659 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 16660 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 16661 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16662 | else |
16663 | ac_check_lib_save_LIBS=$LIBS | |
16664 | LIBS="-lrt $LIBS" | |
7083c021 | 16665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16666 | /* end confdefs.h. */ |
16667 | ||
631ef239 AC |
16668 | /* Override any GCC internal prototype to avoid an error. |
16669 | Use char because int might match the return type of a GCC | |
16670 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
16671 | #ifdef __cplusplus |
16672 | extern "C" | |
16673 | #endif | |
212380e3 AC |
16674 | char nanosleep (); |
16675 | int | |
16676 | main () | |
16677 | { | |
631ef239 | 16678 | return nanosleep (); |
212380e3 AC |
16679 | ; |
16680 | return 0; | |
16681 | } | |
16682 | _ACEOF | |
7083c021 | 16683 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16684 | ac_cv_lib_rt_nanosleep=yes |
16685 | else | |
7083c021 | 16686 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 16687 | fi |
7083c021 AC |
16688 | rm -f core conftest.err conftest.$ac_objext \ |
16689 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
16690 | LIBS=$ac_check_lib_save_LIBS |
16691 | fi | |
7083c021 AC |
16692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
16693 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 16694 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
16695 | LIBS="${LIBS} -lrt" |
16696 | else | |
7083c021 AC |
16697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
16698 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 16699 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 16700 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16701 | else |
16702 | ac_check_lib_save_LIBS=$LIBS | |
16703 | LIBS="-lposix4 $LIBS" | |
7083c021 | 16704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16705 | /* end confdefs.h. */ |
16706 | ||
631ef239 AC |
16707 | /* Override any GCC internal prototype to avoid an error. |
16708 | Use char because int might match the return type of a GCC | |
16709 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
16710 | #ifdef __cplusplus |
16711 | extern "C" | |
16712 | #endif | |
212380e3 AC |
16713 | char nanosleep (); |
16714 | int | |
16715 | main () | |
16716 | { | |
631ef239 | 16717 | return nanosleep (); |
212380e3 AC |
16718 | ; |
16719 | return 0; | |
16720 | } | |
16721 | _ACEOF | |
7083c021 | 16722 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16723 | ac_cv_lib_posix4_nanosleep=yes |
16724 | else | |
7083c021 | 16725 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 16726 | fi |
7083c021 AC |
16727 | rm -f core conftest.err conftest.$ac_objext \ |
16728 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
16729 | LIBS=$ac_check_lib_save_LIBS |
16730 | fi | |
7083c021 AC |
16731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
16732 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 16733 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
16734 | LIBS="${LIBS} -lposix4" |
16735 | ||
16736 | fi | |
16737 | ||
16738 | fi | |
16739 | ||
16740 | fi | |
16741 | ||
16742 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
16743 | then | |
7083c021 AC |
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
16745 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
16746 | else |
16747 | ||
7083c021 | 16748 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
16749 | |
16750 | fi | |
16751 | ||
7083c021 AC |
16752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
16753 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 16754 | # Check whether --enable-openssl was given. |
7083c021 | 16755 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 16756 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
16757 | else |
16758 | cf_enable_openssl="auto" | |
631ef239 AC |
16759 | fi |
16760 | ||
212380e3 AC |
16761 | |
16762 | if test "$cf_enable_openssl" != "no" ; then | |
16763 | cf_openssl_basedir="" | |
16764 | if test "$cf_enable_openssl" != "auto" && | |
16765 | test "$cf_enable_openssl" != "yes" ; then | |
16766 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
16767 | else | |
16768 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
16769 | /usr/local/openssl ; do | |
16770 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
16771 | cf_openssl_basedir="${dirs}" | |
16772 | break | |
16773 | fi | |
16774 | done | |
16775 | unset dirs | |
16776 | fi | |
16777 | if test ! -z "$cf_openssl_basedir"; then | |
16778 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
16779 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
16780 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
16781 | else | |
16782 | cf_openssl_basedir="" | |
16783 | fi | |
16784 | else | |
16785 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
16786 | cf_openssl_basedir="/usr" | |
16787 | fi | |
16788 | fi | |
16789 | ||
16790 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
16792 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
16793 | cf_enable_openssl="yes" |
16794 | else | |
7083c021 AC |
16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
16796 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
16797 | cf_enable_openssl="no" |
16798 | fi | |
16799 | unset cf_openssl_basedir | |
16800 | else | |
7083c021 AC |
16801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
16802 | $as_echo "disabled" >&6; } | |
212380e3 AC |
16803 | fi |
16804 | ||
16805 | save_CPPFLAGS="$CPPFLAGS" | |
16806 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
16807 | save_LIBS="$LIBS" | |
16808 | LIBS="$LIBS $SSL_LIBS" | |
16809 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
16810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
16811 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
16812 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
16813 | cf_openssl_version_ok=no |
16814 | else | |
7083c021 | 16815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16816 | /* end confdefs.h. */ |
16817 | #include <openssl/opensslv.h> | |
16818 | #include <stdlib.h> | |
16819 | int | |
16820 | main () | |
16821 | { | |
16822 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
16823 | exit(0); else exit(1); | |
16824 | ; | |
16825 | return 0; | |
16826 | } | |
16827 | _ACEOF | |
7083c021 | 16828 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
16829 | cf_openssl_version_ok=yes |
16830 | else | |
7083c021 | 16831 | cf_openssl_version_ok=no |
212380e3 | 16832 | fi |
7083c021 AC |
16833 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16834 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
16835 | fi |
16836 | ||
631ef239 | 16837 | |
212380e3 | 16838 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
16839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
16840 | $as_echo "found" >&6; } | |
212380e3 AC |
16841 | |
16842 | ENCSPEED=encspeed | |
16843 | ||
16844 | ||
16845 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
16846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
16847 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 16848 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 16849 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16850 | else |
16851 | ac_check_lib_save_LIBS=$LIBS | |
16852 | LIBS="-lcrypto $LIBS" | |
7083c021 | 16853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16854 | /* end confdefs.h. */ |
16855 | ||
631ef239 AC |
16856 | /* Override any GCC internal prototype to avoid an error. |
16857 | Use char because int might match the return type of a GCC | |
16858 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
16859 | #ifdef __cplusplus |
16860 | extern "C" | |
16861 | #endif | |
212380e3 AC |
16862 | char RSA_free (); |
16863 | int | |
16864 | main () | |
16865 | { | |
631ef239 | 16866 | return RSA_free (); |
212380e3 AC |
16867 | ; |
16868 | return 0; | |
16869 | } | |
16870 | _ACEOF | |
7083c021 | 16871 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16872 | ac_cv_lib_crypto_RSA_free=yes |
16873 | else | |
7083c021 | 16874 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 16875 | fi |
7083c021 AC |
16876 | rm -f core conftest.err conftest.$ac_objext \ |
16877 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
16878 | LIBS=$ac_check_lib_save_LIBS |
16879 | fi | |
7083c021 AC |
16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
16881 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 16882 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
16883 | cat >>confdefs.h <<_ACEOF |
16884 | #define HAVE_LIBCRYPTO 1 | |
16885 | _ACEOF | |
16886 | ||
16887 | LIBS="-lcrypto $LIBS" | |
16888 | ||
16889 | fi | |
16890 | ||
16891 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
16892 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
16893 | else | |
7083c021 AC |
16894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
16895 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
16896 | fi |
16897 | fi | |
16898 | ||
16899 | CPPFLAGS="$save_CPPFLAGS" | |
16900 | LIBS="$save_LIBS" | |
16901 | ||
16902 | ||
16903 | ||
16904 | ||
16905 | ||
631ef239 | 16906 | # Check whether --with-zlib-path was given. |
7083c021 | 16907 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
16908 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
16909 | fi | |
212380e3 | 16910 | |
7083c021 AC |
16911 | |
16912 | # Check whether --enable-zlib was given. | |
16913 | if test "${enable_zlib+set}" = set; then : | |
16914 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 16915 | else |
7083c021 | 16916 | zlib=yes |
212380e3 | 16917 | fi |
212380e3 | 16918 | |
212380e3 | 16919 | |
7083c021 AC |
16920 | if test "$zlib" = yes; then |
16921 | ||
16922 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 16923 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
16924 | |
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
16926 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 16927 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 16928 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16929 | else |
16930 | ac_check_lib_save_LIBS=$LIBS | |
16931 | LIBS="-lz $LIBS" | |
7083c021 | 16932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16933 | /* end confdefs.h. */ |
16934 | ||
631ef239 AC |
16935 | /* Override any GCC internal prototype to avoid an error. |
16936 | Use char because int might match the return type of a GCC | |
16937 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
16938 | #ifdef __cplusplus |
16939 | extern "C" | |
16940 | #endif | |
212380e3 AC |
16941 | char zlibVersion (); |
16942 | int | |
16943 | main () | |
16944 | { | |
631ef239 | 16945 | return zlibVersion (); |
212380e3 AC |
16946 | ; |
16947 | return 0; | |
16948 | } | |
16949 | _ACEOF | |
7083c021 | 16950 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16951 | ac_cv_lib_z_zlibVersion=yes |
16952 | else | |
7083c021 | 16953 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 16954 | fi |
7083c021 AC |
16955 | rm -f core conftest.err conftest.$ac_objext \ |
16956 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
16957 | LIBS=$ac_check_lib_save_LIBS |
16958 | fi | |
7083c021 AC |
16959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
16960 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 16961 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
16962 | |
16963 | ZLIB_LD=-lz | |
16964 | ||
16965 | ||
7083c021 | 16966 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
16967 | |
16968 | ||
16969 | else | |
16970 | zlib=no | |
16971 | fi | |
16972 | ||
16973 | ||
16974 | else | |
16975 | zlib=no | |
16976 | fi | |
16977 | ||
16978 | ||
16979 | ||
497e30a0 LS |
16980 | fi |
16981 | ||
a6ef3156 LS |
16982 | |
16983 | # Check whether --with-shared-sqlite was given. | |
16984 | if test "${with_shared_sqlite+set}" = set; then : | |
16985 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
16986 | else |
16987 | shared_sqlite=no | |
16988 | fi | |
16989 | ||
16990 | ||
16991 | if test "$shared_sqlite" = yes; then | |
16992 | ||
cf1001a7 | 16993 | |
a5471f24 LS |
16994 | |
16995 | ||
16996 | ||
16997 | ||
16998 | ||
16999 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
17000 | if test -n "$ac_tool_prefix"; then | |
17001 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
17002 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17004 | $as_echo_n "checking for $ac_word... " >&6; } | |
17005 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
17006 | $as_echo_n "(cached) " >&6 | |
17007 | else | |
17008 | case $PKG_CONFIG in | |
17009 | [\\/]* | ?:[\\/]*) | |
17010 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
17011 | ;; | |
17012 | *) | |
17013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17014 | for as_dir in $PATH | |
17015 | do | |
17016 | IFS=$as_save_IFS | |
17017 | test -z "$as_dir" && as_dir=. | |
17018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
17020 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
17021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17022 | break 2 | |
17023 | fi | |
17024 | done | |
17025 | done | |
17026 | IFS=$as_save_IFS | |
17027 | ||
17028 | ;; | |
cf1001a7 | 17029 | esac |
a5471f24 LS |
17030 | fi |
17031 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
17032 | if test -n "$PKG_CONFIG"; then | |
17033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
17034 | $as_echo "$PKG_CONFIG" >&6; } | |
17035 | else | |
17036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17037 | $as_echo "no" >&6; } | |
17038 | fi | |
cf1001a7 | 17039 | |
497e30a0 | 17040 | |
a5471f24 LS |
17041 | fi |
17042 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
17043 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
17044 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
17045 | set dummy pkg-config; ac_word=$2 | |
17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17047 | $as_echo_n "checking for $ac_word... " >&6; } | |
17048 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
17049 | $as_echo_n "(cached) " >&6 |
17050 | else | |
a5471f24 LS |
17051 | case $ac_pt_PKG_CONFIG in |
17052 | [\\/]* | ?:[\\/]*) | |
17053 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
17054 | ;; | |
17055 | *) | |
17056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17057 | for as_dir in $PATH | |
17058 | do | |
17059 | IFS=$as_save_IFS | |
17060 | test -z "$as_dir" && as_dir=. | |
17061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
17063 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
17064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17065 | break 2 | |
17066 | fi | |
17067 | done | |
17068 | done | |
17069 | IFS=$as_save_IFS | |
497e30a0 | 17070 | |
a5471f24 LS |
17071 | ;; |
17072 | esac | |
17073 | fi | |
17074 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
17075 | if test -n "$ac_pt_PKG_CONFIG"; then | |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
17077 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 17078 | else |
a5471f24 LS |
17079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17080 | $as_echo "no" >&6; } | |
497e30a0 | 17081 | fi |
a5471f24 LS |
17082 | |
17083 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
17084 | PKG_CONFIG="" | |
17085 | else | |
17086 | case $cross_compiling:$ac_tool_warned in | |
17087 | yes:) | |
17088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
17089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
17090 | ac_tool_warned=yes ;; | |
17091 | esac | |
17092 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
17093 | fi | |
17094 | else | |
17095 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 17096 | fi |
497e30a0 | 17097 | |
a5471f24 LS |
17098 | fi |
17099 | if test -n "$PKG_CONFIG"; then | |
17100 | _pkg_min_version=0.9.0 | |
17101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
17102 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
17103 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
17104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17105 | $as_echo "yes" >&6; } | |
17106 | else | |
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17108 | $as_echo "no" >&6; } | |
17109 | PKG_CONFIG="" | |
17110 | fi | |
17111 | fi | |
17112 | ||
17113 | pkg_failed=no | |
17114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
17115 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 17116 | |
a5471f24 LS |
17117 | if test -n "$SQLITE_CFLAGS"; then |
17118 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
17119 | elif test -n "$PKG_CONFIG"; then | |
17120 | if test -n "$PKG_CONFIG" && \ | |
17121 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
17122 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
17123 | ac_status=$? | |
17124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17125 | test $ac_status = 0; }; then | |
17126 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
17127 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 17128 | else |
a5471f24 LS |
17129 | pkg_failed=yes |
17130 | fi | |
17131 | else | |
17132 | pkg_failed=untried | |
17133 | fi | |
17134 | if test -n "$SQLITE_LIBS"; then | |
17135 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
17136 | elif test -n "$PKG_CONFIG"; then | |
17137 | if test -n "$PKG_CONFIG" && \ | |
17138 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
17139 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
17140 | ac_status=$? | |
17141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17142 | test $ac_status = 0; }; then | |
17143 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
17144 | test "x$?" != "x0" && pkg_failed=yes | |
17145 | else | |
17146 | pkg_failed=yes | |
17147 | fi | |
17148 | else | |
17149 | pkg_failed=untried | |
497e30a0 LS |
17150 | fi |
17151 | ||
17152 | ||
a5471f24 LS |
17153 | |
17154 | if test $pkg_failed = yes; then | |
17155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17156 | $as_echo "no" >&6; } | |
17157 | ||
17158 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17159 | _pkg_short_errors_supported=yes | |
497e30a0 | 17160 | else |
a5471f24 | 17161 | _pkg_short_errors_supported=no |
497e30a0 | 17162 | fi |
a5471f24 LS |
17163 | if test $_pkg_short_errors_supported = yes; then |
17164 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
17165 | else | |
17166 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
17167 | fi | |
17168 | # Put the nasty error message in config.log where it belongs | |
17169 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 17170 | |
a5471f24 LS |
17171 | shared_sqlite=no |
17172 | elif test $pkg_failed = untried; then | |
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17174 | $as_echo "no" >&6; } | |
17175 | shared_sqlite=no | |
17176 | else | |
17177 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
17178 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
17179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17180 | $as_echo "yes" >&6; } | |
497e30a0 | 17181 | |
a5471f24 | 17182 | shared_sqlite=yes |
497e30a0 | 17183 | |
74ab6be0 | 17184 | fi |
a5471f24 | 17185 | fi |
74ab6be0 LS |
17186 | |
17187 | if test "$shared_sqlite" = no; then | |
c52df125 | 17188 | SQLITE_OBJ='sqlite3.$(OBJEXT)' |
212380e3 AC |
17189 | fi |
17190 | ||
a5471f24 | 17191 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 17192 | |
a5471f24 | 17193 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
17194 | |
17195 | ||
cf1001a7 LS |
17196 | |
17197 | ||
c1c5fdc4 | 17198 | # Check whether --enable-ports was given. |
7083c021 | 17199 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 AC |
17200 | enableval=$enable_ports; if test $enableval = yes; then |
17201 | SELECT_TYPE_EXPLICIT="ports" | |
17202 | else | |
17203 | use_ports=no | |
17204 | fi | |
17205 | ||
17206 | fi | |
17207 | ||
17208 | ||
631ef239 | 17209 | # Check whether --enable-poll was given. |
7083c021 | 17210 | if test "${enable_poll+set}" = set; then : |
631ef239 | 17211 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
17212 | SELECT_TYPE_EXPLICIT="poll" |
17213 | else | |
17214 | use_poll=no | |
17215 | fi | |
17216 | ||
631ef239 AC |
17217 | fi |
17218 | ||
212380e3 | 17219 | |
631ef239 | 17220 | # Check whether --enable-select was given. |
7083c021 | 17221 | if test "${enable_select+set}" = set; then : |
631ef239 | 17222 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
17223 | SELECT_TYPE_EXPLICIT="select" |
17224 | else | |
17225 | use_select=no | |
17226 | fi | |
17227 | ||
631ef239 AC |
17228 | fi |
17229 | ||
212380e3 | 17230 | |
631ef239 | 17231 | # Check whether --enable-kqueue was given. |
7083c021 | 17232 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 17233 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
17234 | SELECT_TYPE_EXPLICIT="kqueue" |
17235 | else | |
17236 | use_kqueue=no | |
17237 | fi | |
17238 | ||
631ef239 AC |
17239 | fi |
17240 | ||
212380e3 | 17241 | |
631ef239 | 17242 | # Check whether --enable-epoll was given. |
7083c021 | 17243 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 17244 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 17245 | SELECT_TYPE_EXPLICIT="epoll" |
7083c021 AC |
17246 | for ac_func in epoll_ctl |
17247 | do : | |
17248 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 17249 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 17250 | cat >>confdefs.h <<_ACEOF |
7083c021 | 17251 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 JT |
17252 | _ACEOF |
17253 | haveepoll=yes | |
17254 | else | |
17255 | haveepoll=no | |
17256 | fi | |
17257 | done | |
17258 | ||
212380e3 AC |
17259 | else |
17260 | use_epoll=no | |
17261 | fi | |
17262 | ||
631ef239 AC |
17263 | fi |
17264 | ||
212380e3 AC |
17265 | |
17266 | ||
212380e3 | 17267 | |
631ef239 | 17268 | # Check whether --with-confdir was given. |
7083c021 | 17269 | if test "${with_confdir+set}" = set; then : |
634d4aad | 17270 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 17271 | else |
9f9b7042 | 17272 | confdir='${sysconfdir}' |
634d4aad NPB |
17273 | fi |
17274 | ||
212380e3 AC |
17275 | |
17276 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17277 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 17278 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 17279 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 17280 | ac_define_dir_counter=0 |
9f9b7042 NPB |
17281 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
17282 | last_ac_define_dir="$ac_define_dir" | |
17283 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
17284 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
17285 | if test "x$ac_define_dir_counter" = x128; then : | |
17286 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
17287 | break | |
17288 | fi | |
9f9b7042 | 17289 | done |
212380e3 AC |
17290 | ETC_DIR="$ac_define_dir" |
17291 | ||
17292 | ||
17293 | cat >>confdefs.h <<_ACEOF | |
17294 | #define ETC_DIR "$ac_define_dir" | |
17295 | _ACEOF | |
17296 | ||
17297 | ||
17298 | ||
17299 | ||
7083c021 AC |
17300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
17301 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 17302 | |
631ef239 | 17303 | # Check whether --with-logdir was given. |
7083c021 | 17304 | if test "${with_logdir+set}" = set; then : |
631ef239 | 17305 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17307 | $as_echo "yes" >&6; } | |
212380e3 | 17308 | else |
9f9b7042 NPB |
17309 | if test "x$enable_fhs_paths" = "xyes"; then : |
17310 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
17311 | else | |
17312 | logdir='${prefix}/logs' | |
17313 | fi | |
7083c021 AC |
17314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17315 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
17316 | fi |
17317 | ||
212380e3 AC |
17318 | |
17319 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17320 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
17321 | last_ac_define_dir=`eval echo $logdir` |
17322 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 17323 | ac_define_dir_counter=0 |
9f9b7042 NPB |
17324 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
17325 | last_ac_define_dir="$ac_define_dir" | |
17326 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
17327 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
17328 | if test "x$ac_define_dir_counter" = x128; then : | |
17329 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
17330 | break | |
17331 | fi | |
9f9b7042 | 17332 | done |
212380e3 AC |
17333 | LOG_DIR="$ac_define_dir" |
17334 | ||
17335 | ||
17336 | cat >>confdefs.h <<_ACEOF | |
17337 | #define LOG_DIR "$ac_define_dir" | |
17338 | _ACEOF | |
17339 | ||
17340 | ||
17341 | ||
17342 | ||
17343 | logdir=`( | |
17344 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17345 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
17346 | eval echo \""$logdir"\" | |
17347 | )` | |
17348 | ||
17349 | ||
17350 | ||
212380e3 | 17351 | |
7083c021 AC |
17352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
17353 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 17354 | |
631ef239 | 17355 | # Check whether --with-helpdir was given. |
7083c021 | 17356 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 17357 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
17358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17359 | $as_echo "yes" >&6; } | |
212380e3 | 17360 | else |
9f9b7042 NPB |
17361 | if test "x$enable_fhs_paths" = "xyes"; then : |
17362 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
17363 | else | |
17364 | helpdir='${prefix}/help' | |
17365 | fi | |
7083c021 AC |
17366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17367 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
17368 | fi |
17369 | ||
212380e3 AC |
17370 | |
17371 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17372 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
17373 | last_ac_define_dir=`eval echo $helpdir` |
17374 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 17375 | ac_define_dir_counter=0 |
9f9b7042 NPB |
17376 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
17377 | last_ac_define_dir="$ac_define_dir" | |
17378 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
17379 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
17380 | if test "x$ac_define_dir_counter" = x128; then : | |
17381 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
17382 | break | |
17383 | fi | |
9f9b7042 | 17384 | done |
212380e3 AC |
17385 | HELP_DIR="$ac_define_dir" |
17386 | ||
17387 | ||
17388 | cat >>confdefs.h <<_ACEOF | |
17389 | #define HELP_DIR "$ac_define_dir" | |
17390 | _ACEOF | |
17391 | ||
17392 | ||
17393 | ||
17394 | ||
17395 | helpdir=`( | |
17396 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17397 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
17398 | eval echo \""$helpdir"\" | |
17399 | )` | |
17400 | ||
17401 | ||
17402 | ||
212380e3 | 17403 | |
7083c021 AC |
17404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
17405 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 17406 | |
631ef239 | 17407 | # Check whether --with-moduledir was given. |
7083c021 | 17408 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 17409 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
17410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17411 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
17412 | else |
17413 | if test "x$enable_fhs_paths" = "xyes"; then : | |
17414 | moduledir='${pkglibdir}/modules' | |
17415 | else | |
17416 | moduledir='${prefix}/modules' | |
17417 | fi | |
17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17419 | $as_echo "no" >&6; } | |
17420 | ||
17421 | fi | |
17422 | ||
212380e3 AC |
17423 | |
17424 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17425 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
17426 | last_ac_define_dir=`eval echo $moduledir` |
17427 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 17428 | ac_define_dir_counter=0 |
9f9b7042 NPB |
17429 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
17430 | last_ac_define_dir="$ac_define_dir" | |
17431 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
17432 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
17433 | if test "x$ac_define_dir_counter" = x128; then : | |
17434 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
17435 | break | |
17436 | fi | |
9f9b7042 | 17437 | done |
212380e3 AC |
17438 | MODULE_DIR="$ac_define_dir" |
17439 | ||
17440 | ||
17441 | cat >>confdefs.h <<_ACEOF | |
17442 | #define MODULE_DIR "$ac_define_dir" | |
17443 | _ACEOF | |
17444 | ||
17445 | ||
17446 | ||
17447 | ||
17448 | moduledir=`( | |
17449 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17450 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
17451 | eval echo \""$moduledir"\" | |
17452 | )` | |
17453 | ||
17454 | ||
9f9b7042 NPB |
17455 | |
17456 | ||
17457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
17458 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
17459 | ||
17460 | # Check whether --with-rundir was given. | |
17461 | if test "${with_rundir+set}" = set; then : | |
17462 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17463 | $as_echo "yes" >&6; } | |
17464 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 17465 | else |
9f9b7042 | 17466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 17467 | $as_echo "no" >&6; } |
9f9b7042 NPB |
17468 | if test "x$enable_fhs_paths" = "xyes"; then : |
17469 | rundir='${prefix}/run' | |
17470 | else | |
17471 | rundir='${sysconfdir}' | |
17472 | fi | |
17473 | fi | |
17474 | ||
17475 | ||
212380e3 AC |
17476 | |
17477 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17478 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
17479 | last_ac_define_dir=`eval echo $pkgrundir` |
17480 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 17481 | ac_define_dir_counter=0 |
9f9b7042 NPB |
17482 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
17483 | last_ac_define_dir="$ac_define_dir" | |
17484 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
17485 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
17486 | if test "x$ac_define_dir_counter" = x128; then : | |
17487 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
17488 | break | |
17489 | fi | |
9f9b7042 NPB |
17490 | done |
17491 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
17492 | |
17493 | ||
17494 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 17495 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
17496 | _ACEOF |
17497 | ||
17498 | ||
17499 | ||
9f9b7042 NPB |
17500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
17501 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 17502 | |
9f9b7042 NPB |
17503 | # Check whether --with-program-prefix was given. |
17504 | if test "${with_program_prefix+set}" = set; then : | |
17505 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
17506 | else | |
17507 | with_program_prefix= | |
17508 | fi | |
212380e3 | 17509 | |
9f9b7042 NPB |
17510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
17511 | $as_echo "\"$with_program_prefix\"" >&6; } | |
17512 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
17513 | |
17514 | ||
9f9b7042 NPB |
17515 | cat >>confdefs.h <<_ACEOF |
17516 | #define PROGRAM_PREFIX "$with_program_prefix" | |
17517 | _ACEOF | |
631ef239 | 17518 | |
7083c021 | 17519 | |
b6d0720c AC |
17520 | |
17521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
17522 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
17523 | ||
17524 | # Check whether --with-custom-branding was given. | |
17525 | if test "${with_custom_branding+set}" = set; then : | |
17526 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
17527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17528 | $as_echo "yes" >&6; } | |
17529 | else | |
17530 | BRANDING_NAME=$PACKAGE_NAME | |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17532 | $as_echo "no" >&6; } | |
17533 | ||
17534 | fi | |
17535 | ||
17536 | ||
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
17538 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
17539 | ||
17540 | # Check whether --with-custom-version was given. | |
17541 | if test "${with_custom_version+set}" = set; then : | |
17542 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17544 | $as_echo "yes" >&6; } | |
17545 | else | |
17546 | BRANDING_VERSION=$PACKAGE_VERSION | |
17547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17548 | $as_echo "no" >&6; } | |
17549 | ||
17550 | fi | |
17551 | ||
17552 | ||
17553 | ||
17554 | cat >>confdefs.h <<_ACEOF | |
17555 | #define BRANDING_NAME "$BRANDING_NAME" | |
17556 | _ACEOF | |
17557 | ||
17558 | ||
17559 | cat >>confdefs.h <<_ACEOF | |
17560 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
17561 | _ACEOF | |
17562 | ||
17563 | ||
f5493691 AC |
17564 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
17565 | ||
17566 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
17567 | ||
17568 | fi | |
17569 | ||
7083c021 AC |
17570 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
17571 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
17572 | echo "Forcing $SELECT_TYPE to be enabled" | |
17573 | else | |
17574 | ||
17575 | if test ! "x$use_ports" = "xno"; then | |
17576 | for ac_func in port_getn | |
17577 | do : | |
17578 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b6d0720c | 17579 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 17580 | cat >>confdefs.h <<_ACEOF |
7083c021 | 17581 | #define HAVE_PORT_GETN 1 |
212380e3 | 17582 | _ACEOF |
7083c021 | 17583 | haveports=yes |
212380e3 | 17584 | else |
7083c021 | 17585 | haveports=no |
212380e3 AC |
17586 | fi |
17587 | done | |
17588 | ||
7083c021 AC |
17589 | if test "x$haveports" = "xyes" ; then |
17590 | SELECT_TYPE="ports" | |
212380e3 AC |
17591 | fi |
17592 | fi | |
17593 | ||
7083c021 AC |
17594 | if test ! "x$use_select" = "xno"; then |
17595 | for ac_func in select | |
17596 | do : | |
17597 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b6d0720c | 17598 | if test "x$ac_cv_func_select" = xyes; then : |
7083c021 AC |
17599 | cat >>confdefs.h <<_ACEOF |
17600 | #define HAVE_SELECT 1 | |
212380e3 | 17601 | _ACEOF |
7083c021 AC |
17602 | haveselect=yes |
17603 | else | |
17604 | haveselect=no | |
17605 | fi | |
17606 | done | |
212380e3 | 17607 | |
7083c021 AC |
17608 | if test "x$haveselect" = "xyes" ; then |
17609 | SELECT_TYPE="select" | |
17610 | fi | |
17611 | fi | |
212380e3 | 17612 | |
7083c021 AC |
17613 | if test ! "x$use_poll" = "xno"; then |
17614 | for ac_func in poll | |
17615 | do : | |
17616 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b6d0720c | 17617 | if test "x$ac_cv_func_poll" = xyes; then : |
7083c021 AC |
17618 | cat >>confdefs.h <<_ACEOF |
17619 | #define HAVE_POLL 1 | |
212380e3 | 17620 | _ACEOF |
7083c021 | 17621 | havepoll=yes |
212380e3 | 17622 | else |
7083c021 | 17623 | havepoll=no |
212380e3 | 17624 | fi |
7083c021 | 17625 | done |
631ef239 | 17626 | |
7083c021 AC |
17627 | if test "x$havepoll" = "xyes" ; then |
17628 | SELECT_TYPE="poll" | |
17629 | fi | |
212380e3 | 17630 | fi |
7083c021 AC |
17631 | |
17632 | if test ! "x$use_kqueue" = "xno"; then | |
17633 | for ac_func in kevent | |
17634 | do : | |
17635 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b6d0720c | 17636 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 17637 | cat >>confdefs.h <<_ACEOF |
7083c021 | 17638 | #define HAVE_KEVENT 1 |
212380e3 AC |
17639 | _ACEOF |
17640 | havekqueue=yes | |
17641 | else | |
17642 | havekqueue=no | |
17643 | fi | |
17644 | done | |
17645 | ||
17646 | if test "x$havekqueue" = "xyes" ; then | |
17647 | SELECT_TYPE="kqueue" | |
17648 | fi | |
17649 | fi | |
17650 | ||
17651 | if test ! "x$use_epoll" = "xno"; then | |
7083c021 AC |
17652 | for ac_func in epoll_ctl |
17653 | do : | |
17654 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 17655 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 17656 | cat >>confdefs.h <<_ACEOF |
7083c021 | 17657 | #define HAVE_EPOLL_CTL 1 |
212380e3 AC |
17658 | _ACEOF |
17659 | haveepoll=yes | |
17660 | else | |
17661 | haveepoll=no | |
17662 | fi | |
17663 | done | |
17664 | ||
17665 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
17666 | if test "x$haveepoll" = "xyes" ; then | |
7083c021 AC |
17667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
17668 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
17669 | if test "$cross_compiling" = yes; then : | |
17670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17671 | $as_echo "no" >&6; } | |
212380e3 | 17672 | else |
7083c021 | 17673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17674 | /* end confdefs.h. */ |
17675 | #include <stdint.h> | |
17676 | #include <sys/param.h> | |
17677 | #include <sys/types.h> | |
17678 | #include <sys/epoll.h> | |
17679 | #include <sys/syscall.h> | |
17680 | #include <unistd.h> | |
17681 | ||
17682 | int | |
17683 | main(int argc, char **argv) | |
17684 | { | |
17685 | int epfd; | |
17686 | ||
17687 | epfd = epoll_create(256); | |
b676ea3b | 17688 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
17689 | } |
17690 | _ACEOF | |
7083c021 AC |
17691 | if ac_fn_c_try_run "$LINENO"; then : |
17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17693 | $as_echo "yes" >&6; } | |
212380e3 | 17694 | |
7083c021 | 17695 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
17696 | |
17697 | SELECT_TYPE="epoll" | |
17698 | else | |
7083c021 AC |
17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17700 | $as_echo "no" >&6; } | |
212380e3 | 17701 | fi |
7083c021 AC |
17702 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
17703 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 17704 | fi |
631ef239 | 17705 | |
212380e3 AC |
17706 | fi |
17707 | fi | |
17708 | ||
17709 | haveepollsyscall=no | |
17710 | ||
17711 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
17712 | if test "x$haveepoll" = "xno" ; then | |
7083c021 AC |
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
17714 | $as_echo_n "checking for epoll system call... " >&6; } | |
17715 | if test "$cross_compiling" = yes; then : | |
17716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17717 | $as_echo "no" >&6; } | |
212380e3 | 17718 | else |
7083c021 | 17719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17720 | /* end confdefs.h. */ |
17721 | #include <stdint.h> | |
17722 | #include <sys/param.h> | |
17723 | #include <sys/types.h> | |
17724 | #include <sys/epoll.h> | |
17725 | #include <sys/syscall.h> | |
17726 | #include <unistd.h> | |
17727 | ||
17728 | int | |
17729 | epoll_create(int size) | |
17730 | { | |
17731 | return (syscall(__NR_epoll_create, size)); | |
17732 | } | |
17733 | ||
17734 | int | |
17735 | main(int argc, char **argv) | |
17736 | { | |
17737 | int epfd; | |
17738 | ||
17739 | epfd = epoll_create(256); | |
17740 | exit (epfd == -1 ? 1 : 0); | |
17741 | } | |
17742 | _ACEOF | |
7083c021 AC |
17743 | if ac_fn_c_try_run "$LINENO"; then : |
17744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17745 | $as_echo "yes" >&6; } | |
212380e3 | 17746 | |
7083c021 | 17747 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
17748 | |
17749 | SELECT_TYPE="epoll" | |
17750 | else | |
7083c021 AC |
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17752 | $as_echo "no" >&6; } | |
212380e3 | 17753 | fi |
7083c021 AC |
17754 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
17755 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 17756 | fi |
631ef239 | 17757 | |
212380e3 AC |
17758 | fi |
17759 | fi | |
17760 | ||
17761 | fi | |
17762 | ||
17763 | fi | |
17764 | ||
17765 | if test -z "$SELECT_TYPE"; then | |
b6d0720c | 17766 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 AC |
17767 | fi |
17768 | ||
17769 | echo "Using $SELECT_TYPE for select loop." | |
17770 | ||
17771 | ||
17772 | cat >>confdefs.h <<_ACEOF | |
17773 | #define SELECT_TYPE "$SELECT_TYPE" | |
17774 | _ACEOF | |
17775 | ||
17776 | ||
17777 | ||
17778 | ||
17779 | ||
631ef239 | 17780 | # Check whether --enable-assert was given. |
7083c021 | 17781 | if test "${enable_assert+set}" = set; then : |
631ef239 | 17782 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
17783 | else |
17784 | assert=no | |
631ef239 AC |
17785 | fi |
17786 | ||
212380e3 AC |
17787 | |
17788 | if test "$assert" = no; then | |
17789 | ||
7083c021 | 17790 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
17791 | |
17792 | elif test "$assert" = soft; then | |
17793 | ||
7083c021 | 17794 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
17795 | |
17796 | ||
7083c021 | 17797 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
17798 | |
17799 | elif test "$assert" = yes; then | |
17800 | assert = "hard"; | |
17801 | fi | |
17802 | ||
7083c021 AC |
17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
17804 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 17805 | # Check whether --enable-iodebug was given. |
7083c021 | 17806 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 17807 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
17808 | else |
17809 | iodebug=no | |
631ef239 AC |
17810 | fi |
17811 | ||
212380e3 AC |
17812 | |
17813 | if test "$iodebug" = yes; then | |
17814 | ||
7083c021 | 17815 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 17816 | |
7083c021 AC |
17817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17818 | $as_echo "yes" >&6; } | |
212380e3 | 17819 | else |
7083c021 AC |
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17821 | $as_echo "no" >&6; } | |
212380e3 AC |
17822 | fi |
17823 | ||
17824 | ||
7083c021 AC |
17825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
17826 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 17827 | # Check whether --enable-profile was given. |
7083c021 | 17828 | if test "${enable_profile+set}" = set; then : |
631ef239 | 17829 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
17830 | else |
17831 | profile=no | |
631ef239 AC |
17832 | fi |
17833 | ||
212380e3 AC |
17834 | |
17835 | if test "$profile" = yes; then | |
17836 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
17837 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
17839 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 17840 | |
7083c021 | 17841 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
17842 | |
17843 | else | |
7083c021 AC |
17844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
17845 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
17846 | fi |
17847 | else | |
7083c021 AC |
17848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17849 | $as_echo "no" >&6; } | |
212380e3 AC |
17850 | fi |
17851 | ||
631ef239 | 17852 | # Check whether --enable-balloc was given. |
7083c021 | 17853 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 17854 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
17855 | else |
17856 | balloc=yes | |
631ef239 AC |
17857 | fi |
17858 | ||
212380e3 AC |
17859 | |
17860 | if test "$balloc" = no; then | |
17861 | ||
7083c021 | 17862 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
17863 | |
17864 | fi | |
17865 | ||
631ef239 | 17866 | # Check whether --enable-small-net was given. |
7083c021 | 17867 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 17868 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
17869 | else |
17870 | small_net=no | |
631ef239 AC |
17871 | fi |
17872 | ||
212380e3 AC |
17873 | |
17874 | if test "$small_net" = yes; then | |
17875 | ||
7083c021 | 17876 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
17877 | |
17878 | ||
7083c021 | 17879 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17880 | |
17881 | ||
7083c021 | 17882 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
17883 | |
17884 | ||
7083c021 | 17885 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17886 | |
17887 | ||
7083c021 | 17888 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
17889 | |
17890 | ||
7083c021 | 17891 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
17892 | |
17893 | ||
7083c021 | 17894 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
17895 | |
17896 | ||
7083c021 | 17897 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17898 | |
17899 | ||
7083c021 | 17900 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17901 | |
17902 | ||
7083c021 | 17903 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
17904 | |
17905 | ||
7083c021 | 17906 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17907 | |
17908 | ||
7083c021 | 17909 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
17910 | |
17911 | ||
7083c021 | 17912 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
17913 | |
17914 | ||
7083c021 | 17915 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 17916 | |
f589ec6f | 17917 | |
7083c021 | 17918 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
17919 | |
17920 | ||
7083c021 | 17921 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 17922 | |
212380e3 AC |
17923 | else |
17924 | ||
7083c021 | 17925 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
17926 | |
17927 | ||
7083c021 | 17928 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17929 | |
17930 | ||
7083c021 | 17931 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
17932 | |
17933 | ||
7083c021 | 17934 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17935 | |
17936 | ||
7083c021 | 17937 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
17938 | |
17939 | ||
7083c021 | 17940 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17941 | |
17942 | ||
7083c021 | 17943 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17944 | |
17945 | ||
7083c021 | 17946 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17947 | |
17948 | ||
7083c021 | 17949 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
17950 | |
17951 | ||
7083c021 | 17952 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
17953 | |
17954 | ||
7083c021 | 17955 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
17956 | |
17957 | ||
7083c021 | 17958 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
17959 | |
17960 | ||
7083c021 | 17961 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17962 | |
17963 | ||
7083c021 | 17964 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 17965 | |
f589ec6f | 17966 | |
7083c021 | 17967 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
17968 | |
17969 | ||
7083c021 | 17970 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 17971 | |
212380e3 AC |
17972 | fi |
17973 | ||
17974 | ||
631ef239 | 17975 | # Check whether --with-nicklen was given. |
7083c021 | 17976 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 17977 | withval=$with_nicklen; |
aa769893 | 17978 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 17979 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 17980 | fi |
cf533739 | 17981 | if test $withval -gt 50; then |
212380e3 | 17982 | NICKLEN=50 |
7083c021 AC |
17983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
17984 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
17985 | elif test $withval -lt 9; then |
17986 | NICKLEN=9 | |
17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
17988 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
17989 | else |
17990 | NICKLEN="$withval" | |
17991 | fi | |
17992 | ||
17993 | else | |
cf533739 | 17994 | NICKLEN=31 |
631ef239 | 17995 | fi |
212380e3 AC |
17996 | |
17997 | ||
212380e3 | 17998 | |
631ef239 | 17999 | # Check whether --with-topiclen was given. |
7083c021 | 18000 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 18001 | withval=$with_topiclen; |
212380e3 AC |
18002 | if test $withval -ge 390; then |
18003 | TOPICLEN=390 | |
7083c021 AC |
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
18005 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
18006 | else |
18007 | TOPICLEN=$withval | |
18008 | fi | |
18009 | ||
18010 | else | |
18011 | TOPICLEN=390 | |
212380e3 AC |
18012 | fi |
18013 | ||
212380e3 AC |
18014 | |
18015 | ||
18016 | cat >>confdefs.h <<_ACEOF | |
18017 | #define TOPICLEN ${TOPICLEN} | |
18018 | _ACEOF | |
18019 | ||
18020 | ||
18021 | cat >>confdefs.h <<_ACEOF | |
18022 | #define NICKLEN (${NICKLEN}+1) | |
18023 | _ACEOF | |
18024 | ||
18025 | ||
b676ea3b | 18026 | shared_modules="yes" |
212380e3 | 18027 | if test "$shared_modules" = yes; then |
212380e3 | 18028 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
7083c021 AC |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
18030 | $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
212380e3 AC |
18031 | shared_modules="no" |
18032 | fi | |
18033 | fi | |
18034 | ||
18035 | if test "$shared_modules" = yes; then | |
7083c021 AC |
18036 | DYNLINK_C=dynlink.c |
18037 | for ac_header in dlfcn.h | |
18038 | do : | |
18039 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
b6d0720c | 18040 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
212380e3 | 18041 | cat >>confdefs.h <<_ACEOF |
7083c021 | 18042 | #define HAVE_DLFCN_H 1 |
212380e3 AC |
18043 | _ACEOF |
18044 | ||
18045 | fi | |
18046 | ||
18047 | done | |
18048 | ||
7083c021 AC |
18049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 |
18050 | $as_echo_n "checking for library containing shl_load... " >&6; } | |
b6d0720c | 18051 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 18052 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18053 | else |
18054 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 18055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18056 | /* end confdefs.h. */ |
18057 | ||
631ef239 AC |
18058 | /* Override any GCC internal prototype to avoid an error. |
18059 | Use char because int might match the return type of a GCC | |
18060 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
18061 | #ifdef __cplusplus |
18062 | extern "C" | |
18063 | #endif | |
212380e3 AC |
18064 | char shl_load (); |
18065 | int | |
18066 | main () | |
18067 | { | |
631ef239 | 18068 | return shl_load (); |
212380e3 AC |
18069 | ; |
18070 | return 0; | |
18071 | } | |
18072 | _ACEOF | |
631ef239 AC |
18073 | for ac_lib in '' dld; do |
18074 | if test -z "$ac_lib"; then | |
18075 | ac_res="none required" | |
18076 | else | |
18077 | ac_res=-l$ac_lib | |
18078 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
18079 | fi | |
7083c021 | 18080 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 18081 | ac_cv_search_shl_load=$ac_res |
631ef239 | 18082 | fi |
7083c021 AC |
18083 | rm -f core conftest.err conftest.$ac_objext \ |
18084 | conftest$ac_exeext | |
b6d0720c | 18085 | if ${ac_cv_search_shl_load+:} false; then : |
631ef239 | 18086 | break |
212380e3 | 18087 | fi |
631ef239 | 18088 | done |
b6d0720c | 18089 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 18090 | |
631ef239 AC |
18091 | else |
18092 | ac_cv_search_shl_load=no | |
212380e3 | 18093 | fi |
631ef239 | 18094 | rm conftest.$ac_ext |
212380e3 AC |
18095 | LIBS=$ac_func_search_save_LIBS |
18096 | fi | |
7083c021 AC |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 |
18098 | $as_echo "$ac_cv_search_shl_load" >&6; } | |
631ef239 | 18099 | ac_res=$ac_cv_search_shl_load |
7083c021 | 18100 | if test "$ac_res" != no; then : |
631ef239 | 18101 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
18102 | |
18103 | ||
7083c021 | 18104 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 AC |
18105 | |
18106 | SUFFIX=".sl" | |
18107 | MOD_TARGET=hpux_shared | |
18108 | SEDOBJ="s/\.o/.sl/g" | |
18109 | ||
18110 | else | |
18111 | ||
7083c021 AC |
18112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
18113 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
b6d0720c | 18114 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 18115 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18116 | else |
18117 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 18118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18119 | /* end confdefs.h. */ |
18120 | ||
631ef239 AC |
18121 | /* Override any GCC internal prototype to avoid an error. |
18122 | Use char because int might match the return type of a GCC | |
18123 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
18124 | #ifdef __cplusplus |
18125 | extern "C" | |
18126 | #endif | |
212380e3 AC |
18127 | char dlopen (); |
18128 | int | |
18129 | main () | |
18130 | { | |
631ef239 | 18131 | return dlopen (); |
212380e3 AC |
18132 | ; |
18133 | return 0; | |
18134 | } | |
18135 | _ACEOF | |
631ef239 AC |
18136 | for ac_lib in '' dl c_r; do |
18137 | if test -z "$ac_lib"; then | |
18138 | ac_res="none required" | |
18139 | else | |
18140 | ac_res=-l$ac_lib | |
18141 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
18142 | fi | |
7083c021 | 18143 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 18144 | ac_cv_search_dlopen=$ac_res |
631ef239 | 18145 | fi |
7083c021 AC |
18146 | rm -f core conftest.err conftest.$ac_objext \ |
18147 | conftest$ac_exeext | |
b6d0720c | 18148 | if ${ac_cv_search_dlopen+:} false; then : |
631ef239 | 18149 | break |
212380e3 | 18150 | fi |
631ef239 | 18151 | done |
b6d0720c | 18152 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 18153 | |
631ef239 AC |
18154 | else |
18155 | ac_cv_search_dlopen=no | |
212380e3 | 18156 | fi |
631ef239 | 18157 | rm conftest.$ac_ext |
212380e3 AC |
18158 | LIBS=$ac_func_search_save_LIBS |
18159 | fi | |
7083c021 AC |
18160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
18161 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
631ef239 | 18162 | ac_res=$ac_cv_search_dlopen |
7083c021 | 18163 | if test "$ac_res" != no; then : |
631ef239 | 18164 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
18165 | |
18166 | ||
7083c021 | 18167 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
212380e3 AC |
18168 | |
18169 | SUFFIX=".so" | |
18170 | MOD_TARGET=shared_modules | |
18171 | SEDOBJ="s/\.o/.so/g" | |
18172 | if test "$AppleGCC" = yes; then | |
7083c021 AC |
18173 | for ac_header in mach-o/dyld.h |
18174 | do : | |
18175 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
b6d0720c | 18176 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
212380e3 | 18177 | cat >>confdefs.h <<_ACEOF |
7083c021 | 18178 | #define HAVE_MACH_O_DYLD_H 1 |
212380e3 AC |
18179 | _ACEOF |
18180 | ||
18181 | fi | |
18182 | ||
18183 | done | |
18184 | ||
18185 | fi | |
7083c021 | 18186 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
b6d0720c | 18187 | if test "x$ac_cv_func_dlsym" = xyes; then : |
631ef239 | 18188 | |
212380e3 AC |
18189 | else |
18190 | ||
7083c021 AC |
18191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 |
18192 | $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
212380e3 AC |
18193 | shared_modules=no |
18194 | ||
18195 | fi | |
18196 | ||
7083c021 AC |
18197 | for ac_func in dlfunc |
18198 | do : | |
18199 | ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" | |
b6d0720c | 18200 | if test "x$ac_cv_func_dlfunc" = xyes; then : |
212380e3 | 18201 | cat >>confdefs.h <<_ACEOF |
7083c021 | 18202 | #define HAVE_DLFUNC 1 |
212380e3 AC |
18203 | _ACEOF |
18204 | ||
18205 | fi | |
18206 | done | |
18207 | ||
18208 | ||
18209 | else | |
18210 | ||
18211 | shared_modules=no | |
18212 | ||
18213 | fi | |
18214 | ||
18215 | ||
18216 | fi | |
18217 | ||
18218 | fi | |
18219 | ||
18220 | ||
18221 | cat >>confdefs.h <<_ACEOF | |
18222 | #define SHARED_SUFFIX "$SUFFIX" | |
18223 | _ACEOF | |
18224 | ||
18225 | ||
18226 | if test "$shared_modules" = yes; then | |
18227 | # The GNU linker requires the -export-dynamic option to make | |
18228 | # all symbols visible in the dynamic symbol table. | |
18229 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
18230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 |
18231 | $as_echo_n "checking for the ld -export-dynamic flag... " >&6; } | |
212380e3 | 18232 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
7083c021 | 18233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18234 | /* end confdefs.h. */ |
18235 | ||
18236 | int | |
18237 | main () | |
18238 | { | |
18239 | int i; | |
18240 | ; | |
18241 | return 0; | |
18242 | } | |
18243 | _ACEOF | |
7083c021 | 18244 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
18245 | found=yes |
18246 | else | |
7083c021 | 18247 | found=no |
212380e3 | 18248 | fi |
7083c021 AC |
18249 | rm -f core conftest.err conftest.$ac_objext \ |
18250 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
18251 | LDFLAGS=$hold_ldflags |
18252 | ||
18253 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
18254 | found="no, IRIX ld uses -B,dynamic" | |
18255 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
18256 | fi | |
18257 | ||
18258 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
18259 | found="no, AIX ld uses -G -brtl" | |
18260 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
18261 | fi | |
18262 | ||
7083c021 AC |
18263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
18264 | $as_echo "$found" >&6; } | |
212380e3 AC |
18265 | |
18266 | if test "$found" = yes; then | |
18267 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
18268 | fi | |
18269 | ||
7083c021 AC |
18270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 |
18271 | $as_echo_n "checking for compiler option to produce PIC... " >&6; } | |
212380e3 | 18272 | if test "$SGS" = "yes"; then |
7083c021 AC |
18273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
18274 | $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
18275 | PICFLAGS="-KPIC -DPIC -G" |
18276 | fi | |
18277 | ||
18278 | if test "$AppleGCC" = "yes"; then | |
7083c021 AC |
18279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
18280 | $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
18281 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
18282 | fi | |
18283 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
7083c021 AC |
18284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 |
18285 | $as_echo "HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 18286 | PICFLAGS="+z -r -q -n -c" |
7083c021 AC |
18287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 |
18288 | $as_echo_n "checking if +ESfic is required on this platform... " >&6; } | |
212380e3 AC |
18289 | |
18290 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
7083c021 AC |
18291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18292 | $as_echo "no" >&6; } | |
212380e3 | 18293 | else |
7083c021 AC |
18294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
18295 | $as_echo "yes" >&6; } | |
212380e3 AC |
18296 | PICFLAGS="$PICFLAGS +ESfic" |
18297 | fi | |
18298 | ||
18299 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
18300 | fi | |
18301 | if test "$Tru" = yes -a "$CC" != gcc; then | |
7083c021 AC |
18302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 |
18303 | $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
18304 | PICFLAGS="-shared -expect_unresolved '*' " |
18305 | LDFLAGS="-call_shared" | |
18306 | fi | |
18307 | if test -z "$PICFLAGS"; then | |
18308 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
7083c021 AC |
18309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 |
18310 | $as_echo "gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
18311 | PICFLAGS="-fPIC -DPIC -shared" |
18312 | else | |
7083c021 AC |
18313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18314 | $as_echo "no" >&6; } | |
212380e3 AC |
18315 | shared_modules=no |
18316 | fi | |
18317 | fi | |
18318 | fi | |
18319 | ||
1a82970f JT |
18320 | # rpath, for finding libratbox.so at run time |
18321 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
18322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
18323 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 18324 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 18325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
18326 | /* end confdefs.h. */ |
18327 | ||
18328 | int | |
18329 | main () | |
18330 | { | |
18331 | int i; | |
18332 | ; | |
18333 | return 0; | |
18334 | } | |
18335 | _ACEOF | |
7083c021 | 18336 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
18337 | found=yes |
18338 | else | |
7083c021 | 18339 | found=no |
1a82970f | 18340 | fi |
7083c021 AC |
18341 | rm -f core conftest.err conftest.$ac_objext \ |
18342 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 18343 | LDFLAGS=$hold_ldflags |
7083c021 AC |
18344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
18345 | $as_echo "$found" >&6; } | |
1a82970f JT |
18346 | if test "$found" = yes; then |
18347 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
18348 | fi | |
18349 | ||
212380e3 AC |
18350 | # This must be down here, or it will mess up checks like the ones |
18351 | # for -Wl,-export-dynamic | |
18352 | # -- jilles | |
d2c5159a | 18353 | CWARNS="" |
631ef239 | 18354 | # Check whether --enable-warnings was given. |
7083c021 | 18355 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 18356 | enableval=$enable_warnings; |
212380e3 AC |
18357 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
18358 | CFLAGS="$IRC_CFLAGS" | |
18359 | ||
18360 | ||
7083c021 AC |
18361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
18362 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
18363 | if test "${GCC-no}" = yes |
18364 | then | |
b6d0720c | 18365 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 18366 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18367 | else |
18368 | ||
18369 | oldcflags="${CFLAGS-}" | |
18370 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 18371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18372 | /* end confdefs.h. */ |
18373 | ||
18374 | #include <string.h> | |
18375 | #include <stdio.h> | |
18376 | int main(void); | |
18377 | ||
18378 | int | |
18379 | main () | |
18380 | { | |
18381 | ||
b1fc1658 | 18382 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18383 | |
18384 | ; | |
18385 | return 0; | |
18386 | } | |
18387 | _ACEOF | |
7083c021 | 18388 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18389 | charybdis_cv_c_gcc_w_all=yes |
18390 | else | |
7083c021 | 18391 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 18392 | fi |
631ef239 | 18393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18394 | CFLAGS="${oldcflags}" |
18395 | fi | |
18396 | ||
18397 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
18398 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
18399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18400 | $as_echo "ok" >&6; } | |
212380e3 AC |
18401 | else |
18402 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
18403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18404 | $as_echo "no" >&6; } | |
212380e3 AC |
18405 | fi |
18406 | else | |
7083c021 AC |
18407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18408 | $as_echo "no" >&6; } | |
212380e3 AC |
18409 | fi |
18410 | ||
18411 | ||
7083c021 AC |
18412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
18413 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
18414 | if test "${GCC-no}" = yes |
18415 | then | |
b6d0720c | 18416 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 18417 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18418 | else |
18419 | ||
18420 | oldcflags="${CFLAGS-}" | |
18421 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 18422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18423 | /* end confdefs.h. */ |
18424 | ||
18425 | #include <string.h> | |
18426 | #include <stdio.h> | |
18427 | int main(void); | |
18428 | ||
18429 | int | |
18430 | main () | |
18431 | { | |
18432 | ||
b1fc1658 | 18433 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18434 | |
18435 | ; | |
18436 | return 0; | |
18437 | } | |
18438 | _ACEOF | |
7083c021 | 18439 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18440 | charybdis_cv_c_gcc_w_pointer_arith=yes |
18441 | else | |
7083c021 | 18442 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 18443 | fi |
631ef239 | 18444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18445 | CFLAGS="${oldcflags}" |
18446 | fi | |
18447 | ||
18448 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
18449 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18451 | $as_echo "ok" >&6; } | |
212380e3 AC |
18452 | else |
18453 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
18454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18455 | $as_echo "no" >&6; } | |
212380e3 AC |
18456 | fi |
18457 | else | |
7083c021 AC |
18458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18459 | $as_echo "no" >&6; } | |
212380e3 AC |
18460 | fi |
18461 | ||
18462 | ||
7083c021 AC |
18463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
18464 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
18465 | if test "${GCC-no}" = yes |
18466 | then | |
b6d0720c | 18467 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 18468 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18469 | else |
18470 | ||
18471 | oldcflags="${CFLAGS-}" | |
18472 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 18473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18474 | /* end confdefs.h. */ |
18475 | ||
18476 | #include <string.h> | |
18477 | #include <stdio.h> | |
18478 | int main(void); | |
18479 | ||
18480 | int | |
18481 | main () | |
18482 | { | |
18483 | ||
b1fc1658 | 18484 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18485 | |
18486 | ; | |
18487 | return 0; | |
18488 | } | |
18489 | _ACEOF | |
7083c021 | 18490 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18491 | charybdis_cv_c_gcc_w_implicit=yes |
18492 | else | |
7083c021 | 18493 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 18494 | fi |
631ef239 | 18495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18496 | CFLAGS="${oldcflags}" |
18497 | fi | |
18498 | ||
18499 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
18500 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
18501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18502 | $as_echo "ok" >&6; } | |
212380e3 AC |
18503 | else |
18504 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
18505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18506 | $as_echo "no" >&6; } | |
212380e3 AC |
18507 | fi |
18508 | else | |
7083c021 AC |
18509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18510 | $as_echo "no" >&6; } | |
212380e3 AC |
18511 | fi |
18512 | ||
18513 | ||
7083c021 AC |
18514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
18515 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
18516 | if test "${GCC-no}" = yes |
18517 | then | |
b6d0720c | 18518 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 18519 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18520 | else |
18521 | ||
18522 | oldcflags="${CFLAGS-}" | |
18523 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 18524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18525 | /* end confdefs.h. */ |
18526 | ||
18527 | #include <string.h> | |
18528 | #include <stdio.h> | |
18529 | int main(void); | |
18530 | ||
18531 | int | |
18532 | main () | |
18533 | { | |
18534 | ||
b1fc1658 | 18535 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
18536 | |
18537 | ; | |
18538 | return 0; | |
18539 | } | |
18540 | _ACEOF | |
18541 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
18542 | charybdis_cv_c_gcc_w_cast_align=yes |
18543 | else | |
7083c021 | 18544 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 18545 | fi |
631ef239 | 18546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18547 | CFLAGS="${oldcflags}" |
18548 | fi | |
18549 | ||
18550 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
18551 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
18552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18553 | $as_echo "ok" >&6; } | |
212380e3 AC |
18554 | else |
18555 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
18556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18557 | $as_echo "no" >&6; } | |
212380e3 AC |
18558 | fi |
18559 | else | |
7083c021 AC |
18560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18561 | $as_echo "no" >&6; } | |
212380e3 AC |
18562 | fi |
18563 | ||
18564 | ||
7083c021 AC |
18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
18566 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
18567 | if test "${GCC-no}" = yes |
18568 | then | |
b6d0720c | 18569 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 18570 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18571 | else |
18572 | ||
18573 | oldcflags="${CFLAGS-}" | |
18574 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 18575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18576 | /* end confdefs.h. */ |
18577 | ||
18578 | #include <string.h> | |
18579 | #include <stdio.h> | |
18580 | int main(void); | |
18581 | ||
18582 | int | |
18583 | main () | |
18584 | { | |
18585 | ||
b1fc1658 | 18586 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18587 | |
18588 | ; | |
18589 | return 0; | |
18590 | } | |
18591 | _ACEOF | |
7083c021 | 18592 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18593 | charybdis_cv_c_gcc_w_cast_qual=yes |
18594 | else | |
7083c021 | 18595 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 18596 | fi |
631ef239 | 18597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18598 | CFLAGS="${oldcflags}" |
18599 | fi | |
18600 | ||
18601 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
18602 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
18603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18604 | $as_echo "ok" >&6; } | |
212380e3 AC |
18605 | else |
18606 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
18607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18608 | $as_echo "no" >&6; } | |
212380e3 AC |
18609 | fi |
18610 | else | |
7083c021 AC |
18611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18612 | $as_echo "no" >&6; } | |
212380e3 AC |
18613 | fi |
18614 | ||
18615 | ||
7083c021 AC |
18616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
18617 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
18618 | if test "${GCC-no}" = yes |
18619 | then | |
b6d0720c | 18620 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 18621 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
18622 | else |
18623 | ||
18624 | oldcflags="${CFLAGS-}" | |
18625 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 18626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
18627 | /* end confdefs.h. */ |
18628 | ||
18629 | #include <string.h> | |
18630 | #include <stdio.h> | |
18631 | int main(void); | |
18632 | ||
18633 | int | |
18634 | main () | |
18635 | { | |
18636 | ||
18637 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18638 | ||
18639 | ; | |
18640 | return 0; | |
18641 | } | |
18642 | _ACEOF | |
7083c021 | 18643 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 18644 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 18645 | else |
7083c021 | 18646 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 18647 | fi |
d2c5159a JT |
18648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18649 | CFLAGS="${oldcflags}" | |
18650 | fi | |
18651 | ||
bbe58888 | 18652 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 18653 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
18654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18655 | $as_echo "ok" >&6; } | |
d2c5159a | 18656 | else |
bbe58888 | 18657 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
18658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18659 | $as_echo "no" >&6; } | |
bbe58888 VY |
18660 | fi |
18661 | else | |
7083c021 AC |
18662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18663 | $as_echo "no" >&6; } | |
bbe58888 VY |
18664 | fi |
18665 | ||
18666 | ||
7083c021 AC |
18667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
18668 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
18669 | if test "${GCC-no}" = yes |
18670 | then | |
b6d0720c | 18671 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 18672 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
18673 | else |
18674 | ||
18675 | oldcflags="${CFLAGS-}" | |
18676 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 18677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
18678 | /* end confdefs.h. */ |
18679 | ||
18680 | #include <string.h> | |
18681 | #include <stdio.h> | |
18682 | int main(void); | |
18683 | ||
18684 | int | |
18685 | main () | |
18686 | { | |
18687 | ||
18688 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18689 | ||
18690 | ; | |
18691 | return 0; | |
18692 | } | |
18693 | _ACEOF | |
7083c021 | 18694 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
18695 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
18696 | else | |
7083c021 | 18697 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 18698 | fi |
bbe58888 VY |
18699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18700 | CFLAGS="${oldcflags}" | |
18701 | fi | |
18702 | ||
18703 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
18704 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
18705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18706 | $as_echo "ok" >&6; } | |
bbe58888 VY |
18707 | else |
18708 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18710 | $as_echo "no" >&6; } | |
d2c5159a JT |
18711 | fi |
18712 | else | |
7083c021 AC |
18713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18714 | $as_echo "no" >&6; } | |
d2c5159a JT |
18715 | fi |
18716 | ||
18717 | ||
7083c021 AC |
18718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
18719 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
18720 | if test "${GCC-no}" = yes |
18721 | then | |
b6d0720c | 18722 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 18723 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18724 | else |
18725 | ||
18726 | oldcflags="${CFLAGS-}" | |
18727 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 18728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18729 | /* end confdefs.h. */ |
18730 | ||
18731 | #include <string.h> | |
18732 | #include <stdio.h> | |
18733 | int main(void); | |
18734 | ||
18735 | int | |
18736 | main () | |
18737 | { | |
18738 | ||
b1fc1658 | 18739 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18740 | |
18741 | ; | |
18742 | return 0; | |
18743 | } | |
18744 | _ACEOF | |
7083c021 | 18745 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18746 | charybdis_cv_c_gcc_prototypes=yes |
18747 | else | |
7083c021 | 18748 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 18749 | fi |
631ef239 | 18750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18751 | CFLAGS="${oldcflags}" |
18752 | fi | |
18753 | ||
18754 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
18755 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
18756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18757 | $as_echo "ok" >&6; } | |
212380e3 AC |
18758 | else |
18759 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
18760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18761 | $as_echo "no" >&6; } | |
212380e3 AC |
18762 | fi |
18763 | else | |
7083c021 AC |
18764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18765 | $as_echo "no" >&6; } | |
212380e3 AC |
18766 | fi |
18767 | ||
18768 | ||
7083c021 AC |
18769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
18770 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
18771 | if test "${GCC-no}" = yes |
18772 | then | |
b6d0720c | 18773 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 18774 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18775 | else |
18776 | ||
18777 | oldcflags="${CFLAGS-}" | |
18778 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 18779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18780 | /* end confdefs.h. */ |
18781 | ||
18782 | #include <string.h> | |
18783 | #include <stdio.h> | |
18784 | int main(void); | |
18785 | ||
18786 | int | |
18787 | main () | |
18788 | { | |
18789 | ||
b1fc1658 | 18790 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18791 | |
18792 | ; | |
18793 | return 0; | |
18794 | } | |
18795 | _ACEOF | |
7083c021 | 18796 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18797 | charybdis_cv_c_gcc_parenthesis=yes |
18798 | else | |
7083c021 | 18799 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 18800 | fi |
631ef239 | 18801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18802 | CFLAGS="${oldcflags}" |
18803 | fi | |
18804 | ||
18805 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
18806 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
18807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18808 | $as_echo "ok" >&6; } | |
212380e3 AC |
18809 | else |
18810 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
18811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18812 | $as_echo "no" >&6; } | |
212380e3 AC |
18813 | fi |
18814 | else | |
7083c021 AC |
18815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18816 | $as_echo "no" >&6; } | |
212380e3 AC |
18817 | fi |
18818 | ||
18819 | ||
7083c021 AC |
18820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
18821 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
18822 | if test "${GCC-no}" = yes |
18823 | then | |
b6d0720c | 18824 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 18825 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18826 | else |
18827 | ||
18828 | oldcflags="${CFLAGS-}" | |
18829 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 18830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18831 | /* end confdefs.h. */ |
18832 | ||
18833 | #include <string.h> | |
18834 | #include <stdio.h> | |
18835 | int main(void); | |
18836 | ||
18837 | int | |
18838 | main () | |
18839 | { | |
18840 | ||
b1fc1658 | 18841 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18842 | |
18843 | ; | |
18844 | return 0; | |
18845 | } | |
18846 | _ACEOF | |
7083c021 | 18847 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18848 | charybdis_cv_c_gcc_w=yes |
18849 | else | |
7083c021 | 18850 | charybdis_cv_c_gcc_w=no |
212380e3 | 18851 | fi |
631ef239 | 18852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18853 | CFLAGS="${oldcflags}" |
18854 | fi | |
18855 | ||
18856 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
18857 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
18858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18859 | $as_echo "ok" >&6; } | |
212380e3 AC |
18860 | else |
18861 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
18862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18863 | $as_echo "no" >&6; } | |
212380e3 AC |
18864 | fi |
18865 | else | |
7083c021 AC |
18866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18867 | $as_echo "no" >&6; } | |
212380e3 AC |
18868 | fi |
18869 | ||
18870 | ||
7083c021 AC |
18871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
18872 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
18873 | if test "${GCC-no}" = yes |
18874 | then | |
b6d0720c | 18875 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 18876 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18877 | else |
18878 | ||
18879 | oldcflags="${CFLAGS-}" | |
18880 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 18881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18882 | /* end confdefs.h. */ |
18883 | ||
18884 | #include <string.h> | |
18885 | #include <stdio.h> | |
18886 | int main(void); | |
18887 | ||
18888 | int | |
18889 | main () | |
18890 | { | |
18891 | ||
b1fc1658 | 18892 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18893 | |
18894 | ; | |
18895 | return 0; | |
18896 | } | |
18897 | _ACEOF | |
7083c021 | 18898 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18899 | charybdis_cv_c_gcc_w_extra=yes |
18900 | else | |
7083c021 | 18901 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 18902 | fi |
631ef239 | 18903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18904 | CFLAGS="${oldcflags}" |
18905 | fi | |
18906 | ||
18907 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
18908 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
18909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18910 | $as_echo "ok" >&6; } | |
212380e3 AC |
18911 | else |
18912 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
18913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18914 | $as_echo "no" >&6; } | |
212380e3 AC |
18915 | fi |
18916 | else | |
7083c021 AC |
18917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18918 | $as_echo "no" >&6; } | |
212380e3 AC |
18919 | fi |
18920 | ||
18921 | ||
7083c021 AC |
18922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
18923 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
18924 | if test "${GCC-no}" = yes |
18925 | then | |
b6d0720c | 18926 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 18927 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18928 | else |
18929 | ||
18930 | oldcflags="${CFLAGS-}" | |
18931 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 18932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18933 | /* end confdefs.h. */ |
18934 | ||
18935 | #include <string.h> | |
18936 | #include <stdio.h> | |
18937 | int main(void); | |
18938 | ||
18939 | int | |
18940 | main () | |
18941 | { | |
18942 | ||
b1fc1658 | 18943 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18944 | |
18945 | ; | |
18946 | return 0; | |
18947 | } | |
18948 | _ACEOF | |
7083c021 | 18949 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18950 | charybdis_cv_c_gcc_w_shadow=yes |
18951 | else | |
7083c021 | 18952 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 18953 | fi |
631ef239 | 18954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18955 | CFLAGS="${oldcflags}" |
18956 | fi | |
18957 | ||
18958 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
18959 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
18960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18961 | $as_echo "ok" >&6; } | |
212380e3 AC |
18962 | else |
18963 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
18964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18965 | $as_echo "no" >&6; } | |
212380e3 AC |
18966 | fi |
18967 | else | |
7083c021 AC |
18968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18969 | $as_echo "no" >&6; } | |
212380e3 AC |
18970 | fi |
18971 | ||
18972 | ||
7083c021 AC |
18973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
18974 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
18975 | if test "${GCC-no}" = yes |
18976 | then | |
b6d0720c | 18977 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 18978 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18979 | else |
18980 | ||
18981 | oldcflags="${CFLAGS-}" | |
18982 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 18983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18984 | /* end confdefs.h. */ |
18985 | ||
18986 | #include <string.h> | |
18987 | #include <stdio.h> | |
18988 | int main(void); | |
18989 | ||
18990 | int | |
18991 | main () | |
18992 | { | |
18993 | ||
b1fc1658 | 18994 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18995 | |
18996 | ; | |
18997 | return 0; | |
18998 | } | |
18999 | _ACEOF | |
7083c021 | 19000 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19001 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
19002 | else | |
7083c021 | 19003 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 19004 | fi |
631ef239 | 19005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19006 | CFLAGS="${oldcflags}" |
19007 | fi | |
19008 | ||
19009 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
19010 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
19011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19012 | $as_echo "ok" >&6; } | |
212380e3 AC |
19013 | else |
19014 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
19015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19016 | $as_echo "no" >&6; } | |
212380e3 AC |
19017 | fi |
19018 | else | |
7083c021 AC |
19019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19020 | $as_echo "no" >&6; } | |
212380e3 AC |
19021 | fi |
19022 | ||
19023 | ||
7083c021 AC |
19024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
19025 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
19026 | if test "${GCC-no}" = yes |
19027 | then | |
b6d0720c | 19028 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 19029 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19030 | else |
19031 | ||
19032 | oldcflags="${CFLAGS-}" | |
19033 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 19034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19035 | /* end confdefs.h. */ |
19036 | ||
19037 | #include <string.h> | |
19038 | #include <stdio.h> | |
19039 | int main(void); | |
19040 | ||
19041 | int | |
19042 | main () | |
19043 | { | |
19044 | ||
b1fc1658 | 19045 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
19046 | |
19047 | ; | |
19048 | return 0; | |
19049 | } | |
19050 | _ACEOF | |
7083c021 | 19051 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19052 | charybdis_cv_c_gcc_w_undef=yes |
19053 | else | |
7083c021 | 19054 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 19055 | fi |
631ef239 | 19056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19057 | CFLAGS="${oldcflags}" |
19058 | fi | |
19059 | ||
19060 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
19061 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
19062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19063 | $as_echo "ok" >&6; } | |
212380e3 AC |
19064 | else |
19065 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
19066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19067 | $as_echo "no" >&6; } | |
212380e3 AC |
19068 | fi |
19069 | else | |
7083c021 AC |
19070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19071 | $as_echo "no" >&6; } | |
212380e3 AC |
19072 | fi |
19073 | ||
19074 | ||
7083c021 AC |
19075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
19076 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
19077 | if test "${GCC-no}" = yes |
19078 | then | |
b6d0720c | 19079 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 19080 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19081 | else |
19082 | ||
19083 | oldcflags="${CFLAGS-}" | |
19084 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 19085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19086 | /* end confdefs.h. */ |
19087 | ||
19088 | #include <string.h> | |
19089 | #include <stdio.h> | |
19090 | int main(void); | |
19091 | ||
19092 | int | |
19093 | main () | |
19094 | { | |
19095 | ||
b1fc1658 | 19096 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
19097 | |
19098 | ; | |
19099 | return 0; | |
19100 | } | |
19101 | _ACEOF | |
7083c021 | 19102 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19103 | charybdis_cv_c_gcc_w_packed=yes |
19104 | else | |
7083c021 | 19105 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 19106 | fi |
631ef239 | 19107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19108 | CFLAGS="${oldcflags}" |
19109 | fi | |
19110 | ||
19111 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
19112 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
19113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19114 | $as_echo "ok" >&6; } | |
212380e3 AC |
19115 | else |
19116 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
19117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19118 | $as_echo "no" >&6; } | |
212380e3 AC |
19119 | fi |
19120 | else | |
7083c021 AC |
19121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19122 | $as_echo "no" >&6; } | |
212380e3 AC |
19123 | fi |
19124 | ||
19125 | ||
7083c021 AC |
19126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
19127 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
19128 | if test "${GCC-no}" = yes |
19129 | then | |
b6d0720c | 19130 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 19131 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19132 | else |
19133 | ||
19134 | oldcflags="${CFLAGS-}" | |
19135 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 19136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19137 | /* end confdefs.h. */ |
19138 | ||
19139 | #include <string.h> | |
19140 | #include <stdio.h> | |
19141 | int main(void); | |
19142 | ||
19143 | int | |
19144 | main () | |
19145 | { | |
19146 | ||
b1fc1658 | 19147 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
19148 | |
19149 | ; | |
19150 | return 0; | |
19151 | } | |
19152 | _ACEOF | |
7083c021 | 19153 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19154 | charybdis_cv_c_gcc_w_nested_externs=yes |
19155 | else | |
7083c021 | 19156 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 19157 | fi |
631ef239 | 19158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19159 | CFLAGS="${oldcflags}" |
19160 | fi | |
19161 | ||
19162 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
19163 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
19164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19165 | $as_echo "ok" >&6; } | |
212380e3 AC |
19166 | else |
19167 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
19168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19169 | $as_echo "no" >&6; } | |
212380e3 AC |
19170 | fi |
19171 | else | |
7083c021 AC |
19172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19173 | $as_echo "no" >&6; } | |
212380e3 AC |
19174 | fi |
19175 | ||
19176 | ||
7083c021 AC |
19177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
19178 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
19179 | if test "${GCC-no}" = yes |
19180 | then | |
b6d0720c | 19181 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 19182 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19183 | else |
19184 | ||
19185 | oldcflags="${CFLAGS-}" | |
19186 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 19187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19188 | /* end confdefs.h. */ |
19189 | ||
19190 | #include <string.h> | |
19191 | #include <stdio.h> | |
19192 | int main(void); | |
19193 | ||
19194 | int | |
19195 | main () | |
19196 | { | |
19197 | ||
b1fc1658 | 19198 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
19199 | |
19200 | ; | |
19201 | return 0; | |
19202 | } | |
19203 | _ACEOF | |
7083c021 | 19204 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19205 | charybdis_cv_c_gcc_w_unused=yes |
19206 | else | |
7083c021 | 19207 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 19208 | fi |
631ef239 | 19209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19210 | CFLAGS="${oldcflags}" |
19211 | fi | |
19212 | ||
19213 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
19214 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
19215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19216 | $as_echo "ok" >&6; } | |
212380e3 AC |
19217 | else |
19218 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
19219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19220 | $as_echo "no" >&6; } | |
212380e3 AC |
19221 | fi |
19222 | else | |
7083c021 AC |
19223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19224 | $as_echo "no" >&6; } | |
212380e3 AC |
19225 | fi |
19226 | ||
19227 | ||
7083c021 AC |
19228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
19229 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
19230 | if test "${GCC-no}" = yes |
19231 | then | |
b6d0720c | 19232 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 19233 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19234 | else |
19235 | ||
19236 | oldcflags="${CFLAGS-}" | |
19237 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 19238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19239 | /* end confdefs.h. */ |
19240 | ||
19241 | #include <string.h> | |
19242 | #include <stdio.h> | |
19243 | int main(void); | |
19244 | ||
19245 | int | |
19246 | main () | |
19247 | { | |
19248 | ||
b1fc1658 | 19249 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
19250 | |
19251 | ; | |
19252 | return 0; | |
19253 | } | |
19254 | _ACEOF | |
7083c021 | 19255 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19256 | charybdis_cv_c_gcc_w_redundant_decls=yes |
19257 | else | |
7083c021 | 19258 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 19259 | fi |
631ef239 | 19260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19261 | CFLAGS="${oldcflags}" |
19262 | fi | |
19263 | ||
19264 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
19265 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
19266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19267 | $as_echo "ok" >&6; } | |
212380e3 AC |
19268 | else |
19269 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
19270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19271 | $as_echo "no" >&6; } | |
212380e3 AC |
19272 | fi |
19273 | else | |
7083c021 AC |
19274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19275 | $as_echo "no" >&6; } | |
212380e3 AC |
19276 | fi |
19277 | ||
19278 | ||
7083c021 AC |
19279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
19280 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
19281 | if test "${GCC-no}" = yes |
19282 | then | |
b6d0720c | 19283 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 19284 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19285 | else |
19286 | ||
19287 | oldcflags="${CFLAGS-}" | |
19288 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 19289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19290 | /* end confdefs.h. */ |
19291 | ||
19292 | #include <string.h> | |
19293 | #include <stdio.h> | |
19294 | int main(void); | |
19295 | ||
19296 | int | |
19297 | main () | |
19298 | { | |
19299 | ||
b1fc1658 | 19300 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
19301 | |
19302 | ; | |
19303 | return 0; | |
19304 | } | |
19305 | _ACEOF | |
7083c021 | 19306 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
19307 | charybdis_cv_c_gcc_w_float_equal=yes |
19308 | else | |
7083c021 | 19309 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 19310 | fi |
631ef239 | 19311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
19312 | CFLAGS="${oldcflags}" |
19313 | fi | |
19314 | ||
19315 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
19316 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
19317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
19318 | $as_echo "ok" >&6; } | |
212380e3 AC |
19319 | else |
19320 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
19321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19322 | $as_echo "no" >&6; } | |
212380e3 AC |
19323 | fi |
19324 | else | |
7083c021 AC |
19325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19326 | $as_echo "no" >&6; } | |
212380e3 AC |
19327 | fi |
19328 | ||
19329 | ||
7083c021 AC |
19330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
19331 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
19332 | if test "${GCC-no}" = yes |
19333 | then | |
b6d0720c | 19334 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 19335 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19336 | else |
19337 | ||
19338 | oldcflags="${CFLAGS-}" | |
4a584d41 | 19339 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 19340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19341 | /* end confdefs.h. */ |
19342 | ||
19343 | #include <string.h> | |
19344 | #include <stdio.h> | |
19345 | int main(void); | |
19346 | ||
19347 | int | |
19348 | main () | |
19349 | { | |
7083c021 AC |
19350 | |
19351 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
19352 | ||
212380e3 AC |
19353 | ; |
19354 | return 0; | |
19355 | } | |
19356 | _ACEOF | |
7083c021 AC |
19357 | if ac_fn_c_try_compile "$LINENO"; then : |
19358 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 19359 | else |
7083c021 AC |
19360 | charybdis_cv_c_gcc_w_format=no |
19361 | fi | |
19362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19363 | CFLAGS="${oldcflags}" | |
19364 | fi | |
19365 | ||
19366 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
19367 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
19368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
19369 | $as_echo "ok" >&6; } | |
19370 | else | |
19371 | charybdis_cv_c_gcc_w_format='' | |
19372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19373 | $as_echo "no" >&6; } | |
19374 | fi | |
19375 | else | |
19376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19377 | $as_echo "no" >&6; } | |
19378 | fi | |
19379 | ||
19380 | ||
19381 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 19382 | |
212380e3 | 19383 | fi |
631ef239 | 19384 | |
7083c021 AC |
19385 | |
19386 | if test "$shared_modules" = no; then | |
19387 | DYNLINK_C="" | |
19388 | MOD_TARGET="libmodules.a" | |
19389 | MODULES_LIBS="../modules/libmodules.a" | |
19390 | SEDOBJ="" | |
19391 | ||
19392 | $as_echo "#define STATIC_MODULES 1" >>confdefs.h | |
19393 | ||
19394 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 | |
19395 | $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
212380e3 | 19396 | fi |
7083c021 AC |
19397 | |
19398 | if test "$shared_modules" = yes; then | |
19399 | ||
19400 | ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist" | |
b6d0720c | 19401 | if test "x$ac_cv_func_nlist" = xyes; then : |
7083c021 | 19402 | |
212380e3 | 19403 | else |
7083c021 AC |
19404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5 |
19405 | $as_echo_n "checking for nlist in -ldl... " >&6; } | |
b6d0720c | 19406 | if ${ac_cv_lib_dl_nlist+:} false; then : |
7083c021 | 19407 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19408 | else |
19409 | ac_check_lib_save_LIBS=$LIBS | |
19410 | LIBS="-ldl $LIBS" | |
7083c021 | 19411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19412 | /* end confdefs.h. */ |
19413 | ||
631ef239 AC |
19414 | /* Override any GCC internal prototype to avoid an error. |
19415 | Use char because int might match the return type of a GCC | |
19416 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
19417 | #ifdef __cplusplus |
19418 | extern "C" | |
19419 | #endif | |
212380e3 AC |
19420 | char nlist (); |
19421 | int | |
19422 | main () | |
19423 | { | |
631ef239 | 19424 | return nlist (); |
212380e3 AC |
19425 | ; |
19426 | return 0; | |
19427 | } | |
19428 | _ACEOF | |
7083c021 | 19429 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
19430 | ac_cv_lib_dl_nlist=yes |
19431 | else | |
7083c021 | 19432 | ac_cv_lib_dl_nlist=no |
212380e3 | 19433 | fi |
7083c021 AC |
19434 | rm -f core conftest.err conftest.$ac_objext \ |
19435 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
19436 | LIBS=$ac_check_lib_save_LIBS |
19437 | fi | |
7083c021 AC |
19438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5 |
19439 | $as_echo "$ac_cv_lib_dl_nlist" >&6; } | |
b6d0720c | 19440 | if test "x$ac_cv_lib_dl_nlist" = xyes; then : |
212380e3 AC |
19441 | nlist_lib="-ldl" |
19442 | else | |
7083c021 AC |
19443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 |
19444 | $as_echo_n "checking for nlist in -lelf... " >&6; } | |
b6d0720c | 19445 | if ${ac_cv_lib_elf_nlist+:} false; then : |
7083c021 | 19446 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19447 | else |
19448 | ac_check_lib_save_LIBS=$LIBS | |
19449 | LIBS="-lelf $LIBS" | |
7083c021 | 19450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
19451 | /* end confdefs.h. */ |
19452 | ||
631ef239 AC |
19453 | /* Override any GCC internal prototype to avoid an error. |
19454 | Use char because int might match the return type of a GCC | |
19455 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
19456 | #ifdef __cplusplus |
19457 | extern "C" | |
19458 | #endif | |
212380e3 AC |
19459 | char nlist (); |
19460 | int | |
19461 | main () | |
19462 | { | |
631ef239 | 19463 | return nlist (); |
212380e3 AC |
19464 | ; |
19465 | return 0; | |
19466 | } | |
19467 | _ACEOF | |
7083c021 | 19468 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
19469 | ac_cv_lib_elf_nlist=yes |
19470 | else | |
7083c021 | 19471 | ac_cv_lib_elf_nlist=no |
212380e3 | 19472 | fi |
7083c021 AC |
19473 | rm -f core conftest.err conftest.$ac_objext \ |
19474 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
19475 | LIBS=$ac_check_lib_save_LIBS |
19476 | fi | |
7083c021 AC |
19477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 |
19478 | $as_echo "$ac_cv_lib_elf_nlist" >&6; } | |
b6d0720c | 19479 | if test "x$ac_cv_lib_elf_nlist" = xyes; then : |
212380e3 AC |
19480 | nlist_lib="-lelf" |
19481 | fi | |
19482 | ||
19483 | ||
19484 | fi | |
19485 | ||
19486 | ||
19487 | fi | |
19488 | ||
19489 | ||
7083c021 | 19490 | ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default" |
b6d0720c | 19491 | if test "x$ac_cv_header_libelf_nlist_h" = xyes; then : |
212380e3 AC |
19492 | nlist_h="libelf/nlist.h" |
19493 | fi | |
19494 | ||
19495 | ||
7083c021 | 19496 | ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default" |
b6d0720c | 19497 | if test "x$ac_cv_header_elf_nlist_h" = xyes; then : |
212380e3 AC |
19498 | nlist_h="elf/nlist.h" |
19499 | fi | |
19500 | ||
19501 | ||
7083c021 | 19502 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
b6d0720c | 19503 | if test "x$ac_cv_header_nlist_h" = xyes; then : |
212380e3 AC |
19504 | nlist_h="nlist.h" |
19505 | fi | |
19506 | ||
19507 | ||
19508 | if test x"$nlist_h" = "x"; then | |
19509 | ||
19510 | cat >>confdefs.h <<_ACEOF | |
19511 | #define SYMBOL_PREFIX "" | |
19512 | _ACEOF | |
19513 | ||
19514 | else | |
7083c021 AC |
19515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5 |
19516 | $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; } | |
b6d0720c | 19517 | if ${symbol_underscores+:} false; then : |
7083c021 | 19518 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
19519 | else |
19520 | ||
19521 | cat << EOF > conftest.c | |
19522 | #include <$nlist_h> | |
19523 | #include <stdio.h> | |
19524 | #include <stdlib.h> | |
19525 | void _modinit(void); | |
19526 | int main(int argc, char *argv[]) { | |
19527 | int i; | |
19528 | struct nlist nl[5]; | |
19529 | ||
19530 | /* fill the names in this way, so it'll work almost everywhere */ | |
19531 | nl[0].n_name = "_modinit"; | |
19532 | nl[1].n_name = "__modinit"; | |
19533 | nl[2].n_name = "___modinit"; | |
19534 | nl[3].n_name = "____modinit"; | |
19535 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
19536 | ||
19537 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
19538 | for(i = 0; i < 4; i++) { | |
19539 | if(nl[i].n_value != NULL) | |
19540 | { | |
19541 | int j; | |
19542 | for(j = 0; j < i; j++) | |
19543 | printf("_"); | |
19544 | exit(i); | |
19545 | } | |
19546 | } | |
19547 | exit(-1); | |
19548 | } | |
19549 | void _modinit(void) { return; } | |
19550 | EOF | |
19551 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
19552 | symbol_underscores=`./conftest conftest` | |
7083c021 AC |
19553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5 |
19554 | $as_echo "$symbol_underscores" >&6; } | |
212380e3 AC |
19555 | $RM -f conftest conftest.c |
19556 | ||
19557 | fi | |
19558 | ||
19559 | ||
19560 | cat >>confdefs.h <<_ACEOF | |
19561 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
19562 | _ACEOF | |
19563 | ||
19564 | fi | |
19565 | fi | |
19566 | ||
d2c5159a JT |
19567 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
19568 | ||
212380e3 AC |
19569 | |
19570 | ||
19571 | ||
19572 | ||
19573 | ||
19574 | ||
19575 | ||
19576 | ||
19577 | ||
19578 | ||
19579 | ||
19580 | ||
19581 | ||
19582 | if test "$prefix" = "NONE"; then | |
19583 | ||
19584 | cat >>confdefs.h <<_ACEOF | |
19585 | #define IRCD_PREFIX "$ac_default_prefix" | |
19586 | _ACEOF | |
19587 | ||
19588 | ||
19589 | else | |
19590 | ||
19591 | ||
19592 | prefix=`echo $prefix | sed 's/\/$//'` | |
19593 | ||
19594 | cat >>confdefs.h <<_ACEOF | |
19595 | #define IRCD_PREFIX "$prefix" | |
19596 | _ACEOF | |
19597 | ||
19598 | ||
19599 | fi | |
19600 | ||
2eff3833 | 19601 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" |
9f9b7042 | 19602 | |
2eff3833 | 19603 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
19604 | |
19605 | ||
19606 | cat >confcache <<\_ACEOF | |
19607 | # This file is a shell script that caches the results of configure | |
19608 | # tests run on this system so they can be shared between configure | |
19609 | # scripts and configure runs, see configure's option --config-cache. | |
19610 | # It is not useful on other systems. If it contains results you don't | |
19611 | # want to keep, you may remove or edit it. | |
19612 | # | |
19613 | # config.status only pays attention to the cache file if you give it | |
19614 | # the --recheck option to rerun configure. | |
19615 | # | |
19616 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19617 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19618 | # following values. | |
19619 | ||
19620 | _ACEOF | |
19621 | ||
19622 | # The following way of writing the cache mishandles newlines in values, | |
19623 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 19624 | # So, we kill variables containing newlines. |
212380e3 AC |
19625 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19626 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
19627 | ( |
19628 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
19629 | eval ac_val=\$$ac_var | |
19630 | case $ac_val in #( | |
19631 | *${as_nl}*) | |
19632 | case $ac_var in #( | |
7083c021 AC |
19633 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
19634 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
19635 | esac |
19636 | case $ac_var in #( | |
19637 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
19638 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
19639 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
19640 | esac ;; |
19641 | esac | |
19642 | done | |
19643 | ||
212380e3 | 19644 | (set) 2>&1 | |
631ef239 AC |
19645 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
19646 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
19647 | # `set' does not quote correctly, so add quotes: double-quote |
19648 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
19649 | sed -n \ |
19650 | "s/'/'\\\\''/g; | |
19651 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 19652 | ;; #( |
212380e3 AC |
19653 | *) |
19654 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 19655 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 19656 | ;; |
631ef239 AC |
19657 | esac | |
19658 | sort | |
19659 | ) | | |
212380e3 | 19660 | sed ' |
631ef239 | 19661 | /^ac_cv_env_/b end |
212380e3 | 19662 | t clear |
631ef239 | 19663 | :clear |
212380e3 AC |
19664 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19665 | t end | |
631ef239 AC |
19666 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19667 | :end' >>confcache | |
19668 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19669 | if test -w "$cache_file"; then | |
b6d0720c | 19670 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
19671 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
19672 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
19673 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
19674 | cat confcache >"$cache_file" | |
19675 | else | |
19676 | case $cache_file in #( | |
19677 | */* | ?:*) | |
19678 | mv -f confcache "$cache_file"$$ && | |
19679 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
19680 | *) | |
19681 | mv -f confcache "$cache_file" ;; | |
19682 | esac | |
19683 | fi | |
19684 | fi | |
212380e3 | 19685 | else |
7083c021 AC |
19686 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
19687 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
19688 | fi |
19689 | fi | |
19690 | rm -f confcache | |
19691 | ||
19692 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19693 | # Let make expand exec_prefix. | |
19694 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19695 | ||
212380e3 AC |
19696 | DEFS=-DHAVE_CONFIG_H |
19697 | ||
19698 | ac_libobjs= | |
19699 | ac_ltlibobjs= | |
b6d0720c | 19700 | U= |
212380e3 AC |
19701 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19702 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 19703 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 19704 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
19705 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
19706 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
19707 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
19708 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
19709 | done |
19710 | LIBOBJS=$ac_libobjs | |
19711 | ||
19712 | LTLIBOBJS=$ac_ltlibobjs | |
19713 | ||
19714 | ||
c52df125 AC |
19715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
19716 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
19717 | if test -n "$am_sleep_pid"; then | |
19718 | # Hide warnings about reused PIDs. | |
19719 | wait $am_sleep_pid 2>/dev/null | |
19720 | fi | |
19721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
19722 | $as_echo "done" >&6; } | |
19723 | if test -n "$EXEEXT"; then | |
19724 | am__EXEEXT_TRUE= | |
19725 | am__EXEEXT_FALSE='#' | |
19726 | else | |
19727 | am__EXEEXT_TRUE='#' | |
19728 | am__EXEEXT_FALSE= | |
19729 | fi | |
19730 | ||
19731 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
19732 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
19733 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19734 | fi | |
19735 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19736 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
19737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19738 | fi | |
19739 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | |
19740 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
19741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19742 | fi | |
19743 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
19744 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
19745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19746 | fi | |
19747 | LT_CONFIG_H=include/setup.h | |
19748 | ||
19749 | _ltdl_libobjs= | |
19750 | _ltdl_ltlibobjs= | |
19751 | if test -n "$_LT_LIBOBJS"; then | |
19752 | # Remove the extension. | |
19753 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
19754 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
19755 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
19756 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
19757 | done | |
19758 | fi | |
19759 | ltdl_LIBOBJS=$_ltdl_libobjs | |
19760 | ||
19761 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
19762 | ||
19763 | ||
19764 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
19765 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
19766 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19767 | fi | |
19768 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19769 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
19770 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19771 | fi | |
212380e3 | 19772 | |
7083c021 AC |
19773 | |
19774 | ||
b6d0720c | 19775 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 19776 | ac_write_fail=0 |
212380e3 AC |
19777 | ac_clean_files_save=$ac_clean_files |
19778 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
19779 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
19780 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19781 | as_write_fail=0 | |
19782 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
19783 | #! $SHELL |
19784 | # Generated by $as_me. | |
19785 | # Run this file to recreate the current configuration. | |
19786 | # Compiler output produced by configure, useful for debugging | |
19787 | # configure, is in config.log if it exists. | |
19788 | ||
19789 | debug=false | |
19790 | ac_cs_recheck=false | |
19791 | ac_cs_silent=false | |
212380e3 | 19792 | |
7083c021 AC |
19793 | SHELL=\${CONFIG_SHELL-$SHELL} |
19794 | export SHELL | |
19795 | _ASEOF | |
19796 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19797 | ## -------------------- ## | |
19798 | ## M4sh Initialization. ## | |
19799 | ## -------------------- ## | |
212380e3 | 19800 | |
631ef239 AC |
19801 | # Be more Bourne compatible |
19802 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 19803 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
19804 | emulate sh |
19805 | NULLCMD=: | |
7083c021 | 19806 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
19807 | # is contrary to our usage. Disable this feature. |
19808 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 19809 | setopt NO_GLOB_SUBST |
212380e3 | 19810 | else |
7083c021 AC |
19811 | case `(set -o) 2>/dev/null` in #( |
19812 | *posix*) : | |
19813 | set -o posix ;; #( | |
19814 | *) : | |
19815 | ;; | |
631ef239 | 19816 | esac |
212380e3 AC |
19817 | fi |
19818 | ||
19819 | ||
7083c021 AC |
19820 | as_nl=' |
19821 | ' | |
19822 | export as_nl | |
19823 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19824 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19825 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19826 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19827 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19828 | # but without wasting forks for bash or zsh. | |
19829 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19830 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19831 | as_echo='print -r --' | |
19832 | as_echo_n='print -rn --' | |
19833 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19834 | as_echo='printf %s\n' | |
19835 | as_echo_n='printf %s' | |
19836 | else | |
19837 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19838 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19839 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 19840 | else |
7083c021 AC |
19841 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
19842 | as_echo_n_body='eval | |
19843 | arg=$1; | |
19844 | case $arg in #( | |
19845 | *"$as_nl"*) | |
19846 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19847 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19848 | esac; | |
19849 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19850 | ' | |
19851 | export as_echo_n_body | |
19852 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 19853 | fi |
7083c021 AC |
19854 | export as_echo_body |
19855 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
19856 | fi |
19857 | ||
7083c021 AC |
19858 | # The user is always right. |
19859 | if test "${PATH_SEPARATOR+set}" != set; then | |
19860 | PATH_SEPARATOR=: | |
19861 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19862 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19863 | PATH_SEPARATOR=';' | |
19864 | } | |
631ef239 AC |
19865 | fi |
19866 | ||
19867 | ||
19868 | # IFS | |
19869 | # We need space, tab and new line, in precisely that order. Quoting is | |
19870 | # there to prevent editors from complaining about space-tab. | |
19871 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19872 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
19873 | IFS=" "" $as_nl" |
19874 | ||
19875 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 19876 | as_myself= |
7083c021 | 19877 | case $0 in #(( |
631ef239 AC |
19878 | *[\\/]* ) as_myself=$0 ;; |
19879 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19880 | for as_dir in $PATH | |
19881 | do | |
19882 | IFS=$as_save_IFS | |
19883 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
19884 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
19885 | done | |
631ef239 AC |
19886 | IFS=$as_save_IFS |
19887 | ||
19888 | ;; | |
19889 | esac | |
19890 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19891 | # in which case we are not to be found in the path. | |
19892 | if test "x$as_myself" = x; then | |
19893 | as_myself=$0 | |
19894 | fi | |
19895 | if test ! -f "$as_myself"; then | |
7083c021 AC |
19896 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
19897 | exit 1 | |
631ef239 AC |
19898 | fi |
19899 | ||
7083c021 AC |
19900 | # Unset variables that we do not need and which cause bugs (e.g. in |
19901 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19902 | # suppresses any "Segmentation fault" message there. '((' could | |
19903 | # trigger a bug in pdksh 5.2.14. | |
19904 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19905 | do eval test x\${$as_var+set} = xset \ | |
19906 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 19907 | done |
212380e3 AC |
19908 | PS1='$ ' |
19909 | PS2='> ' | |
19910 | PS4='+ ' | |
19911 | ||
7083c021 AC |
19912 | # NLS nuisances. |
19913 | LC_ALL=C | |
19914 | export LC_ALL | |
19915 | LANGUAGE=C | |
19916 | export LANGUAGE | |
19917 | ||
19918 | # CDPATH. | |
19919 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19920 | ||
19921 | ||
b6d0720c AC |
19922 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
19923 | # ---------------------------------------- | |
7083c021 AC |
19924 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
19925 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 19926 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
19927 | as_fn_error () |
19928 | { | |
b6d0720c AC |
19929 | as_status=$1; test $as_status -eq 0 && as_status=1 |
19930 | if test "$4"; then | |
19931 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19932 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 19933 | fi |
b6d0720c | 19934 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
19935 | as_fn_exit $as_status |
19936 | } # as_fn_error | |
19937 | ||
19938 | ||
19939 | # as_fn_set_status STATUS | |
19940 | # ----------------------- | |
19941 | # Set $? to STATUS, without forking. | |
19942 | as_fn_set_status () | |
19943 | { | |
19944 | return $1 | |
19945 | } # as_fn_set_status | |
19946 | ||
19947 | # as_fn_exit STATUS | |
19948 | # ----------------- | |
19949 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19950 | as_fn_exit () | |
19951 | { | |
19952 | set +e | |
19953 | as_fn_set_status $1 | |
19954 | exit $1 | |
19955 | } # as_fn_exit | |
19956 | ||
19957 | # as_fn_unset VAR | |
19958 | # --------------- | |
19959 | # Portably unset VAR. | |
19960 | as_fn_unset () | |
19961 | { | |
19962 | { eval $1=; unset $1;} | |
19963 | } | |
19964 | as_unset=as_fn_unset | |
19965 | # as_fn_append VAR VALUE | |
19966 | # ---------------------- | |
19967 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19968 | # advantage of any shell optimizations that allow amortized linear growth over | |
19969 | # repeated appends, instead of the typical quadratic growth present in naive | |
19970 | # implementations. | |
19971 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19972 | eval 'as_fn_append () | |
19973 | { | |
19974 | eval $1+=\$2 | |
19975 | }' | |
19976 | else | |
19977 | as_fn_append () | |
19978 | { | |
19979 | eval $1=\$$1\$2 | |
19980 | } | |
19981 | fi # as_fn_append | |
19982 | ||
19983 | # as_fn_arith ARG... | |
19984 | # ------------------ | |
19985 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19986 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19987 | # must be portable across $(()) and expr. | |
19988 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19989 | eval 'as_fn_arith () | |
19990 | { | |
19991 | as_val=$(( $* )) | |
19992 | }' | |
19993 | else | |
19994 | as_fn_arith () | |
19995 | { | |
19996 | as_val=`expr "$@" || test $? -eq 1` | |
19997 | } | |
19998 | fi # as_fn_arith | |
19999 | ||
212380e3 | 20000 | |
631ef239 AC |
20001 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20002 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
20003 | as_expr=expr |
20004 | else | |
20005 | as_expr=false | |
20006 | fi | |
20007 | ||
631ef239 | 20008 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
20009 | as_basename=basename |
20010 | else | |
20011 | as_basename=false | |
20012 | fi | |
20013 | ||
7083c021 AC |
20014 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20015 | as_dirname=dirname | |
20016 | else | |
20017 | as_dirname=false | |
20018 | fi | |
212380e3 | 20019 | |
631ef239 | 20020 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
20021 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20022 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 20023 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 20024 | $as_echo X/"$0" | |
631ef239 AC |
20025 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20026 | s//\1/ | |
20027 | q | |
20028 | } | |
20029 | /^X\/\(\/\/\)$/{ | |
20030 | s//\1/ | |
20031 | q | |
20032 | } | |
20033 | /^X\/\(\/\).*/{ | |
20034 | s//\1/ | |
20035 | q | |
20036 | } | |
20037 | s/.*/./; q'` | |
212380e3 | 20038 | |
7083c021 AC |
20039 | # Avoid depending upon Character Ranges. |
20040 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20041 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20042 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20043 | as_cr_digits='0123456789' | |
20044 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
20045 | |
20046 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 20047 | case `echo -n x` in #((((( |
631ef239 | 20048 | -n*) |
7083c021 | 20049 | case `echo 'xy\c'` in |
631ef239 | 20050 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
20051 | xy) ECHO_C='\c';; |
20052 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20053 | ECHO_T=' ';; | |
631ef239 AC |
20054 | esac;; |
20055 | *) | |
20056 | ECHO_N='-n';; | |
212380e3 AC |
20057 | esac |
20058 | ||
212380e3 | 20059 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
20060 | if test -d conf$$.dir; then |
20061 | rm -f conf$$.dir/conf$$.file | |
20062 | else | |
20063 | rm -f conf$$.dir | |
7083c021 AC |
20064 | mkdir conf$$.dir 2>/dev/null |
20065 | fi | |
20066 | if (echo >conf$$.file) 2>/dev/null; then | |
20067 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20068 | as_ln_s='ln -s' | |
20069 | # ... but there are two gotchas: | |
20070 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20071 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 20072 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 20073 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 20074 | as_ln_s='cp -pR' |
7083c021 AC |
20075 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20076 | as_ln_s=ln | |
20077 | else | |
2eff3833 | 20078 | as_ln_s='cp -pR' |
7083c021 | 20079 | fi |
212380e3 | 20080 | else |
2eff3833 | 20081 | as_ln_s='cp -pR' |
212380e3 | 20082 | fi |
631ef239 AC |
20083 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20084 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 20085 | |
7083c021 AC |
20086 | |
20087 | # as_fn_mkdir_p | |
20088 | # ------------- | |
20089 | # Create "$as_dir" as a directory, including parents if necessary. | |
20090 | as_fn_mkdir_p () | |
20091 | { | |
20092 | ||
20093 | case $as_dir in #( | |
20094 | -*) as_dir=./$as_dir;; | |
20095 | esac | |
20096 | test -d "$as_dir" || eval $as_mkdir_p || { | |
20097 | as_dirs= | |
20098 | while :; do | |
20099 | case $as_dir in #( | |
20100 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20101 | *) as_qdir=$as_dir;; | |
20102 | esac | |
20103 | as_dirs="'$as_qdir' $as_dirs" | |
20104 | as_dir=`$as_dirname -- "$as_dir" || | |
20105 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20106 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20107 | X"$as_dir" : 'X\(//\)$' \| \ | |
20108 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20109 | $as_echo X"$as_dir" | | |
20110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20111 | s//\1/ | |
20112 | q | |
20113 | } | |
20114 | /^X\(\/\/\)[^/].*/{ | |
20115 | s//\1/ | |
20116 | q | |
20117 | } | |
20118 | /^X\(\/\/\)$/{ | |
20119 | s//\1/ | |
20120 | q | |
20121 | } | |
20122 | /^X\(\/\).*/{ | |
20123 | s//\1/ | |
20124 | q | |
20125 | } | |
20126 | s/.*/./; q'` | |
20127 | test -d "$as_dir" && break | |
20128 | done | |
20129 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 20130 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
20131 | |
20132 | ||
20133 | } # as_fn_mkdir_p | |
212380e3 | 20134 | if mkdir -p . 2>/dev/null; then |
7083c021 | 20135 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
20136 | else |
20137 | test -d ./-p && rmdir ./-p | |
20138 | as_mkdir_p=false | |
20139 | fi | |
20140 | ||
2eff3833 JT |
20141 | |
20142 | # as_fn_executable_p FILE | |
20143 | # ----------------------- | |
20144 | # Test if FILE is an executable regular file. | |
20145 | as_fn_executable_p () | |
20146 | { | |
20147 | test -f "$1" && test -x "$1" | |
20148 | } # as_fn_executable_p | |
20149 | as_test_x='test -x' | |
20150 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
20151 | |
20152 | # Sed expression to map a string onto a valid CPP name. | |
20153 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20154 | ||
20155 | # Sed expression to map a string onto a valid variable name. | |
20156 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20157 | ||
20158 | ||
212380e3 | 20159 | exec 6>&1 |
7083c021 AC |
20160 | ## ----------------------------------- ## |
20161 | ## Main body of $CONFIG_STATUS script. ## | |
20162 | ## ----------------------------------- ## | |
20163 | _ASEOF | |
20164 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 20165 | |
7083c021 AC |
20166 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20167 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 20168 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
20169 | # values after options handling. |
20170 | ac_log=" | |
c52df125 | 20171 | This file was extended by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 20172 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
20173 | |
20174 | CONFIG_FILES = $CONFIG_FILES | |
20175 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20176 | CONFIG_LINKS = $CONFIG_LINKS | |
20177 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20178 | $ $0 $@ | |
20179 | ||
631ef239 AC |
20180 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20181 | " | |
20182 | ||
212380e3 AC |
20183 | _ACEOF |
20184 | ||
7083c021 AC |
20185 | case $ac_config_files in *" |
20186 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20187 | esac | |
20188 | ||
20189 | case $ac_config_headers in *" | |
20190 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
20191 | esac | |
20192 | ||
20193 | ||
20194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 20195 | # Files that config.status was made for. |
631ef239 AC |
20196 | config_files="$ac_config_files" |
20197 | config_headers="$ac_config_headers" | |
9f9b7042 | 20198 | config_commands="$ac_config_commands" |
212380e3 | 20199 | |
631ef239 | 20200 | _ACEOF |
212380e3 | 20201 | |
7083c021 | 20202 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 20203 | ac_cs_usage="\ |
7083c021 AC |
20204 | \`$as_me' instantiates files and other configuration actions |
20205 | from templates according to the current configuration. Unless the files | |
20206 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 20207 | |
7083c021 | 20208 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
20209 | |
20210 | -h, --help print this help, then exit | |
631ef239 | 20211 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 20212 | --config print configuration, then exit |
7083c021 AC |
20213 | -q, --quiet, --silent |
20214 | do not print progress messages | |
212380e3 AC |
20215 | -d, --debug don't remove temporary files |
20216 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
20217 | --file=FILE[:TEMPLATE] |
20218 | instantiate the configuration file FILE | |
20219 | --header=FILE[:TEMPLATE] | |
20220 | instantiate the configuration header FILE | |
212380e3 AC |
20221 | |
20222 | Configuration files: | |
20223 | $config_files | |
20224 | ||
20225 | Configuration headers: | |
20226 | $config_headers | |
20227 | ||
9f9b7042 NPB |
20228 | Configuration commands: |
20229 | $config_commands | |
20230 | ||
7083c021 | 20231 | Report bugs to the package provider." |
212380e3 | 20232 | |
631ef239 | 20233 | _ACEOF |
7083c021 | 20234 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 20235 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 20236 | ac_cs_version="\\ |
c52df125 | 20237 | charybdis config.status 3.6.0-dev |
2eff3833 | 20238 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 20239 | with options \\"\$ac_cs_config\\" |
212380e3 | 20240 | |
2eff3833 | 20241 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
20242 | This config.status script is free software; the Free Software Foundation |
20243 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
20244 | |
20245 | ac_pwd='$ac_pwd' | |
20246 | srcdir='$srcdir' | |
20247 | INSTALL='$INSTALL' | |
c52df125 AC |
20248 | MKDIR_P='$MKDIR_P' |
20249 | AWK='$AWK' | |
7083c021 | 20250 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
20251 | _ACEOF |
20252 | ||
7083c021 AC |
20253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20254 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
20255 | ac_need_defaults=: |
20256 | while test $# != 0 | |
20257 | do | |
20258 | case $1 in | |
b6d0720c | 20259 | --*=?*) |
631ef239 AC |
20260 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20261 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
20262 | ac_shift=: |
20263 | ;; | |
b6d0720c AC |
20264 | --*=) |
20265 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20266 | ac_optarg= | |
20267 | ac_shift=: | |
20268 | ;; | |
631ef239 | 20269 | *) |
212380e3 AC |
20270 | ac_option=$1 |
20271 | ac_optarg=$2 | |
20272 | ac_shift=shift | |
20273 | ;; | |
212380e3 AC |
20274 | esac |
20275 | ||
20276 | case $ac_option in | |
20277 | # Handling of the options. | |
212380e3 AC |
20278 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20279 | ac_cs_recheck=: ;; | |
631ef239 | 20280 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 20281 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
20282 | --config | --confi | --conf | --con | --co | --c ) |
20283 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 20284 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
20285 | debug=: ;; |
20286 | --file | --fil | --fi | --f ) | |
20287 | $ac_shift | |
7083c021 AC |
20288 | case $ac_optarg in |
20289 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 20290 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
20291 | esac |
20292 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
20293 | ac_need_defaults=false;; |
20294 | --header | --heade | --head | --hea ) | |
20295 | $ac_shift | |
7083c021 AC |
20296 | case $ac_optarg in |
20297 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20298 | esac | |
20299 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 20300 | ac_need_defaults=false;; |
631ef239 AC |
20301 | --he | --h) |
20302 | # Conflict between --help and --header | |
b6d0720c | 20303 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 20304 | Try \`$0 --help' for more information.";; |
631ef239 | 20305 | --help | --hel | -h ) |
7083c021 | 20306 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
20307 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20308 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
20309 | ac_cs_silent=: ;; | |
20310 | ||
20311 | # This is an error. | |
b6d0720c | 20312 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 20313 | Try \`$0 --help' for more information." ;; |
212380e3 | 20314 | |
7083c021 | 20315 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 20316 | ac_need_defaults=false ;; |
212380e3 AC |
20317 | |
20318 | esac | |
20319 | shift | |
20320 | done | |
20321 | ||
20322 | ac_configure_extra_args= | |
20323 | ||
20324 | if $ac_cs_silent; then | |
20325 | exec 6>/dev/null | |
20326 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
20327 | fi | |
20328 | ||
20329 | _ACEOF | |
7083c021 | 20330 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 20331 | if \$ac_cs_recheck; then |
2eff3833 | 20332 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
20333 | shift |
20334 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
20335 | CONFIG_SHELL='$SHELL' | |
631ef239 | 20336 | export CONFIG_SHELL |
7083c021 | 20337 | exec "\$@" |
212380e3 AC |
20338 | fi |
20339 | ||
20340 | _ACEOF | |
7083c021 | 20341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
20342 | exec 5>>config.log |
20343 | { | |
20344 | echo | |
20345 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20346 | ## Running $as_me. ## | |
20347 | _ASBOX | |
7083c021 | 20348 | $as_echo "$ac_log" |
631ef239 | 20349 | } >&5 |
212380e3 | 20350 | |
631ef239 | 20351 | _ACEOF |
7083c021 | 20352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c52df125 AC |
20353 | # |
20354 | # INIT-COMMANDS | |
20355 | # | |
20356 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
20357 | ||
20358 | ||
20359 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
20360 | # if CDPATH is set. | |
20361 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20362 | ||
20363 | sed_quote_subst='$sed_quote_subst' | |
20364 | double_quote_subst='$double_quote_subst' | |
20365 | delay_variable_subst='$delay_variable_subst' | |
20366 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
20367 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
20368 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
20369 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
20370 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
20371 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
20372 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
20373 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
20374 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
20375 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
20376 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
20377 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
20378 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
20379 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
20380 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
20381 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
20382 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
20383 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
20384 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
20385 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
20386 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
20387 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
20388 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
20389 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
20390 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
20391 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
20392 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
20393 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
20394 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
20395 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
20396 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
20397 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
20398 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
20399 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
20400 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
20401 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
20402 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
20403 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
20404 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
20405 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
20406 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
20407 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
20408 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
20409 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
20410 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
20411 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20412 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20413 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
20414 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
20415 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
20416 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
20417 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
20418 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
20419 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
20420 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
20421 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
20422 | 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"`' | |
20423 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
20424 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
20425 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
20426 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
20427 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
20428 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
20429 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
20430 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
20431 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
20432 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
20433 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
20434 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
20435 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
20436 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
20437 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
20438 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
20439 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
20440 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
20441 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
20442 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
20443 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
20444 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
20445 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
20446 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
20447 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
20448 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
20449 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
20450 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
20451 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
20452 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
20453 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
20454 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
20455 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
20456 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
20457 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
20458 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
20459 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
20460 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
20461 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
20462 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
20463 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
20464 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
20465 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
20466 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
20467 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
20468 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
20469 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
20470 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
20471 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
20472 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
20473 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
20474 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
20475 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
20476 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
20477 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
20478 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
20479 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
20480 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
20481 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
20482 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
20483 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20484 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20485 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
20486 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
20487 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
20488 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
20489 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
20490 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
20491 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
20492 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
20493 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
20494 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
20495 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
20496 | ||
20497 | LTCC='$LTCC' | |
20498 | LTCFLAGS='$LTCFLAGS' | |
20499 | compiler='$compiler_DEFAULT' | |
20500 | ||
20501 | # A function that is used when there is no print builtin or printf. | |
20502 | func_fallback_echo () | |
20503 | { | |
20504 | eval 'cat <<_LTECHO_EOF | |
20505 | \$1 | |
20506 | _LTECHO_EOF' | |
20507 | } | |
20508 | ||
20509 | # Quote evaled strings. | |
20510 | for var in SHELL \ | |
20511 | ECHO \ | |
20512 | PATH_SEPARATOR \ | |
20513 | SED \ | |
20514 | GREP \ | |
20515 | EGREP \ | |
20516 | FGREP \ | |
20517 | LD \ | |
20518 | NM \ | |
20519 | LN_S \ | |
20520 | lt_SP2NL \ | |
20521 | lt_NL2SP \ | |
20522 | reload_flag \ | |
20523 | OBJDUMP \ | |
20524 | deplibs_check_method \ | |
20525 | file_magic_cmd \ | |
20526 | file_magic_glob \ | |
20527 | want_nocaseglob \ | |
20528 | DLLTOOL \ | |
20529 | sharedlib_from_linklib_cmd \ | |
20530 | AR \ | |
20531 | AR_FLAGS \ | |
20532 | archiver_list_spec \ | |
20533 | STRIP \ | |
20534 | RANLIB \ | |
20535 | CC \ | |
20536 | CFLAGS \ | |
20537 | compiler \ | |
20538 | lt_cv_sys_global_symbol_pipe \ | |
20539 | lt_cv_sys_global_symbol_to_cdecl \ | |
20540 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20541 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
20542 | nm_file_list_spec \ | |
20543 | lt_prog_compiler_no_builtin_flag \ | |
20544 | lt_prog_compiler_pic \ | |
20545 | lt_prog_compiler_wl \ | |
20546 | lt_prog_compiler_static \ | |
20547 | lt_cv_prog_compiler_c_o \ | |
20548 | need_locks \ | |
20549 | MANIFEST_TOOL \ | |
20550 | DSYMUTIL \ | |
20551 | NMEDIT \ | |
20552 | LIPO \ | |
20553 | OTOOL \ | |
20554 | OTOOL64 \ | |
20555 | shrext_cmds \ | |
20556 | export_dynamic_flag_spec \ | |
20557 | whole_archive_flag_spec \ | |
20558 | compiler_needs_object \ | |
20559 | with_gnu_ld \ | |
20560 | allow_undefined_flag \ | |
20561 | no_undefined_flag \ | |
20562 | hardcode_libdir_flag_spec \ | |
20563 | hardcode_libdir_separator \ | |
20564 | exclude_expsyms \ | |
20565 | include_expsyms \ | |
20566 | file_list_spec \ | |
20567 | variables_saved_for_relink \ | |
20568 | libname_spec \ | |
20569 | library_names_spec \ | |
20570 | soname_spec \ | |
20571 | install_override_mode \ | |
20572 | finish_eval \ | |
20573 | old_striplib \ | |
20574 | striplib; do | |
20575 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
20576 | *[\\\\\\\`\\"\\\$]*) | |
20577 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
20578 | ;; | |
20579 | *) | |
20580 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20581 | ;; | |
20582 | esac | |
20583 | done | |
20584 | ||
20585 | # Double-quote double-evaled strings. | |
20586 | for var in reload_cmds \ | |
20587 | old_postinstall_cmds \ | |
20588 | old_postuninstall_cmds \ | |
20589 | old_archive_cmds \ | |
20590 | extract_expsyms_cmds \ | |
20591 | old_archive_from_new_cmds \ | |
20592 | old_archive_from_expsyms_cmds \ | |
20593 | archive_cmds \ | |
20594 | archive_expsym_cmds \ | |
20595 | module_cmds \ | |
20596 | module_expsym_cmds \ | |
20597 | export_symbols_cmds \ | |
20598 | prelink_cmds \ | |
20599 | postlink_cmds \ | |
20600 | postinstall_cmds \ | |
20601 | postuninstall_cmds \ | |
20602 | finish_cmds \ | |
20603 | sys_lib_search_path_spec \ | |
20604 | sys_lib_dlsearch_path_spec; do | |
20605 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
20606 | *[\\\\\\\`\\"\\\$]*) | |
20607 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
20608 | ;; | |
20609 | *) | |
20610 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20611 | ;; | |
20612 | esac | |
20613 | done | |
20614 | ||
20615 | ac_aux_dir='$ac_aux_dir' | |
20616 | xsi_shell='$xsi_shell' | |
20617 | lt_shell_append='$lt_shell_append' | |
20618 | ||
20619 | # See if we are running on zsh, and set the options which allow our | |
20620 | # commands through without removal of \ escapes INIT. | |
20621 | if test -n "\${ZSH_VERSION+set}" ; then | |
20622 | setopt NO_GLOB_SUBST | |
20623 | fi | |
20624 | ||
20625 | ||
20626 | PACKAGE='$PACKAGE' | |
20627 | VERSION='$VERSION' | |
20628 | TIMESTAMP='$TIMESTAMP' | |
20629 | RM='$RM' | |
20630 | ofile='$ofile' | |
20631 | ||
20632 | ||
20633 | ||
20634 | ||
631ef239 | 20635 | _ACEOF |
212380e3 | 20636 | |
7083c021 | 20637 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
20638 | |
20639 | # Handling of arguments. | |
212380e3 AC |
20640 | for ac_config_target in $ac_config_targets |
20641 | do | |
631ef239 AC |
20642 | case $ac_config_target in |
20643 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
c52df125 AC |
20644 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20645 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
631ef239 | 20646 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
7083c021 | 20647 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 20648 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 20649 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
631ef239 AC |
20650 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
20651 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
20652 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 20653 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
20654 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
20655 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 20656 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 20657 | |
b6d0720c | 20658 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
20659 | esac |
20660 | done | |
20661 | ||
631ef239 | 20662 | |
212380e3 AC |
20663 | # If the user did not use the arguments to specify the items to instantiate, |
20664 | # then the envvar interface is used. Set only those that are not. | |
20665 | # We use the long form for the default assignment because of an extremely | |
20666 | # bizarre bug on SunOS 4.1.3. | |
20667 | if $ac_need_defaults; then | |
20668 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20669 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 20670 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
20671 | fi |
20672 | ||
20673 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 20674 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 20675 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
20676 | # Hook for its removal unless debugging. |
20677 | # Note that there is a small window in which the directory will not be cleaned: | |
20678 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
20679 | $debug || |
20680 | { | |
b6d0720c | 20681 | tmp= ac_tmp= |
631ef239 | 20682 | trap 'exit_status=$? |
b6d0720c AC |
20683 | : "${ac_tmp:=$tmp}" |
20684 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 20685 | ' 0 |
7083c021 | 20686 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 20687 | } |
212380e3 AC |
20688 | # Create a (secure) tmp directory for tmp files. |
20689 | ||
20690 | { | |
631ef239 | 20691 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 20692 | test -d "$tmp" |
212380e3 AC |
20693 | } || |
20694 | { | |
631ef239 AC |
20695 | tmp=./conf$$-$RANDOM |
20696 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
20697 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
20698 | ac_tmp=$tmp | |
212380e3 | 20699 | |
7083c021 AC |
20700 | # Set up the scripts for CONFIG_FILES section. |
20701 | # No need to generate them if there are no CONFIG_FILES. | |
20702 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
20703 | if test -n "$CONFIG_FILES"; then |
20704 | ||
631ef239 | 20705 | |
7083c021 AC |
20706 | ac_cr=`echo X | tr X '\015'` |
20707 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20708 | # But we know of no other shell where ac_cr would be empty at this | |
20709 | # point, so we can use a bashism as a fallback. | |
20710 | if test "x$ac_cr" = x; then | |
20711 | eval ac_cr=\$\'\\r\' | |
20712 | fi | |
20713 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20714 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 20715 | ac_cs_awk_cr='\\r' |
7083c021 AC |
20716 | else |
20717 | ac_cs_awk_cr=$ac_cr | |
20718 | fi | |
20719 | ||
b6d0720c | 20720 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 20721 | _ACEOF |
631ef239 AC |
20722 | |
20723 | ||
7083c021 AC |
20724 | { |
20725 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20726 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20727 | echo "_ACEOF" | |
20728 | } >conf$$subs.sh || | |
b6d0720c AC |
20729 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
20730 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
20731 | ac_delim='%!_!# ' |
20732 | for ac_last_try in false false false false false :; do | |
7083c021 | 20733 | . ./conf$$subs.sh || |
b6d0720c | 20734 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
20735 | |
20736 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20737 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
20738 | break |
20739 | elif $ac_last_try; then | |
b6d0720c | 20740 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
20741 | else |
20742 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 20743 | fi |
631ef239 | 20744 | done |
7083c021 AC |
20745 | rm -f conf$$subs.sh |
20746 | ||
20747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 20748 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
20749 | _ACEOF |
20750 | sed -n ' | |
20751 | h | |
20752 | s/^/S["/; s/!.*/"]=/ | |
20753 | p | |
20754 | g | |
20755 | s/^[^!]*!// | |
20756 | :repl | |
20757 | t repl | |
20758 | s/'"$ac_delim"'$// | |
20759 | t delim | |
20760 | :nl | |
20761 | h | |
6fb6bd15 | 20762 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
20763 | t more1 |
20764 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20765 | p | |
20766 | n | |
20767 | b repl | |
20768 | :more1 | |
20769 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20770 | p | |
20771 | g | |
20772 | s/.\{148\}// | |
20773 | t nl | |
20774 | :delim | |
20775 | h | |
6fb6bd15 | 20776 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
20777 | t more2 |
20778 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20779 | p | |
20780 | b | |
20781 | :more2 | |
20782 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20783 | p | |
20784 | g | |
20785 | s/.\{148\}// | |
20786 | t delim | |
20787 | ' <conf$$subs.awk | sed ' | |
20788 | /^[^""]/{ | |
20789 | N | |
20790 | s/\n// | |
20791 | } | |
20792 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20793 | rm -f conf$$subs.awk | |
20794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20795 | _ACAWK | |
b6d0720c | 20796 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
20797 | for (key in S) S_is_set[key] = 1 |
20798 | FS = "\a" | |
212380e3 | 20799 | |
7083c021 AC |
20800 | } |
20801 | { | |
20802 | line = $ 0 | |
20803 | nfields = split(line, field, "@") | |
20804 | substed = 0 | |
20805 | len = length(field[1]) | |
20806 | for (i = 2; i < nfields; i++) { | |
20807 | key = field[i] | |
20808 | keylen = length(key) | |
20809 | if (S_is_set[key]) { | |
20810 | value = S[key] | |
20811 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20812 | len += length(value) + length(field[++i]) | |
20813 | substed = 1 | |
20814 | } else | |
20815 | len += 1 + keylen | |
20816 | } | |
631ef239 | 20817 | |
7083c021 AC |
20818 | print line |
20819 | } | |
20820 | ||
20821 | _ACAWK | |
631ef239 | 20822 | _ACEOF |
7083c021 AC |
20823 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20824 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20825 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20826 | else | |
20827 | cat | |
b6d0720c AC |
20828 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
20829 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 20830 | _ACEOF |
631ef239 | 20831 | |
b6d0720c AC |
20832 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
20833 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
20834 | # trailing colons and then remove the whole line if VPATH becomes empty |
20835 | # (actually we leave an empty line to preserve line numbers). | |
20836 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
20837 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
20838 | h | |
20839 | s/// | |
20840 | s/^/:/ | |
20841 | s/[ ]*$/:/ | |
20842 | s/:\$(srcdir):/:/g | |
20843 | s/:\${srcdir}:/:/g | |
20844 | s/:@srcdir@:/:/g | |
20845 | s/^:*// | |
631ef239 | 20846 | s/:*$// |
b6d0720c AC |
20847 | x |
20848 | s/\(=[ ]*\).*/\1/ | |
20849 | G | |
20850 | s/\n// | |
631ef239 AC |
20851 | s/^[^=]*=[ ]*$// |
20852 | }' | |
20853 | fi | |
20854 | ||
7083c021 | 20855 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
20856 | fi # test -n "$CONFIG_FILES" |
20857 | ||
7083c021 AC |
20858 | # Set up the scripts for CONFIG_HEADERS section. |
20859 | # No need to generate them if there are no CONFIG_HEADERS. | |
20860 | # This happens for instance with `./config.status Makefile'. | |
20861 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 20862 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
20863 | BEGIN { |
20864 | _ACEOF | |
20865 | ||
20866 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
20867 | # here-document in config.status, that substitutes the proper values into | |
20868 | # config.h.in to produce config.h. | |
20869 | ||
20870 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
20871 | # handling of long lines. | |
20872 | ac_delim='%!_!# ' | |
20873 | for ac_last_try in false false :; do | |
b6d0720c AC |
20874 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
20875 | if test -z "$ac_tt"; then | |
7083c021 AC |
20876 | break |
20877 | elif $ac_last_try; then | |
b6d0720c | 20878 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
20879 | else |
20880 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20881 | fi | |
20882 | done | |
20883 | ||
20884 | # For the awk script, D is an array of macro values keyed by name, | |
20885 | # likewise P contains macro parameters if any. Preserve backslash | |
20886 | # newline sequences. | |
20887 | ||
20888 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
20889 | sed -n ' | |
20890 | s/.\{148\}/&'"$ac_delim"'/g | |
20891 | t rset | |
20892 | :rset | |
20893 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
20894 | t def | |
20895 | d | |
20896 | :def | |
20897 | s/\\$// | |
20898 | t bsnl | |
20899 | s/["\\]/\\&/g | |
20900 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20901 | D["\1"]=" \3"/p | |
20902 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
20903 | d | |
20904 | :bsnl | |
20905 | s/["\\]/\\&/g | |
20906 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20907 | D["\1"]=" \3\\\\\\n"\\/p | |
20908 | t cont | |
20909 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
20910 | t cont | |
20911 | d | |
20912 | :cont | |
20913 | n | |
20914 | s/.\{148\}/&'"$ac_delim"'/g | |
20915 | t clear | |
20916 | :clear | |
20917 | s/\\$// | |
20918 | t bsnlc | |
20919 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
20920 | d | |
20921 | :bsnlc | |
20922 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
20923 | b cont | |
20924 | ' <confdefs.h | sed ' | |
20925 | s/'"$ac_delim"'/"\\\ | |
20926 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
20927 | ||
20928 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20929 | for (key in D) D_is_set[key] = 1 | |
20930 | FS = "\a" | |
20931 | } | |
20932 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
20933 | line = \$ 0 | |
20934 | split(line, arg, " ") | |
20935 | if (arg[1] == "#") { | |
20936 | defundef = arg[2] | |
20937 | mac1 = arg[3] | |
20938 | } else { | |
20939 | defundef = substr(arg[1], 2) | |
20940 | mac1 = arg[2] | |
20941 | } | |
20942 | split(mac1, mac2, "(") #) | |
20943 | macro = mac2[1] | |
20944 | prefix = substr(line, 1, index(line, defundef) - 1) | |
20945 | if (D_is_set[macro]) { | |
20946 | # Preserve the white space surrounding the "#". | |
20947 | print prefix "define", macro P[macro] D[macro] | |
20948 | next | |
20949 | } else { | |
20950 | # Replace #undef with comments. This is necessary, for example, | |
20951 | # in the case of _POSIX_SOURCE, which is predefined and required | |
20952 | # on some systems where configure will not decide to define it. | |
20953 | if (defundef == "undef") { | |
20954 | print "/*", prefix defundef, macro, "*/" | |
20955 | next | |
20956 | } | |
20957 | } | |
20958 | } | |
20959 | { print } | |
20960 | _ACAWK | |
20961 | _ACEOF | |
20962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 20963 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
20964 | fi # test -n "$CONFIG_HEADERS" |
20965 | ||
631ef239 | 20966 | |
9f9b7042 | 20967 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
20968 | shift |
20969 | for ac_tag | |
631ef239 AC |
20970 | do |
20971 | case $ac_tag in | |
20972 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20973 | esac | |
20974 | case $ac_mode$ac_tag in | |
20975 | :[FHL]*:*);; | |
b6d0720c | 20976 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
20977 | :[FH]-) ac_tag=-:-;; |
20978 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 20979 | esac |
631ef239 AC |
20980 | ac_save_IFS=$IFS |
20981 | IFS=: | |
20982 | set x $ac_tag | |
20983 | IFS=$ac_save_IFS | |
20984 | shift | |
20985 | ac_file=$1 | |
20986 | shift | |
212380e3 | 20987 | |
631ef239 AC |
20988 | case $ac_mode in |
20989 | :L) ac_source=$1;; | |
20990 | :[FH]) | |
20991 | ac_file_inputs= | |
20992 | for ac_f | |
20993 | do | |
20994 | case $ac_f in | |
b6d0720c | 20995 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
20996 | *) # Look for the file first in the build tree, then in the source tree |
20997 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20998 | # because $ac_f cannot contain `:'. | |
20999 | test -f "$ac_f" || | |
21000 | case $ac_f in | |
21001 | [\\/$]*) false;; | |
21002 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
21003 | esac || | |
b6d0720c | 21004 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 21005 | esac |
7083c021 AC |
21006 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
21007 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
21008 | done |
21009 | ||
21010 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21011 | # use $as_me), people would be surprised to read: | |
21012 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
21013 | configure_input='Generated from '` |
21014 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
21015 | `' by configure.' | |
631ef239 AC |
21016 | if test x"$ac_file" != x-; then |
21017 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
21018 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
21019 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 21020 | fi |
7083c021 AC |
21021 | # Neutralize special characters interpreted by sed in replacement strings. |
21022 | case $configure_input in #( | |
21023 | *\&* | *\|* | *\\* ) | |
21024 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21025 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21026 | *) ac_sed_conf_input=$configure_input;; | |
21027 | esac | |
631ef239 AC |
21028 | |
21029 | case $ac_tag in | |
b6d0720c AC |
21030 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
21031 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
21032 | esac |
21033 | ;; | |
21034 | esac | |
21035 | ||
21036 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
21037 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21038 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21039 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 21040 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 21041 | $as_echo X"$ac_file" | |
631ef239 AC |
21042 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21043 | s//\1/ | |
21044 | q | |
21045 | } | |
21046 | /^X\(\/\/\)[^/].*/{ | |
21047 | s//\1/ | |
21048 | q | |
21049 | } | |
21050 | /^X\(\/\/\)$/{ | |
21051 | s//\1/ | |
21052 | q | |
21053 | } | |
21054 | /^X\(\/\).*/{ | |
21055 | s//\1/ | |
21056 | q | |
21057 | } | |
21058 | s/.*/./; q'` | |
7083c021 | 21059 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
21060 | ac_builddir=. |
21061 | ||
631ef239 AC |
21062 | case "$ac_dir" in |
21063 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21064 | *) | |
7083c021 | 21065 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 21066 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 21067 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
21068 | case $ac_top_builddir_sub in |
21069 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21070 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21071 | esac ;; | |
21072 | esac | |
21073 | ac_abs_top_builddir=$ac_pwd | |
21074 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21075 | # for backward compatibility: | |
21076 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
21077 | |
21078 | case $srcdir in | |
631ef239 | 21079 | .) # We are building in place. |
212380e3 | 21080 | ac_srcdir=. |
631ef239 AC |
21081 | ac_top_srcdir=$ac_top_builddir_sub |
21082 | ac_abs_top_srcdir=$ac_pwd ;; | |
21083 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 21084 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
21085 | ac_top_srcdir=$srcdir |
21086 | ac_abs_top_srcdir=$srcdir ;; | |
21087 | *) # Relative name. | |
21088 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21089 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21090 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 21091 | esac |
631ef239 | 21092 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 21093 | |
212380e3 | 21094 | |
631ef239 AC |
21095 | case $ac_mode in |
21096 | :F) | |
21097 | # | |
21098 | # CONFIG_FILE | |
21099 | # | |
212380e3 AC |
21100 | |
21101 | case $INSTALL in | |
21102 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 21103 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 21104 | esac |
c52df125 AC |
21105 | ac_MKDIR_P=$MKDIR_P |
21106 | case $MKDIR_P in | |
21107 | [\\/$]* | ?:[\\/]* ) ;; | |
21108 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
21109 | esac | |
631ef239 | 21110 | _ACEOF |
212380e3 | 21111 | |
7083c021 | 21112 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
21113 | # If the template does not know about datarootdir, expand it. |
21114 | # FIXME: This hack should be removed a few years after 2.60. | |
21115 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
21116 | ac_sed_dataroot=' |
21117 | /datarootdir/ { | |
631ef239 AC |
21118 | p |
21119 | q | |
21120 | } | |
21121 | /@datadir@/p | |
21122 | /@docdir@/p | |
21123 | /@infodir@/p | |
21124 | /@localedir@/p | |
7083c021 AC |
21125 | /@mandir@/p' |
21126 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
21127 | *datarootdir*) ac_datarootdir_seen=yes;; |
21128 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
21129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
21130 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 21131 | _ACEOF |
7083c021 | 21132 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
21133 | ac_datarootdir_hack=' |
21134 | s&@datadir@&$datadir&g | |
21135 | s&@docdir@&$docdir&g | |
21136 | s&@infodir@&$infodir&g | |
21137 | s&@localedir@&$localedir&g | |
21138 | s&@mandir@&$mandir&g | |
7083c021 | 21139 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 21140 | esac |
212380e3 | 21141 | _ACEOF |
631ef239 AC |
21142 | |
21143 | # Neutralize VPATH when `$srcdir' = `.'. | |
21144 | # Shell code in configure.ac might set extrasub. | |
21145 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
21146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
21147 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
21148 | $extrasub |
21149 | _ACEOF | |
7083c021 | 21150 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
21151 | :t |
21152 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 21153 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 21154 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 21155 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
21156 | s&@srcdir@&$ac_srcdir&;t t |
21157 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21158 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
21159 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21160 | s&@builddir@&$ac_builddir&;t t | |
21161 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
21162 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21163 | s&@INSTALL@&$ac_INSTALL&;t t | |
c52df125 | 21164 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
631ef239 | 21165 | $ac_datarootdir_hack |
7083c021 | 21166 | " |
b6d0720c AC |
21167 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
21168 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
21169 | |
21170 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
21171 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
21172 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
21173 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 21174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 21175 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 21176 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 21177 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 21178 | |
b6d0720c | 21179 | rm -f "$ac_tmp/stdin" |
212380e3 | 21180 | case $ac_file in |
b6d0720c AC |
21181 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
21182 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 21183 | esac \ |
b6d0720c | 21184 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
21185 | ;; |
21186 | :H) | |
21187 | # | |
21188 | # CONFIG_HEADER | |
21189 | # | |
212380e3 | 21190 | if test x"$ac_file" != x-; then |
7083c021 AC |
21191 | { |
21192 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
21193 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
21194 | } >"$ac_tmp/config.h" \ | |
21195 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
21196 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
21197 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
21198 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 21199 | else |
7083c021 | 21200 | rm -f "$ac_file" |
b6d0720c AC |
21201 | mv "$ac_tmp/config.h" "$ac_file" \ |
21202 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
21203 | fi |
21204 | else | |
7083c021 | 21205 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
21206 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
21207 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 21208 | fi |
c52df125 AC |
21209 | # Compute "$ac_file"'s index in $config_headers. |
21210 | _am_arg="$ac_file" | |
21211 | _am_stamp_count=1 | |
21212 | for _am_header in $config_headers :; do | |
21213 | case $_am_header in | |
21214 | $_am_arg | $_am_arg:* ) | |
21215 | break ;; | |
21216 | * ) | |
21217 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
21218 | esac | |
21219 | done | |
21220 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
21221 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21222 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
21223 | X"$_am_arg" : 'X\(//\)$' \| \ | |
21224 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
21225 | $as_echo X"$_am_arg" | | |
21226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21227 | s//\1/ | |
21228 | q | |
21229 | } | |
21230 | /^X\(\/\/\)[^/].*/{ | |
21231 | s//\1/ | |
21232 | q | |
21233 | } | |
21234 | /^X\(\/\/\)$/{ | |
21235 | s//\1/ | |
21236 | q | |
21237 | } | |
21238 | /^X\(\/\).*/{ | |
21239 | s//\1/ | |
21240 | q | |
21241 | } | |
21242 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
631ef239 AC |
21243 | ;; |
21244 | ||
9f9b7042 NPB |
21245 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
21246 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
21247 | ;; | |
631ef239 AC |
21248 | esac |
21249 | ||
9f9b7042 NPB |
21250 | |
21251 | case $ac_file$ac_mode in | |
c52df125 AC |
21252 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
21253 | # Older Autoconf quotes --file arguments for eval, but not when files | |
21254 | # are listed without --file. Let's play safe and only enable the eval | |
21255 | # if we detect the quoting. | |
21256 | case $CONFIG_FILES in | |
21257 | *\'*) eval set x "$CONFIG_FILES" ;; | |
21258 | *) set x $CONFIG_FILES ;; | |
21259 | esac | |
21260 | shift | |
21261 | for mf | |
21262 | do | |
21263 | # Strip MF so we end up with the name of the file. | |
21264 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
21265 | # Check whether this is an Automake generated Makefile or not. | |
21266 | # We used to match only the files named 'Makefile.in', but | |
21267 | # some people rename them; so instead we look at the file content. | |
21268 | # Grep'ing the first line is not enough: some people post-process | |
21269 | # each Makefile.in and add a new line on top of each file to say so. | |
21270 | # Grep'ing the whole file is not good either: AIX grep has a line | |
21271 | # limit of 2048, but all sed's we know have understand at least 4000. | |
21272 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
21273 | dirpart=`$as_dirname -- "$mf" || | |
21274 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21275 | X"$mf" : 'X\(//\)[^/]' \| \ | |
21276 | X"$mf" : 'X\(//\)$' \| \ | |
21277 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
21278 | $as_echo X"$mf" | | |
21279 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21280 | s//\1/ | |
21281 | q | |
21282 | } | |
21283 | /^X\(\/\/\)[^/].*/{ | |
21284 | s//\1/ | |
21285 | q | |
21286 | } | |
21287 | /^X\(\/\/\)$/{ | |
21288 | s//\1/ | |
21289 | q | |
21290 | } | |
21291 | /^X\(\/\).*/{ | |
21292 | s//\1/ | |
21293 | q | |
21294 | } | |
21295 | s/.*/./; q'` | |
21296 | else | |
21297 | continue | |
21298 | fi | |
21299 | # Extract the definition of DEPDIR, am__include, and am__quote | |
21300 | # from the Makefile without running 'make'. | |
21301 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
21302 | test -z "$DEPDIR" && continue | |
21303 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
21304 | test -z "$am__include" && continue | |
21305 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
21306 | # Find all dependency output files, they are included files with | |
21307 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
21308 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
21309 | # expansion. | |
21310 | for file in `sed -n " | |
21311 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
21312 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
21313 | # Make sure the directory exists. | |
21314 | test -f "$dirpart/$file" && continue | |
21315 | fdir=`$as_dirname -- "$file" || | |
21316 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21317 | X"$file" : 'X\(//\)[^/]' \| \ | |
21318 | X"$file" : 'X\(//\)$' \| \ | |
21319 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
21320 | $as_echo X"$file" | | |
21321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21322 | s//\1/ | |
21323 | q | |
21324 | } | |
21325 | /^X\(\/\/\)[^/].*/{ | |
21326 | s//\1/ | |
21327 | q | |
21328 | } | |
21329 | /^X\(\/\/\)$/{ | |
21330 | s//\1/ | |
21331 | q | |
21332 | } | |
21333 | /^X\(\/\).*/{ | |
21334 | s//\1/ | |
21335 | q | |
21336 | } | |
21337 | s/.*/./; q'` | |
21338 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
21339 | # echo "creating $dirpart/$file" | |
21340 | echo '# dummy' > "$dirpart/$file" | |
21341 | done | |
21342 | done | |
21343 | } | |
21344 | ;; | |
21345 | "libtool":C) | |
21346 | ||
21347 | # See if we are running on zsh, and set the options which allow our | |
21348 | # commands through without removal of \ escapes. | |
21349 | if test -n "${ZSH_VERSION+set}" ; then | |
21350 | setopt NO_GLOB_SUBST | |
21351 | fi | |
21352 | ||
21353 | cfgfile="${ofile}T" | |
21354 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
21355 | $RM "$cfgfile" | |
21356 | ||
21357 | cat <<_LT_EOF >> "$cfgfile" | |
21358 | #! $SHELL | |
21359 | ||
21360 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
21361 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
21362 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21363 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
21364 | # | |
21365 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
21366 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
21367 | # Foundation, Inc. | |
21368 | # Written by Gordon Matzigkeit, 1996 | |
21369 | # | |
21370 | # This file is part of GNU Libtool. | |
21371 | # | |
21372 | # GNU Libtool is free software; you can redistribute it and/or | |
21373 | # modify it under the terms of the GNU General Public License as | |
21374 | # published by the Free Software Foundation; either version 2 of | |
21375 | # the License, or (at your option) any later version. | |
21376 | # | |
21377 | # As a special exception to the GNU General Public License, | |
21378 | # if you distribute this file as part of a program or library that | |
21379 | # is built using GNU Libtool, you may include this file under the | |
21380 | # same distribution terms that you use for the rest of that program. | |
21381 | # | |
21382 | # GNU Libtool is distributed in the hope that it will be useful, | |
21383 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21384 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21385 | # GNU General Public License for more details. | |
21386 | # | |
21387 | # You should have received a copy of the GNU General Public License | |
21388 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
21389 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
21390 | # obtained by writing to the Free Software Foundation, Inc., | |
21391 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
21392 | ||
21393 | ||
21394 | # The names of the tagged configurations supported by this script. | |
21395 | available_tags="" | |
21396 | ||
21397 | # ### BEGIN LIBTOOL CONFIG | |
21398 | ||
21399 | # Which release of libtool.m4 was used? | |
21400 | macro_version=$macro_version | |
21401 | macro_revision=$macro_revision | |
21402 | ||
21403 | # Whether or not to build static libraries. | |
21404 | build_old_libs=$enable_static | |
21405 | ||
21406 | # Whether or not to build shared libraries. | |
21407 | build_libtool_libs=$enable_shared | |
21408 | ||
21409 | # What type of objects to build. | |
21410 | pic_mode=$pic_mode | |
21411 | ||
21412 | # Whether or not to optimize for fast installation. | |
21413 | fast_install=$enable_fast_install | |
21414 | ||
21415 | # Shell to use when invoking shell scripts. | |
21416 | SHELL=$lt_SHELL | |
21417 | ||
21418 | # An echo program that protects backslashes. | |
21419 | ECHO=$lt_ECHO | |
21420 | ||
21421 | # The PATH separator for the build system. | |
21422 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
21423 | ||
21424 | # The host system. | |
21425 | host_alias=$host_alias | |
21426 | host=$host | |
21427 | host_os=$host_os | |
21428 | ||
21429 | # The build system. | |
21430 | build_alias=$build_alias | |
21431 | build=$build | |
21432 | build_os=$build_os | |
21433 | ||
21434 | # A sed program that does not truncate output. | |
21435 | SED=$lt_SED | |
21436 | ||
21437 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
21438 | Xsed="\$SED -e 1s/^X//" | |
21439 | ||
21440 | # A grep program that handles long lines. | |
21441 | GREP=$lt_GREP | |
21442 | ||
21443 | # An ERE matcher. | |
21444 | EGREP=$lt_EGREP | |
21445 | ||
21446 | # A literal string matcher. | |
21447 | FGREP=$lt_FGREP | |
21448 | ||
21449 | # A BSD- or MS-compatible name lister. | |
21450 | NM=$lt_NM | |
21451 | ||
21452 | # Whether we need soft or hard links. | |
21453 | LN_S=$lt_LN_S | |
21454 | ||
21455 | # What is the maximum length of a command? | |
21456 | max_cmd_len=$max_cmd_len | |
21457 | ||
21458 | # Object file suffix (normally "o"). | |
21459 | objext=$ac_objext | |
21460 | ||
21461 | # Executable file suffix (normally ""). | |
21462 | exeext=$exeext | |
21463 | ||
21464 | # whether the shell understands "unset". | |
21465 | lt_unset=$lt_unset | |
21466 | ||
21467 | # turn spaces into newlines. | |
21468 | SP2NL=$lt_lt_SP2NL | |
21469 | ||
21470 | # turn newlines into spaces. | |
21471 | NL2SP=$lt_lt_NL2SP | |
21472 | ||
21473 | # convert \$build file names to \$host format. | |
21474 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
21475 | ||
21476 | # convert \$build files to toolchain format. | |
21477 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
21478 | ||
21479 | # An object symbol dumper. | |
21480 | OBJDUMP=$lt_OBJDUMP | |
21481 | ||
21482 | # Method to check whether dependent libraries are shared objects. | |
21483 | deplibs_check_method=$lt_deplibs_check_method | |
21484 | ||
21485 | # Command to use when deplibs_check_method = "file_magic". | |
21486 | file_magic_cmd=$lt_file_magic_cmd | |
21487 | ||
21488 | # How to find potential files when deplibs_check_method = "file_magic". | |
21489 | file_magic_glob=$lt_file_magic_glob | |
21490 | ||
21491 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
21492 | want_nocaseglob=$lt_want_nocaseglob | |
21493 | ||
21494 | # DLL creation program. | |
21495 | DLLTOOL=$lt_DLLTOOL | |
21496 | ||
21497 | # Command to associate shared and link libraries. | |
21498 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
21499 | ||
21500 | # The archiver. | |
21501 | AR=$lt_AR | |
21502 | ||
21503 | # Flags to create an archive. | |
21504 | AR_FLAGS=$lt_AR_FLAGS | |
21505 | ||
21506 | # How to feed a file listing to the archiver. | |
21507 | archiver_list_spec=$lt_archiver_list_spec | |
21508 | ||
21509 | # A symbol stripping program. | |
21510 | STRIP=$lt_STRIP | |
21511 | ||
21512 | # Commands used to install an old-style archive. | |
21513 | RANLIB=$lt_RANLIB | |
21514 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21515 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21516 | ||
21517 | # Whether to use a lock for old archive extraction. | |
21518 | lock_old_archive_extraction=$lock_old_archive_extraction | |
21519 | ||
21520 | # A C compiler. | |
21521 | LTCC=$lt_CC | |
21522 | ||
21523 | # LTCC compiler flags. | |
21524 | LTCFLAGS=$lt_CFLAGS | |
21525 | ||
21526 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21527 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21528 | ||
21529 | # Transform the output of nm in a proper C declaration. | |
21530 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21531 | ||
21532 | # Transform the output of nm in a C name address pair. | |
21533 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21534 | ||
21535 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
21536 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
21537 | ||
21538 | # Specify filename containing input files for \$NM. | |
21539 | nm_file_list_spec=$lt_nm_file_list_spec | |
21540 | ||
21541 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
21542 | lt_sysroot=$lt_sysroot | |
21543 | ||
21544 | # The name of the directory that contains temporary libtool files. | |
21545 | objdir=$objdir | |
21546 | ||
21547 | # Used to examine libraries when file_magic_cmd begins with "file". | |
21548 | MAGIC_CMD=$MAGIC_CMD | |
21549 | ||
21550 | # Must we lock files when doing compilation? | |
21551 | need_locks=$lt_need_locks | |
21552 | ||
21553 | # Manifest tool. | |
21554 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
21555 | ||
21556 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
21557 | DSYMUTIL=$lt_DSYMUTIL | |
21558 | ||
21559 | # Tool to change global to local symbols on Mac OS X. | |
21560 | NMEDIT=$lt_NMEDIT | |
21561 | ||
21562 | # Tool to manipulate fat objects and archives on Mac OS X. | |
21563 | LIPO=$lt_LIPO | |
21564 | ||
21565 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
21566 | OTOOL=$lt_OTOOL | |
21567 | ||
21568 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
21569 | OTOOL64=$lt_OTOOL64 | |
21570 | ||
21571 | # Old archive suffix (normally "a"). | |
21572 | libext=$libext | |
21573 | ||
21574 | # Shared library suffix (normally ".so"). | |
21575 | shrext_cmds=$lt_shrext_cmds | |
21576 | ||
21577 | # The commands to extract the exported symbol list from a shared archive. | |
21578 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
21579 | ||
21580 | # Variables whose values should be saved in libtool wrapper scripts and | |
21581 | # restored at link time. | |
21582 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
21583 | ||
21584 | # Do we need the "lib" prefix for modules? | |
21585 | need_lib_prefix=$need_lib_prefix | |
21586 | ||
21587 | # Do we need a version for libraries? | |
21588 | need_version=$need_version | |
21589 | ||
21590 | # Library versioning type. | |
21591 | version_type=$version_type | |
21592 | ||
21593 | # Shared library runtime path variable. | |
21594 | runpath_var=$runpath_var | |
21595 | ||
21596 | # Shared library path variable. | |
21597 | shlibpath_var=$shlibpath_var | |
21598 | ||
21599 | # Is shlibpath searched before the hard-coded library search path? | |
21600 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
21601 | ||
21602 | # Format of library name prefix. | |
21603 | libname_spec=$lt_libname_spec | |
21604 | ||
21605 | # List of archive names. First name is the real one, the rest are links. | |
21606 | # The last name is the one that the linker finds with -lNAME | |
21607 | library_names_spec=$lt_library_names_spec | |
21608 | ||
21609 | # The coded name of the library, if different from the real name. | |
21610 | soname_spec=$lt_soname_spec | |
21611 | ||
21612 | # Permission mode override for installation of shared libraries. | |
21613 | install_override_mode=$lt_install_override_mode | |
21614 | ||
21615 | # Command to use after installation of a shared archive. | |
21616 | postinstall_cmds=$lt_postinstall_cmds | |
21617 | ||
21618 | # Command to use after uninstallation of a shared archive. | |
21619 | postuninstall_cmds=$lt_postuninstall_cmds | |
21620 | ||
21621 | # Commands used to finish a libtool library installation in a directory. | |
21622 | finish_cmds=$lt_finish_cmds | |
21623 | ||
21624 | # As "finish_cmds", except a single script fragment to be evaled but | |
21625 | # not shown. | |
21626 | finish_eval=$lt_finish_eval | |
21627 | ||
21628 | # Whether we should hardcode library paths into libraries. | |
21629 | hardcode_into_libs=$hardcode_into_libs | |
21630 | ||
21631 | # Compile-time system search path for libraries. | |
21632 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
21633 | ||
21634 | # Run-time system search path for libraries. | |
21635 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
21636 | ||
21637 | # Whether dlopen is supported. | |
21638 | dlopen_support=$enable_dlopen | |
21639 | ||
21640 | # Whether dlopen of programs is supported. | |
21641 | dlopen_self=$enable_dlopen_self | |
21642 | ||
21643 | # Whether dlopen of statically linked programs is supported. | |
21644 | dlopen_self_static=$enable_dlopen_self_static | |
21645 | ||
21646 | # Commands to strip libraries. | |
21647 | old_striplib=$lt_old_striplib | |
21648 | striplib=$lt_striplib | |
21649 | ||
21650 | ||
21651 | # The linker used to build libraries. | |
21652 | LD=$lt_LD | |
21653 | ||
21654 | # How to create reloadable object files. | |
21655 | reload_flag=$lt_reload_flag | |
21656 | reload_cmds=$lt_reload_cmds | |
21657 | ||
21658 | # Commands used to build an old-style archive. | |
21659 | old_archive_cmds=$lt_old_archive_cmds | |
21660 | ||
21661 | # A language specific compiler. | |
21662 | CC=$lt_compiler | |
21663 | ||
21664 | # Is the compiler the GNU compiler? | |
21665 | with_gcc=$GCC | |
21666 | ||
21667 | # Compiler flag to turn off builtin functions. | |
21668 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
21669 | ||
21670 | # Additional compiler flags for building library objects. | |
21671 | pic_flag=$lt_lt_prog_compiler_pic | |
21672 | ||
21673 | # How to pass a linker flag through the compiler. | |
21674 | wl=$lt_lt_prog_compiler_wl | |
21675 | ||
21676 | # Compiler flag to prevent dynamic linking. | |
21677 | link_static_flag=$lt_lt_prog_compiler_static | |
21678 | ||
21679 | # Does compiler simultaneously support -c and -o options? | |
21680 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
21681 | ||
21682 | # Whether or not to add -lc for building shared libraries. | |
21683 | build_libtool_need_lc=$archive_cmds_need_lc | |
21684 | ||
21685 | # Whether or not to disallow shared libs when runtime libs are static. | |
21686 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
21687 | ||
21688 | # Compiler flag to allow reflexive dlopens. | |
21689 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
21690 | ||
21691 | # Compiler flag to generate shared objects directly from archives. | |
21692 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
21693 | ||
21694 | # Whether the compiler copes with passing no objects directly. | |
21695 | compiler_needs_object=$lt_compiler_needs_object | |
21696 | ||
21697 | # Create an old-style archive from a shared archive. | |
21698 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
21699 | ||
21700 | # Create a temporary old-style archive to link instead of a shared archive. | |
21701 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
21702 | ||
21703 | # Commands used to build a shared archive. | |
21704 | archive_cmds=$lt_archive_cmds | |
21705 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
21706 | ||
21707 | # Commands used to build a loadable module if different from building | |
21708 | # a shared archive. | |
21709 | module_cmds=$lt_module_cmds | |
21710 | module_expsym_cmds=$lt_module_expsym_cmds | |
21711 | ||
21712 | # Whether we are building with GNU ld or not. | |
21713 | with_gnu_ld=$lt_with_gnu_ld | |
21714 | ||
21715 | # Flag that allows shared libraries with undefined symbols to be built. | |
21716 | allow_undefined_flag=$lt_allow_undefined_flag | |
21717 | ||
21718 | # Flag that enforces no undefined symbols. | |
21719 | no_undefined_flag=$lt_no_undefined_flag | |
21720 | ||
21721 | # Flag to hardcode \$libdir into a binary during linking. | |
21722 | # This must work even if \$libdir does not exist | |
21723 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
21724 | ||
21725 | # Whether we need a single "-rpath" flag with a separated argument. | |
21726 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
21727 | ||
21728 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
21729 | # DIR into the resulting binary. | |
21730 | hardcode_direct=$hardcode_direct | |
21731 | ||
21732 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
21733 | # DIR into the resulting binary and the resulting library dependency is | |
21734 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21735 | # library is relocated. | |
21736 | hardcode_direct_absolute=$hardcode_direct_absolute | |
21737 | ||
21738 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
21739 | # into the resulting binary. | |
21740 | hardcode_minus_L=$hardcode_minus_L | |
21741 | ||
21742 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
21743 | # into the resulting binary. | |
21744 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
21745 | ||
21746 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
21747 | # into the library and all subsequent libraries and executables linked | |
21748 | # against it. | |
21749 | hardcode_automatic=$hardcode_automatic | |
21750 | ||
21751 | # Set to yes if linker adds runtime paths of dependent libraries | |
21752 | # to runtime path list. | |
21753 | inherit_rpath=$inherit_rpath | |
21754 | ||
21755 | # Whether libtool must link a program against all its dependency libraries. | |
21756 | link_all_deplibs=$link_all_deplibs | |
21757 | ||
21758 | # Set to "yes" if exported symbols are required. | |
21759 | always_export_symbols=$always_export_symbols | |
21760 | ||
21761 | # The commands to list exported symbols. | |
21762 | export_symbols_cmds=$lt_export_symbols_cmds | |
21763 | ||
21764 | # Symbols that should not be listed in the preloaded symbols. | |
21765 | exclude_expsyms=$lt_exclude_expsyms | |
21766 | ||
21767 | # Symbols that must always be exported. | |
21768 | include_expsyms=$lt_include_expsyms | |
21769 | ||
21770 | # Commands necessary for linking programs (against libraries) with templates. | |
21771 | prelink_cmds=$lt_prelink_cmds | |
21772 | ||
21773 | # Commands necessary for finishing linking programs. | |
21774 | postlink_cmds=$lt_postlink_cmds | |
21775 | ||
21776 | # Specify filename containing input files. | |
21777 | file_list_spec=$lt_file_list_spec | |
21778 | ||
21779 | # How to hardcode a shared library path into an executable. | |
21780 | hardcode_action=$hardcode_action | |
21781 | ||
21782 | # ### END LIBTOOL CONFIG | |
21783 | ||
21784 | _LT_EOF | |
21785 | ||
21786 | case $host_os in | |
21787 | aix3*) | |
21788 | cat <<\_LT_EOF >> "$cfgfile" | |
21789 | # AIX sometimes has problems with the GCC collect2 program. For some | |
21790 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
21791 | # vanish in a puff of smoke. | |
21792 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
21793 | COLLECT_NAMES= | |
21794 | export COLLECT_NAMES | |
21795 | fi | |
21796 | _LT_EOF | |
21797 | ;; | |
21798 | esac | |
21799 | ||
21800 | ||
21801 | ltmain="$ac_aux_dir/ltmain.sh" | |
21802 | ||
21803 | ||
21804 | # We use sed instead of cat because bash on DJGPP gets confused if | |
21805 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
21806 | # text mode, it properly converts lines to CR/LF. This bash problem | |
21807 | # is reportedly fixed, but why not run on old versions too? | |
21808 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
21809 | || (rm -f "$cfgfile"; exit 1) | |
21810 | ||
21811 | if test x"$xsi_shell" = xyes; then | |
21812 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
21813 | func_dirname ()\ | |
21814 | {\ | |
21815 | \ case ${1} in\ | |
21816 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
21817 | \ * ) func_dirname_result="${3}" ;;\ | |
21818 | \ esac\ | |
21819 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
21820 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21821 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21822 | test 0 -eq $? || _lt_function_replace_fail=: | |
21823 | ||
21824 | ||
21825 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
21826 | func_basename ()\ | |
21827 | {\ | |
21828 | \ func_basename_result="${1##*/}"\ | |
21829 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
21830 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21831 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21832 | test 0 -eq $? || _lt_function_replace_fail=: | |
21833 | ||
21834 | ||
21835 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
21836 | func_dirname_and_basename ()\ | |
21837 | {\ | |
21838 | \ case ${1} in\ | |
21839 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
21840 | \ * ) func_dirname_result="${3}" ;;\ | |
21841 | \ esac\ | |
21842 | \ func_basename_result="${1##*/}"\ | |
21843 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
21844 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21845 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21846 | test 0 -eq $? || _lt_function_replace_fail=: | |
21847 | ||
21848 | ||
21849 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
21850 | func_stripname ()\ | |
21851 | {\ | |
21852 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
21853 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
21854 | \ func_stripname_result=${3}\ | |
21855 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
21856 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
21857 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
21858 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21859 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21860 | test 0 -eq $? || _lt_function_replace_fail=: | |
21861 | ||
21862 | ||
21863 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
21864 | func_split_long_opt ()\ | |
21865 | {\ | |
21866 | \ func_split_long_opt_name=${1%%=*}\ | |
21867 | \ func_split_long_opt_arg=${1#*=}\ | |
21868 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
21869 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21870 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21871 | test 0 -eq $? || _lt_function_replace_fail=: | |
21872 | ||
21873 | ||
21874 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
21875 | func_split_short_opt ()\ | |
21876 | {\ | |
21877 | \ func_split_short_opt_arg=${1#??}\ | |
21878 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
21879 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
21880 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21881 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21882 | test 0 -eq $? || _lt_function_replace_fail=: | |
21883 | ||
21884 | ||
21885 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
21886 | func_lo2o ()\ | |
21887 | {\ | |
21888 | \ case ${1} in\ | |
21889 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
21890 | \ *) func_lo2o_result=${1} ;;\ | |
21891 | \ esac\ | |
21892 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
21893 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21894 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21895 | test 0 -eq $? || _lt_function_replace_fail=: | |
21896 | ||
21897 | ||
21898 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
21899 | func_xform ()\ | |
21900 | {\ | |
21901 | func_xform_result=${1%.*}.lo\ | |
21902 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
21903 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21904 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21905 | test 0 -eq $? || _lt_function_replace_fail=: | |
21906 | ||
21907 | ||
21908 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
21909 | func_arith ()\ | |
21910 | {\ | |
21911 | func_arith_result=$(( $* ))\ | |
21912 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
21913 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21914 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21915 | test 0 -eq $? || _lt_function_replace_fail=: | |
21916 | ||
21917 | ||
21918 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
21919 | func_len ()\ | |
21920 | {\ | |
21921 | func_len_result=${#1}\ | |
21922 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
21923 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21924 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21925 | test 0 -eq $? || _lt_function_replace_fail=: | |
21926 | ||
21927 | fi | |
21928 | ||
21929 | if test x"$lt_shell_append" = xyes; then | |
21930 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
21931 | func_append ()\ | |
21932 | {\ | |
21933 | eval "${1}+=\\${2}"\ | |
21934 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
21935 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21936 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21937 | test 0 -eq $? || _lt_function_replace_fail=: | |
21938 | ||
21939 | ||
21940 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
21941 | func_append_quoted ()\ | |
21942 | {\ | |
21943 | \ func_quote_for_eval "${2}"\ | |
21944 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
21945 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
21946 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21947 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21948 | test 0 -eq $? || _lt_function_replace_fail=: | |
21949 | ||
21950 | ||
21951 | # Save a `func_append' function call where possible by direct use of '+=' | |
21952 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
21953 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21954 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21955 | test 0 -eq $? || _lt_function_replace_fail=: | |
21956 | else | |
21957 | # Save a `func_append' function call even when '+=' is not available | |
21958 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
21959 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21960 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21961 | test 0 -eq $? || _lt_function_replace_fail=: | |
21962 | fi | |
21963 | ||
21964 | if test x"$_lt_function_replace_fail" = x":"; then | |
21965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
21966 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
21967 | fi | |
21968 | ||
21969 | ||
21970 | mv -f "$cfgfile" "$ofile" || | |
21971 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21972 | chmod +x "$ofile" | |
21973 | ||
21974 | ;; | |
2eff3833 | 21975 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
21976 | |
21977 | esac | |
631ef239 | 21978 | done # for ac_tag |
212380e3 | 21979 | |
212380e3 | 21980 | |
7083c021 | 21981 | as_fn_exit 0 |
212380e3 | 21982 | _ACEOF |
212380e3 AC |
21983 | ac_clean_files=$ac_clean_files_save |
21984 | ||
7083c021 | 21985 | test $ac_write_fail = 0 || |
b6d0720c | 21986 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 21987 | |
212380e3 AC |
21988 | |
21989 | # configure is writing to config.log, and then calls config.status. | |
21990 | # config.status does its own redirection, appending to config.log. | |
21991 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21992 | # by configure, so config.status won't be able to write to it; its | |
21993 | # output is simply discarded. So we exec the FD to /dev/null, | |
21994 | # effectively closing config.log, so it can be properly (re)opened and | |
21995 | # appended to by config.status. When coming back to configure, we | |
21996 | # need to make the FD available again. | |
21997 | if test "$no_create" != yes; then | |
21998 | ac_cs_success=: | |
21999 | ac_config_status_args= | |
22000 | test "$silent" = yes && | |
22001 | ac_config_status_args="$ac_config_status_args --quiet" | |
22002 | exec 5>/dev/null | |
22003 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22004 | exec 5>>config.log | |
22005 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22006 | # would make configure fail if this is the last instruction. | |
b6d0720c | 22007 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 22008 | fi |
1db8e007 JT |
22009 | |
22010 | # | |
22011 | # CONFIG_SUBDIRS section. | |
22012 | # | |
22013 | if test "$no_recursion" != yes; then | |
22014 | ||
22015 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
22016 | # so they do not pile up. | |
22017 | ac_sub_configure_args= | |
22018 | ac_prev= | |
22019 | eval "set x $ac_configure_args" | |
22020 | shift | |
22021 | for ac_arg | |
22022 | do | |
22023 | if test -n "$ac_prev"; then | |
22024 | ac_prev= | |
22025 | continue | |
22026 | fi | |
22027 | case $ac_arg in | |
22028 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
22029 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22030 | ac_prev=cache_file ;; | |
22031 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
22032 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
22033 | | --c=*) | |
22034 | ;; | |
22035 | --config-cache | -C) | |
22036 | ;; | |
22037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22038 | ac_prev=srcdir ;; | |
22039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22040 | ;; | |
22041 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
22042 | ac_prev=prefix ;; | |
22043 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
22044 | ;; | |
22045 | --disable-option-checking) | |
22046 | ;; | |
22047 | *) | |
22048 | case $ac_arg in | |
22049 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22050 | esac | |
22051 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
22052 | esac | |
22053 | done | |
22054 | ||
22055 | # Always prepend --prefix to ensure using the same prefix | |
22056 | # in subdir configurations. | |
22057 | ac_arg="--prefix=$prefix" | |
22058 | case $ac_arg in | |
22059 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22060 | esac | |
22061 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
22062 | ||
22063 | # Pass --silent | |
22064 | if test "$silent" = yes; then | |
22065 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
22066 | fi | |
22067 | ||
22068 | # Always prepend --disable-option-checking to silence warnings, since | |
22069 | # different subdirs can have different --enable and --with options. | |
22070 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
22071 | ||
22072 | ac_popdir=`pwd` | |
22073 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
22074 | ||
22075 | # Do not complain, so a configure script can configure whichever | |
22076 | # parts of a large source tree are present. | |
22077 | test -d "$srcdir/$ac_dir" || continue | |
22078 | ||
22079 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
22080 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
22081 | $as_echo "$ac_msg" >&6 | |
22082 | as_dir="$ac_dir"; as_fn_mkdir_p | |
22083 | ac_builddir=. | |
22084 | ||
22085 | case "$ac_dir" in | |
22086 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22087 | *) | |
22088 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
22089 | # A ".." for each directory in $ac_dir_suffix. | |
22090 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
22091 | case $ac_top_builddir_sub in | |
22092 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22093 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22094 | esac ;; | |
22095 | esac | |
22096 | ac_abs_top_builddir=$ac_pwd | |
22097 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22098 | # for backward compatibility: | |
22099 | ac_top_builddir=$ac_top_build_prefix | |
22100 | ||
22101 | case $srcdir in | |
22102 | .) # We are building in place. | |
22103 | ac_srcdir=. | |
22104 | ac_top_srcdir=$ac_top_builddir_sub | |
22105 | ac_abs_top_srcdir=$ac_pwd ;; | |
22106 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
22107 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22108 | ac_top_srcdir=$srcdir | |
22109 | ac_abs_top_srcdir=$srcdir ;; | |
22110 | *) # Relative name. | |
22111 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22112 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22113 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
22114 | esac | |
22115 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
22116 | ||
22117 | ||
22118 | cd "$ac_dir" | |
22119 | ||
22120 | # Check for guested configure; otherwise get Cygnus style configure. | |
22121 | if test -f "$ac_srcdir/configure.gnu"; then | |
22122 | ac_sub_configure=$ac_srcdir/configure.gnu | |
22123 | elif test -f "$ac_srcdir/configure"; then | |
22124 | ac_sub_configure=$ac_srcdir/configure | |
22125 | elif test -f "$ac_srcdir/configure.in"; then | |
22126 | # This should be Cygnus configure. | |
22127 | ac_sub_configure=$ac_aux_dir/configure | |
22128 | else | |
22129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
22130 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
22131 | ac_sub_configure= | |
22132 | fi | |
22133 | ||
22134 | # The recursion is here. | |
22135 | if test -n "$ac_sub_configure"; then | |
22136 | # Make the cache file name correct relative to the subdirectory. | |
22137 | case $cache_file in | |
22138 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
22139 | *) # Relative name. | |
22140 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
22141 | esac | |
22142 | ||
22143 | { $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 | |
22144 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
22145 | # The eval makes quoting arguments work. | |
22146 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
22147 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
22148 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
22149 | fi | |
22150 | ||
22151 | cd "$ac_popdir" | |
22152 | done | |
22153 | fi | |
7083c021 AC |
22154 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
22155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22156 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22157 | fi | |
b676ea3b | 22158 | |
212380e3 AC |
22159 | |
22160 | if test "$cf_openssl_version_ok" = yes; then | |
22161 | openssl="yes" | |
22162 | else | |
22163 | openssl="no" | |
22164 | fi | |
22165 | ||
22166 | if test "$shared_modules" = yes; then | |
22167 | modules=shared | |
22168 | else | |
22169 | modules=static | |
22170 | fi | |
22171 | ||
22172 | echo " | |
b6d0720c | 22173 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
22174 | Install directory : $prefix |
22175 | ||
22176 | Ziplinks : $zlib | |
22177 | OpenSSL : $openssl | |
212380e3 AC |
22178 | Socket Engine : $SELECT_TYPE |
22179 | Small network : $small_net | |
22180 | Block allocator : $balloc | |
212380e3 AC |
22181 | |
22182 | Nickname length : $NICKLEN | |
22183 | Topic length : $TOPICLEN | |
22184 | ||
b6d0720c | 22185 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 22186 | " |