]>
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 | |
eec2776c | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
c52df125 AC |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
eec2776c | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
7083c021 AC |
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 | ||
f0718c93 | 566 | lt_ltdl_dir='libltdl' |
c52df125 AC |
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 | 598 | |
212380e3 AC |
599 | # Factoring default headers for most tests. |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
631ef239 | 602 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
603 | # include <sys/types.h> |
604 | #endif | |
631ef239 | 605 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
606 | # include <sys/stat.h> |
607 | #endif | |
631ef239 | 608 | #ifdef STDC_HEADERS |
212380e3 AC |
609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
631ef239 | 612 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
631ef239 AC |
616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
631ef239 | 622 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
623 | # include <strings.h> |
624 | #endif | |
631ef239 | 625 | #ifdef HAVE_INTTYPES_H |
212380e3 | 626 | # include <inttypes.h> |
212380e3 | 627 | #endif |
631ef239 AC |
628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
eec2776c | 635 | ac_default_prefix=$HOME/ircd |
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 | |
9f9b7042 NPB |
651 | PROGRAM_PREFIX |
652 | PKGRUNDIR | |
7083c021 AC |
653 | moduledir |
654 | MODULE_DIR | |
655 | helpdir | |
656 | HELP_DIR | |
657 | logdir | |
658 | LOG_DIR | |
7083c021 | 659 | ETC_DIR |
c52df125 | 660 | SQLITE_OBJ |
a5471f24 | 661 | SQLITE_INCLUDES |
497e30a0 | 662 | SQLITE_LD |
a5471f24 LS |
663 | SQLITE_LIBS |
664 | SQLITE_CFLAGS | |
665 | PKG_CONFIG_LIBDIR | |
666 | PKG_CONFIG_PATH | |
667 | PKG_CONFIG | |
7083c021 AC |
668 | ZLIB_LD |
669 | ENCSPEED | |
670 | ALLOCA | |
7083c021 | 671 | CRYPT_LIB |
9f9b7042 NPB |
672 | PKGLIBEXECDIR |
673 | pkglibexecdir | |
674 | PKGLOCALSTATEDIR | |
675 | pkglocalstatedir | |
676 | pkgrundir | |
677 | rundir | |
678 | pkglibdir | |
7083c021 AC |
679 | LEXLIB |
680 | LEX_OUTPUT_ROOT | |
681 | LEX | |
682 | YFLAGS | |
683 | YACC | |
684 | TOUCH | |
7083c021 AC |
685 | LN |
686 | MV | |
687 | CP | |
688 | RM | |
c52df125 AC |
689 | BUILD_LTDL_FALSE |
690 | BUILD_LTDL_TRUE | |
691 | LTDLOPEN | |
692 | LT_CONFIG_H | |
c52df125 AC |
693 | CONVENIENCE_LTDL_FALSE |
694 | CONVENIENCE_LTDL_TRUE | |
695 | INSTALL_LTDL_FALSE | |
696 | INSTALL_LTDL_TRUE | |
697 | ARGZ_H | |
698 | sys_symbol_underscore | |
699 | LIBADD_DL | |
700 | LT_DLPREOPEN | |
701 | LIBADD_DLD_LINK | |
702 | LIBADD_SHL_LOAD | |
703 | LIBADD_DLOPEN | |
704 | LT_DLLOADERS | |
705 | INCLTDL | |
706 | LTDLINCL | |
707 | LTDLDEPS | |
708 | LIBLTDL | |
c52df125 AC |
709 | OTOOL64 |
710 | OTOOL | |
711 | LIPO | |
712 | NMEDIT | |
713 | DSYMUTIL | |
714 | MANIFEST_TOOL | |
715 | RANLIB | |
716 | DLLTOOL | |
717 | OBJDUMP | |
718 | LN_S | |
719 | NM | |
720 | ac_ct_DUMPBIN | |
721 | DUMPBIN | |
722 | LD | |
723 | FGREP | |
c52df125 AC |
724 | SED |
725 | host_os | |
726 | host_vendor | |
727 | host_cpu | |
728 | host | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
733 | LIBTOOL | |
eec2776c AJ |
734 | ac_ct_AR |
735 | AR | |
736 | AM_BACKSLASH | |
737 | AM_DEFAULT_VERBOSITY | |
738 | AM_DEFAULT_V | |
739 | AM_V | |
c52df125 AC |
740 | am__fastdepCC_FALSE |
741 | am__fastdepCC_TRUE | |
742 | CCDEPMODE | |
743 | am__nodep | |
744 | AMDEPBACKSLASH | |
745 | AMDEP_FALSE | |
746 | AMDEP_TRUE | |
747 | am__quote | |
748 | am__include | |
749 | DEPDIR | |
c52df125 AC |
750 | am__untar |
751 | am__tar | |
752 | AMTAR | |
753 | am__leading_dot | |
754 | SET_MAKE | |
755 | AWK | |
756 | mkdir_p | |
757 | MKDIR_P | |
758 | INSTALL_STRIP_PROGRAM | |
759 | STRIP | |
760 | install_sh | |
761 | MAKEINFO | |
762 | AUTOHEADER | |
763 | AUTOMAKE | |
764 | AUTOCONF | |
765 | ACLOCAL | |
766 | VERSION | |
767 | PACKAGE | |
768 | CYGPATH_W | |
769 | am__isrc | |
770 | INSTALL_DATA | |
771 | INSTALL_SCRIPT | |
772 | INSTALL_PROGRAM | |
eec2776c AJ |
773 | subdirs |
774 | EGREP | |
775 | GREP | |
776 | CPP | |
777 | OBJEXT | |
778 | EXEEXT | |
779 | ac_ct_CC | |
780 | CPPFLAGS | |
781 | LDFLAGS | |
782 | CFLAGS | |
783 | CC | |
7083c021 AC |
784 | target_alias |
785 | host_alias | |
786 | build_alias | |
787 | LIBS | |
788 | ECHO_T | |
789 | ECHO_N | |
790 | ECHO_C | |
791 | DEFS | |
792 | mandir | |
793 | localedir | |
794 | libdir | |
795 | psdir | |
796 | pdfdir | |
797 | dvidir | |
798 | htmldir | |
799 | infodir | |
800 | docdir | |
801 | oldincludedir | |
802 | includedir | |
803 | localstatedir | |
804 | sharedstatedir | |
805 | sysconfdir | |
806 | datadir | |
807 | datarootdir | |
808 | libexecdir | |
809 | sbindir | |
810 | bindir | |
811 | program_transform_name | |
812 | prefix | |
813 | exec_prefix | |
814 | PACKAGE_URL | |
815 | PACKAGE_BUGREPORT | |
816 | PACKAGE_STRING | |
817 | PACKAGE_VERSION | |
818 | PACKAGE_TARNAME | |
819 | PACKAGE_NAME | |
820 | PATH_SEPARATOR | |
821 | SHELL' | |
212380e3 | 822 | ac_subst_files='' |
7083c021 AC |
823 | ac_user_opts=' |
824 | enable_option_checking | |
c52df125 | 825 | enable_dependency_tracking |
eec2776c | 826 | enable_silent_rules |
c52df125 AC |
827 | enable_static |
828 | enable_shared | |
829 | with_pic | |
830 | enable_fast_install | |
831 | with_gnu_ld | |
832 | with_sysroot | |
833 | enable_libtool_lock | |
834 | with_included_ltdl | |
835 | with_ltdl_include | |
836 | with_ltdl_lib | |
837 | enable_ltdl_install | |
9f9b7042 | 838 | enable_fhs_paths |
7083c021 AC |
839 | enable_ipv6 |
840 | enable_openssl | |
841 | with_zlib_path | |
842 | enable_zlib | |
a6ef3156 | 843 | with_shared_sqlite |
7083c021 AC |
844 | with_confdir |
845 | with_logdir | |
846 | with_helpdir | |
847 | with_moduledir | |
9f9b7042 NPB |
848 | with_rundir |
849 | with_program_prefix | |
b6d0720c AC |
850 | with_custom_branding |
851 | with_custom_version | |
7083c021 AC |
852 | enable_assert |
853 | enable_iodebug | |
854 | enable_profile | |
855 | enable_balloc | |
856 | enable_small_net | |
857 | with_nicklen | |
858 | with_topiclen | |
859 | enable_warnings | |
860 | ' | |
631ef239 AC |
861 | ac_precious_vars='build_alias |
862 | host_alias | |
863 | target_alias | |
864 | CC | |
865 | CFLAGS | |
866 | LDFLAGS | |
867 | LIBS | |
868 | CPPFLAGS | |
869 | CPP | |
870 | YACC | |
a5471f24 LS |
871 | YFLAGS |
872 | PKG_CONFIG | |
873 | PKG_CONFIG_PATH | |
874 | PKG_CONFIG_LIBDIR | |
875 | SQLITE_CFLAGS | |
876 | SQLITE_LIBS' | |
eec2776c | 877 | ac_subdirs_all='libratbox |
eec2776c | 878 | libltdl' |
212380e3 AC |
879 | |
880 | # Initialize some variables set by options. | |
881 | ac_init_help= | |
882 | ac_init_version=false | |
7083c021 AC |
883 | ac_unrecognized_opts= |
884 | ac_unrecognized_sep= | |
212380e3 AC |
885 | # The variables have the same names as the options, with |
886 | # dashes changed to underlines. | |
887 | cache_file=/dev/null | |
888 | exec_prefix=NONE | |
889 | no_create= | |
890 | no_recursion= | |
891 | prefix=NONE | |
892 | program_prefix=NONE | |
893 | program_suffix=NONE | |
894 | program_transform_name=s,x,x, | |
895 | silent= | |
896 | site= | |
897 | srcdir= | |
898 | verbose= | |
899 | x_includes=NONE | |
900 | x_libraries=NONE | |
901 | ||
902 | # Installation directory options. | |
903 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
904 | # and all the variables that are supposed to be based on exec_prefix | |
905 | # by default will actually change. | |
906 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 907 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
908 | bindir='${exec_prefix}/bin' |
909 | sbindir='${exec_prefix}/sbin' | |
910 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
911 | datarootdir='${prefix}/share' |
912 | datadir='${datarootdir}' | |
212380e3 AC |
913 | sysconfdir='${prefix}/etc' |
914 | sharedstatedir='${prefix}/com' | |
915 | localstatedir='${prefix}/var' | |
212380e3 AC |
916 | includedir='${prefix}/include' |
917 | oldincludedir='/usr/include' | |
631ef239 AC |
918 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
919 | infodir='${datarootdir}/info' | |
920 | htmldir='${docdir}' | |
921 | dvidir='${docdir}' | |
922 | pdfdir='${docdir}' | |
923 | psdir='${docdir}' | |
924 | libdir='${exec_prefix}/lib' | |
925 | localedir='${datarootdir}/locale' | |
926 | mandir='${datarootdir}/man' | |
212380e3 AC |
927 | |
928 | ac_prev= | |
631ef239 | 929 | ac_dashdash= |
212380e3 AC |
930 | for ac_option |
931 | do | |
932 | # If the previous option needs an argument, assign it. | |
933 | if test -n "$ac_prev"; then | |
631ef239 | 934 | eval $ac_prev=\$ac_option |
212380e3 AC |
935 | ac_prev= |
936 | continue | |
937 | fi | |
938 | ||
631ef239 | 939 | case $ac_option in |
b6d0720c AC |
940 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
941 | *=) ac_optarg= ;; | |
942 | *) ac_optarg=yes ;; | |
631ef239 | 943 | esac |
212380e3 AC |
944 | |
945 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
946 | ||
631ef239 AC |
947 | case $ac_dashdash$ac_option in |
948 | --) | |
949 | ac_dashdash=yes ;; | |
212380e3 AC |
950 | |
951 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
952 | ac_prev=bindir ;; | |
953 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
954 | bindir=$ac_optarg ;; | |
955 | ||
956 | -build | --build | --buil | --bui | --bu) | |
957 | ac_prev=build_alias ;; | |
958 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
959 | build_alias=$ac_optarg ;; | |
960 | ||
961 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
962 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
963 | ac_prev=cache_file ;; | |
964 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
965 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
966 | cache_file=$ac_optarg ;; | |
967 | ||
968 | --config-cache | -C) | |
969 | cache_file=config.cache ;; | |
970 | ||
631ef239 | 971 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 972 | ac_prev=datadir ;; |
631ef239 | 973 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
974 | datadir=$ac_optarg ;; |
975 | ||
631ef239 AC |
976 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
977 | | --dataroo | --dataro | --datar) | |
978 | ac_prev=datarootdir ;; | |
979 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
980 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
981 | datarootdir=$ac_optarg ;; | |
982 | ||
212380e3 | 983 | -disable-* | --disable-*) |
7083c021 | 984 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 985 | # Reject names that are not valid shell variable names. |
7083c021 | 986 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 987 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
988 | ac_useropt_orig=$ac_useropt |
989 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
990 | case $ac_user_opts in | |
991 | *" | |
992 | "enable_$ac_useropt" | |
993 | "*) ;; | |
994 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
995 | ac_unrecognized_sep=', ';; | |
996 | esac | |
997 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
998 | |
999 | -docdir | --docdir | --docdi | --doc | --do) | |
1000 | ac_prev=docdir ;; | |
1001 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1002 | docdir=$ac_optarg ;; | |
1003 | ||
1004 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1005 | ac_prev=dvidir ;; | |
1006 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1007 | dvidir=$ac_optarg ;; | |
212380e3 AC |
1008 | |
1009 | -enable-* | --enable-*) | |
7083c021 | 1010 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 1011 | # Reject names that are not valid shell variable names. |
7083c021 | 1012 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1013 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
1014 | ac_useropt_orig=$ac_useropt |
1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1016 | case $ac_user_opts in | |
1017 | *" | |
1018 | "enable_$ac_useropt" | |
1019 | "*) ;; | |
1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
1022 | esac | |
1023 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1024 | |
1025 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1026 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1027 | | --exec | --exe | --ex) | |
1028 | ac_prev=exec_prefix ;; | |
1029 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1030 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1031 | | --exec=* | --exe=* | --ex=*) | |
1032 | exec_prefix=$ac_optarg ;; | |
1033 | ||
1034 | -gas | --gas | --ga | --g) | |
1035 | # Obsolete; use --with-gas. | |
1036 | with_gas=yes ;; | |
1037 | ||
1038 | -help | --help | --hel | --he | -h) | |
1039 | ac_init_help=long ;; | |
1040 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1041 | ac_init_help=recursive ;; | |
1042 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1043 | ac_init_help=short ;; | |
1044 | ||
1045 | -host | --host | --hos | --ho) | |
1046 | ac_prev=host_alias ;; | |
1047 | -host=* | --host=* | --hos=* | --ho=*) | |
1048 | host_alias=$ac_optarg ;; | |
1049 | ||
631ef239 AC |
1050 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1051 | ac_prev=htmldir ;; | |
1052 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1053 | | --ht=*) | |
1054 | htmldir=$ac_optarg ;; | |
1055 | ||
212380e3 AC |
1056 | -includedir | --includedir | --includedi | --included | --include \ |
1057 | | --includ | --inclu | --incl | --inc) | |
1058 | ac_prev=includedir ;; | |
1059 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1060 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1061 | includedir=$ac_optarg ;; | |
1062 | ||
1063 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1064 | ac_prev=infodir ;; | |
1065 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1066 | infodir=$ac_optarg ;; | |
1067 | ||
1068 | -libdir | --libdir | --libdi | --libd) | |
1069 | ac_prev=libdir ;; | |
1070 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1071 | libdir=$ac_optarg ;; | |
1072 | ||
1073 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1074 | | --libexe | --libex | --libe) | |
1075 | ac_prev=libexecdir ;; | |
1076 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1077 | | --libexe=* | --libex=* | --libe=*) | |
1078 | libexecdir=$ac_optarg ;; | |
1079 | ||
631ef239 AC |
1080 | -localedir | --localedir | --localedi | --localed | --locale) |
1081 | ac_prev=localedir ;; | |
1082 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1083 | localedir=$ac_optarg ;; | |
1084 | ||
212380e3 | 1085 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 1086 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
1087 | ac_prev=localstatedir ;; |
1088 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 1089 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
1090 | localstatedir=$ac_optarg ;; |
1091 | ||
1092 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1093 | ac_prev=mandir ;; | |
1094 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1095 | mandir=$ac_optarg ;; | |
1096 | ||
1097 | -nfp | --nfp | --nf) | |
1098 | # Obsolete; use --without-fp. | |
1099 | with_fp=no ;; | |
1100 | ||
1101 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1102 | | --no-cr | --no-c | -n) | |
1103 | no_create=yes ;; | |
1104 | ||
1105 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1106 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1107 | no_recursion=yes ;; | |
1108 | ||
1109 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1110 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1111 | | --oldin | --oldi | --old | --ol | --o) | |
1112 | ac_prev=oldincludedir ;; | |
1113 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1114 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1115 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1116 | oldincludedir=$ac_optarg ;; | |
1117 | ||
1118 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1119 | ac_prev=prefix ;; | |
1120 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1121 | prefix=$ac_optarg ;; | |
1122 | ||
1123 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1124 | | --program-pre | --program-pr | --program-p) | |
1125 | ac_prev=program_prefix ;; | |
1126 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1127 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1128 | program_prefix=$ac_optarg ;; | |
1129 | ||
1130 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1131 | | --program-suf | --program-su | --program-s) | |
1132 | ac_prev=program_suffix ;; | |
1133 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1134 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1135 | program_suffix=$ac_optarg ;; | |
1136 | ||
1137 | -program-transform-name | --program-transform-name \ | |
1138 | | --program-transform-nam | --program-transform-na \ | |
1139 | | --program-transform-n | --program-transform- \ | |
1140 | | --program-transform | --program-transfor \ | |
1141 | | --program-transfo | --program-transf \ | |
1142 | | --program-trans | --program-tran \ | |
1143 | | --progr-tra | --program-tr | --program-t) | |
1144 | ac_prev=program_transform_name ;; | |
1145 | -program-transform-name=* | --program-transform-name=* \ | |
1146 | | --program-transform-nam=* | --program-transform-na=* \ | |
1147 | | --program-transform-n=* | --program-transform-=* \ | |
1148 | | --program-transform=* | --program-transfor=* \ | |
1149 | | --program-transfo=* | --program-transf=* \ | |
1150 | | --program-trans=* | --program-tran=* \ | |
1151 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1152 | program_transform_name=$ac_optarg ;; | |
1153 | ||
631ef239 AC |
1154 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1155 | ac_prev=pdfdir ;; | |
1156 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1157 | pdfdir=$ac_optarg ;; | |
1158 | ||
1159 | -psdir | --psdir | --psdi | --psd | --ps) | |
1160 | ac_prev=psdir ;; | |
1161 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1162 | psdir=$ac_optarg ;; | |
1163 | ||
212380e3 AC |
1164 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1165 | | -silent | --silent | --silen | --sile | --sil) | |
1166 | silent=yes ;; | |
1167 | ||
1168 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1169 | ac_prev=sbindir ;; | |
1170 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1171 | | --sbi=* | --sb=*) | |
1172 | sbindir=$ac_optarg ;; | |
1173 | ||
1174 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1175 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1176 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1177 | | --sha | --sh) | |
1178 | ac_prev=sharedstatedir ;; | |
1179 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1180 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1181 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1182 | | --sha=* | --sh=*) | |
1183 | sharedstatedir=$ac_optarg ;; | |
1184 | ||
1185 | -site | --site | --sit) | |
1186 | ac_prev=site ;; | |
1187 | -site=* | --site=* | --sit=*) | |
1188 | site=$ac_optarg ;; | |
1189 | ||
1190 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1191 | ac_prev=srcdir ;; | |
1192 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1193 | srcdir=$ac_optarg ;; | |
1194 | ||
1195 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1196 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1197 | ac_prev=sysconfdir ;; | |
1198 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1199 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1200 | sysconfdir=$ac_optarg ;; | |
1201 | ||
1202 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1203 | ac_prev=target_alias ;; | |
1204 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1205 | target_alias=$ac_optarg ;; | |
1206 | ||
1207 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1208 | verbose=yes ;; | |
1209 | ||
1210 | -version | --version | --versio | --versi | --vers | -V) | |
1211 | ac_init_version=: ;; | |
1212 | ||
1213 | -with-* | --with-*) | |
7083c021 | 1214 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1215 | # Reject names that are not valid shell variable names. |
7083c021 | 1216 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1217 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1218 | ac_useropt_orig=$ac_useropt |
1219 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1220 | case $ac_user_opts in | |
1221 | *" | |
1222 | "with_$ac_useropt" | |
1223 | "*) ;; | |
1224 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1225 | ac_unrecognized_sep=', ';; | |
1226 | esac | |
1227 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1228 | |
1229 | -without-* | --without-*) | |
7083c021 | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1231 | # Reject names that are not valid shell variable names. |
7083c021 | 1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1233 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1234 | ac_useropt_orig=$ac_useropt |
1235 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1236 | case $ac_user_opts in | |
1237 | *" | |
1238 | "with_$ac_useropt" | |
1239 | "*) ;; | |
1240 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1241 | ac_unrecognized_sep=', ';; | |
1242 | esac | |
1243 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1244 | |
1245 | --x) | |
1246 | # Obsolete; use --with-x. | |
1247 | with_x=yes ;; | |
1248 | ||
1249 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1250 | | --x-incl | --x-inc | --x-in | --x-i) | |
1251 | ac_prev=x_includes ;; | |
1252 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1253 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1254 | x_includes=$ac_optarg ;; | |
1255 | ||
1256 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1257 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1258 | ac_prev=x_libraries ;; | |
1259 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1260 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1261 | x_libraries=$ac_optarg ;; | |
1262 | ||
b6d0720c AC |
1263 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1264 | Try \`$0 --help' for more information" | |
212380e3 AC |
1265 | ;; |
1266 | ||
1267 | *=*) | |
1268 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1269 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1270 | case $ac_envvar in #( |
1271 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1272 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1273 | esac |
631ef239 | 1274 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1275 | export $ac_envvar ;; |
1276 | ||
1277 | *) | |
1278 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1279 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1280 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1281 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1282 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1283 | ;; |
1284 | ||
1285 | esac | |
1286 | done | |
1287 | ||
1288 | if test -n "$ac_prev"; then | |
1289 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1290 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1291 | fi |
1292 | ||
7083c021 AC |
1293 | if test -n "$ac_unrecognized_opts"; then |
1294 | case $enable_option_checking in | |
1295 | no) ;; | |
b6d0720c | 1296 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1297 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1298 | esac | |
1299 | fi | |
1300 | ||
1301 | # Check all directory arguments for consistency. | |
631ef239 AC |
1302 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1303 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1304 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1305 | libdir localedir mandir | |
212380e3 | 1306 | do |
631ef239 | 1307 | eval ac_val=\$$ac_var |
7083c021 AC |
1308 | # Remove trailing slashes. |
1309 | case $ac_val in | |
1310 | */ ) | |
1311 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1312 | eval $ac_var=\$ac_val;; | |
1313 | esac | |
1314 | # Be sure to have absolute directory names. | |
212380e3 | 1315 | case $ac_val in |
631ef239 AC |
1316 | [\\/$]* | ?:[\\/]* ) continue;; |
1317 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1318 | esac |
b6d0720c | 1319 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1320 | done |
1321 | ||
1322 | # There might be people who depend on the old broken behavior: `$host' | |
1323 | # used to hold the argument of --host etc. | |
1324 | # FIXME: To remove some day. | |
1325 | build=$build_alias | |
1326 | host=$host_alias | |
1327 | target=$target_alias | |
1328 | ||
1329 | # FIXME: To remove some day. | |
1330 | if test "x$host_alias" != x; then | |
1331 | if test "x$build_alias" = x; then | |
1332 | cross_compiling=maybe | |
212380e3 AC |
1333 | elif test "x$build_alias" != "x$host_alias"; then |
1334 | cross_compiling=yes | |
1335 | fi | |
1336 | fi | |
1337 | ||
1338 | ac_tool_prefix= | |
1339 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1340 | ||
1341 | test "$silent" = yes && exec 6>/dev/null | |
1342 | ||
1343 | ||
631ef239 AC |
1344 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1345 | ac_ls_di=`ls -di .` && | |
1346 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1347 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1348 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1349 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1350 | |
1351 | ||
1352 | # Find the source files, if location was not specified. | |
1353 | if test -z "$srcdir"; then | |
212380e3 | 1354 | ac_srcdir_defaulted=yes |
631ef239 | 1355 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1356 | ac_confdir=`$as_dirname -- "$as_myself" || |
1357 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1358 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1359 | X"$as_myself" : 'X\(//\)$' \| \ | |
1360 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1361 | $as_echo X"$as_myself" | | |
631ef239 AC |
1362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1363 | s//\1/ | |
1364 | q | |
1365 | } | |
1366 | /^X\(\/\/\)[^/].*/{ | |
1367 | s//\1/ | |
1368 | q | |
1369 | } | |
1370 | /^X\(\/\/\)$/{ | |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\).*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | s/.*/./; q'` | |
212380e3 | 1379 | srcdir=$ac_confdir |
631ef239 | 1380 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1381 | srcdir=.. |
1382 | fi | |
1383 | else | |
1384 | ac_srcdir_defaulted=no | |
1385 | fi | |
631ef239 AC |
1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
1387 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1388 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1389 | fi |
631ef239 AC |
1390 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1391 | ac_abs_confdir=`( | |
b6d0720c | 1392 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1393 | pwd)` |
1394 | # When building in place, set srcdir=. | |
1395 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1396 | srcdir=. | |
1397 | fi | |
1398 | # Remove unnecessary trailing slashes from srcdir. | |
1399 | # Double slashes in file names in object file debugging info | |
1400 | # mess up M-x gdb in Emacs. | |
1401 | case $srcdir in | |
1402 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1403 | esac | |
1404 | for ac_var in $ac_precious_vars; do | |
1405 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1406 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1407 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1408 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1409 | done | |
212380e3 AC |
1410 | |
1411 | # | |
1412 | # Report the --help message. | |
1413 | # | |
1414 | if test "$ac_init_help" = "long"; then | |
1415 | # Omit some internal or obsolete options to make the list less imposing. | |
1416 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1417 | cat <<_ACEOF | |
c52df125 | 1418 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1419 | |
1420 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1421 | ||
1422 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1423 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1424 | ||
1425 | Defaults for the options are specified in brackets. | |
1426 | ||
1427 | Configuration: | |
1428 | -h, --help display this help and exit | |
1429 | --help=short display options specific to this package | |
1430 | --help=recursive display the short help of all the included packages | |
1431 | -V, --version display version information and exit | |
b6d0720c | 1432 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1433 | --cache-file=FILE cache test results in FILE [disabled] |
1434 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1435 | -n, --no-create do not create output files | |
1436 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1437 | ||
212380e3 AC |
1438 | Installation directories: |
1439 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1440 | [$ac_default_prefix] |
212380e3 | 1441 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1442 | [PREFIX] |
212380e3 AC |
1443 | |
1444 | By default, \`make install' will install all the files in | |
1445 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1446 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1447 | for instance \`--prefix=\$HOME'. | |
1448 | ||
1449 | For better control, use the options below. | |
1450 | ||
1451 | Fine tuning of the installation directories: | |
7083c021 AC |
1452 | --bindir=DIR user executables [EPREFIX/bin] |
1453 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1454 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1455 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1456 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1457 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1458 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1459 | --includedir=DIR C header files [PREFIX/include] | |
1460 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1461 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1462 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1463 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1464 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1465 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1466 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1467 | --htmldir=DIR html documentation [DOCDIR] | |
1468 | --dvidir=DIR dvi documentation [DOCDIR] | |
1469 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1470 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1471 | _ACEOF |
1472 | ||
1473 | cat <<\_ACEOF | |
c52df125 AC |
1474 | |
1475 | Program names: | |
1476 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1477 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1478 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1479 | ||
1480 | System types: | |
1481 | --build=BUILD configure for building on BUILD [guessed] | |
1482 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
212380e3 AC |
1483 | _ACEOF |
1484 | fi | |
1485 | ||
1486 | if test -n "$ac_init_help"; then | |
1487 | case $ac_init_help in | |
c52df125 | 1488 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; |
212380e3 AC |
1489 | esac |
1490 | cat <<\_ACEOF | |
1491 | ||
1492 | Optional Features: | |
7083c021 | 1493 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1494 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1495 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c52df125 AC |
1496 | --enable-dependency-tracking |
1497 | do not reject slow dependency extractors | |
1498 | --disable-dependency-tracking | |
1499 | speeds up one-time build | |
eec2776c AJ |
1500 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1501 | --disable-silent-rules verbose build output (undo: "make V=0") | |
c52df125 AC |
1502 | --enable-static[=PKGS] build static libraries [default=no] |
1503 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1504 | --enable-fast-install[=PKGS] | |
1505 | optimize for fast installation [default=yes] | |
1506 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1507 | --enable-ltdl-install install libltdl | |
6929cd01 | 1508 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1509 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1510 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1511 | --disable-openssl Disable OpenSSL support. |
1512 | --disable-zlib Disable ziplinks support | |
212380e3 AC |
1513 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1514 | hard(aborts the daemon) | |
1515 | --enable-iodebug Enable IO Debugging hooks | |
1516 | --enable-profile Enable profiling | |
1517 | --disable-balloc Disable the block allocator. | |
212380e3 | 1518 | --enable-small-net Enable small network support. |
212380e3 AC |
1519 | --enable-warnings Enable all sorts of warnings for debugging. |
1520 | ||
1521 | Optional Packages: | |
1522 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1523 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
c52df125 AC |
1524 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1525 | both] | |
1526 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1527 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1528 | (or the compiler's sysroot if not specified). | |
1529 | --with-included-ltdl use the GNU ltdl sources included here | |
1530 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1531 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
212380e3 | 1532 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
a6ef3156 | 1533 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1534 | --with-confdir=DIR Directory to install config files [deprecated, use |
1535 | --sysconfdir instead]. | |
212380e3 AC |
1536 | --with-logdir=DIR Directory where to write logfiles. |
1537 | --with-helpdir=DIR Directory to install help files. | |
1538 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1539 | --with-rundir=DIR Directory in which to store pidfile. |
1540 | --with-program-prefix= If set, programs installed into PATH will be | |
1541 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1542 | --with-custom-branding=NAME |
1543 | Custom branding name. | |
1544 | --with-custom-version=NAME | |
1545 | Custom version branding. | |
b583faf9 | 1546 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1547 | 31, max 50) |
212380e3 AC |
1548 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1549 | 390) | |
212380e3 AC |
1550 | |
1551 | Some influential environment variables: | |
1552 | CC C compiler command | |
1553 | CFLAGS C compiler flags | |
1554 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1555 | nonstandard directory <lib dir> | |
631ef239 | 1556 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1557 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1558 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1559 | CPP C preprocessor |
b6d0720c AC |
1560 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1561 | Defaults to the first program found out of: `bison -y', `byacc', | |
1562 | `yacc'. | |
631ef239 AC |
1563 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1564 | This script will default YFLAGS to the empty string to avoid a | |
1565 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1566 | PKG_CONFIG path to pkg-config utility |
1567 | PKG_CONFIG_PATH | |
1568 | directories to add to pkg-config's search path | |
1569 | PKG_CONFIG_LIBDIR | |
1570 | path overriding pkg-config's built-in search path | |
1571 | SQLITE_CFLAGS | |
1572 | C compiler flags for SQLITE, overriding pkg-config | |
1573 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1574 | |
1575 | Use these variables to override the choices made by `configure' or to help | |
1576 | it to find libraries and programs with nonstandard names/locations. | |
1577 | ||
7083c021 | 1578 | Report bugs to the package provider. |
212380e3 | 1579 | _ACEOF |
631ef239 | 1580 | ac_status=$? |
212380e3 AC |
1581 | fi |
1582 | ||
1583 | if test "$ac_init_help" = "recursive"; then | |
1584 | # If there are subdirs, report their specific --help. | |
212380e3 | 1585 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1586 | test -d "$ac_dir" || |
1587 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1588 | continue | |
212380e3 AC |
1589 | ac_builddir=. |
1590 | ||
631ef239 AC |
1591 | case "$ac_dir" in |
1592 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1593 | *) | |
7083c021 | 1594 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1595 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1596 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1597 | case $ac_top_builddir_sub in |
1598 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1599 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1600 | esac ;; | |
1601 | esac | |
1602 | ac_abs_top_builddir=$ac_pwd | |
1603 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1604 | # for backward compatibility: | |
1605 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1606 | |
1607 | case $srcdir in | |
631ef239 | 1608 | .) # We are building in place. |
212380e3 | 1609 | ac_srcdir=. |
631ef239 AC |
1610 | ac_top_srcdir=$ac_top_builddir_sub |
1611 | ac_abs_top_srcdir=$ac_pwd ;; | |
1612 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1613 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1614 | ac_top_srcdir=$srcdir |
1615 | ac_abs_top_srcdir=$srcdir ;; | |
1616 | *) # Relative name. | |
1617 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1618 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1619 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1620 | esac |
631ef239 AC |
1621 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1622 | ||
1623 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1624 | # Check for guested configure. | |
1625 | if test -f "$ac_srcdir/configure.gnu"; then | |
1626 | echo && | |
1627 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1628 | elif test -f "$ac_srcdir/configure"; then | |
1629 | echo && | |
1630 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1631 | else |
7083c021 | 1632 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1633 | fi || ac_status=$? |
1634 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1635 | done |
1636 | fi | |
1637 | ||
631ef239 | 1638 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1639 | if $ac_init_version; then |
1640 | cat <<\_ACEOF | |
c52df125 | 1641 | charybdis configure 3.6.0-dev |
2eff3833 | 1642 | generated by GNU Autoconf 2.69 |
212380e3 | 1643 | |
2eff3833 | 1644 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1645 | This configure script is free software; the Free Software Foundation |
1646 | gives unlimited permission to copy, distribute and modify it. | |
212380e3 | 1647 | _ACEOF |
631ef239 | 1648 | exit |
212380e3 | 1649 | fi |
212380e3 | 1650 | |
7083c021 AC |
1651 | ## ------------------------ ## |
1652 | ## Autoconf initialization. ## | |
1653 | ## ------------------------ ## | |
212380e3 | 1654 | |
7083c021 AC |
1655 | # ac_fn_c_try_compile LINENO |
1656 | # -------------------------- | |
1657 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1658 | ac_fn_c_try_compile () | |
1659 | { | |
1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1661 | rm -f conftest.$ac_objext | |
1662 | if { { ac_try="$ac_compile" | |
1663 | case "(($ac_try" in | |
1664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1665 | *) ac_try_echo=$ac_try;; | |
1666 | esac | |
1667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1668 | $as_echo "$ac_try_echo"; } >&5 | |
1669 | (eval "$ac_compile") 2>conftest.err | |
1670 | ac_status=$? | |
1671 | if test -s conftest.err; then | |
1672 | grep -v '^ *+' conftest.err >conftest.er1 | |
1673 | cat conftest.er1 >&5 | |
1674 | mv -f conftest.er1 conftest.err | |
1675 | fi | |
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1677 | test $ac_status = 0; } && { | |
1678 | test -z "$ac_c_werror_flag" || | |
1679 | test ! -s conftest.err | |
1680 | } && test -s conftest.$ac_objext; then : | |
1681 | ac_retval=0 | |
1682 | else | |
1683 | $as_echo "$as_me: failed program was:" >&5 | |
1684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1685 | |
7083c021 AC |
1686 | ac_retval=1 |
1687 | fi | |
b6d0720c | 1688 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1689 | as_fn_set_status $ac_retval |
7083c021 AC |
1690 | |
1691 | } # ac_fn_c_try_compile | |
1692 | ||
eec2776c AJ |
1693 | # ac_fn_c_try_cpp LINENO |
1694 | # ---------------------- | |
1695 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_cpp () | |
212380e3 | 1697 | { |
7083c021 | 1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
eec2776c | 1699 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
7083c021 AC |
1700 | case "(($ac_try" in |
1701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1702 | *) ac_try_echo=$ac_try;; | |
1703 | esac | |
1704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1705 | $as_echo "$ac_try_echo"; } >&5 | |
eec2776c | 1706 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
7083c021 AC |
1707 | ac_status=$? |
1708 | if test -s conftest.err; then | |
1709 | grep -v '^ *+' conftest.err >conftest.er1 | |
1710 | cat conftest.er1 >&5 | |
1711 | mv -f conftest.er1 conftest.err | |
1712 | fi | |
1713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
1714 | test $ac_status = 0; } > conftest.i && { |
1715 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7083c021 AC |
1716 | test ! -s conftest.err |
1717 | }; then : | |
1718 | ac_retval=0 | |
1719 | else | |
1720 | $as_echo "$as_me: failed program was:" >&5 | |
1721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1722 | |
eec2776c | 1723 | ac_retval=1 |
7083c021 | 1724 | fi |
b6d0720c | 1725 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1726 | as_fn_set_status $ac_retval |
212380e3 | 1727 | |
eec2776c | 1728 | } # ac_fn_c_try_cpp |
212380e3 | 1729 | |
eec2776c | 1730 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
7083c021 | 1731 | # ------------------------------------------------------- |
eec2776c AJ |
1732 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1733 | # the include files in INCLUDES and setting the cache variable VAR | |
1734 | # accordingly. | |
1735 | ac_fn_c_check_header_mongrel () | |
7083c021 AC |
1736 | { |
1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
eec2776c | 1738 | if eval \${$3+:} false; then : |
7083c021 AC |
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1740 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1741 | if eval \${$3+:} false; then : |
7083c021 | 1742 | $as_echo_n "(cached) " >&6 |
eec2776c AJ |
1743 | fi |
1744 | eval ac_res=\$$3 | |
1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1746 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1747 | else |
eec2776c AJ |
1748 | # Is the header compilable? |
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1750 | $as_echo_n "checking $2 usability... " >&6; } | |
1751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 AC |
1752 | /* end confdefs.h. */ |
1753 | $4 | |
1754 | #include <$2> | |
1755 | _ACEOF | |
1756 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c | 1757 | ac_header_compiler=yes |
7083c021 | 1758 | else |
eec2776c | 1759 | ac_header_compiler=no |
7083c021 AC |
1760 | fi |
1761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1763 | $as_echo "$ac_header_compiler" >&6; } | |
c52df125 | 1764 | |
eec2776c AJ |
1765 | # Is the header present? |
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1767 | $as_echo_n "checking $2 presence... " >&6; } | |
1768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1769 | /* end confdefs.h. */ | |
1770 | #include <$2> | |
1771 | _ACEOF | |
1772 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1773 | ac_header_preproc=yes | |
1774 | else | |
1775 | ac_header_preproc=no | |
1776 | fi | |
1777 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1779 | $as_echo "$ac_header_preproc" >&6; } | |
c52df125 | 1780 | |
eec2776c AJ |
1781 | # So? What about this header? |
1782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1783 | yes:no: ) | |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1785 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1788 | ;; | |
1789 | no:yes:* ) | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1791 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1793 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1795 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1797 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1799 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1800 | ;; | |
c52df125 | 1801 | esac |
eec2776c AJ |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1803 | $as_echo_n "checking for $2... " >&6; } | |
1804 | if eval \${$3+:} false; then : | |
1805 | $as_echo_n "(cached) " >&6 | |
c52df125 | 1806 | else |
eec2776c AJ |
1807 | eval "$3=\$ac_header_compiler" |
1808 | fi | |
1809 | eval ac_res=\$$3 | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1811 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1812 | fi |
b6d0720c | 1813 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1814 | |
eec2776c | 1815 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1816 | |
7083c021 AC |
1817 | # ac_fn_c_try_run LINENO |
1818 | # ---------------------- | |
1819 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1820 | # that executables *can* be run. | |
1821 | ac_fn_c_try_run () | |
1822 | { | |
1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1824 | if { { ac_try="$ac_link" | |
1825 | case "(($ac_try" in | |
1826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1827 | *) ac_try_echo=$ac_try;; | |
1828 | esac | |
1829 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1830 | $as_echo "$ac_try_echo"; } >&5 | |
1831 | (eval "$ac_link") 2>&5 | |
1832 | ac_status=$? | |
1833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1834 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1835 | { { case "(($ac_try" in | |
1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1837 | *) ac_try_echo=$ac_try;; | |
1838 | esac | |
1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1840 | $as_echo "$ac_try_echo"; } >&5 | |
1841 | (eval "$ac_try") 2>&5 | |
1842 | ac_status=$? | |
1843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1844 | test $ac_status = 0; }; }; then : | |
1845 | ac_retval=0 | |
1846 | else | |
1847 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1848 | $as_echo "$as_me: failed program was:" >&5 | |
1849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1850 | |
7083c021 AC |
1851 | ac_retval=$ac_status |
1852 | fi | |
1853 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1854 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1855 | as_fn_set_status $ac_retval |
212380e3 | 1856 | |
7083c021 | 1857 | } # ac_fn_c_try_run |
212380e3 | 1858 | |
eec2776c AJ |
1859 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1860 | # ------------------------------------------------------- | |
1861 | # Tests whether HEADER exists and can be compiled using the include files in | |
1862 | # INCLUDES, setting the cache variable VAR accordingly. | |
1863 | ac_fn_c_check_header_compile () | |
1864 | { | |
1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1867 | $as_echo_n "checking for $2... " >&6; } | |
1868 | if eval \${$3+:} false; then : | |
1869 | $as_echo_n "(cached) " >&6 | |
1870 | else | |
1871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1872 | /* end confdefs.h. */ | |
1873 | $4 | |
1874 | #include <$2> | |
1875 | _ACEOF | |
1876 | if ac_fn_c_try_compile "$LINENO"; then : | |
1877 | eval "$3=yes" | |
1878 | else | |
1879 | eval "$3=no" | |
1880 | fi | |
1881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1882 | fi | |
1883 | eval ac_res=\$$3 | |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1885 | $as_echo "$ac_res" >&6; } | |
1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1887 | ||
1888 | } # ac_fn_c_check_header_compile | |
1889 | ||
1890 | # ac_fn_c_try_link LINENO | |
1891 | # ----------------------- | |
1892 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1893 | ac_fn_c_try_link () | |
1894 | { | |
1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1897 | if { { ac_try="$ac_link" | |
1898 | case "(($ac_try" in | |
1899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1900 | *) ac_try_echo=$ac_try;; | |
1901 | esac | |
1902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1903 | $as_echo "$ac_try_echo"; } >&5 | |
1904 | (eval "$ac_link") 2>conftest.err | |
1905 | ac_status=$? | |
1906 | if test -s conftest.err; then | |
1907 | grep -v '^ *+' conftest.err >conftest.er1 | |
1908 | cat conftest.er1 >&5 | |
1909 | mv -f conftest.er1 conftest.err | |
1910 | fi | |
1911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1912 | test $ac_status = 0; } && { | |
1913 | test -z "$ac_c_werror_flag" || | |
1914 | test ! -s conftest.err | |
1915 | } && test -s conftest$ac_exeext && { | |
1916 | test "$cross_compiling" = yes || | |
1917 | test -x conftest$ac_exeext | |
1918 | }; then : | |
1919 | ac_retval=0 | |
1920 | else | |
1921 | $as_echo "$as_me: failed program was:" >&5 | |
1922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1923 | ||
1924 | ac_retval=1 | |
1925 | fi | |
1926 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1927 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1928 | # interfere with the next link command; also delete a directory that is | |
1929 | # left behind by Apple's compiler. We do this before executing the actions. | |
1930 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1931 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1932 | as_fn_set_status $ac_retval | |
1933 | ||
1934 | } # ac_fn_c_try_link | |
1935 | ||
c52df125 AC |
1936 | # ac_fn_c_check_func LINENO FUNC VAR |
1937 | # ---------------------------------- | |
1938 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1939 | ac_fn_c_check_func () | |
7083c021 AC |
1940 | { |
1941 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1943 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1944 | if eval \${$3+:} false; then : |
7083c021 AC |
1945 | $as_echo_n "(cached) " >&6 |
1946 | else | |
1947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1948 | /* end confdefs.h. */ | |
c52df125 AC |
1949 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1951 | #define $2 innocuous_$2 | |
1952 | ||
1953 | /* System header to define __stub macros and hopefully few prototypes, | |
1954 | which can conflict with char $2 (); below. | |
1955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1956 | <limits.h> exists even on freestanding compilers. */ | |
1957 | ||
1958 | #ifdef __STDC__ | |
1959 | # include <limits.h> | |
1960 | #else | |
1961 | # include <assert.h> | |
1962 | #endif | |
1963 | ||
1964 | #undef $2 | |
1965 | ||
1966 | /* Override any GCC internal prototype to avoid an error. | |
1967 | Use char because int might match the return type of a GCC | |
1968 | builtin and then its argument prototype would still apply. */ | |
1969 | #ifdef __cplusplus | |
1970 | extern "C" | |
1971 | #endif | |
1972 | char $2 (); | |
1973 | /* The GNU C library defines this for functions which it implements | |
1974 | to always fail with ENOSYS. Some functions are actually named | |
1975 | something starting with __ and the normal name is an alias. */ | |
1976 | #if defined __stub_$2 || defined __stub___$2 | |
1977 | choke me | |
1978 | #endif | |
1979 | ||
1980 | int | |
1981 | main () | |
1982 | { | |
1983 | return $2 (); | |
1984 | ; | |
1985 | return 0; | |
1986 | } | |
1987 | _ACEOF | |
1988 | if ac_fn_c_try_link "$LINENO"; then : | |
1989 | eval "$3=yes" | |
1990 | else | |
1991 | eval "$3=no" | |
1992 | fi | |
1993 | rm -f core conftest.err conftest.$ac_objext \ | |
1994 | conftest$ac_exeext conftest.$ac_ext | |
1995 | fi | |
1996 | eval ac_res=\$$3 | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1998 | $as_echo "$ac_res" >&6; } | |
1999 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2000 | ||
2001 | } # ac_fn_c_check_func | |
2002 | ||
2003 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2004 | # --------------------------------------------- | |
2005 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2006 | # accordingly. | |
2007 | ac_fn_c_check_decl () | |
2008 | { | |
2009 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2010 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2011 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2013 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2014 | if eval \${$3+:} false; then : | |
2015 | $as_echo_n "(cached) " >&6 | |
2016 | else | |
2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2018 | /* end confdefs.h. */ | |
7083c021 | 2019 | $4 |
c52df125 AC |
2020 | int |
2021 | main () | |
2022 | { | |
2023 | #ifndef $as_decl_name | |
2024 | #ifdef __cplusplus | |
2025 | (void) $as_decl_use; | |
2026 | #else | |
2027 | (void) $as_decl_name; | |
2028 | #endif | |
2029 | #endif | |
2030 | ||
2031 | ; | |
2032 | return 0; | |
2033 | } | |
212380e3 | 2034 | _ACEOF |
7083c021 AC |
2035 | if ac_fn_c_try_compile "$LINENO"; then : |
2036 | eval "$3=yes" | |
2037 | else | |
2038 | eval "$3=no" | |
2039 | fi | |
2040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2041 | fi | |
2042 | eval ac_res=\$$3 | |
2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2044 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2045 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2046 | |
c52df125 | 2047 | } # ac_fn_c_check_decl |
212380e3 | 2048 | |
c52df125 AC |
2049 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2050 | # ------------------------------------------- | |
2051 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2052 | # variable VAR accordingly. | |
2053 | ac_fn_c_check_type () | |
7083c021 AC |
2054 | { |
2055 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2057 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2058 | if eval \${$3+:} false; then : |
7083c021 | 2059 | $as_echo_n "(cached) " >&6 |
212380e3 | 2060 | else |
7083c021 AC |
2061 | eval "$3=no" |
2062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2063 | /* end confdefs.h. */ | |
2064 | $4 | |
2065 | int | |
2066 | main () | |
2067 | { | |
2068 | if (sizeof ($2)) | |
2069 | return 0; | |
2070 | ; | |
2071 | return 0; | |
2072 | } | |
212380e3 | 2073 | _ACEOF |
7083c021 AC |
2074 | if ac_fn_c_try_compile "$LINENO"; then : |
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2076 | /* end confdefs.h. */ |
7083c021 | 2077 | $4 |
212380e3 AC |
2078 | int |
2079 | main () | |
2080 | { | |
7083c021 AC |
2081 | if (sizeof (($2))) |
2082 | return 0; | |
212380e3 AC |
2083 | ; |
2084 | return 0; | |
2085 | } | |
2086 | _ACEOF | |
7083c021 | 2087 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 2088 | |
631ef239 | 2089 | else |
7083c021 | 2090 | eval "$3=yes" |
212380e3 | 2091 | fi |
7083c021 | 2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2093 | fi |
7083c021 | 2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2095 | fi |
7083c021 AC |
2096 | eval ac_res=\$$3 |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2098 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2099 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2100 | |
7083c021 AC |
2101 | } # ac_fn_c_check_type |
2102 | ||
2103 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2104 | # -------------------------------------------- | |
2105 | # Tries to find the compile-time value of EXPR in a program that includes | |
2106 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2107 | # computed | |
2108 | ac_fn_c_compute_int () | |
2109 | { | |
2110 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2111 | if test "$cross_compiling" = yes; then | |
2112 | # Depending upon the size, compute the lo and hi bounds. | |
2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2114 | /* end confdefs.h. */ | |
2115 | $4 | |
2116 | int | |
2117 | main () | |
2118 | { | |
2119 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
2120 | test_array [0] = 0; |
2121 | return test_array [0]; | |
7083c021 AC |
2122 | |
2123 | ; | |
2124 | return 0; | |
2125 | } | |
212380e3 | 2126 | _ACEOF |
7083c021 AC |
2127 | if ac_fn_c_try_compile "$LINENO"; then : |
2128 | ac_lo=0 ac_mid=0 | |
2129 | while :; do | |
2130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2131 | /* end confdefs.h. */ |
7083c021 AC |
2132 | $4 |
2133 | int | |
2134 | main () | |
2135 | { | |
2136 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2137 | test_array [0] = 0; |
2138 | return test_array [0]; | |
212380e3 | 2139 | |
7083c021 AC |
2140 | ; |
2141 | return 0; | |
2142 | } | |
212380e3 | 2143 | _ACEOF |
7083c021 AC |
2144 | if ac_fn_c_try_compile "$LINENO"; then : |
2145 | ac_hi=$ac_mid; break | |
212380e3 | 2146 | else |
7083c021 AC |
2147 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2148 | if test $ac_lo -le $ac_mid; then | |
2149 | ac_lo= ac_hi= | |
2150 | break | |
2151 | fi | |
2152 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 2153 | fi |
631ef239 | 2154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
2155 | done |
2156 | else | |
2157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2158 | /* end confdefs.h. */ | |
2159 | $4 | |
2160 | int | |
2161 | main () | |
2162 | { | |
2163 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
2164 | test_array [0] = 0; |
2165 | return test_array [0]; | |
212380e3 | 2166 | |
7083c021 AC |
2167 | ; |
2168 | return 0; | |
2169 | } | |
212380e3 | 2170 | _ACEOF |
7083c021 AC |
2171 | if ac_fn_c_try_compile "$LINENO"; then : |
2172 | ac_hi=-1 ac_mid=-1 | |
2173 | while :; do | |
2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2175 | /* end confdefs.h. */ | |
2176 | $4 | |
2177 | int | |
2178 | main () | |
2179 | { | |
2180 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
2181 | test_array [0] = 0; |
2182 | return test_array [0]; | |
212380e3 | 2183 | |
7083c021 AC |
2184 | ; |
2185 | return 0; | |
2186 | } | |
2187 | _ACEOF | |
2188 | if ac_fn_c_try_compile "$LINENO"; then : | |
2189 | ac_lo=$ac_mid; break | |
2190 | else | |
2191 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2192 | if test $ac_mid -le $ac_hi; then | |
2193 | ac_lo= ac_hi= | |
2194 | break | |
2195 | fi | |
2196 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 2197 | fi |
7083c021 AC |
2198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2199 | done | |
212380e3 | 2200 | else |
7083c021 AC |
2201 | ac_lo= ac_hi= |
2202 | fi | |
2203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2204 | fi | |
2205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2206 | # Binary search between lo and hi bounds. | |
2207 | while test "x$ac_lo" != "x$ac_hi"; do | |
2208 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2210 | /* end confdefs.h. */ |
7083c021 AC |
2211 | $4 |
2212 | int | |
2213 | main () | |
2214 | { | |
2215 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2216 | test_array [0] = 0; |
2217 | return test_array [0]; | |
7083c021 AC |
2218 | |
2219 | ; | |
2220 | return 0; | |
2221 | } | |
212380e3 | 2222 | _ACEOF |
7083c021 AC |
2223 | if ac_fn_c_try_compile "$LINENO"; then : |
2224 | ac_hi=$ac_mid | |
212380e3 | 2225 | else |
7083c021 | 2226 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 2227 | fi |
7083c021 AC |
2228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2229 | done | |
2230 | case $ac_lo in #(( | |
2231 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2232 | '') ac_retval=1 ;; | |
2233 | esac | |
2234 | else | |
2235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2236 | /* end confdefs.h. */ | |
2237 | $4 | |
2238 | static long int longval () { return $2; } | |
2239 | static unsigned long int ulongval () { return $2; } | |
2240 | #include <stdio.h> | |
2241 | #include <stdlib.h> | |
2242 | int | |
2243 | main () | |
2244 | { | |
631ef239 | 2245 | |
7083c021 AC |
2246 | FILE *f = fopen ("conftest.val", "w"); |
2247 | if (! f) | |
2248 | return 1; | |
2249 | if (($2) < 0) | |
2250 | { | |
2251 | long int i = longval (); | |
2252 | if (i != ($2)) | |
2253 | return 1; | |
2254 | fprintf (f, "%ld", i); | |
2255 | } | |
2256 | else | |
2257 | { | |
2258 | unsigned long int i = ulongval (); | |
2259 | if (i != ($2)) | |
2260 | return 1; | |
2261 | fprintf (f, "%lu", i); | |
2262 | } | |
2263 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2264 | on some platforms. */ | |
2265 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2266 | |
7083c021 AC |
2267 | ; |
2268 | return 0; | |
2269 | } | |
212380e3 | 2270 | _ACEOF |
7083c021 AC |
2271 | if ac_fn_c_try_run "$LINENO"; then : |
2272 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2273 | else |
7083c021 | 2274 | ac_retval=1 |
212380e3 | 2275 | fi |
7083c021 AC |
2276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2277 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2278 | rm -f conftest.val | |
631ef239 | 2279 | |
7083c021 | 2280 | fi |
b6d0720c | 2281 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2282 | as_fn_set_status $ac_retval |
212380e3 | 2283 | |
7083c021 | 2284 | } # ac_fn_c_compute_int |
7083c021 AC |
2285 | cat >config.log <<_ACEOF |
2286 | This file contains any messages produced by compilers while | |
2287 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2288 | |
c52df125 | 2289 | It was created by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 2290 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2291 | |
7083c021 | 2292 | $ $0 $@ |
212380e3 | 2293 | |
7083c021 AC |
2294 | _ACEOF |
2295 | exec 5>>config.log | |
2296 | { | |
2297 | cat <<_ASUNAME | |
2298 | ## --------- ## | |
2299 | ## Platform. ## | |
2300 | ## --------- ## | |
2301 | ||
2302 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2303 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2304 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2305 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2306 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2307 | ||
2308 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2309 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2310 | ||
2311 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2312 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2313 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2314 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2315 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2316 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2317 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2318 | ||
2319 | _ASUNAME | |
212380e3 | 2320 | |
631ef239 | 2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2322 | for as_dir in $PATH |
631ef239 AC |
2323 | do |
2324 | IFS=$as_save_IFS | |
2325 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2326 | $as_echo "PATH: $as_dir" |
631ef239 | 2327 | done |
631ef239 AC |
2328 | IFS=$as_save_IFS |
2329 | ||
7083c021 | 2330 | } >&5 |
631ef239 | 2331 | |
7083c021 | 2332 | cat >&5 <<_ACEOF |
631ef239 | 2333 | |
631ef239 | 2334 | |
7083c021 AC |
2335 | ## ----------- ## |
2336 | ## Core tests. ## | |
2337 | ## ----------- ## | |
631ef239 | 2338 | |
7083c021 | 2339 | _ACEOF |
631ef239 AC |
2340 | |
2341 | ||
7083c021 AC |
2342 | # Keep a trace of the command line. |
2343 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2344 | # Strip out --silent because we don't want to record it for future runs. | |
2345 | # Also quote any args containing shell meta-characters. | |
2346 | # Make two passes to allow for proper duplicate-argument suppression. | |
2347 | ac_configure_args= | |
2348 | ac_configure_args0= | |
2349 | ac_configure_args1= | |
2350 | ac_must_keep_next=false | |
2351 | for ac_pass in 1 2 | |
631ef239 | 2352 | do |
7083c021 | 2353 | for ac_arg |
631ef239 | 2354 | do |
7083c021 AC |
2355 | case $ac_arg in |
2356 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2358 | | -silent | --silent | --silen | --sile | --sil) | |
2359 | continue ;; | |
2360 | *\'*) | |
2361 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2362 | esac | |
2363 | case $ac_pass in | |
2364 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2365 | 2) | |
2366 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2367 | if test $ac_must_keep_next = true; then | |
2368 | ac_must_keep_next=false # Got value, back to normal. | |
2369 | else | |
2370 | case $ac_arg in | |
2371 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2372 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2373 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2374 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2375 | case "$ac_configure_args0 " in | |
2376 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2377 | esac | |
2378 | ;; | |
2379 | -* ) ac_must_keep_next=true ;; | |
2380 | esac | |
2381 | fi | |
2382 | as_fn_append ac_configure_args " '$ac_arg'" | |
2383 | ;; | |
2384 | esac | |
631ef239 AC |
2385 | done |
2386 | done | |
7083c021 AC |
2387 | { ac_configure_args0=; unset ac_configure_args0;} |
2388 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2389 | |
7083c021 AC |
2390 | # When interrupted or exit'd, cleanup temporary files, and complete |
2391 | # config.log. We remove comments because anyway the quotes in there | |
2392 | # would cause problems or look ugly. | |
2393 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2394 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2395 | trap 'exit_status=$? | |
2396 | # Save into config.log some information that might help in debugging. | |
2397 | { | |
2398 | echo | |
631ef239 | 2399 | |
b6d0720c | 2400 | $as_echo "## ---------------- ## |
7083c021 | 2401 | ## Cache variables. ## |
b6d0720c | 2402 | ## ---------------- ##" |
7083c021 AC |
2403 | echo |
2404 | # The following way of writing the cache mishandles newlines in values, | |
2405 | ( | |
2406 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2407 | eval ac_val=\$$ac_var | |
2408 | case $ac_val in #( | |
2409 | *${as_nl}*) | |
2410 | case $ac_var in #( | |
2411 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2412 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2413 | esac | |
2414 | case $ac_var in #( | |
2415 | _ | IFS | as_nl) ;; #( | |
2416 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2417 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2418 | esac ;; | |
2419 | esac | |
2420 | done | |
2421 | (set) 2>&1 | | |
2422 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2423 | *${as_nl}ac_space=\ *) | |
2424 | sed -n \ | |
2425 | "s/'\''/'\''\\\\'\'''\''/g; | |
2426 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2427 | ;; #( | |
2428 | *) | |
2429 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2430 | ;; | |
2431 | esac | | |
2432 | sort | |
2433 | ) | |
2434 | echo | |
631ef239 | 2435 | |
b6d0720c | 2436 | $as_echo "## ----------------- ## |
7083c021 | 2437 | ## Output variables. ## |
b6d0720c | 2438 | ## ----------------- ##" |
7083c021 AC |
2439 | echo |
2440 | for ac_var in $ac_subst_vars | |
2441 | do | |
2442 | eval ac_val=\$$ac_var | |
2443 | case $ac_val in | |
2444 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2445 | esac | |
2446 | $as_echo "$ac_var='\''$ac_val'\''" | |
2447 | done | sort | |
2448 | echo | |
631ef239 | 2449 | |
7083c021 | 2450 | if test -n "$ac_subst_files"; then |
b6d0720c | 2451 | $as_echo "## ------------------- ## |
7083c021 | 2452 | ## File substitutions. ## |
b6d0720c | 2453 | ## ------------------- ##" |
7083c021 AC |
2454 | echo |
2455 | for ac_var in $ac_subst_files | |
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 | |
2464 | fi | |
631ef239 | 2465 | |
7083c021 | 2466 | if test -s confdefs.h; then |
b6d0720c | 2467 | $as_echo "## ----------- ## |
7083c021 | 2468 | ## confdefs.h. ## |
b6d0720c | 2469 | ## ----------- ##" |
7083c021 AC |
2470 | echo |
2471 | cat confdefs.h | |
2472 | echo | |
2473 | fi | |
2474 | test "$ac_signal" != 0 && | |
2475 | $as_echo "$as_me: caught signal $ac_signal" | |
2476 | $as_echo "$as_me: exit $exit_status" | |
2477 | } >&5 | |
2478 | rm -f core *.core core.conftest.* && | |
2479 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2480 | exit $exit_status | |
2481 | ' 0 | |
2482 | for ac_signal in 1 2 13 15; do | |
2483 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2484 | done | |
2485 | ac_signal=0 | |
631ef239 | 2486 | |
7083c021 AC |
2487 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2488 | rm -f -r conftest* confdefs.h | |
631ef239 | 2489 | |
7083c021 | 2490 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2491 | |
7083c021 | 2492 | # Predefined preprocessor variables. |
212380e3 | 2493 | |
7083c021 AC |
2494 | cat >>confdefs.h <<_ACEOF |
2495 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2496 | _ACEOF |
212380e3 | 2497 | |
7083c021 AC |
2498 | cat >>confdefs.h <<_ACEOF |
2499 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2500 | _ACEOF |
212380e3 | 2501 | |
7083c021 AC |
2502 | cat >>confdefs.h <<_ACEOF |
2503 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2504 | _ACEOF |
212380e3 | 2505 | |
7083c021 AC |
2506 | cat >>confdefs.h <<_ACEOF |
2507 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2508 | _ACEOF | |
212380e3 | 2509 | |
7083c021 AC |
2510 | cat >>confdefs.h <<_ACEOF |
2511 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2512 | _ACEOF | |
212380e3 | 2513 | |
7083c021 AC |
2514 | cat >>confdefs.h <<_ACEOF |
2515 | #define PACKAGE_URL "$PACKAGE_URL" | |
2516 | _ACEOF | |
212380e3 | 2517 | |
631ef239 | 2518 | |
7083c021 AC |
2519 | # Let the site file select an alternate cache file if it wants to. |
2520 | # Prefer an explicitly selected file to automatically selected ones. | |
2521 | ac_site_file1=NONE | |
2522 | ac_site_file2=NONE | |
2523 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2524 | # We do not want a PATH search for config.site. |
2525 | case $CONFIG_SITE in #(( | |
2526 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2527 | */*) ac_site_file1=$CONFIG_SITE;; | |
2528 | *) ac_site_file1=./$CONFIG_SITE;; | |
2529 | esac | |
7083c021 AC |
2530 | elif test "x$prefix" != xNONE; then |
2531 | ac_site_file1=$prefix/share/config.site | |
2532 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2533 | else |
7083c021 AC |
2534 | ac_site_file1=$ac_default_prefix/share/config.site |
2535 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2536 | fi | |
2537 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2538 | do |
7083c021 | 2539 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2540 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2542 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2543 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2544 | . "$ac_site_file" \ |
2545 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2547 | as_fn_error $? "failed to load site script $ac_site_file | |
2548 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2549 | fi |
2550 | done | |
212380e3 | 2551 | |
7083c021 | 2552 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2553 | # Some versions of bash will fail to source /dev/null (special files |
2554 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2555 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2557 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2558 | case $cache_file in | |
2559 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2560 | *) . "./$cache_file";; | |
2561 | esac | |
2562 | fi | |
212380e3 | 2563 | else |
7083c021 AC |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2565 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2566 | >$cache_file | |
212380e3 AC |
2567 | fi |
2568 | ||
7083c021 AC |
2569 | # Check that the precious variables saved in the cache have kept the same |
2570 | # value. | |
2571 | ac_cache_corrupted=false | |
2572 | for ac_var in $ac_precious_vars; do | |
2573 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2574 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2575 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2576 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2577 | case $ac_old_set,$ac_new_set in | |
2578 | set,) | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2580 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2581 | ac_cache_corrupted=: ;; | |
2582 | ,set) | |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2584 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2585 | ac_cache_corrupted=: ;; | |
2586 | ,);; | |
2587 | *) | |
2588 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2589 | # differences in whitespace do not lead to failure. | |
2590 | ac_old_val_w=`echo x $ac_old_val` | |
2591 | ac_new_val_w=`echo x $ac_new_val` | |
2592 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2594 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2595 | ac_cache_corrupted=: | |
2596 | else | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2598 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2599 | eval $ac_var=\$ac_old_val | |
2600 | fi | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2602 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2604 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2605 | fi;; | |
2606 | esac | |
2607 | # Pass precious variables to config.status. | |
2608 | if test "$ac_new_set" = set; then | |
2609 | case $ac_new_val in | |
2610 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2611 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2612 | esac | |
2613 | case " $ac_configure_args " in | |
2614 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2615 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2616 | esac | |
212380e3 AC |
2617 | fi |
2618 | done | |
7083c021 AC |
2619 | if $ac_cache_corrupted; then |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2623 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2624 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2625 | fi |
7083c021 AC |
2626 | ## -------------------- ## |
2627 | ## Main body of script. ## | |
2628 | ## -------------------- ## | |
212380e3 | 2629 | |
7083c021 AC |
2630 | ac_ext=c |
2631 | ac_cpp='$CPP $CPPFLAGS' | |
2632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2635 | |
212380e3 | 2636 | |
212380e3 | 2637 | |
eec2776c AJ |
2638 | ac_ext=c |
2639 | ac_cpp='$CPP $CPPFLAGS' | |
2640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2643 | |
c52df125 | 2644 | ac_aux_dir= |
eec2776c | 2645 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
c52df125 AC |
2646 | if test -f "$ac_dir/install-sh"; then |
2647 | ac_aux_dir=$ac_dir | |
2648 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2649 | break | |
2650 | elif test -f "$ac_dir/install.sh"; then | |
2651 | ac_aux_dir=$ac_dir | |
2652 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2653 | break | |
2654 | elif test -f "$ac_dir/shtool"; then | |
2655 | ac_aux_dir=$ac_dir | |
2656 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2657 | break | |
212380e3 AC |
2658 | fi |
2659 | done | |
c52df125 | 2660 | if test -z "$ac_aux_dir"; then |
eec2776c | 2661 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
212380e3 AC |
2662 | fi |
2663 | ||
c52df125 AC |
2664 | # These three variables are undocumented and unsupported, |
2665 | # and are intended to be withdrawn in a future Autoconf release. | |
2666 | # They can cause serious problems if a builder's source tree is in a directory | |
2667 | # whose full name contains unusual characters. | |
2668 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2669 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2670 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
631ef239 | 2671 | |
c52df125 | 2672 | |
eec2776c AJ |
2673 | # Expand $ac_aux_dir to an absolute path. |
2674 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
c52df125 | 2675 | |
eec2776c AJ |
2676 | ac_ext=c |
2677 | ac_cpp='$CPP $CPPFLAGS' | |
2678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2681 | if test -n "$ac_tool_prefix"; then | |
2682 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2683 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2685 | $as_echo_n "checking for $ac_word... " >&6; } | |
2686 | if ${ac_cv_prog_CC+:} false; then : | |
7083c021 | 2687 | $as_echo_n "(cached) " >&6 |
212380e3 | 2688 | else |
eec2776c AJ |
2689 | if test -n "$CC"; then |
2690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2691 | else | |
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2693 | for as_dir in $PATH |
2694 | do | |
2695 | IFS=$as_save_IFS | |
2696 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do |
2698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2699 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2701 | break 2 | |
2702 | fi | |
2703 | done | |
7083c021 | 2704 | done |
631ef239 | 2705 | IFS=$as_save_IFS |
212380e3 | 2706 | |
212380e3 | 2707 | fi |
7083c021 | 2708 | fi |
eec2776c AJ |
2709 | CC=$ac_cv_prog_CC |
2710 | if test -n "$CC"; then | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2712 | $as_echo "$CC" >&6; } | |
2713 | else | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2715 | $as_echo "no" >&6; } | |
2716 | fi | |
212380e3 | 2717 | |
c52df125 | 2718 | |
eec2776c AJ |
2719 | fi |
2720 | if test -z "$ac_cv_prog_CC"; then | |
2721 | ac_ct_CC=$CC | |
2722 | # Extract the first word of "gcc", so it can be a program name with args. | |
2723 | set dummy gcc; ac_word=$2 | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2725 | $as_echo_n "checking for $ac_word... " >&6; } | |
2726 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2727 | $as_echo_n "(cached) " >&6 | |
2728 | else | |
2729 | if test -n "$ac_ct_CC"; then | |
2730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2731 | else | |
2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2733 | for as_dir in $PATH | |
2734 | do | |
2735 | IFS=$as_save_IFS | |
2736 | test -z "$as_dir" && as_dir=. | |
2737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2739 | ac_cv_prog_ac_ct_CC="gcc" | |
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2741 | break 2 | |
2742 | fi | |
2743 | done | |
2744 | done | |
2745 | IFS=$as_save_IFS | |
c52df125 | 2746 | |
eec2776c AJ |
2747 | fi |
2748 | fi | |
2749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2750 | if test -n "$ac_ct_CC"; then | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2752 | $as_echo "$ac_ct_CC" >&6; } | |
2753 | else | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2755 | $as_echo "no" >&6; } | |
2756 | fi | |
c52df125 | 2757 | |
eec2776c AJ |
2758 | if test "x$ac_ct_CC" = x; then |
2759 | CC="" | |
2760 | else | |
2761 | case $cross_compiling:$ac_tool_warned in | |
2762 | yes:) | |
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2765 | ac_tool_warned=yes ;; | |
c52df125 | 2766 | esac |
eec2776c AJ |
2767 | CC=$ac_ct_CC |
2768 | fi | |
c52df125 | 2769 | else |
eec2776c | 2770 | CC="$ac_cv_prog_CC" |
c52df125 AC |
2771 | fi |
2772 | ||
eec2776c AJ |
2773 | if test -z "$CC"; then |
2774 | if test -n "$ac_tool_prefix"; then | |
2775 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2776 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 AC |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2778 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2779 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2780 | $as_echo_n "(cached) " >&6 |
212380e3 | 2781 | else |
eec2776c AJ |
2782 | if test -n "$CC"; then |
2783 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 AC |
2784 | else |
2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2786 | for as_dir in $PATH |
2787 | do | |
2788 | IFS=$as_save_IFS | |
2789 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2790 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2792 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 2793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2794 | break 2 |
2795 | fi | |
2796 | done | |
7083c021 | 2797 | done |
631ef239 | 2798 | IFS=$as_save_IFS |
7083c021 | 2799 | |
212380e3 | 2800 | fi |
7083c021 | 2801 | fi |
eec2776c AJ |
2802 | CC=$ac_cv_prog_CC |
2803 | if test -n "$CC"; then | |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2805 | $as_echo "$CC" >&6; } | |
212380e3 | 2806 | else |
7083c021 AC |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2808 | $as_echo "no" >&6; } | |
212380e3 AC |
2809 | fi |
2810 | ||
631ef239 | 2811 | |
eec2776c | 2812 | fi |
7083c021 | 2813 | fi |
eec2776c AJ |
2814 | if test -z "$CC"; then |
2815 | # Extract the first word of "cc", so it can be a program name with args. | |
2816 | set dummy cc; ac_word=$2 | |
7083c021 AC |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2818 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2819 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2820 | $as_echo_n "(cached) " >&6 |
212380e3 | 2821 | else |
eec2776c AJ |
2822 | if test -n "$CC"; then |
2823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 | 2824 | else |
eec2776c | 2825 | ac_prog_rejected=no |
7083c021 | 2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2827 | for as_dir in $PATH |
2828 | do | |
2829 | IFS=$as_save_IFS | |
2830 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2831 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c AJ |
2833 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2834 | ac_prog_rejected=yes | |
2835 | continue | |
2836 | fi | |
2837 | ac_cv_prog_CC="cc" | |
7083c021 | 2838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2839 | break 2 |
2840 | fi | |
2841 | done | |
7083c021 | 2842 | done |
631ef239 | 2843 | IFS=$as_save_IFS |
212380e3 | 2844 | |
eec2776c AJ |
2845 | if test $ac_prog_rejected = yes; then |
2846 | # We found a bogon in the path, so make sure we never use it. | |
2847 | set dummy $ac_cv_prog_CC | |
2848 | shift | |
2849 | if test $# != 0; then | |
2850 | # We chose a different compiler from the bogus one. | |
2851 | # However, it has the same basename, so the bogon will be chosen | |
2852 | # first if we set CC to just the basename; use the full file name. | |
2853 | shift | |
2854 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2855 | fi | |
212380e3 | 2856 | fi |
7083c021 | 2857 | fi |
eec2776c AJ |
2858 | fi |
2859 | CC=$ac_cv_prog_CC | |
2860 | if test -n "$CC"; then | |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2862 | $as_echo "$CC" >&6; } | |
212380e3 | 2863 | else |
7083c021 AC |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2865 | $as_echo "no" >&6; } | |
212380e3 AC |
2866 | fi |
2867 | ||
631ef239 | 2868 | |
212380e3 | 2869 | fi |
eec2776c AJ |
2870 | if test -z "$CC"; then |
2871 | if test -n "$ac_tool_prefix"; then | |
2872 | for ac_prog in cl.exe | |
2873 | do | |
2874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2877 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2878 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2879 | $as_echo_n "(cached) " >&6 |
212380e3 | 2880 | else |
eec2776c AJ |
2881 | if test -n "$CC"; then |
2882 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2883 | else |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2889 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2891 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 2892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2893 | break 2 |
2894 | fi | |
2895 | done | |
7083c021 | 2896 | done |
631ef239 | 2897 | IFS=$as_save_IFS |
212380e3 AC |
2898 | |
2899 | fi | |
2900 | fi | |
eec2776c AJ |
2901 | CC=$ac_cv_prog_CC |
2902 | if test -n "$CC"; then | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2904 | $as_echo "$CC" >&6; } | |
212380e3 | 2905 | else |
7083c021 AC |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2907 | $as_echo "no" >&6; } | |
212380e3 AC |
2908 | fi |
2909 | ||
631ef239 | 2910 | |
eec2776c AJ |
2911 | test -n "$CC" && break |
2912 | done | |
2913 | fi | |
2914 | if test -z "$CC"; then | |
2915 | ac_ct_CC=$CC | |
2916 | for ac_prog in cl.exe | |
2917 | do | |
2918 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2919 | set dummy $ac_prog; ac_word=$2 | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2921 | $as_echo_n "checking for $ac_word... " >&6; } | |
2922 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
c52df125 AC |
2923 | $as_echo_n "(cached) " >&6 |
2924 | else | |
eec2776c AJ |
2925 | if test -n "$ac_ct_CC"; then |
2926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2927 | else | |
2928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2929 | for as_dir in $PATH | |
2930 | do | |
2931 | IFS=$as_save_IFS | |
2932 | test -z "$as_dir" && as_dir=. | |
2933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2935 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2937 | break 2 | |
2938 | fi | |
2939 | done | |
2940 | done | |
2941 | IFS=$as_save_IFS | |
2942 | ||
c52df125 | 2943 | fi |
eec2776c AJ |
2944 | fi |
2945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2946 | if test -n "$ac_ct_CC"; then | |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2948 | $as_echo "$ac_ct_CC" >&6; } | |
c52df125 AC |
2949 | else |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2951 | $as_echo "no" >&6; } | |
c52df125 AC |
2952 | fi |
2953 | ||
c52df125 | 2954 | |
eec2776c AJ |
2955 | test -n "$ac_ct_CC" && break |
2956 | done | |
c52df125 | 2957 | |
eec2776c AJ |
2958 | if test "x$ac_ct_CC" = x; then |
2959 | CC="" | |
2960 | else | |
2961 | case $cross_compiling:$ac_tool_warned in | |
2962 | yes:) | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2964 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2965 | ac_tool_warned=yes ;; | |
c52df125 | 2966 | esac |
eec2776c | 2967 | CC=$ac_ct_CC |
c52df125 AC |
2968 | fi |
2969 | fi | |
2970 | ||
c52df125 AC |
2971 | fi |
2972 | ||
2973 | ||
eec2776c AJ |
2974 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2976 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2977 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 2978 | |
eec2776c AJ |
2979 | # Provide some information about the compiler. |
2980 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2981 | set X $ac_compile | |
2982 | ac_compiler=$2 | |
2983 | for ac_option in --version -v -V -qversion; do | |
2984 | { { ac_try="$ac_compiler $ac_option >&5" | |
2985 | case "(($ac_try" in | |
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2987 | *) ac_try_echo=$ac_try;; | |
2988 | esac | |
2989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2990 | $as_echo "$ac_try_echo"; } >&5 | |
2991 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2992 | ac_status=$? | |
2993 | if test -s conftest.err; then | |
2994 | sed '10a\ | |
2995 | ... rest of stderr output deleted ... | |
2996 | 10q' conftest.err >conftest.er1 | |
2997 | cat conftest.er1 >&5 | |
2998 | fi | |
2999 | rm -f conftest.er1 conftest.err | |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3001 | test $ac_status = 0; } | |
3002 | done | |
c52df125 | 3003 | |
eec2776c AJ |
3004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3005 | /* end confdefs.h. */ | |
c52df125 | 3006 | |
eec2776c AJ |
3007 | int |
3008 | main () | |
3009 | { | |
c52df125 | 3010 | |
eec2776c AJ |
3011 | ; |
3012 | return 0; | |
3013 | } | |
c52df125 | 3014 | _ACEOF |
eec2776c AJ |
3015 | ac_clean_files_save=$ac_clean_files |
3016 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3017 | # Try to create an executable without -o first, disregard a.out. | |
3018 | # It will help us diagnose broken compilers, and finding out an intuition | |
3019 | # of exeext. | |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3021 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3022 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
c52df125 | 3023 | |
eec2776c AJ |
3024 | # The possible output files: |
3025 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
c52df125 | 3026 | |
eec2776c AJ |
3027 | ac_rmfiles= |
3028 | for ac_file in $ac_files | |
3029 | do | |
3030 | case $ac_file in | |
3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3032 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3033 | esac | |
3034 | done | |
3035 | rm -f $ac_rmfiles | |
c52df125 | 3036 | |
eec2776c AJ |
3037 | if { { ac_try="$ac_link_default" |
3038 | case "(($ac_try" in | |
3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3040 | *) ac_try_echo=$ac_try;; | |
3041 | esac | |
3042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3043 | $as_echo "$ac_try_echo"; } >&5 | |
3044 | (eval "$ac_link_default") 2>&5 | |
3045 | ac_status=$? | |
3046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3047 | test $ac_status = 0; }; then : | |
3048 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3049 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3050 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3051 | # so that the user can short-circuit this test for compilers unknown to | |
3052 | # Autoconf. | |
3053 | for ac_file in $ac_files '' | |
3054 | do | |
3055 | test -f "$ac_file" || continue | |
3056 | case $ac_file in | |
3057 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3058 | ;; | |
3059 | [ab].out ) | |
3060 | # We found the default executable, but exeext='' is most | |
3061 | # certainly right. | |
3062 | break;; | |
3063 | *.* ) | |
3064 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3065 | then :; else | |
3066 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3067 | fi | |
3068 | # We set ac_cv_exeext here because the later test for it is not | |
3069 | # safe: cross compilers may not add the suffix if given an `-o' | |
3070 | # argument, so we may need to know it at that point already. | |
3071 | # Even if this section looks crufty: it has the advantage of | |
3072 | # actually working. | |
3073 | break;; | |
3074 | * ) | |
3075 | break;; | |
3076 | esac | |
3077 | done | |
3078 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
c52df125 | 3079 | |
eec2776c AJ |
3080 | else |
3081 | ac_file='' | |
3082 | fi | |
3083 | if test -z "$ac_file"; then : | |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3085 | $as_echo "no" >&6; } | |
3086 | $as_echo "$as_me: failed program was:" >&5 | |
3087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c52df125 | 3088 | |
eec2776c AJ |
3089 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3090 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3091 | as_fn_error 77 "C compiler cannot create executables | |
3092 | See \`config.log' for more details" "$LINENO" 5; } | |
3093 | else | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3095 | $as_echo "yes" >&6; } | |
3096 | fi | |
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3098 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3100 | $as_echo "$ac_file" >&6; } | |
3101 | ac_exeext=$ac_cv_exeext | |
c52df125 | 3102 | |
eec2776c AJ |
3103 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3104 | ac_clean_files=$ac_clean_files_save | |
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3106 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3107 | if { { ac_try="$ac_link" | |
3108 | case "(($ac_try" in | |
3109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3110 | *) ac_try_echo=$ac_try;; | |
3111 | esac | |
3112 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3113 | $as_echo "$ac_try_echo"; } >&5 | |
3114 | (eval "$ac_link") 2>&5 | |
3115 | ac_status=$? | |
3116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3117 | test $ac_status = 0; }; then : | |
3118 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3119 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3120 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3121 | # `rm'. | |
3122 | for ac_file in conftest.exe conftest conftest.*; do | |
3123 | test -f "$ac_file" || continue | |
3124 | case $ac_file in | |
3125 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3126 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3127 | break;; | |
3128 | * ) break;; | |
3129 | esac | |
3130 | done | |
3131 | else | |
3132 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3134 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3135 | See \`config.log' for more details" "$LINENO" 5; } | |
3136 | fi | |
3137 | rm -f conftest conftest$ac_cv_exeext | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3139 | $as_echo "$ac_cv_exeext" >&6; } | |
c52df125 | 3140 | |
eec2776c AJ |
3141 | rm -f conftest.$ac_ext |
3142 | EXEEXT=$ac_cv_exeext | |
3143 | ac_exeext=$EXEEXT | |
3144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3145 | /* end confdefs.h. */ | |
3146 | #include <stdio.h> | |
3147 | int | |
3148 | main () | |
3149 | { | |
3150 | FILE *f = fopen ("conftest.out", "w"); | |
3151 | return ferror (f) || fclose (f) != 0; | |
c52df125 | 3152 | |
eec2776c AJ |
3153 | ; |
3154 | return 0; | |
3155 | } | |
3156 | _ACEOF | |
3157 | ac_clean_files="$ac_clean_files conftest.out" | |
3158 | # Check that the compiler produces executables we can run. If not, either | |
3159 | # the compiler is broken, or we cross compile. | |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3161 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3162 | if test "$cross_compiling" != yes; then | |
3163 | { { ac_try="$ac_link" | |
3164 | case "(($ac_try" in | |
3165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3166 | *) ac_try_echo=$ac_try;; | |
3167 | esac | |
3168 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3169 | $as_echo "$ac_try_echo"; } >&5 | |
3170 | (eval "$ac_link") 2>&5 | |
3171 | ac_status=$? | |
3172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3173 | test $ac_status = 0; } | |
3174 | if { ac_try='./conftest$ac_cv_exeext' | |
3175 | { { case "(($ac_try" in | |
3176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3177 | *) ac_try_echo=$ac_try;; | |
3178 | esac | |
3179 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3180 | $as_echo "$ac_try_echo"; } >&5 | |
3181 | (eval "$ac_try") 2>&5 | |
3182 | ac_status=$? | |
3183 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3184 | test $ac_status = 0; }; }; then | |
3185 | cross_compiling=no | |
c52df125 | 3186 | else |
eec2776c AJ |
3187 | if test "$cross_compiling" = maybe; then |
3188 | cross_compiling=yes | |
3189 | else | |
3190 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3192 | as_fn_error $? "cannot run C compiled programs. | |
3193 | If you meant to cross compile, use \`--host'. | |
3194 | See \`config.log' for more details" "$LINENO" 5; } | |
3195 | fi | |
c52df125 AC |
3196 | fi |
3197 | fi | |
eec2776c AJ |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3199 | $as_echo "$cross_compiling" >&6; } | |
c52df125 | 3200 | |
eec2776c AJ |
3201 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3202 | ac_clean_files=$ac_clean_files_save | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3204 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3205 | if ${ac_cv_objext+:} false; then : | |
c52df125 AC |
3206 | $as_echo_n "(cached) " >&6 |
3207 | else | |
eec2776c AJ |
3208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3209 | /* end confdefs.h. */ | |
3210 | ||
3211 | int | |
3212 | main () | |
3213 | { | |
3214 | ||
3215 | ; | |
3216 | return 0; | |
3217 | } | |
3218 | _ACEOF | |
3219 | rm -f conftest.o conftest.obj | |
3220 | if { { ac_try="$ac_compile" | |
3221 | case "(($ac_try" in | |
3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3223 | *) ac_try_echo=$ac_try;; | |
3224 | esac | |
3225 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3226 | $as_echo "$ac_try_echo"; } >&5 | |
3227 | (eval "$ac_compile") 2>&5 | |
3228 | ac_status=$? | |
3229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3230 | test $ac_status = 0; }; then : | |
3231 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3232 | test -f "$ac_file" || continue; | |
3233 | case $ac_file in | |
3234 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3235 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3236 | break;; | |
3237 | esac | |
3238 | done | |
c52df125 | 3239 | else |
eec2776c AJ |
3240 | $as_echo "$as_me: failed program was:" >&5 |
3241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3242 | ||
3243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3244 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3245 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3246 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 3247 | fi |
eec2776c | 3248 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
c52df125 | 3249 | fi |
eec2776c AJ |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3251 | $as_echo "$ac_cv_objext" >&6; } | |
3252 | OBJEXT=$ac_cv_objext | |
3253 | ac_objext=$OBJEXT | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3255 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3256 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3257 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3258 | else |
eec2776c AJ |
3259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3260 | /* end confdefs.h. */ | |
c52df125 | 3261 | |
eec2776c AJ |
3262 | int |
3263 | main () | |
3264 | { | |
3265 | #ifndef __GNUC__ | |
3266 | choke me | |
3267 | #endif | |
c52df125 | 3268 | |
eec2776c AJ |
3269 | ; |
3270 | return 0; | |
3271 | } | |
3272 | _ACEOF | |
3273 | if ac_fn_c_try_compile "$LINENO"; then : | |
3274 | ac_compiler_gnu=yes | |
3275 | else | |
3276 | ac_compiler_gnu=no | |
c52df125 | 3277 | fi |
eec2776c AJ |
3278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3279 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
c52df125 | 3280 | |
c52df125 | 3281 | fi |
eec2776c AJ |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3283 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3284 | if test $ac_compiler_gnu = yes; then | |
3285 | GCC=yes | |
c52df125 | 3286 | else |
eec2776c | 3287 | GCC= |
c52df125 | 3288 | fi |
eec2776c AJ |
3289 | ac_test_CFLAGS=${CFLAGS+set} |
3290 | ac_save_CFLAGS=$CFLAGS | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3292 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3293 | if ${ac_cv_prog_cc_g+:} false; then : | |
c52df125 AC |
3294 | $as_echo_n "(cached) " >&6 |
3295 | else | |
eec2776c AJ |
3296 | ac_save_c_werror_flag=$ac_c_werror_flag |
3297 | ac_c_werror_flag=yes | |
3298 | ac_cv_prog_cc_g=no | |
3299 | CFLAGS="-g" | |
3300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3301 | /* end confdefs.h. */ | |
c52df125 | 3302 | |
eec2776c AJ |
3303 | int |
3304 | main () | |
3305 | { | |
3306 | ||
3307 | ; | |
3308 | return 0; | |
3309 | } | |
3310 | _ACEOF | |
3311 | if ac_fn_c_try_compile "$LINENO"; then : | |
3312 | ac_cv_prog_cc_g=yes | |
c52df125 | 3313 | else |
eec2776c AJ |
3314 | CFLAGS="" |
3315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3316 | /* end confdefs.h. */ | |
c52df125 | 3317 | |
eec2776c AJ |
3318 | int |
3319 | main () | |
3320 | { | |
3321 | ||
3322 | ; | |
3323 | return 0; | |
3324 | } | |
3325 | _ACEOF | |
3326 | if ac_fn_c_try_compile "$LINENO"; then : | |
c52df125 | 3327 | |
c52df125 | 3328 | else |
eec2776c AJ |
3329 | ac_c_werror_flag=$ac_save_c_werror_flag |
3330 | CFLAGS="-g" | |
3331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3332 | /* end confdefs.h. */ | |
3333 | ||
3334 | int | |
3335 | main () | |
3336 | { | |
c52df125 | 3337 | |
eec2776c AJ |
3338 | ; |
3339 | return 0; | |
3340 | } | |
3341 | _ACEOF | |
3342 | if ac_fn_c_try_compile "$LINENO"; then : | |
3343 | ac_cv_prog_cc_g=yes | |
c52df125 | 3344 | fi |
eec2776c | 3345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3346 | fi |
eec2776c | 3347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3348 | fi |
eec2776c AJ |
3349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3350 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3351 | fi | |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3353 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3354 | if test "$ac_test_CFLAGS" = set; then | |
3355 | CFLAGS=$ac_save_CFLAGS | |
3356 | elif test $ac_cv_prog_cc_g = yes; then | |
3357 | if test "$GCC" = yes; then | |
3358 | CFLAGS="-g -O2" | |
7083c021 | 3359 | else |
eec2776c | 3360 | CFLAGS="-g" |
7083c021 | 3361 | fi |
c52df125 | 3362 | else |
eec2776c AJ |
3363 | if test "$GCC" = yes; then |
3364 | CFLAGS="-O2" | |
3365 | else | |
3366 | CFLAGS= | |
c52df125 | 3367 | fi |
c52df125 | 3368 | fi |
eec2776c AJ |
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3370 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3371 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3372 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3373 | else |
eec2776c AJ |
3374 | ac_cv_prog_cc_c89=no |
3375 | ac_save_CC=$CC | |
3376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3377 | /* end confdefs.h. */ | |
3378 | #include <stdarg.h> | |
3379 | #include <stdio.h> | |
3380 | struct stat; | |
3381 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3382 | struct buf { int x; }; | |
3383 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3384 | static char *e (p, i) | |
3385 | char **p; | |
3386 | int i; | |
3387 | { | |
3388 | return p[i]; | |
3389 | } | |
3390 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3391 | { | |
3392 | char *s; | |
3393 | va_list v; | |
3394 | va_start (v,p); | |
3395 | s = g (p, va_arg (v,int)); | |
3396 | va_end (v); | |
3397 | return s; | |
3398 | } | |
3399 | ||
3400 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3401 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3402 | These don't provoke an error unfortunately, instead are silently treated | |
3403 | as 'x'. The following induces an error, until -std is added to get | |
3404 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3405 | array size at least. It's necessary to write '\x00'==0 to get something | |
3406 | that's true only with -std. */ | |
3407 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
c52df125 | 3408 | |
eec2776c AJ |
3409 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3410 | inside strings and character constants. */ | |
3411 | #define FOO(x) 'x' | |
3412 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
c52df125 | 3413 | |
eec2776c AJ |
3414 | int test (int i, double x); |
3415 | struct s1 {int (*f) (int a);}; | |
3416 | struct s2 {int (*f) (double a);}; | |
3417 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3418 | int argc; | |
3419 | char **argv; | |
3420 | int | |
3421 | main () | |
3422 | { | |
3423 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3424 | ; | |
3425 | return 0; | |
3426 | } | |
3427 | _ACEOF | |
3428 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3429 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c52df125 | 3430 | do |
eec2776c AJ |
3431 | CC="$ac_save_CC $ac_arg" |
3432 | if ac_fn_c_try_compile "$LINENO"; then : | |
3433 | ac_cv_prog_cc_c89=$ac_arg | |
3434 | fi | |
3435 | rm -f core conftest.err conftest.$ac_objext | |
3436 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c52df125 | 3437 | done |
eec2776c AJ |
3438 | rm -f conftest.$ac_ext |
3439 | CC=$ac_save_CC | |
c52df125 | 3440 | |
c52df125 | 3441 | fi |
eec2776c AJ |
3442 | # AC_CACHE_VAL |
3443 | case "x$ac_cv_prog_cc_c89" in | |
3444 | x) | |
3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3446 | $as_echo "none needed" >&6; } ;; | |
3447 | xno) | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3449 | $as_echo "unsupported" >&6; } ;; | |
3450 | *) | |
3451 | CC="$CC $ac_cv_prog_cc_c89" | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3453 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3454 | esac | |
3455 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3456 | ||
c52df125 AC |
3457 | fi |
3458 | ||
eec2776c AJ |
3459 | ac_ext=c |
3460 | ac_cpp='$CPP $CPPFLAGS' | |
3461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3464 | |
eec2776c AJ |
3465 | ac_ext=c |
3466 | ac_cpp='$CPP $CPPFLAGS' | |
3467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3471 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3472 | if ${am_cv_prog_cc_c_o+:} false; then : | |
c52df125 AC |
3473 | $as_echo_n "(cached) " >&6 |
3474 | else | |
eec2776c AJ |
3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3476 | /* end confdefs.h. */ | |
c52df125 | 3477 | |
eec2776c AJ |
3478 | int |
3479 | main () | |
3480 | { | |
3481 | ||
3482 | ; | |
3483 | return 0; | |
3484 | } | |
3485 | _ACEOF | |
3486 | # Make sure it works both with $CC and with simple cc. | |
3487 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3488 | # compilers refuse to overwrite an existing .o file with -o, | |
3489 | # though they will create one. | |
3490 | am_cv_prog_cc_c_o=yes | |
3491 | for am_i in 1 2; do | |
3492 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3493 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3494 | ac_status=$? | |
3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3496 | (exit $ac_status); } \ | |
3497 | && test -f conftest2.$ac_objext; then | |
3498 | : OK | |
3499 | else | |
3500 | am_cv_prog_cc_c_o=no | |
3501 | break | |
3502 | fi | |
3503 | done | |
3504 | rm -f core conftest* | |
3505 | unset am_i | |
c52df125 | 3506 | fi |
eec2776c AJ |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3508 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3509 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3510 | # Losing compiler, so override with the script. | |
3511 | # FIXME: It is wrong to rewrite CC. | |
3512 | # But if we don't then we get into trouble of one sort or another. | |
3513 | # A longer-term fix would be to have automake use am__CC in this case, | |
3514 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3515 | CC="$am_aux_dir/compile $CC" | |
c52df125 | 3516 | fi |
eec2776c AJ |
3517 | ac_ext=c |
3518 | ac_cpp='$CPP $CPPFLAGS' | |
3519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
3522 | |
3523 | ||
eec2776c AJ |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3525 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3526 | if ${ac_cv_prog_cc_c99+:} false; then : | |
c52df125 AC |
3527 | $as_echo_n "(cached) " >&6 |
3528 | else | |
eec2776c AJ |
3529 | ac_cv_prog_cc_c99=no |
3530 | ac_save_CC=$CC | |
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3532 | /* end confdefs.h. */ | |
3533 | #include <stdarg.h> | |
3534 | #include <stdbool.h> | |
3535 | #include <stdlib.h> | |
3536 | #include <wchar.h> | |
3537 | #include <stdio.h> | |
c52df125 | 3538 | |
eec2776c AJ |
3539 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
3540 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3541 | #define showlist(...) puts (#__VA_ARGS__) | |
3542 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3543 | static void | |
3544 | test_varargs_macros (void) | |
3545 | { | |
3546 | int x = 1234; | |
3547 | int y = 5678; | |
3548 | debug ("Flag"); | |
3549 | debug ("X = %d\n", x); | |
3550 | showlist (The first, second, and third items.); | |
3551 | report (x>y, "x is %d but y is %d", x, y); | |
3552 | } | |
c52df125 | 3553 | |
eec2776c AJ |
3554 | // Check long long types. |
3555 | #define BIG64 18446744073709551615ull | |
3556 | #define BIG32 4294967295ul | |
3557 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3558 | #if !BIG_OK | |
3559 | your preprocessor is broken; | |
3560 | #endif | |
3561 | #if BIG_OK | |
3562 | #else | |
3563 | your preprocessor is broken; | |
3564 | #endif | |
3565 | static long long int bignum = -9223372036854775807LL; | |
3566 | static unsigned long long int ubignum = BIG64; | |
c52df125 | 3567 | |
eec2776c AJ |
3568 | struct incomplete_array |
3569 | { | |
3570 | int datasize; | |
3571 | double data[]; | |
3572 | }; | |
c52df125 | 3573 | |
eec2776c AJ |
3574 | struct named_init { |
3575 | int number; | |
3576 | const wchar_t *name; | |
3577 | double average; | |
3578 | }; | |
c52df125 | 3579 | |
eec2776c | 3580 | typedef const char *ccp; |
c52df125 | 3581 | |
eec2776c AJ |
3582 | static inline int |
3583 | test_restrict (ccp restrict text) | |
3584 | { | |
3585 | // See if C++-style comments work. | |
3586 | // Iterate through items via the restricted pointer. | |
3587 | // Also check for declarations in for loops. | |
3588 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3589 | continue; | |
3590 | return 0; | |
3591 | } | |
c52df125 | 3592 | |
eec2776c AJ |
3593 | // Check varargs and va_copy. |
3594 | static void | |
3595 | test_varargs (const char *format, ...) | |
3596 | { | |
3597 | va_list args; | |
3598 | va_start (args, format); | |
3599 | va_list args_copy; | |
3600 | va_copy (args_copy, args); | |
c52df125 | 3601 | |
eec2776c AJ |
3602 | const char *str; |
3603 | int number; | |
3604 | float fnumber; | |
3605 | ||
3606 | while (*format) | |
3607 | { | |
3608 | switch (*format++) | |
3609 | { | |
3610 | case 's': // string | |
3611 | str = va_arg (args_copy, const char *); | |
3612 | break; | |
3613 | case 'd': // int | |
3614 | number = va_arg (args_copy, int); | |
3615 | break; | |
3616 | case 'f': // float | |
3617 | fnumber = va_arg (args_copy, double); | |
3618 | break; | |
3619 | default: | |
3620 | break; | |
3621 | } | |
3622 | } | |
3623 | va_end (args_copy); | |
3624 | va_end (args); | |
3625 | } | |
c52df125 AC |
3626 | |
3627 | int | |
3628 | main () | |
3629 | { | |
3630 | ||
eec2776c AJ |
3631 | // Check bool. |
3632 | _Bool success = false; | |
3633 | ||
3634 | // Check restrict. | |
3635 | if (test_restrict ("String literal") == 0) | |
3636 | success = true; | |
3637 | char *restrict newvar = "Another string"; | |
3638 | ||
3639 | // Check varargs. | |
3640 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3641 | test_varargs_macros (); | |
3642 | ||
3643 | // Check flexible array members. | |
3644 | struct incomplete_array *ia = | |
3645 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3646 | ia->datasize = 10; | |
3647 | for (int i = 0; i < ia->datasize; ++i) | |
3648 | ia->data[i] = i * 1.234; | |
3649 | ||
3650 | // Check named initializers. | |
3651 | struct named_init ni = { | |
3652 | .number = 34, | |
3653 | .name = L"Test wide string", | |
3654 | .average = 543.34343, | |
3655 | }; | |
3656 | ||
3657 | ni.number = 58; | |
3658 | ||
3659 | int dynamic_array[ni.number]; | |
3660 | dynamic_array[ni.number - 1] = 543; | |
3661 | ||
3662 | // work around unused variable warnings | |
3663 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3664 | || dynamic_array[ni.number - 1] != 543); | |
3665 | ||
c52df125 AC |
3666 | ; |
3667 | return 0; | |
3668 | } | |
3669 | _ACEOF | |
eec2776c | 3670 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
c52df125 | 3671 | do |
eec2776c AJ |
3672 | CC="$ac_save_CC $ac_arg" |
3673 | if ac_fn_c_try_compile "$LINENO"; then : | |
3674 | ac_cv_prog_cc_c99=$ac_arg | |
3675 | fi | |
3676 | rm -f core conftest.err conftest.$ac_objext | |
3677 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
c52df125 | 3678 | done |
eec2776c AJ |
3679 | rm -f conftest.$ac_ext |
3680 | CC=$ac_save_CC | |
c52df125 | 3681 | |
c52df125 | 3682 | fi |
eec2776c AJ |
3683 | # AC_CACHE_VAL |
3684 | case "x$ac_cv_prog_cc_c99" in | |
3685 | x) | |
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3687 | $as_echo "none needed" >&6; } ;; | |
3688 | xno) | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3690 | $as_echo "unsupported" >&6; } ;; | |
3691 | *) | |
3692 | CC="$CC $ac_cv_prog_cc_c99" | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3694 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
c52df125 | 3695 | esac |
eec2776c AJ |
3696 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
3697 | ||
c52df125 | 3698 | fi |
c52df125 | 3699 | |
c52df125 | 3700 | |
c52df125 | 3701 | |
eec2776c AJ |
3702 | ac_ext=c |
3703 | ac_cpp='$CPP $CPPFLAGS' | |
3704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3708 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3709 | # On Suns, sometimes $CPP names a directory. | |
3710 | if test -n "$CPP" && test -d "$CPP"; then | |
3711 | CPP= | |
3712 | fi | |
3713 | if test -z "$CPP"; then | |
3714 | if ${ac_cv_prog_CPP+:} false; then : | |
c52df125 AC |
3715 | $as_echo_n "(cached) " >&6 |
3716 | else | |
eec2776c AJ |
3717 | # Double quotes because CPP needs to be expanded |
3718 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3719 | do | |
3720 | ac_preproc_ok=false | |
3721 | for ac_c_preproc_warn_flag in '' yes | |
3722 | do | |
3723 | # Use a header file that comes with gcc, so configuring glibc | |
3724 | # with a fresh cross-compiler works. | |
3725 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3726 | # <limits.h> exists even on freestanding compilers. | |
3727 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3728 | # not just through cpp. "Syntax error" is here to catch this case. | |
c52df125 AC |
3729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3730 | /* end confdefs.h. */ | |
eec2776c AJ |
3731 | #ifdef __STDC__ |
3732 | # include <limits.h> | |
3733 | #else | |
3734 | # include <assert.h> | |
3735 | #endif | |
3736 | Syntax error | |
c52df125 | 3737 | _ACEOF |
eec2776c | 3738 | if ac_fn_c_try_cpp "$LINENO"; then : |
c52df125 | 3739 | |
c52df125 | 3740 | else |
eec2776c AJ |
3741 | # Broken: fails on valid input. |
3742 | continue | |
3743 | fi | |
3744 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3745 | ||
3746 | # OK, works on sane cases. Now check whether nonexistent headers | |
3747 | # can be detected and how. | |
c52df125 AC |
3748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3749 | /* end confdefs.h. */ | |
eec2776c | 3750 | #include <ac_nonexistent.h> |
c52df125 | 3751 | _ACEOF |
eec2776c AJ |
3752 | if ac_fn_c_try_cpp "$LINENO"; then : |
3753 | # Broken: success on invalid input. | |
3754 | continue | |
c52df125 | 3755 | else |
eec2776c AJ |
3756 | # Passes both tests. |
3757 | ac_preproc_ok=: | |
3758 | break | |
c52df125 | 3759 | fi |
eec2776c | 3760 | rm -f conftest.err conftest.i conftest.$ac_ext |
c52df125 | 3761 | |
eec2776c AJ |
3762 | done |
3763 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3764 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3765 | if $ac_preproc_ok; then : | |
3766 | break | |
c52df125 | 3767 | fi |
eec2776c AJ |
3768 | |
3769 | done | |
3770 | ac_cv_prog_CPP=$CPP | |
3771 | ||
c52df125 | 3772 | fi |
eec2776c | 3773 | CPP=$ac_cv_prog_CPP |
c52df125 | 3774 | else |
eec2776c AJ |
3775 | ac_cv_prog_CPP=$CPP |
3776 | fi | |
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3778 | $as_echo "$CPP" >&6; } | |
3779 | ac_preproc_ok=false | |
3780 | for ac_c_preproc_warn_flag in '' yes | |
3781 | do | |
3782 | # Use a header file that comes with gcc, so configuring glibc | |
3783 | # with a fresh cross-compiler works. | |
3784 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3785 | # <limits.h> exists even on freestanding compilers. | |
3786 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3787 | # not just through cpp. "Syntax error" is here to catch this case. | |
3788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3789 | /* end confdefs.h. */ |
eec2776c AJ |
3790 | #ifdef __STDC__ |
3791 | # include <limits.h> | |
3792 | #else | |
3793 | # include <assert.h> | |
3794 | #endif | |
3795 | Syntax error | |
3796 | _ACEOF | |
3797 | if ac_fn_c_try_cpp "$LINENO"; then : | |
c52df125 | 3798 | |
eec2776c AJ |
3799 | else |
3800 | # Broken: fails on valid input. | |
3801 | continue | |
3802 | fi | |
3803 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3804 | |
eec2776c AJ |
3805 | # OK, works on sane cases. Now check whether nonexistent headers |
3806 | # can be detected and how. | |
3807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3808 | /* end confdefs.h. */ | |
3809 | #include <ac_nonexistent.h> | |
c52df125 | 3810 | _ACEOF |
eec2776c AJ |
3811 | if ac_fn_c_try_cpp "$LINENO"; then : |
3812 | # Broken: success on invalid input. | |
3813 | continue | |
c52df125 | 3814 | else |
eec2776c AJ |
3815 | # Passes both tests. |
3816 | ac_preproc_ok=: | |
3817 | break | |
3818 | fi | |
3819 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3820 | |
eec2776c AJ |
3821 | done |
3822 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3823 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3824 | if $ac_preproc_ok; then : | |
3825 | ||
3826 | else | |
3827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3829 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3830 | See \`config.log' for more details" "$LINENO" 5; } | |
3831 | fi | |
3832 | ||
3833 | ac_ext=c | |
3834 | ac_cpp='$CPP $CPPFLAGS' | |
3835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3838 | |
c52df125 | 3839 | |
eec2776c AJ |
3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3841 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3842 | if ${ac_cv_path_GREP+:} false; then : | |
3843 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3844 | else |
eec2776c AJ |
3845 | if test -z "$GREP"; then |
3846 | ac_path_GREP_found=false | |
3847 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3849 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3850 | do | |
3851 | IFS=$as_save_IFS | |
3852 | test -z "$as_dir" && as_dir=. | |
3853 | for ac_prog in grep ggrep; do | |
3854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3855 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3856 | as_fn_executable_p "$ac_path_GREP" || continue | |
3857 | # Check for GNU ac_path_GREP and select it if it is found. | |
3858 | # Check for GNU $ac_path_GREP | |
3859 | case `"$ac_path_GREP" --version 2>&1` in | |
3860 | *GNU*) | |
3861 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3862 | *) | |
3863 | ac_count=0 | |
3864 | $as_echo_n 0123456789 >"conftest.in" | |
3865 | while : | |
3866 | do | |
3867 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3868 | mv "conftest.tmp" "conftest.in" | |
3869 | cp "conftest.in" "conftest.nl" | |
3870 | $as_echo 'GREP' >> "conftest.nl" | |
3871 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3872 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3873 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3874 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3875 | # Best one so far, save it but keep looking for a better one | |
3876 | ac_cv_path_GREP="$ac_path_GREP" | |
3877 | ac_path_GREP_max=$ac_count | |
3878 | fi | |
3879 | # 10*(2^10) chars as input seems more than enough | |
3880 | test $ac_count -gt 10 && break | |
3881 | done | |
3882 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3883 | esac | |
3884 | ||
3885 | $ac_path_GREP_found && break 3 | |
3886 | done | |
3887 | done | |
3888 | done | |
3889 | IFS=$as_save_IFS | |
3890 | if test -z "$ac_cv_path_GREP"; then | |
3891 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3892 | fi | |
3893 | else | |
3894 | ac_cv_path_GREP=$GREP | |
3895 | fi | |
3896 | ||
3897 | fi | |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3899 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3900 | GREP="$ac_cv_path_GREP" | |
3901 | ||
3902 | ||
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3904 | $as_echo_n "checking for egrep... " >&6; } | |
3905 | if ${ac_cv_path_EGREP+:} false; then : | |
3906 | $as_echo_n "(cached) " >&6 | |
3907 | else | |
3908 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3909 | then ac_cv_path_EGREP="$GREP -E" | |
3910 | else | |
3911 | if test -z "$EGREP"; then | |
3912 | ac_path_EGREP_found=false | |
3913 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3915 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | for ac_prog in egrep; do | |
3920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3921 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3922 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3923 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3924 | # Check for GNU $ac_path_EGREP | |
3925 | case `"$ac_path_EGREP" --version 2>&1` in | |
3926 | *GNU*) | |
3927 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3928 | *) | |
3929 | ac_count=0 | |
3930 | $as_echo_n 0123456789 >"conftest.in" | |
3931 | while : | |
3932 | do | |
3933 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3934 | mv "conftest.tmp" "conftest.in" | |
3935 | cp "conftest.in" "conftest.nl" | |
3936 | $as_echo 'EGREP' >> "conftest.nl" | |
3937 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3938 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3939 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3940 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3941 | # Best one so far, save it but keep looking for a better one | |
3942 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3943 | ac_path_EGREP_max=$ac_count | |
3944 | fi | |
3945 | # 10*(2^10) chars as input seems more than enough | |
3946 | test $ac_count -gt 10 && break | |
3947 | done | |
3948 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3949 | esac | |
3950 | ||
3951 | $ac_path_EGREP_found && break 3 | |
3952 | done | |
3953 | done | |
3954 | done | |
3955 | IFS=$as_save_IFS | |
3956 | if test -z "$ac_cv_path_EGREP"; then | |
3957 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3958 | fi | |
3959 | else | |
3960 | ac_cv_path_EGREP=$EGREP | |
3961 | fi | |
3962 | ||
3963 | fi | |
3964 | fi | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3966 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3967 | EGREP="$ac_cv_path_EGREP" | |
3968 | ||
3969 | ||
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3971 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3972 | if ${ac_cv_header_stdc+:} false; then : | |
3973 | $as_echo_n "(cached) " >&6 | |
3974 | else | |
3975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3976 | /* end confdefs.h. */ |
eec2776c AJ |
3977 | #include <stdlib.h> |
3978 | #include <stdarg.h> | |
3979 | #include <string.h> | |
3980 | #include <float.h> | |
c52df125 AC |
3981 | |
3982 | int | |
3983 | main () | |
3984 | { | |
3985 | ||
3986 | ; | |
3987 | return 0; | |
3988 | } | |
3989 | _ACEOF | |
3990 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c AJ |
3991 | ac_cv_header_stdc=yes |
3992 | else | |
3993 | ac_cv_header_stdc=no | |
c52df125 AC |
3994 | fi |
3995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
3996 | |
3997 | if test $ac_cv_header_stdc = yes; then | |
3998 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4000 | /* end confdefs.h. */ | |
4001 | #include <string.h> | |
4002 | ||
4003 | _ACEOF | |
4004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4005 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4006 | ||
4007 | else | |
4008 | ac_cv_header_stdc=no | |
c52df125 | 4009 | fi |
eec2776c AJ |
4010 | rm -f conftest* |
4011 | ||
c52df125 | 4012 | fi |
eec2776c AJ |
4013 | |
4014 | if test $ac_cv_header_stdc = yes; then | |
4015 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 4017 | /* end confdefs.h. */ |
eec2776c | 4018 | #include <stdlib.h> |
c52df125 | 4019 | |
eec2776c AJ |
4020 | _ACEOF |
4021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4022 | $EGREP "free" >/dev/null 2>&1; then : | |
c52df125 | 4023 | |
eec2776c AJ |
4024 | else |
4025 | ac_cv_header_stdc=no | |
4026 | fi | |
4027 | rm -f conftest* | |
c52df125 | 4028 | |
eec2776c AJ |
4029 | fi |
4030 | ||
4031 | if test $ac_cv_header_stdc = yes; then | |
4032 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4033 | if test "$cross_compiling" = yes; then : | |
4034 | : | |
4035 | else | |
4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4037 | /* end confdefs.h. */ | |
4038 | #include <ctype.h> | |
4039 | #include <stdlib.h> | |
4040 | #if ((' ' & 0x0FF) == 0x020) | |
4041 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4042 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4043 | #else | |
4044 | # define ISLOWER(c) \ | |
4045 | (('a' <= (c) && (c) <= 'i') \ | |
4046 | || ('j' <= (c) && (c) <= 'r') \ | |
4047 | || ('s' <= (c) && (c) <= 'z')) | |
4048 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4049 | #endif | |
4050 | ||
4051 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
c52df125 AC |
4052 | int |
4053 | main () | |
4054 | { | |
eec2776c AJ |
4055 | int i; |
4056 | for (i = 0; i < 256; i++) | |
4057 | if (XOR (islower (i), ISLOWER (i)) | |
4058 | || toupper (i) != TOUPPER (i)) | |
4059 | return 2; | |
c52df125 AC |
4060 | return 0; |
4061 | } | |
4062 | _ACEOF | |
eec2776c AJ |
4063 | if ac_fn_c_try_run "$LINENO"; then : |
4064 | ||
4065 | else | |
4066 | ac_cv_header_stdc=no | |
4067 | fi | |
4068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4069 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c52df125 | 4070 | fi |
c52df125 AC |
4071 | |
4072 | fi | |
eec2776c AJ |
4073 | fi |
4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4075 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4076 | if test $ac_cv_header_stdc = yes; then | |
4077 | ||
4078 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
c52df125 AC |
4079 | |
4080 | fi | |
4081 | ||
eec2776c AJ |
4082 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4083 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4084 | inttypes.h stdint.h unistd.h | |
4085 | do : | |
4086 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4087 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4088 | " | |
4089 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4090 | cat >>confdefs.h <<_ACEOF | |
4091 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4092 | _ACEOF | |
c52df125 | 4093 | |
eec2776c AJ |
4094 | fi |
4095 | ||
4096 | done | |
4097 | ||
4098 | ||
4099 | ||
4100 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4101 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4102 | MINIX=yes | |
4103 | else | |
4104 | MINIX= | |
4105 | fi | |
4106 | ||
4107 | ||
4108 | if test "$MINIX" = yes; then | |
4109 | ||
4110 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4111 | ||
4112 | ||
4113 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4114 | ||
4115 | ||
4116 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4117 | ||
4118 | fi | |
4119 | ||
4120 | ||
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4122 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4123 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
c52df125 AC |
4124 | $as_echo_n "(cached) " >&6 |
4125 | else | |
4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4127 | /* end confdefs.h. */ | |
4128 | ||
eec2776c AJ |
4129 | # define __EXTENSIONS__ 1 |
4130 | $ac_includes_default | |
c52df125 AC |
4131 | int |
4132 | main () | |
4133 | { | |
4134 | ||
4135 | ; | |
4136 | return 0; | |
4137 | } | |
4138 | _ACEOF | |
eec2776c AJ |
4139 | if ac_fn_c_try_compile "$LINENO"; then : |
4140 | ac_cv_safe_to_define___extensions__=yes | |
4141 | else | |
4142 | ac_cv_safe_to_define___extensions__=no | |
c52df125 | 4143 | fi |
eec2776c | 4144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 4145 | fi |
eec2776c AJ |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4147 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4148 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4149 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
c52df125 | 4150 | |
eec2776c | 4151 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c52df125 | 4152 | |
eec2776c | 4153 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c52df125 | 4154 | |
eec2776c | 4155 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c52df125 | 4156 | |
eec2776c | 4157 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c52df125 | 4158 | |
c52df125 | 4159 | |
c52df125 | 4160 | |
c52df125 | 4161 | |
c52df125 | 4162 | |
c52df125 | 4163 | |
eec2776c | 4164 | ac_config_headers="$ac_config_headers include/setup.h" |
c52df125 AC |
4165 | |
4166 | ||
eec2776c AJ |
4167 | |
4168 | subdirs="$subdirs libratbox" | |
4169 | ||
4170 | ac_aux_dir= | |
4171 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
4172 | if test -f "$ac_dir/install-sh"; then | |
4173 | ac_aux_dir=$ac_dir | |
4174 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4175 | break | |
4176 | elif test -f "$ac_dir/install.sh"; then | |
4177 | ac_aux_dir=$ac_dir | |
4178 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4179 | break | |
4180 | elif test -f "$ac_dir/shtool"; then | |
4181 | ac_aux_dir=$ac_dir | |
4182 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4183 | break | |
c52df125 AC |
4184 | fi |
4185 | done | |
eec2776c AJ |
4186 | if test -z "$ac_aux_dir"; then |
4187 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
c52df125 AC |
4188 | fi |
4189 | ||
eec2776c AJ |
4190 | # These three variables are undocumented and unsupported, |
4191 | # and are intended to be withdrawn in a future Autoconf release. | |
4192 | # They can cause serious problems if a builder's source tree is in a directory | |
4193 | # whose full name contains unusual characters. | |
4194 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4195 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4196 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4197 | ||
c52df125 | 4198 | |
eec2776c AJ |
4199 | |
4200 | ||
4201 | am__api_version='1.15' | |
4202 | ||
4203 | # Find a good install program. We prefer a C program (faster), | |
4204 | # so one script is as good as another. But avoid the broken or | |
4205 | # incompatible versions: | |
4206 | # SysV /etc/install, /usr/sbin/install | |
4207 | # SunOS /usr/etc/install | |
4208 | # IRIX /sbin/install | |
4209 | # AIX /bin/install | |
4210 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4211 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4212 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4213 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4214 | # OS/2's system install, which has a completely different semantic | |
4215 | # ./install, which can be erroneously created by make from ./install.sh. | |
4216 | # Reject install programs that cannot install multiple files. | |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4218 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4219 | if test -z "$INSTALL"; then | |
4220 | if ${ac_cv_path_install+:} false; then : | |
c52df125 AC |
4221 | $as_echo_n "(cached) " >&6 |
4222 | else | |
eec2776c | 4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c52df125 AC |
4224 | for as_dir in $PATH |
4225 | do | |
4226 | IFS=$as_save_IFS | |
4227 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
4228 | # Account for people who put trailing slashes in PATH elements. |
4229 | case $as_dir/ in #(( | |
4230 | ./ | .// | /[cC]/* | \ | |
4231 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4232 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4233 | /usr/ucb/* ) ;; | |
4234 | *) | |
4235 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4236 | # Don't use installbsd from OSF since it installs stuff as root | |
4237 | # by default. | |
4238 | for ac_prog in ginstall scoinst install; do | |
4239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4240 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4241 | if test $ac_prog = install && | |
4242 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4243 | # AIX install. It has an incompatible calling convention. | |
4244 | : | |
4245 | elif test $ac_prog = install && | |
4246 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4247 | # program-specific install script used by HP pwplus--don't use. | |
4248 | : | |
4249 | else | |
4250 | rm -rf conftest.one conftest.two conftest.dir | |
4251 | echo one > conftest.one | |
4252 | echo two > conftest.two | |
4253 | mkdir conftest.dir | |
4254 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4255 | test -s conftest.one && test -s conftest.two && | |
4256 | test -s conftest.dir/conftest.one && | |
4257 | test -s conftest.dir/conftest.two | |
4258 | then | |
4259 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4260 | break 3 | |
4261 | fi | |
4262 | fi | |
4263 | fi | |
4264 | done | |
4265 | done | |
4266 | ;; | |
4267 | esac | |
4268 | ||
c52df125 AC |
4269 | done |
4270 | IFS=$as_save_IFS | |
4271 | ||
eec2776c AJ |
4272 | rm -rf conftest.one conftest.two conftest.dir |
4273 | ||
c52df125 | 4274 | fi |
eec2776c AJ |
4275 | if test "${ac_cv_path_install+set}" = set; then |
4276 | INSTALL=$ac_cv_path_install | |
4277 | else | |
4278 | # As a last resort, use the slow shell script. Don't cache a | |
4279 | # value for INSTALL within a source directory, because that will | |
4280 | # break other packages using the cache if that directory is | |
4281 | # removed, or if the value is a relative name. | |
4282 | INSTALL=$ac_install_sh | |
4283 | fi | |
4284 | fi | |
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4286 | $as_echo "$INSTALL" >&6; } | |
4287 | ||
4288 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4289 | # It thinks the first close brace ends the variable substitution. | |
4290 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4291 | ||
4292 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4293 | ||
4294 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4295 | ||
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4297 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4298 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4299 | # name. Accept space and tab only in the latter. | |
4300 | am_lf=' | |
4301 | ' | |
4302 | case `pwd` in | |
4303 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4304 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4305 | esac | |
4306 | case $srcdir in | |
4307 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4308 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4309 | esac | |
4310 | ||
4311 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4312 | # arguments. Must try -L first in case configure is actually a | |
4313 | # symlink; some systems play weird games with the mod time of symlinks | |
4314 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4315 | # directory). | |
4316 | if ( | |
4317 | am_has_slept=no | |
4318 | for am_try in 1 2; do | |
4319 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4320 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4321 | if test "$*" = "X"; then | |
4322 | # -L didn't work. | |
4323 | set X `ls -t "$srcdir/configure" conftest.file` | |
4324 | fi | |
4325 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4326 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4327 | ||
4328 | # If neither matched, then we have a broken ls. This can happen | |
4329 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4330 | # broken ls alias from the environment. This has actually | |
4331 | # happened. Such a system could not be considered "sane". | |
4332 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4333 | alias in your environment" "$LINENO" 5 | |
4334 | fi | |
4335 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4336 | break | |
4337 | fi | |
4338 | # Just in case. | |
4339 | sleep 1 | |
4340 | am_has_slept=yes | |
4341 | done | |
4342 | test "$2" = conftest.file | |
4343 | ) | |
4344 | then | |
4345 | # Ok. | |
4346 | : | |
4347 | else | |
4348 | as_fn_error $? "newly created file is older than distributed files! | |
4349 | Check your system clock" "$LINENO" 5 | |
4350 | fi | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4352 | $as_echo "yes" >&6; } | |
4353 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4354 | # generated files are strictly newer. | |
4355 | am_sleep_pid= | |
4356 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4357 | ( sleep 1 ) & | |
4358 | am_sleep_pid=$! | |
4359 | fi | |
4360 | ||
4361 | rm -f conftest.file | |
4362 | ||
4363 | test "$program_prefix" != NONE && | |
4364 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4365 | # Use a double $ so make ignores it. | |
4366 | test "$program_suffix" != NONE && | |
4367 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4368 | # Double any \ or $. | |
4369 | # By default was `s,x,x', remove it if useless. | |
4370 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4371 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4372 | ||
4373 | if test x"${MISSING+set}" != xset; then | |
4374 | case $am_aux_dir in | |
4375 | *\ * | *\ *) | |
4376 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4377 | *) | |
4378 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4379 | esac | |
4380 | fi | |
4381 | # Use eval to expand $SHELL | |
4382 | if eval "$MISSING --is-lightweight"; then | |
4383 | am_missing_run="$MISSING " | |
4384 | else | |
4385 | am_missing_run= | |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4387 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4388 | fi | |
4389 | ||
4390 | if test x"${install_sh+set}" != xset; then | |
4391 | case $am_aux_dir in | |
4392 | *\ * | *\ *) | |
4393 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4394 | *) | |
4395 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4396 | esac | |
4397 | fi | |
4398 | ||
4399 | # Installed binaries are usually stripped using 'strip' when the user | |
4400 | # run "make install-strip". However 'strip' might not be the right | |
4401 | # tool to use in cross-compilation environments, therefore Automake | |
4402 | # will honor the 'STRIP' environment variable to overrule this program. | |
4403 | if test "$cross_compiling" != no; then | |
4404 | if test -n "$ac_tool_prefix"; then | |
4405 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4406 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4408 | $as_echo_n "checking for $ac_word... " >&6; } | |
4409 | if ${ac_cv_prog_STRIP+:} false; then : | |
4410 | $as_echo_n "(cached) " >&6 | |
4411 | else | |
4412 | if test -n "$STRIP"; then | |
4413 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4414 | else | |
4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4416 | for as_dir in $PATH | |
4417 | do | |
4418 | IFS=$as_save_IFS | |
4419 | test -z "$as_dir" && as_dir=. | |
4420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4422 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4424 | break 2 | |
4425 | fi | |
4426 | done | |
4427 | done | |
4428 | IFS=$as_save_IFS | |
4429 | ||
4430 | fi | |
4431 | fi | |
4432 | STRIP=$ac_cv_prog_STRIP | |
4433 | if test -n "$STRIP"; then | |
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4435 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
4436 | else |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4438 | $as_echo "no" >&6; } | |
4439 | fi | |
4440 | ||
4441 | ||
eec2776c AJ |
4442 | fi |
4443 | if test -z "$ac_cv_prog_STRIP"; then | |
4444 | ac_ct_STRIP=$STRIP | |
4445 | # Extract the first word of "strip", so it can be a program name with args. | |
4446 | set dummy strip; ac_word=$2 | |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4448 | $as_echo_n "checking for $ac_word... " >&6; } | |
4449 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4450 | $as_echo_n "(cached) " >&6 | |
4451 | else | |
4452 | if test -n "$ac_ct_STRIP"; then | |
4453 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4454 | else | |
4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4456 | for as_dir in $PATH | |
4457 | do | |
4458 | IFS=$as_save_IFS | |
4459 | test -z "$as_dir" && as_dir=. | |
4460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4462 | ac_cv_prog_ac_ct_STRIP="strip" | |
4463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4464 | break 2 | |
4465 | fi | |
c52df125 | 4466 | done |
eec2776c AJ |
4467 | done |
4468 | IFS=$as_save_IFS | |
c52df125 | 4469 | |
eec2776c AJ |
4470 | fi |
4471 | fi | |
4472 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4473 | if test -n "$ac_ct_STRIP"; then | |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4475 | $as_echo "$ac_ct_STRIP" >&6; } | |
4476 | else | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4478 | $as_echo "no" >&6; } | |
4479 | fi | |
4480 | ||
4481 | if test "x$ac_ct_STRIP" = x; then | |
4482 | STRIP=":" | |
c52df125 AC |
4483 | else |
4484 | case $cross_compiling:$ac_tool_warned in | |
4485 | yes:) | |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4487 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4488 | ac_tool_warned=yes ;; | |
4489 | esac | |
eec2776c | 4490 | STRIP=$ac_ct_STRIP |
c52df125 | 4491 | fi |
eec2776c AJ |
4492 | else |
4493 | STRIP="$ac_cv_prog_STRIP" | |
c52df125 AC |
4494 | fi |
4495 | ||
eec2776c AJ |
4496 | fi |
4497 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
c52df125 | 4498 | |
eec2776c AJ |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4500 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4501 | if test -z "$MKDIR_P"; then | |
4502 | if ${ac_cv_path_mkdir+:} false; then : | |
c52df125 AC |
4503 | $as_echo_n "(cached) " >&6 |
4504 | else | |
eec2776c AJ |
4505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4506 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4507 | do | |
4508 | IFS=$as_save_IFS | |
4509 | test -z "$as_dir" && as_dir=. | |
4510 | for ac_prog in mkdir gmkdir; do | |
4511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4512 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4513 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4514 | 'mkdir (GNU coreutils) '* | \ | |
4515 | 'mkdir (coreutils) '* | \ | |
4516 | 'mkdir (fileutils) '4.1*) | |
4517 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4518 | break 3;; | |
4519 | esac | |
4520 | done | |
4521 | done | |
4522 | done | |
4523 | IFS=$as_save_IFS | |
c52df125 | 4524 | |
eec2776c | 4525 | fi |
c52df125 | 4526 | |
eec2776c AJ |
4527 | test -d ./--version && rmdir ./--version |
4528 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4529 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4530 | else | |
4531 | # As a last resort, use the slow shell script. Don't cache a | |
4532 | # value for MKDIR_P within a source directory, because that will | |
4533 | # break other packages using the cache if that directory is | |
4534 | # removed, or if the value is a relative name. | |
4535 | MKDIR_P="$ac_install_sh -d" | |
4536 | fi | |
c52df125 | 4537 | fi |
eec2776c AJ |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4539 | $as_echo "$MKDIR_P" >&6; } | |
4540 | ||
4541 | for ac_prog in gawk mawk nawk awk | |
4542 | do | |
4543 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4544 | set dummy $ac_prog; ac_word=$2 | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4546 | $as_echo_n "checking for $ac_word... " >&6; } | |
4547 | if ${ac_cv_prog_AWK+:} false; then : | |
4548 | $as_echo_n "(cached) " >&6 | |
4549 | else | |
4550 | if test -n "$AWK"; then | |
4551 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4552 | else | |
4553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4554 | for as_dir in $PATH | |
4555 | do | |
4556 | IFS=$as_save_IFS | |
4557 | test -z "$as_dir" && as_dir=. | |
4558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4560 | ac_cv_prog_AWK="$ac_prog" | |
4561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4562 | break 2 | |
4563 | fi | |
4564 | done | |
4565 | done | |
4566 | IFS=$as_save_IFS | |
c52df125 AC |
4567 | |
4568 | fi | |
eec2776c AJ |
4569 | fi |
4570 | AWK=$ac_cv_prog_AWK | |
4571 | if test -n "$AWK"; then | |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4573 | $as_echo "$AWK" >&6; } | |
4574 | else | |
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4576 | $as_echo "no" >&6; } | |
4577 | fi | |
c52df125 | 4578 | |
c52df125 | 4579 | |
eec2776c AJ |
4580 | test -n "$AWK" && break |
4581 | done | |
c52df125 | 4582 | |
eec2776c AJ |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4584 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4585 | set x ${MAKE-make} | |
4586 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4587 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4588 | $as_echo_n "(cached) " >&6 | |
4589 | else | |
4590 | cat >conftest.make <<\_ACEOF | |
4591 | SHELL = /bin/sh | |
4592 | all: | |
4593 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4594 | _ACEOF | |
4595 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4596 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4597 | *@@@%%%=?*=@@@%%%*) | |
4598 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4599 | *) | |
4600 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
c52df125 | 4601 | esac |
eec2776c AJ |
4602 | rm -f conftest.make |
4603 | fi | |
4604 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4606 | $as_echo "yes" >&6; } | |
4607 | SET_MAKE= | |
4608 | else | |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4610 | $as_echo "no" >&6; } | |
4611 | SET_MAKE="MAKE=${MAKE-make}" | |
4612 | fi | |
c52df125 | 4613 | |
eec2776c AJ |
4614 | rm -rf .tst 2>/dev/null |
4615 | mkdir .tst 2>/dev/null | |
4616 | if test -d .tst; then | |
4617 | am__leading_dot=. | |
4618 | else | |
4619 | am__leading_dot=_ | |
4620 | fi | |
4621 | rmdir .tst 2>/dev/null | |
c52df125 | 4622 | |
eec2776c | 4623 | DEPDIR="${am__leading_dot}deps" |
c52df125 | 4624 | |
eec2776c | 4625 | ac_config_commands="$ac_config_commands depfiles" |
c52df125 AC |
4626 | |
4627 | ||
eec2776c AJ |
4628 | am_make=${MAKE-make} |
4629 | cat > confinc << 'END' | |
4630 | am__doit: | |
4631 | @echo this is the am__doit target | |
4632 | .PHONY: am__doit | |
4633 | END | |
4634 | # If we don't find an include directive, just comment out the code. | |
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4636 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4637 | am__include="#" | |
4638 | am__quote= | |
4639 | _am_result=none | |
4640 | # First try GNU make style include. | |
4641 | echo "include confinc" > confmf | |
4642 | # Ignore all kinds of additional output from 'make'. | |
4643 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4644 | *the\ am__doit\ target*) | |
4645 | am__include=include | |
4646 | am__quote= | |
4647 | _am_result=GNU | |
4648 | ;; | |
4649 | esac | |
4650 | # Now try BSD make style include. | |
4651 | if test "$am__include" = "#"; then | |
4652 | echo '.include "confinc"' > confmf | |
4653 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4654 | *the\ am__doit\ target*) | |
4655 | am__include=.include | |
4656 | am__quote="\"" | |
4657 | _am_result=BSD | |
4658 | ;; | |
4659 | esac | |
4660 | fi | |
c52df125 AC |
4661 | |
4662 | ||
eec2776c AJ |
4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4664 | $as_echo "$_am_result" >&6; } | |
4665 | rm -f confinc confmf | |
c52df125 | 4666 | |
eec2776c AJ |
4667 | # Check whether --enable-dependency-tracking was given. |
4668 | if test "${enable_dependency_tracking+set}" = set; then : | |
4669 | enableval=$enable_dependency_tracking; | |
4670 | fi | |
c52df125 | 4671 | |
eec2776c AJ |
4672 | if test "x$enable_dependency_tracking" != xno; then |
4673 | am_depcomp="$ac_aux_dir/depcomp" | |
4674 | AMDEPBACKSLASH='\' | |
4675 | am__nodep='_no' | |
4676 | fi | |
4677 | if test "x$enable_dependency_tracking" != xno; then | |
4678 | AMDEP_TRUE= | |
4679 | AMDEP_FALSE='#' | |
4680 | else | |
4681 | AMDEP_TRUE='#' | |
4682 | AMDEP_FALSE= | |
4683 | fi | |
c52df125 AC |
4684 | |
4685 | ||
eec2776c AJ |
4686 | # Check whether --enable-silent-rules was given. |
4687 | if test "${enable_silent_rules+set}" = set; then : | |
4688 | enableval=$enable_silent_rules; | |
4689 | fi | |
c52df125 | 4690 | |
eec2776c AJ |
4691 | case $enable_silent_rules in # ((( |
4692 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4693 | no) AM_DEFAULT_VERBOSITY=1;; | |
4694 | *) AM_DEFAULT_VERBOSITY=1;; | |
4695 | esac | |
4696 | am_make=${MAKE-make} | |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4698 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4699 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4700 | $as_echo_n "(cached) " >&6 | |
4701 | else | |
4702 | if $as_echo 'TRUE=$(BAR$(V)) | |
4703 | BAR0=false | |
4704 | BAR1=true | |
4705 | V=1 | |
4706 | am__doit: | |
4707 | @$(TRUE) | |
4708 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4709 | am_cv_make_support_nested_variables=yes | |
4710 | else | |
4711 | am_cv_make_support_nested_variables=no | |
4712 | fi | |
4713 | fi | |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4715 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4716 | if test $am_cv_make_support_nested_variables = yes; then | |
4717 | AM_V='$(V)' | |
4718 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4719 | else | |
4720 | AM_V=$AM_DEFAULT_VERBOSITY | |
4721 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4722 | fi | |
4723 | AM_BACKSLASH='\' | |
c52df125 | 4724 | |
eec2776c AJ |
4725 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4726 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4727 | # is not polluted with repeated "-I." | |
4728 | am__isrc=' -I$(srcdir)' | |
4729 | # test to see if srcdir already configured | |
4730 | if test -f $srcdir/config.status; then | |
4731 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4732 | fi | |
4733 | fi | |
c52df125 | 4734 | |
eec2776c AJ |
4735 | # test whether we have cygpath |
4736 | if test -z "$CYGPATH_W"; then | |
4737 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4738 | CYGPATH_W='cygpath -w' | |
4739 | else | |
4740 | CYGPATH_W=echo | |
4741 | fi | |
4742 | fi | |
c52df125 AC |
4743 | |
4744 | ||
eec2776c AJ |
4745 | # Define the identity of the package. |
4746 | PACKAGE='charybdis' | |
4747 | VERSION='3.6.0-dev' | |
c52df125 | 4748 | |
c52df125 | 4749 | |
eec2776c AJ |
4750 | cat >>confdefs.h <<_ACEOF |
4751 | #define PACKAGE "$PACKAGE" | |
4752 | _ACEOF | |
c52df125 | 4753 | |
c52df125 | 4754 | |
eec2776c AJ |
4755 | cat >>confdefs.h <<_ACEOF |
4756 | #define VERSION "$VERSION" | |
4757 | _ACEOF | |
c52df125 | 4758 | |
eec2776c | 4759 | # Some tools Automake needs. |
c52df125 | 4760 | |
eec2776c | 4761 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
c52df125 | 4762 | |
c52df125 | 4763 | |
eec2776c | 4764 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
c52df125 | 4765 | |
c52df125 | 4766 | |
eec2776c | 4767 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
c52df125 | 4768 | |
c52df125 | 4769 | |
eec2776c | 4770 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
c52df125 AC |
4771 | |
4772 | ||
eec2776c | 4773 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
c52df125 | 4774 | |
eec2776c AJ |
4775 | # For better backward compatibility. To be removed once Automake 1.9.x |
4776 | # dies out for good. For more background, see: | |
4777 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4778 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4779 | mkdir_p='$(MKDIR_P)' | |
c52df125 | 4780 | |
eec2776c AJ |
4781 | # We need awk for the "check" target (and possibly the TAP driver). The |
4782 | # system "awk" is bad on some platforms. | |
4783 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4784 | # in the wild :-( We should find a proper way to deprecate it ... | |
4785 | AMTAR='$${TAR-tar}' | |
c52df125 AC |
4786 | |
4787 | ||
eec2776c AJ |
4788 | # We'll loop over all known methods to create a tar archive until one works. |
4789 | _am_tools='gnutar pax cpio none' | |
c52df125 | 4790 | |
eec2776c | 4791 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c52df125 AC |
4792 | |
4793 | ||
4794 | ||
4795 | ||
4796 | ||
eec2776c | 4797 | depcc="$CC" am_compiler_list= |
c52df125 | 4798 | |
eec2776c AJ |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4800 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4801 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
c52df125 AC |
4802 | $as_echo_n "(cached) " >&6 |
4803 | else | |
eec2776c AJ |
4804 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4805 | # We make a subdir and do the tests there. Otherwise we can end up | |
4806 | # making bogus files that we don't know about and never remove. For | |
4807 | # instance it was reported that on HP-UX the gcc test will end up | |
4808 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4809 | # in D". | |
4810 | rm -rf conftest.dir | |
4811 | mkdir conftest.dir | |
4812 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4813 | # using a relative directory. | |
4814 | cp "$am_depcomp" conftest.dir | |
4815 | cd conftest.dir | |
4816 | # We will build objects and dependencies in a subdirectory because | |
4817 | # it helps to detect inapplicable dependency modes. For instance | |
4818 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4819 | # side effect of compilation, but ICC will put the dependencies in | |
4820 | # the current directory while Tru64 will put them in the object | |
4821 | # directory. | |
4822 | mkdir sub | |
c52df125 | 4823 | |
eec2776c AJ |
4824 | am_cv_CC_dependencies_compiler_type=none |
4825 | if test "$am_compiler_list" = ""; then | |
4826 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
c52df125 | 4827 | fi |
eec2776c AJ |
4828 | am__universal=false |
4829 | case " $depcc " in #( | |
4830 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4831 | esac | |
c52df125 | 4832 | |
eec2776c AJ |
4833 | for depmode in $am_compiler_list; do |
4834 | # Setup a source with many dependencies, because some compilers | |
4835 | # like to wrap large dependency lists on column 80 (with \), and | |
4836 | # we should not choose a depcomp mode which is confused by this. | |
4837 | # | |
4838 | # We need to recreate these files for each test, as the compiler may | |
4839 | # overwrite some of them when testing with obscure command lines. | |
4840 | # This happens at least with the AIX C compiler. | |
4841 | : > sub/conftest.c | |
4842 | for i in 1 2 3 4 5 6; do | |
4843 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4844 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4845 | # Solaris 10 /bin/sh. | |
4846 | echo '/* dummy */' > sub/conftst$i.h | |
4847 | done | |
4848 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c52df125 | 4849 | |
eec2776c AJ |
4850 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4851 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4852 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4853 | # versions had trouble with output in subdirs. | |
4854 | am__obj=sub/conftest.${OBJEXT-o} | |
4855 | am__minus_obj="-o $am__obj" | |
4856 | case $depmode in | |
4857 | gcc) | |
4858 | # This depmode causes a compiler race in universal mode. | |
4859 | test "$am__universal" = false || continue | |
4860 | ;; | |
4861 | nosideeffect) | |
4862 | # After this tag, mechanisms are not by side-effect, so they'll | |
4863 | # only be used when explicitly requested. | |
4864 | if test "x$enable_dependency_tracking" = xyes; then | |
4865 | continue | |
4866 | else | |
4867 | break | |
4868 | fi | |
4869 | ;; | |
4870 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4871 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4872 | # not run yet. These depmodes are late enough in the game, and | |
4873 | # so weak that their functioning should not be impacted. | |
4874 | am__obj=conftest.${OBJEXT-o} | |
4875 | am__minus_obj= | |
4876 | ;; | |
4877 | none) break ;; | |
4878 | esac | |
4879 | if depmode=$depmode \ | |
4880 | source=sub/conftest.c object=$am__obj \ | |
4881 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4882 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4883 | >/dev/null 2>conftest.err && | |
4884 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4885 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4886 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4887 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4888 | # icc doesn't choke on unknown options, it will just issue warnings | |
4889 | # or remarks (even with -Werror). So we grep stderr for any message | |
4890 | # that says an option was ignored or not supported. | |
4891 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4892 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4893 | # The diagnosis changed in icc 8.0: | |
4894 | # icc: Command line remark: option '-MP' not supported | |
4895 | if (grep 'ignoring option' conftest.err || | |
4896 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4897 | am_cv_CC_dependencies_compiler_type=$depmode | |
4898 | break | |
4899 | fi | |
c52df125 | 4900 | fi |
c52df125 | 4901 | done |
c52df125 | 4902 | |
eec2776c AJ |
4903 | cd .. |
4904 | rm -rf conftest.dir | |
c52df125 | 4905 | else |
eec2776c | 4906 | am_cv_CC_dependencies_compiler_type=none |
c52df125 AC |
4907 | fi |
4908 | ||
4909 | fi | |
eec2776c AJ |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4911 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4912 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c52df125 | 4913 | |
eec2776c AJ |
4914 | if |
4915 | test "x$enable_dependency_tracking" != xno \ | |
4916 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4917 | am__fastdepCC_TRUE= | |
4918 | am__fastdepCC_FALSE='#' | |
c52df125 | 4919 | else |
eec2776c AJ |
4920 | am__fastdepCC_TRUE='#' |
4921 | am__fastdepCC_FALSE= | |
4922 | fi | |
c52df125 | 4923 | |
eec2776c AJ |
4924 | |
4925 | ||
4926 | # POSIX will say in a future version that running "rm -f" with no argument | |
4927 | # is OK; and we want to be able to make that assumption in our Makefile | |
4928 | # recipes. So use an aggressive probe to check that the usage we want is | |
4929 | # actually supported "in the wild" to an acceptable degree. | |
4930 | # See automake bug#10828. | |
4931 | # To make any issue more visible, cause the running configure to be aborted | |
4932 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4933 | # user can still override this though. | |
4934 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4935 | cat >&2 <<'END' | |
4936 | Oops! | |
4937 | ||
4938 | Your 'rm' program seems unable to run without file operands specified | |
4939 | on the command line, even when the '-f' option is present. This is contrary | |
4940 | to the behaviour of most rm programs out there, and not conforming with | |
4941 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4942 | ||
4943 | Please tell bug-automake@gnu.org about your system, including the value | |
4944 | of your $PATH and any error possibly output before this message. This | |
4945 | can help us improve future automake versions. | |
4946 | ||
4947 | END | |
4948 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4949 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4950 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4951 | echo >&2 | |
4952 | else | |
4953 | cat >&2 <<'END' | |
4954 | Aborting the configuration process, to ensure you take notice of the issue. | |
4955 | ||
4956 | You can download and install GNU coreutils to get an 'rm' implementation | |
4957 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4958 | ||
4959 | If you want to complete the configuration process using your problematic | |
4960 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4961 | to "yes", and re-run configure. | |
4962 | ||
4963 | END | |
4964 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
c52df125 | 4965 | fi |
c52df125 AC |
4966 | fi |
4967 | ||
eec2776c AJ |
4968 | # Check whether --enable-silent-rules was given. |
4969 | if test "${enable_silent_rules+set}" = set; then : | |
4970 | enableval=$enable_silent_rules; | |
c52df125 | 4971 | fi |
c52df125 | 4972 | |
eec2776c AJ |
4973 | case $enable_silent_rules in # ((( |
4974 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4975 | no) AM_DEFAULT_VERBOSITY=1;; | |
4976 | *) AM_DEFAULT_VERBOSITY=0;; | |
4977 | esac | |
4978 | am_make=${MAKE-make} | |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4980 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4981 | if ${am_cv_make_support_nested_variables+:} false; then : | |
c52df125 AC |
4982 | $as_echo_n "(cached) " >&6 |
4983 | else | |
eec2776c AJ |
4984 | if $as_echo 'TRUE=$(BAR$(V)) |
4985 | BAR0=false | |
4986 | BAR1=true | |
4987 | V=1 | |
4988 | am__doit: | |
4989 | @$(TRUE) | |
4990 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4991 | am_cv_make_support_nested_variables=yes | |
c52df125 | 4992 | else |
eec2776c | 4993 | am_cv_make_support_nested_variables=no |
c52df125 | 4994 | fi |
c52df125 | 4995 | fi |
eec2776c AJ |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
4997 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4998 | if test $am_cv_make_support_nested_variables = yes; then | |
4999 | AM_V='$(V)' | |
5000 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
c52df125 | 5001 | else |
eec2776c AJ |
5002 | AM_V=$AM_DEFAULT_VERBOSITY |
5003 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
c52df125 | 5004 | fi |
eec2776c | 5005 | AM_BACKSLASH='\' |
c52df125 | 5006 | |
eec2776c AJ |
5007 | if test -n "$ac_tool_prefix"; then |
5008 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5009 | do |
5010 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5011 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5013 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5014 | if ${ac_cv_prog_AR+:} false; then : |
c52df125 AC |
5015 | $as_echo_n "(cached) " >&6 |
5016 | else | |
eec2776c AJ |
5017 | if test -n "$AR"; then |
5018 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c52df125 AC |
5019 | else |
5020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5021 | for as_dir in $PATH | |
5022 | do | |
5023 | IFS=$as_save_IFS | |
5024 | test -z "$as_dir" && as_dir=. | |
5025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5027 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5029 | break 2 | |
5030 | fi | |
5031 | done | |
5032 | done | |
5033 | IFS=$as_save_IFS | |
5034 | ||
5035 | fi | |
5036 | fi | |
eec2776c AJ |
5037 | AR=$ac_cv_prog_AR |
5038 | if test -n "$AR"; then | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5040 | $as_echo "$AR" >&6; } | |
c52df125 AC |
5041 | else |
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5043 | $as_echo "no" >&6; } | |
5044 | fi | |
5045 | ||
5046 | ||
eec2776c | 5047 | test -n "$AR" && break |
c52df125 AC |
5048 | done |
5049 | fi | |
eec2776c AJ |
5050 | if test -z "$AR"; then |
5051 | ac_ct_AR=$AR | |
5052 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5053 | do |
5054 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5055 | set dummy $ac_prog; ac_word=$2 | |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5057 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5058 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
c52df125 AC |
5059 | $as_echo_n "(cached) " >&6 |
5060 | else | |
eec2776c AJ |
5061 | if test -n "$ac_ct_AR"; then |
5062 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
c52df125 AC |
5063 | else |
5064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5065 | for as_dir in $PATH | |
5066 | do | |
5067 | IFS=$as_save_IFS | |
5068 | test -z "$as_dir" && as_dir=. | |
5069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5071 | ac_cv_prog_ac_ct_AR="$ac_prog" |
c52df125 AC |
5072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5073 | break 2 | |
5074 | fi | |
5075 | done | |
5076 | done | |
5077 | IFS=$as_save_IFS | |
5078 | ||
5079 | fi | |
5080 | fi | |
eec2776c AJ |
5081 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5082 | if test -n "$ac_ct_AR"; then | |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5084 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 AC |
5085 | else |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5087 | $as_echo "no" >&6; } | |
5088 | fi | |
5089 | ||
5090 | ||
eec2776c | 5091 | test -n "$ac_ct_AR" && break |
c52df125 AC |
5092 | done |
5093 | ||
eec2776c AJ |
5094 | if test "x$ac_ct_AR" = x; then |
5095 | AR="false" | |
c52df125 AC |
5096 | else |
5097 | case $cross_compiling:$ac_tool_warned in | |
5098 | yes:) | |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5101 | ac_tool_warned=yes ;; | |
5102 | esac | |
eec2776c | 5103 | AR=$ac_ct_AR |
c52df125 AC |
5104 | fi |
5105 | fi | |
5106 | ||
eec2776c AJ |
5107 | : ${AR=ar} |
5108 | ||
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5110 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5111 | if ${am_cv_ar_interface+:} false; then : | |
5112 | $as_echo_n "(cached) " >&6 | |
5113 | else | |
5114 | ac_ext=c | |
5115 | ac_cpp='$CPP $CPPFLAGS' | |
5116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5119 | ||
5120 | am_cv_ar_interface=ar | |
5121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5122 | /* end confdefs.h. */ | |
5123 | int some_variable = 0; | |
5124 | _ACEOF | |
5125 | if ac_fn_c_try_compile "$LINENO"; then : | |
5126 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5127 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5128 | (eval $am_ar_try) 2>&5 | |
5129 | ac_status=$? | |
5130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5131 | test $ac_status = 0; } | |
5132 | if test "$ac_status" -eq 0; then | |
5133 | am_cv_ar_interface=ar | |
5134 | else | |
5135 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5136 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5137 | (eval $am_ar_try) 2>&5 | |
5138 | ac_status=$? | |
5139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5140 | test $ac_status = 0; } | |
5141 | if test "$ac_status" -eq 0; then | |
5142 | am_cv_ar_interface=lib | |
5143 | else | |
5144 | am_cv_ar_interface=unknown | |
5145 | fi | |
5146 | fi | |
5147 | rm -f conftest.lib libconftest.a | |
c52df125 | 5148 | |
c52df125 | 5149 | fi |
eec2776c AJ |
5150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5151 | ac_ext=c | |
5152 | ac_cpp='$CPP $CPPFLAGS' | |
5153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 5156 | |
eec2776c AJ |
5157 | fi |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5159 | $as_echo "$am_cv_ar_interface" >&6; } | |
c52df125 | 5160 | |
eec2776c AJ |
5161 | case $am_cv_ar_interface in |
5162 | ar) | |
5163 | ;; | |
5164 | lib) | |
5165 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5166 | # FIXME: It is wrong to rewrite AR. | |
5167 | # But if we don't then we get into trouble of one sort or another. | |
5168 | # A longer-term fix would be to have automake use am__AR in this case, | |
5169 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5170 | # similar. | |
5171 | AR="$am_aux_dir/ar-lib $AR" | |
5172 | ;; | |
5173 | unknown) | |
5174 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5175 | ;; | |
5176 | esac | |
c52df125 AC |
5177 | |
5178 | ||
eec2776c AJ |
5179 | case `pwd` in |
5180 | *\ * | *\ *) | |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5182 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5183 | esac | |
c52df125 AC |
5184 | |
5185 | ||
c52df125 | 5186 | |
eec2776c AJ |
5187 | macro_version='2.4.2' |
5188 | macro_revision='1.3337' | |
c52df125 | 5189 | |
c52df125 | 5190 | |
c52df125 | 5191 | |
c52df125 | 5192 | |
c52df125 | 5193 | |
c52df125 | 5194 | |
c52df125 | 5195 | |
c52df125 | 5196 | |
c52df125 | 5197 | |
c52df125 AC |
5198 | |
5199 | ||
5200 | ||
5201 | ||
eec2776c | 5202 | ltmain="$ac_aux_dir/ltmain.sh" |
c52df125 | 5203 | |
eec2776c AJ |
5204 | # Make sure we can run config.sub. |
5205 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5206 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
c52df125 | 5207 | |
eec2776c AJ |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5209 | $as_echo_n "checking build system type... " >&6; } | |
5210 | if ${ac_cv_build+:} false; then : | |
5211 | $as_echo_n "(cached) " >&6 | |
5212 | else | |
5213 | ac_build_alias=$build_alias | |
5214 | test "x$ac_build_alias" = x && | |
5215 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5216 | test "x$ac_build_alias" = x && | |
5217 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5218 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5219 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
c52df125 | 5220 | |
eec2776c AJ |
5221 | fi |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5223 | $as_echo "$ac_cv_build" >&6; } | |
5224 | case $ac_cv_build in | |
5225 | *-*-*) ;; | |
5226 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5227 | esac | |
5228 | build=$ac_cv_build | |
5229 | ac_save_IFS=$IFS; IFS='-' | |
5230 | set x $ac_cv_build | |
5231 | shift | |
5232 | build_cpu=$1 | |
5233 | build_vendor=$2 | |
5234 | shift; shift | |
5235 | # Remember, the first character of IFS is used to create $*, | |
5236 | # except with old shells: | |
5237 | build_os=$* | |
5238 | IFS=$ac_save_IFS | |
5239 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5240 | |
5241 | ||
eec2776c AJ |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5243 | $as_echo_n "checking host system type... " >&6; } | |
5244 | if ${ac_cv_host+:} false; then : | |
5245 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5246 | else |
eec2776c AJ |
5247 | if test "x$host_alias" = x; then |
5248 | ac_cv_host=$ac_cv_build | |
5249 | else | |
5250 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5251 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c52df125 AC |
5252 | fi |
5253 | ||
eec2776c AJ |
5254 | fi |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5256 | $as_echo "$ac_cv_host" >&6; } | |
5257 | case $ac_cv_host in | |
5258 | *-*-*) ;; | |
5259 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
c52df125 | 5260 | esac |
eec2776c AJ |
5261 | host=$ac_cv_host |
5262 | ac_save_IFS=$IFS; IFS='-' | |
5263 | set x $ac_cv_host | |
5264 | shift | |
5265 | host_cpu=$1 | |
5266 | host_vendor=$2 | |
5267 | shift; shift | |
5268 | # Remember, the first character of IFS is used to create $*, | |
5269 | # except with old shells: | |
5270 | host_os=$* | |
5271 | IFS=$ac_save_IFS | |
5272 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5273 | |
5274 | ||
eec2776c AJ |
5275 | # Backslashify metacharacters that are still active within |
5276 | # double-quoted strings. | |
5277 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
c52df125 | 5278 | |
eec2776c AJ |
5279 | # Same as above, but do not quote variable references. |
5280 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
c52df125 | 5281 | |
eec2776c AJ |
5282 | # Sed substitution to delay expansion of an escaped shell variable in a |
5283 | # double_quote_subst'ed string. | |
5284 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
c52df125 | 5285 | |
eec2776c AJ |
5286 | # Sed substitution to delay expansion of an escaped single quote. |
5287 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
c52df125 | 5288 | |
eec2776c AJ |
5289 | # Sed substitution to avoid accidental globbing in evaled expressions |
5290 | no_glob_subst='s/\*/\\\*/g' | |
c52df125 | 5291 | |
eec2776c AJ |
5292 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5293 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5294 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
c52df125 | 5295 | |
eec2776c AJ |
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5297 | $as_echo_n "checking how to print strings... " >&6; } | |
5298 | # Test print first, because it will be a builtin if present. | |
5299 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5300 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5301 | ECHO='print -r --' | |
5302 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5303 | ECHO='printf %s\n' | |
c52df125 | 5304 | else |
eec2776c AJ |
5305 | # Use this function as a fallback that always works. |
5306 | func_fallback_echo () | |
5307 | { | |
5308 | eval 'cat <<_LTECHO_EOF | |
5309 | $1 | |
5310 | _LTECHO_EOF' | |
5311 | } | |
5312 | ECHO='func_fallback_echo' | |
5313 | fi | |
5314 | ||
5315 | # func_echo_all arg... | |
5316 | # Invoke $ECHO with all args, space-separated. | |
5317 | func_echo_all () | |
5318 | { | |
5319 | $ECHO "" | |
5320 | } | |
5321 | ||
5322 | case "$ECHO" in | |
5323 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5324 | $as_echo "printf" >&6; } ;; | |
5325 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5326 | $as_echo "print -r" >&6; } ;; | |
5327 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5328 | $as_echo "cat" >&6; } ;; | |
c52df125 AC |
5329 | esac |
5330 | ||
c52df125 | 5331 | |
c52df125 AC |
5332 | |
5333 | ||
5334 | ||
5335 | ||
5336 | ||
c52df125 | 5337 | |
c52df125 | 5338 | |
c52df125 AC |
5339 | |
5340 | ||
5341 | ||
5342 | ||
5343 | ||
eec2776c AJ |
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5345 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5346 | if ${ac_cv_path_SED+:} false; then : | |
c52df125 AC |
5347 | $as_echo_n "(cached) " >&6 |
5348 | else | |
eec2776c AJ |
5349 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5350 | for ac_i in 1 2 3 4 5 6 7; do | |
5351 | ac_script="$ac_script$as_nl$ac_script" | |
5352 | done | |
5353 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5354 | { ac_script=; unset ac_script;} | |
5355 | if test -z "$SED"; then | |
5356 | ac_path_SED_found=false | |
5357 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5359 | for as_dir in $PATH | |
5360 | do | |
5361 | IFS=$as_save_IFS | |
5362 | test -z "$as_dir" && as_dir=. | |
5363 | for ac_prog in sed gsed; do | |
5364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5365 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5366 | as_fn_executable_p "$ac_path_SED" || continue | |
5367 | # Check for GNU ac_path_SED and select it if it is found. | |
5368 | # Check for GNU $ac_path_SED | |
5369 | case `"$ac_path_SED" --version 2>&1` in | |
5370 | *GNU*) | |
5371 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5372 | *) | |
5373 | ac_count=0 | |
5374 | $as_echo_n 0123456789 >"conftest.in" | |
5375 | while : | |
5376 | do | |
5377 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5378 | mv "conftest.tmp" "conftest.in" | |
5379 | cp "conftest.in" "conftest.nl" | |
5380 | $as_echo '' >> "conftest.nl" | |
5381 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5382 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5383 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5384 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5385 | # Best one so far, save it but keep looking for a better one | |
5386 | ac_cv_path_SED="$ac_path_SED" | |
5387 | ac_path_SED_max=$ac_count | |
c52df125 | 5388 | fi |
eec2776c AJ |
5389 | # 10*(2^10) chars as input seems more than enough |
5390 | test $ac_count -gt 10 && break | |
5391 | done | |
5392 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
c52df125 AC |
5393 | esac |
5394 | ||
eec2776c AJ |
5395 | $ac_path_SED_found && break 3 |
5396 | done | |
5397 | done | |
5398 | done | |
5399 | IFS=$as_save_IFS | |
5400 | if test -z "$ac_cv_path_SED"; then | |
5401 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5402 | fi | |
5403 | else | |
5404 | ac_cv_path_SED=$SED | |
5405 | fi | |
5406 | ||
5407 | fi | |
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5409 | $as_echo "$ac_cv_path_SED" >&6; } | |
5410 | SED="$ac_cv_path_SED" | |
5411 | rm -f conftest.sed | |
5412 | ||
5413 | test -z "$SED" && SED=sed | |
5414 | Xsed="$SED -e 1s/^X//" | |
c52df125 AC |
5415 | |
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
c52df125 | 5423 | |
c52df125 AC |
5424 | |
5425 | ||
eec2776c AJ |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5427 | $as_echo_n "checking for fgrep... " >&6; } | |
5428 | if ${ac_cv_path_FGREP+:} false; then : | |
c52df125 AC |
5429 | $as_echo_n "(cached) " >&6 |
5430 | else | |
eec2776c AJ |
5431 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5432 | then ac_cv_path_FGREP="$GREP -F" | |
5433 | else | |
5434 | if test -z "$FGREP"; then | |
5435 | ac_path_FGREP_found=false | |
5436 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5438 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
c52df125 AC |
5439 | do |
5440 | IFS=$as_save_IFS | |
5441 | test -z "$as_dir" && as_dir=. | |
eec2776c | 5442 | for ac_prog in fgrep; do |
c52df125 | 5443 | for ac_exec_ext in '' $ac_executable_extensions; do |
eec2776c AJ |
5444 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
5445 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5446 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5447 | # Check for GNU $ac_path_FGREP | |
5448 | case `"$ac_path_FGREP" --version 2>&1` in | |
5449 | *GNU*) | |
5450 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5451 | *) | |
5452 | ac_count=0 | |
5453 | $as_echo_n 0123456789 >"conftest.in" | |
5454 | while : | |
5455 | do | |
5456 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5457 | mv "conftest.tmp" "conftest.in" | |
5458 | cp "conftest.in" "conftest.nl" | |
5459 | $as_echo 'FGREP' >> "conftest.nl" | |
5460 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5461 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5462 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5463 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5464 | # Best one so far, save it but keep looking for a better one | |
5465 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5466 | ac_path_FGREP_max=$ac_count | |
5467 | fi | |
5468 | # 10*(2^10) chars as input seems more than enough | |
5469 | test $ac_count -gt 10 && break | |
c52df125 | 5470 | done |
eec2776c AJ |
5471 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5472 | esac | |
c52df125 | 5473 | |
eec2776c AJ |
5474 | $ac_path_FGREP_found && break 3 |
5475 | done | |
5476 | done | |
5477 | done | |
5478 | IFS=$as_save_IFS | |
5479 | if test -z "$ac_cv_path_FGREP"; then | |
5480 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5481 | fi | |
c52df125 | 5482 | else |
eec2776c | 5483 | ac_cv_path_FGREP=$FGREP |
c52df125 AC |
5484 | fi |
5485 | ||
eec2776c | 5486 | fi |
c52df125 | 5487 | fi |
eec2776c AJ |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5489 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5490 | FGREP="$ac_cv_path_FGREP" | |
c52df125 | 5491 | |
c52df125 | 5492 | |
eec2776c | 5493 | test -z "$GREP" && GREP=grep |
c52df125 AC |
5494 | |
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
c52df125 | 5502 | |
c52df125 | 5503 | |
c52df125 | 5504 | |
c52df125 | 5505 | |
c52df125 | 5506 | |
c52df125 | 5507 | |
c52df125 | 5508 | |
c52df125 | 5509 | |
c52df125 | 5510 | |
c52df125 | 5511 | |
c52df125 | 5512 | |
eec2776c AJ |
5513 | # Check whether --with-gnu-ld was given. |
5514 | if test "${with_gnu_ld+set}" = set; then : | |
5515 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5516 | else | |
5517 | with_gnu_ld=no | |
5518 | fi | |
c52df125 | 5519 | |
eec2776c AJ |
5520 | ac_prog=ld |
5521 | if test "$GCC" = yes; then | |
5522 | # Check if gcc -print-prog-name=ld gives a path. | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5524 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5525 | case $host in | |
5526 | *-*-mingw*) | |
5527 | # gcc leaves a trailing carriage return which upsets mingw | |
5528 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5529 | *) | |
5530 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
c52df125 | 5531 | esac |
eec2776c AJ |
5532 | case $ac_prog in |
5533 | # Accept absolute paths. | |
5534 | [\\/]* | ?:[\\/]*) | |
5535 | re_direlt='/[^/][^/]*/\.\./' | |
5536 | # Canonicalize the pathname of ld | |
5537 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5538 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5539 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5540 | done | |
5541 | test -z "$LD" && LD="$ac_prog" | |
5542 | ;; | |
5543 | "") | |
5544 | # If it fails, then pretend we aren't using GCC. | |
5545 | ac_prog=ld | |
c52df125 | 5546 | ;; |
eec2776c AJ |
5547 | *) |
5548 | # If it is relative, then search for the first ld in PATH. | |
5549 | with_gnu_ld=unknown | |
c52df125 AC |
5550 | ;; |
5551 | esac | |
eec2776c AJ |
5552 | elif test "$with_gnu_ld" = yes; then |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5554 | $as_echo_n "checking for GNU ld... " >&6; } | |
5555 | else | |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5557 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
c52df125 | 5558 | fi |
eec2776c AJ |
5559 | if ${lt_cv_path_LD+:} false; then : |
5560 | $as_echo_n "(cached) " >&6 | |
5561 | else | |
5562 | if test -z "$LD"; then | |
5563 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5564 | for ac_dir in $PATH; do | |
5565 | IFS="$lt_save_ifs" | |
5566 | test -z "$ac_dir" && ac_dir=. | |
5567 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5568 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5569 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5570 | # but apparently some variants of GNU ld only accept -v. | |
5571 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5572 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5573 | *GNU* | *'with BFD'*) | |
5574 | test "$with_gnu_ld" != no && break | |
5575 | ;; | |
5576 | *) | |
5577 | test "$with_gnu_ld" != yes && break | |
5578 | ;; | |
5579 | esac | |
c52df125 | 5580 | fi |
eec2776c AJ |
5581 | done |
5582 | IFS="$lt_save_ifs" | |
5583 | else | |
5584 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5585 | fi | |
c52df125 AC |
5586 | fi |
5587 | ||
eec2776c AJ |
5588 | LD="$lt_cv_path_LD" |
5589 | if test -n "$LD"; then | |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5591 | $as_echo "$LD" >&6; } | |
5592 | else | |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5594 | $as_echo "no" >&6; } | |
5595 | fi | |
5596 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5598 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5599 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5600 | $as_echo_n "(cached) " >&6 | |
5601 | else | |
5602 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5603 | case `$LD -v 2>&1 </dev/null` in | |
5604 | *GNU* | *'with BFD'*) | |
5605 | lt_cv_prog_gnu_ld=yes | |
5606 | ;; | |
5607 | *) | |
5608 | lt_cv_prog_gnu_ld=no | |
5609 | ;; | |
5610 | esac | |
5611 | fi | |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5613 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5614 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
c52df125 AC |
5615 | |
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
5623 | ||
eec2776c AJ |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5625 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5626 | if ${lt_cv_path_NM+:} false; then : | |
c52df125 AC |
5627 | $as_echo_n "(cached) " >&6 |
5628 | else | |
eec2776c AJ |
5629 | if test -n "$NM"; then |
5630 | # Let the user override the test. | |
5631 | lt_cv_path_NM="$NM" | |
c52df125 | 5632 | else |
eec2776c AJ |
5633 | lt_nm_to_check="${ac_tool_prefix}nm" |
5634 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5635 | lt_nm_to_check="$lt_nm_to_check nm" | |
c52df125 | 5636 | fi |
eec2776c AJ |
5637 | for lt_tmp_nm in $lt_nm_to_check; do |
5638 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5639 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5640 | IFS="$lt_save_ifs" | |
5641 | test -z "$ac_dir" && ac_dir=. | |
5642 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5643 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5644 | # Check to see if the nm accepts a BSD-compat flag. | |
5645 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5646 | # nm: unknown option "B" ignored | |
5647 | # Tru64's nm complains that /dev/null is an invalid object file | |
5648 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5649 | */dev/null* | *'Invalid file or object type'*) | |
5650 | lt_cv_path_NM="$tmp_nm -B" | |
5651 | break | |
5652 | ;; | |
5653 | *) | |
5654 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5655 | */dev/null*) | |
5656 | lt_cv_path_NM="$tmp_nm -p" | |
5657 | break | |
5658 | ;; | |
5659 | *) | |
5660 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5661 | continue # so that we can try to find one that supports BSD flags | |
5662 | ;; | |
5663 | esac | |
5664 | ;; | |
5665 | esac | |
5666 | fi | |
5667 | done | |
5668 | IFS="$lt_save_ifs" | |
c52df125 | 5669 | done |
eec2776c | 5670 | : ${lt_cv_path_NM=no} |
c52df125 AC |
5671 | fi |
5672 | fi | |
eec2776c AJ |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5674 | $as_echo "$lt_cv_path_NM" >&6; } | |
5675 | if test "$lt_cv_path_NM" != "no"; then | |
5676 | NM="$lt_cv_path_NM" | |
c52df125 | 5677 | else |
eec2776c AJ |
5678 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5679 | if test -n "$DUMPBIN"; then : | |
5680 | # Let the user override the test. | |
c52df125 | 5681 | else |
eec2776c AJ |
5682 | if test -n "$ac_tool_prefix"; then |
5683 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5684 | do |
5685 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5686 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5688 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5689 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
c52df125 AC |
5690 | $as_echo_n "(cached) " >&6 |
5691 | else | |
eec2776c AJ |
5692 | if test -n "$DUMPBIN"; then |
5693 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5694 | else |
5695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5696 | for as_dir in $PATH | |
5697 | do | |
5698 | IFS=$as_save_IFS | |
5699 | test -z "$as_dir" && as_dir=. | |
5700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5702 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5704 | break 2 | |
5705 | fi | |
5706 | done | |
5707 | done | |
5708 | IFS=$as_save_IFS | |
5709 | ||
5710 | fi | |
5711 | fi | |
eec2776c AJ |
5712 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5713 | if test -n "$DUMPBIN"; then | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5715 | $as_echo "$DUMPBIN" >&6; } | |
c52df125 AC |
5716 | else |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5718 | $as_echo "no" >&6; } | |
5719 | fi | |
5720 | ||
5721 | ||
eec2776c | 5722 | test -n "$DUMPBIN" && break |
c52df125 AC |
5723 | done |
5724 | fi | |
eec2776c AJ |
5725 | if test -z "$DUMPBIN"; then |
5726 | ac_ct_DUMPBIN=$DUMPBIN | |
5727 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5728 | do |
5729 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5730 | set dummy $ac_prog; ac_word=$2 | |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5732 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5733 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
c52df125 AC |
5734 | $as_echo_n "(cached) " >&6 |
5735 | else | |
eec2776c AJ |
5736 | if test -n "$ac_ct_DUMPBIN"; then |
5737 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5738 | else |
5739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5740 | for as_dir in $PATH | |
5741 | do | |
5742 | IFS=$as_save_IFS | |
5743 | test -z "$as_dir" && as_dir=. | |
5744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5746 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
c52df125 AC |
5747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5748 | break 2 | |
5749 | fi | |
5750 | done | |
5751 | done | |
5752 | IFS=$as_save_IFS | |
5753 | ||
5754 | fi | |
5755 | fi | |
eec2776c AJ |
5756 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5757 | if test -n "$ac_ct_DUMPBIN"; then | |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5759 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
c52df125 AC |
5760 | else |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5762 | $as_echo "no" >&6; } | |
5763 | fi | |
5764 | ||
5765 | ||
eec2776c | 5766 | test -n "$ac_ct_DUMPBIN" && break |
c52df125 AC |
5767 | done |
5768 | ||
eec2776c AJ |
5769 | if test "x$ac_ct_DUMPBIN" = x; then |
5770 | DUMPBIN=":" | |
c52df125 AC |
5771 | else |
5772 | case $cross_compiling:$ac_tool_warned in | |
5773 | yes:) | |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5775 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5776 | ac_tool_warned=yes ;; | |
5777 | esac | |
eec2776c | 5778 | DUMPBIN=$ac_ct_DUMPBIN |
c52df125 AC |
5779 | fi |
5780 | fi | |
5781 | ||
eec2776c AJ |
5782 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5783 | *COFF*) | |
5784 | DUMPBIN="$DUMPBIN -symbols" | |
5785 | ;; | |
5786 | *) | |
5787 | DUMPBIN=: | |
5788 | ;; | |
5789 | esac | |
5790 | fi | |
c52df125 | 5791 | |
eec2776c AJ |
5792 | if test "$DUMPBIN" != ":"; then |
5793 | NM="$DUMPBIN" | |
5794 | fi | |
5795 | fi | |
5796 | test -z "$NM" && NM=nm | |
c52df125 AC |
5797 | |
5798 | ||
5799 | ||
5800 | ||
5801 | ||
5802 | ||
eec2776c AJ |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5804 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5805 | if ${lt_cv_nm_interface+:} false; then : | |
c52df125 AC |
5806 | $as_echo_n "(cached) " >&6 |
5807 | else | |
eec2776c AJ |
5808 | lt_cv_nm_interface="BSD nm" |
5809 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5810 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5811 | (eval "$ac_compile" 2>conftest.err) | |
5812 | cat conftest.err >&5 | |
5813 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5814 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5815 | cat conftest.err >&5 | |
5816 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5817 | cat conftest.out >&5 | |
5818 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5819 | lt_cv_nm_interface="MS dumpbin" | |
5820 | fi | |
5821 | rm -f conftest* | |
c52df125 | 5822 | fi |
eec2776c AJ |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5824 | $as_echo "$lt_cv_nm_interface" >&6; } | |
c52df125 | 5825 | |
eec2776c AJ |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5827 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5828 | LN_S=$as_ln_s | |
5829 | if test "$LN_S" = "ln -s"; then | |
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5831 | $as_echo "yes" >&6; } | |
5832 | else | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5834 | $as_echo "no, using $LN_S" >&6; } | |
c52df125 | 5835 | fi |
c52df125 | 5836 | |
eec2776c AJ |
5837 | # find the maximum length of command line arguments |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5839 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5840 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5841 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5842 | else |
eec2776c AJ |
5843 | i=0 |
5844 | teststring="ABCD" | |
c52df125 | 5845 | |
eec2776c AJ |
5846 | case $build_os in |
5847 | msdosdjgpp*) | |
5848 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5849 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5850 | # during glob expansion). Even if it were fixed, the result of this | |
5851 | # check would be larger than it should be. | |
5852 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5853 | ;; | |
c52df125 | 5854 | |
eec2776c AJ |
5855 | gnu*) |
5856 | # Under GNU Hurd, this test is not required because there is | |
5857 | # no limit to the length of command line arguments. | |
5858 | # Libtool will interpret -1 as no limit whatsoever | |
5859 | lt_cv_sys_max_cmd_len=-1; | |
5860 | ;; | |
c52df125 | 5861 | |
eec2776c AJ |
5862 | cygwin* | mingw* | cegcc*) |
5863 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5864 | # about 5 minutes as the teststring grows exponentially. | |
5865 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5866 | # you end up with a "frozen" computer, even though with patience | |
5867 | # the test eventually succeeds (with a max line length of 256k). | |
5868 | # Instead, let's just punt: use the minimum linelength reported by | |
5869 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5870 | lt_cv_sys_max_cmd_len=8192; | |
5871 | ;; | |
c52df125 | 5872 | |
eec2776c AJ |
5873 | mint*) |
5874 | # On MiNT this can take a long time and run out of memory. | |
5875 | lt_cv_sys_max_cmd_len=8192; | |
5876 | ;; | |
c52df125 | 5877 | |
eec2776c AJ |
5878 | amigaos*) |
5879 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5880 | # So we just punt and use a minimum line length of 8192. | |
5881 | lt_cv_sys_max_cmd_len=8192; | |
5882 | ;; | |
c52df125 | 5883 | |
eec2776c AJ |
5884 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5885 | # This has been around since 386BSD, at least. Likely further. | |
5886 | if test -x /sbin/sysctl; then | |
5887 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5888 | elif test -x /usr/sbin/sysctl; then | |
5889 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5890 | else | |
5891 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5892 | fi | |
5893 | # And add a safety zone | |
5894 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5895 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5896 | ;; | |
c52df125 | 5897 | |
eec2776c AJ |
5898 | interix*) |
5899 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5900 | lt_cv_sys_max_cmd_len=196608 | |
5901 | ;; | |
c52df125 | 5902 | |
eec2776c AJ |
5903 | os2*) |
5904 | # The test takes a long time on OS/2. | |
5905 | lt_cv_sys_max_cmd_len=8192 | |
5906 | ;; | |
c52df125 | 5907 | |
eec2776c AJ |
5908 | osf*) |
5909 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5910 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5911 | # nice to cause kernel panics so lets avoid the loop below. | |
5912 | # First set a reasonable default. | |
5913 | lt_cv_sys_max_cmd_len=16384 | |
5914 | # | |
5915 | if test -x /sbin/sysconfig; then | |
5916 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5917 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5918 | esac | |
5919 | fi | |
5920 | ;; | |
5921 | sco3.2v5*) | |
5922 | lt_cv_sys_max_cmd_len=102400 | |
5923 | ;; | |
5924 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5925 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5926 | if test -n "$kargmax"; then | |
5927 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5928 | else | |
5929 | lt_cv_sys_max_cmd_len=32768 | |
5930 | fi | |
5931 | ;; | |
5932 | *) | |
5933 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5934 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5935 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5936 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5937 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5938 | else | |
5939 | # Make teststring a little bigger before we do anything with it. | |
5940 | # a 1K string should be a reasonable start. | |
5941 | for i in 1 2 3 4 5 6 7 8 ; do | |
5942 | teststring=$teststring$teststring | |
5943 | done | |
5944 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5945 | # If test is not a shell built-in, we'll probably end up computing a | |
5946 | # maximum length that is only half of the actual maximum length, but | |
5947 | # we can't tell. | |
5948 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5949 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5950 | test $i != 17 # 1/2 MB should be enough | |
5951 | do | |
5952 | i=`expr $i + 1` | |
5953 | teststring=$teststring$teststring | |
5954 | done | |
5955 | # Only check the string length outside the loop. | |
5956 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5957 | teststring= | |
5958 | # Add a significant safety factor because C++ compilers can tack on | |
5959 | # massive amounts of additional arguments before passing them to the | |
5960 | # linker. It appears as though 1/2 is a usable value. | |
5961 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5962 | fi | |
5963 | ;; | |
5964 | esac | |
c52df125 AC |
5965 | |
5966 | fi | |
c52df125 | 5967 | |
eec2776c AJ |
5968 | if test -n $lt_cv_sys_max_cmd_len ; then |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5970 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
c52df125 | 5971 | else |
eec2776c AJ |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5973 | $as_echo "none" >&6; } | |
c52df125 | 5974 | fi |
eec2776c | 5975 | max_cmd_len=$lt_cv_sys_max_cmd_len |
c52df125 | 5976 | |
eec2776c AJ |
5977 | |
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | : ${CP="cp -f"} | |
5983 | : ${MV="mv -f"} | |
5984 | : ${RM="rm -f"} | |
5985 | ||
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5987 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5988 | # Try some XSI features | |
5989 | xsi_shell=no | |
5990 | ( _lt_dummy="a/b/c" | |
5991 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5992 | = c,a/b,b/c, \ | |
5993 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5994 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5995 | && xsi_shell=yes | |
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5997 | $as_echo "$xsi_shell" >&6; } | |
5998 | ||
5999 | ||
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6001 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6002 | lt_shell_append=no | |
6003 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6004 | >/dev/null 2>&1 \ | |
6005 | && lt_shell_append=yes | |
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6007 | $as_echo "$lt_shell_append" >&6; } | |
6008 | ||
6009 | ||
6010 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6011 | lt_unset=unset | |
6012 | else | |
6013 | lt_unset=false | |
6014 | fi | |
6015 | ||
6016 | ||
6017 | ||
6018 | ||
6019 | ||
6020 | # test EBCDIC or ASCII | |
6021 | case `echo X|tr X '\101'` in | |
6022 | A) # ASCII based system | |
6023 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6024 | lt_SP2NL='tr \040 \012' | |
6025 | lt_NL2SP='tr \015\012 \040\040' | |
6026 | ;; | |
6027 | *) # EBCDIC based system | |
6028 | lt_SP2NL='tr \100 \n' | |
6029 | lt_NL2SP='tr \r\n \100\100' | |
6030 | ;; | |
c52df125 | 6031 | esac |
eec2776c AJ |
6032 | |
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6042 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6043 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6044 | $as_echo_n "(cached) " >&6 | |
c52df125 | 6045 | else |
eec2776c AJ |
6046 | case $host in |
6047 | *-*-mingw* ) | |
6048 | case $build in | |
6049 | *-*-mingw* ) # actually msys | |
6050 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6051 | ;; | |
6052 | *-*-cygwin* ) | |
6053 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6054 | ;; | |
6055 | * ) # otherwise, assume *nix | |
6056 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6057 | ;; | |
6058 | esac | |
6059 | ;; | |
6060 | *-*-cygwin* ) | |
6061 | case $build in | |
6062 | *-*-mingw* ) # actually msys | |
6063 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6064 | ;; | |
6065 | *-*-cygwin* ) | |
6066 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6067 | ;; | |
6068 | * ) # otherwise, assume *nix | |
6069 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6070 | ;; | |
6071 | esac | |
6072 | ;; | |
6073 | * ) # unhandled hosts (and "normal" native builds) | |
6074 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6075 | ;; | |
6076 | esac | |
6077 | ||
c52df125 AC |
6078 | fi |
6079 | ||
eec2776c AJ |
6080 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6082 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6083 | ||
6084 | ||
6085 | ||
6086 | ||
6087 | ||
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6089 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6090 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6091 | $as_echo_n "(cached) " >&6 | |
6092 | else | |
6093 | #assume ordinary cross tools, or native build. | |
6094 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6095 | case $host in | |
6096 | *-*-mingw* ) | |
6097 | case $build in | |
6098 | *-*-mingw* ) # actually msys | |
6099 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6100 | ;; | |
6101 | esac | |
6102 | ;; | |
6103 | esac | |
6104 | ||
6105 | fi | |
6106 | ||
6107 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6109 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6116 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6117 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6118 | $as_echo_n "(cached) " >&6 | |
6119 | else | |
6120 | lt_cv_ld_reload_flag='-r' | |
6121 | fi | |
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6123 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6124 | reload_flag=$lt_cv_ld_reload_flag | |
6125 | case $reload_flag in | |
6126 | "" | " "*) ;; | |
6127 | *) reload_flag=" $reload_flag" ;; | |
6128 | esac | |
6129 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6130 | case $host_os in | |
6131 | cygwin* | mingw* | pw32* | cegcc*) | |
6132 | if test "$GCC" != yes; then | |
6133 | reload_cmds=false | |
6134 | fi | |
6135 | ;; | |
6136 | darwin*) | |
6137 | if test "$GCC" = yes; then | |
6138 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6139 | else | |
6140 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6141 | fi | |
6142 | ;; | |
6143 | esac | |
6144 | ||
6145 | ||
6146 | ||
c52df125 AC |
6147 | |
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6154 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6155 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
c52df125 AC |
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6157 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6158 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
c52df125 AC |
6159 | $as_echo_n "(cached) " >&6 |
6160 | else | |
eec2776c AJ |
6161 | if test -n "$OBJDUMP"; then |
6162 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6163 | else |
6164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6165 | for as_dir in $PATH | |
6166 | do | |
6167 | IFS=$as_save_IFS | |
6168 | test -z "$as_dir" && as_dir=. | |
6169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6171 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
c52df125 AC |
6172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6173 | break 2 | |
6174 | fi | |
6175 | done | |
6176 | done | |
6177 | IFS=$as_save_IFS | |
6178 | ||
6179 | fi | |
6180 | fi | |
eec2776c AJ |
6181 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6182 | if test -n "$OBJDUMP"; then | |
6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6184 | $as_echo "$OBJDUMP" >&6; } | |
c52df125 AC |
6185 | else |
6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6187 | $as_echo "no" >&6; } | |
6188 | fi | |
6189 | ||
6190 | ||
6191 | fi | |
eec2776c AJ |
6192 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6193 | ac_ct_OBJDUMP=$OBJDUMP | |
6194 | # Extract the first word of "objdump", so it can be a program name with args. | |
6195 | set dummy objdump; ac_word=$2 | |
c52df125 AC |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6197 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6198 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
c52df125 AC |
6199 | $as_echo_n "(cached) " >&6 |
6200 | else | |
eec2776c AJ |
6201 | if test -n "$ac_ct_OBJDUMP"; then |
6202 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6203 | else |
6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6205 | for as_dir in $PATH | |
6206 | do | |
6207 | IFS=$as_save_IFS | |
6208 | test -z "$as_dir" && as_dir=. | |
6209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6211 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
c52df125 AC |
6212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6213 | break 2 | |
6214 | fi | |
6215 | done | |
6216 | done | |
6217 | IFS=$as_save_IFS | |
6218 | ||
6219 | fi | |
6220 | fi | |
eec2776c AJ |
6221 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6222 | if test -n "$ac_ct_OBJDUMP"; then | |
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6224 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
c52df125 AC |
6225 | else |
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6227 | $as_echo "no" >&6; } | |
6228 | fi | |
6229 | ||
eec2776c AJ |
6230 | if test "x$ac_ct_OBJDUMP" = x; then |
6231 | OBJDUMP="false" | |
c52df125 AC |
6232 | else |
6233 | case $cross_compiling:$ac_tool_warned in | |
6234 | yes:) | |
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6236 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6237 | ac_tool_warned=yes ;; | |
6238 | esac | |
eec2776c | 6239 | OBJDUMP=$ac_ct_OBJDUMP |
c52df125 AC |
6240 | fi |
6241 | else | |
eec2776c | 6242 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
c52df125 AC |
6243 | fi |
6244 | ||
eec2776c | 6245 | test -z "$OBJDUMP" && OBJDUMP=objdump |
c52df125 AC |
6246 | |
6247 | ||
c52df125 | 6248 | |
c52df125 | 6249 | |
c52df125 AC |
6250 | |
6251 | ||
6252 | ||
6253 | ||
6254 | ||
eec2776c AJ |
6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6256 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6257 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6258 | $as_echo_n "(cached) " >&6 | |
6259 | else | |
6260 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6261 | lt_cv_file_magic_test_file= | |
6262 | lt_cv_deplibs_check_method='unknown' | |
6263 | # Need to set the preceding variable on all platforms that support | |
6264 | # interlibrary dependencies. | |
6265 | # 'none' -- dependencies not supported. | |
6266 | # `unknown' -- same as none, but documents that we really don't know. | |
6267 | # 'pass_all' -- all dependencies passed with no checks. | |
6268 | # 'test_compile' -- check by making test program. | |
6269 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6270 | # which responds to the $file_magic_cmd with a given extended regex. | |
6271 | # If you have `file' or equivalent on your system and you're not sure | |
6272 | # whether `pass_all' will *always* work, you probably want this one. | |
c52df125 | 6273 | |
eec2776c AJ |
6274 | case $host_os in |
6275 | aix[4-9]*) | |
6276 | lt_cv_deplibs_check_method=pass_all | |
6277 | ;; | |
c52df125 | 6278 | |
eec2776c AJ |
6279 | beos*) |
6280 | lt_cv_deplibs_check_method=pass_all | |
6281 | ;; | |
c52df125 | 6282 | |
eec2776c AJ |
6283 | bsdi[45]*) |
6284 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6285 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6286 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6287 | ;; | |
c52df125 | 6288 | |
eec2776c AJ |
6289 | cygwin*) |
6290 | # func_win32_libid is a shell function defined in ltmain.sh | |
6291 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6292 | lt_cv_file_magic_cmd='func_win32_libid' | |
6293 | ;; | |
c52df125 | 6294 | |
eec2776c AJ |
6295 | mingw* | pw32*) |
6296 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6297 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6298 | # unless we find 'file', for example because we are cross-compiling. | |
6299 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6300 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6301 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6302 | lt_cv_file_magic_cmd='func_win32_libid' | |
6303 | else | |
6304 | # Keep this pattern in sync with the one in func_win32_libid. | |
6305 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6306 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6307 | fi | |
6308 | ;; | |
c52df125 | 6309 | |
eec2776c AJ |
6310 | cegcc*) |
6311 | # use the weaker test based on 'objdump'. See mingw*. | |
6312 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6313 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6314 | ;; | |
c52df125 | 6315 | |
eec2776c AJ |
6316 | darwin* | rhapsody*) |
6317 | lt_cv_deplibs_check_method=pass_all | |
6318 | ;; | |
c52df125 | 6319 | |
eec2776c AJ |
6320 | freebsd* | dragonfly*) |
6321 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6322 | case $host_cpu in | |
6323 | i*86 ) | |
6324 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6325 | # Let's accept both of them until this is cleared up. | |
6326 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6327 | lt_cv_file_magic_cmd=/usr/bin/file | |
6328 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6329 | ;; | |
6330 | esac | |
6331 | else | |
6332 | lt_cv_deplibs_check_method=pass_all | |
6333 | fi | |
6334 | ;; | |
c52df125 | 6335 | |
eec2776c AJ |
6336 | haiku*) |
6337 | lt_cv_deplibs_check_method=pass_all | |
6338 | ;; | |
c52df125 | 6339 | |
eec2776c AJ |
6340 | hpux10.20* | hpux11*) |
6341 | lt_cv_file_magic_cmd=/usr/bin/file | |
6342 | case $host_cpu in | |
6343 | ia64*) | |
6344 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6345 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6346 | ;; | |
6347 | hppa*64*) | |
6348 | 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]' | |
6349 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6350 | ;; | |
6351 | *) | |
6352 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6353 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6354 | ;; | |
6355 | esac | |
6356 | ;; | |
c52df125 | 6357 | |
eec2776c AJ |
6358 | interix[3-9]*) |
6359 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6360 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6361 | ;; | |
c52df125 | 6362 | |
eec2776c AJ |
6363 | irix5* | irix6* | nonstopux*) |
6364 | case $LD in | |
6365 | *-32|*"-32 ") libmagic=32-bit;; | |
6366 | *-n32|*"-n32 ") libmagic=N32;; | |
6367 | *-64|*"-64 ") libmagic=64-bit;; | |
6368 | *) libmagic=never-match;; | |
6369 | esac | |
6370 | lt_cv_deplibs_check_method=pass_all | |
6371 | ;; | |
c52df125 | 6372 | |
eec2776c AJ |
6373 | # This must be glibc/ELF. |
6374 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6375 | lt_cv_deplibs_check_method=pass_all | |
6376 | ;; | |
c52df125 | 6377 | |
eec2776c AJ |
6378 | netbsd* | netbsdelf*-gnu) |
6379 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6380 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6381 | else | |
6382 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6383 | fi | |
6384 | ;; | |
c52df125 | 6385 | |
eec2776c AJ |
6386 | newos6*) |
6387 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6388 | lt_cv_file_magic_cmd=/usr/bin/file | |
6389 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6390 | ;; | |
c52df125 | 6391 | |
eec2776c AJ |
6392 | *nto* | *qnx*) |
6393 | lt_cv_deplibs_check_method=pass_all | |
6394 | ;; | |
c52df125 | 6395 | |
eec2776c AJ |
6396 | openbsd*) |
6397 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6398 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6399 | else | |
6400 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6401 | fi | |
6402 | ;; | |
c52df125 | 6403 | |
eec2776c AJ |
6404 | osf3* | osf4* | osf5*) |
6405 | lt_cv_deplibs_check_method=pass_all | |
6406 | ;; | |
c52df125 | 6407 | |
eec2776c AJ |
6408 | rdos*) |
6409 | lt_cv_deplibs_check_method=pass_all | |
6410 | ;; | |
c52df125 | 6411 | |
eec2776c AJ |
6412 | solaris*) |
6413 | lt_cv_deplibs_check_method=pass_all | |
6414 | ;; | |
c52df125 | 6415 | |
eec2776c AJ |
6416 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6417 | lt_cv_deplibs_check_method=pass_all | |
6418 | ;; | |
c52df125 | 6419 | |
eec2776c AJ |
6420 | sysv4 | sysv4.3*) |
6421 | case $host_vendor in | |
6422 | motorola) | |
6423 | 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]' | |
6424 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6425 | ;; | |
6426 | ncr) | |
6427 | lt_cv_deplibs_check_method=pass_all | |
6428 | ;; | |
6429 | sequent) | |
6430 | lt_cv_file_magic_cmd='/bin/file' | |
6431 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6432 | ;; | |
6433 | sni) | |
6434 | lt_cv_file_magic_cmd='/bin/file' | |
6435 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6436 | lt_cv_file_magic_test_file=/lib/libc.so | |
6437 | ;; | |
6438 | siemens) | |
6439 | lt_cv_deplibs_check_method=pass_all | |
6440 | ;; | |
6441 | pc) | |
6442 | lt_cv_deplibs_check_method=pass_all | |
6443 | ;; | |
6444 | esac | |
6445 | ;; | |
c52df125 | 6446 | |
eec2776c AJ |
6447 | tpf*) |
6448 | lt_cv_deplibs_check_method=pass_all | |
6449 | ;; | |
6450 | esac | |
c52df125 | 6451 | |
eec2776c AJ |
6452 | fi |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6454 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
c52df125 | 6455 | |
eec2776c AJ |
6456 | file_magic_glob= |
6457 | want_nocaseglob=no | |
6458 | if test "$build" = "$host"; then | |
6459 | case $host_os in | |
6460 | mingw* | pw32*) | |
6461 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6462 | want_nocaseglob=yes | |
6463 | else | |
6464 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6465 | fi | |
6466 | ;; | |
6467 | esac | |
6468 | fi | |
c52df125 | 6469 | |
eec2776c AJ |
6470 | file_magic_cmd=$lt_cv_file_magic_cmd |
6471 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6472 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
c52df125 AC |
6473 | |
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
c52df125 | 6481 | |
c52df125 | 6482 | |
c52df125 AC |
6483 | |
6484 | ||
c52df125 | 6485 | |
c52df125 | 6486 | |
c52df125 | 6487 | |
c52df125 | 6488 | |
c52df125 | 6489 | |
c52df125 | 6490 | |
c52df125 | 6491 | |
c52df125 | 6492 | |
c52df125 | 6493 | |
c52df125 | 6494 | |
eec2776c AJ |
6495 | if test -n "$ac_tool_prefix"; then |
6496 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6497 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6499 | $as_echo_n "checking for $ac_word... " >&6; } | |
6500 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6501 | $as_echo_n "(cached) " >&6 | |
6502 | else | |
6503 | if test -n "$DLLTOOL"; then | |
6504 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6505 | else | |
6506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6507 | for as_dir in $PATH | |
6508 | do | |
6509 | IFS=$as_save_IFS | |
6510 | test -z "$as_dir" && as_dir=. | |
6511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6513 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6515 | break 2 | |
c52df125 | 6516 | fi |
eec2776c AJ |
6517 | done |
6518 | done | |
6519 | IFS=$as_save_IFS | |
c52df125 | 6520 | |
eec2776c AJ |
6521 | fi |
6522 | fi | |
6523 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6524 | if test -n "$DLLTOOL"; then | |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6526 | $as_echo "$DLLTOOL" >&6; } | |
6527 | else | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6529 | $as_echo "no" >&6; } | |
6530 | fi | |
c52df125 | 6531 | |
c52df125 | 6532 | |
eec2776c AJ |
6533 | fi |
6534 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6535 | ac_ct_DLLTOOL=$DLLTOOL | |
6536 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6537 | set dummy dlltool; ac_word=$2 | |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6539 | $as_echo_n "checking for $ac_word... " >&6; } | |
6540 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6541 | $as_echo_n "(cached) " >&6 | |
6542 | else | |
6543 | if test -n "$ac_ct_DLLTOOL"; then | |
6544 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6545 | else | |
6546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6547 | for as_dir in $PATH | |
6548 | do | |
6549 | IFS=$as_save_IFS | |
6550 | test -z "$as_dir" && as_dir=. | |
6551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6553 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6555 | break 2 | |
c52df125 AC |
6556 | fi |
6557 | done | |
eec2776c AJ |
6558 | done |
6559 | IFS=$as_save_IFS | |
c52df125 AC |
6560 | |
6561 | fi | |
c52df125 | 6562 | fi |
eec2776c AJ |
6563 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6564 | if test -n "$ac_ct_DLLTOOL"; then | |
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6566 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
c52df125 | 6567 | else |
eec2776c AJ |
6568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6569 | $as_echo "no" >&6; } | |
c52df125 AC |
6570 | fi |
6571 | ||
eec2776c AJ |
6572 | if test "x$ac_ct_DLLTOOL" = x; then |
6573 | DLLTOOL="false" | |
6574 | else | |
6575 | case $cross_compiling:$ac_tool_warned in | |
6576 | yes:) | |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6578 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6579 | ac_tool_warned=yes ;; | |
6580 | esac | |
6581 | DLLTOOL=$ac_ct_DLLTOOL | |
6582 | fi | |
6583 | else | |
6584 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
c52df125 AC |
6585 | fi |
6586 | ||
eec2776c | 6587 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
c52df125 AC |
6588 | |
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
eec2776c AJ |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
6599 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6600 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6601 | $as_echo_n "(cached) " >&6 | |
6602 | else | |
6603 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
c52df125 | 6604 | |
eec2776c AJ |
6605 | case $host_os in |
6606 | cygwin* | mingw* | pw32* | cegcc*) | |
6607 | # two different shell functions defined in ltmain.sh | |
6608 | # decide which to use based on capabilities of $DLLTOOL | |
6609 | case `$DLLTOOL --help 2>&1` in | |
6610 | *--identify-strict*) | |
6611 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6612 | ;; | |
6613 | *) | |
6614 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6615 | ;; | |
6616 | esac | |
6617 | ;; | |
6618 | *) | |
6619 | # fallback: assume linklib IS sharedlib | |
6620 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6621 | ;; | |
6622 | esac | |
c52df125 | 6623 | |
eec2776c AJ |
6624 | fi |
6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6626 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6627 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6628 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
c52df125 AC |
6629 | |
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | ||
eec2776c AJ |
6636 | if test -n "$ac_tool_prefix"; then |
6637 | for ac_prog in ar | |
6638 | do | |
6639 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6640 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6642 | $as_echo_n "checking for $ac_word... " >&6; } | |
6643 | if ${ac_cv_prog_AR+:} false; then : | |
6644 | $as_echo_n "(cached) " >&6 | |
6645 | else | |
6646 | if test -n "$AR"; then | |
6647 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6648 | else | |
6649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6650 | for as_dir in $PATH | |
6651 | do | |
6652 | IFS=$as_save_IFS | |
6653 | test -z "$as_dir" && as_dir=. | |
6654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6656 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6658 | break 2 | |
6659 | fi | |
6660 | done | |
6661 | done | |
6662 | IFS=$as_save_IFS | |
c52df125 | 6663 | |
eec2776c AJ |
6664 | fi |
6665 | fi | |
6666 | AR=$ac_cv_prog_AR | |
6667 | if test -n "$AR"; then | |
6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6669 | $as_echo "$AR" >&6; } | |
6670 | else | |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6672 | $as_echo "no" >&6; } | |
6673 | fi | |
c52df125 AC |
6674 | |
6675 | ||
eec2776c AJ |
6676 | test -n "$AR" && break |
6677 | done | |
6678 | fi | |
6679 | if test -z "$AR"; then | |
6680 | ac_ct_AR=$AR | |
6681 | for ac_prog in ar | |
6682 | do | |
6683 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6684 | set dummy $ac_prog; ac_word=$2 | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6686 | $as_echo_n "checking for $ac_word... " >&6; } | |
6687 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6688 | $as_echo_n "(cached) " >&6 | |
6689 | else | |
6690 | if test -n "$ac_ct_AR"; then | |
6691 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6692 | else | |
6693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6694 | for as_dir in $PATH | |
6695 | do | |
6696 | IFS=$as_save_IFS | |
6697 | test -z "$as_dir" && as_dir=. | |
6698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6700 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6702 | break 2 | |
6703 | fi | |
6704 | done | |
6705 | done | |
6706 | IFS=$as_save_IFS | |
c52df125 | 6707 | |
eec2776c AJ |
6708 | fi |
6709 | fi | |
6710 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6711 | if test -n "$ac_ct_AR"; then | |
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6713 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 | 6714 | else |
eec2776c AJ |
6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6716 | $as_echo "no" >&6; } | |
c52df125 AC |
6717 | fi |
6718 | ||
6719 | ||
eec2776c AJ |
6720 | test -n "$ac_ct_AR" && break |
6721 | done | |
6722 | ||
6723 | if test "x$ac_ct_AR" = x; then | |
6724 | AR="false" | |
6725 | else | |
6726 | case $cross_compiling:$ac_tool_warned in | |
6727 | yes:) | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6730 | ac_tool_warned=yes ;; | |
c52df125 | 6731 | esac |
eec2776c AJ |
6732 | AR=$ac_ct_AR |
6733 | fi | |
6734 | fi | |
c52df125 | 6735 | |
eec2776c AJ |
6736 | : ${AR=ar} |
6737 | : ${AR_FLAGS=cru} | |
c52df125 AC |
6738 | |
6739 | ||
6740 | ||
6741 | ||
6742 | ||
c52df125 | 6743 | |
c52df125 | 6744 | |
eec2776c AJ |
6745 | |
6746 | ||
6747 | ||
6748 | ||
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6750 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6751 | if ${lt_cv_ar_at_file+:} false; then : | |
6752 | $as_echo_n "(cached) " >&6 | |
6753 | else | |
6754 | lt_cv_ar_at_file=no | |
6755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6756 | /* end confdefs.h. */ | |
6757 | ||
6758 | int | |
6759 | main () | |
6760 | { | |
6761 | ||
6762 | ; | |
6763 | return 0; | |
6764 | } | |
6765 | _ACEOF | |
6766 | if ac_fn_c_try_compile "$LINENO"; then : | |
6767 | echo conftest.$ac_objext > conftest.lst | |
6768 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6769 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6770 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6771 | ac_status=$? |
6772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6773 | test $ac_status = 0; } |
6774 | if test "$ac_status" -eq 0; then | |
6775 | # Ensure the archiver fails upon bogus file names. | |
6776 | rm -f conftest.$ac_objext libconftest.a | |
6777 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6778 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6779 | ac_status=$? |
6780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6781 | test $ac_status = 0; } |
6782 | if test "$ac_status" -ne 0; then | |
6783 | lt_cv_ar_at_file=@ | |
6784 | fi | |
6785 | fi | |
6786 | rm -f conftest.* libconftest.a | |
c52df125 | 6787 | |
eec2776c AJ |
6788 | fi |
6789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c52df125 | 6790 | |
eec2776c AJ |
6791 | fi |
6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6793 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6794 | ||
6795 | if test "x$lt_cv_ar_at_file" = xno; then | |
6796 | archiver_list_spec= | |
c52df125 | 6797 | else |
eec2776c AJ |
6798 | archiver_list_spec=$lt_cv_ar_at_file |
6799 | fi | |
6800 | ||
c52df125 | 6801 | |
c52df125 | 6802 | |
c52df125 | 6803 | |
c52df125 | 6804 | |
c52df125 | 6805 | |
c52df125 AC |
6806 | |
6807 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6808 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6809 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
c52df125 AC |
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6811 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6812 | if ${ac_cv_prog_STRIP+:} false; then : |
c52df125 AC |
6813 | $as_echo_n "(cached) " >&6 |
6814 | else | |
eec2776c AJ |
6815 | if test -n "$STRIP"; then |
6816 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
c52df125 AC |
6817 | else |
6818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6819 | for as_dir in $PATH | |
6820 | do | |
6821 | IFS=$as_save_IFS | |
6822 | test -z "$as_dir" && as_dir=. | |
6823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6825 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
c52df125 AC |
6826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6827 | break 2 | |
6828 | fi | |
6829 | done | |
6830 | done | |
6831 | IFS=$as_save_IFS | |
6832 | ||
6833 | fi | |
6834 | fi | |
eec2776c AJ |
6835 | STRIP=$ac_cv_prog_STRIP |
6836 | if test -n "$STRIP"; then | |
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6838 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
6839 | else |
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6841 | $as_echo "no" >&6; } | |
6842 | fi | |
6843 | ||
6844 | ||
6845 | fi | |
eec2776c AJ |
6846 | if test -z "$ac_cv_prog_STRIP"; then |
6847 | ac_ct_STRIP=$STRIP | |
6848 | # Extract the first word of "strip", so it can be a program name with args. | |
6849 | set dummy strip; ac_word=$2 | |
c52df125 AC |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6851 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6852 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c52df125 AC |
6853 | $as_echo_n "(cached) " >&6 |
6854 | else | |
eec2776c AJ |
6855 | if test -n "$ac_ct_STRIP"; then |
6856 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
c52df125 AC |
6857 | else |
6858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6859 | for as_dir in $PATH | |
6860 | do | |
6861 | IFS=$as_save_IFS | |
6862 | test -z "$as_dir" && as_dir=. | |
6863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6865 | ac_cv_prog_ac_ct_STRIP="strip" |
c52df125 AC |
6866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6867 | break 2 | |
6868 | fi | |
6869 | done | |
6870 | done | |
6871 | IFS=$as_save_IFS | |
6872 | ||
6873 | fi | |
6874 | fi | |
eec2776c AJ |
6875 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6876 | if test -n "$ac_ct_STRIP"; then | |
6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6878 | $as_echo "$ac_ct_STRIP" >&6; } | |
c52df125 AC |
6879 | else |
6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6881 | $as_echo "no" >&6; } | |
6882 | fi | |
6883 | ||
eec2776c AJ |
6884 | if test "x$ac_ct_STRIP" = x; then |
6885 | STRIP=":" | |
c52df125 AC |
6886 | else |
6887 | case $cross_compiling:$ac_tool_warned in | |
6888 | yes:) | |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6891 | ac_tool_warned=yes ;; | |
6892 | esac | |
eec2776c | 6893 | STRIP=$ac_ct_STRIP |
c52df125 AC |
6894 | fi |
6895 | else | |
eec2776c | 6896 | STRIP="$ac_cv_prog_STRIP" |
c52df125 AC |
6897 | fi |
6898 | ||
eec2776c | 6899 | test -z "$STRIP" && STRIP=: |
c52df125 AC |
6900 | |
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | ||
eec2776c AJ |
6906 | if test -n "$ac_tool_prefix"; then |
6907 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6908 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
c52df125 AC |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6910 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6911 | if ${ac_cv_prog_RANLIB+:} false; then : |
c52df125 AC |
6912 | $as_echo_n "(cached) " >&6 |
6913 | else | |
eec2776c AJ |
6914 | if test -n "$RANLIB"; then |
6915 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c52df125 AC |
6916 | else |
6917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6918 | for as_dir in $PATH | |
6919 | do | |
6920 | IFS=$as_save_IFS | |
6921 | test -z "$as_dir" && as_dir=. | |
6922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6924 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
c52df125 AC |
6925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6926 | break 2 | |
6927 | fi | |
6928 | done | |
6929 | done | |
6930 | IFS=$as_save_IFS | |
6931 | ||
6932 | fi | |
6933 | fi | |
eec2776c AJ |
6934 | RANLIB=$ac_cv_prog_RANLIB |
6935 | if test -n "$RANLIB"; then | |
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6937 | $as_echo "$RANLIB" >&6; } | |
c52df125 AC |
6938 | else |
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6940 | $as_echo "no" >&6; } | |
6941 | fi | |
6942 | ||
6943 | ||
6944 | fi | |
eec2776c AJ |
6945 | if test -z "$ac_cv_prog_RANLIB"; then |
6946 | ac_ct_RANLIB=$RANLIB | |
6947 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6948 | set dummy ranlib; ac_word=$2 | |
c52df125 AC |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6950 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6951 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
c52df125 AC |
6952 | $as_echo_n "(cached) " >&6 |
6953 | else | |
eec2776c AJ |
6954 | if test -n "$ac_ct_RANLIB"; then |
6955 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
c52df125 AC |
6956 | else |
6957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6958 | for as_dir in $PATH | |
6959 | do | |
6960 | IFS=$as_save_IFS | |
6961 | test -z "$as_dir" && as_dir=. | |
6962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6964 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
c52df125 AC |
6965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6966 | break 2 | |
6967 | fi | |
6968 | done | |
6969 | done | |
6970 | IFS=$as_save_IFS | |
6971 | ||
6972 | fi | |
6973 | fi | |
eec2776c AJ |
6974 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6975 | if test -n "$ac_ct_RANLIB"; then | |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6977 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6978 | else | |
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
c52df125 AC |
6980 | $as_echo "no" >&6; } |
6981 | fi | |
6982 | ||
eec2776c AJ |
6983 | if test "x$ac_ct_RANLIB" = x; then |
6984 | RANLIB=":" | |
c52df125 AC |
6985 | else |
6986 | case $cross_compiling:$ac_tool_warned in | |
6987 | yes:) | |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6990 | ac_tool_warned=yes ;; | |
6991 | esac | |
eec2776c | 6992 | RANLIB=$ac_ct_RANLIB |
c52df125 AC |
6993 | fi |
6994 | else | |
eec2776c | 6995 | RANLIB="$ac_cv_prog_RANLIB" |
c52df125 AC |
6996 | fi |
6997 | ||
eec2776c | 6998 | test -z "$RANLIB" && RANLIB=: |
c52df125 | 6999 | |
c52df125 AC |
7000 | |
7001 | ||
c52df125 | 7002 | |
eec2776c AJ |
7003 | |
7004 | ||
7005 | # Determine commands to create old-style static archives. | |
7006 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7007 | old_postinstall_cmds='chmod 644 $oldlib' | |
7008 | old_postuninstall_cmds= | |
7009 | ||
7010 | if test -n "$RANLIB"; then | |
7011 | case $host_os in | |
7012 | openbsd*) | |
7013 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7014 | ;; | |
7015 | *) | |
7016 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7017 | ;; | |
7018 | esac | |
7019 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
c52df125 AC |
7020 | fi |
7021 | ||
eec2776c AJ |
7022 | case $host_os in |
7023 | darwin*) | |
7024 | lock_old_archive_extraction=yes ;; | |
7025 | *) | |
7026 | lock_old_archive_extraction=no ;; | |
c52df125 | 7027 | esac |
c52df125 | 7028 | |
c52df125 | 7029 | |
c52df125 AC |
7030 | |
7031 | ||
c52df125 | 7032 | |
c52df125 | 7033 | |
c52df125 | 7034 | |
c52df125 | 7035 | |
c52df125 AC |
7036 | |
7037 | ||
c52df125 | 7038 | |
c52df125 | 7039 | |
c52df125 AC |
7040 | |
7041 | ||
c52df125 | 7042 | |
c52df125 | 7043 | |
c52df125 AC |
7044 | |
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
eec2776c AJ |
7067 | # If no C compiler was specified, use CC. |
7068 | LTCC=${LTCC-"$CC"} | |
c52df125 | 7069 | |
eec2776c AJ |
7070 | # If no C compiler flags were specified, use CFLAGS. |
7071 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 7072 | |
eec2776c AJ |
7073 | # Allow CC to be a program name with arguments. |
7074 | compiler=$CC | |
c52df125 AC |
7075 | |
7076 | ||
eec2776c AJ |
7077 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7079 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7080 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
c52df125 AC |
7081 | $as_echo_n "(cached) " >&6 |
7082 | else | |
c52df125 | 7083 | |
eec2776c AJ |
7084 | # These are sane defaults that work on at least a few old systems. |
7085 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
c52df125 | 7086 | |
eec2776c AJ |
7087 | # Character class describing NM global symbol codes. |
7088 | symcode='[BCDEGRST]' | |
c52df125 | 7089 | |
eec2776c AJ |
7090 | # Regexp to match symbols that can be accessed directly from C. |
7091 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
c52df125 | 7092 | |
eec2776c AJ |
7093 | # Define system-specific variables. |
7094 | case $host_os in | |
7095 | aix*) | |
7096 | symcode='[BCDT]' | |
7097 | ;; | |
7098 | cygwin* | mingw* | pw32* | cegcc*) | |
7099 | symcode='[ABCDGISTW]' | |
7100 | ;; | |
7101 | hpux*) | |
7102 | if test "$host_cpu" = ia64; then | |
7103 | symcode='[ABCDEGRST]' | |
7104 | fi | |
7105 | ;; | |
7106 | irix* | nonstopux*) | |
7107 | symcode='[BCDEGRST]' | |
7108 | ;; | |
7109 | osf*) | |
7110 | symcode='[BCDEGQRST]' | |
7111 | ;; | |
7112 | solaris*) | |
7113 | symcode='[BDRT]' | |
7114 | ;; | |
7115 | sco3.2v5*) | |
7116 | symcode='[DT]' | |
7117 | ;; | |
7118 | sysv4.2uw2*) | |
7119 | symcode='[DT]' | |
7120 | ;; | |
7121 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7122 | symcode='[ABDT]' | |
7123 | ;; | |
7124 | sysv4) | |
7125 | symcode='[DFNSTU]' | |
7126 | ;; | |
7127 | esac | |
c52df125 | 7128 | |
eec2776c AJ |
7129 | # If we're using GNU nm, then use its standard symbol codes. |
7130 | case `$NM -V 2>&1` in | |
7131 | *GNU* | *'with BFD'*) | |
7132 | symcode='[ABCDGIRSTW]' ;; | |
7133 | esac | |
c52df125 | 7134 | |
eec2776c AJ |
7135 | # Transform an extracted symbol line into a proper C declaration. |
7136 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7137 | # so use this general approach. | |
7138 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
c52df125 | 7139 | |
eec2776c AJ |
7140 | # Transform an extracted symbol line into symbol name and symbol address |
7141 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7142 | 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'" | |
c52df125 | 7143 | |
eec2776c AJ |
7144 | # Handle CRLF in mingw tool chain |
7145 | opt_cr= | |
7146 | case $build_os in | |
7147 | mingw*) | |
7148 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7149 | ;; | |
7150 | esac | |
c52df125 | 7151 | |
eec2776c AJ |
7152 | # Try without a prefix underscore, then with it. |
7153 | for ac_symprfx in "" "_"; do | |
c52df125 | 7154 | |
eec2776c AJ |
7155 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7156 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
c52df125 | 7157 | |
eec2776c AJ |
7158 | # Write the raw and C identifiers. |
7159 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7160 | # Fake it for dumpbin and say T for any non-static function | |
7161 | # and D for any global variable. | |
7162 | # Also find C++ and __fastcall symbols from MSVC++, | |
7163 | # which start with @ or ?. | |
7164 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7165 | " {last_section=section; section=\$ 3};"\ | |
7166 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7167 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7168 | " \$ 0!~/External *\|/{next};"\ | |
7169 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7170 | " {if(hide[section]) next};"\ | |
7171 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7172 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7173 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7174 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7175 | " ' prfx=^$ac_symprfx" | |
7176 | else | |
7177 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7178 | fi | |
7179 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
c52df125 | 7180 | |
eec2776c AJ |
7181 | # Check to see that the pipe works correctly. |
7182 | pipe_works=no | |
7183 | ||
7184 | rm -f conftest* | |
7185 | cat > conftest.$ac_ext <<_LT_EOF | |
7186 | #ifdef __cplusplus | |
7187 | extern "C" { | |
c52df125 | 7188 | #endif |
eec2776c AJ |
7189 | char nm_test_var; |
7190 | void nm_test_func(void); | |
7191 | void nm_test_func(void){} | |
7192 | #ifdef __cplusplus | |
7193 | } | |
7194 | #endif | |
7195 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7196 | _LT_EOF | |
c52df125 | 7197 | |
eec2776c AJ |
7198 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7199 | (eval $ac_compile) 2>&5 | |
7200 | ac_status=$? | |
7201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7202 | test $ac_status = 0; }; then | |
7203 | # Now try to grab the symbols. | |
7204 | nlist=conftest.nm | |
7205 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7206 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7207 | ac_status=$? | |
7208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7209 | test $ac_status = 0; } && test -s "$nlist"; then | |
7210 | # Try sorting and uniquifying the output. | |
7211 | if sort "$nlist" | uniq > "$nlist"T; then | |
7212 | mv -f "$nlist"T "$nlist" | |
7213 | else | |
7214 | rm -f "$nlist"T | |
7215 | fi | |
c52df125 | 7216 | |
eec2776c AJ |
7217 | # Make sure that we snagged all the symbols we need. |
7218 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7219 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7220 | cat <<_LT_EOF > conftest.$ac_ext | |
7221 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7222 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7223 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7224 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7225 | # define LT_DLSYM_CONST | |
7226 | #elif defined(__osf__) | |
7227 | /* This system does not cope well with relocations in const data. */ | |
7228 | # define LT_DLSYM_CONST | |
7229 | #else | |
7230 | # define LT_DLSYM_CONST const | |
7231 | #endif | |
c52df125 | 7232 | |
eec2776c AJ |
7233 | #ifdef __cplusplus |
7234 | extern "C" { | |
7235 | #endif | |
c52df125 | 7236 | |
eec2776c AJ |
7237 | _LT_EOF |
7238 | # Now generate the symbol file. | |
7239 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
c52df125 | 7240 | |
eec2776c | 7241 | cat <<_LT_EOF >> conftest.$ac_ext |
c52df125 | 7242 | |
eec2776c AJ |
7243 | /* The mapping between symbol names and symbols. */ |
7244 | LT_DLSYM_CONST struct { | |
7245 | const char *name; | |
7246 | void *address; | |
7247 | } | |
7248 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
c52df125 | 7249 | { |
eec2776c AJ |
7250 | { "@PROGRAM@", (void *) 0 }, |
7251 | _LT_EOF | |
7252 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7253 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7254 | {0, (void *) 0} | |
7255 | }; | |
c52df125 | 7256 | |
eec2776c AJ |
7257 | /* This works around a problem in FreeBSD linker */ |
7258 | #ifdef FREEBSD_WORKAROUND | |
7259 | static const void *lt_preloaded_setup() { | |
7260 | return lt__PROGRAM__LTX_preloaded_symbols; | |
c52df125 | 7261 | } |
eec2776c | 7262 | #endif |
c52df125 | 7263 | |
eec2776c AJ |
7264 | #ifdef __cplusplus |
7265 | } | |
7266 | #endif | |
7267 | _LT_EOF | |
7268 | # Now try linking the two files. | |
7269 | mv conftest.$ac_objext conftstm.$ac_objext | |
7270 | lt_globsym_save_LIBS=$LIBS | |
7271 | lt_globsym_save_CFLAGS=$CFLAGS | |
7272 | LIBS="conftstm.$ac_objext" | |
7273 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7274 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7275 | (eval $ac_link) 2>&5 | |
7276 | ac_status=$? | |
7277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7278 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7279 | pipe_works=yes | |
7280 | fi | |
7281 | LIBS=$lt_globsym_save_LIBS | |
7282 | CFLAGS=$lt_globsym_save_CFLAGS | |
7283 | else | |
7284 | echo "cannot find nm_test_func in $nlist" >&5 | |
7285 | fi | |
7286 | else | |
7287 | echo "cannot find nm_test_var in $nlist" >&5 | |
7288 | fi | |
7289 | else | |
7290 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7291 | fi | |
7292 | else | |
7293 | echo "$progname: failed program was:" >&5 | |
7294 | cat conftest.$ac_ext >&5 | |
7295 | fi | |
7296 | rm -rf conftest* conftst* | |
c52df125 | 7297 | |
eec2776c AJ |
7298 | # Do not use the global_symbol_pipe unless it works. |
7299 | if test "$pipe_works" = yes; then | |
7300 | break | |
7301 | else | |
7302 | lt_cv_sys_global_symbol_pipe= | |
7303 | fi | |
7304 | done | |
c52df125 | 7305 | |
c52df125 | 7306 | fi |
c52df125 | 7307 | |
eec2776c AJ |
7308 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7309 | lt_cv_sys_global_symbol_to_cdecl= | |
c52df125 | 7310 | fi |
eec2776c AJ |
7311 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7313 | $as_echo "failed" >&6; } | |
c52df125 | 7314 | else |
eec2776c AJ |
7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7316 | $as_echo "ok" >&6; } | |
c52df125 | 7317 | fi |
c52df125 | 7318 | |
eec2776c AJ |
7319 | # Response file support. |
7320 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7321 | nm_file_list_spec='@' | |
7322 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7323 | nm_file_list_spec='@' | |
c52df125 AC |
7324 | fi |
7325 | ||
c52df125 | 7326 | |
c52df125 | 7327 | |
c52df125 | 7328 | |
c52df125 | 7329 | |
c52df125 | 7330 | |
c52df125 | 7331 | |
c52df125 | 7332 | |
c52df125 | 7333 | |
c52df125 AC |
7334 | |
7335 | ||
c52df125 | 7336 | |
c52df125 | 7337 | |
c52df125 AC |
7338 | |
7339 | ||
7340 | ||
7341 | ||
7342 | ||
c52df125 AC |
7343 | |
7344 | ||
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | ||
eec2776c AJ |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7353 | $as_echo_n "checking for sysroot... " >&6; } | |
c52df125 | 7354 | |
eec2776c AJ |
7355 | # Check whether --with-sysroot was given. |
7356 | if test "${with_sysroot+set}" = set; then : | |
7357 | withval=$with_sysroot; | |
7358 | else | |
7359 | with_sysroot=no | |
7360 | fi | |
c52df125 AC |
7361 | |
7362 | ||
eec2776c AJ |
7363 | lt_sysroot= |
7364 | case ${with_sysroot} in #( | |
7365 | yes) | |
7366 | if test "$GCC" = yes; then | |
7367 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7368 | fi | |
7369 | ;; #( | |
7370 | /*) | |
7371 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7372 | ;; #( | |
7373 | no|'') | |
7374 | ;; #( | |
7375 | *) | |
7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7377 | $as_echo "${with_sysroot}" >&6; } | |
7378 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7379 | ;; | |
7380 | esac | |
c52df125 | 7381 | |
eec2776c AJ |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7383 | $as_echo "${lt_sysroot:-no}" >&6; } | |
c52df125 AC |
7384 | |
7385 | ||
7386 | ||
7387 | ||
7388 | ||
eec2776c AJ |
7389 | # Check whether --enable-libtool-lock was given. |
7390 | if test "${enable_libtool_lock+set}" = set; then : | |
7391 | enableval=$enable_libtool_lock; | |
c52df125 AC |
7392 | fi |
7393 | ||
eec2776c | 7394 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
c52df125 | 7395 | |
eec2776c AJ |
7396 | # Some flags need to be propagated to the compiler or linker for good |
7397 | # libtool support. | |
7398 | case $host in | |
7399 | ia64-*-hpux*) | |
7400 | # Find out which ABI we are using. | |
7401 | echo 'int i;' > conftest.$ac_ext | |
7402 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7403 | (eval $ac_compile) 2>&5 | |
7404 | ac_status=$? | |
7405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7406 | test $ac_status = 0; }; then | |
7407 | case `/usr/bin/file conftest.$ac_objext` in | |
7408 | *ELF-32*) | |
7409 | HPUX_IA64_MODE="32" | |
7410 | ;; | |
7411 | *ELF-64*) | |
7412 | HPUX_IA64_MODE="64" | |
7413 | ;; | |
7414 | esac | |
7415 | fi | |
7416 | rm -rf conftest* | |
7417 | ;; | |
7418 | *-*-irix6*) | |
7419 | # Find out which ABI we are using. | |
7420 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7421 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7422 | (eval $ac_compile) 2>&5 | |
7423 | ac_status=$? | |
7424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7425 | test $ac_status = 0; }; then | |
7426 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7427 | case `/usr/bin/file conftest.$ac_objext` in | |
7428 | *32-bit*) | |
7429 | LD="${LD-ld} -melf32bsmip" | |
7430 | ;; | |
7431 | *N32*) | |
7432 | LD="${LD-ld} -melf32bmipn32" | |
7433 | ;; | |
7434 | *64-bit*) | |
7435 | LD="${LD-ld} -melf64bmip" | |
7436 | ;; | |
7437 | esac | |
7438 | else | |
7439 | case `/usr/bin/file conftest.$ac_objext` in | |
7440 | *32-bit*) | |
7441 | LD="${LD-ld} -32" | |
7442 | ;; | |
7443 | *N32*) | |
7444 | LD="${LD-ld} -n32" | |
7445 | ;; | |
7446 | *64-bit*) | |
7447 | LD="${LD-ld} -64" | |
7448 | ;; | |
7449 | esac | |
7450 | fi | |
7451 | fi | |
7452 | rm -rf conftest* | |
7453 | ;; | |
c52df125 | 7454 | |
eec2776c AJ |
7455 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7456 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7457 | # Find out which ABI we are using. | |
7458 | echo 'int i;' > conftest.$ac_ext | |
7459 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7460 | (eval $ac_compile) 2>&5 | |
7461 | ac_status=$? | |
7462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7463 | test $ac_status = 0; }; then | |
7464 | case `/usr/bin/file conftest.o` in | |
7465 | *32-bit*) | |
7466 | case $host in | |
7467 | x86_64-*kfreebsd*-gnu) | |
7468 | LD="${LD-ld} -m elf_i386_fbsd" | |
7469 | ;; | |
7470 | x86_64-*linux*) | |
7471 | case `/usr/bin/file conftest.o` in | |
7472 | *x86-64*) | |
7473 | LD="${LD-ld} -m elf32_x86_64" | |
7474 | ;; | |
7475 | *) | |
7476 | LD="${LD-ld} -m elf_i386" | |
7477 | ;; | |
7478 | esac | |
7479 | ;; | |
7480 | powerpc64le-*) | |
7481 | LD="${LD-ld} -m elf32lppclinux" | |
7482 | ;; | |
7483 | powerpc64-*) | |
7484 | LD="${LD-ld} -m elf32ppclinux" | |
7485 | ;; | |
7486 | s390x-*linux*) | |
7487 | LD="${LD-ld} -m elf_s390" | |
7488 | ;; | |
7489 | sparc64-*linux*) | |
7490 | LD="${LD-ld} -m elf32_sparc" | |
7491 | ;; | |
7492 | esac | |
7493 | ;; | |
7494 | *64-bit*) | |
7495 | case $host in | |
7496 | x86_64-*kfreebsd*-gnu) | |
7497 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7498 | ;; | |
7499 | x86_64-*linux*) | |
7500 | LD="${LD-ld} -m elf_x86_64" | |
7501 | ;; | |
7502 | powerpcle-*) | |
7503 | LD="${LD-ld} -m elf64lppc" | |
7504 | ;; | |
7505 | powerpc-*) | |
7506 | LD="${LD-ld} -m elf64ppc" | |
7507 | ;; | |
7508 | s390*-*linux*|s390*-*tpf*) | |
7509 | LD="${LD-ld} -m elf64_s390" | |
7510 | ;; | |
7511 | sparc*-*linux*) | |
7512 | LD="${LD-ld} -m elf64_sparc" | |
7513 | ;; | |
7514 | esac | |
7515 | ;; | |
7516 | esac | |
7517 | fi | |
7518 | rm -rf conftest* | |
7519 | ;; | |
c52df125 | 7520 | |
eec2776c AJ |
7521 | *-*-sco3.2v5*) |
7522 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7523 | SAVE_CFLAGS="$CFLAGS" | |
7524 | CFLAGS="$CFLAGS -belf" | |
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7526 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7527 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7528 | $as_echo_n "(cached) " >&6 | |
7529 | else | |
7530 | ac_ext=c | |
7531 | ac_cpp='$CPP $CPPFLAGS' | |
7532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7535 | |
eec2776c AJ |
7536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7537 | /* end confdefs.h. */ | |
c52df125 | 7538 | |
eec2776c AJ |
7539 | int |
7540 | main () | |
7541 | { | |
c52df125 | 7542 | |
eec2776c AJ |
7543 | ; |
7544 | return 0; | |
7545 | } | |
7546 | _ACEOF | |
7547 | if ac_fn_c_try_link "$LINENO"; then : | |
7548 | lt_cv_cc_needs_belf=yes | |
c52df125 | 7549 | else |
eec2776c | 7550 | lt_cv_cc_needs_belf=no |
c52df125 | 7551 | fi |
eec2776c AJ |
7552 | rm -f core conftest.err conftest.$ac_objext \ |
7553 | conftest$ac_exeext conftest.$ac_ext | |
7554 | ac_ext=c | |
7555 | ac_cpp='$CPP $CPPFLAGS' | |
7556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7559 | |
eec2776c AJ |
7560 | fi |
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7562 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7563 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7564 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7565 | CFLAGS="$SAVE_CFLAGS" | |
7566 | fi | |
7567 | ;; | |
7568 | *-*solaris*) | |
7569 | # Find out which ABI we are using. | |
7570 | echo 'int i;' > conftest.$ac_ext | |
7571 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7572 | (eval $ac_compile) 2>&5 | |
7573 | ac_status=$? | |
7574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7575 | test $ac_status = 0; }; then | |
7576 | case `/usr/bin/file conftest.o` in | |
7577 | *64-bit*) | |
7578 | case $lt_cv_prog_gnu_ld in | |
7579 | yes*) | |
7580 | case $host in | |
7581 | i?86-*-solaris*) | |
7582 | LD="${LD-ld} -m elf_x86_64" | |
7583 | ;; | |
7584 | sparc*-*-solaris*) | |
7585 | LD="${LD-ld} -m elf64_sparc" | |
7586 | ;; | |
7587 | esac | |
7588 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7589 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7590 | LD="${LD-ld}_sol2" | |
7591 | fi | |
7592 | ;; | |
7593 | *) | |
7594 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7595 | LD="${LD-ld} -64" | |
7596 | fi | |
7597 | ;; | |
7598 | esac | |
7599 | ;; | |
7600 | esac | |
7601 | fi | |
7602 | rm -rf conftest* | |
7603 | ;; | |
7604 | esac | |
c52df125 | 7605 | |
eec2776c | 7606 | need_locks="$enable_libtool_lock" |
c52df125 | 7607 | |
eec2776c AJ |
7608 | if test -n "$ac_tool_prefix"; then |
7609 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7610 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7612 | $as_echo_n "checking for $ac_word... " >&6; } | |
7613 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7614 | $as_echo_n "(cached) " >&6 | |
7615 | else | |
7616 | if test -n "$MANIFEST_TOOL"; then | |
7617 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7618 | else | |
7619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7620 | for as_dir in $PATH | |
7621 | do | |
7622 | IFS=$as_save_IFS | |
7623 | test -z "$as_dir" && as_dir=. | |
7624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7626 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7628 | break 2 | |
7629 | fi | |
7630 | done | |
7631 | done | |
7632 | IFS=$as_save_IFS | |
c52df125 | 7633 | |
eec2776c AJ |
7634 | fi |
7635 | fi | |
7636 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7637 | if test -n "$MANIFEST_TOOL"; then | |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7639 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7640 | else | |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7642 | $as_echo "no" >&6; } | |
7643 | fi | |
c52df125 AC |
7644 | |
7645 | ||
eec2776c AJ |
7646 | fi |
7647 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7648 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7649 | # Extract the first word of "mt", so it can be a program name with args. | |
7650 | set dummy mt; ac_word=$2 | |
7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7652 | $as_echo_n "checking for $ac_word... " >&6; } | |
7653 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7654 | $as_echo_n "(cached) " >&6 | |
7655 | else | |
7656 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7657 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7658 | else | |
7659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7660 | for as_dir in $PATH | |
7661 | do | |
7662 | IFS=$as_save_IFS | |
7663 | test -z "$as_dir" && as_dir=. | |
7664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7666 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7668 | break 2 | |
7669 | fi | |
7670 | done | |
7671 | done | |
7672 | IFS=$as_save_IFS | |
c52df125 | 7673 | |
eec2776c AJ |
7674 | fi |
7675 | fi | |
7676 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7677 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7679 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7680 | else | |
7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7682 | $as_echo "no" >&6; } | |
7683 | fi | |
c52df125 | 7684 | |
eec2776c AJ |
7685 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7686 | MANIFEST_TOOL=":" | |
7687 | else | |
7688 | case $cross_compiling:$ac_tool_warned in | |
7689 | yes:) | |
7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7692 | ac_tool_warned=yes ;; | |
7693 | esac | |
7694 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7695 | fi | |
7696 | else | |
7697 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7698 | fi | |
c52df125 | 7699 | |
eec2776c AJ |
7700 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7702 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7703 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7704 | $as_echo_n "(cached) " >&6 | |
7705 | else | |
7706 | lt_cv_path_mainfest_tool=no | |
7707 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7708 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7709 | cat conftest.err >&5 | |
7710 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7711 | lt_cv_path_mainfest_tool=yes | |
7712 | fi | |
7713 | rm -f conftest* | |
7714 | fi | |
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7716 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7717 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7718 | MANIFEST_TOOL=: | |
7719 | fi | |
c52df125 AC |
7720 | |
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | ||
eec2776c AJ |
7726 | case $host_os in |
7727 | rhapsody* | darwin*) | |
7728 | if test -n "$ac_tool_prefix"; then | |
7729 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7730 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7732 | $as_echo_n "checking for $ac_word... " >&6; } | |
7733 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7734 | $as_echo_n "(cached) " >&6 | |
7735 | else | |
7736 | if test -n "$DSYMUTIL"; then | |
7737 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7738 | else | |
7739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7740 | for as_dir in $PATH | |
7741 | do | |
7742 | IFS=$as_save_IFS | |
7743 | test -z "$as_dir" && as_dir=. | |
7744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7746 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7748 | break 2 | |
7749 | fi | |
7750 | done | |
7751 | done | |
7752 | IFS=$as_save_IFS | |
c52df125 | 7753 | |
eec2776c AJ |
7754 | fi |
7755 | fi | |
7756 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7757 | if test -n "$DSYMUTIL"; then | |
7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7759 | $as_echo "$DSYMUTIL" >&6; } | |
7760 | else | |
7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7762 | $as_echo "no" >&6; } | |
7763 | fi | |
c52df125 AC |
7764 | |
7765 | ||
c52df125 | 7766 | fi |
eec2776c AJ |
7767 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7768 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7769 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7770 | set dummy dsymutil; ac_word=$2 | |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7772 | $as_echo_n "checking for $ac_word... " >&6; } | |
7773 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
c52df125 AC |
7774 | $as_echo_n "(cached) " >&6 |
7775 | else | |
eec2776c AJ |
7776 | if test -n "$ac_ct_DSYMUTIL"; then |
7777 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
c52df125 | 7778 | else |
eec2776c AJ |
7779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7780 | for as_dir in $PATH | |
7781 | do | |
7782 | IFS=$as_save_IFS | |
7783 | test -z "$as_dir" && as_dir=. | |
7784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7786 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7788 | break 2 | |
7789 | fi | |
7790 | done | |
7791 | done | |
7792 | IFS=$as_save_IFS | |
7793 | ||
c52df125 | 7794 | fi |
c52df125 | 7795 | fi |
eec2776c AJ |
7796 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7797 | if test -n "$ac_ct_DSYMUTIL"; then | |
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7799 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7800 | else | |
7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7802 | $as_echo "no" >&6; } | |
7803 | fi | |
c52df125 | 7804 | |
eec2776c AJ |
7805 | if test "x$ac_ct_DSYMUTIL" = x; then |
7806 | DSYMUTIL=":" | |
7807 | else | |
7808 | case $cross_compiling:$ac_tool_warned in | |
7809 | yes:) | |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7812 | ac_tool_warned=yes ;; | |
c52df125 | 7813 | esac |
eec2776c AJ |
7814 | DSYMUTIL=$ac_ct_DSYMUTIL |
7815 | fi | |
7816 | else | |
7817 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7818 | fi | |
c52df125 | 7819 | |
eec2776c AJ |
7820 | if test -n "$ac_tool_prefix"; then |
7821 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7822 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7824 | $as_echo_n "checking for $ac_word... " >&6; } | |
7825 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
c52df125 AC |
7826 | $as_echo_n "(cached) " >&6 |
7827 | else | |
eec2776c AJ |
7828 | if test -n "$NMEDIT"; then |
7829 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7830 | else | |
7831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7832 | for as_dir in $PATH | |
7833 | do | |
7834 | IFS=$as_save_IFS | |
7835 | test -z "$as_dir" && as_dir=. | |
7836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7838 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7840 | break 2 | |
7841 | fi | |
7842 | done | |
c52df125 | 7843 | done |
eec2776c | 7844 | IFS=$as_save_IFS |
c52df125 | 7845 | |
eec2776c AJ |
7846 | fi |
7847 | fi | |
7848 | NMEDIT=$ac_cv_prog_NMEDIT | |
7849 | if test -n "$NMEDIT"; then | |
7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7851 | $as_echo "$NMEDIT" >&6; } | |
c52df125 AC |
7852 | else |
7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7854 | $as_echo "no" >&6; } | |
7855 | fi | |
7856 | ||
7857 | ||
eec2776c AJ |
7858 | fi |
7859 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7860 | ac_ct_NMEDIT=$NMEDIT | |
7861 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7862 | set dummy nmedit; ac_word=$2 | |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7864 | $as_echo_n "checking for $ac_word... " >&6; } | |
7865 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
c52df125 AC |
7866 | $as_echo_n "(cached) " >&6 |
7867 | else | |
eec2776c AJ |
7868 | if test -n "$ac_ct_NMEDIT"; then |
7869 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7870 | else | |
7871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7872 | for as_dir in $PATH | |
7873 | do | |
7874 | IFS=$as_save_IFS | |
7875 | test -z "$as_dir" && as_dir=. | |
7876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7878 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7880 | break 2 | |
7881 | fi | |
7882 | done | |
c52df125 | 7883 | done |
eec2776c | 7884 | IFS=$as_save_IFS |
c52df125 | 7885 | |
eec2776c AJ |
7886 | fi |
7887 | fi | |
7888 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7889 | if test -n "$ac_ct_NMEDIT"; then | |
7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7891 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
c52df125 AC |
7892 | else |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7894 | $as_echo "no" >&6; } | |
7895 | fi | |
7896 | ||
eec2776c AJ |
7897 | if test "x$ac_ct_NMEDIT" = x; then |
7898 | NMEDIT=":" | |
c52df125 | 7899 | else |
eec2776c AJ |
7900 | case $cross_compiling:$ac_tool_warned in |
7901 | yes:) | |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7904 | ac_tool_warned=yes ;; | |
7905 | esac | |
7906 | NMEDIT=$ac_ct_NMEDIT | |
c52df125 | 7907 | fi |
eec2776c AJ |
7908 | else |
7909 | NMEDIT="$ac_cv_prog_NMEDIT" | |
c52df125 AC |
7910 | fi |
7911 | ||
eec2776c AJ |
7912 | if test -n "$ac_tool_prefix"; then |
7913 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7914 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7916 | $as_echo_n "checking for $ac_word... " >&6; } | |
7917 | if ${ac_cv_prog_LIPO+:} false; then : | |
7918 | $as_echo_n "(cached) " >&6 | |
7919 | else | |
7920 | if test -n "$LIPO"; then | |
7921 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7922 | else | |
7923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7924 | for as_dir in $PATH | |
7925 | do | |
7926 | IFS=$as_save_IFS | |
7927 | test -z "$as_dir" && as_dir=. | |
7928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7930 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7932 | break 2 | |
7933 | fi | |
7934 | done | |
7935 | done | |
7936 | IFS=$as_save_IFS | |
c52df125 | 7937 | |
eec2776c AJ |
7938 | fi |
7939 | fi | |
7940 | LIPO=$ac_cv_prog_LIPO | |
7941 | if test -n "$LIPO"; then | |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7943 | $as_echo "$LIPO" >&6; } | |
7944 | else | |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7946 | $as_echo "no" >&6; } | |
7947 | fi | |
c52df125 | 7948 | |
c52df125 | 7949 | |
eec2776c AJ |
7950 | fi |
7951 | if test -z "$ac_cv_prog_LIPO"; then | |
7952 | ac_ct_LIPO=$LIPO | |
7953 | # Extract the first word of "lipo", so it can be a program name with args. | |
7954 | set dummy lipo; ac_word=$2 | |
7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7956 | $as_echo_n "checking for $ac_word... " >&6; } | |
7957 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
c52df125 AC |
7958 | $as_echo_n "(cached) " >&6 |
7959 | else | |
eec2776c AJ |
7960 | if test -n "$ac_ct_LIPO"; then |
7961 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7962 | else | |
7963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7964 | for as_dir in $PATH | |
7965 | do | |
7966 | IFS=$as_save_IFS | |
7967 | test -z "$as_dir" && as_dir=. | |
7968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7970 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7972 | break 2 | |
7973 | fi | |
7974 | done | |
7975 | done | |
7976 | IFS=$as_save_IFS | |
c52df125 AC |
7977 | |
7978 | fi | |
eec2776c AJ |
7979 | fi |
7980 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7981 | if test -n "$ac_ct_LIPO"; then | |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7983 | $as_echo "$ac_ct_LIPO" >&6; } | |
c52df125 | 7984 | else |
eec2776c AJ |
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7986 | $as_echo "no" >&6; } | |
c52df125 AC |
7987 | fi |
7988 | ||
eec2776c AJ |
7989 | if test "x$ac_ct_LIPO" = x; then |
7990 | LIPO=":" | |
7991 | else | |
7992 | case $cross_compiling:$ac_tool_warned in | |
7993 | yes:) | |
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7995 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7996 | ac_tool_warned=yes ;; | |
7997 | esac | |
7998 | LIPO=$ac_ct_LIPO | |
7999 | fi | |
8000 | else | |
8001 | LIPO="$ac_cv_prog_LIPO" | |
c52df125 AC |
8002 | fi |
8003 | ||
eec2776c AJ |
8004 | if test -n "$ac_tool_prefix"; then |
8005 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8006 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8008 | $as_echo_n "checking for $ac_word... " >&6; } | |
8009 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8010 | $as_echo_n "(cached) " >&6 | |
8011 | else | |
8012 | if test -n "$OTOOL"; then | |
8013 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8014 | else | |
8015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8016 | for as_dir in $PATH | |
8017 | do | |
8018 | IFS=$as_save_IFS | |
8019 | test -z "$as_dir" && as_dir=. | |
8020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8022 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8024 | break 2 | |
8025 | fi | |
8026 | done | |
8027 | done | |
8028 | IFS=$as_save_IFS | |
c52df125 | 8029 | |
eec2776c AJ |
8030 | fi |
8031 | fi | |
8032 | OTOOL=$ac_cv_prog_OTOOL | |
8033 | if test -n "$OTOOL"; then | |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8035 | $as_echo "$OTOOL" >&6; } | |
8036 | else | |
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8038 | $as_echo "no" >&6; } | |
8039 | fi | |
c52df125 AC |
8040 | |
8041 | ||
eec2776c AJ |
8042 | fi |
8043 | if test -z "$ac_cv_prog_OTOOL"; then | |
8044 | ac_ct_OTOOL=$OTOOL | |
8045 | # Extract the first word of "otool", so it can be a program name with args. | |
8046 | set dummy otool; ac_word=$2 | |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8048 | $as_echo_n "checking for $ac_word... " >&6; } | |
8049 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8050 | $as_echo_n "(cached) " >&6 | |
8051 | else | |
8052 | if test -n "$ac_ct_OTOOL"; then | |
8053 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8054 | else | |
8055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8056 | for as_dir in $PATH | |
8057 | do | |
8058 | IFS=$as_save_IFS | |
8059 | test -z "$as_dir" && as_dir=. | |
8060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8062 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8064 | break 2 | |
8065 | fi | |
8066 | done | |
8067 | done | |
8068 | IFS=$as_save_IFS | |
c52df125 | 8069 | |
eec2776c AJ |
8070 | fi |
8071 | fi | |
8072 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8073 | if test -n "$ac_ct_OTOOL"; then | |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8075 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8076 | else | |
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8078 | $as_echo "no" >&6; } | |
8079 | fi | |
c52df125 | 8080 | |
eec2776c AJ |
8081 | if test "x$ac_ct_OTOOL" = x; then |
8082 | OTOOL=":" | |
8083 | else | |
8084 | case $cross_compiling:$ac_tool_warned in | |
8085 | yes:) | |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8088 | ac_tool_warned=yes ;; | |
8089 | esac | |
8090 | OTOOL=$ac_ct_OTOOL | |
8091 | fi | |
8092 | else | |
8093 | OTOOL="$ac_cv_prog_OTOOL" | |
8094 | fi | |
c52df125 | 8095 | |
eec2776c AJ |
8096 | if test -n "$ac_tool_prefix"; then |
8097 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8098 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8100 | $as_echo_n "checking for $ac_word... " >&6; } | |
8101 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8102 | $as_echo_n "(cached) " >&6 | |
8103 | else | |
8104 | if test -n "$OTOOL64"; then | |
8105 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8106 | else | |
8107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8108 | for as_dir in $PATH | |
8109 | do | |
8110 | IFS=$as_save_IFS | |
8111 | test -z "$as_dir" && as_dir=. | |
8112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8114 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8116 | break 2 | |
8117 | fi | |
8118 | done | |
8119 | done | |
8120 | IFS=$as_save_IFS | |
c52df125 | 8121 | |
eec2776c AJ |
8122 | fi |
8123 | fi | |
8124 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8125 | if test -n "$OTOOL64"; then | |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8127 | $as_echo "$OTOOL64" >&6; } | |
8128 | else | |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8130 | $as_echo "no" >&6; } | |
8131 | fi | |
c52df125 | 8132 | |
c52df125 | 8133 | |
eec2776c AJ |
8134 | fi |
8135 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8136 | ac_ct_OTOOL64=$OTOOL64 | |
8137 | # Extract the first word of "otool64", so it can be a program name with args. | |
8138 | set dummy otool64; ac_word=$2 | |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8140 | $as_echo_n "checking for $ac_word... " >&6; } | |
8141 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8142 | $as_echo_n "(cached) " >&6 | |
8143 | else | |
8144 | if test -n "$ac_ct_OTOOL64"; then | |
8145 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8146 | else | |
8147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8148 | for as_dir in $PATH | |
8149 | do | |
8150 | IFS=$as_save_IFS | |
8151 | test -z "$as_dir" && as_dir=. | |
8152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8154 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8156 | break 2 | |
8157 | fi | |
8158 | done | |
8159 | done | |
8160 | IFS=$as_save_IFS | |
c52df125 | 8161 | |
eec2776c AJ |
8162 | fi |
8163 | fi | |
8164 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8165 | if test -n "$ac_ct_OTOOL64"; then | |
8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8167 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8168 | else | |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8170 | $as_echo "no" >&6; } | |
8171 | fi | |
c52df125 | 8172 | |
eec2776c AJ |
8173 | if test "x$ac_ct_OTOOL64" = x; then |
8174 | OTOOL64=":" | |
8175 | else | |
8176 | case $cross_compiling:$ac_tool_warned in | |
8177 | yes:) | |
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8180 | ac_tool_warned=yes ;; | |
8181 | esac | |
8182 | OTOOL64=$ac_ct_OTOOL64 | |
8183 | fi | |
8184 | else | |
8185 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8186 | fi | |
c52df125 | 8187 | |
c52df125 | 8188 | |
c52df125 | 8189 | |
c52df125 | 8190 | |
c52df125 | 8191 | |
c52df125 | 8192 | |
c52df125 | 8193 | |
c52df125 | 8194 | |
c52df125 | 8195 | |
c52df125 | 8196 | |
c52df125 | 8197 | |
c52df125 | 8198 | |
c52df125 | 8199 | |
c52df125 | 8200 | |
c52df125 | 8201 | |
c52df125 | 8202 | |
c52df125 | 8203 | |
c52df125 | 8204 | |
c52df125 | 8205 | |
c52df125 | 8206 | |
c52df125 | 8207 | |
c52df125 | 8208 | |
c52df125 | 8209 | |
c52df125 | 8210 | |
c52df125 | 8211 | |
c52df125 | 8212 | |
c52df125 | 8213 | |
eec2776c AJ |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8215 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8216 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
c52df125 AC |
8217 | $as_echo_n "(cached) " >&6 |
8218 | else | |
eec2776c AJ |
8219 | lt_cv_apple_cc_single_mod=no |
8220 | if test -z "${LT_MULTI_MODULE}"; then | |
8221 | # By default we will add the -single_module flag. You can override | |
8222 | # by either setting the environment variable LT_MULTI_MODULE | |
8223 | # non-empty at configure time, or by adding -multi_module to the | |
8224 | # link flags. | |
8225 | rm -rf libconftest.dylib* | |
8226 | echo "int foo(void){return 1;}" > conftest.c | |
8227 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8228 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8229 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8230 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8231 | _lt_result=$? | |
8232 | # If there is a non-empty error log, and "single_module" | |
8233 | # appears in it, assume the flag caused a linker warning | |
8234 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8235 | cat conftest.err >&5 | |
8236 | # Otherwise, if the output was created with a 0 exit code from | |
8237 | # the compiler, it worked. | |
8238 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8239 | lt_cv_apple_cc_single_mod=yes | |
8240 | else | |
8241 | cat conftest.err >&5 | |
8242 | fi | |
8243 | rm -rf libconftest.dylib* | |
8244 | rm -f conftest.* | |
8245 | fi | |
c52df125 | 8246 | fi |
eec2776c AJ |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8248 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
c52df125 | 8249 | |
eec2776c AJ |
8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8251 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8252 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
c52df125 AC |
8253 | $as_echo_n "(cached) " >&6 |
8254 | else | |
eec2776c AJ |
8255 | lt_cv_ld_exported_symbols_list=no |
8256 | save_LDFLAGS=$LDFLAGS | |
8257 | echo "_main" > conftest.sym | |
8258 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8260 | /* end confdefs.h. */ | |
c52df125 | 8261 | |
eec2776c AJ |
8262 | int |
8263 | main () | |
8264 | { | |
c52df125 | 8265 | |
eec2776c AJ |
8266 | ; |
8267 | return 0; | |
8268 | } | |
8269 | _ACEOF | |
8270 | if ac_fn_c_try_link "$LINENO"; then : | |
8271 | lt_cv_ld_exported_symbols_list=yes | |
c52df125 | 8272 | else |
eec2776c | 8273 | lt_cv_ld_exported_symbols_list=no |
c52df125 | 8274 | fi |
eec2776c AJ |
8275 | rm -f core conftest.err conftest.$ac_objext \ |
8276 | conftest$ac_exeext conftest.$ac_ext | |
8277 | LDFLAGS="$save_LDFLAGS" | |
c52df125 AC |
8278 | |
8279 | fi | |
eec2776c AJ |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8281 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
c52df125 | 8282 | |
eec2776c AJ |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8284 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8285 | if ${lt_cv_ld_force_load+:} false; then : | |
c52df125 AC |
8286 | $as_echo_n "(cached) " >&6 |
8287 | else | |
eec2776c AJ |
8288 | lt_cv_ld_force_load=no |
8289 | cat > conftest.c << _LT_EOF | |
8290 | int forced_loaded() { return 2;} | |
8291 | _LT_EOF | |
8292 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8293 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8294 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8295 | $AR cru libconftest.a conftest.o 2>&5 | |
8296 | echo "$RANLIB libconftest.a" >&5 | |
8297 | $RANLIB libconftest.a 2>&5 | |
8298 | cat > conftest.c << _LT_EOF | |
8299 | int main() { return 0;} | |
8300 | _LT_EOF | |
8301 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8302 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8303 | _lt_result=$? | |
8304 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8305 | cat conftest.err >&5 | |
8306 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8307 | lt_cv_ld_force_load=yes | |
8308 | else | |
8309 | cat conftest.err >&5 | |
8310 | fi | |
8311 | rm -f conftest.err libconftest.a conftest conftest.c | |
8312 | rm -rf conftest.dSYM | |
c52df125 AC |
8313 | |
8314 | fi | |
eec2776c AJ |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8316 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8317 | case $host_os in | |
8318 | rhapsody* | darwin1.[012]) | |
8319 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8320 | darwin1.*) | |
8321 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8322 | darwin*) # darwin 5.x on | |
8323 | # if running on 10.5 or later, the deployment target defaults | |
8324 | # to the OS version, if on x86, and 10.4, the deployment | |
8325 | # target defaults to 10.4. Don't you love it? | |
8326 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8327 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8328 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8329 | 10.[012]*) | |
8330 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8331 | 10.*) | |
8332 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8333 | esac | |
8334 | ;; | |
8335 | esac | |
8336 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8337 | _lt_dar_single_mod='$single_module' | |
8338 | fi | |
8339 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8340 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8341 | else | |
8342 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8343 | fi | |
8344 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8345 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8346 | else | |
8347 | _lt_dsymutil= | |
8348 | fi | |
8349 | ;; | |
8350 | esac | |
c52df125 | 8351 | |
eec2776c AJ |
8352 | for ac_header in dlfcn.h |
8353 | do : | |
8354 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8355 | " | |
8356 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8357 | cat >>confdefs.h <<_ACEOF | |
8358 | #define HAVE_DLFCN_H 1 | |
8359 | _ACEOF | |
c52df125 | 8360 | |
eec2776c | 8361 | fi |
c52df125 | 8362 | |
eec2776c | 8363 | done |
c52df125 AC |
8364 | |
8365 | ||
8366 | ||
8367 | ||
8368 | ||
eec2776c AJ |
8369 | # Set options |
8370 | enable_dlopen=yes | |
8371 | # Check whether --enable-static was given. | |
8372 | if test "${enable_static+set}" = set; then : | |
8373 | enableval=$enable_static; p=${PACKAGE-default} | |
8374 | case $enableval in | |
8375 | yes) enable_static=yes ;; | |
8376 | no) enable_static=no ;; | |
8377 | *) | |
8378 | enable_static=no | |
8379 | # Look at the argument we got. We use all the common list separators. | |
8380 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8381 | for pkg in $enableval; do | |
8382 | IFS="$lt_save_ifs" | |
8383 | if test "X$pkg" = "X$p"; then | |
8384 | enable_static=yes | |
8385 | fi | |
8386 | done | |
8387 | IFS="$lt_save_ifs" | |
8388 | ;; | |
8389 | esac | |
c52df125 | 8390 | else |
eec2776c | 8391 | enable_static=no |
c52df125 | 8392 | fi |
c52df125 AC |
8393 | |
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
c52df125 | 8399 | |
c52df125 | 8400 | |
c52df125 AC |
8401 | |
8402 | ||
8403 | ||
eec2776c | 8404 | enable_win32_dll=no |
c52df125 | 8405 | |
eec2776c AJ |
8406 | |
8407 | # Check whether --enable-shared was given. | |
8408 | if test "${enable_shared+set}" = set; then : | |
8409 | enableval=$enable_shared; p=${PACKAGE-default} | |
8410 | case $enableval in | |
8411 | yes) enable_shared=yes ;; | |
8412 | no) enable_shared=no ;; | |
8413 | *) | |
8414 | enable_shared=no | |
8415 | # Look at the argument we got. We use all the common list separators. | |
8416 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8417 | for pkg in $enableval; do | |
8418 | IFS="$lt_save_ifs" | |
8419 | if test "X$pkg" = "X$p"; then | |
8420 | enable_shared=yes | |
8421 | fi | |
8422 | done | |
8423 | IFS="$lt_save_ifs" | |
8424 | ;; | |
8425 | esac | |
c52df125 | 8426 | else |
eec2776c | 8427 | enable_shared=yes |
c52df125 AC |
8428 | fi |
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
c52df125 | 8435 | |
c52df125 | 8436 | |
c52df125 | 8437 | |
c52df125 | 8438 | |
eec2776c AJ |
8439 | |
8440 | # Check whether --with-pic was given. | |
8441 | if test "${with_pic+set}" = set; then : | |
8442 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8443 | case $withval in | |
8444 | yes|no) pic_mode=$withval ;; | |
8445 | *) | |
8446 | pic_mode=default | |
8447 | # Look at the argument we got. We use all the common list separators. | |
8448 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8449 | for lt_pkg in $withval; do | |
8450 | IFS="$lt_save_ifs" | |
8451 | if test "X$lt_pkg" = "X$lt_p"; then | |
8452 | pic_mode=yes | |
8453 | fi | |
8454 | done | |
8455 | IFS="$lt_save_ifs" | |
8456 | ;; | |
c52df125 | 8457 | esac |
eec2776c AJ |
8458 | else |
8459 | pic_mode=default | |
8460 | fi | |
c52df125 | 8461 | |
c52df125 | 8462 | |
eec2776c | 8463 | test -z "$pic_mode" && pic_mode=default |
c52df125 | 8464 | |
c52df125 | 8465 | |
c52df125 | 8466 | |
c52df125 | 8467 | |
c52df125 | 8468 | |
c52df125 | 8469 | |
c52df125 | 8470 | |
eec2776c AJ |
8471 | # Check whether --enable-fast-install was given. |
8472 | if test "${enable_fast_install+set}" = set; then : | |
8473 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8474 | case $enableval in | |
8475 | yes) enable_fast_install=yes ;; | |
8476 | no) enable_fast_install=no ;; | |
8477 | *) | |
8478 | enable_fast_install=no | |
8479 | # Look at the argument we got. We use all the common list separators. | |
8480 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8481 | for pkg in $enableval; do | |
8482 | IFS="$lt_save_ifs" | |
8483 | if test "X$pkg" = "X$p"; then | |
8484 | enable_fast_install=yes | |
8485 | fi | |
8486 | done | |
8487 | IFS="$lt_save_ifs" | |
c52df125 | 8488 | ;; |
eec2776c AJ |
8489 | esac |
8490 | else | |
8491 | enable_fast_install=yes | |
8492 | fi | |
c52df125 | 8493 | |
c52df125 | 8494 | |
c52df125 | 8495 | |
c52df125 | 8496 | |
c52df125 | 8497 | |
c52df125 | 8498 | |
c52df125 | 8499 | |
c52df125 | 8500 | |
c52df125 | 8501 | |
c52df125 | 8502 | |
c52df125 | 8503 | |
eec2776c AJ |
8504 | # This can be used to rebuild libtool when needed |
8505 | LIBTOOL_DEPS="$ltmain" | |
c52df125 | 8506 | |
eec2776c AJ |
8507 | # Always use our own libtool. |
8508 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
c52df125 | 8509 | |
c52df125 | 8510 | |
c52df125 | 8511 | |
c52df125 | 8512 | |
c52df125 | 8513 | |
c52df125 | 8514 | |
c52df125 | 8515 | |
c52df125 | 8516 | |
c52df125 | 8517 | |
c52df125 | 8518 | |
c52df125 | 8519 | |
c52df125 | 8520 | |
c52df125 | 8521 | |
c52df125 | 8522 | |
c52df125 | 8523 | |
c52df125 | 8524 | |
c52df125 | 8525 | |
c52df125 | 8526 | |
c52df125 | 8527 | |
c52df125 | 8528 | |
c52df125 | 8529 | |
c52df125 | 8530 | |
c52df125 | 8531 | |
c52df125 | 8532 | |
c52df125 | 8533 | |
c52df125 | 8534 | |
c52df125 AC |
8535 | |
8536 | ||
c52df125 | 8537 | |
c52df125 | 8538 | |
eec2776c | 8539 | test -z "$LN_S" && LN_S="ln -s" |
c52df125 | 8540 | |
c52df125 | 8541 | |
c52df125 | 8542 | |
c52df125 | 8543 | |
c52df125 | 8544 | |
c52df125 | 8545 | |
c52df125 | 8546 | |
c52df125 | 8547 | |
c52df125 | 8548 | |
c52df125 | 8549 | |
c52df125 | 8550 | |
c52df125 | 8551 | |
c52df125 | 8552 | |
c52df125 | 8553 | |
eec2776c AJ |
8554 | if test -n "${ZSH_VERSION+set}" ; then |
8555 | setopt NO_GLOB_SUBST | |
8556 | fi | |
c52df125 | 8557 | |
eec2776c AJ |
8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8559 | $as_echo_n "checking for objdir... " >&6; } | |
8560 | if ${lt_cv_objdir+:} false; then : | |
c52df125 AC |
8561 | $as_echo_n "(cached) " >&6 |
8562 | else | |
eec2776c AJ |
8563 | rm -f .libs 2>/dev/null |
8564 | mkdir .libs 2>/dev/null | |
8565 | if test -d .libs; then | |
8566 | lt_cv_objdir=.libs | |
c52df125 | 8567 | else |
eec2776c AJ |
8568 | # MS-DOS does not allow filenames that begin with a dot. |
8569 | lt_cv_objdir=_libs | |
c52df125 | 8570 | fi |
eec2776c | 8571 | rmdir .libs 2>/dev/null |
c52df125 | 8572 | fi |
eec2776c AJ |
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8574 | $as_echo "$lt_cv_objdir" >&6; } | |
8575 | objdir=$lt_cv_objdir | |
c52df125 | 8576 | |
c52df125 | 8577 | |
c52df125 | 8578 | |
c52df125 | 8579 | |
c52df125 | 8580 | |
eec2776c AJ |
8581 | cat >>confdefs.h <<_ACEOF |
8582 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8583 | _ACEOF | |
c52df125 | 8584 | |
c52df125 | 8585 | |
c52df125 | 8586 | |
c52df125 | 8587 | |
eec2776c AJ |
8588 | case $host_os in |
8589 | aix3*) | |
8590 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8591 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8592 | # vanish in a puff of smoke. | |
8593 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8594 | COLLECT_NAMES= | |
8595 | export COLLECT_NAMES | |
8596 | fi | |
8597 | ;; | |
8598 | esac | |
c52df125 | 8599 | |
eec2776c AJ |
8600 | # Global variables: |
8601 | ofile=libtool | |
8602 | can_build_shared=yes | |
c52df125 | 8603 | |
eec2776c AJ |
8604 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8605 | # which needs '.lib'). | |
8606 | libext=a | |
c52df125 | 8607 | |
eec2776c | 8608 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
c52df125 | 8609 | |
eec2776c AJ |
8610 | old_CC="$CC" |
8611 | old_CFLAGS="$CFLAGS" | |
c52df125 | 8612 | |
eec2776c AJ |
8613 | # Set sane defaults for various variables |
8614 | test -z "$CC" && CC=cc | |
8615 | test -z "$LTCC" && LTCC=$CC | |
8616 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8617 | test -z "$LD" && LD=ld | |
8618 | test -z "$ac_objext" && ac_objext=o | |
c52df125 | 8619 | |
eec2776c AJ |
8620 | for cc_temp in $compiler""; do |
8621 | case $cc_temp in | |
8622 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8623 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8624 | \-*) ;; | |
8625 | *) break;; | |
8626 | esac | |
8627 | done | |
8628 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
c52df125 | 8629 | |
c52df125 | 8630 | |
eec2776c AJ |
8631 | # Only perform the check for file, if the check method requires it |
8632 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8633 | case $deplibs_check_method in | |
8634 | file_magic*) | |
8635 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8637 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8638 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8639 | $as_echo_n "(cached) " >&6 | |
8640 | else | |
8641 | case $MAGIC_CMD in | |
8642 | [\\/*] | ?:[\\/]*) | |
8643 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8644 | ;; | |
8645 | *) | |
8646 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8647 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8648 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8649 | for ac_dir in $ac_dummy; do | |
8650 | IFS="$lt_save_ifs" | |
8651 | test -z "$ac_dir" && ac_dir=. | |
8652 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8653 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8654 | if test -n "$file_magic_test_file"; then | |
8655 | case $deplibs_check_method in | |
8656 | "file_magic "*) | |
8657 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8658 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8659 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8660 | $EGREP "$file_magic_regex" > /dev/null; then | |
8661 | : | |
8662 | else | |
8663 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8664 | |
eec2776c AJ |
8665 | *** Warning: the command libtool uses to detect shared libraries, |
8666 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8667 | *** The result is that libtool may fail to recognize shared libraries | |
8668 | *** as such. This will affect the creation of libtool libraries that | |
8669 | *** depend on shared libraries, but programs linked with such libtool | |
8670 | *** libraries will work regardless of this problem. Nevertheless, you | |
8671 | *** may want to report the problem to your system manager and/or to | |
8672 | *** bug-libtool@gnu.org | |
c52df125 | 8673 | |
eec2776c AJ |
8674 | _LT_EOF |
8675 | fi ;; | |
8676 | esac | |
8677 | fi | |
8678 | break | |
c52df125 | 8679 | fi |
eec2776c AJ |
8680 | done |
8681 | IFS="$lt_save_ifs" | |
8682 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8683 | ;; | |
8684 | esac | |
8685 | fi | |
c52df125 | 8686 | |
eec2776c AJ |
8687 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8688 | if test -n "$MAGIC_CMD"; then | |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8690 | $as_echo "$MAGIC_CMD" >&6; } | |
8691 | else | |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8693 | $as_echo "no" >&6; } | |
8694 | fi | |
c52df125 AC |
8695 | |
8696 | ||
8697 | ||
8698 | ||
8699 | ||
eec2776c AJ |
8700 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8701 | if test -n "$ac_tool_prefix"; then | |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8703 | $as_echo_n "checking for file... " >&6; } | |
8704 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8705 | $as_echo_n "(cached) " >&6 | |
8706 | else | |
8707 | case $MAGIC_CMD in | |
8708 | [\\/*] | ?:[\\/]*) | |
8709 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8710 | ;; | |
8711 | *) | |
8712 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8713 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8714 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8715 | for ac_dir in $ac_dummy; do | |
8716 | IFS="$lt_save_ifs" | |
8717 | test -z "$ac_dir" && ac_dir=. | |
8718 | if test -f $ac_dir/file; then | |
8719 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8720 | if test -n "$file_magic_test_file"; then | |
8721 | case $deplibs_check_method in | |
8722 | "file_magic "*) | |
8723 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8724 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8725 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8726 | $EGREP "$file_magic_regex" > /dev/null; then | |
8727 | : | |
8728 | else | |
8729 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8730 | |
eec2776c AJ |
8731 | *** Warning: the command libtool uses to detect shared libraries, |
8732 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8733 | *** The result is that libtool may fail to recognize shared libraries | |
8734 | *** as such. This will affect the creation of libtool libraries that | |
8735 | *** depend on shared libraries, but programs linked with such libtool | |
8736 | *** libraries will work regardless of this problem. Nevertheless, you | |
8737 | *** may want to report the problem to your system manager and/or to | |
8738 | *** bug-libtool@gnu.org | |
c52df125 | 8739 | |
eec2776c AJ |
8740 | _LT_EOF |
8741 | fi ;; | |
8742 | esac | |
8743 | fi | |
8744 | break | |
8745 | fi | |
8746 | done | |
8747 | IFS="$lt_save_ifs" | |
8748 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8749 | ;; | |
8750 | esac | |
8751 | fi | |
c52df125 | 8752 | |
eec2776c AJ |
8753 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8754 | if test -n "$MAGIC_CMD"; then | |
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8756 | $as_echo "$MAGIC_CMD" >&6; } | |
8757 | else | |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8759 | $as_echo "no" >&6; } | |
8760 | fi | |
c52df125 AC |
8761 | |
8762 | ||
eec2776c AJ |
8763 | else |
8764 | MAGIC_CMD=: | |
8765 | fi | |
8766 | fi | |
c52df125 | 8767 | |
c52df125 AC |
8768 | fi |
8769 | ;; | |
8770 | esac | |
8771 | ||
eec2776c | 8772 | # Use C for the default configuration in the libtool script |
c52df125 | 8773 | |
eec2776c AJ |
8774 | lt_save_CC="$CC" |
8775 | ac_ext=c | |
8776 | ac_cpp='$CPP $CPPFLAGS' | |
8777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
8780 | |
8781 | ||
eec2776c AJ |
8782 | # Source file extension for C test sources. |
8783 | ac_ext=c | |
c52df125 | 8784 | |
eec2776c AJ |
8785 | # Object file extension for compiled C test sources. |
8786 | objext=o | |
8787 | objext=$objext | |
c52df125 | 8788 | |
eec2776c AJ |
8789 | # Code to be used in simple compile tests |
8790 | lt_simple_compile_test_code="int some_variable = 0;" | |
c52df125 | 8791 | |
eec2776c AJ |
8792 | # Code to be used in simple link tests |
8793 | lt_simple_link_test_code='int main(){return(0);}' | |
c52df125 AC |
8794 | |
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | ||
8800 | ||
eec2776c AJ |
8801 | # If no C compiler was specified, use CC. |
8802 | LTCC=${LTCC-"$CC"} | |
c52df125 | 8803 | |
eec2776c AJ |
8804 | # If no C compiler flags were specified, use CFLAGS. |
8805 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 8806 | |
eec2776c AJ |
8807 | # Allow CC to be a program name with arguments. |
8808 | compiler=$CC | |
c52df125 | 8809 | |
eec2776c AJ |
8810 | # Save the default compiler, since it gets overwritten when the other |
8811 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8812 | compiler_DEFAULT=$CC | |
c52df125 | 8813 | |
eec2776c AJ |
8814 | # save warnings/boilerplate of simple test code |
8815 | ac_outfile=conftest.$ac_objext | |
8816 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8817 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8818 | _lt_compiler_boilerplate=`cat conftest.err` | |
8819 | $RM conftest* | |
c52df125 | 8820 | |
eec2776c AJ |
8821 | ac_outfile=conftest.$ac_objext |
8822 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8823 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8824 | _lt_linker_boilerplate=`cat conftest.err` | |
8825 | $RM -r conftest* | |
c52df125 AC |
8826 | |
8827 | ||
eec2776c AJ |
8828 | ## CAVEAT EMPTOR: |
8829 | ## There is no encapsulation within the following macros, do not change | |
8830 | ## the running order or otherwise move them around unless you know exactly | |
8831 | ## what you are doing... | |
8832 | if test -n "$compiler"; then | |
c52df125 | 8833 | |
eec2776c | 8834 | lt_prog_compiler_no_builtin_flag= |
c52df125 | 8835 | |
eec2776c AJ |
8836 | if test "$GCC" = yes; then |
8837 | case $cc_basename in | |
8838 | nvcc*) | |
8839 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8840 | *) | |
8841 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8842 | esac | |
c52df125 | 8843 | |
eec2776c AJ |
8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8845 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8846 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8847 | $as_echo_n "(cached) " >&6 | |
8848 | else | |
8849 | lt_cv_prog_compiler_rtti_exceptions=no | |
8850 | ac_outfile=conftest.$ac_objext | |
8851 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8852 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8853 | # Insert the option either (1) after the last *FLAGS variable, or | |
8854 | # (2) before a word containing "conftest.", or (3) at the end. | |
8855 | # Note that $ac_compile itself does not contain backslashes and begins | |
8856 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8857 | # The option is referenced via a variable to avoid confusing sed. | |
8858 | lt_compile=`echo "$ac_compile" | $SED \ | |
8859 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8860 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8861 | -e 's:$: $lt_compiler_flag:'` | |
8862 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8863 | (eval "$lt_compile" 2>conftest.err) | |
8864 | ac_status=$? | |
8865 | cat conftest.err >&5 | |
8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8867 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8868 | # The compiler can only warn and ignore the option if not recognized | |
8869 | # So say no if there are warnings other than the usual output. | |
8870 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8871 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8872 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8873 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8874 | fi | |
8875 | fi | |
8876 | $RM conftest* | |
c52df125 | 8877 | |
eec2776c AJ |
8878 | fi |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8880 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
c52df125 | 8881 | |
eec2776c AJ |
8882 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8883 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8884 | else | |
8885 | : | |
8886 | fi | |
c52df125 | 8887 | |
eec2776c | 8888 | fi |
c52df125 AC |
8889 | |
8890 | ||
8891 | ||
8892 | ||
8893 | ||
8894 | ||
eec2776c AJ |
8895 | lt_prog_compiler_wl= |
8896 | lt_prog_compiler_pic= | |
8897 | lt_prog_compiler_static= | |
c52df125 AC |
8898 | |
8899 | ||
eec2776c AJ |
8900 | if test "$GCC" = yes; then |
8901 | lt_prog_compiler_wl='-Wl,' | |
8902 | lt_prog_compiler_static='-static' | |
c52df125 | 8903 | |
eec2776c AJ |
8904 | case $host_os in |
8905 | aix*) | |
8906 | # All AIX code is PIC. | |
8907 | if test "$host_cpu" = ia64; then | |
8908 | # AIX 5 now supports IA64 processor | |
8909 | lt_prog_compiler_static='-Bstatic' | |
8910 | fi | |
8911 | ;; | |
c52df125 | 8912 | |
eec2776c AJ |
8913 | amigaos*) |
8914 | case $host_cpu in | |
8915 | powerpc) | |
8916 | # see comment about AmigaOS4 .so support | |
8917 | lt_prog_compiler_pic='-fPIC' | |
8918 | ;; | |
8919 | m68k) | |
8920 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8921 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8922 | # like `-m68040'. | |
8923 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8924 | ;; | |
8925 | esac | |
8926 | ;; | |
c52df125 | 8927 | |
eec2776c AJ |
8928 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8929 | # PIC is the default for these OSes. | |
8930 | ;; | |
c52df125 | 8931 | |
eec2776c AJ |
8932 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8933 | # This hack is so that the source file can tell whether it is being | |
8934 | # built for inclusion in a dll (and should export symbols for example). | |
8935 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8936 | # (--disable-auto-import) libraries | |
8937 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8938 | ;; | |
c52df125 | 8939 | |
eec2776c AJ |
8940 | darwin* | rhapsody*) |
8941 | # PIC is the default on this platform | |
8942 | # Common symbols not allowed in MH_DYLIB files | |
8943 | lt_prog_compiler_pic='-fno-common' | |
8944 | ;; | |
c52df125 | 8945 | |
eec2776c AJ |
8946 | haiku*) |
8947 | # PIC is the default for Haiku. | |
8948 | # The "-static" flag exists, but is broken. | |
8949 | lt_prog_compiler_static= | |
8950 | ;; | |
c52df125 | 8951 | |
eec2776c AJ |
8952 | hpux*) |
8953 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8954 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8955 | # sets the default TLS model and affects inlining. | |
8956 | case $host_cpu in | |
8957 | hppa*64*) | |
8958 | # +Z the default | |
8959 | ;; | |
8960 | *) | |
8961 | lt_prog_compiler_pic='-fPIC' | |
8962 | ;; | |
8963 | esac | |
8964 | ;; | |
c52df125 | 8965 | |
eec2776c AJ |
8966 | interix[3-9]*) |
8967 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8968 | # Instead, we relocate shared libraries at runtime. | |
8969 | ;; | |
c52df125 | 8970 | |
eec2776c AJ |
8971 | msdosdjgpp*) |
8972 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8973 | # on systems that don't support them. | |
8974 | lt_prog_compiler_can_build_shared=no | |
8975 | enable_shared=no | |
8976 | ;; | |
c52df125 | 8977 | |
eec2776c AJ |
8978 | *nto* | *qnx*) |
8979 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8980 | # it will coredump. | |
8981 | lt_prog_compiler_pic='-fPIC -shared' | |
8982 | ;; | |
c52df125 | 8983 | |
eec2776c AJ |
8984 | sysv4*MP*) |
8985 | if test -d /usr/nec; then | |
8986 | lt_prog_compiler_pic=-Kconform_pic | |
8987 | fi | |
8988 | ;; | |
c52df125 | 8989 | |
eec2776c AJ |
8990 | *) |
8991 | lt_prog_compiler_pic='-fPIC' | |
8992 | ;; | |
8993 | esac | |
c52df125 | 8994 | |
eec2776c AJ |
8995 | case $cc_basename in |
8996 | nvcc*) # Cuda Compiler Driver 2.2 | |
8997 | lt_prog_compiler_wl='-Xlinker ' | |
8998 | if test -n "$lt_prog_compiler_pic"; then | |
8999 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9000 | fi | |
9001 | ;; | |
9002 | esac | |
9003 | else | |
9004 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9005 | case $host_os in | |
9006 | aix*) | |
9007 | lt_prog_compiler_wl='-Wl,' | |
9008 | if test "$host_cpu" = ia64; then | |
9009 | # AIX 5 now supports IA64 processor | |
9010 | lt_prog_compiler_static='-Bstatic' | |
9011 | else | |
9012 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9013 | fi | |
9014 | ;; | |
c52df125 | 9015 | |
eec2776c AJ |
9016 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9017 | # This hack is so that the source file can tell whether it is being | |
9018 | # built for inclusion in a dll (and should export symbols for example). | |
9019 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9020 | ;; | |
c52df125 | 9021 | |
eec2776c AJ |
9022 | hpux9* | hpux10* | hpux11*) |
9023 | lt_prog_compiler_wl='-Wl,' | |
9024 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9025 | # not for PA HP-UX. | |
9026 | case $host_cpu in | |
9027 | hppa*64*|ia64*) | |
9028 | # +Z the default | |
9029 | ;; | |
9030 | *) | |
9031 | lt_prog_compiler_pic='+Z' | |
9032 | ;; | |
9033 | esac | |
9034 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9035 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9036 | ;; | |
c52df125 | 9037 | |
eec2776c AJ |
9038 | irix5* | irix6* | nonstopux*) |
9039 | lt_prog_compiler_wl='-Wl,' | |
9040 | # PIC (with -KPIC) is the default. | |
9041 | lt_prog_compiler_static='-non_shared' | |
9042 | ;; | |
c52df125 | 9043 | |
eec2776c AJ |
9044 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9045 | case $cc_basename in | |
9046 | # old Intel for x86_64 which still supported -KPIC. | |
9047 | ecc*) | |
9048 | lt_prog_compiler_wl='-Wl,' | |
9049 | lt_prog_compiler_pic='-KPIC' | |
9050 | lt_prog_compiler_static='-static' | |
9051 | ;; | |
9052 | # icc used to be incompatible with GCC. | |
9053 | # ICC 10 doesn't accept -KPIC any more. | |
9054 | icc* | ifort*) | |
9055 | lt_prog_compiler_wl='-Wl,' | |
9056 | lt_prog_compiler_pic='-fPIC' | |
9057 | lt_prog_compiler_static='-static' | |
9058 | ;; | |
9059 | # Lahey Fortran 8.1. | |
9060 | lf95*) | |
9061 | lt_prog_compiler_wl='-Wl,' | |
9062 | lt_prog_compiler_pic='--shared' | |
9063 | lt_prog_compiler_static='--static' | |
9064 | ;; | |
9065 | nagfor*) | |
9066 | # NAG Fortran compiler | |
9067 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9068 | lt_prog_compiler_pic='-PIC' | |
9069 | lt_prog_compiler_static='-Bstatic' | |
9070 | ;; | |
9071 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9072 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9073 | # which looks to be a dead project) | |
9074 | lt_prog_compiler_wl='-Wl,' | |
9075 | lt_prog_compiler_pic='-fpic' | |
9076 | lt_prog_compiler_static='-Bstatic' | |
9077 | ;; | |
9078 | ccc*) | |
9079 | lt_prog_compiler_wl='-Wl,' | |
9080 | # All Alpha code is PIC. | |
9081 | lt_prog_compiler_static='-non_shared' | |
9082 | ;; | |
9083 | xl* | bgxl* | bgf* | mpixl*) | |
9084 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9085 | lt_prog_compiler_wl='-Wl,' | |
9086 | lt_prog_compiler_pic='-qpic' | |
9087 | lt_prog_compiler_static='-qstaticlink' | |
9088 | ;; | |
9089 | *) | |
9090 | case `$CC -V 2>&1 | sed 5q` in | |
9091 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9092 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9093 | lt_prog_compiler_pic='-KPIC' | |
9094 | lt_prog_compiler_static='-Bstatic' | |
9095 | lt_prog_compiler_wl='' | |
9096 | ;; | |
9097 | *Sun\ F* | *Sun*Fortran*) | |
9098 | lt_prog_compiler_pic='-KPIC' | |
9099 | lt_prog_compiler_static='-Bstatic' | |
9100 | lt_prog_compiler_wl='-Qoption ld ' | |
9101 | ;; | |
9102 | *Sun\ C*) | |
9103 | # Sun C 5.9 | |
9104 | lt_prog_compiler_pic='-KPIC' | |
9105 | lt_prog_compiler_static='-Bstatic' | |
9106 | lt_prog_compiler_wl='-Wl,' | |
9107 | ;; | |
9108 | *Intel*\ [CF]*Compiler*) | |
9109 | lt_prog_compiler_wl='-Wl,' | |
9110 | lt_prog_compiler_pic='-fPIC' | |
9111 | lt_prog_compiler_static='-static' | |
9112 | ;; | |
9113 | *Portland\ Group*) | |
9114 | lt_prog_compiler_wl='-Wl,' | |
9115 | lt_prog_compiler_pic='-fpic' | |
9116 | lt_prog_compiler_static='-Bstatic' | |
9117 | ;; | |
9118 | esac | |
9119 | ;; | |
9120 | esac | |
9121 | ;; | |
c52df125 | 9122 | |
eec2776c AJ |
9123 | newsos6) |
9124 | lt_prog_compiler_pic='-KPIC' | |
9125 | lt_prog_compiler_static='-Bstatic' | |
9126 | ;; | |
c52df125 | 9127 | |
eec2776c AJ |
9128 | *nto* | *qnx*) |
9129 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9130 | # it will coredump. | |
9131 | lt_prog_compiler_pic='-fPIC -shared' | |
9132 | ;; | |
c52df125 | 9133 | |
eec2776c AJ |
9134 | osf3* | osf4* | osf5*) |
9135 | lt_prog_compiler_wl='-Wl,' | |
9136 | # All OSF/1 code is PIC. | |
9137 | lt_prog_compiler_static='-non_shared' | |
9138 | ;; | |
c52df125 | 9139 | |
eec2776c AJ |
9140 | rdos*) |
9141 | lt_prog_compiler_static='-non_shared' | |
9142 | ;; | |
c52df125 | 9143 | |
eec2776c AJ |
9144 | solaris*) |
9145 | lt_prog_compiler_pic='-KPIC' | |
9146 | lt_prog_compiler_static='-Bstatic' | |
9147 | case $cc_basename in | |
9148 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9149 | lt_prog_compiler_wl='-Qoption ld ';; | |
9150 | *) | |
9151 | lt_prog_compiler_wl='-Wl,';; | |
9152 | esac | |
9153 | ;; | |
c52df125 | 9154 | |
eec2776c AJ |
9155 | sunos4*) |
9156 | lt_prog_compiler_wl='-Qoption ld ' | |
9157 | lt_prog_compiler_pic='-PIC' | |
9158 | lt_prog_compiler_static='-Bstatic' | |
9159 | ;; | |
c52df125 | 9160 | |
eec2776c AJ |
9161 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9162 | lt_prog_compiler_wl='-Wl,' | |
9163 | lt_prog_compiler_pic='-KPIC' | |
9164 | lt_prog_compiler_static='-Bstatic' | |
9165 | ;; | |
c52df125 | 9166 | |
eec2776c AJ |
9167 | sysv4*MP*) |
9168 | if test -d /usr/nec ;then | |
9169 | lt_prog_compiler_pic='-Kconform_pic' | |
9170 | lt_prog_compiler_static='-Bstatic' | |
9171 | fi | |
9172 | ;; | |
c52df125 | 9173 | |
eec2776c AJ |
9174 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9175 | lt_prog_compiler_wl='-Wl,' | |
9176 | lt_prog_compiler_pic='-KPIC' | |
9177 | lt_prog_compiler_static='-Bstatic' | |
9178 | ;; | |
c52df125 | 9179 | |
eec2776c AJ |
9180 | unicos*) |
9181 | lt_prog_compiler_wl='-Wl,' | |
9182 | lt_prog_compiler_can_build_shared=no | |
9183 | ;; | |
c52df125 | 9184 | |
eec2776c AJ |
9185 | uts4*) |
9186 | lt_prog_compiler_pic='-pic' | |
9187 | lt_prog_compiler_static='-Bstatic' | |
9188 | ;; | |
c52df125 | 9189 | |
eec2776c AJ |
9190 | *) |
9191 | lt_prog_compiler_can_build_shared=no | |
9192 | ;; | |
9193 | esac | |
9194 | fi | |
c52df125 | 9195 | |
eec2776c AJ |
9196 | case $host_os in |
9197 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9198 | *djgpp*) | |
9199 | lt_prog_compiler_pic= | |
9200 | ;; | |
9201 | *) | |
9202 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9203 | ;; | |
9204 | esac | |
c52df125 | 9205 | |
eec2776c AJ |
9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9207 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9208 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9209 | $as_echo_n "(cached) " >&6 | |
9210 | else | |
9211 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9212 | fi | |
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9214 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9215 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
c52df125 | 9216 | |
eec2776c AJ |
9217 | # |
9218 | # Check to make sure the PIC flag actually works. | |
9219 | # | |
9220 | if test -n "$lt_prog_compiler_pic"; then | |
9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9222 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9223 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9224 | $as_echo_n "(cached) " >&6 | |
9225 | else | |
9226 | lt_cv_prog_compiler_pic_works=no | |
9227 | ac_outfile=conftest.$ac_objext | |
9228 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9229 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9230 | # Insert the option either (1) after the last *FLAGS variable, or | |
9231 | # (2) before a word containing "conftest.", or (3) at the end. | |
9232 | # Note that $ac_compile itself does not contain backslashes and begins | |
9233 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9234 | # The option is referenced via a variable to avoid confusing sed. | |
9235 | lt_compile=`echo "$ac_compile" | $SED \ | |
9236 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9237 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9238 | -e 's:$: $lt_compiler_flag:'` | |
9239 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9240 | (eval "$lt_compile" 2>conftest.err) | |
9241 | ac_status=$? | |
9242 | cat conftest.err >&5 | |
9243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9244 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9245 | # The compiler can only warn and ignore the option if not recognized | |
9246 | # So say no if there are warnings other than the usual output. | |
9247 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9248 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9249 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9250 | lt_cv_prog_compiler_pic_works=yes | |
9251 | fi | |
9252 | fi | |
9253 | $RM conftest* | |
c52df125 | 9254 | |
eec2776c AJ |
9255 | fi |
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9257 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
c52df125 | 9258 | |
eec2776c AJ |
9259 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9260 | case $lt_prog_compiler_pic in | |
9261 | "" | " "*) ;; | |
9262 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9263 | esac | |
9264 | else | |
9265 | lt_prog_compiler_pic= | |
9266 | lt_prog_compiler_can_build_shared=no | |
9267 | fi | |
c52df125 | 9268 | |
eec2776c | 9269 | fi |
c52df125 AC |
9270 | |
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
eec2776c AJ |
9281 | # |
9282 | # Check to make sure the static flag actually works. | |
9283 | # | |
9284 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9286 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9287 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9288 | $as_echo_n "(cached) " >&6 | |
9289 | else | |
9290 | lt_cv_prog_compiler_static_works=no | |
9291 | save_LDFLAGS="$LDFLAGS" | |
9292 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9293 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9294 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9295 | # The linker can only warn and ignore the option if not recognized | |
9296 | # So say no if there are warnings | |
9297 | if test -s conftest.err; then | |
9298 | # Append any errors to the config.log. | |
9299 | cat conftest.err 1>&5 | |
9300 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9301 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9302 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9303 | lt_cv_prog_compiler_static_works=yes | |
9304 | fi | |
9305 | else | |
9306 | lt_cv_prog_compiler_static_works=yes | |
9307 | fi | |
9308 | fi | |
9309 | $RM -r conftest* | |
9310 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 9311 | |
eec2776c AJ |
9312 | fi |
9313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9314 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
c52df125 | 9315 | |
eec2776c AJ |
9316 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9317 | : | |
9318 | else | |
9319 | lt_prog_compiler_static= | |
9320 | fi | |
c52df125 AC |
9321 | |
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
eec2776c AJ |
9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9329 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9330 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9331 | $as_echo_n "(cached) " >&6 | |
9332 | else | |
9333 | lt_cv_prog_compiler_c_o=no | |
9334 | $RM -r conftest 2>/dev/null | |
9335 | mkdir conftest | |
9336 | cd conftest | |
9337 | mkdir out | |
9338 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9339 | |
eec2776c AJ |
9340 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9341 | # Insert the option either (1) after the last *FLAGS variable, or | |
9342 | # (2) before a word containing "conftest.", or (3) at the end. | |
9343 | # Note that $ac_compile itself does not contain backslashes and begins | |
9344 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9345 | lt_compile=`echo "$ac_compile" | $SED \ | |
9346 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9347 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9348 | -e 's:$: $lt_compiler_flag:'` | |
9349 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9350 | (eval "$lt_compile" 2>out/conftest.err) | |
9351 | ac_status=$? | |
9352 | cat out/conftest.err >&5 | |
9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9354 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9355 | then | |
9356 | # The compiler can only warn and ignore the option if not recognized | |
9357 | # So say no if there are warnings | |
9358 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9359 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9360 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9361 | lt_cv_prog_compiler_c_o=yes | |
9362 | fi | |
9363 | fi | |
9364 | chmod u+w . 2>&5 | |
9365 | $RM conftest* | |
9366 | # SGI C++ compiler will create directory out/ii_files/ for | |
9367 | # template instantiation | |
9368 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9369 | $RM out/* && rmdir out | |
9370 | cd .. | |
9371 | $RM -r conftest | |
9372 | $RM conftest* | |
c52df125 | 9373 | |
eec2776c AJ |
9374 | fi |
9375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9376 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9377 | |
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
eec2776c AJ |
9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9384 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9385 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9386 | $as_echo_n "(cached) " >&6 | |
9387 | else | |
9388 | lt_cv_prog_compiler_c_o=no | |
9389 | $RM -r conftest 2>/dev/null | |
9390 | mkdir conftest | |
9391 | cd conftest | |
9392 | mkdir out | |
9393 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9394 | |
eec2776c AJ |
9395 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9396 | # Insert the option either (1) after the last *FLAGS variable, or | |
9397 | # (2) before a word containing "conftest.", or (3) at the end. | |
9398 | # Note that $ac_compile itself does not contain backslashes and begins | |
9399 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9400 | lt_compile=`echo "$ac_compile" | $SED \ | |
9401 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9402 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9403 | -e 's:$: $lt_compiler_flag:'` | |
9404 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9405 | (eval "$lt_compile" 2>out/conftest.err) | |
9406 | ac_status=$? | |
9407 | cat out/conftest.err >&5 | |
9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9409 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9410 | then | |
9411 | # The compiler can only warn and ignore the option if not recognized | |
9412 | # So say no if there are warnings | |
9413 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9414 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9415 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9416 | lt_cv_prog_compiler_c_o=yes | |
9417 | fi | |
9418 | fi | |
9419 | chmod u+w . 2>&5 | |
9420 | $RM conftest* | |
9421 | # SGI C++ compiler will create directory out/ii_files/ for | |
9422 | # template instantiation | |
9423 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9424 | $RM out/* && rmdir out | |
9425 | cd .. | |
9426 | $RM -r conftest | |
9427 | $RM conftest* | |
c52df125 | 9428 | |
eec2776c AJ |
9429 | fi |
9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9431 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9432 | |
9433 | ||
9434 | ||
9435 | ||
eec2776c AJ |
9436 | hard_links="nottested" |
9437 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9438 | # do not overwrite the value of need_locks provided by the user | |
9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9440 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9441 | hard_links=yes | |
9442 | $RM conftest* | |
9443 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9444 | touch conftest.a | |
9445 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9446 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9448 | $as_echo "$hard_links" >&6; } | |
9449 | if test "$hard_links" = no; then | |
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9451 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9452 | need_locks=warn | |
9453 | fi | |
9454 | else | |
9455 | need_locks=no | |
9456 | fi | |
c52df125 AC |
9457 | |
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
eec2776c AJ |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9464 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
c52df125 | 9465 | |
eec2776c AJ |
9466 | runpath_var= |
9467 | allow_undefined_flag= | |
9468 | always_export_symbols=no | |
9469 | archive_cmds= | |
9470 | archive_expsym_cmds= | |
9471 | compiler_needs_object=no | |
9472 | enable_shared_with_static_runtimes=no | |
9473 | export_dynamic_flag_spec= | |
9474 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9475 | hardcode_automatic=no | |
9476 | hardcode_direct=no | |
9477 | hardcode_direct_absolute=no | |
9478 | hardcode_libdir_flag_spec= | |
9479 | hardcode_libdir_separator= | |
9480 | hardcode_minus_L=no | |
9481 | hardcode_shlibpath_var=unsupported | |
9482 | inherit_rpath=no | |
9483 | link_all_deplibs=unknown | |
9484 | module_cmds= | |
9485 | module_expsym_cmds= | |
9486 | old_archive_from_new_cmds= | |
9487 | old_archive_from_expsyms_cmds= | |
9488 | thread_safe_flag_spec= | |
9489 | whole_archive_flag_spec= | |
9490 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9491 | # included in the symbol list | |
9492 | include_expsyms= | |
9493 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9494 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9495 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9496 | # as well as any symbol that contains `d'. | |
9497 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9498 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9499 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9500 | # the symbol is explicitly referenced. Since portable code cannot | |
9501 | # rely on this symbol name, it's probably fine to never include it in | |
9502 | # preloaded symbol tables. | |
9503 | # Exclude shared library initialization/finalization symbols. | |
9504 | extract_expsyms_cmds= | |
c52df125 | 9505 | |
c52df125 | 9506 | case $host_os in |
eec2776c AJ |
9507 | cygwin* | mingw* | pw32* | cegcc*) |
9508 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9509 | # When not using gcc, we currently assume that we are using | |
9510 | # Microsoft Visual C++. | |
9511 | if test "$GCC" != yes; then | |
9512 | with_gnu_ld=no | |
9513 | fi | |
c52df125 | 9514 | ;; |
eec2776c AJ |
9515 | interix*) |
9516 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9517 | with_gnu_ld=yes | |
9518 | ;; | |
9519 | openbsd*) | |
9520 | with_gnu_ld=no | |
9521 | ;; | |
9522 | linux* | k*bsd*-gnu | gnu*) | |
9523 | link_all_deplibs=no | |
c52df125 AC |
9524 | ;; |
9525 | esac | |
c52df125 | 9526 | |
eec2776c | 9527 | ld_shlibs=yes |
c52df125 | 9528 | |
eec2776c AJ |
9529 | # On some targets, GNU ld is compatible enough with the native linker |
9530 | # that we're better off using the native interface for both. | |
9531 | lt_use_gnu_ld_interface=no | |
9532 | if test "$with_gnu_ld" = yes; then | |
c52df125 | 9533 | case $host_os in |
eec2776c AJ |
9534 | aix*) |
9535 | # The AIX port of GNU ld has always aspired to compatibility | |
9536 | # with the native linker. However, as the warning in the GNU ld | |
9537 | # block says, versions before 2.19.5* couldn't really create working | |
9538 | # shared libraries, regardless of the interface used. | |
9539 | case `$LD -v 2>&1` in | |
9540 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9541 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9542 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9543 | *) | |
9544 | lt_use_gnu_ld_interface=yes | |
9545 | ;; | |
9546 | esac | |
9547 | ;; | |
9548 | *) | |
9549 | lt_use_gnu_ld_interface=yes | |
9550 | ;; | |
c52df125 | 9551 | esac |
c52df125 | 9552 | fi |
c52df125 | 9553 | |
eec2776c AJ |
9554 | if test "$lt_use_gnu_ld_interface" = yes; then |
9555 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9556 | wlarc='${wl}' | |
c52df125 | 9557 | |
eec2776c AJ |
9558 | # Set some defaults for GNU ld with shared library support. These |
9559 | # are reset later if shared libraries are not supported. Putting them | |
9560 | # here allows them to be overridden if necessary. | |
9561 | runpath_var=LD_RUN_PATH | |
9562 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9563 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9564 | # ancient GNU ld didn't support --whole-archive et. al. | |
9565 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9566 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9567 | else | |
9568 | whole_archive_flag_spec= | |
9569 | fi | |
9570 | supports_anon_versioning=no | |
9571 | case `$LD -v 2>&1` in | |
9572 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9573 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9574 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9575 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9576 | *\ 2.11.*) ;; # other 2.11 versions | |
9577 | *) supports_anon_versioning=yes ;; | |
9578 | esac | |
c52df125 | 9579 | |
eec2776c AJ |
9580 | # See if GNU ld supports shared libraries. |
9581 | case $host_os in | |
9582 | aix[3-9]*) | |
9583 | # On AIX/PPC, the GNU linker is very broken | |
9584 | if test "$host_cpu" != ia64; then | |
9585 | ld_shlibs=no | |
9586 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9587 | |
eec2776c AJ |
9588 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9589 | *** to be unable to reliably create shared libraries on AIX. | |
9590 | *** Therefore, libtool is disabling shared libraries support. If you | |
9591 | *** really care for shared libraries, you may want to install binutils | |
9592 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9593 | *** You will then need to restart the configuration process. | |
c52df125 | 9594 | |
eec2776c AJ |
9595 | _LT_EOF |
9596 | fi | |
9597 | ;; | |
c52df125 | 9598 | |
eec2776c AJ |
9599 | amigaos*) |
9600 | case $host_cpu in | |
9601 | powerpc) | |
9602 | # see comment about AmigaOS4 .so support | |
9603 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9604 | archive_expsym_cmds='' | |
9605 | ;; | |
9606 | m68k) | |
9607 | 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)' | |
9608 | hardcode_libdir_flag_spec='-L$libdir' | |
9609 | hardcode_minus_L=yes | |
9610 | ;; | |
9611 | esac | |
9612 | ;; | |
c52df125 | 9613 | |
eec2776c AJ |
9614 | beos*) |
9615 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9616 | allow_undefined_flag=unsupported | |
9617 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9618 | # support --undefined. This deserves some investigation. FIXME | |
9619 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9620 | else | |
9621 | ld_shlibs=no | |
9622 | fi | |
c52df125 | 9623 | ;; |
eec2776c AJ |
9624 | |
9625 | cygwin* | mingw* | pw32* | cegcc*) | |
9626 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9627 | # as there is no search path for DLLs. | |
9628 | hardcode_libdir_flag_spec='-L$libdir' | |
9629 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9630 | allow_undefined_flag=unsupported | |
9631 | always_export_symbols=no | |
9632 | enable_shared_with_static_runtimes=yes | |
9633 | 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' | |
9634 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9635 | ||
9636 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9637 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9638 | # If the export-symbols file already is a .def file (1st line | |
9639 | # is EXPORTS), use it as is; otherwise, prepend... | |
9640 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9641 | cp $export_symbols $output_objdir/$soname.def; | |
9642 | else | |
9643 | echo EXPORTS > $output_objdir/$soname.def; | |
9644 | cat $export_symbols >> $output_objdir/$soname.def; | |
9645 | fi~ | |
9646 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9647 | else | |
9648 | ld_shlibs=no | |
9649 | fi | |
c52df125 | 9650 | ;; |
c52df125 | 9651 | |
eec2776c AJ |
9652 | haiku*) |
9653 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9654 | link_all_deplibs=yes | |
9655 | ;; | |
c52df125 | 9656 | |
eec2776c AJ |
9657 | interix[3-9]*) |
9658 | hardcode_direct=no | |
9659 | hardcode_shlibpath_var=no | |
9660 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9661 | export_dynamic_flag_spec='${wl}-E' | |
9662 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9663 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9664 | # default) and relocated if they conflict, which is a slow very memory | |
9665 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9666 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9667 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9668 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9669 | 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' | |
c52df125 | 9670 | ;; |
eec2776c AJ |
9671 | |
9672 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9673 | tmp_diet=no | |
9674 | if test "$host_os" = linux-dietlibc; then | |
9675 | case $cc_basename in | |
9676 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9677 | esac | |
9678 | fi | |
9679 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9680 | && test "$tmp_diet" = no | |
9681 | then | |
9682 | tmp_addflag=' $pic_flag' | |
9683 | tmp_sharedflag='-shared' | |
9684 | case $cc_basename,$host_cpu in | |
9685 | pgcc*) # Portland Group C compiler | |
9686 | 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' | |
9687 | tmp_addflag=' $pic_flag' | |
9688 | ;; | |
9689 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9690 | # Portland Group f77 and f90 compilers | |
9691 | 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' | |
9692 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9693 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9694 | tmp_addflag=' -i_dynamic' ;; | |
9695 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9696 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9697 | ifc* | ifort*) # Intel Fortran compiler | |
9698 | tmp_addflag=' -nofor_main' ;; | |
9699 | lf95*) # Lahey Fortran 8.1 | |
9700 | whole_archive_flag_spec= | |
9701 | tmp_sharedflag='--shared' ;; | |
9702 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9703 | tmp_sharedflag='-qmkshrobj' | |
9704 | tmp_addflag= ;; | |
9705 | nvcc*) # Cuda Compiler Driver 2.2 | |
9706 | 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' | |
9707 | compiler_needs_object=yes | |
9708 | ;; | |
9709 | esac | |
9710 | case `$CC -V 2>&1 | sed 5q` in | |
9711 | *Sun\ C*) # Sun C 5.9 | |
9712 | 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' | |
9713 | compiler_needs_object=yes | |
9714 | tmp_sharedflag='-G' ;; | |
9715 | *Sun\ F*) # Sun Fortran 8.3 | |
9716 | tmp_sharedflag='-G' ;; | |
9717 | esac | |
9718 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9719 | ||
9720 | if test "x$supports_anon_versioning" = xyes; then | |
9721 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9722 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9723 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9724 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9725 | fi | |
9726 | ||
9727 | case $cc_basename in | |
9728 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9729 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9730 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9731 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9732 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9733 | if test "x$supports_anon_versioning" = xyes; then | |
9734 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9735 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9736 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9737 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9738 | fi | |
9739 | ;; | |
9740 | esac | |
9741 | else | |
9742 | ld_shlibs=no | |
9743 | fi | |
c52df125 | 9744 | ;; |
eec2776c AJ |
9745 | |
9746 | netbsd* | netbsdelf*-gnu) | |
9747 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9748 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9749 | wlarc= | |
c52df125 | 9750 | else |
eec2776c AJ |
9751 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9752 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
c52df125 | 9753 | fi |
c52df125 | 9754 | ;; |
c52df125 | 9755 | |
eec2776c AJ |
9756 | solaris*) |
9757 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9758 | ld_shlibs=no | |
9759 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9760 | |
eec2776c AJ |
9761 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9762 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9763 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9764 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9765 | *** your PATH or compiler configuration so that the native linker is | |
9766 | *** used, and then restart. | |
c52df125 | 9767 | |
eec2776c AJ |
9768 | _LT_EOF |
9769 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9770 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9771 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9772 | else | |
9773 | ld_shlibs=no | |
9774 | fi | |
9775 | ;; | |
c52df125 | 9776 | |
eec2776c AJ |
9777 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9778 | case `$LD -v 2>&1` in | |
9779 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9780 | ld_shlibs=no | |
9781 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9782 | |
eec2776c AJ |
9783 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9784 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9785 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9786 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9787 | *** your PATH or compiler configuration so that the native linker is | |
9788 | *** used, and then restart. | |
c52df125 | 9789 | |
eec2776c AJ |
9790 | _LT_EOF |
9791 | ;; | |
9792 | *) | |
9793 | # For security reasons, it is highly recommended that you always | |
9794 | # use absolute paths for naming shared libraries, and exclude the | |
9795 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9796 | # requires that you compile everything twice, which is a pain. | |
9797 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9798 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9799 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9800 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9801 | else | |
9802 | ld_shlibs=no | |
9803 | fi | |
9804 | ;; | |
9805 | esac | |
c52df125 | 9806 | ;; |
eec2776c AJ |
9807 | |
9808 | sunos4*) | |
9809 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9810 | wlarc= | |
9811 | hardcode_direct=yes | |
9812 | hardcode_shlibpath_var=no | |
c52df125 | 9813 | ;; |
c52df125 | 9814 | |
eec2776c AJ |
9815 | *) |
9816 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9817 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9818 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9819 | else | |
9820 | ld_shlibs=no | |
9821 | fi | |
9822 | ;; | |
9823 | esac | |
c52df125 | 9824 | |
eec2776c AJ |
9825 | if test "$ld_shlibs" = no; then |
9826 | runpath_var= | |
9827 | hardcode_libdir_flag_spec= | |
9828 | export_dynamic_flag_spec= | |
9829 | whole_archive_flag_spec= | |
c52df125 | 9830 | fi |
eec2776c AJ |
9831 | else |
9832 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9833 | case $host_os in | |
9834 | aix3*) | |
9835 | allow_undefined_flag=unsupported | |
9836 | always_export_symbols=yes | |
9837 | 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' | |
9838 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9839 | # are no directories specified by -L. | |
9840 | hardcode_minus_L=yes | |
9841 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9842 | # Neither direct hardcoding nor static linking is supported with a | |
9843 | # broken collect2. | |
9844 | hardcode_direct=unsupported | |
9845 | fi | |
9846 | ;; | |
c52df125 | 9847 | |
eec2776c AJ |
9848 | aix[4-9]*) |
9849 | if test "$host_cpu" = ia64; then | |
9850 | # On IA64, the linker does run time linking by default, so we don't | |
9851 | # have to do anything special. | |
9852 | aix_use_runtimelinking=no | |
9853 | exp_sym_flag='-Bexport' | |
9854 | no_entry_flag="" | |
9855 | else | |
9856 | # If we're using GNU nm, then we don't want the "-C" option. | |
9857 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9858 | # Also, AIX nm treats weak defined symbols like other global | |
9859 | # defined symbols, whereas GNU nm marks them as "W". | |
9860 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9861 | 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' | |
c52df125 | 9862 | else |
eec2776c AJ |
9863 | 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' |
9864 | fi | |
9865 | aix_use_runtimelinking=no | |
c52df125 | 9866 | |
eec2776c AJ |
9867 | # Test if we are trying to use run time linking or normal |
9868 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9869 | # need to do runtime linking. | |
9870 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9871 | for ld_flag in $LDFLAGS; do | |
9872 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9873 | aix_use_runtimelinking=yes | |
9874 | break | |
9875 | fi | |
9876 | done | |
9877 | ;; | |
9878 | esac | |
c52df125 | 9879 | |
eec2776c AJ |
9880 | exp_sym_flag='-bexport' |
9881 | no_entry_flag='-bnoentry' | |
9882 | fi | |
c52df125 | 9883 | |
eec2776c AJ |
9884 | # When large executables or shared objects are built, AIX ld can |
9885 | # have problems creating the table of contents. If linking a library | |
9886 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9887 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9888 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
c52df125 | 9889 | |
eec2776c AJ |
9890 | archive_cmds='' |
9891 | hardcode_direct=yes | |
9892 | hardcode_direct_absolute=yes | |
9893 | hardcode_libdir_separator=':' | |
9894 | link_all_deplibs=yes | |
9895 | file_list_spec='${wl}-f,' | |
c52df125 | 9896 | |
eec2776c AJ |
9897 | if test "$GCC" = yes; then |
9898 | case $host_os in aix4.[012]|aix4.[012].*) | |
9899 | # We only want to do this on AIX 4.2 and lower, the check | |
9900 | # below for broken collect2 doesn't work under 4.3+ | |
9901 | collect2name=`${CC} -print-prog-name=collect2` | |
9902 | if test -f "$collect2name" && | |
9903 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9904 | then | |
9905 | # We have reworked collect2 | |
9906 | : | |
9907 | else | |
9908 | # We have old collect2 | |
9909 | hardcode_direct=unsupported | |
9910 | # It fails to find uninstalled libraries when the uninstalled | |
9911 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9912 | # to unsupported forces relinking | |
9913 | hardcode_minus_L=yes | |
9914 | hardcode_libdir_flag_spec='-L$libdir' | |
9915 | hardcode_libdir_separator= | |
9916 | fi | |
9917 | ;; | |
9918 | esac | |
9919 | shared_flag='-shared' | |
9920 | if test "$aix_use_runtimelinking" = yes; then | |
9921 | shared_flag="$shared_flag "'${wl}-G' | |
9922 | fi | |
9923 | link_all_deplibs=no | |
9924 | else | |
9925 | # not using gcc | |
9926 | if test "$host_cpu" = ia64; then | |
9927 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9928 | # chokes on -Wl,-G. The following line is correct: | |
9929 | shared_flag='-G' | |
9930 | else | |
9931 | if test "$aix_use_runtimelinking" = yes; then | |
9932 | shared_flag='${wl}-G' | |
9933 | else | |
9934 | shared_flag='${wl}-bM:SRE' | |
9935 | fi | |
9936 | fi | |
9937 | fi | |
9938 | ||
9939 | export_dynamic_flag_spec='${wl}-bexpall' | |
9940 | # It seems that -bexpall does not export symbols beginning with | |
9941 | # underscore (_), so it is better to generate a list of symbols to export. | |
9942 | always_export_symbols=yes | |
9943 | if test "$aix_use_runtimelinking" = yes; then | |
9944 | # Warning - without using the other runtime loading flags (-brtl), | |
9945 | # -berok will link without error, but may produce a broken library. | |
9946 | allow_undefined_flag='-berok' | |
9947 | # Determine the default libpath from the value encoded in an | |
9948 | # empty executable. | |
9949 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9950 | aix_libpath=$lt_cv_aix_libpath | |
9951 | else | |
9952 | if ${lt_cv_aix_libpath_+:} false; then : | |
9953 | $as_echo_n "(cached) " >&6 | |
9954 | else | |
9955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9956 | /* end confdefs.h. */ | |
9957 | ||
9958 | int | |
9959 | main () | |
9960 | { | |
9961 | ||
9962 | ; | |
9963 | return 0; | |
9964 | } | |
9965 | _ACEOF | |
c52df125 | 9966 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c AJ |
9967 | |
9968 | lt_aix_libpath_sed=' | |
9969 | /Import File Strings/,/^$/ { | |
9970 | /^0/ { | |
9971 | s/^0 *\([^ ]*\) *$/\1/ | |
9972 | p | |
9973 | } | |
9974 | }' | |
9975 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9976 | # Check for a 64-bit object if we didn't find anything. | |
9977 | if test -z "$lt_cv_aix_libpath_"; then | |
9978 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9979 | fi | |
c52df125 AC |
9980 | fi |
9981 | rm -f core conftest.err conftest.$ac_objext \ | |
9982 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
9983 | if test -z "$lt_cv_aix_libpath_"; then |
9984 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9985 | fi | |
c52df125 AC |
9986 | |
9987 | fi | |
9988 | ||
eec2776c AJ |
9989 | aix_libpath=$lt_cv_aix_libpath_ |
9990 | fi | |
c52df125 | 9991 | |
eec2776c AJ |
9992 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9993 | 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" | |
9994 | else | |
9995 | if test "$host_cpu" = ia64; then | |
9996 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9997 | allow_undefined_flag="-z nodefs" | |
9998 | 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" | |
9999 | else | |
10000 | # Determine the default libpath from the value encoded in an | |
10001 | # empty executable. | |
10002 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10003 | aix_libpath=$lt_cv_aix_libpath | |
10004 | else | |
10005 | if ${lt_cv_aix_libpath_+:} false; then : | |
10006 | $as_echo_n "(cached) " >&6 | |
10007 | else | |
10008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10009 | /* end confdefs.h. */ | |
c52df125 | 10010 | |
eec2776c AJ |
10011 | int |
10012 | main () | |
10013 | { | |
c52df125 | 10014 | |
eec2776c AJ |
10015 | ; |
10016 | return 0; | |
10017 | } | |
10018 | _ACEOF | |
10019 | if ac_fn_c_try_link "$LINENO"; then : | |
c52df125 | 10020 | |
eec2776c AJ |
10021 | lt_aix_libpath_sed=' |
10022 | /Import File Strings/,/^$/ { | |
10023 | /^0/ { | |
10024 | s/^0 *\([^ ]*\) *$/\1/ | |
10025 | p | |
10026 | } | |
10027 | }' | |
10028 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10029 | # Check for a 64-bit object if we didn't find anything. | |
10030 | if test -z "$lt_cv_aix_libpath_"; then | |
10031 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
c52df125 | 10032 | fi |
eec2776c AJ |
10033 | fi |
10034 | rm -f core conftest.err conftest.$ac_objext \ | |
10035 | conftest$ac_exeext conftest.$ac_ext | |
10036 | if test -z "$lt_cv_aix_libpath_"; then | |
10037 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
c52df125 | 10038 | fi |
c52df125 | 10039 | |
eec2776c | 10040 | fi |
c52df125 | 10041 | |
eec2776c AJ |
10042 | aix_libpath=$lt_cv_aix_libpath_ |
10043 | fi | |
c52df125 | 10044 | |
eec2776c AJ |
10045 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10046 | # Warning - without using the other run time loading flags, | |
10047 | # -berok will link without error, but may produce a broken library. | |
10048 | no_undefined_flag=' ${wl}-bernotok' | |
10049 | allow_undefined_flag=' ${wl}-berok' | |
10050 | if test "$with_gnu_ld" = yes; then | |
10051 | # We only use this code for GNU lds that support --whole-archive. | |
10052 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10053 | else | |
10054 | # Exported symbols can be pulled into shared objects from archives | |
10055 | whole_archive_flag_spec='$convenience' | |
10056 | fi | |
10057 | archive_cmds_need_lc=yes | |
10058 | # This is similar to how AIX traditionally builds its shared libraries. | |
10059 | 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' | |
10060 | fi | |
10061 | fi | |
c52df125 | 10062 | ;; |
eec2776c AJ |
10063 | |
10064 | amigaos*) | |
10065 | case $host_cpu in | |
10066 | powerpc) | |
10067 | # see comment about AmigaOS4 .so support | |
10068 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10069 | archive_expsym_cmds='' | |
10070 | ;; | |
10071 | m68k) | |
10072 | 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)' | |
10073 | hardcode_libdir_flag_spec='-L$libdir' | |
10074 | hardcode_minus_L=yes | |
10075 | ;; | |
10076 | esac | |
c52df125 | 10077 | ;; |
c52df125 | 10078 | |
eec2776c AJ |
10079 | bsdi[45]*) |
10080 | export_dynamic_flag_spec=-rdynamic | |
10081 | ;; | |
c52df125 | 10082 | |
eec2776c AJ |
10083 | cygwin* | mingw* | pw32* | cegcc*) |
10084 | # When not using gcc, we currently assume that we are using | |
10085 | # Microsoft Visual C++. | |
10086 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10087 | # no search path for DLLs. | |
10088 | case $cc_basename in | |
10089 | cl*) | |
10090 | # Native MSVC | |
10091 | hardcode_libdir_flag_spec=' ' | |
10092 | allow_undefined_flag=unsupported | |
10093 | always_export_symbols=yes | |
10094 | file_list_spec='@' | |
10095 | # Tell ltmain to make .lib files, not .a files. | |
10096 | libext=lib | |
10097 | # Tell ltmain to make .dll files, not .so files. | |
10098 | shrext_cmds=".dll" | |
10099 | # FIXME: Setting linknames here is a bad hack. | |
10100 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10101 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10102 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10103 | else | |
10104 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10105 | fi~ | |
10106 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10107 | linknames=' | |
10108 | # The linker will not automatically build a static lib if we build a DLL. | |
10109 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10110 | enable_shared_with_static_runtimes=yes | |
10111 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10112 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10113 | # Don't use ranlib | |
10114 | old_postinstall_cmds='chmod 644 $oldlib' | |
10115 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10116 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10117 | case $lt_outputfile in | |
10118 | *.exe|*.EXE) ;; | |
10119 | *) | |
10120 | lt_outputfile="$lt_outputfile.exe" | |
10121 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10122 | ;; | |
10123 | esac~ | |
10124 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10125 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10126 | $RM "$lt_outputfile.manifest"; | |
10127 | fi' | |
c52df125 | 10128 | ;; |
eec2776c AJ |
10129 | *) |
10130 | # Assume MSVC wrapper | |
10131 | hardcode_libdir_flag_spec=' ' | |
10132 | allow_undefined_flag=unsupported | |
10133 | # Tell ltmain to make .lib files, not .a files. | |
10134 | libext=lib | |
10135 | # Tell ltmain to make .dll files, not .so files. | |
10136 | shrext_cmds=".dll" | |
10137 | # FIXME: Setting linknames here is a bad hack. | |
10138 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10139 | # The linker will automatically build a .lib file if we build a DLL. | |
10140 | old_archive_from_new_cmds='true' | |
10141 | # FIXME: Should let the user specify the lib program. | |
10142 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10143 | enable_shared_with_static_runtimes=yes | |
10144 | ;; | |
10145 | esac | |
10146 | ;; | |
c52df125 | 10147 | |
eec2776c | 10148 | darwin* | rhapsody*) |
c52df125 AC |
10149 | |
10150 | ||
eec2776c AJ |
10151 | archive_cmds_need_lc=no |
10152 | hardcode_direct=no | |
10153 | hardcode_automatic=yes | |
10154 | hardcode_shlibpath_var=unsupported | |
10155 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10156 | 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\"`' | |
c52df125 | 10157 | |
eec2776c AJ |
10158 | else |
10159 | whole_archive_flag_spec='' | |
10160 | fi | |
10161 | link_all_deplibs=yes | |
10162 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10163 | case $cc_basename in | |
10164 | ifort*) _lt_dar_can_shared=yes ;; | |
10165 | *) _lt_dar_can_shared=$GCC ;; | |
10166 | esac | |
10167 | if test "$_lt_dar_can_shared" = "yes"; then | |
10168 | output_verbose_link_cmd=func_echo_all | |
10169 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10170 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10171 | 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}" | |
10172 | 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}" | |
c52df125 | 10173 | |
eec2776c AJ |
10174 | else |
10175 | ld_shlibs=no | |
10176 | fi | |
c52df125 | 10177 | |
eec2776c | 10178 | ;; |
c52df125 | 10179 | |
eec2776c AJ |
10180 | dgux*) |
10181 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10182 | hardcode_libdir_flag_spec='-L$libdir' | |
10183 | hardcode_shlibpath_var=no | |
10184 | ;; | |
c52df125 | 10185 | |
eec2776c AJ |
10186 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10187 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10188 | # does not break anything, and helps significantly (at the cost of a little | |
10189 | # extra space). | |
10190 | freebsd2.2*) | |
10191 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10192 | hardcode_libdir_flag_spec='-R$libdir' | |
10193 | hardcode_direct=yes | |
10194 | hardcode_shlibpath_var=no | |
10195 | ;; | |
c52df125 | 10196 | |
eec2776c AJ |
10197 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10198 | freebsd2.*) | |
10199 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10200 | hardcode_direct=yes | |
10201 | hardcode_minus_L=yes | |
10202 | hardcode_shlibpath_var=no | |
10203 | ;; | |
c52df125 | 10204 | |
eec2776c AJ |
10205 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10206 | freebsd* | dragonfly*) | |
10207 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10208 | hardcode_libdir_flag_spec='-R$libdir' | |
10209 | hardcode_direct=yes | |
10210 | hardcode_shlibpath_var=no | |
10211 | ;; | |
c52df125 | 10212 | |
eec2776c AJ |
10213 | hpux9*) |
10214 | if test "$GCC" = yes; then | |
10215 | 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' | |
10216 | else | |
10217 | 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' | |
10218 | fi | |
10219 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10220 | hardcode_libdir_separator=: | |
10221 | hardcode_direct=yes | |
c52df125 | 10222 | |
eec2776c AJ |
10223 | # hardcode_minus_L: Not really in the search PATH, |
10224 | # but as the default location of the library. | |
10225 | hardcode_minus_L=yes | |
10226 | export_dynamic_flag_spec='${wl}-E' | |
10227 | ;; | |
c52df125 | 10228 | |
eec2776c AJ |
10229 | hpux10*) |
10230 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10231 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10232 | else | |
10233 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10234 | fi | |
10235 | if test "$with_gnu_ld" = no; then | |
10236 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10237 | hardcode_libdir_separator=: | |
10238 | hardcode_direct=yes | |
10239 | hardcode_direct_absolute=yes | |
10240 | export_dynamic_flag_spec='${wl}-E' | |
10241 | # hardcode_minus_L: Not really in the search PATH, | |
10242 | # but as the default location of the library. | |
10243 | hardcode_minus_L=yes | |
10244 | fi | |
10245 | ;; | |
c52df125 | 10246 | |
eec2776c AJ |
10247 | hpux11*) |
10248 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10249 | case $host_cpu in | |
10250 | hppa*64*) | |
10251 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10252 | ;; | |
10253 | ia64*) | |
10254 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10255 | ;; | |
10256 | *) | |
10257 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10258 | ;; | |
10259 | esac | |
10260 | else | |
10261 | case $host_cpu in | |
10262 | hppa*64*) | |
10263 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10264 | ;; | |
10265 | ia64*) | |
10266 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10267 | ;; | |
10268 | *) | |
c52df125 | 10269 | |
eec2776c AJ |
10270 | # Older versions of the 11.00 compiler do not understand -b yet |
10271 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10273 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10274 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10275 | $as_echo_n "(cached) " >&6 | |
10276 | else | |
10277 | lt_cv_prog_compiler__b=no | |
10278 | save_LDFLAGS="$LDFLAGS" | |
10279 | LDFLAGS="$LDFLAGS -b" | |
10280 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10281 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10282 | # The linker can only warn and ignore the option if not recognized | |
10283 | # So say no if there are warnings | |
10284 | if test -s conftest.err; then | |
10285 | # Append any errors to the config.log. | |
10286 | cat conftest.err 1>&5 | |
10287 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10288 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10289 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10290 | lt_cv_prog_compiler__b=yes | |
10291 | fi | |
10292 | else | |
10293 | lt_cv_prog_compiler__b=yes | |
10294 | fi | |
10295 | fi | |
10296 | $RM -r conftest* | |
10297 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 10298 | |
eec2776c AJ |
10299 | fi |
10300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10301 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
c52df125 | 10302 | |
eec2776c AJ |
10303 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10304 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10305 | else | |
10306 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10307 | fi | |
c52df125 | 10308 | |
eec2776c AJ |
10309 | ;; |
10310 | esac | |
10311 | fi | |
10312 | if test "$with_gnu_ld" = no; then | |
10313 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10314 | hardcode_libdir_separator=: | |
c52df125 | 10315 | |
eec2776c AJ |
10316 | case $host_cpu in |
10317 | hppa*64*|ia64*) | |
10318 | hardcode_direct=no | |
10319 | hardcode_shlibpath_var=no | |
10320 | ;; | |
10321 | *) | |
10322 | hardcode_direct=yes | |
10323 | hardcode_direct_absolute=yes | |
10324 | export_dynamic_flag_spec='${wl}-E' | |
c52df125 | 10325 | |
eec2776c AJ |
10326 | # hardcode_minus_L: Not really in the search PATH, |
10327 | # but as the default location of the library. | |
10328 | hardcode_minus_L=yes | |
10329 | ;; | |
10330 | esac | |
10331 | fi | |
10332 | ;; | |
c52df125 | 10333 | |
eec2776c AJ |
10334 | irix5* | irix6* | nonstopux*) |
10335 | if test "$GCC" = yes; then | |
10336 | 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' | |
10337 | # Try to use the -exported_symbol ld option, if it does not | |
10338 | # work, assume that -exports_file does not work either and | |
10339 | # implicitly export all symbols. | |
10340 | # This should be the same for all languages, so no per-tag cache variable. | |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10342 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10343 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10344 | $as_echo_n "(cached) " >&6 | |
10345 | else | |
10346 | save_LDFLAGS="$LDFLAGS" | |
10347 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10349 | /* end confdefs.h. */ | |
10350 | int foo (void) { return 0; } | |
10351 | _ACEOF | |
10352 | if ac_fn_c_try_link "$LINENO"; then : | |
10353 | lt_cv_irix_exported_symbol=yes | |
10354 | else | |
10355 | lt_cv_irix_exported_symbol=no | |
10356 | fi | |
10357 | rm -f core conftest.err conftest.$ac_objext \ | |
10358 | conftest$ac_exeext conftest.$ac_ext | |
10359 | LDFLAGS="$save_LDFLAGS" | |
10360 | fi | |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10362 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10363 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10364 | 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' | |
10365 | fi | |
10366 | else | |
10367 | 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' | |
10368 | 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' | |
10369 | fi | |
10370 | archive_cmds_need_lc='no' | |
10371 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10372 | hardcode_libdir_separator=: | |
10373 | inherit_rpath=yes | |
10374 | link_all_deplibs=yes | |
10375 | ;; | |
c52df125 | 10376 | |
eec2776c AJ |
10377 | netbsd* | netbsdelf*-gnu) |
10378 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10379 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10380 | else | |
10381 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10382 | fi | |
10383 | hardcode_libdir_flag_spec='-R$libdir' | |
10384 | hardcode_direct=yes | |
10385 | hardcode_shlibpath_var=no | |
10386 | ;; | |
c52df125 | 10387 | |
eec2776c AJ |
10388 | newsos6) |
10389 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10390 | hardcode_direct=yes | |
10391 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10392 | hardcode_libdir_separator=: | |
10393 | hardcode_shlibpath_var=no | |
10394 | ;; | |
c52df125 | 10395 | |
eec2776c AJ |
10396 | *nto* | *qnx*) |
10397 | ;; | |
c52df125 | 10398 | |
eec2776c AJ |
10399 | openbsd*) |
10400 | if test -f /usr/libexec/ld.so; then | |
10401 | hardcode_direct=yes | |
10402 | hardcode_shlibpath_var=no | |
10403 | hardcode_direct_absolute=yes | |
10404 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10405 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10406 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10407 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10408 | export_dynamic_flag_spec='${wl}-E' | |
10409 | else | |
10410 | case $host_os in | |
10411 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10412 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10413 | hardcode_libdir_flag_spec='-R$libdir' | |
10414 | ;; | |
10415 | *) | |
10416 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10417 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10418 | ;; | |
10419 | esac | |
10420 | fi | |
10421 | else | |
10422 | ld_shlibs=no | |
10423 | fi | |
10424 | ;; | |
c52df125 | 10425 | |
eec2776c AJ |
10426 | os2*) |
10427 | hardcode_libdir_flag_spec='-L$libdir' | |
10428 | hardcode_minus_L=yes | |
10429 | allow_undefined_flag=unsupported | |
10430 | 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' | |
10431 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10432 | ;; | |
c52df125 | 10433 | |
eec2776c AJ |
10434 | osf3*) |
10435 | if test "$GCC" = yes; then | |
10436 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10437 | 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' | |
10438 | else | |
10439 | allow_undefined_flag=' -expect_unresolved \*' | |
10440 | 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' | |
10441 | fi | |
10442 | archive_cmds_need_lc='no' | |
10443 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10444 | hardcode_libdir_separator=: | |
10445 | ;; | |
c52df125 | 10446 | |
eec2776c AJ |
10447 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10448 | if test "$GCC" = yes; then | |
10449 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10450 | 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' | |
10451 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10452 | else | |
10453 | allow_undefined_flag=' -expect_unresolved \*' | |
10454 | 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' | |
10455 | 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~ | |
10456 | $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' | |
c52df125 | 10457 | |
eec2776c AJ |
10458 | # Both c and cxx compiler support -rpath directly |
10459 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10460 | fi | |
10461 | archive_cmds_need_lc='no' | |
10462 | hardcode_libdir_separator=: | |
10463 | ;; | |
c52df125 | 10464 | |
eec2776c AJ |
10465 | solaris*) |
10466 | no_undefined_flag=' -z defs' | |
10467 | if test "$GCC" = yes; then | |
10468 | wlarc='${wl}' | |
10469 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10470 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10471 | $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' | |
10472 | else | |
10473 | case `$CC -V 2>&1` in | |
10474 | *"Compilers 5.0"*) | |
10475 | wlarc='' | |
10476 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10477 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10478 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10479 | ;; | |
10480 | *) | |
10481 | wlarc='${wl}' | |
10482 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10483 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10484 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10485 | ;; | |
10486 | esac | |
10487 | fi | |
10488 | hardcode_libdir_flag_spec='-R$libdir' | |
10489 | hardcode_shlibpath_var=no | |
10490 | case $host_os in | |
10491 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10492 | *) | |
10493 | # The compiler driver will combine and reorder linker options, | |
10494 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10495 | # but is careful enough not to reorder. | |
10496 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10497 | if test "$GCC" = yes; then | |
10498 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10499 | else | |
10500 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10501 | fi | |
10502 | ;; | |
10503 | esac | |
10504 | link_all_deplibs=yes | |
10505 | ;; | |
c52df125 | 10506 | |
eec2776c AJ |
10507 | sunos4*) |
10508 | if test "x$host_vendor" = xsequent; then | |
10509 | # Use $CC to link under sequent, because it throws in some extra .o | |
10510 | # files that make .init and .fini sections work. | |
10511 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10512 | else | |
10513 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10514 | fi | |
10515 | hardcode_libdir_flag_spec='-L$libdir' | |
10516 | hardcode_direct=yes | |
10517 | hardcode_minus_L=yes | |
10518 | hardcode_shlibpath_var=no | |
10519 | ;; | |
c52df125 | 10520 | |
eec2776c AJ |
10521 | sysv4) |
10522 | case $host_vendor in | |
10523 | sni) | |
10524 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10525 | hardcode_direct=yes # is this really true??? | |
10526 | ;; | |
10527 | siemens) | |
10528 | ## LD is ld it makes a PLAMLIB | |
10529 | ## CC just makes a GrossModule. | |
10530 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10531 | reload_cmds='$CC -r -o $output$reload_objs' | |
10532 | hardcode_direct=no | |
10533 | ;; | |
10534 | motorola) | |
10535 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10536 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10537 | ;; | |
10538 | esac | |
10539 | runpath_var='LD_RUN_PATH' | |
10540 | hardcode_shlibpath_var=no | |
10541 | ;; | |
c52df125 | 10542 | |
eec2776c AJ |
10543 | sysv4.3*) |
10544 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10545 | hardcode_shlibpath_var=no | |
10546 | export_dynamic_flag_spec='-Bexport' | |
10547 | ;; | |
c52df125 | 10548 | |
eec2776c AJ |
10549 | sysv4*MP*) |
10550 | if test -d /usr/nec; then | |
10551 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10552 | hardcode_shlibpath_var=no | |
10553 | runpath_var=LD_RUN_PATH | |
10554 | hardcode_runpath_var=yes | |
10555 | ld_shlibs=yes | |
10556 | fi | |
10557 | ;; | |
c52df125 | 10558 | |
eec2776c AJ |
10559 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10560 | no_undefined_flag='${wl}-z,text' | |
10561 | archive_cmds_need_lc=no | |
10562 | hardcode_shlibpath_var=no | |
10563 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10564 | |
eec2776c AJ |
10565 | if test "$GCC" = yes; then |
10566 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10567 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10568 | else | |
10569 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10570 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10571 | fi | |
10572 | ;; | |
c52df125 | 10573 | |
eec2776c AJ |
10574 | sysv5* | sco3.2v5* | sco5v6*) |
10575 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10576 | # link with -lc, and that would cause any symbols used from libc to | |
10577 | # always be unresolved, which means just about no library would | |
10578 | # ever link correctly. If we're not using GNU ld we use -z text | |
10579 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10580 | # as -z defs. | |
10581 | no_undefined_flag='${wl}-z,text' | |
10582 | allow_undefined_flag='${wl}-z,nodefs' | |
10583 | archive_cmds_need_lc=no | |
10584 | hardcode_shlibpath_var=no | |
10585 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10586 | hardcode_libdir_separator=':' | |
10587 | link_all_deplibs=yes | |
10588 | export_dynamic_flag_spec='${wl}-Bexport' | |
10589 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10590 | |
eec2776c AJ |
10591 | if test "$GCC" = yes; then |
10592 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10593 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10594 | else | |
10595 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10596 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10597 | fi | |
10598 | ;; | |
c52df125 | 10599 | |
eec2776c AJ |
10600 | uts4*) |
10601 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10602 | hardcode_libdir_flag_spec='-L$libdir' | |
10603 | hardcode_shlibpath_var=no | |
10604 | ;; | |
c52df125 | 10605 | |
eec2776c AJ |
10606 | *) |
10607 | ld_shlibs=no | |
10608 | ;; | |
10609 | esac | |
c52df125 | 10610 | |
eec2776c AJ |
10611 | if test x$host_vendor = xsni; then |
10612 | case $host in | |
10613 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10614 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10615 | ;; | |
10616 | esac | |
10617 | fi | |
10618 | fi | |
c52df125 | 10619 | |
eec2776c AJ |
10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10621 | $as_echo "$ld_shlibs" >&6; } | |
10622 | test "$ld_shlibs" = no && can_build_shared=no | |
c52df125 | 10623 | |
eec2776c | 10624 | with_gnu_ld=$with_gnu_ld |
c52df125 AC |
10625 | |
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
eec2776c AJ |
10640 | # |
10641 | # Do we need to explicitly link libc? | |
10642 | # | |
10643 | case "x$archive_cmds_need_lc" in | |
10644 | x|xyes) | |
10645 | # Assume -lc should be added | |
10646 | archive_cmds_need_lc=yes | |
c52df125 | 10647 | |
eec2776c AJ |
10648 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10649 | case $archive_cmds in | |
10650 | *'~'*) | |
10651 | # FIXME: we may have to deal with multi-command sequences. | |
10652 | ;; | |
10653 | '$CC '*) | |
10654 | # Test whether the compiler implicitly links with -lc since on some | |
10655 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10656 | # to ld, don't add -lc before -lgcc. | |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10658 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10659 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10660 | $as_echo_n "(cached) " >&6 | |
10661 | else | |
10662 | $RM conftest* | |
10663 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 10664 | |
eec2776c AJ |
10665 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10666 | (eval $ac_compile) 2>&5 | |
10667 | ac_status=$? | |
10668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10669 | test $ac_status = 0; } 2>conftest.err; then | |
10670 | soname=conftest | |
10671 | lib=conftest | |
10672 | libobjs=conftest.$ac_objext | |
10673 | deplibs= | |
10674 | wl=$lt_prog_compiler_wl | |
10675 | pic_flag=$lt_prog_compiler_pic | |
10676 | compiler_flags=-v | |
10677 | linker_flags=-v | |
10678 | verstring= | |
10679 | output_objdir=. | |
10680 | libname=conftest | |
10681 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10682 | allow_undefined_flag= | |
10683 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10684 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10685 | ac_status=$? | |
10686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10687 | test $ac_status = 0; } | |
10688 | then | |
10689 | lt_cv_archive_cmds_need_lc=no | |
10690 | else | |
10691 | lt_cv_archive_cmds_need_lc=yes | |
10692 | fi | |
10693 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10694 | else | |
10695 | cat conftest.err 1>&5 | |
10696 | fi | |
10697 | $RM conftest* | |
c52df125 | 10698 | |
eec2776c AJ |
10699 | fi |
10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10701 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10702 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10703 | ;; | |
10704 | esac | |
10705 | fi | |
10706 | ;; | |
10707 | esac | |
c52df125 AC |
10708 | |
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
c52df125 | 10716 | |
c52df125 | 10717 | |
c52df125 AC |
10718 | |
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
c52df125 | 10724 | |
c52df125 | 10725 | |
c52df125 | 10726 | |
c52df125 | 10727 | |
c52df125 | 10728 | |
c52df125 | 10729 | |
c52df125 | 10730 | |
c52df125 | 10731 | |
c52df125 | 10732 | |
c52df125 | 10733 | |
c52df125 | 10734 | |
c52df125 | 10735 | |
eec2776c AJ |
10736 | |
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10861 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10862 | ||
10863 | if test "$GCC" = yes; then | |
10864 | case $host_os in | |
10865 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10866 | *) lt_awk_arg="/^libraries:/" ;; | |
10867 | esac | |
10868 | case $host_os in | |
10869 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10870 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10871 | esac | |
10872 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10873 | case $lt_search_path_spec in | |
10874 | *\;*) | |
10875 | # if the path contains ";" then we assume it to be the separator | |
10876 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10877 | # assumed that no part of a normal pathname contains ";" but that should | |
10878 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10879 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10880 | ;; | |
10881 | *) | |
10882 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10883 | ;; | |
10884 | esac | |
10885 | # Ok, now we have the path, separated by spaces, we can step through it | |
10886 | # and add multilib dir if necessary. | |
10887 | lt_tmp_lt_search_path_spec= | |
10888 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10889 | for lt_sys_path in $lt_search_path_spec; do | |
10890 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10891 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10892 | else | |
10893 | test -d "$lt_sys_path" && \ | |
10894 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10895 | fi | |
10896 | done | |
10897 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10898 | BEGIN {RS=" "; FS="/|\n";} { | |
10899 | lt_foo=""; | |
10900 | lt_count=0; | |
10901 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10902 | if ($lt_i != "" && $lt_i != ".") { | |
10903 | if ($lt_i == "..") { | |
10904 | lt_count++; | |
10905 | } else { | |
10906 | if (lt_count == 0) { | |
10907 | lt_foo="/" $lt_i lt_foo; | |
10908 | } else { | |
10909 | lt_count--; | |
10910 | } | |
10911 | } | |
10912 | } | |
10913 | } | |
10914 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10915 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10916 | }'` | |
10917 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10918 | # for these hosts. | |
10919 | case $host_os in | |
10920 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10921 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10922 | esac | |
10923 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10924 | else | |
10925 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10926 | fi | |
10927 | library_names_spec= | |
10928 | libname_spec='lib$name' | |
10929 | soname_spec= | |
10930 | shrext_cmds=".so" | |
10931 | postinstall_cmds= | |
10932 | postuninstall_cmds= | |
10933 | finish_cmds= | |
10934 | finish_eval= | |
10935 | shlibpath_var= | |
10936 | shlibpath_overrides_runpath=unknown | |
10937 | version_type=none | |
10938 | dynamic_linker="$host_os ld.so" | |
10939 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10940 | need_lib_prefix=unknown | |
10941 | hardcode_into_libs=no | |
10942 | ||
10943 | # when you set need_version to no, make sure it does not cause -set_version | |
10944 | # flags to be left without arguments | |
10945 | need_version=unknown | |
10946 | ||
10947 | case $host_os in | |
10948 | aix3*) | |
10949 | version_type=linux # correct to gnu/linux during the next big refactor | |
10950 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10951 | shlibpath_var=LIBPATH | |
10952 | ||
10953 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10954 | soname_spec='${libname}${release}${shared_ext}$major' | |
10955 | ;; | |
10956 | ||
10957 | aix[4-9]*) | |
10958 | version_type=linux # correct to gnu/linux during the next big refactor | |
10959 | need_lib_prefix=no | |
10960 | need_version=no | |
10961 | hardcode_into_libs=yes | |
10962 | if test "$host_cpu" = ia64; then | |
10963 | # AIX 5 supports IA64 | |
10964 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10965 | shlibpath_var=LD_LIBRARY_PATH | |
10966 | else | |
10967 | # With GCC up to 2.95.x, collect2 would create an import file | |
10968 | # for dependence libraries. The import file would start with | |
10969 | # the line `#! .'. This would cause the generated library to | |
10970 | # depend on `.', always an invalid library. This was fixed in | |
10971 | # development snapshots of GCC prior to 3.0. | |
10972 | case $host_os in | |
10973 | aix4 | aix4.[01] | aix4.[01].*) | |
10974 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10975 | echo ' yes ' | |
10976 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10977 | : | |
10978 | else | |
10979 | can_build_shared=no | |
10980 | fi | |
10981 | ;; | |
10982 | esac | |
10983 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10984 | # soname into executable. Probably we can add versioning support to | |
10985 | # collect2, so additional links can be useful in future. | |
10986 | if test "$aix_use_runtimelinking" = yes; then | |
10987 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10988 | # instead of lib<name>.a to let people know that these are not | |
10989 | # typical AIX shared libraries. | |
10990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10991 | else | |
10992 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10993 | # and later when we are not doing run time linking. | |
10994 | library_names_spec='${libname}${release}.a $libname.a' | |
10995 | soname_spec='${libname}${release}${shared_ext}$major' | |
10996 | fi | |
10997 | shlibpath_var=LIBPATH | |
10998 | fi | |
10999 | ;; | |
11000 | ||
11001 | amigaos*) | |
11002 | case $host_cpu in | |
11003 | powerpc) | |
11004 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11005 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11007 | ;; | |
11008 | m68k) | |
11009 | library_names_spec='$libname.ixlibrary $libname.a' | |
11010 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11011 | 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' | |
11012 | ;; | |
11013 | esac | |
11014 | ;; | |
11015 | ||
11016 | beos*) | |
11017 | library_names_spec='${libname}${shared_ext}' | |
11018 | dynamic_linker="$host_os ld.so" | |
11019 | shlibpath_var=LIBRARY_PATH | |
11020 | ;; | |
11021 | ||
11022 | bsdi[45]*) | |
11023 | version_type=linux # correct to gnu/linux during the next big refactor | |
11024 | need_version=no | |
11025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11026 | soname_spec='${libname}${release}${shared_ext}$major' | |
11027 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11028 | shlibpath_var=LD_LIBRARY_PATH | |
11029 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11030 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11031 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11032 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11033 | # libtool to hard-code these into programs | |
11034 | ;; | |
11035 | ||
11036 | cygwin* | mingw* | pw32* | cegcc*) | |
11037 | version_type=windows | |
11038 | shrext_cmds=".dll" | |
11039 | need_version=no | |
11040 | need_lib_prefix=no | |
11041 | ||
11042 | case $GCC,$cc_basename in | |
11043 | yes,*) | |
11044 | # gcc | |
11045 | library_names_spec='$libname.dll.a' | |
11046 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11047 | postinstall_cmds='base_file=`basename \${file}`~ | |
11048 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11049 | dldir=$destdir/`dirname \$dlpath`~ | |
11050 | test -d \$dldir || mkdir -p \$dldir~ | |
11051 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11052 | chmod a+x \$dldir/$dlname~ | |
11053 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11054 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11055 | fi' | |
11056 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11057 | dlpath=$dir/\$dldll~ | |
11058 | $RM \$dlpath' | |
11059 | shlibpath_overrides_runpath=yes | |
11060 | ||
11061 | case $host_os in | |
11062 | cygwin*) | |
11063 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11064 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11065 | ||
11066 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11067 | ;; | |
11068 | mingw* | cegcc*) | |
11069 | # MinGW DLLs use traditional 'lib' prefix | |
11070 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11071 | ;; | |
11072 | pw32*) | |
11073 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11074 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11075 | ;; | |
11076 | esac | |
11077 | dynamic_linker='Win32 ld.exe' | |
11078 | ;; | |
11079 | ||
11080 | *,cl*) | |
11081 | # Native MSVC | |
11082 | libname_spec='$name' | |
11083 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11084 | library_names_spec='${libname}.dll.lib' | |
11085 | ||
11086 | case $build_os in | |
11087 | mingw*) | |
11088 | sys_lib_search_path_spec= | |
11089 | lt_save_ifs=$IFS | |
11090 | IFS=';' | |
11091 | for lt_path in $LIB | |
11092 | do | |
11093 | IFS=$lt_save_ifs | |
11094 | # Let DOS variable expansion print the short 8.3 style file name. | |
11095 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11096 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11097 | done | |
11098 | IFS=$lt_save_ifs | |
11099 | # Convert to MSYS style. | |
11100 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11101 | ;; | |
11102 | cygwin*) | |
11103 | # Convert to unix form, then to dos form, then back to unix form | |
11104 | # but this time dos style (no spaces!) so that the unix form looks | |
11105 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11106 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11107 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11108 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11109 | ;; | |
11110 | *) | |
11111 | sys_lib_search_path_spec="$LIB" | |
11112 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11113 | # It is most probably a Windows format PATH. | |
11114 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11115 | else | |
11116 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11117 | fi | |
11118 | # FIXME: find the short name or the path components, as spaces are | |
11119 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11120 | ;; | |
11121 | esac | |
11122 | ||
11123 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11124 | postinstall_cmds='base_file=`basename \${file}`~ | |
11125 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11126 | dldir=$destdir/`dirname \$dlpath`~ | |
11127 | test -d \$dldir || mkdir -p \$dldir~ | |
11128 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11129 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11130 | dlpath=$dir/\$dldll~ | |
11131 | $RM \$dlpath' | |
11132 | shlibpath_overrides_runpath=yes | |
11133 | dynamic_linker='Win32 link.exe' | |
11134 | ;; | |
11135 | ||
11136 | *) | |
11137 | # Assume MSVC wrapper | |
11138 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11139 | dynamic_linker='Win32 ld.exe' | |
11140 | ;; | |
11141 | esac | |
11142 | # FIXME: first we should search . and the directory the executable is in | |
11143 | shlibpath_var=PATH | |
11144 | ;; | |
11145 | ||
11146 | darwin* | rhapsody*) | |
11147 | dynamic_linker="$host_os dyld" | |
11148 | version_type=darwin | |
11149 | need_lib_prefix=no | |
11150 | need_version=no | |
11151 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11152 | soname_spec='${libname}${release}${major}$shared_ext' | |
11153 | shlibpath_overrides_runpath=yes | |
11154 | shlibpath_var=DYLD_LIBRARY_PATH | |
11155 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11156 | ||
11157 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11158 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11159 | ;; | |
11160 | ||
11161 | dgux*) | |
11162 | version_type=linux # correct to gnu/linux during the next big refactor | |
11163 | need_lib_prefix=no | |
11164 | need_version=no | |
11165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11166 | soname_spec='${libname}${release}${shared_ext}$major' | |
11167 | shlibpath_var=LD_LIBRARY_PATH | |
11168 | ;; | |
11169 | ||
11170 | freebsd* | dragonfly*) | |
11171 | # DragonFly does not have aout. When/if they implement a new | |
11172 | # versioning mechanism, adjust this. | |
11173 | if test -x /usr/bin/objformat; then | |
11174 | objformat=`/usr/bin/objformat` | |
11175 | else | |
11176 | case $host_os in | |
11177 | freebsd[23].*) objformat=aout ;; | |
11178 | *) objformat=elf ;; | |
11179 | esac | |
11180 | fi | |
11181 | version_type=freebsd-$objformat | |
11182 | case $version_type in | |
11183 | freebsd-elf*) | |
11184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11185 | need_version=no | |
11186 | need_lib_prefix=no | |
11187 | ;; | |
11188 | freebsd-*) | |
11189 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11190 | need_version=yes | |
11191 | ;; | |
11192 | esac | |
11193 | shlibpath_var=LD_LIBRARY_PATH | |
11194 | case $host_os in | |
11195 | freebsd2.*) | |
11196 | shlibpath_overrides_runpath=yes | |
11197 | ;; | |
11198 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11199 | shlibpath_overrides_runpath=yes | |
11200 | hardcode_into_libs=yes | |
11201 | ;; | |
11202 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11203 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11204 | shlibpath_overrides_runpath=no | |
11205 | hardcode_into_libs=yes | |
11206 | ;; | |
11207 | *) # from 4.6 on, and DragonFly | |
11208 | shlibpath_overrides_runpath=yes | |
11209 | hardcode_into_libs=yes | |
11210 | ;; | |
11211 | esac | |
11212 | ;; | |
11213 | ||
11214 | haiku*) | |
11215 | version_type=linux # correct to gnu/linux during the next big refactor | |
11216 | need_lib_prefix=no | |
11217 | need_version=no | |
11218 | dynamic_linker="$host_os runtime_loader" | |
11219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11220 | soname_spec='${libname}${release}${shared_ext}$major' | |
11221 | shlibpath_var=LIBRARY_PATH | |
11222 | shlibpath_overrides_runpath=yes | |
11223 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11224 | hardcode_into_libs=yes | |
11225 | ;; | |
11226 | ||
11227 | hpux9* | hpux10* | hpux11*) | |
11228 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11229 | # link against other versions. | |
11230 | version_type=sunos | |
11231 | need_lib_prefix=no | |
11232 | need_version=no | |
11233 | case $host_cpu in | |
11234 | ia64*) | |
11235 | shrext_cmds='.so' | |
11236 | hardcode_into_libs=yes | |
11237 | dynamic_linker="$host_os dld.so" | |
11238 | shlibpath_var=LD_LIBRARY_PATH | |
11239 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11241 | soname_spec='${libname}${release}${shared_ext}$major' | |
11242 | if test "X$HPUX_IA64_MODE" = X32; then | |
11243 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11244 | else | |
11245 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11246 | fi | |
11247 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11248 | ;; | |
11249 | hppa*64*) | |
11250 | shrext_cmds='.sl' | |
11251 | hardcode_into_libs=yes | |
11252 | dynamic_linker="$host_os dld.sl" | |
11253 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11254 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11256 | soname_spec='${libname}${release}${shared_ext}$major' | |
11257 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11258 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11259 | ;; | |
11260 | *) | |
11261 | shrext_cmds='.sl' | |
11262 | dynamic_linker="$host_os dld.sl" | |
11263 | shlibpath_var=SHLIB_PATH | |
11264 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11266 | soname_spec='${libname}${release}${shared_ext}$major' | |
11267 | ;; | |
11268 | esac | |
11269 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11270 | postinstall_cmds='chmod 555 $lib' | |
11271 | # or fails outright, so override atomically: | |
11272 | install_override_mode=555 | |
11273 | ;; | |
11274 | ||
11275 | interix[3-9]*) | |
11276 | version_type=linux # correct to gnu/linux during the next big refactor | |
11277 | need_lib_prefix=no | |
11278 | need_version=no | |
11279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11280 | soname_spec='${libname}${release}${shared_ext}$major' | |
11281 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11282 | shlibpath_var=LD_LIBRARY_PATH | |
11283 | shlibpath_overrides_runpath=no | |
11284 | hardcode_into_libs=yes | |
11285 | ;; | |
11286 | ||
11287 | irix5* | irix6* | nonstopux*) | |
11288 | case $host_os in | |
11289 | nonstopux*) version_type=nonstopux ;; | |
11290 | *) | |
11291 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11292 | version_type=linux # correct to gnu/linux during the next big refactor | |
11293 | else | |
11294 | version_type=irix | |
11295 | fi ;; | |
11296 | esac | |
11297 | need_lib_prefix=no | |
11298 | need_version=no | |
11299 | soname_spec='${libname}${release}${shared_ext}$major' | |
11300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11301 | case $host_os in | |
11302 | irix5* | nonstopux*) | |
11303 | libsuff= shlibsuff= | |
11304 | ;; | |
11305 | *) | |
11306 | case $LD in # libtool.m4 will add one of these switches to LD | |
11307 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11308 | libsuff= shlibsuff= libmagic=32-bit;; | |
11309 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11310 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11311 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11312 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11313 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11314 | esac | |
11315 | ;; | |
11316 | esac | |
11317 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11318 | shlibpath_overrides_runpath=no | |
11319 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11320 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11321 | hardcode_into_libs=yes | |
11322 | ;; | |
11323 | ||
11324 | # No shared lib support for Linux oldld, aout, or coff. | |
11325 | linux*oldld* | linux*aout* | linux*coff*) | |
11326 | dynamic_linker=no | |
11327 | ;; | |
11328 | ||
11329 | # This must be glibc/ELF. | |
11330 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11331 | version_type=linux # correct to gnu/linux during the next big refactor | |
11332 | need_lib_prefix=no | |
11333 | need_version=no | |
11334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11335 | soname_spec='${libname}${release}${shared_ext}$major' | |
11336 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11337 | shlibpath_var=LD_LIBRARY_PATH | |
11338 | shlibpath_overrides_runpath=no | |
11339 | ||
11340 | # Some binutils ld are patched to set DT_RUNPATH | |
11341 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
c52df125 AC |
11342 | $as_echo_n "(cached) " >&6 |
11343 | else | |
eec2776c AJ |
11344 | lt_cv_shlibpath_overrides_runpath=no |
11345 | save_LDFLAGS=$LDFLAGS | |
11346 | save_libdir=$libdir | |
11347 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11348 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 AC |
11350 | /* end confdefs.h. */ |
11351 | ||
c52df125 AC |
11352 | int |
11353 | main () | |
11354 | { | |
eec2776c | 11355 | |
c52df125 AC |
11356 | ; |
11357 | return 0; | |
11358 | } | |
11359 | _ACEOF | |
11360 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c AJ |
11361 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11362 | lt_cv_shlibpath_overrides_runpath=yes | |
11363 | fi | |
c52df125 AC |
11364 | fi |
11365 | rm -f core conftest.err conftest.$ac_objext \ | |
11366 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
11367 | LDFLAGS=$save_LDFLAGS |
11368 | libdir=$save_libdir | |
c52df125 AC |
11369 | |
11370 | fi | |
11371 | ||
eec2776c | 11372 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
c52df125 | 11373 | |
eec2776c AJ |
11374 | # This implies no fast_install, which is unacceptable. |
11375 | # Some rework will be needed to allow for fast_install | |
11376 | # before this can be enabled. | |
11377 | hardcode_into_libs=yes | |
c52df125 | 11378 | |
eec2776c AJ |
11379 | # Append ld.so.conf contents to the search path |
11380 | if test -f /etc/ld.so.conf; then | |
11381 | 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' ' '` | |
11382 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11383 | fi | |
c52df125 | 11384 | |
eec2776c AJ |
11385 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11386 | # powerpc, because MkLinux only supported shared libraries with the | |
11387 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11388 | # most powerpc-linux boxes support dynamic linking these days and | |
11389 | # people can always --disable-shared, the test was removed, and we | |
11390 | # assume the GNU/Linux dynamic linker is in use. | |
11391 | dynamic_linker='GNU/Linux ld.so' | |
11392 | ;; | |
c52df125 | 11393 | |
eec2776c AJ |
11394 | netbsdelf*-gnu) |
11395 | version_type=linux | |
11396 | need_lib_prefix=no | |
11397 | need_version=no | |
11398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11399 | soname_spec='${libname}${release}${shared_ext}$major' | |
11400 | shlibpath_var=LD_LIBRARY_PATH | |
11401 | shlibpath_overrides_runpath=no | |
11402 | hardcode_into_libs=yes | |
11403 | dynamic_linker='NetBSD ld.elf_so' | |
11404 | ;; | |
c52df125 | 11405 | |
eec2776c AJ |
11406 | netbsd*) |
11407 | version_type=sunos | |
11408 | need_lib_prefix=no | |
11409 | need_version=no | |
11410 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11412 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11413 | dynamic_linker='NetBSD (a.out) ld.so' | |
11414 | else | |
11415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11416 | soname_spec='${libname}${release}${shared_ext}$major' | |
11417 | dynamic_linker='NetBSD ld.elf_so' | |
11418 | fi | |
11419 | shlibpath_var=LD_LIBRARY_PATH | |
11420 | shlibpath_overrides_runpath=yes | |
11421 | hardcode_into_libs=yes | |
11422 | ;; | |
c52df125 | 11423 | |
eec2776c AJ |
11424 | newsos6) |
11425 | version_type=linux # correct to gnu/linux during the next big refactor | |
11426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11427 | shlibpath_var=LD_LIBRARY_PATH | |
11428 | shlibpath_overrides_runpath=yes | |
11429 | ;; | |
c52df125 | 11430 | |
eec2776c AJ |
11431 | *nto* | *qnx*) |
11432 | version_type=qnx | |
11433 | need_lib_prefix=no | |
11434 | need_version=no | |
11435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11436 | soname_spec='${libname}${release}${shared_ext}$major' | |
11437 | shlibpath_var=LD_LIBRARY_PATH | |
11438 | shlibpath_overrides_runpath=no | |
11439 | hardcode_into_libs=yes | |
11440 | dynamic_linker='ldqnx.so' | |
11441 | ;; | |
c52df125 | 11442 | |
eec2776c AJ |
11443 | openbsd*) |
11444 | version_type=sunos | |
11445 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11446 | need_lib_prefix=no | |
11447 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11448 | case $host_os in | |
11449 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11450 | *) need_version=no ;; | |
c52df125 | 11451 | esac |
eec2776c AJ |
11452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11453 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11454 | shlibpath_var=LD_LIBRARY_PATH | |
11455 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11456 | case $host_os in | |
11457 | openbsd2.[89] | openbsd2.[89].*) | |
11458 | shlibpath_overrides_runpath=no | |
11459 | ;; | |
11460 | *) | |
11461 | shlibpath_overrides_runpath=yes | |
11462 | ;; | |
11463 | esac | |
c52df125 | 11464 | else |
eec2776c | 11465 | shlibpath_overrides_runpath=yes |
c52df125 | 11466 | fi |
eec2776c | 11467 | ;; |
c52df125 | 11468 | |
eec2776c AJ |
11469 | os2*) |
11470 | libname_spec='$name' | |
11471 | shrext_cmds=".dll" | |
11472 | need_lib_prefix=no | |
11473 | library_names_spec='$libname${shared_ext} $libname.a' | |
11474 | dynamic_linker='OS/2 ld.exe' | |
11475 | shlibpath_var=LIBPATH | |
11476 | ;; | |
c52df125 | 11477 | |
eec2776c AJ |
11478 | osf3* | osf4* | osf5*) |
11479 | version_type=osf | |
11480 | need_lib_prefix=no | |
11481 | need_version=no | |
11482 | soname_spec='${libname}${release}${shared_ext}$major' | |
11483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11484 | shlibpath_var=LD_LIBRARY_PATH | |
11485 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11486 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11487 | ;; | |
c52df125 | 11488 | |
eec2776c AJ |
11489 | rdos*) |
11490 | dynamic_linker=no | |
11491 | ;; | |
c52df125 | 11492 | |
eec2776c AJ |
11493 | solaris*) |
11494 | version_type=linux # correct to gnu/linux during the next big refactor | |
11495 | need_lib_prefix=no | |
11496 | need_version=no | |
11497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11498 | soname_spec='${libname}${release}${shared_ext}$major' | |
11499 | shlibpath_var=LD_LIBRARY_PATH | |
11500 | shlibpath_overrides_runpath=yes | |
11501 | hardcode_into_libs=yes | |
11502 | # ldd complains unless libraries are executable | |
11503 | postinstall_cmds='chmod +x $lib' | |
11504 | ;; | |
c52df125 | 11505 | |
eec2776c AJ |
11506 | sunos4*) |
11507 | version_type=sunos | |
11508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11509 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11510 | shlibpath_var=LD_LIBRARY_PATH | |
11511 | shlibpath_overrides_runpath=yes | |
11512 | if test "$with_gnu_ld" = yes; then | |
11513 | need_lib_prefix=no | |
11514 | fi | |
11515 | need_version=yes | |
11516 | ;; | |
c52df125 | 11517 | |
eec2776c AJ |
11518 | sysv4 | sysv4.3*) |
11519 | version_type=linux # correct to gnu/linux during the next big refactor | |
11520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11521 | soname_spec='${libname}${release}${shared_ext}$major' | |
11522 | shlibpath_var=LD_LIBRARY_PATH | |
11523 | case $host_vendor in | |
11524 | sni) | |
11525 | shlibpath_overrides_runpath=no | |
11526 | need_lib_prefix=no | |
11527 | runpath_var=LD_RUN_PATH | |
11528 | ;; | |
11529 | siemens) | |
11530 | need_lib_prefix=no | |
11531 | ;; | |
11532 | motorola) | |
11533 | need_lib_prefix=no | |
11534 | need_version=no | |
11535 | shlibpath_overrides_runpath=no | |
11536 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11537 | ;; | |
11538 | esac | |
11539 | ;; | |
c52df125 | 11540 | |
eec2776c AJ |
11541 | sysv4*MP*) |
11542 | if test -d /usr/nec ;then | |
11543 | version_type=linux # correct to gnu/linux during the next big refactor | |
11544 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11545 | soname_spec='$libname${shared_ext}.$major' | |
11546 | shlibpath_var=LD_LIBRARY_PATH | |
11547 | fi | |
11548 | ;; | |
c52df125 | 11549 | |
eec2776c AJ |
11550 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11551 | version_type=freebsd-elf | |
11552 | need_lib_prefix=no | |
11553 | need_version=no | |
11554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11555 | soname_spec='${libname}${release}${shared_ext}$major' | |
11556 | shlibpath_var=LD_LIBRARY_PATH | |
11557 | shlibpath_overrides_runpath=yes | |
11558 | hardcode_into_libs=yes | |
11559 | if test "$with_gnu_ld" = yes; then | |
11560 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
c52df125 | 11561 | else |
eec2776c AJ |
11562 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11563 | case $host_os in | |
11564 | sco3.2v5*) | |
11565 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11566 | ;; | |
c52df125 | 11567 | esac |
c52df125 | 11568 | fi |
eec2776c AJ |
11569 | sys_lib_dlsearch_path_spec='/usr/lib' |
11570 | ;; | |
c52df125 | 11571 | |
eec2776c AJ |
11572 | tpf*) |
11573 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11574 | version_type=linux # correct to gnu/linux during the next big refactor | |
11575 | need_lib_prefix=no | |
11576 | need_version=no | |
11577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11578 | shlibpath_var=LD_LIBRARY_PATH | |
11579 | shlibpath_overrides_runpath=no | |
11580 | hardcode_into_libs=yes | |
11581 | ;; | |
c52df125 | 11582 | |
eec2776c AJ |
11583 | uts4*) |
11584 | version_type=linux # correct to gnu/linux during the next big refactor | |
11585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11586 | soname_spec='${libname}${release}${shared_ext}$major' | |
11587 | shlibpath_var=LD_LIBRARY_PATH | |
11588 | ;; | |
c52df125 | 11589 | |
eec2776c AJ |
11590 | *) |
11591 | dynamic_linker=no | |
11592 | ;; | |
11593 | esac | |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11595 | $as_echo "$dynamic_linker" >&6; } | |
11596 | test "$dynamic_linker" = no && can_build_shared=no | |
c52df125 | 11597 | |
eec2776c AJ |
11598 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11599 | if test "$GCC" = yes; then | |
11600 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11601 | fi | |
c52df125 | 11602 | |
eec2776c AJ |
11603 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11604 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11605 | fi | |
11606 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11607 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11608 | fi | |
c52df125 | 11609 | |
c52df125 | 11610 | |
c52df125 | 11611 | |
c52df125 | 11612 | |
c52df125 | 11613 | |
c52df125 | 11614 | |
c52df125 AC |
11615 | |
11616 | ||
c52df125 | 11617 | |
c52df125 | 11618 | |
c52df125 | 11619 | |
c52df125 AC |
11620 | |
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
c52df125 AC |
11637 | |
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
c52df125 | 11649 | |
c52df125 | 11650 | |
c52df125 | 11651 | |
c52df125 | 11652 | |
c52df125 AC |
11653 | |
11654 | ||
11655 | ||
11656 | ||
c52df125 | 11657 | |
c52df125 AC |
11658 | |
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
c52df125 AC |
11673 | |
11674 | ||
11675 | ||
11676 | ||
c52df125 AC |
11677 | |
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
c52df125 | 11687 | |
c52df125 | 11688 | |
c52df125 | 11689 | |
c52df125 | 11690 | |
c52df125 | 11691 | |
c52df125 | 11692 | |
c52df125 | 11693 | |
c52df125 | 11694 | |
c52df125 | 11695 | |
c52df125 | 11696 | |
eec2776c AJ |
11697 | |
11698 | ||
11699 | ||
11700 | ||
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11702 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11703 | hardcode_action= | |
11704 | if test -n "$hardcode_libdir_flag_spec" || | |
11705 | test -n "$runpath_var" || | |
11706 | test "X$hardcode_automatic" = "Xyes" ; then | |
11707 | ||
11708 | # We can hardcode non-existent directories. | |
11709 | if test "$hardcode_direct" != no && | |
11710 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11711 | # have to relink, otherwise we might link with an installed library | |
11712 | # when we should be linking with a yet-to-be-installed one | |
11713 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11714 | test "$hardcode_minus_L" != no; then | |
11715 | # Linking always hardcodes the temporary library directory. | |
11716 | hardcode_action=relink | |
11717 | else | |
11718 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11719 | hardcode_action=immediate | |
11720 | fi | |
c52df125 | 11721 | else |
eec2776c AJ |
11722 | # We cannot hardcode anything, or else we can only hardcode existing |
11723 | # directories. | |
11724 | hardcode_action=unsupported | |
c52df125 | 11725 | fi |
eec2776c AJ |
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11727 | $as_echo "$hardcode_action" >&6; } | |
c52df125 | 11728 | |
eec2776c AJ |
11729 | if test "$hardcode_action" = relink || |
11730 | test "$inherit_rpath" = yes; then | |
11731 | # Fast installation is not supported | |
11732 | enable_fast_install=no | |
11733 | elif test "$shlibpath_overrides_runpath" = yes || | |
11734 | test "$enable_shared" = no; then | |
11735 | # Fast installation is not necessary | |
11736 | enable_fast_install=needless | |
c52df125 AC |
11737 | fi |
11738 | ||
11739 | ||
c52df125 AC |
11740 | |
11741 | ||
c52df125 AC |
11742 | |
11743 | ||
eec2776c AJ |
11744 | if test "x$enable_dlopen" != xyes; then |
11745 | enable_dlopen=unknown | |
11746 | enable_dlopen_self=unknown | |
11747 | enable_dlopen_self_static=unknown | |
11748 | else | |
11749 | lt_cv_dlopen=no | |
11750 | lt_cv_dlopen_libs= | |
11751 | ||
11752 | case $host_os in | |
11753 | beos*) | |
11754 | lt_cv_dlopen="load_add_on" | |
11755 | lt_cv_dlopen_libs= | |
11756 | lt_cv_dlopen_self=yes | |
11757 | ;; | |
11758 | ||
11759 | mingw* | pw32* | cegcc*) | |
11760 | lt_cv_dlopen="LoadLibrary" | |
11761 | lt_cv_dlopen_libs= | |
11762 | ;; | |
11763 | ||
11764 | cygwin*) | |
11765 | lt_cv_dlopen="dlopen" | |
11766 | lt_cv_dlopen_libs= | |
11767 | ;; | |
11768 | ||
11769 | darwin*) | |
11770 | # if libdl is installed we need to link against it | |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11772 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11773 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11774 | $as_echo_n "(cached) " >&6 |
11775 | else | |
eec2776c AJ |
11776 | ac_check_lib_save_LIBS=$LIBS |
11777 | LIBS="-ldl $LIBS" | |
c52df125 AC |
11778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11779 | /* end confdefs.h. */ | |
11780 | ||
11781 | /* Override any GCC internal prototype to avoid an error. | |
11782 | Use char because int might match the return type of a GCC | |
11783 | builtin and then its argument prototype would still apply. */ | |
11784 | #ifdef __cplusplus | |
11785 | extern "C" | |
11786 | #endif | |
11787 | char dlopen (); | |
11788 | int | |
11789 | main () | |
11790 | { | |
11791 | return dlopen (); | |
11792 | ; | |
11793 | return 0; | |
11794 | } | |
11795 | _ACEOF | |
eec2776c AJ |
11796 | if ac_fn_c_try_link "$LINENO"; then : |
11797 | ac_cv_lib_dl_dlopen=yes | |
11798 | else | |
11799 | ac_cv_lib_dl_dlopen=no | |
c52df125 AC |
11800 | fi |
11801 | rm -f core conftest.err conftest.$ac_objext \ | |
eec2776c AJ |
11802 | conftest$ac_exeext conftest.$ac_ext |
11803 | LIBS=$ac_check_lib_save_LIBS | |
c52df125 | 11804 | fi |
eec2776c AJ |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11806 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11807 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11808 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11809 | else |
eec2776c AJ |
11810 | |
11811 | lt_cv_dlopen="dyld" | |
11812 | lt_cv_dlopen_libs= | |
11813 | lt_cv_dlopen_self=yes | |
11814 | ||
c52df125 | 11815 | fi |
c52df125 | 11816 | |
eec2776c | 11817 | ;; |
c52df125 | 11818 | |
eec2776c AJ |
11819 | *) |
11820 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11821 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11822 | lt_cv_dlopen="shl_load" | |
c52df125 | 11823 | else |
eec2776c AJ |
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11825 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11826 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11827 | $as_echo_n "(cached) " >&6 | |
11828 | else | |
11829 | ac_check_lib_save_LIBS=$LIBS | |
11830 | LIBS="-ldld $LIBS" | |
11831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 11832 | /* end confdefs.h. */ |
c52df125 | 11833 | |
eec2776c AJ |
11834 | /* Override any GCC internal prototype to avoid an error. |
11835 | Use char because int might match the return type of a GCC | |
11836 | builtin and then its argument prototype would still apply. */ | |
11837 | #ifdef __cplusplus | |
11838 | extern "C" | |
11839 | #endif | |
11840 | char shl_load (); | |
c52df125 AC |
11841 | int |
11842 | main () | |
11843 | { | |
eec2776c | 11844 | return shl_load (); |
c52df125 AC |
11845 | ; |
11846 | return 0; | |
eec2776c AJ |
11847 | } |
11848 | _ACEOF | |
11849 | if ac_fn_c_try_link "$LINENO"; then : | |
11850 | ac_cv_lib_dld_shl_load=yes | |
c52df125 | 11851 | else |
eec2776c AJ |
11852 | ac_cv_lib_dld_shl_load=no |
11853 | fi | |
11854 | rm -f core conftest.err conftest.$ac_objext \ | |
11855 | conftest$ac_exeext conftest.$ac_ext | |
11856 | LIBS=$ac_check_lib_save_LIBS | |
11857 | fi | |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11859 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11860 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11861 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11862 | else | |
11863 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11864 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11865 | lt_cv_dlopen="dlopen" | |
11866 | else | |
11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11868 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11869 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11870 | $as_echo_n "(cached) " >&6 |
11871 | else | |
11872 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11873 | LIBS="-ldl $LIBS" |
c52df125 AC |
11874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11875 | /* end confdefs.h. */ | |
11876 | ||
11877 | /* Override any GCC internal prototype to avoid an error. | |
11878 | Use char because int might match the return type of a GCC | |
11879 | builtin and then its argument prototype would still apply. */ | |
11880 | #ifdef __cplusplus | |
11881 | extern "C" | |
11882 | #endif | |
11883 | char dlopen (); | |
11884 | int | |
11885 | main () | |
11886 | { | |
11887 | return dlopen (); | |
11888 | ; | |
11889 | return 0; | |
11890 | } | |
11891 | _ACEOF | |
11892 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c | 11893 | ac_cv_lib_dl_dlopen=yes |
c52df125 | 11894 | else |
eec2776c | 11895 | ac_cv_lib_dl_dlopen=no |
7083c021 | 11896 | fi |
c52df125 AC |
11897 | rm -f core conftest.err conftest.$ac_objext \ |
11898 | conftest$ac_exeext conftest.$ac_ext | |
11899 | LIBS=$ac_check_lib_save_LIBS | |
11900 | fi | |
eec2776c AJ |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11902 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11903 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11904 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11905 | else |
eec2776c AJ |
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11907 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11908 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 AC |
11909 | $as_echo_n "(cached) " >&6 |
11910 | else | |
11911 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11912 | LIBS="-lsvld $LIBS" |
7083c021 AC |
11913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11914 | /* end confdefs.h. */ | |
6fb6bd15 | 11915 | |
c52df125 AC |
11916 | /* Override any GCC internal prototype to avoid an error. |
11917 | Use char because int might match the return type of a GCC | |
11918 | builtin and then its argument prototype would still apply. */ | |
11919 | #ifdef __cplusplus | |
11920 | extern "C" | |
11921 | #endif | |
eec2776c | 11922 | char dlopen (); |
212380e3 | 11923 | int |
7083c021 | 11924 | main () |
212380e3 | 11925 | { |
eec2776c | 11926 | return dlopen (); |
7083c021 AC |
11927 | ; |
11928 | return 0; | |
212380e3 AC |
11929 | } |
11930 | _ACEOF | |
c52df125 | 11931 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 11932 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 11933 | else |
eec2776c | 11934 | ac_cv_lib_svld_dlopen=no |
c52df125 AC |
11935 | fi |
11936 | rm -f core conftest.err conftest.$ac_objext \ | |
11937 | conftest$ac_exeext conftest.$ac_ext | |
11938 | LIBS=$ac_check_lib_save_LIBS | |
11939 | fi | |
eec2776c AJ |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11941 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11942 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11943 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
6fb6bd15 | 11944 | else |
eec2776c | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
c52df125 AC |
11946 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
11947 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11948 | $as_echo_n "(cached) " >&6 | |
11949 | else | |
11950 | ac_check_lib_save_LIBS=$LIBS | |
11951 | LIBS="-ldld $LIBS" | |
6fb6bd15 AC |
11952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11953 | /* end confdefs.h. */ | |
c52df125 AC |
11954 | |
11955 | /* Override any GCC internal prototype to avoid an error. | |
11956 | Use char because int might match the return type of a GCC | |
11957 | builtin and then its argument prototype would still apply. */ | |
11958 | #ifdef __cplusplus | |
11959 | extern "C" | |
11960 | #endif | |
11961 | char dld_link (); | |
6fb6bd15 AC |
11962 | int |
11963 | main () | |
11964 | { | |
c52df125 | 11965 | return dld_link (); |
6fb6bd15 AC |
11966 | ; |
11967 | return 0; | |
11968 | } | |
11969 | _ACEOF | |
c52df125 AC |
11970 | if ac_fn_c_try_link "$LINENO"; then : |
11971 | ac_cv_lib_dld_dld_link=yes | |
11972 | else | |
11973 | ac_cv_lib_dld_dld_link=no | |
11974 | fi | |
11975 | rm -f core conftest.err conftest.$ac_objext \ | |
11976 | conftest$ac_exeext conftest.$ac_ext | |
11977 | LIBS=$ac_check_lib_save_LIBS | |
11978 | fi | |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11980 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11981 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
eec2776c AJ |
11982 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11983 | fi | |
c52df125 | 11984 | |
c52df125 | 11985 | |
c52df125 AC |
11986 | fi |
11987 | ||
11988 | ||
eec2776c | 11989 | fi |
c52df125 AC |
11990 | |
11991 | ||
eec2776c | 11992 | fi |
c52df125 | 11993 | |
c52df125 AC |
11994 | |
11995 | fi | |
11996 | ||
11997 | ||
eec2776c AJ |
11998 | fi |
11999 | ||
12000 | ;; | |
12001 | esac | |
c52df125 | 12002 | |
eec2776c AJ |
12003 | if test "x$lt_cv_dlopen" != xno; then |
12004 | enable_dlopen=yes | |
12005 | else | |
12006 | enable_dlopen=no | |
12007 | fi | |
c52df125 | 12008 | |
eec2776c AJ |
12009 | case $lt_cv_dlopen in |
12010 | dlopen) | |
12011 | save_CPPFLAGS="$CPPFLAGS" | |
12012 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12013 | ||
12014 | save_LDFLAGS="$LDFLAGS" | |
12015 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12016 | ||
12017 | save_LIBS="$LIBS" | |
12018 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12019 | ||
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12021 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12022 | if ${lt_cv_dlopen_self+:} false; then : | |
12023 | $as_echo_n "(cached) " >&6 | |
12024 | else | |
12025 | if test "$cross_compiling" = yes; then : | |
12026 | lt_cv_dlopen_self=cross | |
12027 | else | |
12028 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12029 | lt_status=$lt_dlunknown | |
12030 | cat > conftest.$ac_ext <<_LT_EOF | |
12031 | #line $LINENO "configure" | |
12032 | #include "confdefs.h" | |
12033 | ||
12034 | #if HAVE_DLFCN_H | |
12035 | #include <dlfcn.h> | |
12036 | #endif | |
12037 | ||
12038 | #include <stdio.h> | |
12039 | ||
12040 | #ifdef RTLD_GLOBAL | |
12041 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12042 | #else | |
12043 | # ifdef DL_GLOBAL | |
12044 | # define LT_DLGLOBAL DL_GLOBAL | |
12045 | # else | |
12046 | # define LT_DLGLOBAL 0 | |
12047 | # endif | |
12048 | #endif | |
12049 | ||
12050 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12051 | find out it does not work in some platform. */ | |
12052 | #ifndef LT_DLLAZY_OR_NOW | |
12053 | # ifdef RTLD_LAZY | |
12054 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12055 | # else | |
12056 | # ifdef DL_LAZY | |
12057 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12058 | # else | |
12059 | # ifdef RTLD_NOW | |
12060 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12061 | # else | |
12062 | # ifdef DL_NOW | |
12063 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12064 | # else | |
12065 | # define LT_DLLAZY_OR_NOW 0 | |
12066 | # endif | |
12067 | # endif | |
12068 | # endif | |
12069 | # endif | |
12070 | #endif | |
12071 | ||
12072 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12073 | correspondingly for the symbols needed. */ | |
12074 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12075 | int fnord () __attribute__((visibility("default"))); | |
12076 | #endif | |
12077 | ||
12078 | int fnord () { return 42; } | |
12079 | int main () | |
12080 | { | |
12081 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12082 | int status = $lt_dlunknown; | |
c52df125 | 12083 | |
eec2776c AJ |
12084 | if (self) |
12085 | { | |
12086 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12087 | else | |
12088 | { | |
12089 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12090 | else puts (dlerror ()); | |
12091 | } | |
12092 | /* dlclose (self); */ | |
12093 | } | |
12094 | else | |
12095 | puts (dlerror ()); | |
c52df125 | 12096 | |
eec2776c AJ |
12097 | return status; |
12098 | } | |
c52df125 | 12099 | _LT_EOF |
eec2776c AJ |
12100 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12101 | (eval $ac_link) 2>&5 | |
6fb6bd15 AC |
12102 | ac_status=$? |
12103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
12104 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12105 | (./conftest; exit; ) >&5 2>/dev/null | |
12106 | lt_status=$? | |
12107 | case x$lt_status in | |
12108 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12109 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12110 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12111 | esac | |
12112 | else : | |
12113 | # compilation failed | |
12114 | lt_cv_dlopen_self=no | |
6fb6bd15 AC |
12115 | fi |
12116 | fi | |
eec2776c | 12117 | rm -fr conftest* |
6fb6bd15 | 12118 | |
c52df125 | 12119 | |
eec2776c AJ |
12120 | fi |
12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12122 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12123 | ||
12124 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12125 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12127 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12128 | if ${lt_cv_dlopen_self_static+:} false; then : | |
7083c021 AC |
12129 | $as_echo_n "(cached) " >&6 |
12130 | else | |
eec2776c AJ |
12131 | if test "$cross_compiling" = yes; then : |
12132 | lt_cv_dlopen_self_static=cross | |
c52df125 AC |
12133 | else |
12134 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12135 | lt_status=$lt_dlunknown | |
12136 | cat > conftest.$ac_ext <<_LT_EOF | |
12137 | #line $LINENO "configure" | |
12138 | #include "confdefs.h" | |
212380e3 | 12139 | |
c52df125 AC |
12140 | #if HAVE_DLFCN_H |
12141 | #include <dlfcn.h> | |
12142 | #endif | |
12143 | ||
12144 | #include <stdio.h> | |
12145 | ||
12146 | #ifdef RTLD_GLOBAL | |
12147 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12148 | #else | |
12149 | # ifdef DL_GLOBAL | |
12150 | # define LT_DLGLOBAL DL_GLOBAL | |
12151 | # else | |
12152 | # define LT_DLGLOBAL 0 | |
12153 | # endif | |
12154 | #endif | |
12155 | ||
12156 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12157 | find out it does not work in some platform. */ | |
12158 | #ifndef LT_DLLAZY_OR_NOW | |
12159 | # ifdef RTLD_LAZY | |
12160 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12161 | # else | |
12162 | # ifdef DL_LAZY | |
12163 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12164 | # else | |
12165 | # ifdef RTLD_NOW | |
12166 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12167 | # else | |
12168 | # ifdef DL_NOW | |
12169 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12170 | # else | |
12171 | # define LT_DLLAZY_OR_NOW 0 | |
12172 | # endif | |
12173 | # endif | |
12174 | # endif | |
12175 | # endif | |
12176 | #endif | |
12177 | ||
12178 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12179 | correspondingly for the symbols needed. */ | |
12180 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12181 | int fnord () __attribute__((visibility("default"))); | |
12182 | #endif | |
12183 | ||
12184 | int fnord () { return 42; } | |
12185 | int main () | |
7083c021 | 12186 | { |
c52df125 AC |
12187 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12188 | int status = $lt_dlunknown; | |
7083c021 | 12189 | |
c52df125 AC |
12190 | if (self) |
12191 | { | |
12192 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12193 | else | |
12194 | { | |
12195 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12196 | else puts (dlerror ()); | |
12197 | } | |
12198 | /* dlclose (self); */ | |
12199 | } | |
12200 | else | |
12201 | puts (dlerror ()); | |
12202 | ||
12203 | return status; | |
7083c021 | 12204 | } |
c52df125 AC |
12205 | _LT_EOF |
12206 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12207 | (eval $ac_link) 2>&5 | |
212380e3 | 12208 | ac_status=$? |
7083c021 | 12209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c52df125 AC |
12210 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12211 | (./conftest; exit; ) >&5 2>/dev/null | |
12212 | lt_status=$? | |
12213 | case x$lt_status in | |
eec2776c AJ |
12214 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12215 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12216 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
c52df125 AC |
12217 | esac |
12218 | else : | |
12219 | # compilation failed | |
eec2776c | 12220 | lt_cv_dlopen_self_static=no |
c52df125 | 12221 | fi |
7083c021 | 12222 | fi |
c52df125 AC |
12223 | rm -fr conftest* |
12224 | ||
c52df125 | 12225 | |
212380e3 | 12226 | fi |
eec2776c AJ |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12228 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12229 | fi | |
c52df125 | 12230 | |
eec2776c AJ |
12231 | CPPFLAGS="$save_CPPFLAGS" |
12232 | LDFLAGS="$save_LDFLAGS" | |
12233 | LIBS="$save_LIBS" | |
12234 | ;; | |
12235 | esac | |
c52df125 | 12236 | |
eec2776c AJ |
12237 | case $lt_cv_dlopen_self in |
12238 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12239 | *) enable_dlopen_self=unknown ;; | |
12240 | esac | |
c52df125 | 12241 | |
eec2776c AJ |
12242 | case $lt_cv_dlopen_self_static in |
12243 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12244 | *) enable_dlopen_self_static=unknown ;; | |
12245 | esac | |
c52df125 AC |
12246 | fi |
12247 | ||
eec2776c AJ |
12248 | |
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | striplib= | |
12265 | old_striplib= | |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12267 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12268 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12269 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12270 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12272 | $as_echo "yes" >&6; } | |
7083c021 | 12273 | else |
eec2776c | 12274 | # FIXME - insert some real tests, host_os isn't really good enough |
c52df125 | 12275 | case $host_os in |
c52df125 | 12276 | darwin*) |
eec2776c AJ |
12277 | if test -n "$STRIP" ; then |
12278 | striplib="$STRIP -x" | |
12279 | old_striplib="$STRIP -S" | |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12281 | $as_echo "yes" >&6; } | |
12282 | else | |
12283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12284 | $as_echo "no" >&6; } | |
12285 | fi | |
c52df125 | 12286 | ;; |
eec2776c AJ |
12287 | *) |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12289 | $as_echo "no" >&6; } | |
c52df125 | 12290 | ;; |
eec2776c AJ |
12291 | esac |
12292 | fi | |
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | # Report which library types will actually be built | |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12307 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12309 | $as_echo "$can_build_shared" >&6; } | |
12310 | ||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12312 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12313 | test "$can_build_shared" = "no" && enable_shared=no | |
12314 | ||
12315 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12316 | # are all built from PIC. | |
12317 | case $host_os in | |
12318 | aix3*) | |
12319 | test "$enable_shared" = yes && enable_static=no | |
12320 | if test -n "$RANLIB"; then | |
12321 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12322 | postinstall_cmds='$RANLIB $lib' | |
12323 | fi | |
c52df125 | 12324 | ;; |
eec2776c AJ |
12325 | |
12326 | aix[4-9]*) | |
12327 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12328 | test "$enable_shared" = yes && enable_static=no | |
12329 | fi | |
c52df125 AC |
12330 | ;; |
12331 | esac | |
eec2776c AJ |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12333 | $as_echo "$enable_shared" >&6; } | |
12334 | ||
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12336 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12337 | # Make sure either enable_shared or enable_static is yes. | |
12338 | test "$enable_shared" = yes || enable_static=yes | |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12340 | $as_echo "$enable_static" >&6; } | |
12341 | ||
212380e3 | 12342 | |
c52df125 | 12343 | |
c52df125 AC |
12344 | |
12345 | fi | |
eec2776c AJ |
12346 | ac_ext=c |
12347 | ac_cpp='$CPP $CPPFLAGS' | |
12348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 12351 | |
eec2776c | 12352 | CC="$lt_save_CC" |
c52df125 | 12353 | |
c52df125 | 12354 | |
c52df125 | 12355 | |
c52df125 AC |
12356 | |
12357 | ||
212380e3 | 12358 | |
c52df125 AC |
12359 | |
12360 | ||
c52df125 | 12361 | |
c52df125 AC |
12362 | |
12363 | ||
7083c021 | 12364 | |
c52df125 AC |
12365 | |
12366 | ||
c52df125 | 12367 | |
eec2776c | 12368 | ac_config_commands="$ac_config_commands libtool" |
c52df125 | 12369 | |
c52df125 | 12370 | |
c52df125 AC |
12371 | |
12372 | ||
eec2776c | 12373 | # Only expand once: |
212380e3 | 12374 | |
631ef239 | 12375 | |
c52df125 AC |
12376 | |
12377 | ||
c52df125 | 12378 | |
c52df125 AC |
12379 | |
12380 | ||
12381 | ||
eec2776c AJ |
12382 | |
12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12384 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12385 | if ${libltdl_cv_shlibext+:} false; then : | |
c52df125 AC |
12386 | $as_echo_n "(cached) " >&6 |
12387 | else | |
eec2776c AJ |
12388 | |
12389 | module=yes | |
12390 | eval libltdl_cv_shlibext=$shrext_cmds | |
12391 | module=no | |
12392 | eval libltdl_cv_shrext=$shrext_cmds | |
c52df125 AC |
12393 | |
12394 | fi | |
eec2776c AJ |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
12396 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12397 | if test -n "$libltdl_cv_shlibext"; then | |
c52df125 | 12398 | |
eec2776c AJ |
12399 | cat >>confdefs.h <<_ACEOF |
12400 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12401 | _ACEOF | |
c52df125 AC |
12402 | |
12403 | fi | |
eec2776c | 12404 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
c52df125 | 12405 | |
eec2776c AJ |
12406 | cat >>confdefs.h <<_ACEOF |
12407 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12408 | _ACEOF | |
c52df125 | 12409 | |
eec2776c | 12410 | fi |
c52df125 | 12411 | |
eec2776c AJ |
12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
12413 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12414 | if ${lt_cv_module_path_var+:} false; then : | |
12415 | $as_echo_n "(cached) " >&6 | |
12416 | else | |
12417 | lt_cv_module_path_var="$shlibpath_var" | |
12418 | fi | |
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12420 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12421 | if test -n "$lt_cv_module_path_var"; then | |
12422 | ||
12423 | cat >>confdefs.h <<_ACEOF | |
12424 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12425 | _ACEOF | |
c52df125 | 12426 | |
eec2776c | 12427 | fi |
c52df125 | 12428 | |
eec2776c AJ |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
12430 | $as_echo_n "checking for the default library search path... " >&6; } | |
12431 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12432 | $as_echo_n "(cached) " >&6 | |
12433 | else | |
12434 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12435 | fi | |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12437 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12438 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12439 | sys_dlsearch_path= | |
12440 | for dir in $lt_cv_sys_dlsearch_path; do | |
12441 | if test -z "$sys_dlsearch_path"; then | |
12442 | sys_dlsearch_path="$dir" | |
12443 | else | |
12444 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12445 | fi | |
12446 | done | |
c52df125 | 12447 | |
eec2776c AJ |
12448 | cat >>confdefs.h <<_ACEOF |
12449 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12450 | _ACEOF | |
c52df125 | 12451 | |
eec2776c | 12452 | fi |
c52df125 AC |
12453 | |
12454 | ||
eec2776c | 12455 | LT_DLLOADERS= |
c52df125 AC |
12456 | |
12457 | ||
eec2776c AJ |
12458 | ac_ext=c |
12459 | ac_cpp='$CPP $CPPFLAGS' | |
12460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12463 | |
12464 | ||
eec2776c AJ |
12465 | LIBADD_DLOPEN= |
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12467 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12468 | if ${ac_cv_search_dlopen+:} false; then : | |
12469 | $as_echo_n "(cached) " >&6 | |
12470 | else | |
12471 | ac_func_search_save_LIBS=$LIBS | |
12472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12473 | /* end confdefs.h. */ | |
c52df125 | 12474 | |
eec2776c AJ |
12475 | /* Override any GCC internal prototype to avoid an error. |
12476 | Use char because int might match the return type of a GCC | |
12477 | builtin and then its argument prototype would still apply. */ | |
12478 | #ifdef __cplusplus | |
12479 | extern "C" | |
12480 | #endif | |
12481 | char dlopen (); | |
12482 | int | |
12483 | main () | |
12484 | { | |
12485 | return dlopen (); | |
12486 | ; | |
12487 | return 0; | |
12488 | } | |
12489 | _ACEOF | |
12490 | for ac_lib in '' dl; do | |
12491 | if test -z "$ac_lib"; then | |
12492 | ac_res="none required" | |
12493 | else | |
12494 | ac_res=-l$ac_lib | |
12495 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12496 | fi | |
12497 | if ac_fn_c_try_link "$LINENO"; then : | |
12498 | ac_cv_search_dlopen=$ac_res | |
12499 | fi | |
12500 | rm -f core conftest.err conftest.$ac_objext \ | |
12501 | conftest$ac_exeext | |
12502 | if ${ac_cv_search_dlopen+:} false; then : | |
12503 | break | |
12504 | fi | |
12505 | done | |
12506 | if ${ac_cv_search_dlopen+:} false; then : | |
c52df125 | 12507 | |
eec2776c AJ |
12508 | else |
12509 | ac_cv_search_dlopen=no | |
12510 | fi | |
12511 | rm conftest.$ac_ext | |
12512 | LIBS=$ac_func_search_save_LIBS | |
c52df125 | 12513 | fi |
eec2776c AJ |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12515 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12516 | ac_res=$ac_cv_search_dlopen | |
12517 | if test "$ac_res" != no; then : | |
12518 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12519 | ||
12520 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12521 | ||
12522 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12523 | LIBADD_DLOPEN="-ldl" | |
12524 | fi | |
12525 | libltdl_cv_lib_dl_dlopen="yes" | |
12526 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12527 | else | |
12528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12529 | /* end confdefs.h. */ | |
12530 | #if HAVE_DLFCN_H | |
12531 | # include <dlfcn.h> | |
12532 | #endif | |
212380e3 | 12533 | |
eec2776c AJ |
12534 | int |
12535 | main () | |
12536 | { | |
12537 | dlopen(0, 0); | |
12538 | ; | |
12539 | return 0; | |
12540 | } | |
12541 | _ACEOF | |
12542 | if ac_fn_c_try_link "$LINENO"; then : | |
631ef239 | 12543 | |
eec2776c | 12544 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
631ef239 | 12545 | |
eec2776c AJ |
12546 | libltdl_cv_func_dlopen="yes" |
12547 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12548 | else | |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12550 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12551 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 | 12552 | $as_echo_n "(cached) " >&6 |
7083c021 | 12553 | else |
c52df125 | 12554 | ac_check_lib_save_LIBS=$LIBS |
eec2776c | 12555 | LIBS="-lsvld $LIBS" |
c52df125 | 12556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 | 12557 | /* end confdefs.h. */ |
212380e3 | 12558 | |
c52df125 AC |
12559 | /* Override any GCC internal prototype to avoid an error. |
12560 | Use char because int might match the return type of a GCC | |
12561 | builtin and then its argument prototype would still apply. */ | |
12562 | #ifdef __cplusplus | |
12563 | extern "C" | |
12564 | #endif | |
eec2776c | 12565 | char dlopen (); |
7083c021 AC |
12566 | int |
12567 | main () | |
12568 | { | |
eec2776c | 12569 | return dlopen (); |
7083c021 AC |
12570 | ; |
12571 | return 0; | |
12572 | } | |
212380e3 | 12573 | _ACEOF |
c52df125 | 12574 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 12575 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 12576 | else |
eec2776c | 12577 | ac_cv_lib_svld_dlopen=no |
212380e3 | 12578 | fi |
c52df125 AC |
12579 | rm -f core conftest.err conftest.$ac_objext \ |
12580 | conftest$ac_exeext conftest.$ac_ext | |
12581 | LIBS=$ac_check_lib_save_LIBS | |
212380e3 | 12582 | fi |
eec2776c AJ |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12584 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12585 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
c52df125 | 12586 | |
eec2776c | 12587 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
c52df125 | 12588 | |
eec2776c AJ |
12589 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12590 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
c52df125 AC |
12591 | fi |
12592 | ||
c52df125 | 12593 | fi |
eec2776c AJ |
12594 | rm -f core conftest.err conftest.$ac_objext \ |
12595 | conftest$ac_exeext conftest.$ac_ext | |
c52df125 AC |
12596 | fi |
12597 | ||
eec2776c AJ |
12598 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12599 | then | |
12600 | lt_save_LIBS="$LIBS" | |
12601 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12602 | for ac_func in dlerror | |
12603 | do : | |
12604 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12605 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12606 | cat >>confdefs.h <<_ACEOF | |
12607 | #define HAVE_DLERROR 1 | |
12608 | _ACEOF | |
c52df125 | 12609 | |
c52df125 | 12610 | fi |
eec2776c | 12611 | done |
c52df125 | 12612 | |
eec2776c | 12613 | LIBS="$lt_save_LIBS" |
c52df125 | 12614 | fi |
7083c021 | 12615 | |
631ef239 | 12616 | |
eec2776c AJ |
12617 | LIBADD_SHL_LOAD= |
12618 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12619 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
212380e3 | 12620 | |
eec2776c | 12621 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 | 12622 | |
eec2776c | 12623 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
c52df125 | 12624 | else |
eec2776c AJ |
12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12626 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12627 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12628 | $as_echo_n "(cached) " >&6 | |
7083c021 | 12629 | else |
eec2776c AJ |
12630 | ac_check_lib_save_LIBS=$LIBS |
12631 | LIBS="-ldld $LIBS" | |
12632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12633 | /* end confdefs.h. */ | |
c52df125 | 12634 | |
eec2776c AJ |
12635 | /* Override any GCC internal prototype to avoid an error. |
12636 | Use char because int might match the return type of a GCC | |
12637 | builtin and then its argument prototype would still apply. */ | |
12638 | #ifdef __cplusplus | |
12639 | extern "C" | |
12640 | #endif | |
12641 | char shl_load (); | |
12642 | int | |
12643 | main () | |
12644 | { | |
12645 | return shl_load (); | |
12646 | ; | |
12647 | return 0; | |
12648 | } | |
212380e3 | 12649 | _ACEOF |
eec2776c AJ |
12650 | if ac_fn_c_try_link "$LINENO"; then : |
12651 | ac_cv_lib_dld_shl_load=yes | |
7083c021 | 12652 | else |
eec2776c AJ |
12653 | ac_cv_lib_dld_shl_load=no |
12654 | fi | |
12655 | rm -f core conftest.err conftest.$ac_objext \ | |
12656 | conftest$ac_exeext conftest.$ac_ext | |
12657 | LIBS=$ac_check_lib_save_LIBS | |
12658 | fi | |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12660 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12661 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
c52df125 | 12662 | |
eec2776c | 12663 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
c52df125 | 12664 | |
eec2776c AJ |
12665 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12666 | LIBADD_SHL_LOAD="-ldld" | |
12667 | fi | |
c52df125 | 12668 | |
212380e3 AC |
12669 | fi |
12670 | ||
c52df125 | 12671 | |
212380e3 | 12672 | |
eec2776c AJ |
12673 | case $host_os in |
12674 | darwin[1567].*) | |
12675 | # We only want this for pre-Mac OS X 10.4. | |
12676 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12677 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
212380e3 | 12678 | |
eec2776c | 12679 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
7083c021 | 12680 | |
eec2776c | 12681 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
7083c021 | 12682 | fi |
c52df125 | 12683 | |
eec2776c AJ |
12684 | ;; |
12685 | beos*) | |
12686 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12687 | ;; | |
12688 | cygwin* | mingw* | os2* | pw32*) | |
12689 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12690 | " | |
12691 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12692 | ac_have_decl=1 | |
12693 | else | |
12694 | ac_have_decl=0 | |
12695 | fi | |
c52df125 AC |
12696 | |
12697 | cat >>confdefs.h <<_ACEOF | |
eec2776c | 12698 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
212380e3 AC |
12699 | _ACEOF |
12700 | ||
eec2776c AJ |
12701 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12702 | ;; | |
12703 | esac | |
212380e3 | 12704 | |
eec2776c AJ |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12706 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12707 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12708 | $as_echo_n "(cached) " >&6 | |
12709 | else | |
12710 | ac_check_lib_save_LIBS=$LIBS | |
12711 | LIBS="-ldld $LIBS" | |
12712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12713 | /* end confdefs.h. */ | |
c52df125 | 12714 | |
eec2776c AJ |
12715 | /* Override any GCC internal prototype to avoid an error. |
12716 | Use char because int might match the return type of a GCC | |
12717 | builtin and then its argument prototype would still apply. */ | |
12718 | #ifdef __cplusplus | |
12719 | extern "C" | |
12720 | #endif | |
12721 | char dld_link (); | |
12722 | int | |
12723 | main () | |
12724 | { | |
12725 | return dld_link (); | |
12726 | ; | |
12727 | return 0; | |
12728 | } | |
212380e3 | 12729 | _ACEOF |
eec2776c AJ |
12730 | if ac_fn_c_try_link "$LINENO"; then : |
12731 | ac_cv_lib_dld_dld_link=yes | |
12732 | else | |
12733 | ac_cv_lib_dld_dld_link=no | |
12734 | fi | |
12735 | rm -f core conftest.err conftest.$ac_objext \ | |
12736 | conftest$ac_exeext conftest.$ac_ext | |
12737 | LIBS=$ac_check_lib_save_LIBS | |
12738 | fi | |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12740 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12741 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
212380e3 | 12742 | |
eec2776c AJ |
12743 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
12744 | ||
12745 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12746 | fi | |
212380e3 AC |
12747 | |
12748 | ||
12749 | ||
12750 | ||
eec2776c AJ |
12751 | LT_DLPREOPEN= |
12752 | if test -n "$LT_DLLOADERS" | |
12753 | then | |
12754 | for lt_loader in $LT_DLLOADERS; do | |
12755 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12756 | done | |
7083c021 | 12757 | |
eec2776c | 12758 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
212380e3 | 12759 | |
eec2776c | 12760 | fi |
631ef239 | 12761 | |
212380e3 | 12762 | |
eec2776c | 12763 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
212380e3 | 12764 | |
212380e3 | 12765 | |
eec2776c AJ |
12766 | ac_ext=c |
12767 | ac_cpp='$CPP $CPPFLAGS' | |
12768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12771 | |
12772 | ||
eec2776c AJ |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12774 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12775 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12776 | $as_echo_n "(cached) " >&6 | |
c52df125 | 12777 | else |
eec2776c AJ |
12778 | lt_cv_sys_symbol_underscore=no |
12779 | cat > conftest.$ac_ext <<_LT_EOF | |
12780 | void nm_test_func(){} | |
12781 | int main(){nm_test_func;return 0;} | |
12782 | _LT_EOF | |
12783 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12784 | (eval $ac_compile) 2>&5 | |
12785 | ac_status=$? | |
12786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12787 | test $ac_status = 0; }; then | |
12788 | # Now try to grab the symbols. | |
12789 | ac_nlist=conftest.nm | |
12790 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12791 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12792 | ac_status=$? | |
12793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12794 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12795 | # See whether the symbols have a leading underscore. | |
12796 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12797 | lt_cv_sys_symbol_underscore=yes | |
12798 | else | |
12799 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12800 | : | |
12801 | else | |
12802 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12803 | fi | |
12804 | fi | |
12805 | else | |
12806 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12807 | fi | |
12808 | else | |
12809 | echo "configure: failed program was:" >&5 | |
12810 | cat conftest.c >&5 | |
12811 | fi | |
12812 | rm -rf conftest* | |
12813 | ||
212380e3 | 12814 | fi |
eec2776c AJ |
12815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12816 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12817 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
212380e3 AC |
12818 | |
12819 | ||
eec2776c AJ |
12820 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12821 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12822 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12824 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12825 | if ${libltdl_cv_need_uscore+:} false; then : | |
7083c021 | 12826 | $as_echo_n "(cached) " >&6 |
212380e3 | 12827 | else |
eec2776c AJ |
12828 | libltdl_cv_need_uscore=unknown |
12829 | save_LIBS="$LIBS" | |
12830 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12831 | if test "$cross_compiling" = yes; then : | |
12832 | libltdl_cv_need_uscore=cross | |
12833 | else | |
12834 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12835 | lt_status=$lt_dlunknown | |
12836 | cat > conftest.$ac_ext <<_LT_EOF | |
12837 | #line $LINENO "configure" | |
12838 | #include "confdefs.h" | |
212380e3 | 12839 | |
eec2776c AJ |
12840 | #if HAVE_DLFCN_H |
12841 | #include <dlfcn.h> | |
c52df125 | 12842 | #endif |
c52df125 | 12843 | |
eec2776c | 12844 | #include <stdio.h> |
c52df125 | 12845 | |
eec2776c AJ |
12846 | #ifdef RTLD_GLOBAL |
12847 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12848 | #else | |
12849 | # ifdef DL_GLOBAL | |
12850 | # define LT_DLGLOBAL DL_GLOBAL | |
12851 | # else | |
12852 | # define LT_DLGLOBAL 0 | |
12853 | # endif | |
12854 | #endif | |
c52df125 | 12855 | |
eec2776c AJ |
12856 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12857 | find out it does not work in some platform. */ | |
12858 | #ifndef LT_DLLAZY_OR_NOW | |
12859 | # ifdef RTLD_LAZY | |
12860 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12861 | # else | |
12862 | # ifdef DL_LAZY | |
12863 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12864 | # else | |
12865 | # ifdef RTLD_NOW | |
12866 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12867 | # else | |
12868 | # ifdef DL_NOW | |
12869 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12870 | # else | |
12871 | # define LT_DLLAZY_OR_NOW 0 | |
12872 | # endif | |
12873 | # endif | |
12874 | # endif | |
12875 | # endif | |
12876 | #endif | |
212380e3 | 12877 | |
eec2776c AJ |
12878 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12879 | correspondingly for the symbols needed. */ | |
12880 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12881 | int fnord () __attribute__((visibility("default"))); | |
12882 | #endif | |
212380e3 | 12883 | |
eec2776c AJ |
12884 | int fnord () { return 42; } |
12885 | int main () | |
12886 | { | |
12887 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12888 | int status = $lt_dlunknown; | |
c52df125 | 12889 | |
eec2776c | 12890 | if (self) |
c52df125 | 12891 | { |
eec2776c AJ |
12892 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12893 | else | |
12894 | { | |
12895 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12896 | else puts (dlerror ()); | |
c52df125 | 12897 | } |
eec2776c | 12898 | /* dlclose (self); */ |
c52df125 | 12899 | } |
eec2776c AJ |
12900 | else |
12901 | puts (dlerror ()); | |
12902 | ||
12903 | return status; | |
c52df125 | 12904 | } |
eec2776c AJ |
12905 | _LT_EOF |
12906 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12907 | (eval $ac_link) 2>&5 | |
12908 | ac_status=$? | |
12909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12910 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12911 | (./conftest; exit; ) >&5 2>/dev/null | |
12912 | lt_status=$? | |
12913 | case x$lt_status in | |
12914 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12915 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12916 | x$lt_dlunknown|x*) ;; | |
12917 | esac | |
12918 | else : | |
12919 | # compilation failed | |
c52df125 | 12920 | |
eec2776c AJ |
12921 | fi |
12922 | fi | |
12923 | rm -fr conftest* | |
c52df125 | 12924 | |
eec2776c | 12925 | LIBS="$save_LIBS" |
212380e3 | 12926 | |
eec2776c AJ |
12927 | fi |
12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12929 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12930 | fi | |
12931 | fi | |
212380e3 | 12932 | |
eec2776c | 12933 | if test x"$libltdl_cv_need_uscore" = xyes; then |
212380e3 | 12934 | |
eec2776c | 12935 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
212380e3 | 12936 | |
eec2776c | 12937 | fi |
7083c021 | 12938 | |
eec2776c AJ |
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12940 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12941 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12942 | $as_echo_n "(cached) " >&6 | |
12943 | else | |
12944 | # PORTME does your system automatically load deplibs for dlopen? | |
12945 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12946 | # For now, we just catch OSes we know something about -- in the | |
12947 | # future, we'll try test this programmatically. | |
12948 | lt_cv_sys_dlopen_deplibs=unknown | |
12949 | case $host_os in | |
12950 | aix3*|aix4.1.*|aix4.2.*) | |
12951 | # Unknown whether this is true for these versions of AIX, but | |
12952 | # we want this `case' here to explicitly catch those versions. | |
12953 | lt_cv_sys_dlopen_deplibs=unknown | |
12954 | ;; | |
12955 | aix[4-9]*) | |
12956 | lt_cv_sys_dlopen_deplibs=yes | |
12957 | ;; | |
12958 | amigaos*) | |
12959 | case $host_cpu in | |
12960 | powerpc) | |
12961 | lt_cv_sys_dlopen_deplibs=no | |
12962 | ;; | |
12963 | esac | |
12964 | ;; | |
12965 | darwin*) | |
12966 | # Assuming the user has installed a libdl from somewhere, this is true | |
12967 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12968 | lt_cv_sys_dlopen_deplibs=yes | |
12969 | ;; | |
12970 | freebsd* | dragonfly*) | |
12971 | lt_cv_sys_dlopen_deplibs=yes | |
12972 | ;; | |
12973 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12974 | # GNU and its variants, using gnu ld.so (Glibc) | |
12975 | lt_cv_sys_dlopen_deplibs=yes | |
12976 | ;; | |
12977 | hpux10*|hpux11*) | |
12978 | lt_cv_sys_dlopen_deplibs=yes | |
12979 | ;; | |
12980 | interix*) | |
12981 | lt_cv_sys_dlopen_deplibs=yes | |
12982 | ;; | |
12983 | irix[12345]*|irix6.[01]*) | |
12984 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12985 | # know how it worked for any of those versions. | |
12986 | lt_cv_sys_dlopen_deplibs=unknown | |
12987 | ;; | |
12988 | irix*) | |
12989 | # The case above catches anything before 6.2, and it's known that | |
12990 | # at 6.2 and later dlopen does load deplibs. | |
12991 | lt_cv_sys_dlopen_deplibs=yes | |
12992 | ;; | |
12993 | netbsd* | netbsdelf*-gnu) | |
12994 | lt_cv_sys_dlopen_deplibs=yes | |
12995 | ;; | |
12996 | openbsd*) | |
12997 | lt_cv_sys_dlopen_deplibs=yes | |
12998 | ;; | |
12999 | osf[1234]*) | |
13000 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
13001 | # it did *not* use an RPATH in a shared library to find objects the | |
13002 | # library depends on, so we explicitly say `no'. | |
13003 | lt_cv_sys_dlopen_deplibs=no | |
13004 | ;; | |
13005 | osf5.0|osf5.0a|osf5.1) | |
13006 | # dlopen *does* load deplibs and with the right loader patch applied | |
13007 | # it even uses RPATH in a shared library to search for shared objects | |
13008 | # that the library depends on, but there's no easy way to know if that | |
13009 | # patch is installed. Since this is the case, all we can really | |
13010 | # say is unknown -- it depends on the patch being installed. If | |
13011 | # it is, this changes to `yes'. Without it, it would be `no'. | |
13012 | lt_cv_sys_dlopen_deplibs=unknown | |
13013 | ;; | |
13014 | osf*) | |
13015 | # the two cases above should catch all versions of osf <= 5.1. Read | |
13016 | # the comments above for what we know about them. | |
13017 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
13018 | # is used to find them so we can finally say `yes'. | |
13019 | lt_cv_sys_dlopen_deplibs=yes | |
13020 | ;; | |
13021 | qnx*) | |
13022 | lt_cv_sys_dlopen_deplibs=yes | |
13023 | ;; | |
13024 | solaris*) | |
13025 | lt_cv_sys_dlopen_deplibs=yes | |
13026 | ;; | |
13027 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13028 | libltdl_cv_sys_dlopen_deplibs=yes | |
13029 | ;; | |
13030 | esac | |
212380e3 | 13031 | |
eec2776c AJ |
13032 | fi |
13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
13034 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
13035 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
631ef239 | 13036 | |
eec2776c | 13037 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
7083c021 | 13038 | |
eec2776c AJ |
13039 | fi |
13040 | ||
13041 | : | |
13042 | ||
13043 | for ac_header in argz.h | |
13044 | do : | |
13045 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
13046 | " | |
13047 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
13048 | cat >>confdefs.h <<_ACEOF | |
13049 | #define HAVE_ARGZ_H 1 | |
212380e3 | 13050 | _ACEOF |
eec2776c | 13051 | |
7083c021 | 13052 | fi |
eec2776c | 13053 | |
c52df125 | 13054 | done |
631ef239 | 13055 | |
631ef239 | 13056 | |
eec2776c AJ |
13057 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
13058 | # include <argz.h> | |
13059 | #endif | |
13060 | " | |
13061 | if test "x$ac_cv_type_error_t" = xyes; then : | |
13062 | ||
13063 | cat >>confdefs.h <<_ACEOF | |
13064 | #define HAVE_ERROR_T 1 | |
13065 | _ACEOF | |
13066 | ||
631ef239 | 13067 | |
eec2776c | 13068 | else |
7083c021 | 13069 | |
eec2776c | 13070 | $as_echo "#define error_t int" >>confdefs.h |
7083c021 AC |
13071 | |
13072 | ||
eec2776c AJ |
13073 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
13074 | ||
13075 | fi | |
13076 | ||
13077 | ||
13078 | ARGZ_H= | |
13079 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
13080 | argz_next argz_stringify | |
13081 | do : | |
13082 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13083 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13084 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13085 | cat >>confdefs.h <<_ACEOF | |
13086 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13087 | _ACEOF | |
13088 | ||
212380e3 | 13089 | else |
eec2776c AJ |
13090 | ARGZ_H=argz.h; |
13091 | ||
13092 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13093 | ||
7083c021 | 13094 | fi |
eec2776c | 13095 | done |
7083c021 AC |
13096 | |
13097 | ||
eec2776c AJ |
13098 | if test -z "$ARGZ_H"; then : |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
13100 | $as_echo_n "checking if argz actually works... " >&6; } | |
13101 | if ${lt_cv_sys_argz_works+:} false; then : | |
13102 | $as_echo_n "(cached) " >&6 | |
13103 | else | |
13104 | case $host_os in #( | |
13105 | *cygwin*) | |
13106 | lt_cv_sys_argz_works=no | |
13107 | if test "$cross_compiling" != no; then | |
13108 | lt_cv_sys_argz_works="guessing no" | |
13109 | else | |
13110 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13111 | save_IFS=$IFS | |
13112 | IFS=-. | |
13113 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13114 | IFS=$save_IFS | |
13115 | lt_os_major=${2-0} | |
13116 | lt_os_minor=${3-0} | |
13117 | lt_os_micro=${4-0} | |
13118 | if test "$lt_os_major" -gt 1 \ | |
13119 | || { test "$lt_os_major" -eq 1 \ | |
13120 | && { test "$lt_os_minor" -gt 5 \ | |
13121 | || { test "$lt_os_minor" -eq 5 \ | |
13122 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
13123 | lt_cv_sys_argz_works=yes | |
13124 | fi | |
13125 | fi | |
13126 | ;; #( | |
13127 | *) lt_cv_sys_argz_works=yes ;; | |
13128 | esac | |
13129 | fi | |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
13131 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
13132 | if test "$lt_cv_sys_argz_works" = yes; then : | |
7083c021 | 13133 | |
eec2776c | 13134 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
7083c021 | 13135 | |
eec2776c AJ |
13136 | else |
13137 | ARGZ_H=argz.h | |
212380e3 | 13138 | |
631ef239 | 13139 | |
eec2776c | 13140 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
631ef239 | 13141 | |
eec2776c AJ |
13142 | fi |
13143 | fi | |
631ef239 | 13144 | |
212380e3 | 13145 | |
212380e3 | 13146 | |
eec2776c AJ |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
13148 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13149 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
7083c021 | 13150 | $as_echo_n "(cached) " >&6 |
212380e3 | 13151 | else |
eec2776c AJ |
13152 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
13153 | libltdl_cv_preloaded_symbols=yes | |
13154 | else | |
13155 | libltdl_cv_preloaded_symbols=no | |
13156 | fi | |
7083c021 | 13157 | |
212380e3 | 13158 | fi |
eec2776c AJ |
13159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
13160 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
13161 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
13162 | ||
13163 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
13164 | ||
212380e3 | 13165 | fi |
212380e3 | 13166 | |
eec2776c | 13167 | # Set options |
212380e3 | 13168 | |
7083c021 | 13169 | |
7083c021 | 13170 | |
212380e3 | 13171 | |
7083c021 AC |
13172 | |
13173 | ||
13174 | ||
212380e3 | 13175 | |
212380e3 | 13176 | |
212380e3 | 13177 | |
212380e3 | 13178 | |
212380e3 | 13179 | |
eec2776c AJ |
13180 | # Check whether --with-included_ltdl was given. |
13181 | if test "${with_included_ltdl+set}" = set; then : | |
13182 | withval=$with_included_ltdl; | |
212380e3 | 13183 | fi |
631ef239 | 13184 | |
eec2776c AJ |
13185 | |
13186 | if test "x$with_included_ltdl" != xyes; then | |
13187 | # We are not being forced to use the included libltdl sources, so | |
13188 | # decide whether there is a useful installed version we can use. | |
13189 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
13190 | ||
13191 | " | |
13192 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13193 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
13194 | #include <ltdl.h> | |
13195 | " | |
13196 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
13198 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13199 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
7083c021 | 13200 | $as_echo_n "(cached) " >&6 |
212380e3 | 13201 | else |
eec2776c AJ |
13202 | ac_check_lib_save_LIBS=$LIBS |
13203 | LIBS="-lltdl $LIBS" | |
13204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13205 | /* end confdefs.h. */ | |
13206 | ||
13207 | /* Override any GCC internal prototype to avoid an error. | |
13208 | Use char because int might match the return type of a GCC | |
13209 | builtin and then its argument prototype would still apply. */ | |
13210 | #ifdef __cplusplus | |
13211 | extern "C" | |
13212 | #endif | |
13213 | char lt_dladvise_preload (); | |
13214 | int | |
13215 | main () | |
13216 | { | |
13217 | return lt_dladvise_preload (); | |
13218 | ; | |
13219 | return 0; | |
13220 | } | |
13221 | _ACEOF | |
13222 | if ac_fn_c_try_link "$LINENO"; then : | |
13223 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
212380e3 | 13224 | else |
eec2776c | 13225 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
212380e3 | 13226 | fi |
eec2776c AJ |
13227 | rm -f core conftest.err conftest.$ac_objext \ |
13228 | conftest$ac_exeext conftest.$ac_ext | |
13229 | LIBS=$ac_check_lib_save_LIBS | |
7083c021 | 13230 | fi |
eec2776c AJ |
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
13232 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13233 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
13234 | with_included_ltdl=no | |
212380e3 | 13235 | else |
eec2776c | 13236 | with_included_ltdl=yes |
7083c021 AC |
13237 | fi |
13238 | ||
7083c021 | 13239 | else |
eec2776c | 13240 | with_included_ltdl=yes |
7083c021 | 13241 | fi |
eec2776c | 13242 | |
7083c021 | 13243 | else |
eec2776c | 13244 | with_included_ltdl=yes |
212380e3 | 13245 | fi |
631ef239 | 13246 | |
212380e3 | 13247 | |
7083c021 | 13248 | fi |
212380e3 | 13249 | |
eec2776c AJ |
13250 | |
13251 | ||
13252 | ||
13253 | # Check whether --with-ltdl_include was given. | |
13254 | if test "${with_ltdl_include+set}" = set; then : | |
13255 | withval=$with_ltdl_include; | |
212380e3 | 13256 | fi |
eec2776c AJ |
13257 | |
13258 | ||
13259 | if test -n "$with_ltdl_include"; then | |
13260 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13261 | else | |
13262 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
13263 | fi | |
212380e3 | 13264 | else |
eec2776c | 13265 | with_ltdl_include=no |
7083c021 | 13266 | fi |
212380e3 | 13267 | |
212380e3 | 13268 | |
eec2776c AJ |
13269 | # Check whether --with-ltdl_lib was given. |
13270 | if test "${with_ltdl_lib+set}" = set; then : | |
13271 | withval=$with_ltdl_lib; | |
7083c021 | 13272 | fi |
eec2776c AJ |
13273 | |
13274 | ||
13275 | if test -n "$with_ltdl_lib"; then | |
13276 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13277 | else | |
13278 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
7083c021 | 13279 | fi |
eec2776c AJ |
13280 | else |
13281 | with_ltdl_lib=no | |
13282 | fi | |
13283 | ||
13284 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13285 | ,yes,no,no,) | |
13286 | case $enable_ltdl_convenience in | |
13287 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13288 | "") enable_ltdl_convenience=yes | |
13289 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13290 | esac | |
13291 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13292 | LTDLDEPS=$LIBLTDL | |
13293 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13294 | ||
13295 | ||
13296 | ||
13297 | ||
13298 | ||
13299 | # For backwards non-gettext consistent compatibility... | |
13300 | INCLTDL="$LTDLINCL" | |
13301 | ||
13302 | ||
13303 | ;; | |
13304 | ,no,no,no,) | |
13305 | # If the included ltdl is not to be used, then use the | |
13306 | # preinstalled libltdl we found. | |
13307 | ||
13308 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13309 | ||
13310 | LIBLTDL=-lltdl | |
13311 | LTDLDEPS= | |
13312 | LTDLINCL= | |
13313 | ;; | |
13314 | ,no*,no,*) | |
13315 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13316 | ;; | |
13317 | *) with_included_ltdl=no | |
13318 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13319 | LTDLDEPS= | |
13320 | LTDLINCL="-I$with_ltdl_include" | |
13321 | ;; | |
13322 | esac | |
13323 | INCLTDL="$LTDLINCL" | |
13324 | ||
13325 | # Report our decision... | |
13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13327 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13329 | $as_echo "$LTDLINCL" >&6; } | |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13331 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13333 | $as_echo "$LIBLTDL" >&6; } | |
13334 | ||
13335 | ||
212380e3 | 13336 | |
eec2776c AJ |
13337 | # Check whether --enable-ltdl-install was given. |
13338 | if test "${enable_ltdl_install+set}" = set; then : | |
13339 | enableval=$enable_ltdl_install; | |
212380e3 | 13340 | fi |
eec2776c AJ |
13341 | |
13342 | ||
13343 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13344 | *yes*) ;; | |
13345 | *) enable_ltdl_convenience=yes ;; | |
13346 | esac | |
13347 | ||
13348 | if test x"${enable_ltdl_install-no}" != xno; then | |
13349 | INSTALL_LTDL_TRUE= | |
13350 | INSTALL_LTDL_FALSE='#' | |
13351 | else | |
13352 | INSTALL_LTDL_TRUE='#' | |
13353 | INSTALL_LTDL_FALSE= | |
212380e3 | 13354 | fi |
eec2776c AJ |
13355 | |
13356 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13357 | CONVENIENCE_LTDL_TRUE= | |
13358 | CONVENIENCE_LTDL_FALSE='#' | |
7083c021 | 13359 | else |
eec2776c AJ |
13360 | CONVENIENCE_LTDL_TRUE='#' |
13361 | CONVENIENCE_LTDL_FALSE= | |
212380e3 | 13362 | fi |
631ef239 AC |
13363 | |
13364 | ||
13365 | ||
f0718c93 | 13366 | subdirs="$subdirs libltdl" |
212380e3 AC |
13367 | |
13368 | ||
7083c021 | 13369 | |
7083c021 | 13370 | |
eec2776c AJ |
13371 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13372 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13373 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13374 | # definitions required by ltdl.c. | |
13375 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
212380e3 | 13376 | |
7083c021 | 13377 | |
212380e3 | 13378 | |
eec2776c AJ |
13379 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13380 | do : | |
13381 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13382 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13383 | " | |
13384 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13385 | cat >>confdefs.h <<_ACEOF | |
13386 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 13387 | _ACEOF |
7083c021 AC |
13388 | |
13389 | fi | |
212380e3 | 13390 | |
eec2776c | 13391 | done |
7083c021 | 13392 | |
212380e3 | 13393 | |
eec2776c AJ |
13394 | for ac_func in closedir opendir readdir |
13395 | do : | |
13396 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13397 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13398 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13399 | cat >>confdefs.h <<_ACEOF | |
13400 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13401 | _ACEOF |
212380e3 | 13402 | |
7083c021 | 13403 | else |
7083c021 | 13404 | |
7083c021 | 13405 | |
eec2776c | 13406 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
7083c021 | 13407 | |
7083c021 | 13408 | fi |
7083c021 | 13409 | done |
7083c021 | 13410 | |
eec2776c AJ |
13411 | for ac_func in strlcat strlcpy |
13412 | do : | |
13413 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13414 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13415 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13416 | cat >>confdefs.h <<_ACEOF | |
13417 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13418 | _ACEOF | |
13419 | ||
13420 | else | |
13421 | ||
13422 | ||
13423 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
212380e3 | 13424 | |
212380e3 | 13425 | fi |
eec2776c | 13426 | done |
631ef239 | 13427 | |
7083c021 | 13428 | |
c52df125 | 13429 | |
eec2776c AJ |
13430 | cat >>confdefs.h <<_ACEOF |
13431 | #define LT_LIBEXT "$libext" | |
13432 | _ACEOF | |
c52df125 | 13433 | |
eec2776c AJ |
13434 | |
13435 | name= | |
13436 | eval "lt_libprefix=\"$libname_spec\"" | |
13437 | ||
13438 | cat >>confdefs.h <<_ACEOF | |
13439 | #define LT_LIBPREFIX "$lt_libprefix" | |
c52df125 | 13440 | _ACEOF |
7083c021 AC |
13441 | |
13442 | ||
eec2776c AJ |
13443 | name=ltdl |
13444 | eval "LTDLOPEN=\"$libname_spec\"" | |
7083c021 | 13445 | |
c52df125 | 13446 | |
c52df125 | 13447 | |
c52df125 | 13448 | |
1db8e007 | 13449 | |
1db8e007 JT |
13450 | |
13451 | ||
13452 | ||
eec2776c | 13453 | # Only expand once: |
1db8e007 | 13454 | |
1db8e007 | 13455 | |
7083c021 | 13456 | |
eec2776c | 13457 | build_ltdl=$with_included_ltdl |
d8c4154d | 13458 | if test x"$build_ltdl" = x"yes"; then |
eec2776c AJ |
13459 | BUILD_LTDL_TRUE= |
13460 | BUILD_LTDL_FALSE='#' | |
13461 | else | |
13462 | BUILD_LTDL_TRUE='#' | |
13463 | BUILD_LTDL_FALSE= | |
13464 | fi | |
7083c021 | 13465 | |
212380e3 | 13466 | |
cfa7b5fd | 13467 | if test "$ac_cv_c_compiler_gnu" = yes; then |
eec2776c | 13468 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" |
212380e3 | 13469 | fi |
631ef239 | 13470 | |
7083c021 | 13471 | if test "$ac_cv_prog_cc_g" = yes; then |
2a19fc3f | 13472 | IRC_CFLAGS="$IRC_CFLAGS -g" |
7083c021 | 13473 | fi |
7083c021 AC |
13474 | |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
13476 | $as_echo_n "checking for /dev/null... " >&6; } | |
13477 | if test -c /dev/null ; then | |
13478 | ||
13479 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
13480 | ||
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13482 | $as_echo "yes" >&6; } | |
212380e3 | 13483 | else |
212380e3 | 13484 | |
7083c021 AC |
13485 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13486 | ||
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
13488 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 13489 | fi |
631ef239 | 13490 | |
7083c021 AC |
13491 | if test ! -z "$CFLAGS"; then |
13492 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 13493 | fi |
631ef239 | 13494 | |
7083c021 AC |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
13496 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 13497 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13498 | $as_echo_n "(cached) " >&6 |
13499 | else | |
13500 | ac_func_search_save_LIBS=$LIBS | |
13501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13502 | /* end confdefs.h. */ |
7083c021 AC |
13503 | |
13504 | /* Override any GCC internal prototype to avoid an error. | |
13505 | Use char because int might match the return type of a GCC | |
13506 | builtin and then its argument prototype would still apply. */ | |
13507 | #ifdef __cplusplus | |
13508 | extern "C" | |
13509 | #endif | |
13510 | char strerror (); | |
212380e3 AC |
13511 | int |
13512 | main () | |
13513 | { | |
7083c021 | 13514 | return strerror (); |
212380e3 AC |
13515 | ; |
13516 | return 0; | |
13517 | } | |
13518 | _ACEOF | |
7083c021 AC |
13519 | for ac_lib in '' cposix; do |
13520 | if test -z "$ac_lib"; then | |
13521 | ac_res="none required" | |
13522 | else | |
13523 | ac_res=-l$ac_lib | |
13524 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13525 | fi | |
13526 | if ac_fn_c_try_link "$LINENO"; then : | |
13527 | ac_cv_search_strerror=$ac_res | |
13528 | fi | |
13529 | rm -f core conftest.err conftest.$ac_objext \ | |
13530 | conftest$ac_exeext | |
b6d0720c | 13531 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13532 | break |
13533 | fi | |
13534 | done | |
b6d0720c | 13535 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 13536 | |
212380e3 | 13537 | else |
7083c021 AC |
13538 | ac_cv_search_strerror=no |
13539 | fi | |
13540 | rm conftest.$ac_ext | |
13541 | LIBS=$ac_func_search_save_LIBS | |
13542 | fi | |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
13544 | $as_echo "$ac_cv_search_strerror" >&6; } | |
13545 | ac_res=$ac_cv_search_strerror | |
13546 | if test "$ac_res" != no; then : | |
13547 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 13548 | |
212380e3 | 13549 | fi |
631ef239 | 13550 | |
7083c021 AC |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13552 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 13553 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
13554 | $as_echo_n "(cached) " >&6 |
13555 | else | |
13556 | ac_cv_c_inline=no | |
13557 | for ac_kw in inline __inline__ __inline; do | |
13558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13559 | /* end confdefs.h. */ | |
13560 | #ifndef __cplusplus | |
13561 | typedef int foo_t; | |
13562 | static $ac_kw foo_t static_foo () {return 0; } | |
13563 | $ac_kw foo_t foo () {return 0; } | |
13564 | #endif | |
13565 | ||
13566 | _ACEOF | |
13567 | if ac_fn_c_try_compile "$LINENO"; then : | |
13568 | ac_cv_c_inline=$ac_kw | |
13569 | fi | |
631ef239 | 13570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 13571 | test "$ac_cv_c_inline" != no && break |
212380e3 | 13572 | done |
7083c021 AC |
13573 | |
13574 | fi | |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13576 | $as_echo "$ac_cv_c_inline" >&6; } | |
13577 | ||
13578 | case $ac_cv_c_inline in | |
13579 | inline | yes) ;; | |
13580 | *) | |
13581 | case $ac_cv_c_inline in | |
13582 | no) ac_val=;; | |
13583 | *) ac_val=$ac_cv_c_inline;; | |
13584 | esac | |
13585 | cat >>confdefs.h <<_ACEOF | |
13586 | #ifndef __cplusplus | |
13587 | #define inline $ac_val | |
13588 | #endif | |
13589 | _ACEOF | |
13590 | ;; | |
212380e3 | 13591 | esac |
7083c021 | 13592 | |
7083c021 AC |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13594 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13595 | set x ${MAKE-make} | |
13596 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 13597 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
13598 | $as_echo_n "(cached) " >&6 |
13599 | else | |
13600 | cat >conftest.make <<\_ACEOF | |
13601 | SHELL = /bin/sh | |
13602 | all: | |
13603 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 13604 | _ACEOF |
b6d0720c | 13605 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
13606 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
13607 | *@@@%%%=?*=@@@%%%*) | |
13608 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13609 | *) | |
13610 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 13611 | esac |
7083c021 AC |
13612 | rm -f conftest.make |
13613 | fi | |
13614 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13616 | $as_echo "yes" >&6; } | |
13617 | SET_MAKE= | |
13618 | else | |
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13620 | $as_echo "no" >&6; } | |
c52df125 | 13621 | SET_MAKE="MAKE=${MAKE-make}" |
7083c021 | 13622 | fi |
7083c021 | 13623 | |
7083c021 AC |
13624 | |
13625 | # Extract the first word of "rm", so it can be a program name with args. | |
13626 | set dummy rm; ac_word=$2 | |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13628 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13629 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 13630 | $as_echo_n "(cached) " >&6 |
212380e3 | 13631 | else |
7083c021 AC |
13632 | case $RM in |
13633 | [\\/]* | ?:[\\/]*) | |
13634 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
13635 | ;; | |
13636 | *) | |
13637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13638 | for as_dir in $PATH | |
13639 | do | |
13640 | IFS=$as_save_IFS | |
13641 | test -z "$as_dir" && as_dir=. | |
13642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13644 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
13645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13646 | break 2 | |
13647 | fi | |
13648 | done | |
13649 | done | |
13650 | IFS=$as_save_IFS | |
212380e3 | 13651 | |
7083c021 AC |
13652 | ;; |
13653 | esac | |
212380e3 | 13654 | fi |
7083c021 AC |
13655 | RM=$ac_cv_path_RM |
13656 | if test -n "$RM"; then | |
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
13658 | $as_echo "$RM" >&6; } | |
13659 | else | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13661 | $as_echo "no" >&6; } | |
212380e3 | 13662 | fi |
631ef239 AC |
13663 | |
13664 | ||
7083c021 AC |
13665 | # Extract the first word of "cp", so it can be a program name with args. |
13666 | set dummy cp; ac_word=$2 | |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13668 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13669 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
13670 | $as_echo_n "(cached) " >&6 |
13671 | else | |
13672 | case $CP in | |
13673 | [\\/]* | ?:[\\/]*) | |
13674 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
13675 | ;; | |
13676 | *) | |
13677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13678 | for as_dir in $PATH | |
13679 | do | |
13680 | IFS=$as_save_IFS | |
13681 | test -z "$as_dir" && as_dir=. | |
13682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13684 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
13685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13686 | break 2 | |
13687 | fi | |
13688 | done | |
13689 | done | |
13690 | IFS=$as_save_IFS | |
631ef239 | 13691 | |
7083c021 AC |
13692 | ;; |
13693 | esac | |
13694 | fi | |
13695 | CP=$ac_cv_path_CP | |
13696 | if test -n "$CP"; then | |
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
13698 | $as_echo "$CP" >&6; } | |
13699 | else | |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13701 | $as_echo "no" >&6; } | |
13702 | fi | |
212380e3 AC |
13703 | |
13704 | ||
7083c021 AC |
13705 | # Extract the first word of "mv", so it can be a program name with args. |
13706 | set dummy mv; ac_word=$2 | |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13708 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13709 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 13710 | $as_echo_n "(cached) " >&6 |
212380e3 | 13711 | else |
7083c021 AC |
13712 | case $MV in |
13713 | [\\/]* | ?:[\\/]*) | |
13714 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
13715 | ;; | |
13716 | *) | |
13717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13718 | for as_dir in $PATH | |
13719 | do | |
13720 | IFS=$as_save_IFS | |
13721 | test -z "$as_dir" && as_dir=. | |
13722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13724 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
13725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13726 | break 2 | |
13727 | fi | |
13728 | done | |
13729 | done | |
13730 | IFS=$as_save_IFS | |
13731 | ||
13732 | ;; | |
631ef239 | 13733 | esac |
7083c021 AC |
13734 | fi |
13735 | MV=$ac_cv_path_MV | |
13736 | if test -n "$MV"; then | |
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
13738 | $as_echo "$MV" >&6; } | |
212380e3 | 13739 | else |
7083c021 AC |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13741 | $as_echo "no" >&6; } | |
212380e3 | 13742 | fi |
631ef239 | 13743 | |
212380e3 | 13744 | |
7083c021 AC |
13745 | # Extract the first word of "ln", so it can be a program name with args. |
13746 | set dummy ln; ac_word=$2 | |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13748 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13749 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 13750 | $as_echo_n "(cached) " >&6 |
212380e3 | 13751 | else |
7083c021 AC |
13752 | case $LN in |
13753 | [\\/]* | ?:[\\/]*) | |
13754 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
13755 | ;; | |
13756 | *) | |
13757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13758 | for as_dir in $PATH | |
13759 | do | |
13760 | IFS=$as_save_IFS | |
13761 | test -z "$as_dir" && as_dir=. | |
13762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13764 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
13765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13766 | break 2 | |
13767 | fi | |
13768 | done | |
13769 | done | |
13770 | IFS=$as_save_IFS | |
212380e3 | 13771 | |
7083c021 | 13772 | ;; |
631ef239 | 13773 | esac |
7083c021 AC |
13774 | fi |
13775 | LN=$ac_cv_path_LN | |
13776 | if test -n "$LN"; then | |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
13778 | $as_echo "$LN" >&6; } | |
212380e3 | 13779 | else |
7083c021 AC |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13781 | $as_echo "no" >&6; } | |
212380e3 | 13782 | fi |
631ef239 | 13783 | |
7083c021 AC |
13784 | |
13785 | # Extract the first word of "sed", so it can be a program name with args. | |
13786 | set dummy sed; ac_word=$2 | |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13788 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13789 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
13790 | $as_echo_n "(cached) " >&6 |
13791 | else | |
13792 | case $SED in | |
13793 | [\\/]* | ?:[\\/]*) | |
13794 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
13795 | ;; | |
13796 | *) | |
13797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13798 | for as_dir in $PATH | |
13799 | do | |
13800 | IFS=$as_save_IFS | |
13801 | test -z "$as_dir" && as_dir=. | |
13802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13804 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
13805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13806 | break 2 | |
13807 | fi | |
13808 | done | |
212380e3 | 13809 | done |
7083c021 AC |
13810 | IFS=$as_save_IFS |
13811 | ||
13812 | ;; | |
13813 | esac | |
13814 | fi | |
13815 | SED=$ac_cv_path_SED | |
13816 | if test -n "$SED"; then | |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
13818 | $as_echo "$SED" >&6; } | |
212380e3 | 13819 | else |
7083c021 AC |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13821 | $as_echo "no" >&6; } | |
13822 | fi | |
212380e3 | 13823 | |
212380e3 | 13824 | |
7083c021 AC |
13825 | # Extract the first word of "ar", so it can be a program name with args. |
13826 | set dummy ar; ac_word=$2 | |
13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13828 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13829 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
13830 | $as_echo_n "(cached) " >&6 |
13831 | else | |
13832 | case $AR in | |
13833 | [\\/]* | ?:[\\/]*) | |
13834 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
13835 | ;; | |
13836 | *) | |
13837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13838 | for as_dir in $PATH | |
13839 | do | |
13840 | IFS=$as_save_IFS | |
13841 | test -z "$as_dir" && as_dir=. | |
13842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13844 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
13845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13846 | break 2 | |
13847 | fi | |
13848 | done | |
13849 | done | |
13850 | IFS=$as_save_IFS | |
212380e3 | 13851 | |
7083c021 | 13852 | ;; |
631ef239 | 13853 | esac |
7083c021 AC |
13854 | fi |
13855 | AR=$ac_cv_path_AR | |
13856 | if test -n "$AR"; then | |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13858 | $as_echo "$AR" >&6; } | |
212380e3 | 13859 | else |
7083c021 AC |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13861 | $as_echo "no" >&6; } | |
212380e3 | 13862 | fi |
631ef239 | 13863 | |
7083c021 AC |
13864 | |
13865 | # Extract the first word of "ld", so it can be a program name with args. | |
13866 | set dummy ld; ac_word=$2 | |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13868 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13869 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 13870 | $as_echo_n "(cached) " >&6 |
212380e3 | 13871 | else |
7083c021 AC |
13872 | case $LD in |
13873 | [\\/]* | ?:[\\/]*) | |
13874 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
13875 | ;; | |
13876 | *) | |
13877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13878 | for as_dir in $PATH | |
13879 | do | |
13880 | IFS=$as_save_IFS | |
13881 | test -z "$as_dir" && as_dir=. | |
13882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13884 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
13885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13886 | break 2 | |
13887 | fi | |
13888 | done | |
13889 | done | |
13890 | IFS=$as_save_IFS | |
212380e3 | 13891 | |
7083c021 AC |
13892 | ;; |
13893 | esac | |
212380e3 | 13894 | fi |
7083c021 AC |
13895 | LD=$ac_cv_path_LD |
13896 | if test -n "$LD"; then | |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13898 | $as_echo "$LD" >&6; } | |
13899 | else | |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13901 | $as_echo "no" >&6; } | |
212380e3 | 13902 | fi |
631ef239 | 13903 | |
212380e3 | 13904 | |
7083c021 AC |
13905 | # Extract the first word of "ranlib", so it can be a program name with args. |
13906 | set dummy ranlib; ac_word=$2 | |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13908 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13909 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 13910 | $as_echo_n "(cached) " >&6 |
212380e3 | 13911 | else |
7083c021 AC |
13912 | case $RANLIB in |
13913 | [\\/]* | ?:[\\/]*) | |
13914 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
13915 | ;; | |
13916 | *) | |
13917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13918 | for as_dir in $PATH | |
13919 | do | |
13920 | IFS=$as_save_IFS | |
13921 | test -z "$as_dir" && as_dir=. | |
13922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13924 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
13925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13926 | break 2 | |
13927 | fi | |
13928 | done | |
13929 | done | |
13930 | IFS=$as_save_IFS | |
212380e3 | 13931 | |
7083c021 AC |
13932 | ;; |
13933 | esac | |
13934 | fi | |
13935 | RANLIB=$ac_cv_path_RANLIB | |
13936 | if test -n "$RANLIB"; then | |
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
13938 | $as_echo "$RANLIB" >&6; } | |
13939 | else | |
13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13941 | $as_echo "no" >&6; } | |
212380e3 | 13942 | fi |
631ef239 | 13943 | |
7083c021 AC |
13944 | |
13945 | # Extract the first word of "touch", so it can be a program name with args. | |
13946 | set dummy touch; ac_word=$2 | |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13948 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13949 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
13950 | $as_echo_n "(cached) " >&6 |
13951 | else | |
13952 | case $TOUCH in | |
13953 | [\\/]* | ?:[\\/]*) | |
13954 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
13955 | ;; | |
13956 | *) | |
13957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13958 | for as_dir in $PATH | |
13959 | do | |
13960 | IFS=$as_save_IFS | |
13961 | test -z "$as_dir" && as_dir=. | |
13962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13964 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
13965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13966 | break 2 | |
13967 | fi | |
212380e3 | 13968 | done |
7083c021 AC |
13969 | done |
13970 | IFS=$as_save_IFS | |
13971 | ||
13972 | ;; | |
212380e3 | 13973 | esac |
7083c021 AC |
13974 | fi |
13975 | TOUCH=$ac_cv_path_TOUCH | |
13976 | if test -n "$TOUCH"; then | |
13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
13978 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 13979 | else |
7083c021 AC |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13981 | $as_echo "no" >&6; } | |
13982 | fi | |
212380e3 | 13983 | |
212380e3 | 13984 | |
7083c021 AC |
13985 | |
13986 | for ac_prog in 'bison -y' byacc | |
13987 | do | |
13988 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13989 | set dummy $ac_prog; ac_word=$2 | |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13991 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13992 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 13993 | $as_echo_n "(cached) " >&6 |
212380e3 | 13994 | else |
7083c021 AC |
13995 | if test -n "$YACC"; then |
13996 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13997 | else | |
13998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13999 | for as_dir in $PATH | |
14000 | do | |
14001 | IFS=$as_save_IFS | |
14002 | test -z "$as_dir" && as_dir=. | |
14003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14005 | ac_cv_prog_YACC="$ac_prog" |
14006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14007 | break 2 | |
14008 | fi | |
14009 | done | |
14010 | done | |
14011 | IFS=$as_save_IFS | |
212380e3 | 14012 | |
212380e3 AC |
14013 | fi |
14014 | fi | |
7083c021 AC |
14015 | YACC=$ac_cv_prog_YACC |
14016 | if test -n "$YACC"; then | |
14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14018 | $as_echo "$YACC" >&6; } | |
14019 | else | |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14021 | $as_echo "no" >&6; } | |
212380e3 | 14022 | fi |
631ef239 AC |
14023 | |
14024 | ||
7083c021 AC |
14025 | test -n "$YACC" && break |
14026 | done | |
14027 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
14028 | |
14029 | ||
7083c021 | 14030 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 14031 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 14032 | fi |
212380e3 | 14033 | |
7083c021 AC |
14034 | for ac_prog in flex lex |
14035 | do | |
14036 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14037 | set dummy $ac_prog; ac_word=$2 | |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14039 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14040 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 14041 | $as_echo_n "(cached) " >&6 |
212380e3 | 14042 | else |
7083c021 AC |
14043 | if test -n "$LEX"; then |
14044 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 14045 | else |
7083c021 AC |
14046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14047 | for as_dir in $PATH | |
14048 | do | |
14049 | IFS=$as_save_IFS | |
14050 | test -z "$as_dir" && as_dir=. | |
14051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14053 | ac_cv_prog_LEX="$ac_prog" |
14054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14055 | break 2 | |
14056 | fi | |
631ef239 | 14057 | done |
7083c021 AC |
14058 | done |
14059 | IFS=$as_save_IFS | |
631ef239 | 14060 | |
7083c021 AC |
14061 | fi |
14062 | fi | |
14063 | LEX=$ac_cv_prog_LEX | |
14064 | if test -n "$LEX"; then | |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14066 | $as_echo "$LEX" >&6; } | |
631ef239 | 14067 | else |
7083c021 AC |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14069 | $as_echo "no" >&6; } | |
631ef239 AC |
14070 | fi |
14071 | ||
14072 | ||
7083c021 AC |
14073 | test -n "$LEX" && break |
14074 | done | |
14075 | test -n "$LEX" || LEX=":" | |
212380e3 | 14076 | |
7083c021 AC |
14077 | if test "x$LEX" != "x:"; then |
14078 | cat >conftest.l <<_ACEOF | |
14079 | %% | |
14080 | a { ECHO; } | |
14081 | b { REJECT; } | |
14082 | c { yymore (); } | |
14083 | d { yyless (1); } | |
2eff3833 JT |
14084 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
14085 | yyless ((input () != 0)); } | |
7083c021 AC |
14086 | f { unput (yytext[0]); } |
14087 | . { BEGIN INITIAL; } | |
14088 | %% | |
14089 | #ifdef YYTEXT_POINTER | |
14090 | extern char *yytext; | |
212380e3 | 14091 | #endif |
212380e3 | 14092 | int |
7083c021 | 14093 | main (void) |
212380e3 | 14094 | { |
7083c021 | 14095 | return ! yylex () + ! yywrap (); |
212380e3 AC |
14096 | } |
14097 | _ACEOF | |
7083c021 | 14098 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
14099 | case "(($ac_try" in |
14100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14101 | *) ac_try_echo=$ac_try;; | |
14102 | esac | |
7083c021 AC |
14103 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
14104 | $as_echo "$ac_try_echo"; } >&5 | |
14105 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 14106 | ac_status=$? |
7083c021 AC |
14107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14108 | test $ac_status = 0; } | |
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14110 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 14111 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 14112 | $as_echo_n "(cached) " >&6 |
212380e3 | 14113 | else |
212380e3 | 14114 | |
7083c021 AC |
14115 | if test -f lex.yy.c; then |
14116 | ac_cv_prog_lex_root=lex.yy | |
14117 | elif test -f lexyy.c; then | |
14118 | ac_cv_prog_lex_root=lexyy | |
14119 | else | |
b6d0720c | 14120 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
14121 | fi |
14122 | fi | |
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14124 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14125 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14126 | ||
14127 | if test -z "${LEXLIB+set}"; then | |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14129 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 14130 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
14131 | $as_echo_n "(cached) " >&6 |
14132 | else | |
631ef239 | 14133 | |
7083c021 AC |
14134 | ac_save_LIBS=$LIBS |
14135 | ac_cv_lib_lex='none needed' | |
14136 | for ac_lib in '' -lfl -ll; do | |
14137 | LIBS="$ac_lib $ac_save_LIBS" | |
14138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14139 | /* end confdefs.h. */ | |
14140 | `cat $LEX_OUTPUT_ROOT.c` | |
14141 | _ACEOF | |
14142 | if ac_fn_c_try_link "$LINENO"; then : | |
14143 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 14144 | fi |
7083c021 AC |
14145 | rm -f core conftest.err conftest.$ac_objext \ |
14146 | conftest$ac_exeext conftest.$ac_ext | |
14147 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14148 | done | |
14149 | LIBS=$ac_save_LIBS | |
631ef239 | 14150 | |
631ef239 | 14151 | fi |
7083c021 AC |
14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
14153 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14154 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14155 | fi | |
14156 | ||
14157 | ||
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14159 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 14160 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 14161 | $as_echo_n "(cached) " >&6 |
631ef239 | 14162 | else |
7083c021 AC |
14163 | # POSIX says lex can declare yytext either as a pointer or an array; the |
14164 | # default is implementation-dependent. Figure out which it is, since | |
14165 | # not all implementations provide the %pointer and %array declarations. | |
14166 | ac_cv_prog_lex_yytext_pointer=no | |
14167 | ac_save_LIBS=$LIBS | |
14168 | LIBS="$LEXLIB $ac_save_LIBS" | |
14169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14170 | /* end confdefs.h. */ | |
b6d0720c AC |
14171 | |
14172 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
14173 | `cat $LEX_OUTPUT_ROOT.c` |
14174 | _ACEOF | |
14175 | if ac_fn_c_try_link "$LINENO"; then : | |
14176 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 14177 | fi |
7083c021 AC |
14178 | rm -f core conftest.err conftest.$ac_objext \ |
14179 | conftest$ac_exeext conftest.$ac_ext | |
14180 | LIBS=$ac_save_LIBS | |
14181 | ||
212380e3 | 14182 | fi |
7083c021 AC |
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
14184 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14185 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 14186 | |
7083c021 AC |
14187 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
14188 | ||
14189 | fi | |
14190 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14191 | ||
14192 | fi | |
14193 | ||
14194 | if test "$LEX" = ":"; then | |
b6d0720c | 14195 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
14196 | fi |
14197 | ||
9f9b7042 NPB |
14198 | # Check whether --enable-fhs-paths was given. |
14199 | if test "${enable_fhs_paths+set}" = set; then : | |
14200 | enableval=$enable_fhs_paths; | |
14201 | else | |
14202 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14203 | test "$localstatedir" = '${prefix}/var' && \ | |
14204 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14205 | enable_fhs_paths=no | |
14206 | else | |
14207 | enable_fhs_paths=yes | |
14208 | fi | |
14209 | ||
14210 | fi | |
14211 | ||
14212 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14213 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14214 | rundir=${rundir-'${prefix}/run'} | |
14215 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14216 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14217 | else | |
14218 | libexecdir='${bindir}' | |
14219 | pkglibexecdir='${libexecdir}' | |
14220 | rundir='${sysconfdir}' | |
14221 | pkgrundir='${rundir}' | |
7083c021 | 14222 | localstatedir='${prefix}' |
9f9b7042 | 14223 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 14224 | fi |
9f9b7042 NPB |
14225 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
14226 | ||
14227 | ||
14228 | ||
14229 | ||
14230 | ||
14231 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14232 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14233 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14234 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14235 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14236 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14237 | last_ac_define_dir="$ac_define_dir" | |
14238 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14239 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14240 | if test "x$ac_define_dir_counter" = x128; then : | |
14241 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
14242 | break | |
14243 | fi | |
9f9b7042 NPB |
14244 | done |
14245 | PKGLOCALSTATEDIR="$ac_define_dir" | |
14246 | ||
14247 | ||
14248 | cat >>confdefs.h <<_ACEOF | |
14249 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
14250 | _ACEOF | |
14251 | ||
14252 | ||
14253 | ||
14254 | ||
14255 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14256 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14257 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
14258 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14259 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14260 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14261 | last_ac_define_dir="$ac_define_dir" | |
14262 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14263 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14264 | if test "x$ac_define_dir_counter" = x128; then : | |
14265 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
14266 | break | |
14267 | fi | |
9f9b7042 NPB |
14268 | done |
14269 | PKGLIBEXECDIR="$ac_define_dir" | |
14270 | ||
14271 | ||
14272 | cat >>confdefs.h <<_ACEOF | |
14273 | #define PKGLIBEXECDIR "$ac_define_dir" | |
14274 | _ACEOF | |
14275 | ||
14276 | ||
212380e3 | 14277 | |
7083c021 AC |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
14279 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 14280 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 14281 | $as_echo_n "(cached) " >&6 |
212380e3 | 14282 | else |
7083c021 | 14283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14284 | /* end confdefs.h. */ |
7083c021 AC |
14285 | #include <stdlib.h> |
14286 | #include <stdarg.h> | |
14287 | #include <string.h> | |
14288 | #include <float.h> | |
212380e3 AC |
14289 | |
14290 | int | |
14291 | main () | |
14292 | { | |
7083c021 | 14293 | |
212380e3 AC |
14294 | ; |
14295 | return 0; | |
14296 | } | |
14297 | _ACEOF | |
7083c021 AC |
14298 | if ac_fn_c_try_compile "$LINENO"; then : |
14299 | ac_cv_header_stdc=yes | |
212380e3 | 14300 | else |
7083c021 | 14301 | ac_cv_header_stdc=no |
212380e3 | 14302 | fi |
631ef239 | 14303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14304 | |
7083c021 AC |
14305 | if test $ac_cv_header_stdc = yes; then |
14306 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14308 | /* end confdefs.h. */ | |
14309 | #include <string.h> | |
14310 | ||
212380e3 | 14311 | _ACEOF |
7083c021 AC |
14312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14313 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14314 | ||
14315 | else | |
14316 | ac_cv_header_stdc=no | |
14317 | fi | |
14318 | rm -f conftest* | |
212380e3 AC |
14319 | |
14320 | fi | |
14321 | ||
7083c021 AC |
14322 | if test $ac_cv_header_stdc = yes; then |
14323 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14325 | /* end confdefs.h. */ | |
14326 | #include <stdlib.h> | |
14327 | ||
14328 | _ACEOF | |
14329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14330 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 14331 | |
212380e3 | 14332 | else |
7083c021 | 14333 | ac_cv_header_stdc=no |
631ef239 | 14334 | fi |
7083c021 | 14335 | rm -f conftest* |
631ef239 | 14336 | |
7083c021 | 14337 | fi |
212380e3 | 14338 | |
7083c021 AC |
14339 | if test $ac_cv_header_stdc = yes; then |
14340 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14341 | if test "$cross_compiling" = yes; then : | |
14342 | : | |
212380e3 | 14343 | else |
7083c021 | 14344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14345 | /* end confdefs.h. */ |
7083c021 AC |
14346 | #include <ctype.h> |
14347 | #include <stdlib.h> | |
14348 | #if ((' ' & 0x0FF) == 0x020) | |
14349 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14350 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14351 | #else | |
14352 | # define ISLOWER(c) \ | |
14353 | (('a' <= (c) && (c) <= 'i') \ | |
14354 | || ('j' <= (c) && (c) <= 'r') \ | |
14355 | || ('s' <= (c) && (c) <= 'z')) | |
14356 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 14357 | #endif |
7083c021 AC |
14358 | |
14359 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
14360 | int |
14361 | main () | |
14362 | { | |
7083c021 AC |
14363 | int i; |
14364 | for (i = 0; i < 256; i++) | |
14365 | if (XOR (islower (i), ISLOWER (i)) | |
14366 | || toupper (i) != TOUPPER (i)) | |
14367 | return 2; | |
212380e3 AC |
14368 | return 0; |
14369 | } | |
14370 | _ACEOF | |
7083c021 | 14371 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 14372 | |
7083c021 AC |
14373 | else |
14374 | ac_cv_header_stdc=no | |
631ef239 | 14375 | fi |
7083c021 AC |
14376 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14377 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14378 | fi |
7083c021 | 14379 | |
212380e3 | 14380 | fi |
212380e3 | 14381 | fi |
7083c021 AC |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14383 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14384 | if test $ac_cv_header_stdc = yes; then | |
14385 | ||
14386 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
14387 | |
14388 | fi | |
14389 | ||
14390 | ||
7083c021 AC |
14391 | 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 |
14392 | do : | |
14393 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14394 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 14395 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14396 | cat >>confdefs.h <<_ACEOF |
14397 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14398 | _ACEOF | |
212380e3 | 14399 | |
212380e3 AC |
14400 | fi |
14401 | ||
7083c021 | 14402 | done |
212380e3 AC |
14403 | |
14404 | ||
212380e3 | 14405 | |
7083c021 AC |
14406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14407 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 14408 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
14409 | $as_echo_n "(cached) " >&6 |
14410 | else | |
14411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14412 | /* end confdefs.h. */ | |
212380e3 | 14413 | |
7083c021 AC |
14414 | int |
14415 | main () | |
14416 | { | |
2eff3833 | 14417 | |
7083c021 | 14418 | #ifndef __cplusplus |
2eff3833 | 14419 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 14420 | typedef int charset[2]; |
2eff3833 | 14421 | const charset cs = { 0, 0 }; |
7083c021 AC |
14422 | /* SunOS 4.1.1 cc rejects this. */ |
14423 | char const *const *pcpcc; | |
14424 | char **ppc; | |
14425 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14426 | struct point {int x, y;}; | |
14427 | static struct point const zero = {0,0}; | |
14428 | /* AIX XL C 1.02.0.0 rejects this. | |
14429 | It does not let you subtract one const X* pointer from another in | |
14430 | an arm of an if-expression whose if-part is not a constant | |
14431 | expression */ | |
14432 | const char *g = "string"; | |
14433 | pcpcc = &g + (g ? g-g : 0); | |
14434 | /* HPUX 7.0 cc rejects these. */ | |
14435 | ++pcpcc; | |
14436 | ppc = (char**) pcpcc; | |
14437 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
14438 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14439 | char tx; | |
14440 | char *t = &tx; | |
7083c021 | 14441 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 14442 | |
7083c021 AC |
14443 | *t++ = 0; |
14444 | if (s) return 0; | |
14445 | } | |
14446 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14447 | int x[] = {25, 17}; | |
14448 | const int *foo = &x[0]; | |
14449 | ++foo; | |
14450 | } | |
14451 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14452 | typedef const int *iptr; | |
14453 | iptr p = 0; | |
14454 | ++p; | |
14455 | } | |
2eff3833 | 14456 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 14457 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
14458 | struct s { int j; const int *ap[3]; } bx; |
14459 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
14460 | } |
14461 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14462 | const int foo = 10; | |
14463 | if (!foo) return 0; | |
14464 | } | |
14465 | return !cs[0] && !zero.x; | |
14466 | #endif | |
212380e3 | 14467 | |
7083c021 AC |
14468 | ; |
14469 | return 0; | |
14470 | } | |
212380e3 | 14471 | _ACEOF |
7083c021 AC |
14472 | if ac_fn_c_try_compile "$LINENO"; then : |
14473 | ac_cv_c_const=yes | |
212380e3 | 14474 | else |
7083c021 | 14475 | ac_cv_c_const=no |
212380e3 | 14476 | fi |
631ef239 | 14477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14478 | fi |
7083c021 AC |
14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14480 | $as_echo "$ac_cv_c_const" >&6; } | |
14481 | if test $ac_cv_c_const = no; then | |
212380e3 | 14482 | |
7083c021 | 14483 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
14484 | |
14485 | fi | |
14486 | ||
7083c021 AC |
14487 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14489 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 14490 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 14491 | $as_echo_n "(cached) " >&6 |
212380e3 | 14492 | else |
7083c021 AC |
14493 | ac_cv_c_bigendian=unknown |
14494 | # See if we're dealing with a universal compiler. | |
14495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14496 | /* end confdefs.h. */ | |
14497 | #ifndef __APPLE_CC__ | |
14498 | not a universal capable compiler | |
14499 | #endif | |
14500 | typedef int dummy; | |
14501 | ||
14502 | _ACEOF | |
14503 | if ac_fn_c_try_compile "$LINENO"; then : | |
14504 | ||
14505 | # Check for potential -arch flags. It is not universal unless | |
14506 | # there are at least two -arch flags with different values. | |
14507 | ac_arch= | |
14508 | ac_prev= | |
14509 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14510 | if test -n "$ac_prev"; then | |
14511 | case $ac_word in | |
14512 | i?86 | x86_64 | ppc | ppc64) | |
14513 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14514 | ac_arch=$ac_word | |
14515 | else | |
14516 | ac_cv_c_bigendian=universal | |
14517 | break | |
14518 | fi | |
14519 | ;; | |
14520 | esac | |
14521 | ac_prev= | |
14522 | elif test "x$ac_word" = "x-arch"; then | |
14523 | ac_prev=arch | |
14524 | fi | |
14525 | done | |
14526 | fi | |
14527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14528 | if test $ac_cv_c_bigendian = unknown; then | |
14529 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
14531 | /* end confdefs.h. */ |
14532 | #include <sys/types.h> | |
7083c021 | 14533 | #include <sys/param.h> |
212380e3 AC |
14534 | |
14535 | int | |
14536 | main () | |
14537 | { | |
7083c021 AC |
14538 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
14539 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14540 | && LITTLE_ENDIAN) | |
14541 | bogus endian macros | |
14542 | #endif | |
212380e3 AC |
14543 | |
14544 | ; | |
14545 | return 0; | |
14546 | } | |
14547 | _ACEOF | |
7083c021 | 14548 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14549 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 14550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
14551 | /* end confdefs.h. */ |
14552 | #include <sys/types.h> | |
7083c021 | 14553 | #include <sys/param.h> |
212380e3 AC |
14554 | |
14555 | int | |
14556 | main () | |
14557 | { | |
14558 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
14559 | not big endian |
14560 | #endif | |
212380e3 AC |
14561 | |
14562 | ; | |
14563 | return 0; | |
14564 | } | |
14565 | _ACEOF | |
7083c021 | 14566 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
14567 | ac_cv_c_bigendian=yes |
14568 | else | |
7083c021 | 14569 | ac_cv_c_bigendian=no |
212380e3 | 14570 | fi |
631ef239 | 14571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
14572 | fi |
14573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14574 | fi | |
14575 | if test $ac_cv_c_bigendian = unknown; then | |
14576 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14578 | /* end confdefs.h. */ | |
14579 | #include <limits.h> | |
212380e3 | 14580 | |
7083c021 AC |
14581 | int |
14582 | main () | |
14583 | { | |
14584 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14585 | bogus endian macros | |
14586 | #endif | |
14587 | ||
14588 | ; | |
14589 | return 0; | |
14590 | } | |
212380e3 | 14591 | _ACEOF |
7083c021 AC |
14592 | if ac_fn_c_try_compile "$LINENO"; then : |
14593 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14595 | /* end confdefs.h. */ |
7083c021 AC |
14596 | #include <limits.h> |
14597 | ||
212380e3 AC |
14598 | int |
14599 | main () | |
14600 | { | |
7083c021 AC |
14601 | #ifndef _BIG_ENDIAN |
14602 | not big endian | |
14603 | #endif | |
14604 | ||
212380e3 AC |
14605 | ; |
14606 | return 0; | |
14607 | } | |
14608 | _ACEOF | |
7083c021 | 14609 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14610 | ac_cv_c_bigendian=yes |
7083c021 AC |
14611 | else |
14612 | ac_cv_c_bigendian=no | |
212380e3 | 14613 | fi |
7083c021 | 14614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14615 | fi |
7083c021 AC |
14616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14617 | fi | |
14618 | if test $ac_cv_c_bigendian = unknown; then | |
14619 | # Compile a test program. | |
14620 | if test "$cross_compiling" = yes; then : | |
14621 | # Try to guess by grepping values from an object file. | |
14622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14623 | /* end confdefs.h. */ | |
14624 | short int ascii_mm[] = | |
14625 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14626 | short int ascii_ii[] = | |
14627 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14628 | int use_ascii (int i) { | |
14629 | return ascii_mm[i] + ascii_ii[i]; | |
14630 | } | |
14631 | short int ebcdic_ii[] = | |
14632 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14633 | short int ebcdic_mm[] = | |
14634 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14635 | int use_ebcdic (int i) { | |
14636 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14637 | } | |
14638 | extern int foo; | |
631ef239 | 14639 | |
7083c021 AC |
14640 | int |
14641 | main () | |
14642 | { | |
14643 | return use_ascii (foo) == use_ebcdic (foo); | |
14644 | ; | |
14645 | return 0; | |
14646 | } | |
14647 | _ACEOF | |
14648 | if ac_fn_c_try_compile "$LINENO"; then : | |
14649 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14650 | ac_cv_c_bigendian=yes | |
14651 | fi | |
14652 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14653 | if test "$ac_cv_c_bigendian" = unknown; then | |
14654 | ac_cv_c_bigendian=no | |
14655 | else | |
14656 | # finding both strings is unlikely to happen, but who knows? | |
14657 | ac_cv_c_bigendian=unknown | |
14658 | fi | |
14659 | fi | |
212380e3 | 14660 | fi |
631ef239 | 14661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14662 | else |
7083c021 | 14663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14664 | /* end confdefs.h. */ |
631ef239 | 14665 | $ac_includes_default |
212380e3 AC |
14666 | int |
14667 | main () | |
14668 | { | |
631ef239 | 14669 | |
7083c021 AC |
14670 | /* Are we little or big endian? From Harbison&Steele. */ |
14671 | union | |
14672 | { | |
14673 | long int l; | |
14674 | char c[sizeof (long int)]; | |
14675 | } u; | |
14676 | u.l = 1; | |
14677 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
14678 | |
14679 | ; | |
14680 | return 0; | |
212380e3 AC |
14681 | } |
14682 | _ACEOF | |
7083c021 | 14683 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
14684 | ac_cv_c_bigendian=no |
14685 | else | |
7083c021 | 14686 | ac_cv_c_bigendian=yes |
212380e3 | 14687 | fi |
7083c021 AC |
14688 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14689 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14690 | fi |
631ef239 | 14691 | |
7083c021 | 14692 | fi |
212380e3 | 14693 | fi |
7083c021 AC |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
14695 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14696 | case $ac_cv_c_bigendian in #( | |
14697 | yes) | |
14698 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14699 | ;; #( | |
14700 | no) | |
14701 | ;; #( | |
14702 | universal) | |
14703 | ||
14704 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14705 | ||
14706 | ;; #( | |
14707 | *) | |
b6d0720c | 14708 | as_fn_error $? "unknown endianness |
7083c021 AC |
14709 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
14710 | esac | |
631ef239 | 14711 | |
212380e3 | 14712 | fi |
7083c021 | 14713 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 14714 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 14715 | |
7083c021 | 14716 | else |
212380e3 | 14717 | |
7083c021 AC |
14718 | cat >>confdefs.h <<_ACEOF |
14719 | #define pid_t int | |
14720 | _ACEOF | |
212380e3 | 14721 | |
212380e3 | 14722 | fi |
7083c021 AC |
14723 | |
14724 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 14725 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 14726 | |
212380e3 | 14727 | else |
7083c021 AC |
14728 | |
14729 | cat >>confdefs.h <<_ACEOF | |
14730 | #define size_t unsigned int | |
212380e3 | 14731 | _ACEOF |
7083c021 AC |
14732 | |
14733 | fi | |
14734 | ||
14735 | # The cast to long int works around a bug in the HP C Compiler | |
14736 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14737 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14738 | # This bug is HP SR number 8606223364. | |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14740 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 14741 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 14742 | $as_echo_n "(cached) " >&6 |
212380e3 | 14743 | else |
7083c021 AC |
14744 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
14745 | ||
14746 | else | |
14747 | if test "$ac_cv_type_short" = yes; then | |
14748 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14749 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14750 | as_fn_error 77 "cannot compute sizeof (short) |
14751 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14752 | else |
14753 | ac_cv_sizeof_short=0 | |
14754 | fi | |
14755 | fi | |
212380e3 | 14756 | |
212380e3 | 14757 | fi |
7083c021 AC |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
14759 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 14760 | |
212380e3 | 14761 | |
7083c021 AC |
14762 | |
14763 | cat >>confdefs.h <<_ACEOF | |
14764 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 14765 | _ACEOF |
7083c021 AC |
14766 | |
14767 | ||
14768 | # The cast to long int works around a bug in the HP C Compiler | |
14769 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14770 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14771 | # This bug is HP SR number 8606223364. | |
14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14773 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 14774 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
14775 | $as_echo_n "(cached) " >&6 |
14776 | else | |
14777 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14778 | ||
14779 | else | |
14780 | if test "$ac_cv_type_int" = yes; then | |
14781 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14782 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14783 | as_fn_error 77 "cannot compute sizeof (int) |
14784 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14785 | else |
14786 | ac_cv_sizeof_int=0 | |
14787 | fi | |
14788 | fi | |
14789 | ||
14790 | fi | |
14791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14792 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14793 | ||
14794 | ||
14795 | ||
14796 | cat >>confdefs.h <<_ACEOF | |
14797 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 14798 | _ACEOF |
7083c021 AC |
14799 | |
14800 | ||
14801 | # The cast to long int works around a bug in the HP C Compiler | |
14802 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14803 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14804 | # This bug is HP SR number 8606223364. | |
14805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14806 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 14807 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 14808 | $as_echo_n "(cached) " >&6 |
212380e3 | 14809 | else |
7083c021 | 14810 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 14811 | |
7083c021 AC |
14812 | else |
14813 | if test "$ac_cv_type_long" = yes; then | |
14814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14816 | as_fn_error 77 "cannot compute sizeof (long) |
14817 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14818 | else |
14819 | ac_cv_sizeof_long=0 | |
14820 | fi | |
212380e3 | 14821 | fi |
631ef239 | 14822 | |
7083c021 AC |
14823 | fi |
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14825 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 14826 | |
631ef239 | 14827 | |
7083c021 AC |
14828 | |
14829 | cat >>confdefs.h <<_ACEOF | |
14830 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14831 | _ACEOF | |
14832 | ||
14833 | ||
14834 | # The cast to long int works around a bug in the HP C Compiler | |
14835 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14836 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14837 | # This bug is HP SR number 8606223364. | |
14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14839 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 14840 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
14841 | $as_echo_n "(cached) " >&6 |
14842 | else | |
14843 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14844 | ||
212380e3 | 14845 | else |
7083c021 AC |
14846 | if test "$ac_cv_type_long_long" = yes; then |
14847 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14848 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14849 | as_fn_error 77 "cannot compute sizeof (long long) |
14850 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14851 | else |
14852 | ac_cv_sizeof_long_long=0 | |
14853 | fi | |
212380e3 | 14854 | fi |
212380e3 AC |
14855 | |
14856 | fi | |
7083c021 AC |
14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
14858 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
14859 | |
14860 | ||
14861 | ||
7083c021 AC |
14862 | cat >>confdefs.h <<_ACEOF |
14863 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14864 | _ACEOF | |
212380e3 | 14865 | |
212380e3 | 14866 | |
212380e3 | 14867 | |
7083c021 AC |
14868 | |
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
14870 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 14871 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14872 | $as_echo_n "(cached) " >&6 |
14873 | else | |
14874 | ac_func_search_save_LIBS=$LIBS | |
14875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14876 | /* end confdefs.h. */ |
7083c021 AC |
14877 | |
14878 | /* Override any GCC internal prototype to avoid an error. | |
14879 | Use char because int might match the return type of a GCC | |
14880 | builtin and then its argument prototype would still apply. */ | |
14881 | #ifdef __cplusplus | |
14882 | extern "C" | |
14883 | #endif | |
14884 | char socket (); | |
212380e3 AC |
14885 | int |
14886 | main () | |
14887 | { | |
7083c021 | 14888 | return socket (); |
212380e3 AC |
14889 | ; |
14890 | return 0; | |
14891 | } | |
14892 | _ACEOF | |
7083c021 AC |
14893 | for ac_lib in '' socket; do |
14894 | if test -z "$ac_lib"; then | |
14895 | ac_res="none required" | |
14896 | else | |
14897 | ac_res=-l$ac_lib | |
14898 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14899 | fi | |
14900 | if ac_fn_c_try_link "$LINENO"; then : | |
14901 | ac_cv_search_socket=$ac_res | |
14902 | fi | |
14903 | rm -f core conftest.err conftest.$ac_objext \ | |
14904 | conftest$ac_exeext | |
b6d0720c | 14905 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14906 | break |
14907 | fi | |
14908 | done | |
b6d0720c | 14909 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
14910 | |
14911 | else | |
7083c021 AC |
14912 | ac_cv_search_socket=no |
14913 | fi | |
14914 | rm conftest.$ac_ext | |
14915 | LIBS=$ac_func_search_save_LIBS | |
14916 | fi | |
14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
14918 | $as_echo "$ac_cv_search_socket" >&6; } | |
14919 | ac_res=$ac_cv_search_socket | |
14920 | if test "$ac_res" != no; then : | |
14921 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14922 | |
7083c021 | 14923 | else |
b6d0720c | 14924 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 14925 | fi |
631ef239 | 14926 | |
212380e3 | 14927 | |
7083c021 AC |
14928 | if test x"$SUN" = xyes; then |
14929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
14930 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 14931 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14932 | $as_echo_n "(cached) " >&6 |
14933 | else | |
14934 | ac_func_search_save_LIBS=$LIBS | |
14935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14936 | /* end confdefs.h. */ |
7083c021 AC |
14937 | |
14938 | /* Override any GCC internal prototype to avoid an error. | |
14939 | Use char because int might match the return type of a GCC | |
14940 | builtin and then its argument prototype would still apply. */ | |
14941 | #ifdef __cplusplus | |
14942 | extern "C" | |
14943 | #endif | |
14944 | char inet_ntoa (); | |
212380e3 AC |
14945 | int |
14946 | main () | |
14947 | { | |
7083c021 | 14948 | return inet_ntoa (); |
212380e3 AC |
14949 | ; |
14950 | return 0; | |
14951 | } | |
14952 | _ACEOF | |
7083c021 AC |
14953 | for ac_lib in '' nsl; do |
14954 | if test -z "$ac_lib"; then | |
14955 | ac_res="none required" | |
14956 | else | |
14957 | ac_res=-l$ac_lib | |
14958 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14959 | fi | |
14960 | if ac_fn_c_try_link "$LINENO"; then : | |
14961 | ac_cv_search_inet_ntoa=$ac_res | |
14962 | fi | |
14963 | rm -f core conftest.err conftest.$ac_objext \ | |
14964 | conftest$ac_exeext | |
b6d0720c | 14965 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14966 | break |
14967 | fi | |
14968 | done | |
b6d0720c | 14969 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
14970 | |
14971 | else | |
7083c021 AC |
14972 | ac_cv_search_inet_ntoa=no |
14973 | fi | |
14974 | rm conftest.$ac_ext | |
14975 | LIBS=$ac_func_search_save_LIBS | |
14976 | fi | |
14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
14978 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
14979 | ac_res=$ac_cv_search_inet_ntoa | |
14980 | if test "$ac_res" != no; then : | |
14981 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14982 | |
7083c021 | 14983 | else |
b6d0720c | 14984 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 14985 | fi |
631ef239 | 14986 | |
7083c021 | 14987 | fi |
212380e3 | 14988 | |
7083c021 AC |
14989 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
14990 | #include <sys/socket.h> | |
14991 | " | |
b6d0720c | 14992 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
14993 | |
14994 | else | |
14995 | ||
7083c021 | 14996 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 14997 | |
7083c021 | 14998 | fi |
212380e3 AC |
14999 | |
15000 | ||
7083c021 AC |
15001 | # Check whether --enable-ipv6 was given. |
15002 | if test "${enable_ipv6+set}" = set; then : | |
15003 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 15004 | else |
7083c021 AC |
15005 | ipv6=no |
15006 | fi | |
212380e3 | 15007 | |
212380e3 | 15008 | |
7083c021 AC |
15009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
15010 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 15011 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15012 | $as_echo_n "(cached) " >&6 |
15013 | else | |
15014 | ac_func_search_save_LIBS=$LIBS | |
15015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15016 | /* end confdefs.h. */ | |
212380e3 | 15017 | |
631ef239 AC |
15018 | /* Override any GCC internal prototype to avoid an error. |
15019 | Use char because int might match the return type of a GCC | |
15020 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15021 | #ifdef __cplusplus |
15022 | extern "C" | |
212380e3 | 15023 | #endif |
7083c021 | 15024 | char crypt (); |
212380e3 AC |
15025 | int |
15026 | main () | |
15027 | { | |
7083c021 | 15028 | return crypt (); |
212380e3 AC |
15029 | ; |
15030 | return 0; | |
15031 | } | |
15032 | _ACEOF | |
7083c021 AC |
15033 | for ac_lib in '' crypt descrypt; do |
15034 | if test -z "$ac_lib"; then | |
15035 | ac_res="none required" | |
15036 | else | |
15037 | ac_res=-l$ac_lib | |
15038 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15039 | fi | |
15040 | if ac_fn_c_try_link "$LINENO"; then : | |
15041 | ac_cv_search_crypt=$ac_res | |
15042 | fi | |
15043 | rm -f core conftest.err conftest.$ac_objext \ | |
15044 | conftest$ac_exeext | |
b6d0720c | 15045 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15046 | break |
15047 | fi | |
15048 | done | |
b6d0720c | 15049 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 15050 | |
212380e3 | 15051 | else |
7083c021 AC |
15052 | ac_cv_search_crypt=no |
15053 | fi | |
15054 | rm conftest.$ac_ext | |
15055 | LIBS=$ac_func_search_save_LIBS | |
15056 | fi | |
15057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15058 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15059 | ac_res=$ac_cv_search_crypt | |
15060 | if test "$ac_res" != no; then : | |
15061 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15062 | |
212380e3 | 15063 | fi |
631ef239 | 15064 | |
7083c021 AC |
15065 | |
15066 | CRYPT_LIB=$ac_cv_search_crypt | |
15067 | ||
15068 | if test "$CRYPT_LIB" = "none required"; then | |
15069 | unset CRYPT_LIB | |
15070 | elif test "$CRYPT_LIB" = no; then | |
15071 | unset CRYPT_LIB | |
212380e3 | 15072 | fi |
7083c021 AC |
15073 | |
15074 | ||
15075 | ||
7083c021 AC |
15076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15077 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 15078 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
15079 | $as_echo_n "(cached) " >&6 |
15080 | else | |
15081 | ac_cv_c_bigendian=unknown | |
15082 | # See if we're dealing with a universal compiler. | |
15083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15084 | /* end confdefs.h. */ | |
15085 | #ifndef __APPLE_CC__ | |
15086 | not a universal capable compiler | |
15087 | #endif | |
15088 | typedef int dummy; | |
15089 | ||
15090 | _ACEOF | |
15091 | if ac_fn_c_try_compile "$LINENO"; then : | |
15092 | ||
15093 | # Check for potential -arch flags. It is not universal unless | |
15094 | # there are at least two -arch flags with different values. | |
15095 | ac_arch= | |
15096 | ac_prev= | |
15097 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15098 | if test -n "$ac_prev"; then | |
15099 | case $ac_word in | |
15100 | i?86 | x86_64 | ppc | ppc64) | |
15101 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15102 | ac_arch=$ac_word | |
15103 | else | |
15104 | ac_cv_c_bigendian=universal | |
15105 | break | |
15106 | fi | |
15107 | ;; | |
15108 | esac | |
15109 | ac_prev= | |
15110 | elif test "x$ac_word" = "x-arch"; then | |
15111 | ac_prev=arch | |
15112 | fi | |
15113 | done | |
212380e3 | 15114 | fi |
7083c021 AC |
15115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15116 | if test $ac_cv_c_bigendian = unknown; then | |
15117 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15119 | /* end confdefs.h. */ | |
15120 | #include <sys/types.h> | |
15121 | #include <sys/param.h> | |
15122 | ||
15123 | int | |
15124 | main () | |
15125 | { | |
15126 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15127 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15128 | && LITTLE_ENDIAN) | |
15129 | bogus endian macros | |
15130 | #endif | |
15131 | ||
15132 | ; | |
15133 | return 0; | |
15134 | } | |
15135 | _ACEOF | |
15136 | if ac_fn_c_try_compile "$LINENO"; then : | |
15137 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15139 | /* end confdefs.h. */ | |
15140 | #include <sys/types.h> | |
15141 | #include <sys/param.h> | |
15142 | ||
15143 | int | |
15144 | main () | |
15145 | { | |
15146 | #if BYTE_ORDER != BIG_ENDIAN | |
15147 | not big endian | |
15148 | #endif | |
212380e3 | 15149 | |
7083c021 AC |
15150 | ; |
15151 | return 0; | |
15152 | } | |
15153 | _ACEOF | |
15154 | if ac_fn_c_try_compile "$LINENO"; then : | |
15155 | ac_cv_c_bigendian=yes | |
212380e3 | 15156 | else |
7083c021 AC |
15157 | ac_cv_c_bigendian=no |
15158 | fi | |
15159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15160 | fi | |
15161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15162 | fi | |
15163 | if test $ac_cv_c_bigendian = unknown; then | |
15164 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15166 | /* end confdefs.h. */ | |
15167 | #include <limits.h> | |
15168 | ||
15169 | int | |
15170 | main () | |
15171 | { | |
15172 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15173 | bogus endian macros | |
15174 | #endif | |
15175 | ||
15176 | ; | |
15177 | return 0; | |
15178 | } | |
212380e3 | 15179 | _ACEOF |
7083c021 AC |
15180 | if ac_fn_c_try_compile "$LINENO"; then : |
15181 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15183 | /* end confdefs.h. */ |
7083c021 AC |
15184 | #include <limits.h> |
15185 | ||
212380e3 AC |
15186 | int |
15187 | main () | |
15188 | { | |
7083c021 AC |
15189 | #ifndef _BIG_ENDIAN |
15190 | not big endian | |
15191 | #endif | |
15192 | ||
212380e3 AC |
15193 | ; |
15194 | return 0; | |
15195 | } | |
15196 | _ACEOF | |
7083c021 AC |
15197 | if ac_fn_c_try_compile "$LINENO"; then : |
15198 | ac_cv_c_bigendian=yes | |
212380e3 | 15199 | else |
7083c021 | 15200 | ac_cv_c_bigendian=no |
212380e3 | 15201 | fi |
631ef239 | 15202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15203 | fi |
7083c021 AC |
15204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15205 | fi | |
15206 | if test $ac_cv_c_bigendian = unknown; then | |
15207 | # Compile a test program. | |
15208 | if test "$cross_compiling" = yes; then : | |
15209 | # Try to guess by grepping values from an object file. | |
15210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15211 | /* end confdefs.h. */ | |
15212 | short int ascii_mm[] = | |
15213 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15214 | short int ascii_ii[] = | |
15215 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15216 | int use_ascii (int i) { | |
15217 | return ascii_mm[i] + ascii_ii[i]; | |
15218 | } | |
15219 | short int ebcdic_ii[] = | |
15220 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15221 | short int ebcdic_mm[] = | |
15222 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15223 | int use_ebcdic (int i) { | |
15224 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15225 | } | |
15226 | extern int foo; | |
212380e3 | 15227 | |
7083c021 AC |
15228 | int |
15229 | main () | |
15230 | { | |
15231 | return use_ascii (foo) == use_ebcdic (foo); | |
15232 | ; | |
15233 | return 0; | |
15234 | } | |
212380e3 | 15235 | _ACEOF |
7083c021 AC |
15236 | if ac_fn_c_try_compile "$LINENO"; then : |
15237 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15238 | ac_cv_c_bigendian=yes | |
15239 | fi | |
15240 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15241 | if test "$ac_cv_c_bigendian" = unknown; then | |
15242 | ac_cv_c_bigendian=no | |
15243 | else | |
15244 | # finding both strings is unlikely to happen, but who knows? | |
15245 | ac_cv_c_bigendian=unknown | |
15246 | fi | |
15247 | fi | |
15248 | fi | |
15249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15250 | else | |
15251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
15252 | /* end confdefs.h. */ |
15253 | $ac_includes_default | |
15254 | int | |
15255 | main () | |
15256 | { | |
7083c021 AC |
15257 | |
15258 | /* Are we little or big endian? From Harbison&Steele. */ | |
15259 | union | |
15260 | { | |
15261 | long int l; | |
15262 | char c[sizeof (long int)]; | |
15263 | } u; | |
15264 | u.l = 1; | |
15265 | return u.c[sizeof (long int) - 1] == 1; | |
15266 | ||
212380e3 AC |
15267 | ; |
15268 | return 0; | |
15269 | } | |
15270 | _ACEOF | |
7083c021 AC |
15271 | if ac_fn_c_try_run "$LINENO"; then : |
15272 | ac_cv_c_bigendian=no | |
212380e3 | 15273 | else |
7083c021 | 15274 | ac_cv_c_bigendian=yes |
212380e3 | 15275 | fi |
7083c021 AC |
15276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15277 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15278 | fi |
212380e3 | 15279 | |
7083c021 AC |
15280 | fi |
15281 | fi | |
15282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15283 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15284 | case $ac_cv_c_bigendian in #( | |
15285 | yes) | |
15286 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15287 | ;; #( | |
15288 | no) | |
15289 | ;; #( | |
15290 | universal) | |
212380e3 | 15291 | |
7083c021 | 15292 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 15293 | |
7083c021 AC |
15294 | ;; #( |
15295 | *) | |
b6d0720c | 15296 | as_fn_error $? "unknown endianness |
7083c021 AC |
15297 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
15298 | esac | |
212380e3 | 15299 | |
212380e3 | 15300 | |
7083c021 | 15301 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 15302 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 15303 | |
7083c021 | 15304 | else |
b6d0720c | 15305 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 15306 | fi |
212380e3 AC |
15307 | |
15308 | ||
7083c021 AC |
15309 | for ac_func in strlcat strlcpy |
15310 | do : | |
15311 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15312 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15313 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
15314 | cat >>confdefs.h <<_ACEOF |
15315 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
15316 | _ACEOF |
15317 | ||
212380e3 | 15318 | fi |
7083c021 | 15319 | done |
212380e3 AC |
15320 | |
15321 | ||
7083c021 | 15322 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 15323 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 15324 | |
212380e3 | 15325 | else |
212380e3 | 15326 | |
7083c021 | 15327 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 15328 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 15329 | |
631ef239 | 15330 | |
7083c021 | 15331 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 15332 | |
212380e3 | 15333 | |
7083c021 | 15334 | else |
212380e3 | 15335 | |
7083c021 AC |
15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
15337 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 15338 | |
7083c021 | 15339 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 15340 | |
212380e3 | 15341 | |
212380e3 | 15342 | fi |
631ef239 | 15343 | |
7083c021 | 15344 | |
212380e3 | 15345 | fi |
7083c021 AC |
15346 | |
15347 | ||
15348 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 15349 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 15350 | |
212380e3 AC |
15351 | else |
15352 | ||
7083c021 | 15353 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 15354 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 15355 | |
7083c021 AC |
15356 | |
15357 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
15358 | |
15359 | ||
212380e3 | 15360 | else |
212380e3 | 15361 | |
7083c021 AC |
15362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
15363 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 15364 | |
7083c021 | 15365 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 15366 | |
7083c021 AC |
15367 | |
15368 | fi | |
212380e3 AC |
15369 | |
15370 | ||
15371 | fi | |
15372 | ||
15373 | ||
7083c021 AC |
15374 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
15375 | #include <netinet/in.h> | |
15376 | " | |
b6d0720c | 15377 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 15378 | |
7083c021 | 15379 | else |
212380e3 | 15380 | |
7083c021 | 15381 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 15382 | |
7083c021 | 15383 | fi |
212380e3 AC |
15384 | |
15385 | ||
7083c021 AC |
15386 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
15387 | #include <sys/socket.h> | |
15388 | " | |
b6d0720c | 15389 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 15390 | |
212380e3 | 15391 | else |
212380e3 | 15392 | |
7083c021 | 15393 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 15394 | |
7083c021 | 15395 | fi |
212380e3 | 15396 | |
212380e3 | 15397 | |
7083c021 | 15398 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 15399 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 15400 | |
7083c021 AC |
15401 | cat >>confdefs.h <<_ACEOF |
15402 | #define HAVE_UINTPTR_T 1 | |
15403 | _ACEOF | |
212380e3 | 15404 | |
631ef239 | 15405 | |
212380e3 | 15406 | fi |
7083c021 AC |
15407 | |
15408 | ||
15409 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
15410 | do : | |
15411 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15412 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15413 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 15414 | cat >>confdefs.h <<_ACEOF |
7083c021 | 15415 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
15416 | _ACEOF |
15417 | ||
15418 | fi | |
15419 | done | |
15420 | ||
15421 | ||
15422 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15423 | # for constant arguments. Useless! | |
7083c021 AC |
15424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
15425 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 15426 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 15427 | $as_echo_n "(cached) " >&6 |
212380e3 | 15428 | else |
7083c021 | 15429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15430 | /* end confdefs.h. */ |
15431 | #include <alloca.h> | |
15432 | int | |
15433 | main () | |
15434 | { | |
15435 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 15436 | if (p) return 0; |
212380e3 AC |
15437 | ; |
15438 | return 0; | |
15439 | } | |
15440 | _ACEOF | |
7083c021 | 15441 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15442 | ac_cv_working_alloca_h=yes |
15443 | else | |
7083c021 | 15444 | ac_cv_working_alloca_h=no |
212380e3 | 15445 | fi |
7083c021 AC |
15446 | rm -f core conftest.err conftest.$ac_objext \ |
15447 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15448 | fi |
7083c021 AC |
15449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
15450 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
15451 | if test $ac_cv_working_alloca_h = yes; then |
15452 | ||
7083c021 | 15453 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
15454 | |
15455 | fi | |
15456 | ||
7083c021 AC |
15457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
15458 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 15459 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 15460 | $as_echo_n "(cached) " >&6 |
212380e3 | 15461 | else |
7083c021 | 15462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15463 | /* end confdefs.h. */ |
15464 | #ifdef __GNUC__ | |
15465 | # define alloca __builtin_alloca | |
15466 | #else | |
15467 | # ifdef _MSC_VER | |
15468 | # include <malloc.h> | |
15469 | # define alloca _alloca | |
15470 | # else | |
631ef239 | 15471 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
15472 | # include <alloca.h> |
15473 | # else | |
15474 | # ifdef _AIX | |
15475 | #pragma alloca | |
15476 | # else | |
15477 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 15478 | void *alloca (size_t); |
212380e3 AC |
15479 | # endif |
15480 | # endif | |
15481 | # endif | |
15482 | # endif | |
15483 | #endif | |
15484 | ||
15485 | int | |
15486 | main () | |
15487 | { | |
15488 | char *p = (char *) alloca (1); | |
631ef239 | 15489 | if (p) return 0; |
212380e3 AC |
15490 | ; |
15491 | return 0; | |
15492 | } | |
15493 | _ACEOF | |
7083c021 | 15494 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15495 | ac_cv_func_alloca_works=yes |
15496 | else | |
7083c021 | 15497 | ac_cv_func_alloca_works=no |
212380e3 | 15498 | fi |
7083c021 AC |
15499 | rm -f core conftest.err conftest.$ac_objext \ |
15500 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15501 | fi |
7083c021 AC |
15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
15503 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
15504 | |
15505 | if test $ac_cv_func_alloca_works = yes; then | |
15506 | ||
7083c021 | 15507 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15508 | |
15509 | else | |
15510 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15511 | # that cause trouble. Some versions do not even contain alloca or | |
15512 | # contain a buggy version. If you still want to use their alloca, | |
15513 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15514 | ||
631ef239 | 15515 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 15516 | |
7083c021 | 15517 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15518 | |
15519 | ||
7083c021 AC |
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
15521 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 15522 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 15523 | $as_echo_n "(cached) " >&6 |
212380e3 | 15524 | else |
7083c021 | 15525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15526 | /* end confdefs.h. */ |
631ef239 | 15527 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
15528 | webecray |
15529 | #else | |
15530 | wenotbecray | |
15531 | #endif | |
15532 | ||
15533 | _ACEOF | |
15534 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 15535 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
15536 | ac_cv_os_cray=yes |
15537 | else | |
15538 | ac_cv_os_cray=no | |
15539 | fi | |
15540 | rm -f conftest* | |
15541 | ||
15542 | fi | |
7083c021 AC |
15543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
15544 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
15545 | if test $ac_cv_os_cray = yes; then |
15546 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
15547 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15548 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15549 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
15550 | |
15551 | cat >>confdefs.h <<_ACEOF | |
15552 | #define CRAY_STACKSEG_END $ac_func | |
15553 | _ACEOF | |
15554 | ||
15555 | break | |
15556 | fi | |
15557 | ||
15558 | done | |
15559 | fi | |
15560 | ||
7083c021 AC |
15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
15562 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 15563 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 15564 | $as_echo_n "(cached) " >&6 |
212380e3 | 15565 | else |
7083c021 | 15566 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
15567 | ac_cv_c_stack_direction=0 |
15568 | else | |
7083c021 | 15569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15570 | /* end confdefs.h. */ |
631ef239 | 15571 | $ac_includes_default |
212380e3 | 15572 | int |
2eff3833 | 15573 | find_stack_direction (int *addr, int depth) |
212380e3 | 15574 | { |
2eff3833 JT |
15575 | int dir, dummy = 0; |
15576 | if (! addr) | |
15577 | addr = &dummy; | |
15578 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15579 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15580 | return dir + dummy; | |
212380e3 AC |
15581 | } |
15582 | ||
15583 | int | |
2eff3833 | 15584 | main (int argc, char **argv) |
212380e3 | 15585 | { |
2eff3833 | 15586 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
15587 | } |
15588 | _ACEOF | |
7083c021 | 15589 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15590 | ac_cv_c_stack_direction=1 |
15591 | else | |
7083c021 | 15592 | ac_cv_c_stack_direction=-1 |
212380e3 | 15593 | fi |
7083c021 AC |
15594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15595 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15596 | fi |
631ef239 | 15597 | |
212380e3 | 15598 | fi |
7083c021 AC |
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
15600 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
15601 | cat >>confdefs.h <<_ACEOF |
15602 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15603 | _ACEOF | |
15604 | ||
15605 | ||
15606 | fi | |
15607 | ||
15608 | ||
15609 | ||
7083c021 | 15610 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 15611 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 15612 | |
212380e3 | 15613 | else |
7083c021 AC |
15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
15615 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 15616 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 15617 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15618 | else |
15619 | ac_check_lib_save_LIBS=$LIBS | |
15620 | LIBS="-lrt $LIBS" | |
7083c021 | 15621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15622 | /* end confdefs.h. */ |
15623 | ||
631ef239 AC |
15624 | /* Override any GCC internal prototype to avoid an error. |
15625 | Use char because int might match the return type of a GCC | |
15626 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15627 | #ifdef __cplusplus |
15628 | extern "C" | |
15629 | #endif | |
212380e3 AC |
15630 | char nanosleep (); |
15631 | int | |
15632 | main () | |
15633 | { | |
631ef239 | 15634 | return nanosleep (); |
212380e3 AC |
15635 | ; |
15636 | return 0; | |
15637 | } | |
15638 | _ACEOF | |
7083c021 | 15639 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15640 | ac_cv_lib_rt_nanosleep=yes |
15641 | else | |
7083c021 | 15642 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 15643 | fi |
7083c021 AC |
15644 | rm -f core conftest.err conftest.$ac_objext \ |
15645 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15646 | LIBS=$ac_check_lib_save_LIBS |
15647 | fi | |
7083c021 AC |
15648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
15649 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 15650 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
15651 | LIBS="${LIBS} -lrt" |
15652 | else | |
7083c021 AC |
15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
15654 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 15655 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 15656 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15657 | else |
15658 | ac_check_lib_save_LIBS=$LIBS | |
15659 | LIBS="-lposix4 $LIBS" | |
7083c021 | 15660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15661 | /* end confdefs.h. */ |
15662 | ||
631ef239 AC |
15663 | /* Override any GCC internal prototype to avoid an error. |
15664 | Use char because int might match the return type of a GCC | |
15665 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15666 | #ifdef __cplusplus |
15667 | extern "C" | |
15668 | #endif | |
212380e3 AC |
15669 | char nanosleep (); |
15670 | int | |
15671 | main () | |
15672 | { | |
631ef239 | 15673 | return nanosleep (); |
212380e3 AC |
15674 | ; |
15675 | return 0; | |
15676 | } | |
15677 | _ACEOF | |
7083c021 | 15678 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15679 | ac_cv_lib_posix4_nanosleep=yes |
15680 | else | |
7083c021 | 15681 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 15682 | fi |
7083c021 AC |
15683 | rm -f core conftest.err conftest.$ac_objext \ |
15684 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15685 | LIBS=$ac_check_lib_save_LIBS |
15686 | fi | |
7083c021 AC |
15687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
15688 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 15689 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
15690 | LIBS="${LIBS} -lposix4" |
15691 | ||
15692 | fi | |
15693 | ||
15694 | fi | |
15695 | ||
15696 | fi | |
15697 | ||
15698 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
15699 | then | |
7083c021 AC |
15700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
15701 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
15702 | else |
15703 | ||
7083c021 | 15704 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
15705 | |
15706 | fi | |
15707 | ||
7083c021 AC |
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
15709 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 15710 | # Check whether --enable-openssl was given. |
7083c021 | 15711 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 15712 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
15713 | else |
15714 | cf_enable_openssl="auto" | |
631ef239 AC |
15715 | fi |
15716 | ||
212380e3 AC |
15717 | |
15718 | if test "$cf_enable_openssl" != "no" ; then | |
15719 | cf_openssl_basedir="" | |
15720 | if test "$cf_enable_openssl" != "auto" && | |
15721 | test "$cf_enable_openssl" != "yes" ; then | |
15722 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
15723 | else | |
15724 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
15725 | /usr/local/openssl ; do | |
15726 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
15727 | cf_openssl_basedir="${dirs}" | |
15728 | break | |
15729 | fi | |
15730 | done | |
15731 | unset dirs | |
15732 | fi | |
15733 | if test ! -z "$cf_openssl_basedir"; then | |
15734 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
15735 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
15736 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
15737 | else | |
15738 | cf_openssl_basedir="" | |
15739 | fi | |
15740 | else | |
15741 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
15742 | cf_openssl_basedir="/usr" | |
15743 | fi | |
15744 | fi | |
15745 | ||
15746 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
15747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
15748 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
15749 | cf_enable_openssl="yes" |
15750 | else | |
7083c021 AC |
15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
15752 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
15753 | cf_enable_openssl="no" |
15754 | fi | |
15755 | unset cf_openssl_basedir | |
15756 | else | |
7083c021 AC |
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
15758 | $as_echo "disabled" >&6; } | |
212380e3 AC |
15759 | fi |
15760 | ||
15761 | save_CPPFLAGS="$CPPFLAGS" | |
15762 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
15763 | save_LIBS="$LIBS" | |
15764 | LIBS="$LIBS $SSL_LIBS" | |
15765 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
15766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
15767 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
15768 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
15769 | cf_openssl_version_ok=no |
15770 | else | |
7083c021 | 15771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15772 | /* end confdefs.h. */ |
15773 | #include <openssl/opensslv.h> | |
15774 | #include <stdlib.h> | |
15775 | int | |
15776 | main () | |
15777 | { | |
15778 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
15779 | exit(0); else exit(1); | |
15780 | ; | |
15781 | return 0; | |
15782 | } | |
15783 | _ACEOF | |
7083c021 | 15784 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15785 | cf_openssl_version_ok=yes |
15786 | else | |
7083c021 | 15787 | cf_openssl_version_ok=no |
212380e3 | 15788 | fi |
7083c021 AC |
15789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15790 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
15791 | fi |
15792 | ||
631ef239 | 15793 | |
212380e3 | 15794 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
15795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
15796 | $as_echo "found" >&6; } | |
212380e3 AC |
15797 | |
15798 | ENCSPEED=encspeed | |
15799 | ||
15800 | ||
15801 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
15803 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 15804 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 15805 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15806 | else |
15807 | ac_check_lib_save_LIBS=$LIBS | |
15808 | LIBS="-lcrypto $LIBS" | |
7083c021 | 15809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15810 | /* end confdefs.h. */ |
15811 | ||
631ef239 AC |
15812 | /* Override any GCC internal prototype to avoid an error. |
15813 | Use char because int might match the return type of a GCC | |
15814 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15815 | #ifdef __cplusplus |
15816 | extern "C" | |
15817 | #endif | |
212380e3 AC |
15818 | char RSA_free (); |
15819 | int | |
15820 | main () | |
15821 | { | |
631ef239 | 15822 | return RSA_free (); |
212380e3 AC |
15823 | ; |
15824 | return 0; | |
15825 | } | |
15826 | _ACEOF | |
7083c021 | 15827 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15828 | ac_cv_lib_crypto_RSA_free=yes |
15829 | else | |
7083c021 | 15830 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 15831 | fi |
7083c021 AC |
15832 | rm -f core conftest.err conftest.$ac_objext \ |
15833 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15834 | LIBS=$ac_check_lib_save_LIBS |
15835 | fi | |
7083c021 AC |
15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
15837 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 15838 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
15839 | cat >>confdefs.h <<_ACEOF |
15840 | #define HAVE_LIBCRYPTO 1 | |
15841 | _ACEOF | |
15842 | ||
15843 | LIBS="-lcrypto $LIBS" | |
15844 | ||
15845 | fi | |
15846 | ||
15847 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
15848 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
15849 | else | |
7083c021 AC |
15850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
15851 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
15852 | fi |
15853 | fi | |
15854 | ||
15855 | CPPFLAGS="$save_CPPFLAGS" | |
15856 | LIBS="$save_LIBS" | |
15857 | ||
15858 | ||
15859 | ||
15860 | ||
15861 | ||
631ef239 | 15862 | # Check whether --with-zlib-path was given. |
7083c021 | 15863 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
15864 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
15865 | fi | |
212380e3 | 15866 | |
7083c021 AC |
15867 | |
15868 | # Check whether --enable-zlib was given. | |
15869 | if test "${enable_zlib+set}" = set; then : | |
15870 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 15871 | else |
7083c021 | 15872 | zlib=yes |
212380e3 | 15873 | fi |
212380e3 | 15874 | |
212380e3 | 15875 | |
7083c021 AC |
15876 | if test "$zlib" = yes; then |
15877 | ||
15878 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 15879 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
15880 | |
15881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
15882 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 15883 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 15884 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15885 | else |
15886 | ac_check_lib_save_LIBS=$LIBS | |
15887 | LIBS="-lz $LIBS" | |
7083c021 | 15888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15889 | /* end confdefs.h. */ |
15890 | ||
631ef239 AC |
15891 | /* Override any GCC internal prototype to avoid an error. |
15892 | Use char because int might match the return type of a GCC | |
15893 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15894 | #ifdef __cplusplus |
15895 | extern "C" | |
15896 | #endif | |
212380e3 AC |
15897 | char zlibVersion (); |
15898 | int | |
15899 | main () | |
15900 | { | |
631ef239 | 15901 | return zlibVersion (); |
212380e3 AC |
15902 | ; |
15903 | return 0; | |
15904 | } | |
15905 | _ACEOF | |
7083c021 | 15906 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15907 | ac_cv_lib_z_zlibVersion=yes |
15908 | else | |
7083c021 | 15909 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 15910 | fi |
7083c021 AC |
15911 | rm -f core conftest.err conftest.$ac_objext \ |
15912 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15913 | LIBS=$ac_check_lib_save_LIBS |
15914 | fi | |
7083c021 AC |
15915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
15916 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 15917 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
15918 | |
15919 | ZLIB_LD=-lz | |
15920 | ||
15921 | ||
7083c021 | 15922 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
15923 | |
15924 | ||
15925 | else | |
15926 | zlib=no | |
15927 | fi | |
15928 | ||
15929 | ||
15930 | else | |
15931 | zlib=no | |
15932 | fi | |
15933 | ||
15934 | ||
15935 | ||
497e30a0 LS |
15936 | fi |
15937 | ||
a6ef3156 LS |
15938 | |
15939 | # Check whether --with-shared-sqlite was given. | |
15940 | if test "${with_shared_sqlite+set}" = set; then : | |
15941 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
15942 | else |
15943 | shared_sqlite=no | |
15944 | fi | |
15945 | ||
15946 | ||
15947 | if test "$shared_sqlite" = yes; then | |
15948 | ||
cf1001a7 | 15949 | |
a5471f24 LS |
15950 | |
15951 | ||
15952 | ||
15953 | ||
15954 | ||
15955 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15956 | if test -n "$ac_tool_prefix"; then | |
15957 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15958 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15960 | $as_echo_n "checking for $ac_word... " >&6; } | |
15961 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15962 | $as_echo_n "(cached) " >&6 | |
15963 | else | |
15964 | case $PKG_CONFIG in | |
15965 | [\\/]* | ?:[\\/]*) | |
15966 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15967 | ;; | |
15968 | *) | |
15969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15970 | for as_dir in $PATH | |
15971 | do | |
15972 | IFS=$as_save_IFS | |
15973 | test -z "$as_dir" && as_dir=. | |
15974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15976 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15978 | break 2 | |
15979 | fi | |
15980 | done | |
15981 | done | |
15982 | IFS=$as_save_IFS | |
15983 | ||
15984 | ;; | |
cf1001a7 | 15985 | esac |
a5471f24 LS |
15986 | fi |
15987 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15988 | if test -n "$PKG_CONFIG"; then | |
15989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15990 | $as_echo "$PKG_CONFIG" >&6; } | |
15991 | else | |
15992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15993 | $as_echo "no" >&6; } | |
15994 | fi | |
cf1001a7 | 15995 | |
497e30a0 | 15996 | |
a5471f24 LS |
15997 | fi |
15998 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15999 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16000 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16001 | set dummy pkg-config; ac_word=$2 | |
16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16003 | $as_echo_n "checking for $ac_word... " >&6; } | |
16004 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
16005 | $as_echo_n "(cached) " >&6 |
16006 | else | |
a5471f24 LS |
16007 | case $ac_pt_PKG_CONFIG in |
16008 | [\\/]* | ?:[\\/]*) | |
16009 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16010 | ;; | |
16011 | *) | |
16012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16013 | for as_dir in $PATH | |
16014 | do | |
16015 | IFS=$as_save_IFS | |
16016 | test -z "$as_dir" && as_dir=. | |
16017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16019 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16021 | break 2 | |
16022 | fi | |
16023 | done | |
16024 | done | |
16025 | IFS=$as_save_IFS | |
497e30a0 | 16026 | |
a5471f24 LS |
16027 | ;; |
16028 | esac | |
16029 | fi | |
16030 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16031 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16033 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 16034 | else |
a5471f24 LS |
16035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16036 | $as_echo "no" >&6; } | |
497e30a0 | 16037 | fi |
a5471f24 LS |
16038 | |
16039 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16040 | PKG_CONFIG="" | |
16041 | else | |
16042 | case $cross_compiling:$ac_tool_warned in | |
16043 | yes:) | |
16044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16045 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16046 | ac_tool_warned=yes ;; | |
16047 | esac | |
16048 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16049 | fi | |
16050 | else | |
16051 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 16052 | fi |
497e30a0 | 16053 | |
a5471f24 LS |
16054 | fi |
16055 | if test -n "$PKG_CONFIG"; then | |
16056 | _pkg_min_version=0.9.0 | |
16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16058 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16059 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16061 | $as_echo "yes" >&6; } | |
16062 | else | |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16064 | $as_echo "no" >&6; } | |
16065 | PKG_CONFIG="" | |
16066 | fi | |
16067 | fi | |
16068 | ||
16069 | pkg_failed=no | |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16071 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 16072 | |
a5471f24 LS |
16073 | if test -n "$SQLITE_CFLAGS"; then |
16074 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16075 | elif test -n "$PKG_CONFIG"; then | |
16076 | if test -n "$PKG_CONFIG" && \ | |
16077 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16078 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16079 | ac_status=$? | |
16080 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16081 | test $ac_status = 0; }; then | |
16082 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16083 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 16084 | else |
a5471f24 LS |
16085 | pkg_failed=yes |
16086 | fi | |
16087 | else | |
16088 | pkg_failed=untried | |
16089 | fi | |
16090 | if test -n "$SQLITE_LIBS"; then | |
16091 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16092 | elif test -n "$PKG_CONFIG"; then | |
16093 | if test -n "$PKG_CONFIG" && \ | |
16094 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16095 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16096 | ac_status=$? | |
16097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16098 | test $ac_status = 0; }; then | |
16099 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16100 | test "x$?" != "x0" && pkg_failed=yes | |
16101 | else | |
16102 | pkg_failed=yes | |
16103 | fi | |
16104 | else | |
16105 | pkg_failed=untried | |
497e30a0 LS |
16106 | fi |
16107 | ||
16108 | ||
a5471f24 LS |
16109 | |
16110 | if test $pkg_failed = yes; then | |
16111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16112 | $as_echo "no" >&6; } | |
16113 | ||
16114 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16115 | _pkg_short_errors_supported=yes | |
497e30a0 | 16116 | else |
a5471f24 | 16117 | _pkg_short_errors_supported=no |
497e30a0 | 16118 | fi |
a5471f24 LS |
16119 | if test $_pkg_short_errors_supported = yes; then |
16120 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16121 | else | |
16122 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16123 | fi | |
16124 | # Put the nasty error message in config.log where it belongs | |
16125 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 16126 | |
a5471f24 LS |
16127 | shared_sqlite=no |
16128 | elif test $pkg_failed = untried; then | |
16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16130 | $as_echo "no" >&6; } | |
16131 | shared_sqlite=no | |
16132 | else | |
16133 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
16134 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
16135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16136 | $as_echo "yes" >&6; } | |
497e30a0 | 16137 | |
a5471f24 | 16138 | shared_sqlite=yes |
497e30a0 | 16139 | |
74ab6be0 | 16140 | fi |
a5471f24 | 16141 | fi |
74ab6be0 LS |
16142 | |
16143 | if test "$shared_sqlite" = no; then | |
c52df125 | 16144 | SQLITE_OBJ='sqlite3.$(OBJEXT)' |
212380e3 AC |
16145 | fi |
16146 | ||
a5471f24 | 16147 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 16148 | |
a5471f24 | 16149 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
16150 | |
16151 | ||
cf1001a7 LS |
16152 | |
16153 | ||
212380e3 | 16154 | |
631ef239 | 16155 | # Check whether --with-confdir was given. |
7083c021 | 16156 | if test "${with_confdir+set}" = set; then : |
634d4aad | 16157 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 16158 | else |
9f9b7042 | 16159 | confdir='${sysconfdir}' |
634d4aad NPB |
16160 | fi |
16161 | ||
212380e3 AC |
16162 | |
16163 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16164 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 16165 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 16166 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 16167 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16168 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16169 | last_ac_define_dir="$ac_define_dir" | |
16170 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16171 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16172 | if test "x$ac_define_dir_counter" = x128; then : | |
16173 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
16174 | break | |
16175 | fi | |
9f9b7042 | 16176 | done |
212380e3 AC |
16177 | ETC_DIR="$ac_define_dir" |
16178 | ||
16179 | ||
16180 | cat >>confdefs.h <<_ACEOF | |
16181 | #define ETC_DIR "$ac_define_dir" | |
16182 | _ACEOF | |
16183 | ||
16184 | ||
16185 | ||
16186 | ||
7083c021 AC |
16187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
16188 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 16189 | |
631ef239 | 16190 | # Check whether --with-logdir was given. |
7083c021 | 16191 | if test "${with_logdir+set}" = set; then : |
631ef239 | 16192 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16194 | $as_echo "yes" >&6; } | |
212380e3 | 16195 | else |
9f9b7042 NPB |
16196 | if test "x$enable_fhs_paths" = "xyes"; then : |
16197 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
16198 | else | |
16199 | logdir='${prefix}/logs' | |
16200 | fi | |
7083c021 AC |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16202 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16203 | fi |
16204 | ||
212380e3 AC |
16205 | |
16206 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16207 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16208 | last_ac_define_dir=`eval echo $logdir` |
16209 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16210 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16211 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16212 | last_ac_define_dir="$ac_define_dir" | |
16213 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16214 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16215 | if test "x$ac_define_dir_counter" = x128; then : | |
16216 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
16217 | break | |
16218 | fi | |
9f9b7042 | 16219 | done |
212380e3 AC |
16220 | LOG_DIR="$ac_define_dir" |
16221 | ||
16222 | ||
16223 | cat >>confdefs.h <<_ACEOF | |
16224 | #define LOG_DIR "$ac_define_dir" | |
16225 | _ACEOF | |
16226 | ||
16227 | ||
16228 | ||
16229 | ||
16230 | logdir=`( | |
16231 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16232 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16233 | eval echo \""$logdir"\" | |
16234 | )` | |
16235 | ||
16236 | ||
16237 | ||
212380e3 | 16238 | |
7083c021 AC |
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
16240 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 16241 | |
631ef239 | 16242 | # Check whether --with-helpdir was given. |
7083c021 | 16243 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 16244 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16246 | $as_echo "yes" >&6; } | |
212380e3 | 16247 | else |
9f9b7042 NPB |
16248 | if test "x$enable_fhs_paths" = "xyes"; then : |
16249 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
16250 | else | |
16251 | helpdir='${prefix}/help' | |
16252 | fi | |
7083c021 AC |
16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16254 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16255 | fi |
16256 | ||
212380e3 AC |
16257 | |
16258 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16259 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16260 | last_ac_define_dir=`eval echo $helpdir` |
16261 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16262 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16263 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16264 | last_ac_define_dir="$ac_define_dir" | |
16265 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16266 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16267 | if test "x$ac_define_dir_counter" = x128; then : | |
16268 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
16269 | break | |
16270 | fi | |
9f9b7042 | 16271 | done |
212380e3 AC |
16272 | HELP_DIR="$ac_define_dir" |
16273 | ||
16274 | ||
16275 | cat >>confdefs.h <<_ACEOF | |
16276 | #define HELP_DIR "$ac_define_dir" | |
16277 | _ACEOF | |
16278 | ||
16279 | ||
16280 | ||
16281 | ||
16282 | helpdir=`( | |
16283 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16284 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16285 | eval echo \""$helpdir"\" | |
16286 | )` | |
16287 | ||
16288 | ||
16289 | ||
212380e3 | 16290 | |
7083c021 AC |
16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
16292 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 16293 | |
631ef239 | 16294 | # Check whether --with-moduledir was given. |
7083c021 | 16295 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 16296 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16298 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
16299 | else |
16300 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16301 | moduledir='${pkglibdir}/modules' | |
16302 | else | |
16303 | moduledir='${prefix}/modules' | |
16304 | fi | |
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16306 | $as_echo "no" >&6; } | |
16307 | ||
16308 | fi | |
16309 | ||
212380e3 AC |
16310 | |
16311 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16312 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16313 | last_ac_define_dir=`eval echo $moduledir` |
16314 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16315 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16316 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16317 | last_ac_define_dir="$ac_define_dir" | |
16318 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16319 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16320 | if test "x$ac_define_dir_counter" = x128; then : | |
16321 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
16322 | break | |
16323 | fi | |
9f9b7042 | 16324 | done |
212380e3 AC |
16325 | MODULE_DIR="$ac_define_dir" |
16326 | ||
16327 | ||
16328 | cat >>confdefs.h <<_ACEOF | |
16329 | #define MODULE_DIR "$ac_define_dir" | |
16330 | _ACEOF | |
16331 | ||
16332 | ||
16333 | ||
16334 | ||
16335 | moduledir=`( | |
16336 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16337 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16338 | eval echo \""$moduledir"\" | |
16339 | )` | |
16340 | ||
16341 | ||
9f9b7042 NPB |
16342 | |
16343 | ||
16344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
16345 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
16346 | ||
16347 | # Check whether --with-rundir was given. | |
16348 | if test "${with_rundir+set}" = set; then : | |
16349 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16350 | $as_echo "yes" >&6; } | |
16351 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 16352 | else |
9f9b7042 | 16353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 16354 | $as_echo "no" >&6; } |
9f9b7042 NPB |
16355 | if test "x$enable_fhs_paths" = "xyes"; then : |
16356 | rundir='${prefix}/run' | |
16357 | else | |
16358 | rundir='${sysconfdir}' | |
16359 | fi | |
16360 | fi | |
16361 | ||
16362 | ||
212380e3 AC |
16363 | |
16364 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16365 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16366 | last_ac_define_dir=`eval echo $pkgrundir` |
16367 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16368 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16369 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16370 | last_ac_define_dir="$ac_define_dir" | |
16371 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16372 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16373 | if test "x$ac_define_dir_counter" = x128; then : | |
16374 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
16375 | break | |
16376 | fi | |
9f9b7042 NPB |
16377 | done |
16378 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
16379 | |
16380 | ||
16381 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 16382 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
16383 | _ACEOF |
16384 | ||
16385 | ||
16386 | ||
9f9b7042 NPB |
16387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
16388 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 16389 | |
9f9b7042 NPB |
16390 | # Check whether --with-program-prefix was given. |
16391 | if test "${with_program_prefix+set}" = set; then : | |
16392 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
16393 | else | |
16394 | with_program_prefix= | |
16395 | fi | |
212380e3 | 16396 | |
9f9b7042 NPB |
16397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
16398 | $as_echo "\"$with_program_prefix\"" >&6; } | |
16399 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
16400 | |
16401 | ||
9f9b7042 NPB |
16402 | cat >>confdefs.h <<_ACEOF |
16403 | #define PROGRAM_PREFIX "$with_program_prefix" | |
16404 | _ACEOF | |
631ef239 | 16405 | |
7083c021 | 16406 | |
b6d0720c AC |
16407 | |
16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
16409 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
16410 | ||
16411 | # Check whether --with-custom-branding was given. | |
16412 | if test "${with_custom_branding+set}" = set; then : | |
16413 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16415 | $as_echo "yes" >&6; } | |
16416 | else | |
16417 | BRANDING_NAME=$PACKAGE_NAME | |
16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16419 | $as_echo "no" >&6; } | |
16420 | ||
16421 | fi | |
16422 | ||
16423 | ||
16424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
16425 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
16426 | ||
16427 | # Check whether --with-custom-version was given. | |
16428 | if test "${with_custom_version+set}" = set; then : | |
16429 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16431 | $as_echo "yes" >&6; } | |
16432 | else | |
16433 | BRANDING_VERSION=$PACKAGE_VERSION | |
16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16435 | $as_echo "no" >&6; } | |
16436 | ||
16437 | fi | |
16438 | ||
16439 | ||
16440 | ||
16441 | cat >>confdefs.h <<_ACEOF | |
16442 | #define BRANDING_NAME "$BRANDING_NAME" | |
16443 | _ACEOF | |
16444 | ||
16445 | ||
16446 | cat >>confdefs.h <<_ACEOF | |
16447 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
16448 | _ACEOF | |
16449 | ||
16450 | ||
f5493691 AC |
16451 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
16452 | ||
16453 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
16454 | ||
16455 | fi | |
16456 | ||
212380e3 | 16457 | |
631ef239 | 16458 | # Check whether --enable-assert was given. |
7083c021 | 16459 | if test "${enable_assert+set}" = set; then : |
631ef239 | 16460 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
16461 | else |
16462 | assert=no | |
631ef239 AC |
16463 | fi |
16464 | ||
212380e3 AC |
16465 | |
16466 | if test "$assert" = no; then | |
16467 | ||
7083c021 | 16468 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16469 | |
16470 | elif test "$assert" = soft; then | |
16471 | ||
7083c021 | 16472 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
16473 | |
16474 | ||
7083c021 | 16475 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16476 | |
16477 | elif test "$assert" = yes; then | |
16478 | assert = "hard"; | |
16479 | fi | |
16480 | ||
7083c021 AC |
16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
16482 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 16483 | # Check whether --enable-iodebug was given. |
7083c021 | 16484 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 16485 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
16486 | else |
16487 | iodebug=no | |
631ef239 AC |
16488 | fi |
16489 | ||
212380e3 AC |
16490 | |
16491 | if test "$iodebug" = yes; then | |
16492 | ||
7083c021 | 16493 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 16494 | |
7083c021 AC |
16495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16496 | $as_echo "yes" >&6; } | |
212380e3 | 16497 | else |
7083c021 AC |
16498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16499 | $as_echo "no" >&6; } | |
212380e3 AC |
16500 | fi |
16501 | ||
16502 | ||
7083c021 AC |
16503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
16504 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 16505 | # Check whether --enable-profile was given. |
7083c021 | 16506 | if test "${enable_profile+set}" = set; then : |
631ef239 | 16507 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
16508 | else |
16509 | profile=no | |
631ef239 AC |
16510 | fi |
16511 | ||
212380e3 AC |
16512 | |
16513 | if test "$profile" = yes; then | |
16514 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16515 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
16516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
16517 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 16518 | |
7083c021 | 16519 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
16520 | |
16521 | else | |
7083c021 AC |
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
16523 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
16524 | fi |
16525 | else | |
7083c021 AC |
16526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16527 | $as_echo "no" >&6; } | |
212380e3 AC |
16528 | fi |
16529 | ||
631ef239 | 16530 | # Check whether --enable-balloc was given. |
7083c021 | 16531 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 16532 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
16533 | else |
16534 | balloc=yes | |
631ef239 AC |
16535 | fi |
16536 | ||
212380e3 AC |
16537 | |
16538 | if test "$balloc" = no; then | |
16539 | ||
7083c021 | 16540 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
16541 | |
16542 | fi | |
16543 | ||
631ef239 | 16544 | # Check whether --enable-small-net was given. |
7083c021 | 16545 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 16546 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
16547 | else |
16548 | small_net=no | |
631ef239 AC |
16549 | fi |
16550 | ||
212380e3 AC |
16551 | |
16552 | if test "$small_net" = yes; then | |
16553 | ||
7083c021 | 16554 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
16555 | |
16556 | ||
7083c021 | 16557 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16558 | |
16559 | ||
7083c021 | 16560 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16561 | |
16562 | ||
7083c021 | 16563 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16564 | |
16565 | ||
7083c021 | 16566 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16567 | |
16568 | ||
7083c021 | 16569 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
16570 | |
16571 | ||
7083c021 | 16572 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16573 | |
16574 | ||
7083c021 | 16575 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16576 | |
16577 | ||
7083c021 | 16578 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16579 | |
16580 | ||
7083c021 | 16581 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16582 | |
16583 | ||
7083c021 | 16584 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16585 | |
16586 | ||
7083c021 | 16587 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16588 | |
16589 | ||
7083c021 | 16590 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16591 | |
16592 | ||
7083c021 | 16593 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 16594 | |
f589ec6f | 16595 | |
7083c021 | 16596 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
16597 | |
16598 | ||
7083c021 | 16599 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 16600 | |
212380e3 AC |
16601 | else |
16602 | ||
7083c021 | 16603 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
16604 | |
16605 | ||
7083c021 | 16606 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16607 | |
16608 | ||
7083c021 | 16609 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16610 | |
16611 | ||
7083c021 | 16612 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16613 | |
16614 | ||
7083c021 | 16615 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
16616 | |
16617 | ||
7083c021 | 16618 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16619 | |
16620 | ||
7083c021 | 16621 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16622 | |
16623 | ||
7083c021 | 16624 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16625 | |
16626 | ||
7083c021 | 16627 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16628 | |
16629 | ||
7083c021 | 16630 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
16631 | |
16632 | ||
7083c021 | 16633 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
16634 | |
16635 | ||
7083c021 | 16636 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
16637 | |
16638 | ||
7083c021 | 16639 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16640 | |
16641 | ||
7083c021 | 16642 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 16643 | |
f589ec6f | 16644 | |
7083c021 | 16645 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
16646 | |
16647 | ||
7083c021 | 16648 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 16649 | |
212380e3 AC |
16650 | fi |
16651 | ||
16652 | ||
631ef239 | 16653 | # Check whether --with-nicklen was given. |
7083c021 | 16654 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 16655 | withval=$with_nicklen; |
aa769893 | 16656 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 16657 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 16658 | fi |
cf533739 | 16659 | if test $withval -gt 50; then |
212380e3 | 16660 | NICKLEN=50 |
7083c021 AC |
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
16662 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
16663 | elif test $withval -lt 9; then |
16664 | NICKLEN=9 | |
16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
16666 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
16667 | else |
16668 | NICKLEN="$withval" | |
16669 | fi | |
16670 | ||
16671 | else | |
cf533739 | 16672 | NICKLEN=31 |
631ef239 | 16673 | fi |
212380e3 AC |
16674 | |
16675 | ||
212380e3 | 16676 | |
631ef239 | 16677 | # Check whether --with-topiclen was given. |
7083c021 | 16678 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 16679 | withval=$with_topiclen; |
212380e3 AC |
16680 | if test $withval -ge 390; then |
16681 | TOPICLEN=390 | |
7083c021 AC |
16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
16683 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
16684 | else |
16685 | TOPICLEN=$withval | |
16686 | fi | |
16687 | ||
16688 | else | |
16689 | TOPICLEN=390 | |
212380e3 AC |
16690 | fi |
16691 | ||
212380e3 AC |
16692 | |
16693 | ||
16694 | cat >>confdefs.h <<_ACEOF | |
16695 | #define TOPICLEN ${TOPICLEN} | |
16696 | _ACEOF | |
16697 | ||
16698 | ||
16699 | cat >>confdefs.h <<_ACEOF | |
16700 | #define NICKLEN (${NICKLEN}+1) | |
16701 | _ACEOF | |
16702 | ||
16703 | ||
1a82970f JT |
16704 | # rpath, for finding libratbox.so at run time |
16705 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
16707 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 16708 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 16709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
16710 | /* end confdefs.h. */ |
16711 | ||
16712 | int | |
16713 | main () | |
16714 | { | |
16715 | int i; | |
16716 | ; | |
16717 | return 0; | |
16718 | } | |
16719 | _ACEOF | |
7083c021 | 16720 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
16721 | found=yes |
16722 | else | |
7083c021 | 16723 | found=no |
1a82970f | 16724 | fi |
7083c021 AC |
16725 | rm -f core conftest.err conftest.$ac_objext \ |
16726 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 16727 | LDFLAGS=$hold_ldflags |
7083c021 AC |
16728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
16729 | $as_echo "$found" >&6; } | |
1a82970f JT |
16730 | if test "$found" = yes; then |
16731 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
16732 | fi | |
16733 | ||
212380e3 AC |
16734 | # This must be down here, or it will mess up checks like the ones |
16735 | # for -Wl,-export-dynamic | |
16736 | # -- jilles | |
d2c5159a | 16737 | CWARNS="" |
631ef239 | 16738 | # Check whether --enable-warnings was given. |
7083c021 | 16739 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 16740 | enableval=$enable_warnings; |
212380e3 AC |
16741 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
16742 | CFLAGS="$IRC_CFLAGS" | |
16743 | ||
16744 | ||
7083c021 AC |
16745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
16746 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
16747 | if test "${GCC-no}" = yes |
16748 | then | |
b6d0720c | 16749 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 16750 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16751 | else |
16752 | ||
16753 | oldcflags="${CFLAGS-}" | |
16754 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 16755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16756 | /* end confdefs.h. */ |
16757 | ||
16758 | #include <string.h> | |
16759 | #include <stdio.h> | |
16760 | int main(void); | |
16761 | ||
16762 | int | |
16763 | main () | |
16764 | { | |
16765 | ||
b1fc1658 | 16766 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16767 | |
16768 | ; | |
16769 | return 0; | |
16770 | } | |
16771 | _ACEOF | |
7083c021 | 16772 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16773 | charybdis_cv_c_gcc_w_all=yes |
16774 | else | |
7083c021 | 16775 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 16776 | fi |
631ef239 | 16777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16778 | CFLAGS="${oldcflags}" |
16779 | fi | |
16780 | ||
16781 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
16782 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16784 | $as_echo "ok" >&6; } | |
212380e3 AC |
16785 | else |
16786 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16788 | $as_echo "no" >&6; } | |
212380e3 AC |
16789 | fi |
16790 | else | |
7083c021 AC |
16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16792 | $as_echo "no" >&6; } | |
212380e3 AC |
16793 | fi |
16794 | ||
16795 | ||
7083c021 AC |
16796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
16797 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
16798 | if test "${GCC-no}" = yes |
16799 | then | |
b6d0720c | 16800 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 16801 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16802 | else |
16803 | ||
16804 | oldcflags="${CFLAGS-}" | |
16805 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 16806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16807 | /* end confdefs.h. */ |
16808 | ||
16809 | #include <string.h> | |
16810 | #include <stdio.h> | |
16811 | int main(void); | |
16812 | ||
16813 | int | |
16814 | main () | |
16815 | { | |
16816 | ||
b1fc1658 | 16817 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16818 | |
16819 | ; | |
16820 | return 0; | |
16821 | } | |
16822 | _ACEOF | |
7083c021 | 16823 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16824 | charybdis_cv_c_gcc_w_pointer_arith=yes |
16825 | else | |
7083c021 | 16826 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 16827 | fi |
631ef239 | 16828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16829 | CFLAGS="${oldcflags}" |
16830 | fi | |
16831 | ||
16832 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
16833 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
16834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16835 | $as_echo "ok" >&6; } | |
212380e3 AC |
16836 | else |
16837 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
16838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16839 | $as_echo "no" >&6; } | |
212380e3 AC |
16840 | fi |
16841 | else | |
7083c021 AC |
16842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16843 | $as_echo "no" >&6; } | |
212380e3 AC |
16844 | fi |
16845 | ||
16846 | ||
7083c021 AC |
16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
16848 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
16849 | if test "${GCC-no}" = yes |
16850 | then | |
b6d0720c | 16851 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 16852 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16853 | else |
16854 | ||
16855 | oldcflags="${CFLAGS-}" | |
16856 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 16857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16858 | /* end confdefs.h. */ |
16859 | ||
16860 | #include <string.h> | |
16861 | #include <stdio.h> | |
16862 | int main(void); | |
16863 | ||
16864 | int | |
16865 | main () | |
16866 | { | |
16867 | ||
b1fc1658 | 16868 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16869 | |
16870 | ; | |
16871 | return 0; | |
16872 | } | |
16873 | _ACEOF | |
7083c021 | 16874 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16875 | charybdis_cv_c_gcc_w_implicit=yes |
16876 | else | |
7083c021 | 16877 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 16878 | fi |
631ef239 | 16879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16880 | CFLAGS="${oldcflags}" |
16881 | fi | |
16882 | ||
16883 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
16884 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
16885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16886 | $as_echo "ok" >&6; } | |
212380e3 AC |
16887 | else |
16888 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
16889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16890 | $as_echo "no" >&6; } | |
212380e3 AC |
16891 | fi |
16892 | else | |
7083c021 AC |
16893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16894 | $as_echo "no" >&6; } | |
212380e3 AC |
16895 | fi |
16896 | ||
16897 | ||
7083c021 AC |
16898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
16899 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
16900 | if test "${GCC-no}" = yes |
16901 | then | |
b6d0720c | 16902 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 16903 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16904 | else |
16905 | ||
16906 | oldcflags="${CFLAGS-}" | |
16907 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 16908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16909 | /* end confdefs.h. */ |
16910 | ||
16911 | #include <string.h> | |
16912 | #include <stdio.h> | |
16913 | int main(void); | |
16914 | ||
16915 | int | |
16916 | main () | |
16917 | { | |
16918 | ||
b1fc1658 | 16919 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
16920 | |
16921 | ; | |
16922 | return 0; | |
16923 | } | |
16924 | _ACEOF | |
16925 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
16926 | charybdis_cv_c_gcc_w_cast_align=yes |
16927 | else | |
7083c021 | 16928 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 16929 | fi |
631ef239 | 16930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16931 | CFLAGS="${oldcflags}" |
16932 | fi | |
16933 | ||
16934 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
16935 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
16936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16937 | $as_echo "ok" >&6; } | |
212380e3 AC |
16938 | else |
16939 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16941 | $as_echo "no" >&6; } | |
212380e3 AC |
16942 | fi |
16943 | else | |
7083c021 AC |
16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16945 | $as_echo "no" >&6; } | |
212380e3 AC |
16946 | fi |
16947 | ||
16948 | ||
7083c021 AC |
16949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
16950 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
16951 | if test "${GCC-no}" = yes |
16952 | then | |
b6d0720c | 16953 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 16954 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16955 | else |
16956 | ||
16957 | oldcflags="${CFLAGS-}" | |
16958 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 16959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16960 | /* end confdefs.h. */ |
16961 | ||
16962 | #include <string.h> | |
16963 | #include <stdio.h> | |
16964 | int main(void); | |
16965 | ||
16966 | int | |
16967 | main () | |
16968 | { | |
16969 | ||
b1fc1658 | 16970 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16971 | |
16972 | ; | |
16973 | return 0; | |
16974 | } | |
16975 | _ACEOF | |
7083c021 | 16976 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16977 | charybdis_cv_c_gcc_w_cast_qual=yes |
16978 | else | |
7083c021 | 16979 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 16980 | fi |
631ef239 | 16981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16982 | CFLAGS="${oldcflags}" |
16983 | fi | |
16984 | ||
16985 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
16986 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
16987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16988 | $as_echo "ok" >&6; } | |
212380e3 AC |
16989 | else |
16990 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16992 | $as_echo "no" >&6; } | |
212380e3 AC |
16993 | fi |
16994 | else | |
7083c021 AC |
16995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16996 | $as_echo "no" >&6; } | |
212380e3 AC |
16997 | fi |
16998 | ||
16999 | ||
7083c021 AC |
17000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
17001 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
17002 | if test "${GCC-no}" = yes |
17003 | then | |
b6d0720c | 17004 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 17005 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
17006 | else |
17007 | ||
17008 | oldcflags="${CFLAGS-}" | |
17009 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 17010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
17011 | /* end confdefs.h. */ |
17012 | ||
17013 | #include <string.h> | |
17014 | #include <stdio.h> | |
17015 | int main(void); | |
17016 | ||
17017 | int | |
17018 | main () | |
17019 | { | |
17020 | ||
17021 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17022 | ||
17023 | ; | |
17024 | return 0; | |
17025 | } | |
17026 | _ACEOF | |
7083c021 | 17027 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 17028 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 17029 | else |
7083c021 | 17030 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 17031 | fi |
d2c5159a JT |
17032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17033 | CFLAGS="${oldcflags}" | |
17034 | fi | |
17035 | ||
bbe58888 | 17036 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 17037 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
17038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17039 | $as_echo "ok" >&6; } | |
d2c5159a | 17040 | else |
bbe58888 | 17041 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
17042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17043 | $as_echo "no" >&6; } | |
bbe58888 VY |
17044 | fi |
17045 | else | |
7083c021 AC |
17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17047 | $as_echo "no" >&6; } | |
bbe58888 VY |
17048 | fi |
17049 | ||
17050 | ||
7083c021 AC |
17051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
17052 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
17053 | if test "${GCC-no}" = yes |
17054 | then | |
b6d0720c | 17055 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 17056 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
17057 | else |
17058 | ||
17059 | oldcflags="${CFLAGS-}" | |
17060 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 17061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
17062 | /* end confdefs.h. */ |
17063 | ||
17064 | #include <string.h> | |
17065 | #include <stdio.h> | |
17066 | int main(void); | |
17067 | ||
17068 | int | |
17069 | main () | |
17070 | { | |
17071 | ||
17072 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17073 | ||
17074 | ; | |
17075 | return 0; | |
17076 | } | |
17077 | _ACEOF | |
7083c021 | 17078 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
17079 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
17080 | else | |
7083c021 | 17081 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 17082 | fi |
bbe58888 VY |
17083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17084 | CFLAGS="${oldcflags}" | |
17085 | fi | |
17086 | ||
17087 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
17088 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
17089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17090 | $as_echo "ok" >&6; } | |
bbe58888 VY |
17091 | else |
17092 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
17093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17094 | $as_echo "no" >&6; } | |
d2c5159a JT |
17095 | fi |
17096 | else | |
7083c021 AC |
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17098 | $as_echo "no" >&6; } | |
d2c5159a JT |
17099 | fi |
17100 | ||
17101 | ||
7083c021 AC |
17102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
17103 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
17104 | if test "${GCC-no}" = yes |
17105 | then | |
b6d0720c | 17106 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 17107 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17108 | else |
17109 | ||
17110 | oldcflags="${CFLAGS-}" | |
17111 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 17112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17113 | /* end confdefs.h. */ |
17114 | ||
17115 | #include <string.h> | |
17116 | #include <stdio.h> | |
17117 | int main(void); | |
17118 | ||
17119 | int | |
17120 | main () | |
17121 | { | |
17122 | ||
b1fc1658 | 17123 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17124 | |
17125 | ; | |
17126 | return 0; | |
17127 | } | |
17128 | _ACEOF | |
7083c021 | 17129 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17130 | charybdis_cv_c_gcc_prototypes=yes |
17131 | else | |
7083c021 | 17132 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 17133 | fi |
631ef239 | 17134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17135 | CFLAGS="${oldcflags}" |
17136 | fi | |
17137 | ||
17138 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
17139 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
17140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17141 | $as_echo "ok" >&6; } | |
212380e3 AC |
17142 | else |
17143 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
17144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17145 | $as_echo "no" >&6; } | |
212380e3 AC |
17146 | fi |
17147 | else | |
7083c021 AC |
17148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17149 | $as_echo "no" >&6; } | |
212380e3 AC |
17150 | fi |
17151 | ||
17152 | ||
7083c021 AC |
17153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
17154 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
17155 | if test "${GCC-no}" = yes |
17156 | then | |
b6d0720c | 17157 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 17158 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17159 | else |
17160 | ||
17161 | oldcflags="${CFLAGS-}" | |
17162 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 17163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17164 | /* end confdefs.h. */ |
17165 | ||
17166 | #include <string.h> | |
17167 | #include <stdio.h> | |
17168 | int main(void); | |
17169 | ||
17170 | int | |
17171 | main () | |
17172 | { | |
17173 | ||
b1fc1658 | 17174 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17175 | |
17176 | ; | |
17177 | return 0; | |
17178 | } | |
17179 | _ACEOF | |
7083c021 | 17180 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17181 | charybdis_cv_c_gcc_parenthesis=yes |
17182 | else | |
7083c021 | 17183 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 17184 | fi |
631ef239 | 17185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17186 | CFLAGS="${oldcflags}" |
17187 | fi | |
17188 | ||
17189 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
17190 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17192 | $as_echo "ok" >&6; } | |
212380e3 AC |
17193 | else |
17194 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
17195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17196 | $as_echo "no" >&6; } | |
212380e3 AC |
17197 | fi |
17198 | else | |
7083c021 AC |
17199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17200 | $as_echo "no" >&6; } | |
212380e3 AC |
17201 | fi |
17202 | ||
17203 | ||
7083c021 AC |
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
17205 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
17206 | if test "${GCC-no}" = yes |
17207 | then | |
b6d0720c | 17208 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 17209 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17210 | else |
17211 | ||
17212 | oldcflags="${CFLAGS-}" | |
17213 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 17214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17215 | /* end confdefs.h. */ |
17216 | ||
17217 | #include <string.h> | |
17218 | #include <stdio.h> | |
17219 | int main(void); | |
17220 | ||
17221 | int | |
17222 | main () | |
17223 | { | |
17224 | ||
b1fc1658 | 17225 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17226 | |
17227 | ; | |
17228 | return 0; | |
17229 | } | |
17230 | _ACEOF | |
7083c021 | 17231 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17232 | charybdis_cv_c_gcc_w=yes |
17233 | else | |
7083c021 | 17234 | charybdis_cv_c_gcc_w=no |
212380e3 | 17235 | fi |
631ef239 | 17236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17237 | CFLAGS="${oldcflags}" |
17238 | fi | |
17239 | ||
17240 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
17241 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
17242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17243 | $as_echo "ok" >&6; } | |
212380e3 AC |
17244 | else |
17245 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17247 | $as_echo "no" >&6; } | |
212380e3 AC |
17248 | fi |
17249 | else | |
7083c021 AC |
17250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17251 | $as_echo "no" >&6; } | |
212380e3 AC |
17252 | fi |
17253 | ||
17254 | ||
7083c021 AC |
17255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
17256 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
17257 | if test "${GCC-no}" = yes |
17258 | then | |
b6d0720c | 17259 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 17260 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17261 | else |
17262 | ||
17263 | oldcflags="${CFLAGS-}" | |
17264 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 17265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17266 | /* end confdefs.h. */ |
17267 | ||
17268 | #include <string.h> | |
17269 | #include <stdio.h> | |
17270 | int main(void); | |
17271 | ||
17272 | int | |
17273 | main () | |
17274 | { | |
17275 | ||
b1fc1658 | 17276 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17277 | |
17278 | ; | |
17279 | return 0; | |
17280 | } | |
17281 | _ACEOF | |
7083c021 | 17282 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17283 | charybdis_cv_c_gcc_w_extra=yes |
17284 | else | |
7083c021 | 17285 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 17286 | fi |
631ef239 | 17287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17288 | CFLAGS="${oldcflags}" |
17289 | fi | |
17290 | ||
17291 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
17292 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17294 | $as_echo "ok" >&6; } | |
212380e3 AC |
17295 | else |
17296 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
17297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17298 | $as_echo "no" >&6; } | |
212380e3 AC |
17299 | fi |
17300 | else | |
7083c021 AC |
17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17302 | $as_echo "no" >&6; } | |
212380e3 AC |
17303 | fi |
17304 | ||
17305 | ||
7083c021 AC |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
17307 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
17308 | if test "${GCC-no}" = yes |
17309 | then | |
b6d0720c | 17310 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 17311 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17312 | else |
17313 | ||
17314 | oldcflags="${CFLAGS-}" | |
17315 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 17316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17317 | /* end confdefs.h. */ |
17318 | ||
17319 | #include <string.h> | |
17320 | #include <stdio.h> | |
17321 | int main(void); | |
17322 | ||
17323 | int | |
17324 | main () | |
17325 | { | |
17326 | ||
b1fc1658 | 17327 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17328 | |
17329 | ; | |
17330 | return 0; | |
17331 | } | |
17332 | _ACEOF | |
7083c021 | 17333 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17334 | charybdis_cv_c_gcc_w_shadow=yes |
17335 | else | |
7083c021 | 17336 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 17337 | fi |
631ef239 | 17338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17339 | CFLAGS="${oldcflags}" |
17340 | fi | |
17341 | ||
17342 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
17343 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
17344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17345 | $as_echo "ok" >&6; } | |
212380e3 AC |
17346 | else |
17347 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17349 | $as_echo "no" >&6; } | |
212380e3 AC |
17350 | fi |
17351 | else | |
7083c021 AC |
17352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17353 | $as_echo "no" >&6; } | |
212380e3 AC |
17354 | fi |
17355 | ||
17356 | ||
7083c021 AC |
17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
17358 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
17359 | if test "${GCC-no}" = yes |
17360 | then | |
b6d0720c | 17361 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 17362 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17363 | else |
17364 | ||
17365 | oldcflags="${CFLAGS-}" | |
17366 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 17367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17368 | /* end confdefs.h. */ |
17369 | ||
17370 | #include <string.h> | |
17371 | #include <stdio.h> | |
17372 | int main(void); | |
17373 | ||
17374 | int | |
17375 | main () | |
17376 | { | |
17377 | ||
b1fc1658 | 17378 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17379 | |
17380 | ; | |
17381 | return 0; | |
17382 | } | |
17383 | _ACEOF | |
7083c021 | 17384 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17385 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
17386 | else | |
7083c021 | 17387 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 17388 | fi |
631ef239 | 17389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17390 | CFLAGS="${oldcflags}" |
17391 | fi | |
17392 | ||
17393 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
17394 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17396 | $as_echo "ok" >&6; } | |
212380e3 AC |
17397 | else |
17398 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17400 | $as_echo "no" >&6; } | |
212380e3 AC |
17401 | fi |
17402 | else | |
7083c021 AC |
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17404 | $as_echo "no" >&6; } | |
212380e3 AC |
17405 | fi |
17406 | ||
17407 | ||
7083c021 AC |
17408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
17409 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
17410 | if test "${GCC-no}" = yes |
17411 | then | |
b6d0720c | 17412 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 17413 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17414 | else |
17415 | ||
17416 | oldcflags="${CFLAGS-}" | |
17417 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 17418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17419 | /* end confdefs.h. */ |
17420 | ||
17421 | #include <string.h> | |
17422 | #include <stdio.h> | |
17423 | int main(void); | |
17424 | ||
17425 | int | |
17426 | main () | |
17427 | { | |
17428 | ||
b1fc1658 | 17429 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17430 | |
17431 | ; | |
17432 | return 0; | |
17433 | } | |
17434 | _ACEOF | |
7083c021 | 17435 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17436 | charybdis_cv_c_gcc_w_undef=yes |
17437 | else | |
7083c021 | 17438 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 17439 | fi |
631ef239 | 17440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17441 | CFLAGS="${oldcflags}" |
17442 | fi | |
17443 | ||
17444 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
17445 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
17446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17447 | $as_echo "ok" >&6; } | |
212380e3 AC |
17448 | else |
17449 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
17450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17451 | $as_echo "no" >&6; } | |
212380e3 AC |
17452 | fi |
17453 | else | |
7083c021 AC |
17454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17455 | $as_echo "no" >&6; } | |
212380e3 AC |
17456 | fi |
17457 | ||
17458 | ||
7083c021 AC |
17459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
17460 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
17461 | if test "${GCC-no}" = yes |
17462 | then | |
b6d0720c | 17463 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 17464 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17465 | else |
17466 | ||
17467 | oldcflags="${CFLAGS-}" | |
17468 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 17469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17470 | /* end confdefs.h. */ |
17471 | ||
17472 | #include <string.h> | |
17473 | #include <stdio.h> | |
17474 | int main(void); | |
17475 | ||
17476 | int | |
17477 | main () | |
17478 | { | |
17479 | ||
b1fc1658 | 17480 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17481 | |
17482 | ; | |
17483 | return 0; | |
17484 | } | |
17485 | _ACEOF | |
7083c021 | 17486 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17487 | charybdis_cv_c_gcc_w_packed=yes |
17488 | else | |
7083c021 | 17489 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 17490 | fi |
631ef239 | 17491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17492 | CFLAGS="${oldcflags}" |
17493 | fi | |
17494 | ||
17495 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
17496 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17498 | $as_echo "ok" >&6; } | |
212380e3 AC |
17499 | else |
17500 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17502 | $as_echo "no" >&6; } | |
212380e3 AC |
17503 | fi |
17504 | else | |
7083c021 AC |
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17506 | $as_echo "no" >&6; } | |
212380e3 AC |
17507 | fi |
17508 | ||
17509 | ||
7083c021 AC |
17510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
17511 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
17512 | if test "${GCC-no}" = yes |
17513 | then | |
b6d0720c | 17514 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 17515 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17516 | else |
17517 | ||
17518 | oldcflags="${CFLAGS-}" | |
17519 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 17520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17521 | /* end confdefs.h. */ |
17522 | ||
17523 | #include <string.h> | |
17524 | #include <stdio.h> | |
17525 | int main(void); | |
17526 | ||
17527 | int | |
17528 | main () | |
17529 | { | |
17530 | ||
b1fc1658 | 17531 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17532 | |
17533 | ; | |
17534 | return 0; | |
17535 | } | |
17536 | _ACEOF | |
7083c021 | 17537 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17538 | charybdis_cv_c_gcc_w_nested_externs=yes |
17539 | else | |
7083c021 | 17540 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 17541 | fi |
631ef239 | 17542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17543 | CFLAGS="${oldcflags}" |
17544 | fi | |
17545 | ||
17546 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
17547 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
17548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17549 | $as_echo "ok" >&6; } | |
212380e3 AC |
17550 | else |
17551 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
17552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17553 | $as_echo "no" >&6; } | |
212380e3 AC |
17554 | fi |
17555 | else | |
7083c021 AC |
17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17557 | $as_echo "no" >&6; } | |
212380e3 AC |
17558 | fi |
17559 | ||
17560 | ||
7083c021 AC |
17561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
17562 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
17563 | if test "${GCC-no}" = yes |
17564 | then | |
b6d0720c | 17565 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 17566 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17567 | else |
17568 | ||
17569 | oldcflags="${CFLAGS-}" | |
17570 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 17571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17572 | /* end confdefs.h. */ |
17573 | ||
17574 | #include <string.h> | |
17575 | #include <stdio.h> | |
17576 | int main(void); | |
17577 | ||
17578 | int | |
17579 | main () | |
17580 | { | |
17581 | ||
b1fc1658 | 17582 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17583 | |
17584 | ; | |
17585 | return 0; | |
17586 | } | |
17587 | _ACEOF | |
7083c021 | 17588 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17589 | charybdis_cv_c_gcc_w_unused=yes |
17590 | else | |
7083c021 | 17591 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 17592 | fi |
631ef239 | 17593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17594 | CFLAGS="${oldcflags}" |
17595 | fi | |
17596 | ||
17597 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
17598 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
17599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17600 | $as_echo "ok" >&6; } | |
212380e3 AC |
17601 | else |
17602 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17604 | $as_echo "no" >&6; } | |
212380e3 AC |
17605 | fi |
17606 | else | |
7083c021 AC |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17608 | $as_echo "no" >&6; } | |
212380e3 AC |
17609 | fi |
17610 | ||
17611 | ||
7083c021 AC |
17612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
17613 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
17614 | if test "${GCC-no}" = yes |
17615 | then | |
b6d0720c | 17616 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 17617 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17618 | else |
17619 | ||
17620 | oldcflags="${CFLAGS-}" | |
17621 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 17622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17623 | /* end confdefs.h. */ |
17624 | ||
17625 | #include <string.h> | |
17626 | #include <stdio.h> | |
17627 | int main(void); | |
17628 | ||
17629 | int | |
17630 | main () | |
17631 | { | |
17632 | ||
b1fc1658 | 17633 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17634 | |
17635 | ; | |
17636 | return 0; | |
17637 | } | |
17638 | _ACEOF | |
7083c021 | 17639 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17640 | charybdis_cv_c_gcc_w_redundant_decls=yes |
17641 | else | |
7083c021 | 17642 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 17643 | fi |
631ef239 | 17644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17645 | CFLAGS="${oldcflags}" |
17646 | fi | |
17647 | ||
17648 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
17649 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
17650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17651 | $as_echo "ok" >&6; } | |
212380e3 AC |
17652 | else |
17653 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
17654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17655 | $as_echo "no" >&6; } | |
212380e3 AC |
17656 | fi |
17657 | else | |
7083c021 AC |
17658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17659 | $as_echo "no" >&6; } | |
212380e3 AC |
17660 | fi |
17661 | ||
17662 | ||
7083c021 AC |
17663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
17664 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
17665 | if test "${GCC-no}" = yes |
17666 | then | |
b6d0720c | 17667 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 17668 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17669 | else |
17670 | ||
17671 | oldcflags="${CFLAGS-}" | |
17672 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 17673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17674 | /* end confdefs.h. */ |
17675 | ||
17676 | #include <string.h> | |
17677 | #include <stdio.h> | |
17678 | int main(void); | |
17679 | ||
17680 | int | |
17681 | main () | |
17682 | { | |
17683 | ||
b1fc1658 | 17684 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17685 | |
17686 | ; | |
17687 | return 0; | |
17688 | } | |
17689 | _ACEOF | |
7083c021 | 17690 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17691 | charybdis_cv_c_gcc_w_float_equal=yes |
17692 | else | |
7083c021 | 17693 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 17694 | fi |
631ef239 | 17695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17696 | CFLAGS="${oldcflags}" |
17697 | fi | |
17698 | ||
17699 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
17700 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17702 | $as_echo "ok" >&6; } | |
212380e3 AC |
17703 | else |
17704 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
17705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17706 | $as_echo "no" >&6; } | |
212380e3 AC |
17707 | fi |
17708 | else | |
7083c021 AC |
17709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17710 | $as_echo "no" >&6; } | |
212380e3 AC |
17711 | fi |
17712 | ||
17713 | ||
7083c021 AC |
17714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
17715 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
17716 | if test "${GCC-no}" = yes |
17717 | then | |
b6d0720c | 17718 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 17719 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17720 | else |
17721 | ||
17722 | oldcflags="${CFLAGS-}" | |
4a584d41 | 17723 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 17724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17725 | /* end confdefs.h. */ |
17726 | ||
17727 | #include <string.h> | |
17728 | #include <stdio.h> | |
17729 | int main(void); | |
17730 | ||
17731 | int | |
17732 | main () | |
17733 | { | |
7083c021 AC |
17734 | |
17735 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17736 | ||
212380e3 AC |
17737 | ; |
17738 | return 0; | |
17739 | } | |
17740 | _ACEOF | |
7083c021 AC |
17741 | if ac_fn_c_try_compile "$LINENO"; then : |
17742 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 17743 | else |
7083c021 AC |
17744 | charybdis_cv_c_gcc_w_format=no |
17745 | fi | |
17746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17747 | CFLAGS="${oldcflags}" | |
17748 | fi | |
17749 | ||
17750 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
17751 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
17752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17753 | $as_echo "ok" >&6; } | |
17754 | else | |
17755 | charybdis_cv_c_gcc_w_format='' | |
17756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17757 | $as_echo "no" >&6; } | |
17758 | fi | |
17759 | else | |
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17761 | $as_echo "no" >&6; } | |
17762 | fi | |
17763 | ||
17764 | ||
17765 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 17766 | |
212380e3 | 17767 | fi |
631ef239 | 17768 | |
7083c021 | 17769 | |
d2c5159a JT |
17770 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
17771 | ||
212380e3 AC |
17772 | |
17773 | ||
17774 | ||
17775 | ||
17776 | ||
17777 | ||
17778 | ||
17779 | ||
17780 | ||
17781 | ||
17782 | ||
17783 | ||
17784 | ||
17785 | if test "$prefix" = "NONE"; then | |
17786 | ||
17787 | cat >>confdefs.h <<_ACEOF | |
17788 | #define IRCD_PREFIX "$ac_default_prefix" | |
17789 | _ACEOF | |
17790 | ||
17791 | ||
17792 | else | |
17793 | ||
17794 | ||
17795 | prefix=`echo $prefix | sed 's/\/$//'` | |
17796 | ||
17797 | cat >>confdefs.h <<_ACEOF | |
17798 | #define IRCD_PREFIX "$prefix" | |
17799 | _ACEOF | |
17800 | ||
17801 | ||
17802 | fi | |
17803 | ||
0d73e7db | 17804 | ac_config_files="$ac_config_files Makefile authd/Makefile bandb/Makefile ssld/Makefile extensions/Makefile ircd/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" |
9f9b7042 | 17805 | |
2eff3833 | 17806 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
17807 | |
17808 | ||
17809 | cat >confcache <<\_ACEOF | |
17810 | # This file is a shell script that caches the results of configure | |
17811 | # tests run on this system so they can be shared between configure | |
17812 | # scripts and configure runs, see configure's option --config-cache. | |
17813 | # It is not useful on other systems. If it contains results you don't | |
17814 | # want to keep, you may remove or edit it. | |
17815 | # | |
17816 | # config.status only pays attention to the cache file if you give it | |
17817 | # the --recheck option to rerun configure. | |
17818 | # | |
17819 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17820 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17821 | # following values. | |
17822 | ||
17823 | _ACEOF | |
17824 | ||
17825 | # The following way of writing the cache mishandles newlines in values, | |
17826 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 17827 | # So, we kill variables containing newlines. |
212380e3 AC |
17828 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17829 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
17830 | ( |
17831 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17832 | eval ac_val=\$$ac_var | |
17833 | case $ac_val in #( | |
17834 | *${as_nl}*) | |
17835 | case $ac_var in #( | |
7083c021 AC |
17836 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17837 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
17838 | esac |
17839 | case $ac_var in #( | |
17840 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
17841 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17842 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
17843 | esac ;; |
17844 | esac | |
17845 | done | |
17846 | ||
212380e3 | 17847 | (set) 2>&1 | |
631ef239 AC |
17848 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17849 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
17850 | # `set' does not quote correctly, so add quotes: double-quote |
17851 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
17852 | sed -n \ |
17853 | "s/'/'\\\\''/g; | |
17854 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 17855 | ;; #( |
212380e3 AC |
17856 | *) |
17857 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 17858 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 17859 | ;; |
631ef239 AC |
17860 | esac | |
17861 | sort | |
17862 | ) | | |
212380e3 | 17863 | sed ' |
631ef239 | 17864 | /^ac_cv_env_/b end |
212380e3 | 17865 | t clear |
631ef239 | 17866 | :clear |
212380e3 AC |
17867 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17868 | t end | |
631ef239 AC |
17869 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17870 | :end' >>confcache | |
17871 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17872 | if test -w "$cache_file"; then | |
b6d0720c | 17873 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
17874 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17875 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
17876 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17877 | cat confcache >"$cache_file" | |
17878 | else | |
17879 | case $cache_file in #( | |
17880 | */* | ?:*) | |
17881 | mv -f confcache "$cache_file"$$ && | |
17882 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17883 | *) | |
17884 | mv -f confcache "$cache_file" ;; | |
17885 | esac | |
17886 | fi | |
17887 | fi | |
212380e3 | 17888 | else |
7083c021 AC |
17889 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17890 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
17891 | fi |
17892 | fi | |
17893 | rm -f confcache | |
17894 | ||
17895 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17896 | # Let make expand exec_prefix. | |
17897 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17898 | ||
212380e3 AC |
17899 | DEFS=-DHAVE_CONFIG_H |
17900 | ||
17901 | ac_libobjs= | |
17902 | ac_ltlibobjs= | |
b6d0720c | 17903 | U= |
212380e3 AC |
17904 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17905 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 17906 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 17907 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
17908 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17909 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
17910 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17911 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
17912 | done |
17913 | LIBOBJS=$ac_libobjs | |
17914 | ||
17915 | LTLIBOBJS=$ac_ltlibobjs | |
17916 | ||
17917 | ||
c52df125 AC |
17918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17919 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17920 | if test -n "$am_sleep_pid"; then | |
17921 | # Hide warnings about reused PIDs. | |
17922 | wait $am_sleep_pid 2>/dev/null | |
17923 | fi | |
17924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17925 | $as_echo "done" >&6; } | |
c52df125 AC |
17926 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17927 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17928 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17929 | fi | |
17930 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17931 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17932 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17933 | fi | |
eec2776c AJ |
17934 | if test -n "$EXEEXT"; then |
17935 | am__EXEEXT_TRUE= | |
17936 | am__EXEEXT_FALSE='#' | |
17937 | else | |
17938 | am__EXEEXT_TRUE='#' | |
17939 | am__EXEEXT_FALSE= | |
17940 | fi | |
17941 | ||
c52df125 AC |
17942 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
17943 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
17944 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17945 | fi | |
17946 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
17947 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
17948 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17949 | fi | |
17950 | LT_CONFIG_H=include/setup.h | |
17951 | ||
17952 | _ltdl_libobjs= | |
17953 | _ltdl_ltlibobjs= | |
17954 | if test -n "$_LT_LIBOBJS"; then | |
17955 | # Remove the extension. | |
17956 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17957 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
17958 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
17959 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
17960 | done | |
17961 | fi | |
17962 | ltdl_LIBOBJS=$_ltdl_libobjs | |
17963 | ||
17964 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
17965 | ||
17966 | ||
17967 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
17968 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
17969 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17970 | fi | |
212380e3 | 17971 | |
7083c021 AC |
17972 | |
17973 | ||
b6d0720c | 17974 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 17975 | ac_write_fail=0 |
212380e3 AC |
17976 | ac_clean_files_save=$ac_clean_files |
17977 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
17978 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17979 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17980 | as_write_fail=0 | |
17981 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
17982 | #! $SHELL |
17983 | # Generated by $as_me. | |
17984 | # Run this file to recreate the current configuration. | |
17985 | # Compiler output produced by configure, useful for debugging | |
17986 | # configure, is in config.log if it exists. | |
17987 | ||
17988 | debug=false | |
17989 | ac_cs_recheck=false | |
17990 | ac_cs_silent=false | |
212380e3 | 17991 | |
7083c021 AC |
17992 | SHELL=\${CONFIG_SHELL-$SHELL} |
17993 | export SHELL | |
17994 | _ASEOF | |
17995 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17996 | ## -------------------- ## | |
17997 | ## M4sh Initialization. ## | |
17998 | ## -------------------- ## | |
212380e3 | 17999 | |
631ef239 AC |
18000 | # Be more Bourne compatible |
18001 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 18002 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
18003 | emulate sh |
18004 | NULLCMD=: | |
7083c021 | 18005 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
18006 | # is contrary to our usage. Disable this feature. |
18007 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 18008 | setopt NO_GLOB_SUBST |
212380e3 | 18009 | else |
7083c021 AC |
18010 | case `(set -o) 2>/dev/null` in #( |
18011 | *posix*) : | |
18012 | set -o posix ;; #( | |
18013 | *) : | |
18014 | ;; | |
631ef239 | 18015 | esac |
212380e3 AC |
18016 | fi |
18017 | ||
18018 | ||
7083c021 AC |
18019 | as_nl=' |
18020 | ' | |
18021 | export as_nl | |
18022 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18023 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18024 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18025 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18026 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18027 | # but without wasting forks for bash or zsh. | |
18028 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18029 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18030 | as_echo='print -r --' | |
18031 | as_echo_n='print -rn --' | |
18032 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18033 | as_echo='printf %s\n' | |
18034 | as_echo_n='printf %s' | |
18035 | else | |
18036 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18037 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18038 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 18039 | else |
7083c021 AC |
18040 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18041 | as_echo_n_body='eval | |
18042 | arg=$1; | |
18043 | case $arg in #( | |
18044 | *"$as_nl"*) | |
18045 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18046 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18047 | esac; | |
18048 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18049 | ' | |
18050 | export as_echo_n_body | |
18051 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 18052 | fi |
7083c021 AC |
18053 | export as_echo_body |
18054 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
18055 | fi |
18056 | ||
7083c021 AC |
18057 | # The user is always right. |
18058 | if test "${PATH_SEPARATOR+set}" != set; then | |
18059 | PATH_SEPARATOR=: | |
18060 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18061 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18062 | PATH_SEPARATOR=';' | |
18063 | } | |
631ef239 AC |
18064 | fi |
18065 | ||
18066 | ||
18067 | # IFS | |
18068 | # We need space, tab and new line, in precisely that order. Quoting is | |
18069 | # there to prevent editors from complaining about space-tab. | |
18070 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18071 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
18072 | IFS=" "" $as_nl" |
18073 | ||
18074 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 18075 | as_myself= |
7083c021 | 18076 | case $0 in #(( |
631ef239 AC |
18077 | *[\\/]* ) as_myself=$0 ;; |
18078 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18079 | for as_dir in $PATH | |
18080 | do | |
18081 | IFS=$as_save_IFS | |
18082 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
18083 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
18084 | done | |
631ef239 AC |
18085 | IFS=$as_save_IFS |
18086 | ||
18087 | ;; | |
18088 | esac | |
18089 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18090 | # in which case we are not to be found in the path. | |
18091 | if test "x$as_myself" = x; then | |
18092 | as_myself=$0 | |
18093 | fi | |
18094 | if test ! -f "$as_myself"; then | |
7083c021 AC |
18095 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
18096 | exit 1 | |
631ef239 AC |
18097 | fi |
18098 | ||
7083c021 AC |
18099 | # Unset variables that we do not need and which cause bugs (e.g. in |
18100 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18101 | # suppresses any "Segmentation fault" message there. '((' could | |
18102 | # trigger a bug in pdksh 5.2.14. | |
18103 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18104 | do eval test x\${$as_var+set} = xset \ | |
18105 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 18106 | done |
212380e3 AC |
18107 | PS1='$ ' |
18108 | PS2='> ' | |
18109 | PS4='+ ' | |
18110 | ||
7083c021 AC |
18111 | # NLS nuisances. |
18112 | LC_ALL=C | |
18113 | export LC_ALL | |
18114 | LANGUAGE=C | |
18115 | export LANGUAGE | |
18116 | ||
18117 | # CDPATH. | |
18118 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18119 | ||
18120 | ||
b6d0720c AC |
18121 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18122 | # ---------------------------------------- | |
7083c021 AC |
18123 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18124 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 18125 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
18126 | as_fn_error () |
18127 | { | |
b6d0720c AC |
18128 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18129 | if test "$4"; then | |
18130 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18131 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 18132 | fi |
b6d0720c | 18133 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
18134 | as_fn_exit $as_status |
18135 | } # as_fn_error | |
18136 | ||
18137 | ||
18138 | # as_fn_set_status STATUS | |
18139 | # ----------------------- | |
18140 | # Set $? to STATUS, without forking. | |
18141 | as_fn_set_status () | |
18142 | { | |
18143 | return $1 | |
18144 | } # as_fn_set_status | |
18145 | ||
18146 | # as_fn_exit STATUS | |
18147 | # ----------------- | |
18148 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18149 | as_fn_exit () | |
18150 | { | |
18151 | set +e | |
18152 | as_fn_set_status $1 | |
18153 | exit $1 | |
18154 | } # as_fn_exit | |
18155 | ||
18156 | # as_fn_unset VAR | |
18157 | # --------------- | |
18158 | # Portably unset VAR. | |
18159 | as_fn_unset () | |
18160 | { | |
18161 | { eval $1=; unset $1;} | |
18162 | } | |
18163 | as_unset=as_fn_unset | |
18164 | # as_fn_append VAR VALUE | |
18165 | # ---------------------- | |
18166 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18167 | # advantage of any shell optimizations that allow amortized linear growth over | |
18168 | # repeated appends, instead of the typical quadratic growth present in naive | |
18169 | # implementations. | |
18170 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18171 | eval 'as_fn_append () | |
18172 | { | |
18173 | eval $1+=\$2 | |
18174 | }' | |
18175 | else | |
18176 | as_fn_append () | |
18177 | { | |
18178 | eval $1=\$$1\$2 | |
18179 | } | |
18180 | fi # as_fn_append | |
18181 | ||
18182 | # as_fn_arith ARG... | |
18183 | # ------------------ | |
18184 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18185 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18186 | # must be portable across $(()) and expr. | |
18187 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18188 | eval 'as_fn_arith () | |
18189 | { | |
18190 | as_val=$(( $* )) | |
18191 | }' | |
18192 | else | |
18193 | as_fn_arith () | |
18194 | { | |
18195 | as_val=`expr "$@" || test $? -eq 1` | |
18196 | } | |
18197 | fi # as_fn_arith | |
18198 | ||
212380e3 | 18199 | |
631ef239 AC |
18200 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18201 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
18202 | as_expr=expr |
18203 | else | |
18204 | as_expr=false | |
18205 | fi | |
18206 | ||
631ef239 | 18207 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
18208 | as_basename=basename |
18209 | else | |
18210 | as_basename=false | |
18211 | fi | |
18212 | ||
7083c021 AC |
18213 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18214 | as_dirname=dirname | |
18215 | else | |
18216 | as_dirname=false | |
18217 | fi | |
212380e3 | 18218 | |
631ef239 | 18219 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
18220 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18221 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 18222 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 18223 | $as_echo X/"$0" | |
631ef239 AC |
18224 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18225 | s//\1/ | |
18226 | q | |
18227 | } | |
18228 | /^X\/\(\/\/\)$/{ | |
18229 | s//\1/ | |
18230 | q | |
18231 | } | |
18232 | /^X\/\(\/\).*/{ | |
18233 | s//\1/ | |
18234 | q | |
18235 | } | |
18236 | s/.*/./; q'` | |
212380e3 | 18237 | |
7083c021 AC |
18238 | # Avoid depending upon Character Ranges. |
18239 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18240 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18241 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18242 | as_cr_digits='0123456789' | |
18243 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
18244 | |
18245 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 18246 | case `echo -n x` in #((((( |
631ef239 | 18247 | -n*) |
7083c021 | 18248 | case `echo 'xy\c'` in |
631ef239 | 18249 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
18250 | xy) ECHO_C='\c';; |
18251 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18252 | ECHO_T=' ';; | |
631ef239 AC |
18253 | esac;; |
18254 | *) | |
18255 | ECHO_N='-n';; | |
212380e3 AC |
18256 | esac |
18257 | ||
212380e3 | 18258 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
18259 | if test -d conf$$.dir; then |
18260 | rm -f conf$$.dir/conf$$.file | |
18261 | else | |
18262 | rm -f conf$$.dir | |
7083c021 AC |
18263 | mkdir conf$$.dir 2>/dev/null |
18264 | fi | |
18265 | if (echo >conf$$.file) 2>/dev/null; then | |
18266 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18267 | as_ln_s='ln -s' | |
18268 | # ... but there are two gotchas: | |
18269 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18270 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 18271 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 18272 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 18273 | as_ln_s='cp -pR' |
7083c021 AC |
18274 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18275 | as_ln_s=ln | |
18276 | else | |
2eff3833 | 18277 | as_ln_s='cp -pR' |
7083c021 | 18278 | fi |
212380e3 | 18279 | else |
2eff3833 | 18280 | as_ln_s='cp -pR' |
212380e3 | 18281 | fi |
631ef239 AC |
18282 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18283 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 18284 | |
7083c021 AC |
18285 | |
18286 | # as_fn_mkdir_p | |
18287 | # ------------- | |
18288 | # Create "$as_dir" as a directory, including parents if necessary. | |
18289 | as_fn_mkdir_p () | |
18290 | { | |
18291 | ||
18292 | case $as_dir in #( | |
18293 | -*) as_dir=./$as_dir;; | |
18294 | esac | |
18295 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18296 | as_dirs= | |
18297 | while :; do | |
18298 | case $as_dir in #( | |
18299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18300 | *) as_qdir=$as_dir;; | |
18301 | esac | |
18302 | as_dirs="'$as_qdir' $as_dirs" | |
18303 | as_dir=`$as_dirname -- "$as_dir" || | |
18304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18305 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18306 | X"$as_dir" : 'X\(//\)$' \| \ | |
18307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18308 | $as_echo X"$as_dir" | | |
18309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18310 | s//\1/ | |
18311 | q | |
18312 | } | |
18313 | /^X\(\/\/\)[^/].*/{ | |
18314 | s//\1/ | |
18315 | q | |
18316 | } | |
18317 | /^X\(\/\/\)$/{ | |
18318 | s//\1/ | |
18319 | q | |
18320 | } | |
18321 | /^X\(\/\).*/{ | |
18322 | s//\1/ | |
18323 | q | |
18324 | } | |
18325 | s/.*/./; q'` | |
18326 | test -d "$as_dir" && break | |
18327 | done | |
18328 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 18329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
18330 | |
18331 | ||
18332 | } # as_fn_mkdir_p | |
212380e3 | 18333 | if mkdir -p . 2>/dev/null; then |
7083c021 | 18334 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
18335 | else |
18336 | test -d ./-p && rmdir ./-p | |
18337 | as_mkdir_p=false | |
18338 | fi | |
18339 | ||
2eff3833 JT |
18340 | |
18341 | # as_fn_executable_p FILE | |
18342 | # ----------------------- | |
18343 | # Test if FILE is an executable regular file. | |
18344 | as_fn_executable_p () | |
18345 | { | |
18346 | test -f "$1" && test -x "$1" | |
18347 | } # as_fn_executable_p | |
18348 | as_test_x='test -x' | |
18349 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
18350 | |
18351 | # Sed expression to map a string onto a valid CPP name. | |
18352 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18353 | ||
18354 | # Sed expression to map a string onto a valid variable name. | |
18355 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18356 | ||
18357 | ||
212380e3 | 18358 | exec 6>&1 |
7083c021 AC |
18359 | ## ----------------------------------- ## |
18360 | ## Main body of $CONFIG_STATUS script. ## | |
18361 | ## ----------------------------------- ## | |
18362 | _ASEOF | |
18363 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 18364 | |
7083c021 AC |
18365 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18366 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 18367 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
18368 | # values after options handling. |
18369 | ac_log=" | |
c52df125 | 18370 | This file was extended by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 18371 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
18372 | |
18373 | CONFIG_FILES = $CONFIG_FILES | |
18374 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18375 | CONFIG_LINKS = $CONFIG_LINKS | |
18376 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18377 | $ $0 $@ | |
18378 | ||
631ef239 AC |
18379 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18380 | " | |
18381 | ||
212380e3 AC |
18382 | _ACEOF |
18383 | ||
7083c021 AC |
18384 | case $ac_config_files in *" |
18385 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18386 | esac | |
18387 | ||
18388 | case $ac_config_headers in *" | |
18389 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18390 | esac | |
18391 | ||
18392 | ||
18393 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 18394 | # Files that config.status was made for. |
631ef239 AC |
18395 | config_files="$ac_config_files" |
18396 | config_headers="$ac_config_headers" | |
9f9b7042 | 18397 | config_commands="$ac_config_commands" |
212380e3 | 18398 | |
631ef239 | 18399 | _ACEOF |
212380e3 | 18400 | |
7083c021 | 18401 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 18402 | ac_cs_usage="\ |
7083c021 AC |
18403 | \`$as_me' instantiates files and other configuration actions |
18404 | from templates according to the current configuration. Unless the files | |
18405 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 18406 | |
7083c021 | 18407 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
18408 | |
18409 | -h, --help print this help, then exit | |
631ef239 | 18410 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 18411 | --config print configuration, then exit |
7083c021 AC |
18412 | -q, --quiet, --silent |
18413 | do not print progress messages | |
212380e3 AC |
18414 | -d, --debug don't remove temporary files |
18415 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
18416 | --file=FILE[:TEMPLATE] |
18417 | instantiate the configuration file FILE | |
18418 | --header=FILE[:TEMPLATE] | |
18419 | instantiate the configuration header FILE | |
212380e3 AC |
18420 | |
18421 | Configuration files: | |
18422 | $config_files | |
18423 | ||
18424 | Configuration headers: | |
18425 | $config_headers | |
18426 | ||
9f9b7042 NPB |
18427 | Configuration commands: |
18428 | $config_commands | |
18429 | ||
7083c021 | 18430 | Report bugs to the package provider." |
212380e3 | 18431 | |
631ef239 | 18432 | _ACEOF |
7083c021 | 18433 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 18434 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 18435 | ac_cs_version="\\ |
c52df125 | 18436 | charybdis config.status 3.6.0-dev |
2eff3833 | 18437 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 18438 | with options \\"\$ac_cs_config\\" |
212380e3 | 18439 | |
2eff3833 | 18440 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
18441 | This config.status script is free software; the Free Software Foundation |
18442 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
18443 | |
18444 | ac_pwd='$ac_pwd' | |
18445 | srcdir='$srcdir' | |
18446 | INSTALL='$INSTALL' | |
c52df125 AC |
18447 | MKDIR_P='$MKDIR_P' |
18448 | AWK='$AWK' | |
7083c021 | 18449 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
18450 | _ACEOF |
18451 | ||
7083c021 AC |
18452 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18453 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
18454 | ac_need_defaults=: |
18455 | while test $# != 0 | |
18456 | do | |
18457 | case $1 in | |
b6d0720c | 18458 | --*=?*) |
631ef239 AC |
18459 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18460 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
18461 | ac_shift=: |
18462 | ;; | |
b6d0720c AC |
18463 | --*=) |
18464 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18465 | ac_optarg= | |
18466 | ac_shift=: | |
18467 | ;; | |
631ef239 | 18468 | *) |
212380e3 AC |
18469 | ac_option=$1 |
18470 | ac_optarg=$2 | |
18471 | ac_shift=shift | |
18472 | ;; | |
212380e3 AC |
18473 | esac |
18474 | ||
18475 | case $ac_option in | |
18476 | # Handling of the options. | |
212380e3 AC |
18477 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18478 | ac_cs_recheck=: ;; | |
631ef239 | 18479 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 18480 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
18481 | --config | --confi | --conf | --con | --co | --c ) |
18482 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 18483 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
18484 | debug=: ;; |
18485 | --file | --fil | --fi | --f ) | |
18486 | $ac_shift | |
7083c021 AC |
18487 | case $ac_optarg in |
18488 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 18489 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
18490 | esac |
18491 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
18492 | ac_need_defaults=false;; |
18493 | --header | --heade | --head | --hea ) | |
18494 | $ac_shift | |
7083c021 AC |
18495 | case $ac_optarg in |
18496 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18497 | esac | |
18498 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 18499 | ac_need_defaults=false;; |
631ef239 AC |
18500 | --he | --h) |
18501 | # Conflict between --help and --header | |
b6d0720c | 18502 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 18503 | Try \`$0 --help' for more information.";; |
631ef239 | 18504 | --help | --hel | -h ) |
7083c021 | 18505 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
18506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18507 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18508 | ac_cs_silent=: ;; | |
18509 | ||
18510 | # This is an error. | |
b6d0720c | 18511 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 18512 | Try \`$0 --help' for more information." ;; |
212380e3 | 18513 | |
7083c021 | 18514 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 18515 | ac_need_defaults=false ;; |
212380e3 AC |
18516 | |
18517 | esac | |
18518 | shift | |
18519 | done | |
18520 | ||
18521 | ac_configure_extra_args= | |
18522 | ||
18523 | if $ac_cs_silent; then | |
18524 | exec 6>/dev/null | |
18525 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18526 | fi | |
18527 | ||
18528 | _ACEOF | |
7083c021 | 18529 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 18530 | if \$ac_cs_recheck; then |
2eff3833 | 18531 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
18532 | shift |
18533 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18534 | CONFIG_SHELL='$SHELL' | |
631ef239 | 18535 | export CONFIG_SHELL |
7083c021 | 18536 | exec "\$@" |
212380e3 AC |
18537 | fi |
18538 | ||
18539 | _ACEOF | |
7083c021 | 18540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18541 | exec 5>>config.log |
18542 | { | |
18543 | echo | |
18544 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18545 | ## Running $as_me. ## | |
18546 | _ASBOX | |
7083c021 | 18547 | $as_echo "$ac_log" |
631ef239 | 18548 | } >&5 |
212380e3 | 18549 | |
631ef239 | 18550 | _ACEOF |
7083c021 | 18551 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c52df125 AC |
18552 | # |
18553 | # INIT-COMMANDS | |
18554 | # | |
18555 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18556 | ||
18557 | ||
18558 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18559 | # if CDPATH is set. | |
18560 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18561 | ||
18562 | sed_quote_subst='$sed_quote_subst' | |
18563 | double_quote_subst='$double_quote_subst' | |
18564 | delay_variable_subst='$delay_variable_subst' | |
18565 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18566 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18567 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18568 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18569 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18570 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18571 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18572 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18573 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18574 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18575 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18576 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18577 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18578 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18579 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18580 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18581 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18582 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18583 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18584 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18585 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18586 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18587 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18588 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18589 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18590 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18591 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18592 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18593 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18594 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18595 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18596 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18597 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18598 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18599 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18600 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18601 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
18602 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
18603 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
18604 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
18605 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18606 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18607 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
18608 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18609 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18610 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18611 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18612 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18613 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18614 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18615 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18616 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18617 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18618 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18619 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18620 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18621 | 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"`' | |
18622 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18623 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
18624 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18625 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18626 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18627 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18628 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18629 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18630 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18631 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18632 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
18633 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18634 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18635 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18636 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18637 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18638 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18639 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18640 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18641 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18642 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18643 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18644 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18645 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18646 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18647 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18648 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18649 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18650 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18651 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18652 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18653 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18654 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18655 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18656 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18657 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18658 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18659 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18660 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18661 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18662 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18663 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18664 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18665 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18666 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18667 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18668 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18669 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
18670 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18671 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18672 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18673 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18674 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18675 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18676 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18677 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18678 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18679 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18680 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18681 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18682 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18683 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18684 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18685 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18686 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18687 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18688 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18689 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18690 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18691 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18692 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18693 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18694 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18695 | ||
18696 | LTCC='$LTCC' | |
18697 | LTCFLAGS='$LTCFLAGS' | |
18698 | compiler='$compiler_DEFAULT' | |
18699 | ||
18700 | # A function that is used when there is no print builtin or printf. | |
18701 | func_fallback_echo () | |
18702 | { | |
18703 | eval 'cat <<_LTECHO_EOF | |
18704 | \$1 | |
18705 | _LTECHO_EOF' | |
18706 | } | |
18707 | ||
18708 | # Quote evaled strings. | |
18709 | for var in SHELL \ | |
18710 | ECHO \ | |
18711 | PATH_SEPARATOR \ | |
18712 | SED \ | |
18713 | GREP \ | |
18714 | EGREP \ | |
18715 | FGREP \ | |
18716 | LD \ | |
18717 | NM \ | |
18718 | LN_S \ | |
18719 | lt_SP2NL \ | |
18720 | lt_NL2SP \ | |
18721 | reload_flag \ | |
18722 | OBJDUMP \ | |
18723 | deplibs_check_method \ | |
18724 | file_magic_cmd \ | |
18725 | file_magic_glob \ | |
18726 | want_nocaseglob \ | |
18727 | DLLTOOL \ | |
18728 | sharedlib_from_linklib_cmd \ | |
18729 | AR \ | |
18730 | AR_FLAGS \ | |
18731 | archiver_list_spec \ | |
18732 | STRIP \ | |
18733 | RANLIB \ | |
18734 | CC \ | |
18735 | CFLAGS \ | |
18736 | compiler \ | |
18737 | lt_cv_sys_global_symbol_pipe \ | |
18738 | lt_cv_sys_global_symbol_to_cdecl \ | |
18739 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18740 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18741 | nm_file_list_spec \ | |
18742 | lt_prog_compiler_no_builtin_flag \ | |
18743 | lt_prog_compiler_pic \ | |
18744 | lt_prog_compiler_wl \ | |
18745 | lt_prog_compiler_static \ | |
18746 | lt_cv_prog_compiler_c_o \ | |
18747 | need_locks \ | |
18748 | MANIFEST_TOOL \ | |
18749 | DSYMUTIL \ | |
18750 | NMEDIT \ | |
18751 | LIPO \ | |
18752 | OTOOL \ | |
18753 | OTOOL64 \ | |
18754 | shrext_cmds \ | |
18755 | export_dynamic_flag_spec \ | |
18756 | whole_archive_flag_spec \ | |
18757 | compiler_needs_object \ | |
18758 | with_gnu_ld \ | |
18759 | allow_undefined_flag \ | |
18760 | no_undefined_flag \ | |
18761 | hardcode_libdir_flag_spec \ | |
18762 | hardcode_libdir_separator \ | |
18763 | exclude_expsyms \ | |
18764 | include_expsyms \ | |
18765 | file_list_spec \ | |
18766 | variables_saved_for_relink \ | |
18767 | libname_spec \ | |
18768 | library_names_spec \ | |
18769 | soname_spec \ | |
18770 | install_override_mode \ | |
18771 | finish_eval \ | |
18772 | old_striplib \ | |
18773 | striplib; do | |
18774 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18775 | *[\\\\\\\`\\"\\\$]*) | |
18776 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18777 | ;; | |
18778 | *) | |
18779 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18780 | ;; | |
18781 | esac | |
18782 | done | |
18783 | ||
18784 | # Double-quote double-evaled strings. | |
18785 | for var in reload_cmds \ | |
18786 | old_postinstall_cmds \ | |
18787 | old_postuninstall_cmds \ | |
18788 | old_archive_cmds \ | |
18789 | extract_expsyms_cmds \ | |
18790 | old_archive_from_new_cmds \ | |
18791 | old_archive_from_expsyms_cmds \ | |
18792 | archive_cmds \ | |
18793 | archive_expsym_cmds \ | |
18794 | module_cmds \ | |
18795 | module_expsym_cmds \ | |
18796 | export_symbols_cmds \ | |
18797 | prelink_cmds \ | |
18798 | postlink_cmds \ | |
18799 | postinstall_cmds \ | |
18800 | postuninstall_cmds \ | |
18801 | finish_cmds \ | |
18802 | sys_lib_search_path_spec \ | |
18803 | sys_lib_dlsearch_path_spec; do | |
18804 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18805 | *[\\\\\\\`\\"\\\$]*) | |
18806 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18807 | ;; | |
18808 | *) | |
18809 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18810 | ;; | |
18811 | esac | |
18812 | done | |
18813 | ||
18814 | ac_aux_dir='$ac_aux_dir' | |
18815 | xsi_shell='$xsi_shell' | |
18816 | lt_shell_append='$lt_shell_append' | |
18817 | ||
18818 | # See if we are running on zsh, and set the options which allow our | |
18819 | # commands through without removal of \ escapes INIT. | |
18820 | if test -n "\${ZSH_VERSION+set}" ; then | |
18821 | setopt NO_GLOB_SUBST | |
18822 | fi | |
18823 | ||
18824 | ||
18825 | PACKAGE='$PACKAGE' | |
18826 | VERSION='$VERSION' | |
18827 | TIMESTAMP='$TIMESTAMP' | |
18828 | RM='$RM' | |
18829 | ofile='$ofile' | |
18830 | ||
18831 | ||
18832 | ||
18833 | ||
631ef239 | 18834 | _ACEOF |
212380e3 | 18835 | |
7083c021 | 18836 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18837 | |
18838 | # Handling of arguments. | |
212380e3 AC |
18839 | for ac_config_target in $ac_config_targets |
18840 | do | |
631ef239 AC |
18841 | case $ac_config_target in |
18842 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
c52df125 AC |
18843 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
18844 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
631ef239 | 18845 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
0d73e7db | 18846 | "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;; |
7083c021 | 18847 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 18848 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 18849 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
46fded53 | 18850 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; |
631ef239 AC |
18851 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
18852 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 18853 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
18854 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
18855 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 18856 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 18857 | |
b6d0720c | 18858 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
18859 | esac |
18860 | done | |
18861 | ||
631ef239 | 18862 | |
212380e3 AC |
18863 | # If the user did not use the arguments to specify the items to instantiate, |
18864 | # then the envvar interface is used. Set only those that are not. | |
18865 | # We use the long form for the default assignment because of an extremely | |
18866 | # bizarre bug on SunOS 4.1.3. | |
18867 | if $ac_need_defaults; then | |
18868 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18869 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 18870 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
18871 | fi |
18872 | ||
18873 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 18874 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 18875 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
18876 | # Hook for its removal unless debugging. |
18877 | # Note that there is a small window in which the directory will not be cleaned: | |
18878 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
18879 | $debug || |
18880 | { | |
b6d0720c | 18881 | tmp= ac_tmp= |
631ef239 | 18882 | trap 'exit_status=$? |
b6d0720c AC |
18883 | : "${ac_tmp:=$tmp}" |
18884 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 18885 | ' 0 |
7083c021 | 18886 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 18887 | } |
212380e3 AC |
18888 | # Create a (secure) tmp directory for tmp files. |
18889 | ||
18890 | { | |
631ef239 | 18891 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 18892 | test -d "$tmp" |
212380e3 AC |
18893 | } || |
18894 | { | |
631ef239 AC |
18895 | tmp=./conf$$-$RANDOM |
18896 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
18897 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18898 | ac_tmp=$tmp | |
212380e3 | 18899 | |
7083c021 AC |
18900 | # Set up the scripts for CONFIG_FILES section. |
18901 | # No need to generate them if there are no CONFIG_FILES. | |
18902 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
18903 | if test -n "$CONFIG_FILES"; then |
18904 | ||
631ef239 | 18905 | |
7083c021 AC |
18906 | ac_cr=`echo X | tr X '\015'` |
18907 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18908 | # But we know of no other shell where ac_cr would be empty at this | |
18909 | # point, so we can use a bashism as a fallback. | |
18910 | if test "x$ac_cr" = x; then | |
18911 | eval ac_cr=\$\'\\r\' | |
18912 | fi | |
18913 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18914 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 18915 | ac_cs_awk_cr='\\r' |
7083c021 AC |
18916 | else |
18917 | ac_cs_awk_cr=$ac_cr | |
18918 | fi | |
18919 | ||
b6d0720c | 18920 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 18921 | _ACEOF |
631ef239 AC |
18922 | |
18923 | ||
7083c021 AC |
18924 | { |
18925 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18926 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18927 | echo "_ACEOF" | |
18928 | } >conf$$subs.sh || | |
b6d0720c AC |
18929 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18930 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
18931 | ac_delim='%!_!# ' |
18932 | for ac_last_try in false false false false false :; do | |
7083c021 | 18933 | . ./conf$$subs.sh || |
b6d0720c | 18934 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
18935 | |
18936 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18937 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
18938 | break |
18939 | elif $ac_last_try; then | |
b6d0720c | 18940 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
18941 | else |
18942 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 18943 | fi |
631ef239 | 18944 | done |
7083c021 AC |
18945 | rm -f conf$$subs.sh |
18946 | ||
18947 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 18948 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
18949 | _ACEOF |
18950 | sed -n ' | |
18951 | h | |
18952 | s/^/S["/; s/!.*/"]=/ | |
18953 | p | |
18954 | g | |
18955 | s/^[^!]*!// | |
18956 | :repl | |
18957 | t repl | |
18958 | s/'"$ac_delim"'$// | |
18959 | t delim | |
18960 | :nl | |
18961 | h | |
6fb6bd15 | 18962 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18963 | t more1 |
18964 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18965 | p | |
18966 | n | |
18967 | b repl | |
18968 | :more1 | |
18969 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18970 | p | |
18971 | g | |
18972 | s/.\{148\}// | |
18973 | t nl | |
18974 | :delim | |
18975 | h | |
6fb6bd15 | 18976 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18977 | t more2 |
18978 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18979 | p | |
18980 | b | |
18981 | :more2 | |
18982 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18983 | p | |
18984 | g | |
18985 | s/.\{148\}// | |
18986 | t delim | |
18987 | ' <conf$$subs.awk | sed ' | |
18988 | /^[^""]/{ | |
18989 | N | |
18990 | s/\n// | |
18991 | } | |
18992 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18993 | rm -f conf$$subs.awk | |
18994 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18995 | _ACAWK | |
b6d0720c | 18996 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
18997 | for (key in S) S_is_set[key] = 1 |
18998 | FS = "\a" | |
212380e3 | 18999 | |
7083c021 AC |
19000 | } |
19001 | { | |
19002 | line = $ 0 | |
19003 | nfields = split(line, field, "@") | |
19004 | substed = 0 | |
19005 | len = length(field[1]) | |
19006 | for (i = 2; i < nfields; i++) { | |
19007 | key = field[i] | |
19008 | keylen = length(key) | |
19009 | if (S_is_set[key]) { | |
19010 | value = S[key] | |
19011 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19012 | len += length(value) + length(field[++i]) | |
19013 | substed = 1 | |
19014 | } else | |
19015 | len += 1 + keylen | |
19016 | } | |
631ef239 | 19017 | |
7083c021 AC |
19018 | print line |
19019 | } | |
19020 | ||
19021 | _ACAWK | |
631ef239 | 19022 | _ACEOF |
7083c021 AC |
19023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19024 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19025 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19026 | else | |
19027 | cat | |
b6d0720c AC |
19028 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19029 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 19030 | _ACEOF |
631ef239 | 19031 | |
b6d0720c AC |
19032 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19033 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
19034 | # trailing colons and then remove the whole line if VPATH becomes empty |
19035 | # (actually we leave an empty line to preserve line numbers). | |
19036 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
19037 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19038 | h | |
19039 | s/// | |
19040 | s/^/:/ | |
19041 | s/[ ]*$/:/ | |
19042 | s/:\$(srcdir):/:/g | |
19043 | s/:\${srcdir}:/:/g | |
19044 | s/:@srcdir@:/:/g | |
19045 | s/^:*// | |
631ef239 | 19046 | s/:*$// |
b6d0720c AC |
19047 | x |
19048 | s/\(=[ ]*\).*/\1/ | |
19049 | G | |
19050 | s/\n// | |
631ef239 AC |
19051 | s/^[^=]*=[ ]*$// |
19052 | }' | |
19053 | fi | |
19054 | ||
7083c021 | 19055 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19056 | fi # test -n "$CONFIG_FILES" |
19057 | ||
7083c021 AC |
19058 | # Set up the scripts for CONFIG_HEADERS section. |
19059 | # No need to generate them if there are no CONFIG_HEADERS. | |
19060 | # This happens for instance with `./config.status Makefile'. | |
19061 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 19062 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
19063 | BEGIN { |
19064 | _ACEOF | |
19065 | ||
19066 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19067 | # here-document in config.status, that substitutes the proper values into | |
19068 | # config.h.in to produce config.h. | |
19069 | ||
19070 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19071 | # handling of long lines. | |
19072 | ac_delim='%!_!# ' | |
19073 | for ac_last_try in false false :; do | |
b6d0720c AC |
19074 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
19075 | if test -z "$ac_tt"; then | |
7083c021 AC |
19076 | break |
19077 | elif $ac_last_try; then | |
b6d0720c | 19078 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
19079 | else |
19080 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19081 | fi | |
19082 | done | |
19083 | ||
19084 | # For the awk script, D is an array of macro values keyed by name, | |
19085 | # likewise P contains macro parameters if any. Preserve backslash | |
19086 | # newline sequences. | |
19087 | ||
19088 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19089 | sed -n ' | |
19090 | s/.\{148\}/&'"$ac_delim"'/g | |
19091 | t rset | |
19092 | :rset | |
19093 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19094 | t def | |
19095 | d | |
19096 | :def | |
19097 | s/\\$// | |
19098 | t bsnl | |
19099 | s/["\\]/\\&/g | |
19100 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19101 | D["\1"]=" \3"/p | |
19102 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19103 | d | |
19104 | :bsnl | |
19105 | s/["\\]/\\&/g | |
19106 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19107 | D["\1"]=" \3\\\\\\n"\\/p | |
19108 | t cont | |
19109 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19110 | t cont | |
19111 | d | |
19112 | :cont | |
19113 | n | |
19114 | s/.\{148\}/&'"$ac_delim"'/g | |
19115 | t clear | |
19116 | :clear | |
19117 | s/\\$// | |
19118 | t bsnlc | |
19119 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19120 | d | |
19121 | :bsnlc | |
19122 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19123 | b cont | |
19124 | ' <confdefs.h | sed ' | |
19125 | s/'"$ac_delim"'/"\\\ | |
19126 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19127 | ||
19128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19129 | for (key in D) D_is_set[key] = 1 | |
19130 | FS = "\a" | |
19131 | } | |
19132 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19133 | line = \$ 0 | |
19134 | split(line, arg, " ") | |
19135 | if (arg[1] == "#") { | |
19136 | defundef = arg[2] | |
19137 | mac1 = arg[3] | |
19138 | } else { | |
19139 | defundef = substr(arg[1], 2) | |
19140 | mac1 = arg[2] | |
19141 | } | |
19142 | split(mac1, mac2, "(") #) | |
19143 | macro = mac2[1] | |
19144 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19145 | if (D_is_set[macro]) { | |
19146 | # Preserve the white space surrounding the "#". | |
19147 | print prefix "define", macro P[macro] D[macro] | |
19148 | next | |
19149 | } else { | |
19150 | # Replace #undef with comments. This is necessary, for example, | |
19151 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19152 | # on some systems where configure will not decide to define it. | |
19153 | if (defundef == "undef") { | |
19154 | print "/*", prefix defundef, macro, "*/" | |
19155 | next | |
19156 | } | |
19157 | } | |
19158 | } | |
19159 | { print } | |
19160 | _ACAWK | |
19161 | _ACEOF | |
19162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 19163 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
19164 | fi # test -n "$CONFIG_HEADERS" |
19165 | ||
631ef239 | 19166 | |
9f9b7042 | 19167 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
19168 | shift |
19169 | for ac_tag | |
631ef239 AC |
19170 | do |
19171 | case $ac_tag in | |
19172 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19173 | esac | |
19174 | case $ac_mode$ac_tag in | |
19175 | :[FHL]*:*);; | |
b6d0720c | 19176 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
19177 | :[FH]-) ac_tag=-:-;; |
19178 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 19179 | esac |
631ef239 AC |
19180 | ac_save_IFS=$IFS |
19181 | IFS=: | |
19182 | set x $ac_tag | |
19183 | IFS=$ac_save_IFS | |
19184 | shift | |
19185 | ac_file=$1 | |
19186 | shift | |
212380e3 | 19187 | |
631ef239 AC |
19188 | case $ac_mode in |
19189 | :L) ac_source=$1;; | |
19190 | :[FH]) | |
19191 | ac_file_inputs= | |
19192 | for ac_f | |
19193 | do | |
19194 | case $ac_f in | |
b6d0720c | 19195 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
19196 | *) # Look for the file first in the build tree, then in the source tree |
19197 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19198 | # because $ac_f cannot contain `:'. | |
19199 | test -f "$ac_f" || | |
19200 | case $ac_f in | |
19201 | [\\/$]*) false;; | |
19202 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19203 | esac || | |
b6d0720c | 19204 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 19205 | esac |
7083c021 AC |
19206 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19207 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
19208 | done |
19209 | ||
19210 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19211 | # use $as_me), people would be surprised to read: | |
19212 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
19213 | configure_input='Generated from '` |
19214 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19215 | `' by configure.' | |
631ef239 AC |
19216 | if test x"$ac_file" != x-; then |
19217 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
19218 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
19219 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 19220 | fi |
7083c021 AC |
19221 | # Neutralize special characters interpreted by sed in replacement strings. |
19222 | case $configure_input in #( | |
19223 | *\&* | *\|* | *\\* ) | |
19224 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19225 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19226 | *) ac_sed_conf_input=$configure_input;; | |
19227 | esac | |
631ef239 AC |
19228 | |
19229 | case $ac_tag in | |
b6d0720c AC |
19230 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19231 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
19232 | esac |
19233 | ;; | |
19234 | esac | |
19235 | ||
19236 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
19237 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19238 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19239 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 19240 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 19241 | $as_echo X"$ac_file" | |
631ef239 AC |
19242 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19243 | s//\1/ | |
19244 | q | |
19245 | } | |
19246 | /^X\(\/\/\)[^/].*/{ | |
19247 | s//\1/ | |
19248 | q | |
19249 | } | |
19250 | /^X\(\/\/\)$/{ | |
19251 | s//\1/ | |
19252 | q | |
19253 | } | |
19254 | /^X\(\/\).*/{ | |
19255 | s//\1/ | |
19256 | q | |
19257 | } | |
19258 | s/.*/./; q'` | |
7083c021 | 19259 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
19260 | ac_builddir=. |
19261 | ||
631ef239 AC |
19262 | case "$ac_dir" in |
19263 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19264 | *) | |
7083c021 | 19265 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 19266 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 19267 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
19268 | case $ac_top_builddir_sub in |
19269 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19270 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19271 | esac ;; | |
19272 | esac | |
19273 | ac_abs_top_builddir=$ac_pwd | |
19274 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19275 | # for backward compatibility: | |
19276 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
19277 | |
19278 | case $srcdir in | |
631ef239 | 19279 | .) # We are building in place. |
212380e3 | 19280 | ac_srcdir=. |
631ef239 AC |
19281 | ac_top_srcdir=$ac_top_builddir_sub |
19282 | ac_abs_top_srcdir=$ac_pwd ;; | |
19283 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 19284 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
19285 | ac_top_srcdir=$srcdir |
19286 | ac_abs_top_srcdir=$srcdir ;; | |
19287 | *) # Relative name. | |
19288 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19289 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19290 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 19291 | esac |
631ef239 | 19292 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 19293 | |
212380e3 | 19294 | |
631ef239 AC |
19295 | case $ac_mode in |
19296 | :F) | |
19297 | # | |
19298 | # CONFIG_FILE | |
19299 | # | |
212380e3 AC |
19300 | |
19301 | case $INSTALL in | |
19302 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 19303 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 19304 | esac |
c52df125 AC |
19305 | ac_MKDIR_P=$MKDIR_P |
19306 | case $MKDIR_P in | |
19307 | [\\/$]* | ?:[\\/]* ) ;; | |
19308 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19309 | esac | |
631ef239 | 19310 | _ACEOF |
212380e3 | 19311 | |
7083c021 | 19312 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19313 | # If the template does not know about datarootdir, expand it. |
19314 | # FIXME: This hack should be removed a few years after 2.60. | |
19315 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
19316 | ac_sed_dataroot=' |
19317 | /datarootdir/ { | |
631ef239 AC |
19318 | p |
19319 | q | |
19320 | } | |
19321 | /@datadir@/p | |
19322 | /@docdir@/p | |
19323 | /@infodir@/p | |
19324 | /@localedir@/p | |
7083c021 AC |
19325 | /@mandir@/p' |
19326 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
19327 | *datarootdir*) ac_datarootdir_seen=yes;; |
19328 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
19329 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19330 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 19331 | _ACEOF |
7083c021 | 19332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
19333 | ac_datarootdir_hack=' |
19334 | s&@datadir@&$datadir&g | |
19335 | s&@docdir@&$docdir&g | |
19336 | s&@infodir@&$infodir&g | |
19337 | s&@localedir@&$localedir&g | |
19338 | s&@mandir@&$mandir&g | |
7083c021 | 19339 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 19340 | esac |
212380e3 | 19341 | _ACEOF |
631ef239 AC |
19342 | |
19343 | # Neutralize VPATH when `$srcdir' = `.'. | |
19344 | # Shell code in configure.ac might set extrasub. | |
19345 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
19346 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19347 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
19348 | $extrasub |
19349 | _ACEOF | |
7083c021 | 19350 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
19351 | :t |
19352 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 19353 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 19354 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 19355 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
19356 | s&@srcdir@&$ac_srcdir&;t t |
19357 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19358 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19359 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19360 | s&@builddir@&$ac_builddir&;t t | |
19361 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19362 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19363 | s&@INSTALL@&$ac_INSTALL&;t t | |
c52df125 | 19364 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
631ef239 | 19365 | $ac_datarootdir_hack |
7083c021 | 19366 | " |
b6d0720c AC |
19367 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19368 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
19369 | |
19370 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
19371 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19372 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19373 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 19374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19375 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 19376 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19377 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 19378 | |
b6d0720c | 19379 | rm -f "$ac_tmp/stdin" |
212380e3 | 19380 | case $ac_file in |
b6d0720c AC |
19381 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19382 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 19383 | esac \ |
b6d0720c | 19384 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
19385 | ;; |
19386 | :H) | |
19387 | # | |
19388 | # CONFIG_HEADER | |
19389 | # | |
212380e3 | 19390 | if test x"$ac_file" != x-; then |
7083c021 AC |
19391 | { |
19392 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
19393 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19394 | } >"$ac_tmp/config.h" \ | |
19395 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19396 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
19397 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19398 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 19399 | else |
7083c021 | 19400 | rm -f "$ac_file" |
b6d0720c AC |
19401 | mv "$ac_tmp/config.h" "$ac_file" \ |
19402 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
19403 | fi |
19404 | else | |
7083c021 | 19405 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
19406 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19407 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 19408 | fi |
c52df125 AC |
19409 | # Compute "$ac_file"'s index in $config_headers. |
19410 | _am_arg="$ac_file" | |
19411 | _am_stamp_count=1 | |
19412 | for _am_header in $config_headers :; do | |
19413 | case $_am_header in | |
19414 | $_am_arg | $_am_arg:* ) | |
19415 | break ;; | |
19416 | * ) | |
19417 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19418 | esac | |
19419 | done | |
19420 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19421 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19422 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19423 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19424 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19425 | $as_echo X"$_am_arg" | | |
19426 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19427 | s//\1/ | |
19428 | q | |
19429 | } | |
19430 | /^X\(\/\/\)[^/].*/{ | |
19431 | s//\1/ | |
19432 | q | |
19433 | } | |
19434 | /^X\(\/\/\)$/{ | |
19435 | s//\1/ | |
19436 | q | |
19437 | } | |
19438 | /^X\(\/\).*/{ | |
19439 | s//\1/ | |
19440 | q | |
19441 | } | |
19442 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
631ef239 AC |
19443 | ;; |
19444 | ||
9f9b7042 NPB |
19445 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19446 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19447 | ;; | |
631ef239 AC |
19448 | esac |
19449 | ||
9f9b7042 NPB |
19450 | |
19451 | case $ac_file$ac_mode in | |
c52df125 AC |
19452 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
19453 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19454 | # are listed without --file. Let's play safe and only enable the eval | |
19455 | # if we detect the quoting. | |
19456 | case $CONFIG_FILES in | |
19457 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19458 | *) set x $CONFIG_FILES ;; | |
19459 | esac | |
19460 | shift | |
19461 | for mf | |
19462 | do | |
19463 | # Strip MF so we end up with the name of the file. | |
19464 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19465 | # Check whether this is an Automake generated Makefile or not. | |
19466 | # We used to match only the files named 'Makefile.in', but | |
19467 | # some people rename them; so instead we look at the file content. | |
19468 | # Grep'ing the first line is not enough: some people post-process | |
19469 | # each Makefile.in and add a new line on top of each file to say so. | |
19470 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19471 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19472 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19473 | dirpart=`$as_dirname -- "$mf" || | |
19474 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19475 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19476 | X"$mf" : 'X\(//\)$' \| \ | |
19477 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19478 | $as_echo X"$mf" | | |
19479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19480 | s//\1/ | |
19481 | q | |
19482 | } | |
19483 | /^X\(\/\/\)[^/].*/{ | |
19484 | s//\1/ | |
19485 | q | |
19486 | } | |
19487 | /^X\(\/\/\)$/{ | |
19488 | s//\1/ | |
19489 | q | |
19490 | } | |
19491 | /^X\(\/\).*/{ | |
19492 | s//\1/ | |
19493 | q | |
19494 | } | |
19495 | s/.*/./; q'` | |
19496 | else | |
19497 | continue | |
19498 | fi | |
19499 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19500 | # from the Makefile without running 'make'. | |
19501 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19502 | test -z "$DEPDIR" && continue | |
19503 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19504 | test -z "$am__include" && continue | |
19505 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19506 | # Find all dependency output files, they are included files with | |
19507 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19508 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19509 | # expansion. | |
19510 | for file in `sed -n " | |
19511 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19512 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19513 | # Make sure the directory exists. | |
19514 | test -f "$dirpart/$file" && continue | |
19515 | fdir=`$as_dirname -- "$file" || | |
19516 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19517 | X"$file" : 'X\(//\)[^/]' \| \ | |
19518 | X"$file" : 'X\(//\)$' \| \ | |
19519 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19520 | $as_echo X"$file" | | |
19521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19522 | s//\1/ | |
19523 | q | |
19524 | } | |
19525 | /^X\(\/\/\)[^/].*/{ | |
19526 | s//\1/ | |
19527 | q | |
19528 | } | |
19529 | /^X\(\/\/\)$/{ | |
19530 | s//\1/ | |
19531 | q | |
19532 | } | |
19533 | /^X\(\/\).*/{ | |
19534 | s//\1/ | |
19535 | q | |
19536 | } | |
19537 | s/.*/./; q'` | |
19538 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19539 | # echo "creating $dirpart/$file" | |
19540 | echo '# dummy' > "$dirpart/$file" | |
19541 | done | |
19542 | done | |
19543 | } | |
19544 | ;; | |
19545 | "libtool":C) | |
19546 | ||
19547 | # See if we are running on zsh, and set the options which allow our | |
19548 | # commands through without removal of \ escapes. | |
19549 | if test -n "${ZSH_VERSION+set}" ; then | |
19550 | setopt NO_GLOB_SUBST | |
19551 | fi | |
19552 | ||
19553 | cfgfile="${ofile}T" | |
19554 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19555 | $RM "$cfgfile" | |
19556 | ||
19557 | cat <<_LT_EOF >> "$cfgfile" | |
19558 | #! $SHELL | |
19559 | ||
19560 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19561 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19562 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19563 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19564 | # | |
19565 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19566 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
19567 | # Foundation, Inc. | |
19568 | # Written by Gordon Matzigkeit, 1996 | |
19569 | # | |
19570 | # This file is part of GNU Libtool. | |
19571 | # | |
19572 | # GNU Libtool is free software; you can redistribute it and/or | |
19573 | # modify it under the terms of the GNU General Public License as | |
19574 | # published by the Free Software Foundation; either version 2 of | |
19575 | # the License, or (at your option) any later version. | |
19576 | # | |
19577 | # As a special exception to the GNU General Public License, | |
19578 | # if you distribute this file as part of a program or library that | |
19579 | # is built using GNU Libtool, you may include this file under the | |
19580 | # same distribution terms that you use for the rest of that program. | |
19581 | # | |
19582 | # GNU Libtool is distributed in the hope that it will be useful, | |
19583 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19584 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19585 | # GNU General Public License for more details. | |
19586 | # | |
19587 | # You should have received a copy of the GNU General Public License | |
19588 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19589 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19590 | # obtained by writing to the Free Software Foundation, Inc., | |
19591 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19592 | ||
19593 | ||
19594 | # The names of the tagged configurations supported by this script. | |
19595 | available_tags="" | |
19596 | ||
19597 | # ### BEGIN LIBTOOL CONFIG | |
19598 | ||
19599 | # Which release of libtool.m4 was used? | |
19600 | macro_version=$macro_version | |
19601 | macro_revision=$macro_revision | |
19602 | ||
19603 | # Whether or not to build static libraries. | |
19604 | build_old_libs=$enable_static | |
19605 | ||
19606 | # Whether or not to build shared libraries. | |
19607 | build_libtool_libs=$enable_shared | |
19608 | ||
19609 | # What type of objects to build. | |
19610 | pic_mode=$pic_mode | |
19611 | ||
19612 | # Whether or not to optimize for fast installation. | |
19613 | fast_install=$enable_fast_install | |
19614 | ||
19615 | # Shell to use when invoking shell scripts. | |
19616 | SHELL=$lt_SHELL | |
19617 | ||
19618 | # An echo program that protects backslashes. | |
19619 | ECHO=$lt_ECHO | |
19620 | ||
19621 | # The PATH separator for the build system. | |
19622 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19623 | ||
19624 | # The host system. | |
19625 | host_alias=$host_alias | |
19626 | host=$host | |
19627 | host_os=$host_os | |
19628 | ||
19629 | # The build system. | |
19630 | build_alias=$build_alias | |
19631 | build=$build | |
19632 | build_os=$build_os | |
19633 | ||
19634 | # A sed program that does not truncate output. | |
19635 | SED=$lt_SED | |
19636 | ||
19637 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19638 | Xsed="\$SED -e 1s/^X//" | |
19639 | ||
19640 | # A grep program that handles long lines. | |
19641 | GREP=$lt_GREP | |
19642 | ||
19643 | # An ERE matcher. | |
19644 | EGREP=$lt_EGREP | |
19645 | ||
19646 | # A literal string matcher. | |
19647 | FGREP=$lt_FGREP | |
19648 | ||
19649 | # A BSD- or MS-compatible name lister. | |
19650 | NM=$lt_NM | |
19651 | ||
19652 | # Whether we need soft or hard links. | |
19653 | LN_S=$lt_LN_S | |
19654 | ||
19655 | # What is the maximum length of a command? | |
19656 | max_cmd_len=$max_cmd_len | |
19657 | ||
19658 | # Object file suffix (normally "o"). | |
19659 | objext=$ac_objext | |
19660 | ||
19661 | # Executable file suffix (normally ""). | |
19662 | exeext=$exeext | |
19663 | ||
19664 | # whether the shell understands "unset". | |
19665 | lt_unset=$lt_unset | |
19666 | ||
19667 | # turn spaces into newlines. | |
19668 | SP2NL=$lt_lt_SP2NL | |
19669 | ||
19670 | # turn newlines into spaces. | |
19671 | NL2SP=$lt_lt_NL2SP | |
19672 | ||
19673 | # convert \$build file names to \$host format. | |
19674 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
19675 | ||
19676 | # convert \$build files to toolchain format. | |
19677 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
19678 | ||
19679 | # An object symbol dumper. | |
19680 | OBJDUMP=$lt_OBJDUMP | |
19681 | ||
19682 | # Method to check whether dependent libraries are shared objects. | |
19683 | deplibs_check_method=$lt_deplibs_check_method | |
19684 | ||
19685 | # Command to use when deplibs_check_method = "file_magic". | |
19686 | file_magic_cmd=$lt_file_magic_cmd | |
19687 | ||
19688 | # How to find potential files when deplibs_check_method = "file_magic". | |
19689 | file_magic_glob=$lt_file_magic_glob | |
19690 | ||
19691 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
19692 | want_nocaseglob=$lt_want_nocaseglob | |
19693 | ||
19694 | # DLL creation program. | |
19695 | DLLTOOL=$lt_DLLTOOL | |
19696 | ||
19697 | # Command to associate shared and link libraries. | |
19698 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
19699 | ||
19700 | # The archiver. | |
19701 | AR=$lt_AR | |
19702 | ||
19703 | # Flags to create an archive. | |
19704 | AR_FLAGS=$lt_AR_FLAGS | |
19705 | ||
19706 | # How to feed a file listing to the archiver. | |
19707 | archiver_list_spec=$lt_archiver_list_spec | |
19708 | ||
19709 | # A symbol stripping program. | |
19710 | STRIP=$lt_STRIP | |
19711 | ||
19712 | # Commands used to install an old-style archive. | |
19713 | RANLIB=$lt_RANLIB | |
19714 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19715 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19716 | ||
19717 | # Whether to use a lock for old archive extraction. | |
19718 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19719 | ||
19720 | # A C compiler. | |
19721 | LTCC=$lt_CC | |
19722 | ||
19723 | # LTCC compiler flags. | |
19724 | LTCFLAGS=$lt_CFLAGS | |
19725 | ||
19726 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19727 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19728 | ||
19729 | # Transform the output of nm in a proper C declaration. | |
19730 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19731 | ||
19732 | # Transform the output of nm in a C name address pair. | |
19733 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19734 | ||
19735 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19736 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19737 | ||
19738 | # Specify filename containing input files for \$NM. | |
19739 | nm_file_list_spec=$lt_nm_file_list_spec | |
19740 | ||
19741 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
19742 | lt_sysroot=$lt_sysroot | |
19743 | ||
19744 | # The name of the directory that contains temporary libtool files. | |
19745 | objdir=$objdir | |
19746 | ||
19747 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19748 | MAGIC_CMD=$MAGIC_CMD | |
19749 | ||
19750 | # Must we lock files when doing compilation? | |
19751 | need_locks=$lt_need_locks | |
19752 | ||
19753 | # Manifest tool. | |
19754 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
19755 | ||
19756 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19757 | DSYMUTIL=$lt_DSYMUTIL | |
19758 | ||
19759 | # Tool to change global to local symbols on Mac OS X. | |
19760 | NMEDIT=$lt_NMEDIT | |
19761 | ||
19762 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19763 | LIPO=$lt_LIPO | |
19764 | ||
19765 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19766 | OTOOL=$lt_OTOOL | |
19767 | ||
19768 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19769 | OTOOL64=$lt_OTOOL64 | |
19770 | ||
19771 | # Old archive suffix (normally "a"). | |
19772 | libext=$libext | |
19773 | ||
19774 | # Shared library suffix (normally ".so"). | |
19775 | shrext_cmds=$lt_shrext_cmds | |
19776 | ||
19777 | # The commands to extract the exported symbol list from a shared archive. | |
19778 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19779 | ||
19780 | # Variables whose values should be saved in libtool wrapper scripts and | |
19781 | # restored at link time. | |
19782 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19783 | ||
19784 | # Do we need the "lib" prefix for modules? | |
19785 | need_lib_prefix=$need_lib_prefix | |
19786 | ||
19787 | # Do we need a version for libraries? | |
19788 | need_version=$need_version | |
19789 | ||
19790 | # Library versioning type. | |
19791 | version_type=$version_type | |
19792 | ||
19793 | # Shared library runtime path variable. | |
19794 | runpath_var=$runpath_var | |
19795 | ||
19796 | # Shared library path variable. | |
19797 | shlibpath_var=$shlibpath_var | |
19798 | ||
19799 | # Is shlibpath searched before the hard-coded library search path? | |
19800 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19801 | ||
19802 | # Format of library name prefix. | |
19803 | libname_spec=$lt_libname_spec | |
19804 | ||
19805 | # List of archive names. First name is the real one, the rest are links. | |
19806 | # The last name is the one that the linker finds with -lNAME | |
19807 | library_names_spec=$lt_library_names_spec | |
19808 | ||
19809 | # The coded name of the library, if different from the real name. | |
19810 | soname_spec=$lt_soname_spec | |
19811 | ||
19812 | # Permission mode override for installation of shared libraries. | |
19813 | install_override_mode=$lt_install_override_mode | |
19814 | ||
19815 | # Command to use after installation of a shared archive. | |
19816 | postinstall_cmds=$lt_postinstall_cmds | |
19817 | ||
19818 | # Command to use after uninstallation of a shared archive. | |
19819 | postuninstall_cmds=$lt_postuninstall_cmds | |
19820 | ||
19821 | # Commands used to finish a libtool library installation in a directory. | |
19822 | finish_cmds=$lt_finish_cmds | |
19823 | ||
19824 | # As "finish_cmds", except a single script fragment to be evaled but | |
19825 | # not shown. | |
19826 | finish_eval=$lt_finish_eval | |
19827 | ||
19828 | # Whether we should hardcode library paths into libraries. | |
19829 | hardcode_into_libs=$hardcode_into_libs | |
19830 | ||
19831 | # Compile-time system search path for libraries. | |
19832 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19833 | ||
19834 | # Run-time system search path for libraries. | |
19835 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19836 | ||
19837 | # Whether dlopen is supported. | |
19838 | dlopen_support=$enable_dlopen | |
19839 | ||
19840 | # Whether dlopen of programs is supported. | |
19841 | dlopen_self=$enable_dlopen_self | |
19842 | ||
19843 | # Whether dlopen of statically linked programs is supported. | |
19844 | dlopen_self_static=$enable_dlopen_self_static | |
19845 | ||
19846 | # Commands to strip libraries. | |
19847 | old_striplib=$lt_old_striplib | |
19848 | striplib=$lt_striplib | |
19849 | ||
19850 | ||
19851 | # The linker used to build libraries. | |
19852 | LD=$lt_LD | |
19853 | ||
19854 | # How to create reloadable object files. | |
19855 | reload_flag=$lt_reload_flag | |
19856 | reload_cmds=$lt_reload_cmds | |
19857 | ||
19858 | # Commands used to build an old-style archive. | |
19859 | old_archive_cmds=$lt_old_archive_cmds | |
19860 | ||
19861 | # A language specific compiler. | |
19862 | CC=$lt_compiler | |
19863 | ||
19864 | # Is the compiler the GNU compiler? | |
19865 | with_gcc=$GCC | |
19866 | ||
19867 | # Compiler flag to turn off builtin functions. | |
19868 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19869 | ||
19870 | # Additional compiler flags for building library objects. | |
19871 | pic_flag=$lt_lt_prog_compiler_pic | |
19872 | ||
19873 | # How to pass a linker flag through the compiler. | |
19874 | wl=$lt_lt_prog_compiler_wl | |
19875 | ||
19876 | # Compiler flag to prevent dynamic linking. | |
19877 | link_static_flag=$lt_lt_prog_compiler_static | |
19878 | ||
19879 | # Does compiler simultaneously support -c and -o options? | |
19880 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19881 | ||
19882 | # Whether or not to add -lc for building shared libraries. | |
19883 | build_libtool_need_lc=$archive_cmds_need_lc | |
19884 | ||
19885 | # Whether or not to disallow shared libs when runtime libs are static. | |
19886 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19887 | ||
19888 | # Compiler flag to allow reflexive dlopens. | |
19889 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19890 | ||
19891 | # Compiler flag to generate shared objects directly from archives. | |
19892 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19893 | ||
19894 | # Whether the compiler copes with passing no objects directly. | |
19895 | compiler_needs_object=$lt_compiler_needs_object | |
19896 | ||
19897 | # Create an old-style archive from a shared archive. | |
19898 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19899 | ||
19900 | # Create a temporary old-style archive to link instead of a shared archive. | |
19901 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19902 | ||
19903 | # Commands used to build a shared archive. | |
19904 | archive_cmds=$lt_archive_cmds | |
19905 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19906 | ||
19907 | # Commands used to build a loadable module if different from building | |
19908 | # a shared archive. | |
19909 | module_cmds=$lt_module_cmds | |
19910 | module_expsym_cmds=$lt_module_expsym_cmds | |
19911 | ||
19912 | # Whether we are building with GNU ld or not. | |
19913 | with_gnu_ld=$lt_with_gnu_ld | |
19914 | ||
19915 | # Flag that allows shared libraries with undefined symbols to be built. | |
19916 | allow_undefined_flag=$lt_allow_undefined_flag | |
19917 | ||
19918 | # Flag that enforces no undefined symbols. | |
19919 | no_undefined_flag=$lt_no_undefined_flag | |
19920 | ||
19921 | # Flag to hardcode \$libdir into a binary during linking. | |
19922 | # This must work even if \$libdir does not exist | |
19923 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19924 | ||
19925 | # Whether we need a single "-rpath" flag with a separated argument. | |
19926 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19927 | ||
19928 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19929 | # DIR into the resulting binary. | |
19930 | hardcode_direct=$hardcode_direct | |
19931 | ||
19932 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19933 | # DIR into the resulting binary and the resulting library dependency is | |
19934 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19935 | # library is relocated. | |
19936 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19937 | ||
19938 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19939 | # into the resulting binary. | |
19940 | hardcode_minus_L=$hardcode_minus_L | |
19941 | ||
19942 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19943 | # into the resulting binary. | |
19944 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19945 | ||
19946 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19947 | # into the library and all subsequent libraries and executables linked | |
19948 | # against it. | |
19949 | hardcode_automatic=$hardcode_automatic | |
19950 | ||
19951 | # Set to yes if linker adds runtime paths of dependent libraries | |
19952 | # to runtime path list. | |
19953 | inherit_rpath=$inherit_rpath | |
19954 | ||
19955 | # Whether libtool must link a program against all its dependency libraries. | |
19956 | link_all_deplibs=$link_all_deplibs | |
19957 | ||
19958 | # Set to "yes" if exported symbols are required. | |
19959 | always_export_symbols=$always_export_symbols | |
19960 | ||
19961 | # The commands to list exported symbols. | |
19962 | export_symbols_cmds=$lt_export_symbols_cmds | |
19963 | ||
19964 | # Symbols that should not be listed in the preloaded symbols. | |
19965 | exclude_expsyms=$lt_exclude_expsyms | |
19966 | ||
19967 | # Symbols that must always be exported. | |
19968 | include_expsyms=$lt_include_expsyms | |
19969 | ||
19970 | # Commands necessary for linking programs (against libraries) with templates. | |
19971 | prelink_cmds=$lt_prelink_cmds | |
19972 | ||
19973 | # Commands necessary for finishing linking programs. | |
19974 | postlink_cmds=$lt_postlink_cmds | |
19975 | ||
19976 | # Specify filename containing input files. | |
19977 | file_list_spec=$lt_file_list_spec | |
19978 | ||
19979 | # How to hardcode a shared library path into an executable. | |
19980 | hardcode_action=$hardcode_action | |
19981 | ||
19982 | # ### END LIBTOOL CONFIG | |
19983 | ||
19984 | _LT_EOF | |
19985 | ||
19986 | case $host_os in | |
19987 | aix3*) | |
19988 | cat <<\_LT_EOF >> "$cfgfile" | |
19989 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19990 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19991 | # vanish in a puff of smoke. | |
19992 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19993 | COLLECT_NAMES= | |
19994 | export COLLECT_NAMES | |
19995 | fi | |
19996 | _LT_EOF | |
19997 | ;; | |
19998 | esac | |
19999 | ||
20000 | ||
20001 | ltmain="$ac_aux_dir/ltmain.sh" | |
20002 | ||
20003 | ||
20004 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20005 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20006 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20007 | # is reportedly fixed, but why not run on old versions too? | |
20008 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
20009 | || (rm -f "$cfgfile"; exit 1) | |
20010 | ||
20011 | if test x"$xsi_shell" = xyes; then | |
20012 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
20013 | func_dirname ()\ | |
20014 | {\ | |
20015 | \ case ${1} in\ | |
20016 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
20017 | \ * ) func_dirname_result="${3}" ;;\ | |
20018 | \ esac\ | |
20019 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
20020 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20021 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20022 | test 0 -eq $? || _lt_function_replace_fail=: | |
20023 | ||
20024 | ||
20025 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
20026 | func_basename ()\ | |
20027 | {\ | |
20028 | \ func_basename_result="${1##*/}"\ | |
20029 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
20030 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20031 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20032 | test 0 -eq $? || _lt_function_replace_fail=: | |
20033 | ||
20034 | ||
20035 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
20036 | func_dirname_and_basename ()\ | |
20037 | {\ | |
20038 | \ case ${1} in\ | |
20039 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
20040 | \ * ) func_dirname_result="${3}" ;;\ | |
20041 | \ esac\ | |
20042 | \ func_basename_result="${1##*/}"\ | |
20043 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
20044 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20045 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20046 | test 0 -eq $? || _lt_function_replace_fail=: | |
20047 | ||
20048 | ||
20049 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
20050 | func_stripname ()\ | |
20051 | {\ | |
20052 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
20053 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
20054 | \ func_stripname_result=${3}\ | |
20055 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
20056 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
20057 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
20058 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20059 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20060 | test 0 -eq $? || _lt_function_replace_fail=: | |
20061 | ||
20062 | ||
20063 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
20064 | func_split_long_opt ()\ | |
20065 | {\ | |
20066 | \ func_split_long_opt_name=${1%%=*}\ | |
20067 | \ func_split_long_opt_arg=${1#*=}\ | |
20068 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20069 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20070 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20071 | test 0 -eq $? || _lt_function_replace_fail=: | |
20072 | ||
20073 | ||
20074 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
20075 | func_split_short_opt ()\ | |
20076 | {\ | |
20077 | \ func_split_short_opt_arg=${1#??}\ | |
20078 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
20079 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20080 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20081 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20082 | test 0 -eq $? || _lt_function_replace_fail=: | |
20083 | ||
20084 | ||
20085 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
20086 | func_lo2o ()\ | |
20087 | {\ | |
20088 | \ case ${1} in\ | |
20089 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
20090 | \ *) func_lo2o_result=${1} ;;\ | |
20091 | \ esac\ | |
20092 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
20093 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20094 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20095 | test 0 -eq $? || _lt_function_replace_fail=: | |
20096 | ||
20097 | ||
20098 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
20099 | func_xform ()\ | |
20100 | {\ | |
20101 | func_xform_result=${1%.*}.lo\ | |
20102 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
20103 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20104 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20105 | test 0 -eq $? || _lt_function_replace_fail=: | |
20106 | ||
20107 | ||
20108 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
20109 | func_arith ()\ | |
20110 | {\ | |
20111 | func_arith_result=$(( $* ))\ | |
20112 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
20113 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20114 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20115 | test 0 -eq $? || _lt_function_replace_fail=: | |
20116 | ||
20117 | ||
20118 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
20119 | func_len ()\ | |
20120 | {\ | |
20121 | func_len_result=${#1}\ | |
20122 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
20123 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20124 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20125 | test 0 -eq $? || _lt_function_replace_fail=: | |
20126 | ||
20127 | fi | |
20128 | ||
20129 | if test x"$lt_shell_append" = xyes; then | |
20130 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
20131 | func_append ()\ | |
20132 | {\ | |
20133 | eval "${1}+=\\${2}"\ | |
20134 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
20135 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20136 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20137 | test 0 -eq $? || _lt_function_replace_fail=: | |
20138 | ||
20139 | ||
20140 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
20141 | func_append_quoted ()\ | |
20142 | {\ | |
20143 | \ func_quote_for_eval "${2}"\ | |
20144 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
20145 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
20146 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20147 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20148 | test 0 -eq $? || _lt_function_replace_fail=: | |
20149 | ||
20150 | ||
20151 | # Save a `func_append' function call where possible by direct use of '+=' | |
20152 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
20153 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20154 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20155 | test 0 -eq $? || _lt_function_replace_fail=: | |
20156 | else | |
20157 | # Save a `func_append' function call even when '+=' is not available | |
20158 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
20159 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20160 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20161 | test 0 -eq $? || _lt_function_replace_fail=: | |
20162 | fi | |
20163 | ||
20164 | if test x"$_lt_function_replace_fail" = x":"; then | |
20165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
20166 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
20167 | fi | |
20168 | ||
20169 | ||
20170 | mv -f "$cfgfile" "$ofile" || | |
20171 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20172 | chmod +x "$ofile" | |
20173 | ||
20174 | ;; | |
2eff3833 | 20175 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
20176 | |
20177 | esac | |
631ef239 | 20178 | done # for ac_tag |
212380e3 | 20179 | |
212380e3 | 20180 | |
7083c021 | 20181 | as_fn_exit 0 |
212380e3 | 20182 | _ACEOF |
212380e3 AC |
20183 | ac_clean_files=$ac_clean_files_save |
20184 | ||
7083c021 | 20185 | test $ac_write_fail = 0 || |
b6d0720c | 20186 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 20187 | |
212380e3 AC |
20188 | |
20189 | # configure is writing to config.log, and then calls config.status. | |
20190 | # config.status does its own redirection, appending to config.log. | |
20191 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20192 | # by configure, so config.status won't be able to write to it; its | |
20193 | # output is simply discarded. So we exec the FD to /dev/null, | |
20194 | # effectively closing config.log, so it can be properly (re)opened and | |
20195 | # appended to by config.status. When coming back to configure, we | |
20196 | # need to make the FD available again. | |
20197 | if test "$no_create" != yes; then | |
20198 | ac_cs_success=: | |
20199 | ac_config_status_args= | |
20200 | test "$silent" = yes && | |
20201 | ac_config_status_args="$ac_config_status_args --quiet" | |
20202 | exec 5>/dev/null | |
20203 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20204 | exec 5>>config.log | |
20205 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20206 | # would make configure fail if this is the last instruction. | |
b6d0720c | 20207 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 20208 | fi |
1db8e007 JT |
20209 | |
20210 | # | |
20211 | # CONFIG_SUBDIRS section. | |
20212 | # | |
20213 | if test "$no_recursion" != yes; then | |
20214 | ||
20215 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
20216 | # so they do not pile up. | |
20217 | ac_sub_configure_args= | |
20218 | ac_prev= | |
20219 | eval "set x $ac_configure_args" | |
20220 | shift | |
20221 | for ac_arg | |
20222 | do | |
20223 | if test -n "$ac_prev"; then | |
20224 | ac_prev= | |
20225 | continue | |
20226 | fi | |
20227 | case $ac_arg in | |
20228 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
20229 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20230 | ac_prev=cache_file ;; | |
20231 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
20232 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
20233 | | --c=*) | |
20234 | ;; | |
20235 | --config-cache | -C) | |
20236 | ;; | |
20237 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20238 | ac_prev=srcdir ;; | |
20239 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20240 | ;; | |
20241 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
20242 | ac_prev=prefix ;; | |
20243 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
20244 | ;; | |
20245 | --disable-option-checking) | |
20246 | ;; | |
20247 | *) | |
20248 | case $ac_arg in | |
20249 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20250 | esac | |
20251 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
20252 | esac | |
20253 | done | |
20254 | ||
20255 | # Always prepend --prefix to ensure using the same prefix | |
20256 | # in subdir configurations. | |
20257 | ac_arg="--prefix=$prefix" | |
20258 | case $ac_arg in | |
20259 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20260 | esac | |
20261 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
20262 | ||
20263 | # Pass --silent | |
20264 | if test "$silent" = yes; then | |
20265 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
20266 | fi | |
20267 | ||
20268 | # Always prepend --disable-option-checking to silence warnings, since | |
20269 | # different subdirs can have different --enable and --with options. | |
20270 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
20271 | ||
20272 | ac_popdir=`pwd` | |
20273 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
20274 | ||
20275 | # Do not complain, so a configure script can configure whichever | |
20276 | # parts of a large source tree are present. | |
20277 | test -d "$srcdir/$ac_dir" || continue | |
20278 | ||
20279 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
20280 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
20281 | $as_echo "$ac_msg" >&6 | |
20282 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20283 | ac_builddir=. | |
20284 | ||
20285 | case "$ac_dir" in | |
20286 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20287 | *) | |
20288 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20289 | # A ".." for each directory in $ac_dir_suffix. | |
20290 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20291 | case $ac_top_builddir_sub in | |
20292 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20293 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20294 | esac ;; | |
20295 | esac | |
20296 | ac_abs_top_builddir=$ac_pwd | |
20297 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20298 | # for backward compatibility: | |
20299 | ac_top_builddir=$ac_top_build_prefix | |
20300 | ||
20301 | case $srcdir in | |
20302 | .) # We are building in place. | |
20303 | ac_srcdir=. | |
20304 | ac_top_srcdir=$ac_top_builddir_sub | |
20305 | ac_abs_top_srcdir=$ac_pwd ;; | |
20306 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20307 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20308 | ac_top_srcdir=$srcdir | |
20309 | ac_abs_top_srcdir=$srcdir ;; | |
20310 | *) # Relative name. | |
20311 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20312 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20313 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20314 | esac | |
20315 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20316 | ||
20317 | ||
20318 | cd "$ac_dir" | |
20319 | ||
20320 | # Check for guested configure; otherwise get Cygnus style configure. | |
20321 | if test -f "$ac_srcdir/configure.gnu"; then | |
20322 | ac_sub_configure=$ac_srcdir/configure.gnu | |
20323 | elif test -f "$ac_srcdir/configure"; then | |
20324 | ac_sub_configure=$ac_srcdir/configure | |
20325 | elif test -f "$ac_srcdir/configure.in"; then | |
20326 | # This should be Cygnus configure. | |
20327 | ac_sub_configure=$ac_aux_dir/configure | |
20328 | else | |
20329 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
20330 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
20331 | ac_sub_configure= | |
20332 | fi | |
20333 | ||
20334 | # The recursion is here. | |
20335 | if test -n "$ac_sub_configure"; then | |
20336 | # Make the cache file name correct relative to the subdirectory. | |
20337 | case $cache_file in | |
20338 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
20339 | *) # Relative name. | |
20340 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
20341 | esac | |
20342 | ||
20343 | { $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 | |
20344 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
20345 | # The eval makes quoting arguments work. | |
20346 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
20347 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
20348 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
20349 | fi | |
20350 | ||
20351 | cd "$ac_popdir" | |
20352 | done | |
20353 | fi | |
7083c021 AC |
20354 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20356 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20357 | fi | |
b676ea3b | 20358 | |
212380e3 AC |
20359 | |
20360 | if test "$cf_openssl_version_ok" = yes; then | |
20361 | openssl="yes" | |
20362 | else | |
20363 | openssl="no" | |
20364 | fi | |
20365 | ||
212380e3 | 20366 | echo " |
b6d0720c | 20367 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
20368 | Install directory : $prefix |
20369 | ||
20370 | Ziplinks : $zlib | |
20371 | OpenSSL : $openssl | |
212380e3 AC |
20372 | Small network : $small_net |
20373 | Block allocator : $balloc | |
212380e3 AC |
20374 | |
20375 | Nickname length : $NICKLEN | |
20376 | Topic length : $TOPICLEN | |
20377 | ||
b6d0720c | 20378 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 20379 | " |