]>
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 | 852 | enable_assert |
7083c021 | 853 | enable_profile |
7083c021 AC |
854 | with_nicklen |
855 | with_topiclen | |
856 | enable_warnings | |
857 | ' | |
631ef239 AC |
858 | ac_precious_vars='build_alias |
859 | host_alias | |
860 | target_alias | |
861 | CC | |
862 | CFLAGS | |
863 | LDFLAGS | |
864 | LIBS | |
865 | CPPFLAGS | |
866 | CPP | |
867 | YACC | |
a5471f24 LS |
868 | YFLAGS |
869 | PKG_CONFIG | |
870 | PKG_CONFIG_PATH | |
871 | PKG_CONFIG_LIBDIR | |
872 | SQLITE_CFLAGS | |
873 | SQLITE_LIBS' | |
eec2776c | 874 | ac_subdirs_all='libratbox |
eec2776c | 875 | libltdl' |
212380e3 AC |
876 | |
877 | # Initialize some variables set by options. | |
878 | ac_init_help= | |
879 | ac_init_version=false | |
7083c021 AC |
880 | ac_unrecognized_opts= |
881 | ac_unrecognized_sep= | |
212380e3 AC |
882 | # The variables have the same names as the options, with |
883 | # dashes changed to underlines. | |
884 | cache_file=/dev/null | |
885 | exec_prefix=NONE | |
886 | no_create= | |
887 | no_recursion= | |
888 | prefix=NONE | |
889 | program_prefix=NONE | |
890 | program_suffix=NONE | |
891 | program_transform_name=s,x,x, | |
892 | silent= | |
893 | site= | |
894 | srcdir= | |
895 | verbose= | |
896 | x_includes=NONE | |
897 | x_libraries=NONE | |
898 | ||
899 | # Installation directory options. | |
900 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
901 | # and all the variables that are supposed to be based on exec_prefix | |
902 | # by default will actually change. | |
903 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 904 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
905 | bindir='${exec_prefix}/bin' |
906 | sbindir='${exec_prefix}/sbin' | |
907 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
908 | datarootdir='${prefix}/share' |
909 | datadir='${datarootdir}' | |
212380e3 AC |
910 | sysconfdir='${prefix}/etc' |
911 | sharedstatedir='${prefix}/com' | |
912 | localstatedir='${prefix}/var' | |
212380e3 AC |
913 | includedir='${prefix}/include' |
914 | oldincludedir='/usr/include' | |
631ef239 AC |
915 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
916 | infodir='${datarootdir}/info' | |
917 | htmldir='${docdir}' | |
918 | dvidir='${docdir}' | |
919 | pdfdir='${docdir}' | |
920 | psdir='${docdir}' | |
921 | libdir='${exec_prefix}/lib' | |
922 | localedir='${datarootdir}/locale' | |
923 | mandir='${datarootdir}/man' | |
212380e3 AC |
924 | |
925 | ac_prev= | |
631ef239 | 926 | ac_dashdash= |
212380e3 AC |
927 | for ac_option |
928 | do | |
929 | # If the previous option needs an argument, assign it. | |
930 | if test -n "$ac_prev"; then | |
631ef239 | 931 | eval $ac_prev=\$ac_option |
212380e3 AC |
932 | ac_prev= |
933 | continue | |
934 | fi | |
935 | ||
631ef239 | 936 | case $ac_option in |
b6d0720c AC |
937 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
938 | *=) ac_optarg= ;; | |
939 | *) ac_optarg=yes ;; | |
631ef239 | 940 | esac |
212380e3 AC |
941 | |
942 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
943 | ||
631ef239 AC |
944 | case $ac_dashdash$ac_option in |
945 | --) | |
946 | ac_dashdash=yes ;; | |
212380e3 AC |
947 | |
948 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
949 | ac_prev=bindir ;; | |
950 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
951 | bindir=$ac_optarg ;; | |
952 | ||
953 | -build | --build | --buil | --bui | --bu) | |
954 | ac_prev=build_alias ;; | |
955 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
956 | build_alias=$ac_optarg ;; | |
957 | ||
958 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
959 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
960 | ac_prev=cache_file ;; | |
961 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
962 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
963 | cache_file=$ac_optarg ;; | |
964 | ||
965 | --config-cache | -C) | |
966 | cache_file=config.cache ;; | |
967 | ||
631ef239 | 968 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 969 | ac_prev=datadir ;; |
631ef239 | 970 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
971 | datadir=$ac_optarg ;; |
972 | ||
631ef239 AC |
973 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
974 | | --dataroo | --dataro | --datar) | |
975 | ac_prev=datarootdir ;; | |
976 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
977 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
978 | datarootdir=$ac_optarg ;; | |
979 | ||
212380e3 | 980 | -disable-* | --disable-*) |
7083c021 | 981 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 982 | # Reject names that are not valid shell variable names. |
7083c021 | 983 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 984 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
985 | ac_useropt_orig=$ac_useropt |
986 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
987 | case $ac_user_opts in | |
988 | *" | |
989 | "enable_$ac_useropt" | |
990 | "*) ;; | |
991 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
992 | ac_unrecognized_sep=', ';; | |
993 | esac | |
994 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
995 | |
996 | -docdir | --docdir | --docdi | --doc | --do) | |
997 | ac_prev=docdir ;; | |
998 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
999 | docdir=$ac_optarg ;; | |
1000 | ||
1001 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1002 | ac_prev=dvidir ;; | |
1003 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1004 | dvidir=$ac_optarg ;; | |
212380e3 AC |
1005 | |
1006 | -enable-* | --enable-*) | |
7083c021 | 1007 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 1008 | # Reject names that are not valid shell variable names. |
7083c021 | 1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1010 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
1011 | ac_useropt_orig=$ac_useropt |
1012 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1013 | case $ac_user_opts in | |
1014 | *" | |
1015 | "enable_$ac_useropt" | |
1016 | "*) ;; | |
1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1018 | ac_unrecognized_sep=', ';; | |
1019 | esac | |
1020 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1021 | |
1022 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1023 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1024 | | --exec | --exe | --ex) | |
1025 | ac_prev=exec_prefix ;; | |
1026 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1027 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1028 | | --exec=* | --exe=* | --ex=*) | |
1029 | exec_prefix=$ac_optarg ;; | |
1030 | ||
1031 | -gas | --gas | --ga | --g) | |
1032 | # Obsolete; use --with-gas. | |
1033 | with_gas=yes ;; | |
1034 | ||
1035 | -help | --help | --hel | --he | -h) | |
1036 | ac_init_help=long ;; | |
1037 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1038 | ac_init_help=recursive ;; | |
1039 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1040 | ac_init_help=short ;; | |
1041 | ||
1042 | -host | --host | --hos | --ho) | |
1043 | ac_prev=host_alias ;; | |
1044 | -host=* | --host=* | --hos=* | --ho=*) | |
1045 | host_alias=$ac_optarg ;; | |
1046 | ||
631ef239 AC |
1047 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1048 | ac_prev=htmldir ;; | |
1049 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1050 | | --ht=*) | |
1051 | htmldir=$ac_optarg ;; | |
1052 | ||
212380e3 AC |
1053 | -includedir | --includedir | --includedi | --included | --include \ |
1054 | | --includ | --inclu | --incl | --inc) | |
1055 | ac_prev=includedir ;; | |
1056 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1057 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1058 | includedir=$ac_optarg ;; | |
1059 | ||
1060 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1061 | ac_prev=infodir ;; | |
1062 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1063 | infodir=$ac_optarg ;; | |
1064 | ||
1065 | -libdir | --libdir | --libdi | --libd) | |
1066 | ac_prev=libdir ;; | |
1067 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1068 | libdir=$ac_optarg ;; | |
1069 | ||
1070 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1071 | | --libexe | --libex | --libe) | |
1072 | ac_prev=libexecdir ;; | |
1073 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1074 | | --libexe=* | --libex=* | --libe=*) | |
1075 | libexecdir=$ac_optarg ;; | |
1076 | ||
631ef239 AC |
1077 | -localedir | --localedir | --localedi | --localed | --locale) |
1078 | ac_prev=localedir ;; | |
1079 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1080 | localedir=$ac_optarg ;; | |
1081 | ||
212380e3 | 1082 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 1083 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
1084 | ac_prev=localstatedir ;; |
1085 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 1086 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
1087 | localstatedir=$ac_optarg ;; |
1088 | ||
1089 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1090 | ac_prev=mandir ;; | |
1091 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1092 | mandir=$ac_optarg ;; | |
1093 | ||
1094 | -nfp | --nfp | --nf) | |
1095 | # Obsolete; use --without-fp. | |
1096 | with_fp=no ;; | |
1097 | ||
1098 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1099 | | --no-cr | --no-c | -n) | |
1100 | no_create=yes ;; | |
1101 | ||
1102 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1103 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1104 | no_recursion=yes ;; | |
1105 | ||
1106 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1107 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1108 | | --oldin | --oldi | --old | --ol | --o) | |
1109 | ac_prev=oldincludedir ;; | |
1110 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1111 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1112 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1113 | oldincludedir=$ac_optarg ;; | |
1114 | ||
1115 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1116 | ac_prev=prefix ;; | |
1117 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1118 | prefix=$ac_optarg ;; | |
1119 | ||
1120 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1121 | | --program-pre | --program-pr | --program-p) | |
1122 | ac_prev=program_prefix ;; | |
1123 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1124 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1125 | program_prefix=$ac_optarg ;; | |
1126 | ||
1127 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1128 | | --program-suf | --program-su | --program-s) | |
1129 | ac_prev=program_suffix ;; | |
1130 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1131 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1132 | program_suffix=$ac_optarg ;; | |
1133 | ||
1134 | -program-transform-name | --program-transform-name \ | |
1135 | | --program-transform-nam | --program-transform-na \ | |
1136 | | --program-transform-n | --program-transform- \ | |
1137 | | --program-transform | --program-transfor \ | |
1138 | | --program-transfo | --program-transf \ | |
1139 | | --program-trans | --program-tran \ | |
1140 | | --progr-tra | --program-tr | --program-t) | |
1141 | ac_prev=program_transform_name ;; | |
1142 | -program-transform-name=* | --program-transform-name=* \ | |
1143 | | --program-transform-nam=* | --program-transform-na=* \ | |
1144 | | --program-transform-n=* | --program-transform-=* \ | |
1145 | | --program-transform=* | --program-transfor=* \ | |
1146 | | --program-transfo=* | --program-transf=* \ | |
1147 | | --program-trans=* | --program-tran=* \ | |
1148 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1149 | program_transform_name=$ac_optarg ;; | |
1150 | ||
631ef239 AC |
1151 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1152 | ac_prev=pdfdir ;; | |
1153 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1154 | pdfdir=$ac_optarg ;; | |
1155 | ||
1156 | -psdir | --psdir | --psdi | --psd | --ps) | |
1157 | ac_prev=psdir ;; | |
1158 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1159 | psdir=$ac_optarg ;; | |
1160 | ||
212380e3 AC |
1161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1162 | | -silent | --silent | --silen | --sile | --sil) | |
1163 | silent=yes ;; | |
1164 | ||
1165 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1166 | ac_prev=sbindir ;; | |
1167 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1168 | | --sbi=* | --sb=*) | |
1169 | sbindir=$ac_optarg ;; | |
1170 | ||
1171 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1172 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1173 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1174 | | --sha | --sh) | |
1175 | ac_prev=sharedstatedir ;; | |
1176 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1177 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1178 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1179 | | --sha=* | --sh=*) | |
1180 | sharedstatedir=$ac_optarg ;; | |
1181 | ||
1182 | -site | --site | --sit) | |
1183 | ac_prev=site ;; | |
1184 | -site=* | --site=* | --sit=*) | |
1185 | site=$ac_optarg ;; | |
1186 | ||
1187 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1188 | ac_prev=srcdir ;; | |
1189 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1190 | srcdir=$ac_optarg ;; | |
1191 | ||
1192 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1193 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1194 | ac_prev=sysconfdir ;; | |
1195 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1196 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1197 | sysconfdir=$ac_optarg ;; | |
1198 | ||
1199 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1200 | ac_prev=target_alias ;; | |
1201 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1202 | target_alias=$ac_optarg ;; | |
1203 | ||
1204 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1205 | verbose=yes ;; | |
1206 | ||
1207 | -version | --version | --versio | --versi | --vers | -V) | |
1208 | ac_init_version=: ;; | |
1209 | ||
1210 | -with-* | --with-*) | |
7083c021 | 1211 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1212 | # Reject names that are not valid shell variable names. |
7083c021 | 1213 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1214 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1215 | ac_useropt_orig=$ac_useropt |
1216 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1217 | case $ac_user_opts in | |
1218 | *" | |
1219 | "with_$ac_useropt" | |
1220 | "*) ;; | |
1221 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1222 | ac_unrecognized_sep=', ';; | |
1223 | esac | |
1224 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1225 | |
1226 | -without-* | --without-*) | |
7083c021 | 1227 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1228 | # Reject names that are not valid shell variable names. |
7083c021 | 1229 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1230 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1231 | ac_useropt_orig=$ac_useropt |
1232 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1233 | case $ac_user_opts in | |
1234 | *" | |
1235 | "with_$ac_useropt" | |
1236 | "*) ;; | |
1237 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1238 | ac_unrecognized_sep=', ';; | |
1239 | esac | |
1240 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1241 | |
1242 | --x) | |
1243 | # Obsolete; use --with-x. | |
1244 | with_x=yes ;; | |
1245 | ||
1246 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1247 | | --x-incl | --x-inc | --x-in | --x-i) | |
1248 | ac_prev=x_includes ;; | |
1249 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1250 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1251 | x_includes=$ac_optarg ;; | |
1252 | ||
1253 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1254 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1255 | ac_prev=x_libraries ;; | |
1256 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1257 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1258 | x_libraries=$ac_optarg ;; | |
1259 | ||
b6d0720c AC |
1260 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1261 | Try \`$0 --help' for more information" | |
212380e3 AC |
1262 | ;; |
1263 | ||
1264 | *=*) | |
1265 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1266 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1267 | case $ac_envvar in #( |
1268 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1269 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1270 | esac |
631ef239 | 1271 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1272 | export $ac_envvar ;; |
1273 | ||
1274 | *) | |
1275 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1276 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1277 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1278 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1279 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1280 | ;; |
1281 | ||
1282 | esac | |
1283 | done | |
1284 | ||
1285 | if test -n "$ac_prev"; then | |
1286 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1287 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1288 | fi |
1289 | ||
7083c021 AC |
1290 | if test -n "$ac_unrecognized_opts"; then |
1291 | case $enable_option_checking in | |
1292 | no) ;; | |
b6d0720c | 1293 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1294 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1295 | esac | |
1296 | fi | |
1297 | ||
1298 | # Check all directory arguments for consistency. | |
631ef239 AC |
1299 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1300 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1301 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1302 | libdir localedir mandir | |
212380e3 | 1303 | do |
631ef239 | 1304 | eval ac_val=\$$ac_var |
7083c021 AC |
1305 | # Remove trailing slashes. |
1306 | case $ac_val in | |
1307 | */ ) | |
1308 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1309 | eval $ac_var=\$ac_val;; | |
1310 | esac | |
1311 | # Be sure to have absolute directory names. | |
212380e3 | 1312 | case $ac_val in |
631ef239 AC |
1313 | [\\/$]* | ?:[\\/]* ) continue;; |
1314 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1315 | esac |
b6d0720c | 1316 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1317 | done |
1318 | ||
1319 | # There might be people who depend on the old broken behavior: `$host' | |
1320 | # used to hold the argument of --host etc. | |
1321 | # FIXME: To remove some day. | |
1322 | build=$build_alias | |
1323 | host=$host_alias | |
1324 | target=$target_alias | |
1325 | ||
1326 | # FIXME: To remove some day. | |
1327 | if test "x$host_alias" != x; then | |
1328 | if test "x$build_alias" = x; then | |
1329 | cross_compiling=maybe | |
212380e3 AC |
1330 | elif test "x$build_alias" != "x$host_alias"; then |
1331 | cross_compiling=yes | |
1332 | fi | |
1333 | fi | |
1334 | ||
1335 | ac_tool_prefix= | |
1336 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1337 | ||
1338 | test "$silent" = yes && exec 6>/dev/null | |
1339 | ||
1340 | ||
631ef239 AC |
1341 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1342 | ac_ls_di=`ls -di .` && | |
1343 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1344 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1345 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1346 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1347 | |
1348 | ||
1349 | # Find the source files, if location was not specified. | |
1350 | if test -z "$srcdir"; then | |
212380e3 | 1351 | ac_srcdir_defaulted=yes |
631ef239 | 1352 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1353 | ac_confdir=`$as_dirname -- "$as_myself" || |
1354 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1355 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1356 | X"$as_myself" : 'X\(//\)$' \| \ | |
1357 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1358 | $as_echo X"$as_myself" | | |
631ef239 AC |
1359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1360 | s//\1/ | |
1361 | q | |
1362 | } | |
1363 | /^X\(\/\/\)[^/].*/{ | |
1364 | s//\1/ | |
1365 | q | |
1366 | } | |
1367 | /^X\(\/\/\)$/{ | |
1368 | s//\1/ | |
1369 | q | |
1370 | } | |
1371 | /^X\(\/\).*/{ | |
1372 | s//\1/ | |
1373 | q | |
1374 | } | |
1375 | s/.*/./; q'` | |
212380e3 | 1376 | srcdir=$ac_confdir |
631ef239 | 1377 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1378 | srcdir=.. |
1379 | fi | |
1380 | else | |
1381 | ac_srcdir_defaulted=no | |
1382 | fi | |
631ef239 AC |
1383 | if test ! -r "$srcdir/$ac_unique_file"; then |
1384 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1385 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1386 | fi |
631ef239 AC |
1387 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1388 | ac_abs_confdir=`( | |
b6d0720c | 1389 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1390 | pwd)` |
1391 | # When building in place, set srcdir=. | |
1392 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1393 | srcdir=. | |
1394 | fi | |
1395 | # Remove unnecessary trailing slashes from srcdir. | |
1396 | # Double slashes in file names in object file debugging info | |
1397 | # mess up M-x gdb in Emacs. | |
1398 | case $srcdir in | |
1399 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1400 | esac | |
1401 | for ac_var in $ac_precious_vars; do | |
1402 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1403 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1404 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1405 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1406 | done | |
212380e3 AC |
1407 | |
1408 | # | |
1409 | # Report the --help message. | |
1410 | # | |
1411 | if test "$ac_init_help" = "long"; then | |
1412 | # Omit some internal or obsolete options to make the list less imposing. | |
1413 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1414 | cat <<_ACEOF | |
c52df125 | 1415 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1416 | |
1417 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1418 | ||
1419 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1420 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1421 | ||
1422 | Defaults for the options are specified in brackets. | |
1423 | ||
1424 | Configuration: | |
1425 | -h, --help display this help and exit | |
1426 | --help=short display options specific to this package | |
1427 | --help=recursive display the short help of all the included packages | |
1428 | -V, --version display version information and exit | |
b6d0720c | 1429 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1430 | --cache-file=FILE cache test results in FILE [disabled] |
1431 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1432 | -n, --no-create do not create output files | |
1433 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1434 | ||
212380e3 AC |
1435 | Installation directories: |
1436 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1437 | [$ac_default_prefix] |
212380e3 | 1438 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1439 | [PREFIX] |
212380e3 AC |
1440 | |
1441 | By default, \`make install' will install all the files in | |
1442 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1443 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1444 | for instance \`--prefix=\$HOME'. | |
1445 | ||
1446 | For better control, use the options below. | |
1447 | ||
1448 | Fine tuning of the installation directories: | |
7083c021 AC |
1449 | --bindir=DIR user executables [EPREFIX/bin] |
1450 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1451 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1452 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1453 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1454 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1455 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1456 | --includedir=DIR C header files [PREFIX/include] | |
1457 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1458 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1459 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1460 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1461 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1462 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1463 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1464 | --htmldir=DIR html documentation [DOCDIR] | |
1465 | --dvidir=DIR dvi documentation [DOCDIR] | |
1466 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1467 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1468 | _ACEOF |
1469 | ||
1470 | cat <<\_ACEOF | |
c52df125 AC |
1471 | |
1472 | Program names: | |
1473 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1474 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1475 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1476 | ||
1477 | System types: | |
1478 | --build=BUILD configure for building on BUILD [guessed] | |
1479 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
212380e3 AC |
1480 | _ACEOF |
1481 | fi | |
1482 | ||
1483 | if test -n "$ac_init_help"; then | |
1484 | case $ac_init_help in | |
c52df125 | 1485 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; |
212380e3 AC |
1486 | esac |
1487 | cat <<\_ACEOF | |
1488 | ||
1489 | Optional Features: | |
7083c021 | 1490 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1491 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1492 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c52df125 AC |
1493 | --enable-dependency-tracking |
1494 | do not reject slow dependency extractors | |
1495 | --disable-dependency-tracking | |
1496 | speeds up one-time build | |
eec2776c AJ |
1497 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1498 | --disable-silent-rules verbose build output (undo: "make V=0") | |
c52df125 AC |
1499 | --enable-static[=PKGS] build static libraries [default=no] |
1500 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1501 | --enable-fast-install[=PKGS] | |
1502 | optimize for fast installation [default=yes] | |
1503 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1504 | --enable-ltdl-install install libltdl | |
6929cd01 | 1505 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1506 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1507 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1508 | --disable-openssl Disable OpenSSL support. |
1509 | --disable-zlib Disable ziplinks support | |
212380e3 AC |
1510 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1511 | hard(aborts the daemon) | |
212380e3 | 1512 | --enable-profile Enable profiling |
212380e3 AC |
1513 | --enable-warnings Enable all sorts of warnings for debugging. |
1514 | ||
1515 | Optional Packages: | |
1516 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1517 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
c52df125 AC |
1518 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1519 | both] | |
1520 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1521 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1522 | (or the compiler's sysroot if not specified). | |
1523 | --with-included-ltdl use the GNU ltdl sources included here | |
1524 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1525 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
212380e3 | 1526 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
a6ef3156 | 1527 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1528 | --with-confdir=DIR Directory to install config files [deprecated, use |
1529 | --sysconfdir instead]. | |
212380e3 AC |
1530 | --with-logdir=DIR Directory where to write logfiles. |
1531 | --with-helpdir=DIR Directory to install help files. | |
1532 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1533 | --with-rundir=DIR Directory in which to store pidfile. |
1534 | --with-program-prefix= If set, programs installed into PATH will be | |
1535 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1536 | --with-custom-branding=NAME |
1537 | Custom branding name. | |
1538 | --with-custom-version=NAME | |
1539 | Custom version branding. | |
b583faf9 | 1540 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1541 | 31, max 50) |
212380e3 AC |
1542 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1543 | 390) | |
212380e3 AC |
1544 | |
1545 | Some influential environment variables: | |
1546 | CC C compiler command | |
1547 | CFLAGS C compiler flags | |
1548 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1549 | nonstandard directory <lib dir> | |
631ef239 | 1550 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1551 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1552 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1553 | CPP C preprocessor |
b6d0720c AC |
1554 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1555 | Defaults to the first program found out of: `bison -y', `byacc', | |
1556 | `yacc'. | |
631ef239 AC |
1557 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1558 | This script will default YFLAGS to the empty string to avoid a | |
1559 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1560 | PKG_CONFIG path to pkg-config utility |
1561 | PKG_CONFIG_PATH | |
1562 | directories to add to pkg-config's search path | |
1563 | PKG_CONFIG_LIBDIR | |
1564 | path overriding pkg-config's built-in search path | |
1565 | SQLITE_CFLAGS | |
1566 | C compiler flags for SQLITE, overriding pkg-config | |
1567 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1568 | |
1569 | Use these variables to override the choices made by `configure' or to help | |
1570 | it to find libraries and programs with nonstandard names/locations. | |
1571 | ||
7083c021 | 1572 | Report bugs to the package provider. |
212380e3 | 1573 | _ACEOF |
631ef239 | 1574 | ac_status=$? |
212380e3 AC |
1575 | fi |
1576 | ||
1577 | if test "$ac_init_help" = "recursive"; then | |
1578 | # If there are subdirs, report their specific --help. | |
212380e3 | 1579 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1580 | test -d "$ac_dir" || |
1581 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1582 | continue | |
212380e3 AC |
1583 | ac_builddir=. |
1584 | ||
631ef239 AC |
1585 | case "$ac_dir" in |
1586 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1587 | *) | |
7083c021 | 1588 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1589 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1590 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1591 | case $ac_top_builddir_sub in |
1592 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1593 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1594 | esac ;; | |
1595 | esac | |
1596 | ac_abs_top_builddir=$ac_pwd | |
1597 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1598 | # for backward compatibility: | |
1599 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1600 | |
1601 | case $srcdir in | |
631ef239 | 1602 | .) # We are building in place. |
212380e3 | 1603 | ac_srcdir=. |
631ef239 AC |
1604 | ac_top_srcdir=$ac_top_builddir_sub |
1605 | ac_abs_top_srcdir=$ac_pwd ;; | |
1606 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1607 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1608 | ac_top_srcdir=$srcdir |
1609 | ac_abs_top_srcdir=$srcdir ;; | |
1610 | *) # Relative name. | |
1611 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1612 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1613 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1614 | esac |
631ef239 AC |
1615 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1616 | ||
1617 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1618 | # Check for guested configure. | |
1619 | if test -f "$ac_srcdir/configure.gnu"; then | |
1620 | echo && | |
1621 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1622 | elif test -f "$ac_srcdir/configure"; then | |
1623 | echo && | |
1624 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1625 | else |
7083c021 | 1626 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1627 | fi || ac_status=$? |
1628 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1629 | done |
1630 | fi | |
1631 | ||
631ef239 | 1632 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1633 | if $ac_init_version; then |
1634 | cat <<\_ACEOF | |
c52df125 | 1635 | charybdis configure 3.6.0-dev |
2eff3833 | 1636 | generated by GNU Autoconf 2.69 |
212380e3 | 1637 | |
2eff3833 | 1638 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1639 | This configure script is free software; the Free Software Foundation |
1640 | gives unlimited permission to copy, distribute and modify it. | |
212380e3 | 1641 | _ACEOF |
631ef239 | 1642 | exit |
212380e3 | 1643 | fi |
212380e3 | 1644 | |
7083c021 AC |
1645 | ## ------------------------ ## |
1646 | ## Autoconf initialization. ## | |
1647 | ## ------------------------ ## | |
212380e3 | 1648 | |
7083c021 AC |
1649 | # ac_fn_c_try_compile LINENO |
1650 | # -------------------------- | |
1651 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1652 | ac_fn_c_try_compile () | |
1653 | { | |
1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1655 | rm -f conftest.$ac_objext | |
1656 | if { { ac_try="$ac_compile" | |
1657 | case "(($ac_try" in | |
1658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1659 | *) ac_try_echo=$ac_try;; | |
1660 | esac | |
1661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1662 | $as_echo "$ac_try_echo"; } >&5 | |
1663 | (eval "$ac_compile") 2>conftest.err | |
1664 | ac_status=$? | |
1665 | if test -s conftest.err; then | |
1666 | grep -v '^ *+' conftest.err >conftest.er1 | |
1667 | cat conftest.er1 >&5 | |
1668 | mv -f conftest.er1 conftest.err | |
1669 | fi | |
1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1671 | test $ac_status = 0; } && { | |
1672 | test -z "$ac_c_werror_flag" || | |
1673 | test ! -s conftest.err | |
1674 | } && test -s conftest.$ac_objext; then : | |
1675 | ac_retval=0 | |
1676 | else | |
1677 | $as_echo "$as_me: failed program was:" >&5 | |
1678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1679 | |
7083c021 AC |
1680 | ac_retval=1 |
1681 | fi | |
b6d0720c | 1682 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1683 | as_fn_set_status $ac_retval |
7083c021 AC |
1684 | |
1685 | } # ac_fn_c_try_compile | |
1686 | ||
eec2776c AJ |
1687 | # ac_fn_c_try_cpp LINENO |
1688 | # ---------------------- | |
1689 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1690 | ac_fn_c_try_cpp () | |
212380e3 | 1691 | { |
7083c021 | 1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
eec2776c | 1693 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
7083c021 AC |
1694 | case "(($ac_try" in |
1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1696 | *) ac_try_echo=$ac_try;; | |
1697 | esac | |
1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1699 | $as_echo "$ac_try_echo"; } >&5 | |
eec2776c | 1700 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
7083c021 AC |
1701 | ac_status=$? |
1702 | if test -s conftest.err; then | |
1703 | grep -v '^ *+' conftest.err >conftest.er1 | |
1704 | cat conftest.er1 >&5 | |
1705 | mv -f conftest.er1 conftest.err | |
1706 | fi | |
1707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
1708 | test $ac_status = 0; } > conftest.i && { |
1709 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7083c021 AC |
1710 | test ! -s conftest.err |
1711 | }; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: failed program was:" >&5 | |
1715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1716 | |
eec2776c | 1717 | ac_retval=1 |
7083c021 | 1718 | fi |
b6d0720c | 1719 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1720 | as_fn_set_status $ac_retval |
212380e3 | 1721 | |
eec2776c | 1722 | } # ac_fn_c_try_cpp |
212380e3 | 1723 | |
eec2776c | 1724 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
7083c021 | 1725 | # ------------------------------------------------------- |
eec2776c AJ |
1726 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1727 | # the include files in INCLUDES and setting the cache variable VAR | |
1728 | # accordingly. | |
1729 | ac_fn_c_check_header_mongrel () | |
7083c021 AC |
1730 | { |
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
eec2776c | 1732 | if eval \${$3+:} false; then : |
7083c021 AC |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1734 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1735 | if eval \${$3+:} false; then : |
7083c021 | 1736 | $as_echo_n "(cached) " >&6 |
eec2776c AJ |
1737 | fi |
1738 | eval ac_res=\$$3 | |
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1740 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1741 | else |
eec2776c AJ |
1742 | # Is the header compilable? |
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1744 | $as_echo_n "checking $2 usability... " >&6; } | |
1745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 AC |
1746 | /* end confdefs.h. */ |
1747 | $4 | |
1748 | #include <$2> | |
1749 | _ACEOF | |
1750 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c | 1751 | ac_header_compiler=yes |
7083c021 | 1752 | else |
eec2776c | 1753 | ac_header_compiler=no |
7083c021 AC |
1754 | fi |
1755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1757 | $as_echo "$ac_header_compiler" >&6; } | |
c52df125 | 1758 | |
eec2776c AJ |
1759 | # Is the header present? |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1761 | $as_echo_n "checking $2 presence... " >&6; } | |
1762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1763 | /* end confdefs.h. */ | |
1764 | #include <$2> | |
1765 | _ACEOF | |
1766 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1767 | ac_header_preproc=yes | |
1768 | else | |
1769 | ac_header_preproc=no | |
1770 | fi | |
1771 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1773 | $as_echo "$ac_header_preproc" >&6; } | |
c52df125 | 1774 | |
eec2776c AJ |
1775 | # So? What about this header? |
1776 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1777 | yes:no: ) | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1779 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1781 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1782 | ;; | |
1783 | no:yes:* ) | |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1785 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1789 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1791 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1793 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1794 | ;; | |
c52df125 | 1795 | esac |
eec2776c AJ |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1797 | $as_echo_n "checking for $2... " >&6; } | |
1798 | if eval \${$3+:} false; then : | |
1799 | $as_echo_n "(cached) " >&6 | |
c52df125 | 1800 | else |
eec2776c AJ |
1801 | eval "$3=\$ac_header_compiler" |
1802 | fi | |
1803 | eval ac_res=\$$3 | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1805 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1806 | fi |
b6d0720c | 1807 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1808 | |
eec2776c | 1809 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1810 | |
7083c021 AC |
1811 | # ac_fn_c_try_run LINENO |
1812 | # ---------------------- | |
1813 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1814 | # that executables *can* be run. | |
1815 | ac_fn_c_try_run () | |
1816 | { | |
1817 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1818 | if { { ac_try="$ac_link" | |
1819 | case "(($ac_try" in | |
1820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1821 | *) ac_try_echo=$ac_try;; | |
1822 | esac | |
1823 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1824 | $as_echo "$ac_try_echo"; } >&5 | |
1825 | (eval "$ac_link") 2>&5 | |
1826 | ac_status=$? | |
1827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1828 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1829 | { { case "(($ac_try" in | |
1830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1831 | *) ac_try_echo=$ac_try;; | |
1832 | esac | |
1833 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1834 | $as_echo "$ac_try_echo"; } >&5 | |
1835 | (eval "$ac_try") 2>&5 | |
1836 | ac_status=$? | |
1837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1838 | test $ac_status = 0; }; }; then : | |
1839 | ac_retval=0 | |
1840 | else | |
1841 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1842 | $as_echo "$as_me: failed program was:" >&5 | |
1843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1844 | |
7083c021 AC |
1845 | ac_retval=$ac_status |
1846 | fi | |
1847 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1848 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1849 | as_fn_set_status $ac_retval |
212380e3 | 1850 | |
7083c021 | 1851 | } # ac_fn_c_try_run |
212380e3 | 1852 | |
eec2776c AJ |
1853 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1854 | # ------------------------------------------------------- | |
1855 | # Tests whether HEADER exists and can be compiled using the include files in | |
1856 | # INCLUDES, setting the cache variable VAR accordingly. | |
1857 | ac_fn_c_check_header_compile () | |
1858 | { | |
1859 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1861 | $as_echo_n "checking for $2... " >&6; } | |
1862 | if eval \${$3+:} false; then : | |
1863 | $as_echo_n "(cached) " >&6 | |
1864 | else | |
1865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1866 | /* end confdefs.h. */ | |
1867 | $4 | |
1868 | #include <$2> | |
1869 | _ACEOF | |
1870 | if ac_fn_c_try_compile "$LINENO"; then : | |
1871 | eval "$3=yes" | |
1872 | else | |
1873 | eval "$3=no" | |
1874 | fi | |
1875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1876 | fi | |
1877 | eval ac_res=\$$3 | |
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1879 | $as_echo "$ac_res" >&6; } | |
1880 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1881 | ||
1882 | } # ac_fn_c_check_header_compile | |
1883 | ||
1884 | # ac_fn_c_try_link LINENO | |
1885 | # ----------------------- | |
1886 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1887 | ac_fn_c_try_link () | |
1888 | { | |
1889 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1891 | if { { ac_try="$ac_link" | |
1892 | case "(($ac_try" in | |
1893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1894 | *) ac_try_echo=$ac_try;; | |
1895 | esac | |
1896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1897 | $as_echo "$ac_try_echo"; } >&5 | |
1898 | (eval "$ac_link") 2>conftest.err | |
1899 | ac_status=$? | |
1900 | if test -s conftest.err; then | |
1901 | grep -v '^ *+' conftest.err >conftest.er1 | |
1902 | cat conftest.er1 >&5 | |
1903 | mv -f conftest.er1 conftest.err | |
1904 | fi | |
1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1906 | test $ac_status = 0; } && { | |
1907 | test -z "$ac_c_werror_flag" || | |
1908 | test ! -s conftest.err | |
1909 | } && test -s conftest$ac_exeext && { | |
1910 | test "$cross_compiling" = yes || | |
1911 | test -x conftest$ac_exeext | |
1912 | }; then : | |
1913 | ac_retval=0 | |
1914 | else | |
1915 | $as_echo "$as_me: failed program was:" >&5 | |
1916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1917 | ||
1918 | ac_retval=1 | |
1919 | fi | |
1920 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1921 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1922 | # interfere with the next link command; also delete a directory that is | |
1923 | # left behind by Apple's compiler. We do this before executing the actions. | |
1924 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1925 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1926 | as_fn_set_status $ac_retval | |
1927 | ||
1928 | } # ac_fn_c_try_link | |
1929 | ||
c52df125 AC |
1930 | # ac_fn_c_check_func LINENO FUNC VAR |
1931 | # ---------------------------------- | |
1932 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1933 | ac_fn_c_check_func () | |
7083c021 AC |
1934 | { |
1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1937 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1938 | if eval \${$3+:} false; then : |
7083c021 AC |
1939 | $as_echo_n "(cached) " >&6 |
1940 | else | |
1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1942 | /* end confdefs.h. */ | |
c52df125 AC |
1943 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1945 | #define $2 innocuous_$2 | |
1946 | ||
1947 | /* System header to define __stub macros and hopefully few prototypes, | |
1948 | which can conflict with char $2 (); below. | |
1949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1950 | <limits.h> exists even on freestanding compilers. */ | |
1951 | ||
1952 | #ifdef __STDC__ | |
1953 | # include <limits.h> | |
1954 | #else | |
1955 | # include <assert.h> | |
1956 | #endif | |
1957 | ||
1958 | #undef $2 | |
1959 | ||
1960 | /* Override any GCC internal prototype to avoid an error. | |
1961 | Use char because int might match the return type of a GCC | |
1962 | builtin and then its argument prototype would still apply. */ | |
1963 | #ifdef __cplusplus | |
1964 | extern "C" | |
1965 | #endif | |
1966 | char $2 (); | |
1967 | /* The GNU C library defines this for functions which it implements | |
1968 | to always fail with ENOSYS. Some functions are actually named | |
1969 | something starting with __ and the normal name is an alias. */ | |
1970 | #if defined __stub_$2 || defined __stub___$2 | |
1971 | choke me | |
1972 | #endif | |
1973 | ||
1974 | int | |
1975 | main () | |
1976 | { | |
1977 | return $2 (); | |
1978 | ; | |
1979 | return 0; | |
1980 | } | |
1981 | _ACEOF | |
1982 | if ac_fn_c_try_link "$LINENO"; then : | |
1983 | eval "$3=yes" | |
1984 | else | |
1985 | eval "$3=no" | |
1986 | fi | |
1987 | rm -f core conftest.err conftest.$ac_objext \ | |
1988 | conftest$ac_exeext conftest.$ac_ext | |
1989 | fi | |
1990 | eval ac_res=\$$3 | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1992 | $as_echo "$ac_res" >&6; } | |
1993 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1994 | ||
1995 | } # ac_fn_c_check_func | |
1996 | ||
1997 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1998 | # --------------------------------------------- | |
1999 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2000 | # accordingly. | |
2001 | ac_fn_c_check_decl () | |
2002 | { | |
2003 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2004 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2005 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2007 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2008 | if eval \${$3+:} false; then : | |
2009 | $as_echo_n "(cached) " >&6 | |
2010 | else | |
2011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2012 | /* end confdefs.h. */ | |
7083c021 | 2013 | $4 |
c52df125 AC |
2014 | int |
2015 | main () | |
2016 | { | |
2017 | #ifndef $as_decl_name | |
2018 | #ifdef __cplusplus | |
2019 | (void) $as_decl_use; | |
2020 | #else | |
2021 | (void) $as_decl_name; | |
2022 | #endif | |
2023 | #endif | |
2024 | ||
2025 | ; | |
2026 | return 0; | |
2027 | } | |
212380e3 | 2028 | _ACEOF |
7083c021 AC |
2029 | if ac_fn_c_try_compile "$LINENO"; then : |
2030 | eval "$3=yes" | |
2031 | else | |
2032 | eval "$3=no" | |
2033 | fi | |
2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2035 | fi | |
2036 | eval ac_res=\$$3 | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2038 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2039 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2040 | |
c52df125 | 2041 | } # ac_fn_c_check_decl |
212380e3 | 2042 | |
c52df125 AC |
2043 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2044 | # ------------------------------------------- | |
2045 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2046 | # variable VAR accordingly. | |
2047 | ac_fn_c_check_type () | |
7083c021 AC |
2048 | { |
2049 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2051 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2052 | if eval \${$3+:} false; then : |
7083c021 | 2053 | $as_echo_n "(cached) " >&6 |
212380e3 | 2054 | else |
7083c021 AC |
2055 | eval "$3=no" |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2057 | /* end confdefs.h. */ | |
2058 | $4 | |
2059 | int | |
2060 | main () | |
2061 | { | |
2062 | if (sizeof ($2)) | |
2063 | return 0; | |
2064 | ; | |
2065 | return 0; | |
2066 | } | |
212380e3 | 2067 | _ACEOF |
7083c021 AC |
2068 | if ac_fn_c_try_compile "$LINENO"; then : |
2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2070 | /* end confdefs.h. */ |
7083c021 | 2071 | $4 |
212380e3 AC |
2072 | int |
2073 | main () | |
2074 | { | |
7083c021 AC |
2075 | if (sizeof (($2))) |
2076 | return 0; | |
212380e3 AC |
2077 | ; |
2078 | return 0; | |
2079 | } | |
2080 | _ACEOF | |
7083c021 | 2081 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 2082 | |
631ef239 | 2083 | else |
7083c021 | 2084 | eval "$3=yes" |
212380e3 | 2085 | fi |
7083c021 | 2086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2087 | fi |
7083c021 | 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2089 | fi |
7083c021 AC |
2090 | eval ac_res=\$$3 |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2092 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2093 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2094 | |
7083c021 AC |
2095 | } # ac_fn_c_check_type |
2096 | ||
2097 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2098 | # -------------------------------------------- | |
2099 | # Tries to find the compile-time value of EXPR in a program that includes | |
2100 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2101 | # computed | |
2102 | ac_fn_c_compute_int () | |
2103 | { | |
2104 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2105 | if test "$cross_compiling" = yes; then | |
2106 | # Depending upon the size, compute the lo and hi bounds. | |
2107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2108 | /* end confdefs.h. */ | |
2109 | $4 | |
2110 | int | |
2111 | main () | |
2112 | { | |
2113 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
2114 | test_array [0] = 0; |
2115 | return test_array [0]; | |
7083c021 AC |
2116 | |
2117 | ; | |
2118 | return 0; | |
2119 | } | |
212380e3 | 2120 | _ACEOF |
7083c021 AC |
2121 | if ac_fn_c_try_compile "$LINENO"; then : |
2122 | ac_lo=0 ac_mid=0 | |
2123 | while :; do | |
2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2125 | /* end confdefs.h. */ |
7083c021 AC |
2126 | $4 |
2127 | int | |
2128 | main () | |
2129 | { | |
2130 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2131 | test_array [0] = 0; |
2132 | return test_array [0]; | |
212380e3 | 2133 | |
7083c021 AC |
2134 | ; |
2135 | return 0; | |
2136 | } | |
212380e3 | 2137 | _ACEOF |
7083c021 AC |
2138 | if ac_fn_c_try_compile "$LINENO"; then : |
2139 | ac_hi=$ac_mid; break | |
212380e3 | 2140 | else |
7083c021 AC |
2141 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2142 | if test $ac_lo -le $ac_mid; then | |
2143 | ac_lo= ac_hi= | |
2144 | break | |
2145 | fi | |
2146 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 2147 | fi |
631ef239 | 2148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
2149 | done |
2150 | else | |
2151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2152 | /* end confdefs.h. */ | |
2153 | $4 | |
2154 | int | |
2155 | main () | |
2156 | { | |
2157 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
2158 | test_array [0] = 0; |
2159 | return test_array [0]; | |
212380e3 | 2160 | |
7083c021 AC |
2161 | ; |
2162 | return 0; | |
2163 | } | |
212380e3 | 2164 | _ACEOF |
7083c021 AC |
2165 | if ac_fn_c_try_compile "$LINENO"; then : |
2166 | ac_hi=-1 ac_mid=-1 | |
2167 | while :; do | |
2168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2169 | /* end confdefs.h. */ | |
2170 | $4 | |
2171 | int | |
2172 | main () | |
2173 | { | |
2174 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
2175 | test_array [0] = 0; |
2176 | return test_array [0]; | |
212380e3 | 2177 | |
7083c021 AC |
2178 | ; |
2179 | return 0; | |
2180 | } | |
2181 | _ACEOF | |
2182 | if ac_fn_c_try_compile "$LINENO"; then : | |
2183 | ac_lo=$ac_mid; break | |
2184 | else | |
2185 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2186 | if test $ac_mid -le $ac_hi; then | |
2187 | ac_lo= ac_hi= | |
2188 | break | |
2189 | fi | |
2190 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 2191 | fi |
7083c021 AC |
2192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2193 | done | |
212380e3 | 2194 | else |
7083c021 AC |
2195 | ac_lo= ac_hi= |
2196 | fi | |
2197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2198 | fi | |
2199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2200 | # Binary search between lo and hi bounds. | |
2201 | while test "x$ac_lo" != "x$ac_hi"; do | |
2202 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2204 | /* end confdefs.h. */ |
7083c021 AC |
2205 | $4 |
2206 | int | |
2207 | main () | |
2208 | { | |
2209 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2210 | test_array [0] = 0; |
2211 | return test_array [0]; | |
7083c021 AC |
2212 | |
2213 | ; | |
2214 | return 0; | |
2215 | } | |
212380e3 | 2216 | _ACEOF |
7083c021 AC |
2217 | if ac_fn_c_try_compile "$LINENO"; then : |
2218 | ac_hi=$ac_mid | |
212380e3 | 2219 | else |
7083c021 | 2220 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 2221 | fi |
7083c021 AC |
2222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2223 | done | |
2224 | case $ac_lo in #(( | |
2225 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2226 | '') ac_retval=1 ;; | |
2227 | esac | |
2228 | else | |
2229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2230 | /* end confdefs.h. */ | |
2231 | $4 | |
2232 | static long int longval () { return $2; } | |
2233 | static unsigned long int ulongval () { return $2; } | |
2234 | #include <stdio.h> | |
2235 | #include <stdlib.h> | |
2236 | int | |
2237 | main () | |
2238 | { | |
631ef239 | 2239 | |
7083c021 AC |
2240 | FILE *f = fopen ("conftest.val", "w"); |
2241 | if (! f) | |
2242 | return 1; | |
2243 | if (($2) < 0) | |
2244 | { | |
2245 | long int i = longval (); | |
2246 | if (i != ($2)) | |
2247 | return 1; | |
2248 | fprintf (f, "%ld", i); | |
2249 | } | |
2250 | else | |
2251 | { | |
2252 | unsigned long int i = ulongval (); | |
2253 | if (i != ($2)) | |
2254 | return 1; | |
2255 | fprintf (f, "%lu", i); | |
2256 | } | |
2257 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2258 | on some platforms. */ | |
2259 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2260 | |
7083c021 AC |
2261 | ; |
2262 | return 0; | |
2263 | } | |
212380e3 | 2264 | _ACEOF |
7083c021 AC |
2265 | if ac_fn_c_try_run "$LINENO"; then : |
2266 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2267 | else |
7083c021 | 2268 | ac_retval=1 |
212380e3 | 2269 | fi |
7083c021 AC |
2270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2271 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2272 | rm -f conftest.val | |
631ef239 | 2273 | |
7083c021 | 2274 | fi |
b6d0720c | 2275 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2276 | as_fn_set_status $ac_retval |
212380e3 | 2277 | |
7083c021 | 2278 | } # ac_fn_c_compute_int |
7083c021 AC |
2279 | cat >config.log <<_ACEOF |
2280 | This file contains any messages produced by compilers while | |
2281 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2282 | |
c52df125 | 2283 | It was created by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 2284 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2285 | |
7083c021 | 2286 | $ $0 $@ |
212380e3 | 2287 | |
7083c021 AC |
2288 | _ACEOF |
2289 | exec 5>>config.log | |
2290 | { | |
2291 | cat <<_ASUNAME | |
2292 | ## --------- ## | |
2293 | ## Platform. ## | |
2294 | ## --------- ## | |
2295 | ||
2296 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2297 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2298 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2299 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2300 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2301 | ||
2302 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2303 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2304 | ||
2305 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2306 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2307 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2308 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2309 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2310 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2311 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2312 | ||
2313 | _ASUNAME | |
212380e3 | 2314 | |
631ef239 | 2315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2316 | for as_dir in $PATH |
631ef239 AC |
2317 | do |
2318 | IFS=$as_save_IFS | |
2319 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2320 | $as_echo "PATH: $as_dir" |
631ef239 | 2321 | done |
631ef239 AC |
2322 | IFS=$as_save_IFS |
2323 | ||
7083c021 | 2324 | } >&5 |
631ef239 | 2325 | |
7083c021 | 2326 | cat >&5 <<_ACEOF |
631ef239 | 2327 | |
631ef239 | 2328 | |
7083c021 AC |
2329 | ## ----------- ## |
2330 | ## Core tests. ## | |
2331 | ## ----------- ## | |
631ef239 | 2332 | |
7083c021 | 2333 | _ACEOF |
631ef239 AC |
2334 | |
2335 | ||
7083c021 AC |
2336 | # Keep a trace of the command line. |
2337 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2338 | # Strip out --silent because we don't want to record it for future runs. | |
2339 | # Also quote any args containing shell meta-characters. | |
2340 | # Make two passes to allow for proper duplicate-argument suppression. | |
2341 | ac_configure_args= | |
2342 | ac_configure_args0= | |
2343 | ac_configure_args1= | |
2344 | ac_must_keep_next=false | |
2345 | for ac_pass in 1 2 | |
631ef239 | 2346 | do |
7083c021 | 2347 | for ac_arg |
631ef239 | 2348 | do |
7083c021 AC |
2349 | case $ac_arg in |
2350 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2351 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2352 | | -silent | --silent | --silen | --sile | --sil) | |
2353 | continue ;; | |
2354 | *\'*) | |
2355 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2356 | esac | |
2357 | case $ac_pass in | |
2358 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2359 | 2) | |
2360 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2361 | if test $ac_must_keep_next = true; then | |
2362 | ac_must_keep_next=false # Got value, back to normal. | |
2363 | else | |
2364 | case $ac_arg in | |
2365 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2366 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2367 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2368 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2369 | case "$ac_configure_args0 " in | |
2370 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2371 | esac | |
2372 | ;; | |
2373 | -* ) ac_must_keep_next=true ;; | |
2374 | esac | |
2375 | fi | |
2376 | as_fn_append ac_configure_args " '$ac_arg'" | |
2377 | ;; | |
2378 | esac | |
631ef239 AC |
2379 | done |
2380 | done | |
7083c021 AC |
2381 | { ac_configure_args0=; unset ac_configure_args0;} |
2382 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2383 | |
7083c021 AC |
2384 | # When interrupted or exit'd, cleanup temporary files, and complete |
2385 | # config.log. We remove comments because anyway the quotes in there | |
2386 | # would cause problems or look ugly. | |
2387 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2388 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2389 | trap 'exit_status=$? | |
2390 | # Save into config.log some information that might help in debugging. | |
2391 | { | |
2392 | echo | |
631ef239 | 2393 | |
b6d0720c | 2394 | $as_echo "## ---------------- ## |
7083c021 | 2395 | ## Cache variables. ## |
b6d0720c | 2396 | ## ---------------- ##" |
7083c021 AC |
2397 | echo |
2398 | # The following way of writing the cache mishandles newlines in values, | |
2399 | ( | |
2400 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2401 | eval ac_val=\$$ac_var | |
2402 | case $ac_val in #( | |
2403 | *${as_nl}*) | |
2404 | case $ac_var in #( | |
2405 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2406 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2407 | esac | |
2408 | case $ac_var in #( | |
2409 | _ | IFS | as_nl) ;; #( | |
2410 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2411 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2412 | esac ;; | |
2413 | esac | |
2414 | done | |
2415 | (set) 2>&1 | | |
2416 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2417 | *${as_nl}ac_space=\ *) | |
2418 | sed -n \ | |
2419 | "s/'\''/'\''\\\\'\'''\''/g; | |
2420 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2421 | ;; #( | |
2422 | *) | |
2423 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2424 | ;; | |
2425 | esac | | |
2426 | sort | |
2427 | ) | |
2428 | echo | |
631ef239 | 2429 | |
b6d0720c | 2430 | $as_echo "## ----------------- ## |
7083c021 | 2431 | ## Output variables. ## |
b6d0720c | 2432 | ## ----------------- ##" |
7083c021 AC |
2433 | echo |
2434 | for ac_var in $ac_subst_vars | |
2435 | do | |
2436 | eval ac_val=\$$ac_var | |
2437 | case $ac_val in | |
2438 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2439 | esac | |
2440 | $as_echo "$ac_var='\''$ac_val'\''" | |
2441 | done | sort | |
2442 | echo | |
631ef239 | 2443 | |
7083c021 | 2444 | if test -n "$ac_subst_files"; then |
b6d0720c | 2445 | $as_echo "## ------------------- ## |
7083c021 | 2446 | ## File substitutions. ## |
b6d0720c | 2447 | ## ------------------- ##" |
7083c021 AC |
2448 | echo |
2449 | for ac_var in $ac_subst_files | |
2450 | do | |
2451 | eval ac_val=\$$ac_var | |
2452 | case $ac_val in | |
2453 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2454 | esac | |
2455 | $as_echo "$ac_var='\''$ac_val'\''" | |
2456 | done | sort | |
2457 | echo | |
2458 | fi | |
631ef239 | 2459 | |
7083c021 | 2460 | if test -s confdefs.h; then |
b6d0720c | 2461 | $as_echo "## ----------- ## |
7083c021 | 2462 | ## confdefs.h. ## |
b6d0720c | 2463 | ## ----------- ##" |
7083c021 AC |
2464 | echo |
2465 | cat confdefs.h | |
2466 | echo | |
2467 | fi | |
2468 | test "$ac_signal" != 0 && | |
2469 | $as_echo "$as_me: caught signal $ac_signal" | |
2470 | $as_echo "$as_me: exit $exit_status" | |
2471 | } >&5 | |
2472 | rm -f core *.core core.conftest.* && | |
2473 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2474 | exit $exit_status | |
2475 | ' 0 | |
2476 | for ac_signal in 1 2 13 15; do | |
2477 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2478 | done | |
2479 | ac_signal=0 | |
631ef239 | 2480 | |
7083c021 AC |
2481 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2482 | rm -f -r conftest* confdefs.h | |
631ef239 | 2483 | |
7083c021 | 2484 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2485 | |
7083c021 | 2486 | # Predefined preprocessor variables. |
212380e3 | 2487 | |
7083c021 AC |
2488 | cat >>confdefs.h <<_ACEOF |
2489 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2490 | _ACEOF |
212380e3 | 2491 | |
7083c021 AC |
2492 | cat >>confdefs.h <<_ACEOF |
2493 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2494 | _ACEOF |
212380e3 | 2495 | |
7083c021 AC |
2496 | cat >>confdefs.h <<_ACEOF |
2497 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2498 | _ACEOF |
212380e3 | 2499 | |
7083c021 AC |
2500 | cat >>confdefs.h <<_ACEOF |
2501 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2502 | _ACEOF | |
212380e3 | 2503 | |
7083c021 AC |
2504 | cat >>confdefs.h <<_ACEOF |
2505 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2506 | _ACEOF | |
212380e3 | 2507 | |
7083c021 AC |
2508 | cat >>confdefs.h <<_ACEOF |
2509 | #define PACKAGE_URL "$PACKAGE_URL" | |
2510 | _ACEOF | |
212380e3 | 2511 | |
631ef239 | 2512 | |
7083c021 AC |
2513 | # Let the site file select an alternate cache file if it wants to. |
2514 | # Prefer an explicitly selected file to automatically selected ones. | |
2515 | ac_site_file1=NONE | |
2516 | ac_site_file2=NONE | |
2517 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2518 | # We do not want a PATH search for config.site. |
2519 | case $CONFIG_SITE in #(( | |
2520 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2521 | */*) ac_site_file1=$CONFIG_SITE;; | |
2522 | *) ac_site_file1=./$CONFIG_SITE;; | |
2523 | esac | |
7083c021 AC |
2524 | elif test "x$prefix" != xNONE; then |
2525 | ac_site_file1=$prefix/share/config.site | |
2526 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2527 | else |
7083c021 AC |
2528 | ac_site_file1=$ac_default_prefix/share/config.site |
2529 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2530 | fi | |
2531 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2532 | do |
7083c021 | 2533 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2534 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2536 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2537 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2538 | . "$ac_site_file" \ |
2539 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2541 | as_fn_error $? "failed to load site script $ac_site_file | |
2542 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2543 | fi |
2544 | done | |
212380e3 | 2545 | |
7083c021 | 2546 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2547 | # Some versions of bash will fail to source /dev/null (special files |
2548 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2549 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2551 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2552 | case $cache_file in | |
2553 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2554 | *) . "./$cache_file";; | |
2555 | esac | |
2556 | fi | |
212380e3 | 2557 | else |
7083c021 AC |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2559 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2560 | >$cache_file | |
212380e3 AC |
2561 | fi |
2562 | ||
7083c021 AC |
2563 | # Check that the precious variables saved in the cache have kept the same |
2564 | # value. | |
2565 | ac_cache_corrupted=false | |
2566 | for ac_var in $ac_precious_vars; do | |
2567 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2568 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2569 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2570 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2571 | case $ac_old_set,$ac_new_set in | |
2572 | set,) | |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2574 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2575 | ac_cache_corrupted=: ;; | |
2576 | ,set) | |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2578 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2579 | ac_cache_corrupted=: ;; | |
2580 | ,);; | |
2581 | *) | |
2582 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2583 | # differences in whitespace do not lead to failure. | |
2584 | ac_old_val_w=`echo x $ac_old_val` | |
2585 | ac_new_val_w=`echo x $ac_new_val` | |
2586 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2588 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2589 | ac_cache_corrupted=: | |
2590 | else | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2592 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2593 | eval $ac_var=\$ac_old_val | |
2594 | fi | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2596 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2598 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2599 | fi;; | |
2600 | esac | |
2601 | # Pass precious variables to config.status. | |
2602 | if test "$ac_new_set" = set; then | |
2603 | case $ac_new_val in | |
2604 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2605 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2606 | esac | |
2607 | case " $ac_configure_args " in | |
2608 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2609 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2610 | esac | |
212380e3 AC |
2611 | fi |
2612 | done | |
7083c021 AC |
2613 | if $ac_cache_corrupted; then |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2615 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2617 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2618 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2619 | fi |
7083c021 AC |
2620 | ## -------------------- ## |
2621 | ## Main body of script. ## | |
2622 | ## -------------------- ## | |
212380e3 | 2623 | |
7083c021 AC |
2624 | ac_ext=c |
2625 | ac_cpp='$CPP $CPPFLAGS' | |
2626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2629 | |
212380e3 | 2630 | |
212380e3 | 2631 | |
eec2776c AJ |
2632 | ac_ext=c |
2633 | ac_cpp='$CPP $CPPFLAGS' | |
2634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2637 | |
c52df125 | 2638 | ac_aux_dir= |
eec2776c | 2639 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
c52df125 AC |
2640 | if test -f "$ac_dir/install-sh"; then |
2641 | ac_aux_dir=$ac_dir | |
2642 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2643 | break | |
2644 | elif test -f "$ac_dir/install.sh"; then | |
2645 | ac_aux_dir=$ac_dir | |
2646 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2647 | break | |
2648 | elif test -f "$ac_dir/shtool"; then | |
2649 | ac_aux_dir=$ac_dir | |
2650 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2651 | break | |
212380e3 AC |
2652 | fi |
2653 | done | |
c52df125 | 2654 | if test -z "$ac_aux_dir"; then |
eec2776c | 2655 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
212380e3 AC |
2656 | fi |
2657 | ||
c52df125 AC |
2658 | # These three variables are undocumented and unsupported, |
2659 | # and are intended to be withdrawn in a future Autoconf release. | |
2660 | # They can cause serious problems if a builder's source tree is in a directory | |
2661 | # whose full name contains unusual characters. | |
2662 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2663 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2664 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
631ef239 | 2665 | |
c52df125 | 2666 | |
eec2776c AJ |
2667 | # Expand $ac_aux_dir to an absolute path. |
2668 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
c52df125 | 2669 | |
eec2776c AJ |
2670 | ac_ext=c |
2671 | ac_cpp='$CPP $CPPFLAGS' | |
2672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2675 | if test -n "$ac_tool_prefix"; then | |
2676 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2677 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2679 | $as_echo_n "checking for $ac_word... " >&6; } | |
2680 | if ${ac_cv_prog_CC+:} false; then : | |
7083c021 | 2681 | $as_echo_n "(cached) " >&6 |
212380e3 | 2682 | else |
eec2776c AJ |
2683 | if test -n "$CC"; then |
2684 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2685 | else | |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2687 | for as_dir in $PATH |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
2692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2693 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2695 | break 2 | |
2696 | fi | |
2697 | done | |
7083c021 | 2698 | done |
631ef239 | 2699 | IFS=$as_save_IFS |
212380e3 | 2700 | |
212380e3 | 2701 | fi |
7083c021 | 2702 | fi |
eec2776c AJ |
2703 | CC=$ac_cv_prog_CC |
2704 | if test -n "$CC"; then | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2706 | $as_echo "$CC" >&6; } | |
2707 | else | |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2709 | $as_echo "no" >&6; } | |
2710 | fi | |
212380e3 | 2711 | |
c52df125 | 2712 | |
eec2776c AJ |
2713 | fi |
2714 | if test -z "$ac_cv_prog_CC"; then | |
2715 | ac_ct_CC=$CC | |
2716 | # Extract the first word of "gcc", so it can be a program name with args. | |
2717 | set dummy gcc; ac_word=$2 | |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2719 | $as_echo_n "checking for $ac_word... " >&6; } | |
2720 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2721 | $as_echo_n "(cached) " >&6 | |
2722 | else | |
2723 | if test -n "$ac_ct_CC"; then | |
2724 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2725 | else | |
2726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2727 | for as_dir in $PATH | |
2728 | do | |
2729 | IFS=$as_save_IFS | |
2730 | test -z "$as_dir" && as_dir=. | |
2731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2733 | ac_cv_prog_ac_ct_CC="gcc" | |
2734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2735 | break 2 | |
2736 | fi | |
2737 | done | |
2738 | done | |
2739 | IFS=$as_save_IFS | |
c52df125 | 2740 | |
eec2776c AJ |
2741 | fi |
2742 | fi | |
2743 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2744 | if test -n "$ac_ct_CC"; then | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2746 | $as_echo "$ac_ct_CC" >&6; } | |
2747 | else | |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2749 | $as_echo "no" >&6; } | |
2750 | fi | |
c52df125 | 2751 | |
eec2776c AJ |
2752 | if test "x$ac_ct_CC" = x; then |
2753 | CC="" | |
2754 | else | |
2755 | case $cross_compiling:$ac_tool_warned in | |
2756 | yes:) | |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2758 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2759 | ac_tool_warned=yes ;; | |
c52df125 | 2760 | esac |
eec2776c AJ |
2761 | CC=$ac_ct_CC |
2762 | fi | |
c52df125 | 2763 | else |
eec2776c | 2764 | CC="$ac_cv_prog_CC" |
c52df125 AC |
2765 | fi |
2766 | ||
eec2776c AJ |
2767 | if test -z "$CC"; then |
2768 | if test -n "$ac_tool_prefix"; then | |
2769 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2770 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 AC |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2772 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2773 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2774 | $as_echo_n "(cached) " >&6 |
212380e3 | 2775 | else |
eec2776c AJ |
2776 | if test -n "$CC"; then |
2777 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 AC |
2778 | else |
2779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2780 | for as_dir in $PATH |
2781 | do | |
2782 | IFS=$as_save_IFS | |
2783 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2784 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2786 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 2787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2788 | break 2 |
2789 | fi | |
2790 | done | |
7083c021 | 2791 | done |
631ef239 | 2792 | IFS=$as_save_IFS |
7083c021 | 2793 | |
212380e3 | 2794 | fi |
7083c021 | 2795 | fi |
eec2776c AJ |
2796 | CC=$ac_cv_prog_CC |
2797 | if test -n "$CC"; then | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2799 | $as_echo "$CC" >&6; } | |
212380e3 | 2800 | else |
7083c021 AC |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2802 | $as_echo "no" >&6; } | |
212380e3 AC |
2803 | fi |
2804 | ||
631ef239 | 2805 | |
eec2776c | 2806 | fi |
7083c021 | 2807 | fi |
eec2776c AJ |
2808 | if test -z "$CC"; then |
2809 | # Extract the first word of "cc", so it can be a program name with args. | |
2810 | set dummy cc; ac_word=$2 | |
7083c021 AC |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2812 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2813 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2814 | $as_echo_n "(cached) " >&6 |
212380e3 | 2815 | else |
eec2776c AJ |
2816 | if test -n "$CC"; then |
2817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 | 2818 | else |
eec2776c | 2819 | ac_prog_rejected=no |
7083c021 | 2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2821 | for as_dir in $PATH |
2822 | do | |
2823 | IFS=$as_save_IFS | |
2824 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2825 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c AJ |
2827 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2828 | ac_prog_rejected=yes | |
2829 | continue | |
2830 | fi | |
2831 | ac_cv_prog_CC="cc" | |
7083c021 | 2832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2833 | break 2 |
2834 | fi | |
2835 | done | |
7083c021 | 2836 | done |
631ef239 | 2837 | IFS=$as_save_IFS |
212380e3 | 2838 | |
eec2776c AJ |
2839 | if test $ac_prog_rejected = yes; then |
2840 | # We found a bogon in the path, so make sure we never use it. | |
2841 | set dummy $ac_cv_prog_CC | |
2842 | shift | |
2843 | if test $# != 0; then | |
2844 | # We chose a different compiler from the bogus one. | |
2845 | # However, it has the same basename, so the bogon will be chosen | |
2846 | # first if we set CC to just the basename; use the full file name. | |
2847 | shift | |
2848 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2849 | fi | |
212380e3 | 2850 | fi |
7083c021 | 2851 | fi |
eec2776c AJ |
2852 | fi |
2853 | CC=$ac_cv_prog_CC | |
2854 | if test -n "$CC"; then | |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2856 | $as_echo "$CC" >&6; } | |
212380e3 | 2857 | else |
7083c021 AC |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2859 | $as_echo "no" >&6; } | |
212380e3 AC |
2860 | fi |
2861 | ||
631ef239 | 2862 | |
212380e3 | 2863 | fi |
eec2776c AJ |
2864 | if test -z "$CC"; then |
2865 | if test -n "$ac_tool_prefix"; then | |
2866 | for ac_prog in cl.exe | |
2867 | do | |
2868 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2869 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2871 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2872 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2873 | $as_echo_n "(cached) " >&6 |
212380e3 | 2874 | else |
eec2776c AJ |
2875 | if test -n "$CC"; then |
2876 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2877 | else |
2878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2879 | for as_dir in $PATH | |
2880 | do | |
2881 | IFS=$as_save_IFS | |
2882 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2883 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2885 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 2886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2887 | break 2 |
2888 | fi | |
2889 | done | |
7083c021 | 2890 | done |
631ef239 | 2891 | IFS=$as_save_IFS |
212380e3 AC |
2892 | |
2893 | fi | |
2894 | fi | |
eec2776c AJ |
2895 | CC=$ac_cv_prog_CC |
2896 | if test -n "$CC"; then | |
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2898 | $as_echo "$CC" >&6; } | |
212380e3 | 2899 | else |
7083c021 AC |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2901 | $as_echo "no" >&6; } | |
212380e3 AC |
2902 | fi |
2903 | ||
631ef239 | 2904 | |
eec2776c AJ |
2905 | test -n "$CC" && break |
2906 | done | |
2907 | fi | |
2908 | if test -z "$CC"; then | |
2909 | ac_ct_CC=$CC | |
2910 | for ac_prog in cl.exe | |
2911 | do | |
2912 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2913 | set dummy $ac_prog; ac_word=$2 | |
2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2915 | $as_echo_n "checking for $ac_word... " >&6; } | |
2916 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
c52df125 AC |
2917 | $as_echo_n "(cached) " >&6 |
2918 | else | |
eec2776c AJ |
2919 | if test -n "$ac_ct_CC"; then |
2920 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2921 | else | |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2923 | for as_dir in $PATH | |
2924 | do | |
2925 | IFS=$as_save_IFS | |
2926 | test -z "$as_dir" && as_dir=. | |
2927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2929 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2931 | break 2 | |
2932 | fi | |
2933 | done | |
2934 | done | |
2935 | IFS=$as_save_IFS | |
2936 | ||
c52df125 | 2937 | fi |
eec2776c AJ |
2938 | fi |
2939 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2940 | if test -n "$ac_ct_CC"; then | |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2942 | $as_echo "$ac_ct_CC" >&6; } | |
c52df125 AC |
2943 | else |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2945 | $as_echo "no" >&6; } | |
c52df125 AC |
2946 | fi |
2947 | ||
c52df125 | 2948 | |
eec2776c AJ |
2949 | test -n "$ac_ct_CC" && break |
2950 | done | |
c52df125 | 2951 | |
eec2776c AJ |
2952 | if test "x$ac_ct_CC" = x; then |
2953 | CC="" | |
2954 | else | |
2955 | case $cross_compiling:$ac_tool_warned in | |
2956 | yes:) | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2958 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2959 | ac_tool_warned=yes ;; | |
c52df125 | 2960 | esac |
eec2776c | 2961 | CC=$ac_ct_CC |
c52df125 AC |
2962 | fi |
2963 | fi | |
2964 | ||
c52df125 AC |
2965 | fi |
2966 | ||
2967 | ||
eec2776c AJ |
2968 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2970 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2971 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 2972 | |
eec2776c AJ |
2973 | # Provide some information about the compiler. |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2975 | set X $ac_compile | |
2976 | ac_compiler=$2 | |
2977 | for ac_option in --version -v -V -qversion; do | |
2978 | { { ac_try="$ac_compiler $ac_option >&5" | |
2979 | case "(($ac_try" in | |
2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2981 | *) ac_try_echo=$ac_try;; | |
2982 | esac | |
2983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2984 | $as_echo "$ac_try_echo"; } >&5 | |
2985 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2986 | ac_status=$? | |
2987 | if test -s conftest.err; then | |
2988 | sed '10a\ | |
2989 | ... rest of stderr output deleted ... | |
2990 | 10q' conftest.err >conftest.er1 | |
2991 | cat conftest.er1 >&5 | |
2992 | fi | |
2993 | rm -f conftest.er1 conftest.err | |
2994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2995 | test $ac_status = 0; } | |
2996 | done | |
c52df125 | 2997 | |
eec2776c AJ |
2998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2999 | /* end confdefs.h. */ | |
c52df125 | 3000 | |
eec2776c AJ |
3001 | int |
3002 | main () | |
3003 | { | |
c52df125 | 3004 | |
eec2776c AJ |
3005 | ; |
3006 | return 0; | |
3007 | } | |
c52df125 | 3008 | _ACEOF |
eec2776c AJ |
3009 | ac_clean_files_save=$ac_clean_files |
3010 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3011 | # Try to create an executable without -o first, disregard a.out. | |
3012 | # It will help us diagnose broken compilers, and finding out an intuition | |
3013 | # of exeext. | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3015 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3016 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
c52df125 | 3017 | |
eec2776c AJ |
3018 | # The possible output files: |
3019 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
c52df125 | 3020 | |
eec2776c AJ |
3021 | ac_rmfiles= |
3022 | for ac_file in $ac_files | |
3023 | do | |
3024 | case $ac_file in | |
3025 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3026 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3027 | esac | |
3028 | done | |
3029 | rm -f $ac_rmfiles | |
c52df125 | 3030 | |
eec2776c AJ |
3031 | if { { ac_try="$ac_link_default" |
3032 | case "(($ac_try" in | |
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3034 | *) ac_try_echo=$ac_try;; | |
3035 | esac | |
3036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3037 | $as_echo "$ac_try_echo"; } >&5 | |
3038 | (eval "$ac_link_default") 2>&5 | |
3039 | ac_status=$? | |
3040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3041 | test $ac_status = 0; }; then : | |
3042 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3043 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3044 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3045 | # so that the user can short-circuit this test for compilers unknown to | |
3046 | # Autoconf. | |
3047 | for ac_file in $ac_files '' | |
3048 | do | |
3049 | test -f "$ac_file" || continue | |
3050 | case $ac_file in | |
3051 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3052 | ;; | |
3053 | [ab].out ) | |
3054 | # We found the default executable, but exeext='' is most | |
3055 | # certainly right. | |
3056 | break;; | |
3057 | *.* ) | |
3058 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3059 | then :; else | |
3060 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3061 | fi | |
3062 | # We set ac_cv_exeext here because the later test for it is not | |
3063 | # safe: cross compilers may not add the suffix if given an `-o' | |
3064 | # argument, so we may need to know it at that point already. | |
3065 | # Even if this section looks crufty: it has the advantage of | |
3066 | # actually working. | |
3067 | break;; | |
3068 | * ) | |
3069 | break;; | |
3070 | esac | |
3071 | done | |
3072 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
c52df125 | 3073 | |
eec2776c AJ |
3074 | else |
3075 | ac_file='' | |
3076 | fi | |
3077 | if test -z "$ac_file"; then : | |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3079 | $as_echo "no" >&6; } | |
3080 | $as_echo "$as_me: failed program was:" >&5 | |
3081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c52df125 | 3082 | |
eec2776c AJ |
3083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3085 | as_fn_error 77 "C compiler cannot create executables | |
3086 | See \`config.log' for more details" "$LINENO" 5; } | |
3087 | else | |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3089 | $as_echo "yes" >&6; } | |
3090 | fi | |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3092 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3094 | $as_echo "$ac_file" >&6; } | |
3095 | ac_exeext=$ac_cv_exeext | |
c52df125 | 3096 | |
eec2776c AJ |
3097 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3098 | ac_clean_files=$ac_clean_files_save | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3100 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3101 | if { { ac_try="$ac_link" | |
3102 | case "(($ac_try" in | |
3103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3104 | *) ac_try_echo=$ac_try;; | |
3105 | esac | |
3106 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3107 | $as_echo "$ac_try_echo"; } >&5 | |
3108 | (eval "$ac_link") 2>&5 | |
3109 | ac_status=$? | |
3110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3111 | test $ac_status = 0; }; then : | |
3112 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3113 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3114 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3115 | # `rm'. | |
3116 | for ac_file in conftest.exe conftest conftest.*; do | |
3117 | test -f "$ac_file" || continue | |
3118 | case $ac_file in | |
3119 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3120 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3121 | break;; | |
3122 | * ) break;; | |
3123 | esac | |
3124 | done | |
3125 | else | |
3126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3127 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3128 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3129 | See \`config.log' for more details" "$LINENO" 5; } | |
3130 | fi | |
3131 | rm -f conftest conftest$ac_cv_exeext | |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3133 | $as_echo "$ac_cv_exeext" >&6; } | |
c52df125 | 3134 | |
eec2776c AJ |
3135 | rm -f conftest.$ac_ext |
3136 | EXEEXT=$ac_cv_exeext | |
3137 | ac_exeext=$EXEEXT | |
3138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3139 | /* end confdefs.h. */ | |
3140 | #include <stdio.h> | |
3141 | int | |
3142 | main () | |
3143 | { | |
3144 | FILE *f = fopen ("conftest.out", "w"); | |
3145 | return ferror (f) || fclose (f) != 0; | |
c52df125 | 3146 | |
eec2776c AJ |
3147 | ; |
3148 | return 0; | |
3149 | } | |
3150 | _ACEOF | |
3151 | ac_clean_files="$ac_clean_files conftest.out" | |
3152 | # Check that the compiler produces executables we can run. If not, either | |
3153 | # the compiler is broken, or we cross compile. | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3155 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3156 | if test "$cross_compiling" != yes; then | |
3157 | { { ac_try="$ac_link" | |
3158 | case "(($ac_try" in | |
3159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3160 | *) ac_try_echo=$ac_try;; | |
3161 | esac | |
3162 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3163 | $as_echo "$ac_try_echo"; } >&5 | |
3164 | (eval "$ac_link") 2>&5 | |
3165 | ac_status=$? | |
3166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3167 | test $ac_status = 0; } | |
3168 | if { ac_try='./conftest$ac_cv_exeext' | |
3169 | { { case "(($ac_try" in | |
3170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3171 | *) ac_try_echo=$ac_try;; | |
3172 | esac | |
3173 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3174 | $as_echo "$ac_try_echo"; } >&5 | |
3175 | (eval "$ac_try") 2>&5 | |
3176 | ac_status=$? | |
3177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3178 | test $ac_status = 0; }; }; then | |
3179 | cross_compiling=no | |
c52df125 | 3180 | else |
eec2776c AJ |
3181 | if test "$cross_compiling" = maybe; then |
3182 | cross_compiling=yes | |
3183 | else | |
3184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3186 | as_fn_error $? "cannot run C compiled programs. | |
3187 | If you meant to cross compile, use \`--host'. | |
3188 | See \`config.log' for more details" "$LINENO" 5; } | |
3189 | fi | |
c52df125 AC |
3190 | fi |
3191 | fi | |
eec2776c AJ |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3193 | $as_echo "$cross_compiling" >&6; } | |
c52df125 | 3194 | |
eec2776c AJ |
3195 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3196 | ac_clean_files=$ac_clean_files_save | |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3198 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3199 | if ${ac_cv_objext+:} false; then : | |
c52df125 AC |
3200 | $as_echo_n "(cached) " >&6 |
3201 | else | |
eec2776c AJ |
3202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3203 | /* end confdefs.h. */ | |
3204 | ||
3205 | int | |
3206 | main () | |
3207 | { | |
3208 | ||
3209 | ; | |
3210 | return 0; | |
3211 | } | |
3212 | _ACEOF | |
3213 | rm -f conftest.o conftest.obj | |
3214 | if { { ac_try="$ac_compile" | |
3215 | case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3220 | $as_echo "$ac_try_echo"; } >&5 | |
3221 | (eval "$ac_compile") 2>&5 | |
3222 | ac_status=$? | |
3223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3224 | test $ac_status = 0; }; then : | |
3225 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3226 | test -f "$ac_file" || continue; | |
3227 | case $ac_file in | |
3228 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3229 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3230 | break;; | |
3231 | esac | |
3232 | done | |
c52df125 | 3233 | else |
eec2776c AJ |
3234 | $as_echo "$as_me: failed program was:" >&5 |
3235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3236 | ||
3237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3239 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3240 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 3241 | fi |
eec2776c | 3242 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
c52df125 | 3243 | fi |
eec2776c AJ |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3245 | $as_echo "$ac_cv_objext" >&6; } | |
3246 | OBJEXT=$ac_cv_objext | |
3247 | ac_objext=$OBJEXT | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3249 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3250 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3251 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3252 | else |
eec2776c AJ |
3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3254 | /* end confdefs.h. */ | |
c52df125 | 3255 | |
eec2776c AJ |
3256 | int |
3257 | main () | |
3258 | { | |
3259 | #ifndef __GNUC__ | |
3260 | choke me | |
3261 | #endif | |
c52df125 | 3262 | |
eec2776c AJ |
3263 | ; |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | if ac_fn_c_try_compile "$LINENO"; then : | |
3268 | ac_compiler_gnu=yes | |
3269 | else | |
3270 | ac_compiler_gnu=no | |
c52df125 | 3271 | fi |
eec2776c AJ |
3272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3273 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
c52df125 | 3274 | |
c52df125 | 3275 | fi |
eec2776c AJ |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3277 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3278 | if test $ac_compiler_gnu = yes; then | |
3279 | GCC=yes | |
c52df125 | 3280 | else |
eec2776c | 3281 | GCC= |
c52df125 | 3282 | fi |
eec2776c AJ |
3283 | ac_test_CFLAGS=${CFLAGS+set} |
3284 | ac_save_CFLAGS=$CFLAGS | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3286 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3287 | if ${ac_cv_prog_cc_g+:} false; then : | |
c52df125 AC |
3288 | $as_echo_n "(cached) " >&6 |
3289 | else | |
eec2776c AJ |
3290 | ac_save_c_werror_flag=$ac_c_werror_flag |
3291 | ac_c_werror_flag=yes | |
3292 | ac_cv_prog_cc_g=no | |
3293 | CFLAGS="-g" | |
3294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3295 | /* end confdefs.h. */ | |
c52df125 | 3296 | |
eec2776c AJ |
3297 | int |
3298 | main () | |
3299 | { | |
3300 | ||
3301 | ; | |
3302 | return 0; | |
3303 | } | |
3304 | _ACEOF | |
3305 | if ac_fn_c_try_compile "$LINENO"; then : | |
3306 | ac_cv_prog_cc_g=yes | |
c52df125 | 3307 | else |
eec2776c AJ |
3308 | CFLAGS="" |
3309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3310 | /* end confdefs.h. */ | |
c52df125 | 3311 | |
eec2776c AJ |
3312 | int |
3313 | main () | |
3314 | { | |
3315 | ||
3316 | ; | |
3317 | return 0; | |
3318 | } | |
3319 | _ACEOF | |
3320 | if ac_fn_c_try_compile "$LINENO"; then : | |
c52df125 | 3321 | |
c52df125 | 3322 | else |
eec2776c AJ |
3323 | ac_c_werror_flag=$ac_save_c_werror_flag |
3324 | CFLAGS="-g" | |
3325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3326 | /* end confdefs.h. */ | |
3327 | ||
3328 | int | |
3329 | main () | |
3330 | { | |
c52df125 | 3331 | |
eec2776c AJ |
3332 | ; |
3333 | return 0; | |
3334 | } | |
3335 | _ACEOF | |
3336 | if ac_fn_c_try_compile "$LINENO"; then : | |
3337 | ac_cv_prog_cc_g=yes | |
c52df125 | 3338 | fi |
eec2776c | 3339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3340 | fi |
eec2776c | 3341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3342 | fi |
eec2776c AJ |
3343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3344 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3345 | fi | |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3347 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3348 | if test "$ac_test_CFLAGS" = set; then | |
3349 | CFLAGS=$ac_save_CFLAGS | |
3350 | elif test $ac_cv_prog_cc_g = yes; then | |
3351 | if test "$GCC" = yes; then | |
3352 | CFLAGS="-g -O2" | |
7083c021 | 3353 | else |
eec2776c | 3354 | CFLAGS="-g" |
7083c021 | 3355 | fi |
c52df125 | 3356 | else |
eec2776c AJ |
3357 | if test "$GCC" = yes; then |
3358 | CFLAGS="-O2" | |
3359 | else | |
3360 | CFLAGS= | |
c52df125 | 3361 | fi |
c52df125 | 3362 | fi |
eec2776c AJ |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3364 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3365 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3366 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3367 | else |
eec2776c AJ |
3368 | ac_cv_prog_cc_c89=no |
3369 | ac_save_CC=$CC | |
3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3371 | /* end confdefs.h. */ | |
3372 | #include <stdarg.h> | |
3373 | #include <stdio.h> | |
3374 | struct stat; | |
3375 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3376 | struct buf { int x; }; | |
3377 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3378 | static char *e (p, i) | |
3379 | char **p; | |
3380 | int i; | |
3381 | { | |
3382 | return p[i]; | |
3383 | } | |
3384 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3385 | { | |
3386 | char *s; | |
3387 | va_list v; | |
3388 | va_start (v,p); | |
3389 | s = g (p, va_arg (v,int)); | |
3390 | va_end (v); | |
3391 | return s; | |
3392 | } | |
3393 | ||
3394 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3395 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3396 | These don't provoke an error unfortunately, instead are silently treated | |
3397 | as 'x'. The following induces an error, until -std is added to get | |
3398 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3399 | array size at least. It's necessary to write '\x00'==0 to get something | |
3400 | that's true only with -std. */ | |
3401 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
c52df125 | 3402 | |
eec2776c AJ |
3403 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3404 | inside strings and character constants. */ | |
3405 | #define FOO(x) 'x' | |
3406 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
c52df125 | 3407 | |
eec2776c AJ |
3408 | int test (int i, double x); |
3409 | struct s1 {int (*f) (int a);}; | |
3410 | struct s2 {int (*f) (double a);}; | |
3411 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3412 | int argc; | |
3413 | char **argv; | |
3414 | int | |
3415 | main () | |
3416 | { | |
3417 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3418 | ; | |
3419 | return 0; | |
3420 | } | |
3421 | _ACEOF | |
3422 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3423 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c52df125 | 3424 | do |
eec2776c AJ |
3425 | CC="$ac_save_CC $ac_arg" |
3426 | if ac_fn_c_try_compile "$LINENO"; then : | |
3427 | ac_cv_prog_cc_c89=$ac_arg | |
3428 | fi | |
3429 | rm -f core conftest.err conftest.$ac_objext | |
3430 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c52df125 | 3431 | done |
eec2776c AJ |
3432 | rm -f conftest.$ac_ext |
3433 | CC=$ac_save_CC | |
c52df125 | 3434 | |
c52df125 | 3435 | fi |
eec2776c AJ |
3436 | # AC_CACHE_VAL |
3437 | case "x$ac_cv_prog_cc_c89" in | |
3438 | x) | |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3440 | $as_echo "none needed" >&6; } ;; | |
3441 | xno) | |
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3443 | $as_echo "unsupported" >&6; } ;; | |
3444 | *) | |
3445 | CC="$CC $ac_cv_prog_cc_c89" | |
3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3447 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3448 | esac | |
3449 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3450 | ||
c52df125 AC |
3451 | fi |
3452 | ||
eec2776c AJ |
3453 | ac_ext=c |
3454 | ac_cpp='$CPP $CPPFLAGS' | |
3455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 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 | |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3465 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3466 | if ${am_cv_prog_cc_c_o+:} false; then : | |
c52df125 AC |
3467 | $as_echo_n "(cached) " >&6 |
3468 | else | |
eec2776c AJ |
3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3470 | /* end confdefs.h. */ | |
c52df125 | 3471 | |
eec2776c AJ |
3472 | int |
3473 | main () | |
3474 | { | |
3475 | ||
3476 | ; | |
3477 | return 0; | |
3478 | } | |
3479 | _ACEOF | |
3480 | # Make sure it works both with $CC and with simple cc. | |
3481 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3482 | # compilers refuse to overwrite an existing .o file with -o, | |
3483 | # though they will create one. | |
3484 | am_cv_prog_cc_c_o=yes | |
3485 | for am_i in 1 2; do | |
3486 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3487 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3488 | ac_status=$? | |
3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3490 | (exit $ac_status); } \ | |
3491 | && test -f conftest2.$ac_objext; then | |
3492 | : OK | |
3493 | else | |
3494 | am_cv_prog_cc_c_o=no | |
3495 | break | |
3496 | fi | |
3497 | done | |
3498 | rm -f core conftest* | |
3499 | unset am_i | |
c52df125 | 3500 | fi |
eec2776c AJ |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3502 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3503 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3504 | # Losing compiler, so override with the script. | |
3505 | # FIXME: It is wrong to rewrite CC. | |
3506 | # But if we don't then we get into trouble of one sort or another. | |
3507 | # A longer-term fix would be to have automake use am__CC in this case, | |
3508 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3509 | CC="$am_aux_dir/compile $CC" | |
c52df125 | 3510 | fi |
eec2776c AJ |
3511 | ac_ext=c |
3512 | ac_cpp='$CPP $CPPFLAGS' | |
3513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
3516 | |
3517 | ||
c52df125 | 3518 | |
eec2776c AJ |
3519 | ac_ext=c |
3520 | ac_cpp='$CPP $CPPFLAGS' | |
3521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3525 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3526 | # On Suns, sometimes $CPP names a directory. | |
3527 | if test -n "$CPP" && test -d "$CPP"; then | |
3528 | CPP= | |
3529 | fi | |
3530 | if test -z "$CPP"; then | |
3531 | if ${ac_cv_prog_CPP+:} false; then : | |
c52df125 AC |
3532 | $as_echo_n "(cached) " >&6 |
3533 | else | |
eec2776c AJ |
3534 | # Double quotes because CPP needs to be expanded |
3535 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3536 | do | |
3537 | ac_preproc_ok=false | |
3538 | for ac_c_preproc_warn_flag in '' yes | |
3539 | do | |
3540 | # Use a header file that comes with gcc, so configuring glibc | |
3541 | # with a fresh cross-compiler works. | |
3542 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3543 | # <limits.h> exists even on freestanding compilers. | |
3544 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3545 | # not just through cpp. "Syntax error" is here to catch this case. | |
c52df125 AC |
3546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3547 | /* end confdefs.h. */ | |
eec2776c AJ |
3548 | #ifdef __STDC__ |
3549 | # include <limits.h> | |
3550 | #else | |
3551 | # include <assert.h> | |
3552 | #endif | |
3553 | Syntax error | |
c52df125 | 3554 | _ACEOF |
eec2776c | 3555 | if ac_fn_c_try_cpp "$LINENO"; then : |
c52df125 | 3556 | |
c52df125 | 3557 | else |
eec2776c AJ |
3558 | # Broken: fails on valid input. |
3559 | continue | |
3560 | fi | |
3561 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3562 | ||
3563 | # OK, works on sane cases. Now check whether nonexistent headers | |
3564 | # can be detected and how. | |
c52df125 AC |
3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3566 | /* end confdefs.h. */ | |
eec2776c | 3567 | #include <ac_nonexistent.h> |
c52df125 | 3568 | _ACEOF |
eec2776c AJ |
3569 | if ac_fn_c_try_cpp "$LINENO"; then : |
3570 | # Broken: success on invalid input. | |
3571 | continue | |
c52df125 | 3572 | else |
eec2776c AJ |
3573 | # Passes both tests. |
3574 | ac_preproc_ok=: | |
3575 | break | |
c52df125 | 3576 | fi |
eec2776c | 3577 | rm -f conftest.err conftest.i conftest.$ac_ext |
c52df125 | 3578 | |
eec2776c AJ |
3579 | done |
3580 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3581 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3582 | if $ac_preproc_ok; then : | |
3583 | break | |
c52df125 | 3584 | fi |
eec2776c AJ |
3585 | |
3586 | done | |
3587 | ac_cv_prog_CPP=$CPP | |
3588 | ||
c52df125 | 3589 | fi |
eec2776c | 3590 | CPP=$ac_cv_prog_CPP |
c52df125 | 3591 | else |
eec2776c AJ |
3592 | ac_cv_prog_CPP=$CPP |
3593 | fi | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3595 | $as_echo "$CPP" >&6; } | |
3596 | ac_preproc_ok=false | |
3597 | for ac_c_preproc_warn_flag in '' yes | |
3598 | do | |
3599 | # Use a header file that comes with gcc, so configuring glibc | |
3600 | # with a fresh cross-compiler works. | |
3601 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3602 | # <limits.h> exists even on freestanding compilers. | |
3603 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3604 | # not just through cpp. "Syntax error" is here to catch this case. | |
3605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3606 | /* end confdefs.h. */ |
eec2776c AJ |
3607 | #ifdef __STDC__ |
3608 | # include <limits.h> | |
3609 | #else | |
3610 | # include <assert.h> | |
3611 | #endif | |
3612 | Syntax error | |
3613 | _ACEOF | |
3614 | if ac_fn_c_try_cpp "$LINENO"; then : | |
c52df125 | 3615 | |
eec2776c AJ |
3616 | else |
3617 | # Broken: fails on valid input. | |
3618 | continue | |
3619 | fi | |
3620 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3621 | |
eec2776c AJ |
3622 | # OK, works on sane cases. Now check whether nonexistent headers |
3623 | # can be detected and how. | |
3624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3625 | /* end confdefs.h. */ | |
3626 | #include <ac_nonexistent.h> | |
c52df125 | 3627 | _ACEOF |
eec2776c AJ |
3628 | if ac_fn_c_try_cpp "$LINENO"; then : |
3629 | # Broken: success on invalid input. | |
3630 | continue | |
c52df125 | 3631 | else |
eec2776c AJ |
3632 | # Passes both tests. |
3633 | ac_preproc_ok=: | |
3634 | break | |
3635 | fi | |
3636 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3637 | |
eec2776c AJ |
3638 | done |
3639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3640 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3641 | if $ac_preproc_ok; then : | |
3642 | ||
3643 | else | |
3644 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3646 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3647 | See \`config.log' for more details" "$LINENO" 5; } | |
3648 | fi | |
3649 | ||
3650 | ac_ext=c | |
3651 | ac_cpp='$CPP $CPPFLAGS' | |
3652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3655 | |
c52df125 | 3656 | |
eec2776c AJ |
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3658 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3659 | if ${ac_cv_path_GREP+:} false; then : | |
3660 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3661 | else |
eec2776c AJ |
3662 | if test -z "$GREP"; then |
3663 | ac_path_GREP_found=false | |
3664 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3666 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3667 | do | |
3668 | IFS=$as_save_IFS | |
3669 | test -z "$as_dir" && as_dir=. | |
3670 | for ac_prog in grep ggrep; do | |
3671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3672 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3673 | as_fn_executable_p "$ac_path_GREP" || continue | |
3674 | # Check for GNU ac_path_GREP and select it if it is found. | |
3675 | # Check for GNU $ac_path_GREP | |
3676 | case `"$ac_path_GREP" --version 2>&1` in | |
3677 | *GNU*) | |
3678 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3679 | *) | |
3680 | ac_count=0 | |
3681 | $as_echo_n 0123456789 >"conftest.in" | |
3682 | while : | |
3683 | do | |
3684 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3685 | mv "conftest.tmp" "conftest.in" | |
3686 | cp "conftest.in" "conftest.nl" | |
3687 | $as_echo 'GREP' >> "conftest.nl" | |
3688 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3689 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3690 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3691 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3692 | # Best one so far, save it but keep looking for a better one | |
3693 | ac_cv_path_GREP="$ac_path_GREP" | |
3694 | ac_path_GREP_max=$ac_count | |
3695 | fi | |
3696 | # 10*(2^10) chars as input seems more than enough | |
3697 | test $ac_count -gt 10 && break | |
3698 | done | |
3699 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3700 | esac | |
3701 | ||
3702 | $ac_path_GREP_found && break 3 | |
3703 | done | |
3704 | done | |
3705 | done | |
3706 | IFS=$as_save_IFS | |
3707 | if test -z "$ac_cv_path_GREP"; then | |
3708 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3709 | fi | |
3710 | else | |
3711 | ac_cv_path_GREP=$GREP | |
3712 | fi | |
3713 | ||
3714 | fi | |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3716 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3717 | GREP="$ac_cv_path_GREP" | |
3718 | ||
3719 | ||
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3721 | $as_echo_n "checking for egrep... " >&6; } | |
3722 | if ${ac_cv_path_EGREP+:} false; then : | |
3723 | $as_echo_n "(cached) " >&6 | |
3724 | else | |
3725 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3726 | then ac_cv_path_EGREP="$GREP -E" | |
3727 | else | |
3728 | if test -z "$EGREP"; then | |
3729 | ac_path_EGREP_found=false | |
3730 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3732 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3733 | do | |
3734 | IFS=$as_save_IFS | |
3735 | test -z "$as_dir" && as_dir=. | |
3736 | for ac_prog in egrep; do | |
3737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3738 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3739 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3740 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3741 | # Check for GNU $ac_path_EGREP | |
3742 | case `"$ac_path_EGREP" --version 2>&1` in | |
3743 | *GNU*) | |
3744 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3745 | *) | |
3746 | ac_count=0 | |
3747 | $as_echo_n 0123456789 >"conftest.in" | |
3748 | while : | |
3749 | do | |
3750 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3751 | mv "conftest.tmp" "conftest.in" | |
3752 | cp "conftest.in" "conftest.nl" | |
3753 | $as_echo 'EGREP' >> "conftest.nl" | |
3754 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3755 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3756 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3757 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3758 | # Best one so far, save it but keep looking for a better one | |
3759 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3760 | ac_path_EGREP_max=$ac_count | |
3761 | fi | |
3762 | # 10*(2^10) chars as input seems more than enough | |
3763 | test $ac_count -gt 10 && break | |
3764 | done | |
3765 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3766 | esac | |
3767 | ||
3768 | $ac_path_EGREP_found && break 3 | |
3769 | done | |
3770 | done | |
3771 | done | |
3772 | IFS=$as_save_IFS | |
3773 | if test -z "$ac_cv_path_EGREP"; then | |
3774 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3775 | fi | |
3776 | else | |
3777 | ac_cv_path_EGREP=$EGREP | |
3778 | fi | |
3779 | ||
3780 | fi | |
3781 | fi | |
3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3783 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3784 | EGREP="$ac_cv_path_EGREP" | |
3785 | ||
3786 | ||
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3788 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3789 | if ${ac_cv_header_stdc+:} false; then : | |
3790 | $as_echo_n "(cached) " >&6 | |
3791 | else | |
3792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3793 | /* end confdefs.h. */ |
eec2776c AJ |
3794 | #include <stdlib.h> |
3795 | #include <stdarg.h> | |
3796 | #include <string.h> | |
3797 | #include <float.h> | |
c52df125 AC |
3798 | |
3799 | int | |
3800 | main () | |
3801 | { | |
3802 | ||
3803 | ; | |
3804 | return 0; | |
3805 | } | |
3806 | _ACEOF | |
3807 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c AJ |
3808 | ac_cv_header_stdc=yes |
3809 | else | |
3810 | ac_cv_header_stdc=no | |
c52df125 AC |
3811 | fi |
3812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
3813 | |
3814 | if test $ac_cv_header_stdc = yes; then | |
3815 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3817 | /* end confdefs.h. */ | |
3818 | #include <string.h> | |
3819 | ||
3820 | _ACEOF | |
3821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3822 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3823 | ||
3824 | else | |
3825 | ac_cv_header_stdc=no | |
c52df125 | 3826 | fi |
eec2776c AJ |
3827 | rm -f conftest* |
3828 | ||
c52df125 | 3829 | fi |
eec2776c AJ |
3830 | |
3831 | if test $ac_cv_header_stdc = yes; then | |
3832 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3834 | /* end confdefs.h. */ |
eec2776c | 3835 | #include <stdlib.h> |
c52df125 | 3836 | |
eec2776c AJ |
3837 | _ACEOF |
3838 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3839 | $EGREP "free" >/dev/null 2>&1; then : | |
c52df125 | 3840 | |
eec2776c AJ |
3841 | else |
3842 | ac_cv_header_stdc=no | |
3843 | fi | |
3844 | rm -f conftest* | |
c52df125 | 3845 | |
eec2776c AJ |
3846 | fi |
3847 | ||
3848 | if test $ac_cv_header_stdc = yes; then | |
3849 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3850 | if test "$cross_compiling" = yes; then : | |
3851 | : | |
3852 | else | |
3853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3854 | /* end confdefs.h. */ | |
3855 | #include <ctype.h> | |
3856 | #include <stdlib.h> | |
3857 | #if ((' ' & 0x0FF) == 0x020) | |
3858 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3859 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3860 | #else | |
3861 | # define ISLOWER(c) \ | |
3862 | (('a' <= (c) && (c) <= 'i') \ | |
3863 | || ('j' <= (c) && (c) <= 'r') \ | |
3864 | || ('s' <= (c) && (c) <= 'z')) | |
3865 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3866 | #endif | |
3867 | ||
3868 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
c52df125 AC |
3869 | int |
3870 | main () | |
3871 | { | |
eec2776c AJ |
3872 | int i; |
3873 | for (i = 0; i < 256; i++) | |
3874 | if (XOR (islower (i), ISLOWER (i)) | |
3875 | || toupper (i) != TOUPPER (i)) | |
3876 | return 2; | |
c52df125 AC |
3877 | return 0; |
3878 | } | |
3879 | _ACEOF | |
eec2776c AJ |
3880 | if ac_fn_c_try_run "$LINENO"; then : |
3881 | ||
3882 | else | |
3883 | ac_cv_header_stdc=no | |
3884 | fi | |
3885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3886 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c52df125 | 3887 | fi |
c52df125 AC |
3888 | |
3889 | fi | |
eec2776c AJ |
3890 | fi |
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3892 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3893 | if test $ac_cv_header_stdc = yes; then | |
3894 | ||
3895 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
c52df125 AC |
3896 | |
3897 | fi | |
3898 | ||
eec2776c AJ |
3899 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3900 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3901 | inttypes.h stdint.h unistd.h | |
3902 | do : | |
3903 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3904 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3905 | " | |
3906 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3907 | cat >>confdefs.h <<_ACEOF | |
3908 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3909 | _ACEOF | |
c52df125 | 3910 | |
eec2776c AJ |
3911 | fi |
3912 | ||
3913 | done | |
3914 | ||
3915 | ||
3916 | ||
3917 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3918 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3919 | MINIX=yes | |
3920 | else | |
3921 | MINIX= | |
3922 | fi | |
3923 | ||
3924 | ||
3925 | if test "$MINIX" = yes; then | |
3926 | ||
3927 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3928 | ||
3929 | ||
3930 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3931 | ||
3932 | ||
3933 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3934 | ||
3935 | fi | |
3936 | ||
3937 | ||
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3939 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3940 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
c52df125 AC |
3941 | $as_echo_n "(cached) " >&6 |
3942 | else | |
3943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3944 | /* end confdefs.h. */ | |
3945 | ||
eec2776c AJ |
3946 | # define __EXTENSIONS__ 1 |
3947 | $ac_includes_default | |
c52df125 AC |
3948 | int |
3949 | main () | |
3950 | { | |
3951 | ||
3952 | ; | |
3953 | return 0; | |
3954 | } | |
3955 | _ACEOF | |
eec2776c AJ |
3956 | if ac_fn_c_try_compile "$LINENO"; then : |
3957 | ac_cv_safe_to_define___extensions__=yes | |
3958 | else | |
3959 | ac_cv_safe_to_define___extensions__=no | |
c52df125 | 3960 | fi |
eec2776c | 3961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3962 | fi |
eec2776c AJ |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3964 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3965 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3966 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
c52df125 | 3967 | |
eec2776c | 3968 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c52df125 | 3969 | |
eec2776c | 3970 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c52df125 | 3971 | |
eec2776c | 3972 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c52df125 | 3973 | |
eec2776c | 3974 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c52df125 | 3975 | |
c52df125 | 3976 | |
c52df125 | 3977 | |
c52df125 | 3978 | |
9258de81 VI |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3980 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3981 | if ${ac_cv_prog_cc_c99+:} false; then : | |
3982 | $as_echo_n "(cached) " >&6 | |
3983 | else | |
3984 | ac_cv_prog_cc_c99=no | |
3985 | ac_save_CC=$CC | |
3986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3987 | /* end confdefs.h. */ | |
3988 | #include <stdarg.h> | |
3989 | #include <stdbool.h> | |
3990 | #include <stdlib.h> | |
3991 | #include <wchar.h> | |
3992 | #include <stdio.h> | |
3993 | ||
3994 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
3995 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3996 | #define showlist(...) puts (#__VA_ARGS__) | |
3997 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3998 | static void | |
3999 | test_varargs_macros (void) | |
4000 | { | |
4001 | int x = 1234; | |
4002 | int y = 5678; | |
4003 | debug ("Flag"); | |
4004 | debug ("X = %d\n", x); | |
4005 | showlist (The first, second, and third items.); | |
4006 | report (x>y, "x is %d but y is %d", x, y); | |
4007 | } | |
4008 | ||
4009 | // Check long long types. | |
4010 | #define BIG64 18446744073709551615ull | |
4011 | #define BIG32 4294967295ul | |
4012 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4013 | #if !BIG_OK | |
4014 | your preprocessor is broken; | |
4015 | #endif | |
4016 | #if BIG_OK | |
4017 | #else | |
4018 | your preprocessor is broken; | |
4019 | #endif | |
4020 | static long long int bignum = -9223372036854775807LL; | |
4021 | static unsigned long long int ubignum = BIG64; | |
4022 | ||
4023 | struct incomplete_array | |
4024 | { | |
4025 | int datasize; | |
4026 | double data[]; | |
4027 | }; | |
4028 | ||
4029 | struct named_init { | |
4030 | int number; | |
4031 | const wchar_t *name; | |
4032 | double average; | |
4033 | }; | |
4034 | ||
4035 | typedef const char *ccp; | |
4036 | ||
4037 | static inline int | |
4038 | test_restrict (ccp restrict text) | |
4039 | { | |
4040 | // See if C++-style comments work. | |
4041 | // Iterate through items via the restricted pointer. | |
4042 | // Also check for declarations in for loops. | |
4043 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4044 | continue; | |
4045 | return 0; | |
4046 | } | |
4047 | ||
4048 | // Check varargs and va_copy. | |
4049 | static void | |
4050 | test_varargs (const char *format, ...) | |
4051 | { | |
4052 | va_list args; | |
4053 | va_start (args, format); | |
4054 | va_list args_copy; | |
4055 | va_copy (args_copy, args); | |
4056 | ||
4057 | const char *str; | |
4058 | int number; | |
4059 | float fnumber; | |
4060 | ||
4061 | while (*format) | |
4062 | { | |
4063 | switch (*format++) | |
4064 | { | |
4065 | case 's': // string | |
4066 | str = va_arg (args_copy, const char *); | |
4067 | break; | |
4068 | case 'd': // int | |
4069 | number = va_arg (args_copy, int); | |
4070 | break; | |
4071 | case 'f': // float | |
4072 | fnumber = va_arg (args_copy, double); | |
4073 | break; | |
4074 | default: | |
4075 | break; | |
4076 | } | |
4077 | } | |
4078 | va_end (args_copy); | |
4079 | va_end (args); | |
4080 | } | |
4081 | ||
4082 | int | |
4083 | main () | |
4084 | { | |
4085 | ||
4086 | // Check bool. | |
4087 | _Bool success = false; | |
4088 | ||
4089 | // Check restrict. | |
4090 | if (test_restrict ("String literal") == 0) | |
4091 | success = true; | |
4092 | char *restrict newvar = "Another string"; | |
4093 | ||
4094 | // Check varargs. | |
4095 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4096 | test_varargs_macros (); | |
4097 | ||
4098 | // Check flexible array members. | |
4099 | struct incomplete_array *ia = | |
4100 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4101 | ia->datasize = 10; | |
4102 | for (int i = 0; i < ia->datasize; ++i) | |
4103 | ia->data[i] = i * 1.234; | |
4104 | ||
4105 | // Check named initializers. | |
4106 | struct named_init ni = { | |
4107 | .number = 34, | |
4108 | .name = L"Test wide string", | |
4109 | .average = 543.34343, | |
4110 | }; | |
4111 | ||
4112 | ni.number = 58; | |
4113 | ||
4114 | int dynamic_array[ni.number]; | |
4115 | dynamic_array[ni.number - 1] = 543; | |
4116 | ||
4117 | // work around unused variable warnings | |
4118 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4119 | || dynamic_array[ni.number - 1] != 543); | |
4120 | ||
4121 | ; | |
4122 | return 0; | |
4123 | } | |
4124 | _ACEOF | |
4125 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
4126 | do | |
4127 | CC="$ac_save_CC $ac_arg" | |
4128 | if ac_fn_c_try_compile "$LINENO"; then : | |
4129 | ac_cv_prog_cc_c99=$ac_arg | |
4130 | fi | |
4131 | rm -f core conftest.err conftest.$ac_objext | |
4132 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4133 | done | |
4134 | rm -f conftest.$ac_ext | |
4135 | CC=$ac_save_CC | |
4136 | ||
4137 | fi | |
4138 | # AC_CACHE_VAL | |
4139 | case "x$ac_cv_prog_cc_c99" in | |
4140 | x) | |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4142 | $as_echo "none needed" >&6; } ;; | |
4143 | xno) | |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4145 | $as_echo "unsupported" >&6; } ;; | |
4146 | *) | |
4147 | CC="$CC $ac_cv_prog_cc_c99" | |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4149 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
4150 | esac | |
4151 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
4152 | ||
4153 | fi | |
4154 | ||
4155 | ||
4156 | ||
4157 | if test x"$ac_cv_prog_cc_c99" = "xno"; then | |
4158 | as_fn_error $? "charybdis requires a C99 capable compiler" "$LINENO" 5 | |
4159 | fi | |
4160 | ||
c52df125 | 4161 | |
c52df125 | 4162 | |
eec2776c | 4163 | ac_config_headers="$ac_config_headers include/setup.h" |
c52df125 AC |
4164 | |
4165 | ||
eec2776c AJ |
4166 | |
4167 | subdirs="$subdirs libratbox" | |
4168 | ||
4169 | ac_aux_dir= | |
4170 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
4171 | if test -f "$ac_dir/install-sh"; then | |
4172 | ac_aux_dir=$ac_dir | |
4173 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4174 | break | |
4175 | elif test -f "$ac_dir/install.sh"; then | |
4176 | ac_aux_dir=$ac_dir | |
4177 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4178 | break | |
4179 | elif test -f "$ac_dir/shtool"; then | |
4180 | ac_aux_dir=$ac_dir | |
4181 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4182 | break | |
c52df125 AC |
4183 | fi |
4184 | done | |
eec2776c AJ |
4185 | if test -z "$ac_aux_dir"; then |
4186 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
c52df125 AC |
4187 | fi |
4188 | ||
eec2776c AJ |
4189 | # These three variables are undocumented and unsupported, |
4190 | # and are intended to be withdrawn in a future Autoconf release. | |
4191 | # They can cause serious problems if a builder's source tree is in a directory | |
4192 | # whose full name contains unusual characters. | |
4193 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4194 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4195 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4196 | ||
c52df125 | 4197 | |
eec2776c AJ |
4198 | |
4199 | ||
4200 | am__api_version='1.15' | |
4201 | ||
4202 | # Find a good install program. We prefer a C program (faster), | |
4203 | # so one script is as good as another. But avoid the broken or | |
4204 | # incompatible versions: | |
4205 | # SysV /etc/install, /usr/sbin/install | |
4206 | # SunOS /usr/etc/install | |
4207 | # IRIX /sbin/install | |
4208 | # AIX /bin/install | |
4209 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4210 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4211 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4212 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4213 | # OS/2's system install, which has a completely different semantic | |
4214 | # ./install, which can be erroneously created by make from ./install.sh. | |
4215 | # Reject install programs that cannot install multiple files. | |
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4217 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4218 | if test -z "$INSTALL"; then | |
4219 | if ${ac_cv_path_install+:} false; then : | |
c52df125 AC |
4220 | $as_echo_n "(cached) " >&6 |
4221 | else | |
eec2776c | 4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c52df125 AC |
4223 | for as_dir in $PATH |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
4227 | # Account for people who put trailing slashes in PATH elements. |
4228 | case $as_dir/ in #(( | |
4229 | ./ | .// | /[cC]/* | \ | |
4230 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4231 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4232 | /usr/ucb/* ) ;; | |
4233 | *) | |
4234 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4235 | # Don't use installbsd from OSF since it installs stuff as root | |
4236 | # by default. | |
4237 | for ac_prog in ginstall scoinst install; do | |
4238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4239 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4240 | if test $ac_prog = install && | |
4241 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4242 | # AIX install. It has an incompatible calling convention. | |
4243 | : | |
4244 | elif test $ac_prog = install && | |
4245 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4246 | # program-specific install script used by HP pwplus--don't use. | |
4247 | : | |
4248 | else | |
4249 | rm -rf conftest.one conftest.two conftest.dir | |
4250 | echo one > conftest.one | |
4251 | echo two > conftest.two | |
4252 | mkdir conftest.dir | |
4253 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4254 | test -s conftest.one && test -s conftest.two && | |
4255 | test -s conftest.dir/conftest.one && | |
4256 | test -s conftest.dir/conftest.two | |
4257 | then | |
4258 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4259 | break 3 | |
4260 | fi | |
4261 | fi | |
4262 | fi | |
4263 | done | |
4264 | done | |
4265 | ;; | |
4266 | esac | |
4267 | ||
c52df125 AC |
4268 | done |
4269 | IFS=$as_save_IFS | |
4270 | ||
eec2776c AJ |
4271 | rm -rf conftest.one conftest.two conftest.dir |
4272 | ||
c52df125 | 4273 | fi |
eec2776c AJ |
4274 | if test "${ac_cv_path_install+set}" = set; then |
4275 | INSTALL=$ac_cv_path_install | |
4276 | else | |
4277 | # As a last resort, use the slow shell script. Don't cache a | |
4278 | # value for INSTALL within a source directory, because that will | |
4279 | # break other packages using the cache if that directory is | |
4280 | # removed, or if the value is a relative name. | |
4281 | INSTALL=$ac_install_sh | |
4282 | fi | |
4283 | fi | |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4285 | $as_echo "$INSTALL" >&6; } | |
4286 | ||
4287 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4288 | # It thinks the first close brace ends the variable substitution. | |
4289 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4290 | ||
4291 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4292 | ||
4293 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4294 | ||
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4296 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4297 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4298 | # name. Accept space and tab only in the latter. | |
4299 | am_lf=' | |
4300 | ' | |
4301 | case `pwd` in | |
4302 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4303 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4304 | esac | |
4305 | case $srcdir in | |
4306 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4307 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4308 | esac | |
4309 | ||
4310 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4311 | # arguments. Must try -L first in case configure is actually a | |
4312 | # symlink; some systems play weird games with the mod time of symlinks | |
4313 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4314 | # directory). | |
4315 | if ( | |
4316 | am_has_slept=no | |
4317 | for am_try in 1 2; do | |
4318 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4319 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4320 | if test "$*" = "X"; then | |
4321 | # -L didn't work. | |
4322 | set X `ls -t "$srcdir/configure" conftest.file` | |
4323 | fi | |
4324 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4325 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4326 | ||
4327 | # If neither matched, then we have a broken ls. This can happen | |
4328 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4329 | # broken ls alias from the environment. This has actually | |
4330 | # happened. Such a system could not be considered "sane". | |
4331 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4332 | alias in your environment" "$LINENO" 5 | |
4333 | fi | |
4334 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4335 | break | |
4336 | fi | |
4337 | # Just in case. | |
4338 | sleep 1 | |
4339 | am_has_slept=yes | |
4340 | done | |
4341 | test "$2" = conftest.file | |
4342 | ) | |
4343 | then | |
4344 | # Ok. | |
4345 | : | |
4346 | else | |
4347 | as_fn_error $? "newly created file is older than distributed files! | |
4348 | Check your system clock" "$LINENO" 5 | |
4349 | fi | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4351 | $as_echo "yes" >&6; } | |
4352 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4353 | # generated files are strictly newer. | |
4354 | am_sleep_pid= | |
4355 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4356 | ( sleep 1 ) & | |
4357 | am_sleep_pid=$! | |
4358 | fi | |
4359 | ||
4360 | rm -f conftest.file | |
4361 | ||
4362 | test "$program_prefix" != NONE && | |
4363 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4364 | # Use a double $ so make ignores it. | |
4365 | test "$program_suffix" != NONE && | |
4366 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4367 | # Double any \ or $. | |
4368 | # By default was `s,x,x', remove it if useless. | |
4369 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4370 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4371 | ||
4372 | if test x"${MISSING+set}" != xset; then | |
4373 | case $am_aux_dir in | |
4374 | *\ * | *\ *) | |
4375 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4376 | *) | |
4377 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4378 | esac | |
4379 | fi | |
4380 | # Use eval to expand $SHELL | |
4381 | if eval "$MISSING --is-lightweight"; then | |
4382 | am_missing_run="$MISSING " | |
4383 | else | |
4384 | am_missing_run= | |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4386 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4387 | fi | |
4388 | ||
4389 | if test x"${install_sh+set}" != xset; then | |
4390 | case $am_aux_dir in | |
4391 | *\ * | *\ *) | |
4392 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4393 | *) | |
4394 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4395 | esac | |
4396 | fi | |
4397 | ||
4398 | # Installed binaries are usually stripped using 'strip' when the user | |
4399 | # run "make install-strip". However 'strip' might not be the right | |
4400 | # tool to use in cross-compilation environments, therefore Automake | |
4401 | # will honor the 'STRIP' environment variable to overrule this program. | |
4402 | if test "$cross_compiling" != no; then | |
4403 | if test -n "$ac_tool_prefix"; then | |
4404 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4405 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4407 | $as_echo_n "checking for $ac_word... " >&6; } | |
4408 | if ${ac_cv_prog_STRIP+:} false; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
4410 | else | |
4411 | if test -n "$STRIP"; then | |
4412 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4413 | else | |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
4419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4421 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4423 | break 2 | |
4424 | fi | |
4425 | done | |
4426 | done | |
4427 | IFS=$as_save_IFS | |
4428 | ||
4429 | fi | |
4430 | fi | |
4431 | STRIP=$ac_cv_prog_STRIP | |
4432 | if test -n "$STRIP"; then | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4434 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
4435 | else |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4437 | $as_echo "no" >&6; } | |
4438 | fi | |
4439 | ||
4440 | ||
eec2776c AJ |
4441 | fi |
4442 | if test -z "$ac_cv_prog_STRIP"; then | |
4443 | ac_ct_STRIP=$STRIP | |
4444 | # Extract the first word of "strip", so it can be a program name with args. | |
4445 | set dummy strip; ac_word=$2 | |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4447 | $as_echo_n "checking for $ac_word... " >&6; } | |
4448 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4449 | $as_echo_n "(cached) " >&6 | |
4450 | else | |
4451 | if test -n "$ac_ct_STRIP"; then | |
4452 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4453 | else | |
4454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4455 | for as_dir in $PATH | |
4456 | do | |
4457 | IFS=$as_save_IFS | |
4458 | test -z "$as_dir" && as_dir=. | |
4459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4461 | ac_cv_prog_ac_ct_STRIP="strip" | |
4462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4463 | break 2 | |
4464 | fi | |
c52df125 | 4465 | done |
eec2776c AJ |
4466 | done |
4467 | IFS=$as_save_IFS | |
c52df125 | 4468 | |
eec2776c AJ |
4469 | fi |
4470 | fi | |
4471 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4472 | if test -n "$ac_ct_STRIP"; then | |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4474 | $as_echo "$ac_ct_STRIP" >&6; } | |
4475 | else | |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4477 | $as_echo "no" >&6; } | |
4478 | fi | |
4479 | ||
4480 | if test "x$ac_ct_STRIP" = x; then | |
4481 | STRIP=":" | |
c52df125 AC |
4482 | else |
4483 | case $cross_compiling:$ac_tool_warned in | |
4484 | yes:) | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4487 | ac_tool_warned=yes ;; | |
4488 | esac | |
eec2776c | 4489 | STRIP=$ac_ct_STRIP |
c52df125 | 4490 | fi |
eec2776c AJ |
4491 | else |
4492 | STRIP="$ac_cv_prog_STRIP" | |
c52df125 AC |
4493 | fi |
4494 | ||
eec2776c AJ |
4495 | fi |
4496 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
c52df125 | 4497 | |
eec2776c AJ |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4499 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4500 | if test -z "$MKDIR_P"; then | |
4501 | if ${ac_cv_path_mkdir+:} false; then : | |
c52df125 AC |
4502 | $as_echo_n "(cached) " >&6 |
4503 | else | |
eec2776c AJ |
4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4505 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4506 | do | |
4507 | IFS=$as_save_IFS | |
4508 | test -z "$as_dir" && as_dir=. | |
4509 | for ac_prog in mkdir gmkdir; do | |
4510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4511 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4512 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4513 | 'mkdir (GNU coreutils) '* | \ | |
4514 | 'mkdir (coreutils) '* | \ | |
4515 | 'mkdir (fileutils) '4.1*) | |
4516 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4517 | break 3;; | |
4518 | esac | |
4519 | done | |
4520 | done | |
4521 | done | |
4522 | IFS=$as_save_IFS | |
c52df125 | 4523 | |
eec2776c | 4524 | fi |
c52df125 | 4525 | |
eec2776c AJ |
4526 | test -d ./--version && rmdir ./--version |
4527 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4528 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4529 | else | |
4530 | # As a last resort, use the slow shell script. Don't cache a | |
4531 | # value for MKDIR_P within a source directory, because that will | |
4532 | # break other packages using the cache if that directory is | |
4533 | # removed, or if the value is a relative name. | |
4534 | MKDIR_P="$ac_install_sh -d" | |
4535 | fi | |
c52df125 | 4536 | fi |
eec2776c AJ |
4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4538 | $as_echo "$MKDIR_P" >&6; } | |
4539 | ||
4540 | for ac_prog in gawk mawk nawk awk | |
4541 | do | |
4542 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4543 | set dummy $ac_prog; ac_word=$2 | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4545 | $as_echo_n "checking for $ac_word... " >&6; } | |
4546 | if ${ac_cv_prog_AWK+:} false; then : | |
4547 | $as_echo_n "(cached) " >&6 | |
4548 | else | |
4549 | if test -n "$AWK"; then | |
4550 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4551 | else | |
4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4553 | for as_dir in $PATH | |
4554 | do | |
4555 | IFS=$as_save_IFS | |
4556 | test -z "$as_dir" && as_dir=. | |
4557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4559 | ac_cv_prog_AWK="$ac_prog" | |
4560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4561 | break 2 | |
4562 | fi | |
4563 | done | |
4564 | done | |
4565 | IFS=$as_save_IFS | |
c52df125 AC |
4566 | |
4567 | fi | |
eec2776c AJ |
4568 | fi |
4569 | AWK=$ac_cv_prog_AWK | |
4570 | if test -n "$AWK"; then | |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4572 | $as_echo "$AWK" >&6; } | |
4573 | else | |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4575 | $as_echo "no" >&6; } | |
4576 | fi | |
c52df125 | 4577 | |
c52df125 | 4578 | |
eec2776c AJ |
4579 | test -n "$AWK" && break |
4580 | done | |
c52df125 | 4581 | |
eec2776c AJ |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4583 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4584 | set x ${MAKE-make} | |
4585 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4586 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4587 | $as_echo_n "(cached) " >&6 | |
4588 | else | |
4589 | cat >conftest.make <<\_ACEOF | |
4590 | SHELL = /bin/sh | |
4591 | all: | |
4592 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4593 | _ACEOF | |
4594 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4595 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4596 | *@@@%%%=?*=@@@%%%*) | |
4597 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4598 | *) | |
4599 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
c52df125 | 4600 | esac |
eec2776c AJ |
4601 | rm -f conftest.make |
4602 | fi | |
4603 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4605 | $as_echo "yes" >&6; } | |
4606 | SET_MAKE= | |
4607 | else | |
4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4609 | $as_echo "no" >&6; } | |
4610 | SET_MAKE="MAKE=${MAKE-make}" | |
4611 | fi | |
c52df125 | 4612 | |
eec2776c AJ |
4613 | rm -rf .tst 2>/dev/null |
4614 | mkdir .tst 2>/dev/null | |
4615 | if test -d .tst; then | |
4616 | am__leading_dot=. | |
4617 | else | |
4618 | am__leading_dot=_ | |
4619 | fi | |
4620 | rmdir .tst 2>/dev/null | |
c52df125 | 4621 | |
eec2776c | 4622 | DEPDIR="${am__leading_dot}deps" |
c52df125 | 4623 | |
eec2776c | 4624 | ac_config_commands="$ac_config_commands depfiles" |
c52df125 AC |
4625 | |
4626 | ||
eec2776c AJ |
4627 | am_make=${MAKE-make} |
4628 | cat > confinc << 'END' | |
4629 | am__doit: | |
4630 | @echo this is the am__doit target | |
4631 | .PHONY: am__doit | |
4632 | END | |
4633 | # If we don't find an include directive, just comment out the code. | |
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4635 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4636 | am__include="#" | |
4637 | am__quote= | |
4638 | _am_result=none | |
4639 | # First try GNU make style include. | |
4640 | echo "include confinc" > confmf | |
4641 | # Ignore all kinds of additional output from 'make'. | |
4642 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4643 | *the\ am__doit\ target*) | |
4644 | am__include=include | |
4645 | am__quote= | |
4646 | _am_result=GNU | |
4647 | ;; | |
4648 | esac | |
4649 | # Now try BSD make style include. | |
4650 | if test "$am__include" = "#"; then | |
4651 | echo '.include "confinc"' > confmf | |
4652 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4653 | *the\ am__doit\ target*) | |
4654 | am__include=.include | |
4655 | am__quote="\"" | |
4656 | _am_result=BSD | |
4657 | ;; | |
4658 | esac | |
4659 | fi | |
c52df125 AC |
4660 | |
4661 | ||
eec2776c AJ |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4663 | $as_echo "$_am_result" >&6; } | |
4664 | rm -f confinc confmf | |
c52df125 | 4665 | |
eec2776c AJ |
4666 | # Check whether --enable-dependency-tracking was given. |
4667 | if test "${enable_dependency_tracking+set}" = set; then : | |
4668 | enableval=$enable_dependency_tracking; | |
4669 | fi | |
c52df125 | 4670 | |
eec2776c AJ |
4671 | if test "x$enable_dependency_tracking" != xno; then |
4672 | am_depcomp="$ac_aux_dir/depcomp" | |
4673 | AMDEPBACKSLASH='\' | |
4674 | am__nodep='_no' | |
4675 | fi | |
4676 | if test "x$enable_dependency_tracking" != xno; then | |
4677 | AMDEP_TRUE= | |
4678 | AMDEP_FALSE='#' | |
4679 | else | |
4680 | AMDEP_TRUE='#' | |
4681 | AMDEP_FALSE= | |
4682 | fi | |
c52df125 AC |
4683 | |
4684 | ||
eec2776c AJ |
4685 | # Check whether --enable-silent-rules was given. |
4686 | if test "${enable_silent_rules+set}" = set; then : | |
4687 | enableval=$enable_silent_rules; | |
4688 | fi | |
c52df125 | 4689 | |
eec2776c AJ |
4690 | case $enable_silent_rules in # ((( |
4691 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4692 | no) AM_DEFAULT_VERBOSITY=1;; | |
4693 | *) AM_DEFAULT_VERBOSITY=1;; | |
4694 | esac | |
4695 | am_make=${MAKE-make} | |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4697 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4698 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4699 | $as_echo_n "(cached) " >&6 | |
4700 | else | |
4701 | if $as_echo 'TRUE=$(BAR$(V)) | |
4702 | BAR0=false | |
4703 | BAR1=true | |
4704 | V=1 | |
4705 | am__doit: | |
4706 | @$(TRUE) | |
4707 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4708 | am_cv_make_support_nested_variables=yes | |
4709 | else | |
4710 | am_cv_make_support_nested_variables=no | |
4711 | fi | |
4712 | fi | |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4714 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4715 | if test $am_cv_make_support_nested_variables = yes; then | |
4716 | AM_V='$(V)' | |
4717 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4718 | else | |
4719 | AM_V=$AM_DEFAULT_VERBOSITY | |
4720 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4721 | fi | |
4722 | AM_BACKSLASH='\' | |
c52df125 | 4723 | |
eec2776c AJ |
4724 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4725 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4726 | # is not polluted with repeated "-I." | |
4727 | am__isrc=' -I$(srcdir)' | |
4728 | # test to see if srcdir already configured | |
4729 | if test -f $srcdir/config.status; then | |
4730 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4731 | fi | |
4732 | fi | |
c52df125 | 4733 | |
eec2776c AJ |
4734 | # test whether we have cygpath |
4735 | if test -z "$CYGPATH_W"; then | |
4736 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4737 | CYGPATH_W='cygpath -w' | |
4738 | else | |
4739 | CYGPATH_W=echo | |
4740 | fi | |
4741 | fi | |
c52df125 AC |
4742 | |
4743 | ||
eec2776c AJ |
4744 | # Define the identity of the package. |
4745 | PACKAGE='charybdis' | |
4746 | VERSION='3.6.0-dev' | |
c52df125 | 4747 | |
c52df125 | 4748 | |
eec2776c AJ |
4749 | cat >>confdefs.h <<_ACEOF |
4750 | #define PACKAGE "$PACKAGE" | |
4751 | _ACEOF | |
c52df125 | 4752 | |
c52df125 | 4753 | |
eec2776c AJ |
4754 | cat >>confdefs.h <<_ACEOF |
4755 | #define VERSION "$VERSION" | |
4756 | _ACEOF | |
c52df125 | 4757 | |
eec2776c | 4758 | # Some tools Automake needs. |
c52df125 | 4759 | |
eec2776c | 4760 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
c52df125 | 4761 | |
c52df125 | 4762 | |
eec2776c | 4763 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
c52df125 | 4764 | |
c52df125 | 4765 | |
eec2776c | 4766 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
c52df125 | 4767 | |
c52df125 | 4768 | |
eec2776c | 4769 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
c52df125 AC |
4770 | |
4771 | ||
eec2776c | 4772 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
c52df125 | 4773 | |
eec2776c AJ |
4774 | # For better backward compatibility. To be removed once Automake 1.9.x |
4775 | # dies out for good. For more background, see: | |
4776 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4777 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4778 | mkdir_p='$(MKDIR_P)' | |
c52df125 | 4779 | |
eec2776c AJ |
4780 | # We need awk for the "check" target (and possibly the TAP driver). The |
4781 | # system "awk" is bad on some platforms. | |
4782 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4783 | # in the wild :-( We should find a proper way to deprecate it ... | |
4784 | AMTAR='$${TAR-tar}' | |
c52df125 AC |
4785 | |
4786 | ||
eec2776c AJ |
4787 | # We'll loop over all known methods to create a tar archive until one works. |
4788 | _am_tools='gnutar pax cpio none' | |
c52df125 | 4789 | |
eec2776c | 4790 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c52df125 AC |
4791 | |
4792 | ||
4793 | ||
4794 | ||
4795 | ||
eec2776c | 4796 | depcc="$CC" am_compiler_list= |
c52df125 | 4797 | |
eec2776c AJ |
4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4799 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4800 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
c52df125 AC |
4801 | $as_echo_n "(cached) " >&6 |
4802 | else | |
eec2776c AJ |
4803 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4804 | # We make a subdir and do the tests there. Otherwise we can end up | |
4805 | # making bogus files that we don't know about and never remove. For | |
4806 | # instance it was reported that on HP-UX the gcc test will end up | |
4807 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4808 | # in D". | |
4809 | rm -rf conftest.dir | |
4810 | mkdir conftest.dir | |
4811 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4812 | # using a relative directory. | |
4813 | cp "$am_depcomp" conftest.dir | |
4814 | cd conftest.dir | |
4815 | # We will build objects and dependencies in a subdirectory because | |
4816 | # it helps to detect inapplicable dependency modes. For instance | |
4817 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4818 | # side effect of compilation, but ICC will put the dependencies in | |
4819 | # the current directory while Tru64 will put them in the object | |
4820 | # directory. | |
4821 | mkdir sub | |
c52df125 | 4822 | |
eec2776c AJ |
4823 | am_cv_CC_dependencies_compiler_type=none |
4824 | if test "$am_compiler_list" = ""; then | |
4825 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
c52df125 | 4826 | fi |
eec2776c AJ |
4827 | am__universal=false |
4828 | case " $depcc " in #( | |
4829 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4830 | esac | |
c52df125 | 4831 | |
eec2776c AJ |
4832 | for depmode in $am_compiler_list; do |
4833 | # Setup a source with many dependencies, because some compilers | |
4834 | # like to wrap large dependency lists on column 80 (with \), and | |
4835 | # we should not choose a depcomp mode which is confused by this. | |
4836 | # | |
4837 | # We need to recreate these files for each test, as the compiler may | |
4838 | # overwrite some of them when testing with obscure command lines. | |
4839 | # This happens at least with the AIX C compiler. | |
4840 | : > sub/conftest.c | |
4841 | for i in 1 2 3 4 5 6; do | |
4842 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4843 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4844 | # Solaris 10 /bin/sh. | |
4845 | echo '/* dummy */' > sub/conftst$i.h | |
4846 | done | |
4847 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c52df125 | 4848 | |
eec2776c AJ |
4849 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4850 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4851 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4852 | # versions had trouble with output in subdirs. | |
4853 | am__obj=sub/conftest.${OBJEXT-o} | |
4854 | am__minus_obj="-o $am__obj" | |
4855 | case $depmode in | |
4856 | gcc) | |
4857 | # This depmode causes a compiler race in universal mode. | |
4858 | test "$am__universal" = false || continue | |
4859 | ;; | |
4860 | nosideeffect) | |
4861 | # After this tag, mechanisms are not by side-effect, so they'll | |
4862 | # only be used when explicitly requested. | |
4863 | if test "x$enable_dependency_tracking" = xyes; then | |
4864 | continue | |
4865 | else | |
4866 | break | |
4867 | fi | |
4868 | ;; | |
4869 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4870 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4871 | # not run yet. These depmodes are late enough in the game, and | |
4872 | # so weak that their functioning should not be impacted. | |
4873 | am__obj=conftest.${OBJEXT-o} | |
4874 | am__minus_obj= | |
4875 | ;; | |
4876 | none) break ;; | |
4877 | esac | |
4878 | if depmode=$depmode \ | |
4879 | source=sub/conftest.c object=$am__obj \ | |
4880 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4881 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4882 | >/dev/null 2>conftest.err && | |
4883 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4884 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4885 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4886 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4887 | # icc doesn't choke on unknown options, it will just issue warnings | |
4888 | # or remarks (even with -Werror). So we grep stderr for any message | |
4889 | # that says an option was ignored or not supported. | |
4890 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4891 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4892 | # The diagnosis changed in icc 8.0: | |
4893 | # icc: Command line remark: option '-MP' not supported | |
4894 | if (grep 'ignoring option' conftest.err || | |
4895 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4896 | am_cv_CC_dependencies_compiler_type=$depmode | |
4897 | break | |
4898 | fi | |
c52df125 | 4899 | fi |
c52df125 | 4900 | done |
c52df125 | 4901 | |
eec2776c AJ |
4902 | cd .. |
4903 | rm -rf conftest.dir | |
c52df125 | 4904 | else |
eec2776c | 4905 | am_cv_CC_dependencies_compiler_type=none |
c52df125 AC |
4906 | fi |
4907 | ||
4908 | fi | |
eec2776c AJ |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4910 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4911 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c52df125 | 4912 | |
eec2776c AJ |
4913 | if |
4914 | test "x$enable_dependency_tracking" != xno \ | |
4915 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4916 | am__fastdepCC_TRUE= | |
4917 | am__fastdepCC_FALSE='#' | |
c52df125 | 4918 | else |
eec2776c AJ |
4919 | am__fastdepCC_TRUE='#' |
4920 | am__fastdepCC_FALSE= | |
4921 | fi | |
c52df125 | 4922 | |
eec2776c AJ |
4923 | |
4924 | ||
4925 | # POSIX will say in a future version that running "rm -f" with no argument | |
4926 | # is OK; and we want to be able to make that assumption in our Makefile | |
4927 | # recipes. So use an aggressive probe to check that the usage we want is | |
4928 | # actually supported "in the wild" to an acceptable degree. | |
4929 | # See automake bug#10828. | |
4930 | # To make any issue more visible, cause the running configure to be aborted | |
4931 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4932 | # user can still override this though. | |
4933 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4934 | cat >&2 <<'END' | |
4935 | Oops! | |
4936 | ||
4937 | Your 'rm' program seems unable to run without file operands specified | |
4938 | on the command line, even when the '-f' option is present. This is contrary | |
4939 | to the behaviour of most rm programs out there, and not conforming with | |
4940 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4941 | ||
4942 | Please tell bug-automake@gnu.org about your system, including the value | |
4943 | of your $PATH and any error possibly output before this message. This | |
4944 | can help us improve future automake versions. | |
4945 | ||
4946 | END | |
4947 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4948 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4949 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4950 | echo >&2 | |
4951 | else | |
4952 | cat >&2 <<'END' | |
4953 | Aborting the configuration process, to ensure you take notice of the issue. | |
4954 | ||
4955 | You can download and install GNU coreutils to get an 'rm' implementation | |
4956 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4957 | ||
4958 | If you want to complete the configuration process using your problematic | |
4959 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4960 | to "yes", and re-run configure. | |
4961 | ||
4962 | END | |
4963 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
c52df125 | 4964 | fi |
c52df125 AC |
4965 | fi |
4966 | ||
eec2776c AJ |
4967 | # Check whether --enable-silent-rules was given. |
4968 | if test "${enable_silent_rules+set}" = set; then : | |
4969 | enableval=$enable_silent_rules; | |
c52df125 | 4970 | fi |
c52df125 | 4971 | |
eec2776c AJ |
4972 | case $enable_silent_rules in # ((( |
4973 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4974 | no) AM_DEFAULT_VERBOSITY=1;; | |
4975 | *) AM_DEFAULT_VERBOSITY=0;; | |
4976 | esac | |
4977 | am_make=${MAKE-make} | |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4979 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4980 | if ${am_cv_make_support_nested_variables+:} false; then : | |
c52df125 AC |
4981 | $as_echo_n "(cached) " >&6 |
4982 | else | |
eec2776c AJ |
4983 | if $as_echo 'TRUE=$(BAR$(V)) |
4984 | BAR0=false | |
4985 | BAR1=true | |
4986 | V=1 | |
4987 | am__doit: | |
4988 | @$(TRUE) | |
4989 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4990 | am_cv_make_support_nested_variables=yes | |
c52df125 | 4991 | else |
eec2776c | 4992 | am_cv_make_support_nested_variables=no |
c52df125 | 4993 | fi |
c52df125 | 4994 | fi |
eec2776c AJ |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
4996 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4997 | if test $am_cv_make_support_nested_variables = yes; then | |
4998 | AM_V='$(V)' | |
4999 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
c52df125 | 5000 | else |
eec2776c AJ |
5001 | AM_V=$AM_DEFAULT_VERBOSITY |
5002 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
c52df125 | 5003 | fi |
eec2776c | 5004 | AM_BACKSLASH='\' |
c52df125 | 5005 | |
eec2776c AJ |
5006 | if test -n "$ac_tool_prefix"; then |
5007 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5008 | do |
5009 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5010 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5012 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5013 | if ${ac_cv_prog_AR+:} false; then : |
c52df125 AC |
5014 | $as_echo_n "(cached) " >&6 |
5015 | else | |
eec2776c AJ |
5016 | if test -n "$AR"; then |
5017 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c52df125 AC |
5018 | else |
5019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5020 | for as_dir in $PATH | |
5021 | do | |
5022 | IFS=$as_save_IFS | |
5023 | test -z "$as_dir" && as_dir=. | |
5024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5026 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5028 | break 2 | |
5029 | fi | |
5030 | done | |
5031 | done | |
5032 | IFS=$as_save_IFS | |
5033 | ||
5034 | fi | |
5035 | fi | |
eec2776c AJ |
5036 | AR=$ac_cv_prog_AR |
5037 | if test -n "$AR"; then | |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5039 | $as_echo "$AR" >&6; } | |
c52df125 AC |
5040 | else |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5042 | $as_echo "no" >&6; } | |
5043 | fi | |
5044 | ||
5045 | ||
eec2776c | 5046 | test -n "$AR" && break |
c52df125 AC |
5047 | done |
5048 | fi | |
eec2776c AJ |
5049 | if test -z "$AR"; then |
5050 | ac_ct_AR=$AR | |
5051 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5052 | do |
5053 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5054 | set dummy $ac_prog; ac_word=$2 | |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5056 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5057 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
c52df125 AC |
5058 | $as_echo_n "(cached) " >&6 |
5059 | else | |
eec2776c AJ |
5060 | if test -n "$ac_ct_AR"; then |
5061 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
c52df125 AC |
5062 | else |
5063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5064 | for as_dir in $PATH | |
5065 | do | |
5066 | IFS=$as_save_IFS | |
5067 | test -z "$as_dir" && as_dir=. | |
5068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5070 | ac_cv_prog_ac_ct_AR="$ac_prog" |
c52df125 AC |
5071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5072 | break 2 | |
5073 | fi | |
5074 | done | |
5075 | done | |
5076 | IFS=$as_save_IFS | |
5077 | ||
5078 | fi | |
5079 | fi | |
eec2776c AJ |
5080 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5081 | if test -n "$ac_ct_AR"; then | |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5083 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 AC |
5084 | else |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5086 | $as_echo "no" >&6; } | |
5087 | fi | |
5088 | ||
5089 | ||
eec2776c | 5090 | test -n "$ac_ct_AR" && break |
c52df125 AC |
5091 | done |
5092 | ||
eec2776c AJ |
5093 | if test "x$ac_ct_AR" = x; then |
5094 | AR="false" | |
c52df125 AC |
5095 | else |
5096 | case $cross_compiling:$ac_tool_warned in | |
5097 | yes:) | |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5100 | ac_tool_warned=yes ;; | |
5101 | esac | |
eec2776c | 5102 | AR=$ac_ct_AR |
c52df125 AC |
5103 | fi |
5104 | fi | |
5105 | ||
eec2776c AJ |
5106 | : ${AR=ar} |
5107 | ||
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5109 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5110 | if ${am_cv_ar_interface+:} false; then : | |
5111 | $as_echo_n "(cached) " >&6 | |
5112 | else | |
5113 | ac_ext=c | |
5114 | ac_cpp='$CPP $CPPFLAGS' | |
5115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5118 | ||
5119 | am_cv_ar_interface=ar | |
5120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5121 | /* end confdefs.h. */ | |
5122 | int some_variable = 0; | |
5123 | _ACEOF | |
5124 | if ac_fn_c_try_compile "$LINENO"; then : | |
5125 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5127 | (eval $am_ar_try) 2>&5 | |
5128 | ac_status=$? | |
5129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5130 | test $ac_status = 0; } | |
5131 | if test "$ac_status" -eq 0; then | |
5132 | am_cv_ar_interface=ar | |
5133 | else | |
5134 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5135 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5136 | (eval $am_ar_try) 2>&5 | |
5137 | ac_status=$? | |
5138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5139 | test $ac_status = 0; } | |
5140 | if test "$ac_status" -eq 0; then | |
5141 | am_cv_ar_interface=lib | |
5142 | else | |
5143 | am_cv_ar_interface=unknown | |
5144 | fi | |
5145 | fi | |
5146 | rm -f conftest.lib libconftest.a | |
c52df125 | 5147 | |
c52df125 | 5148 | fi |
eec2776c AJ |
5149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5150 | ac_ext=c | |
5151 | ac_cpp='$CPP $CPPFLAGS' | |
5152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 5155 | |
eec2776c AJ |
5156 | fi |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5158 | $as_echo "$am_cv_ar_interface" >&6; } | |
c52df125 | 5159 | |
eec2776c AJ |
5160 | case $am_cv_ar_interface in |
5161 | ar) | |
5162 | ;; | |
5163 | lib) | |
5164 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5165 | # FIXME: It is wrong to rewrite AR. | |
5166 | # But if we don't then we get into trouble of one sort or another. | |
5167 | # A longer-term fix would be to have automake use am__AR in this case, | |
5168 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5169 | # similar. | |
5170 | AR="$am_aux_dir/ar-lib $AR" | |
5171 | ;; | |
5172 | unknown) | |
5173 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5174 | ;; | |
5175 | esac | |
c52df125 AC |
5176 | |
5177 | ||
eec2776c AJ |
5178 | case `pwd` in |
5179 | *\ * | *\ *) | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5181 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5182 | esac | |
c52df125 AC |
5183 | |
5184 | ||
c52df125 | 5185 | |
eec2776c AJ |
5186 | macro_version='2.4.2' |
5187 | macro_revision='1.3337' | |
c52df125 | 5188 | |
c52df125 | 5189 | |
c52df125 | 5190 | |
c52df125 | 5191 | |
c52df125 | 5192 | |
c52df125 | 5193 | |
c52df125 | 5194 | |
c52df125 | 5195 | |
c52df125 | 5196 | |
c52df125 AC |
5197 | |
5198 | ||
5199 | ||
5200 | ||
eec2776c | 5201 | ltmain="$ac_aux_dir/ltmain.sh" |
c52df125 | 5202 | |
eec2776c AJ |
5203 | # Make sure we can run config.sub. |
5204 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5205 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
c52df125 | 5206 | |
eec2776c AJ |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5208 | $as_echo_n "checking build system type... " >&6; } | |
5209 | if ${ac_cv_build+:} false; then : | |
5210 | $as_echo_n "(cached) " >&6 | |
5211 | else | |
5212 | ac_build_alias=$build_alias | |
5213 | test "x$ac_build_alias" = x && | |
5214 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5215 | test "x$ac_build_alias" = x && | |
5216 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5217 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5218 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
c52df125 | 5219 | |
eec2776c AJ |
5220 | fi |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5222 | $as_echo "$ac_cv_build" >&6; } | |
5223 | case $ac_cv_build in | |
5224 | *-*-*) ;; | |
5225 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5226 | esac | |
5227 | build=$ac_cv_build | |
5228 | ac_save_IFS=$IFS; IFS='-' | |
5229 | set x $ac_cv_build | |
5230 | shift | |
5231 | build_cpu=$1 | |
5232 | build_vendor=$2 | |
5233 | shift; shift | |
5234 | # Remember, the first character of IFS is used to create $*, | |
5235 | # except with old shells: | |
5236 | build_os=$* | |
5237 | IFS=$ac_save_IFS | |
5238 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5239 | |
5240 | ||
eec2776c AJ |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5242 | $as_echo_n "checking host system type... " >&6; } | |
5243 | if ${ac_cv_host+:} false; then : | |
5244 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5245 | else |
eec2776c AJ |
5246 | if test "x$host_alias" = x; then |
5247 | ac_cv_host=$ac_cv_build | |
5248 | else | |
5249 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5250 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c52df125 AC |
5251 | fi |
5252 | ||
eec2776c AJ |
5253 | fi |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5255 | $as_echo "$ac_cv_host" >&6; } | |
5256 | case $ac_cv_host in | |
5257 | *-*-*) ;; | |
5258 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
c52df125 | 5259 | esac |
eec2776c AJ |
5260 | host=$ac_cv_host |
5261 | ac_save_IFS=$IFS; IFS='-' | |
5262 | set x $ac_cv_host | |
5263 | shift | |
5264 | host_cpu=$1 | |
5265 | host_vendor=$2 | |
5266 | shift; shift | |
5267 | # Remember, the first character of IFS is used to create $*, | |
5268 | # except with old shells: | |
5269 | host_os=$* | |
5270 | IFS=$ac_save_IFS | |
5271 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5272 | |
5273 | ||
eec2776c AJ |
5274 | # Backslashify metacharacters that are still active within |
5275 | # double-quoted strings. | |
5276 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
c52df125 | 5277 | |
eec2776c AJ |
5278 | # Same as above, but do not quote variable references. |
5279 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
c52df125 | 5280 | |
eec2776c AJ |
5281 | # Sed substitution to delay expansion of an escaped shell variable in a |
5282 | # double_quote_subst'ed string. | |
5283 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
c52df125 | 5284 | |
eec2776c AJ |
5285 | # Sed substitution to delay expansion of an escaped single quote. |
5286 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
c52df125 | 5287 | |
eec2776c AJ |
5288 | # Sed substitution to avoid accidental globbing in evaled expressions |
5289 | no_glob_subst='s/\*/\\\*/g' | |
c52df125 | 5290 | |
eec2776c AJ |
5291 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5292 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5293 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
c52df125 | 5294 | |
eec2776c AJ |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5296 | $as_echo_n "checking how to print strings... " >&6; } | |
5297 | # Test print first, because it will be a builtin if present. | |
5298 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5299 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5300 | ECHO='print -r --' | |
5301 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5302 | ECHO='printf %s\n' | |
c52df125 | 5303 | else |
eec2776c AJ |
5304 | # Use this function as a fallback that always works. |
5305 | func_fallback_echo () | |
5306 | { | |
5307 | eval 'cat <<_LTECHO_EOF | |
5308 | $1 | |
5309 | _LTECHO_EOF' | |
5310 | } | |
5311 | ECHO='func_fallback_echo' | |
5312 | fi | |
5313 | ||
5314 | # func_echo_all arg... | |
5315 | # Invoke $ECHO with all args, space-separated. | |
5316 | func_echo_all () | |
5317 | { | |
5318 | $ECHO "" | |
5319 | } | |
5320 | ||
5321 | case "$ECHO" in | |
5322 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5323 | $as_echo "printf" >&6; } ;; | |
5324 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5325 | $as_echo "print -r" >&6; } ;; | |
5326 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5327 | $as_echo "cat" >&6; } ;; | |
c52df125 AC |
5328 | esac |
5329 | ||
c52df125 | 5330 | |
c52df125 AC |
5331 | |
5332 | ||
5333 | ||
5334 | ||
5335 | ||
c52df125 | 5336 | |
c52df125 | 5337 | |
c52df125 AC |
5338 | |
5339 | ||
5340 | ||
5341 | ||
5342 | ||
eec2776c AJ |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5344 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5345 | if ${ac_cv_path_SED+:} false; then : | |
c52df125 AC |
5346 | $as_echo_n "(cached) " >&6 |
5347 | else | |
eec2776c AJ |
5348 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5349 | for ac_i in 1 2 3 4 5 6 7; do | |
5350 | ac_script="$ac_script$as_nl$ac_script" | |
5351 | done | |
5352 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5353 | { ac_script=; unset ac_script;} | |
5354 | if test -z "$SED"; then | |
5355 | ac_path_SED_found=false | |
5356 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5358 | for as_dir in $PATH | |
5359 | do | |
5360 | IFS=$as_save_IFS | |
5361 | test -z "$as_dir" && as_dir=. | |
5362 | for ac_prog in sed gsed; do | |
5363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5364 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5365 | as_fn_executable_p "$ac_path_SED" || continue | |
5366 | # Check for GNU ac_path_SED and select it if it is found. | |
5367 | # Check for GNU $ac_path_SED | |
5368 | case `"$ac_path_SED" --version 2>&1` in | |
5369 | *GNU*) | |
5370 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5371 | *) | |
5372 | ac_count=0 | |
5373 | $as_echo_n 0123456789 >"conftest.in" | |
5374 | while : | |
5375 | do | |
5376 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5377 | mv "conftest.tmp" "conftest.in" | |
5378 | cp "conftest.in" "conftest.nl" | |
5379 | $as_echo '' >> "conftest.nl" | |
5380 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5381 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5382 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5383 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5384 | # Best one so far, save it but keep looking for a better one | |
5385 | ac_cv_path_SED="$ac_path_SED" | |
5386 | ac_path_SED_max=$ac_count | |
c52df125 | 5387 | fi |
eec2776c AJ |
5388 | # 10*(2^10) chars as input seems more than enough |
5389 | test $ac_count -gt 10 && break | |
5390 | done | |
5391 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
c52df125 AC |
5392 | esac |
5393 | ||
eec2776c AJ |
5394 | $ac_path_SED_found && break 3 |
5395 | done | |
5396 | done | |
5397 | done | |
5398 | IFS=$as_save_IFS | |
5399 | if test -z "$ac_cv_path_SED"; then | |
5400 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5401 | fi | |
5402 | else | |
5403 | ac_cv_path_SED=$SED | |
5404 | fi | |
5405 | ||
5406 | fi | |
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5408 | $as_echo "$ac_cv_path_SED" >&6; } | |
5409 | SED="$ac_cv_path_SED" | |
5410 | rm -f conftest.sed | |
5411 | ||
5412 | test -z "$SED" && SED=sed | |
5413 | Xsed="$SED -e 1s/^X//" | |
c52df125 AC |
5414 | |
5415 | ||
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | ||
c52df125 | 5422 | |
c52df125 AC |
5423 | |
5424 | ||
eec2776c AJ |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5426 | $as_echo_n "checking for fgrep... " >&6; } | |
5427 | if ${ac_cv_path_FGREP+:} false; then : | |
c52df125 AC |
5428 | $as_echo_n "(cached) " >&6 |
5429 | else | |
eec2776c AJ |
5430 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5431 | then ac_cv_path_FGREP="$GREP -F" | |
5432 | else | |
5433 | if test -z "$FGREP"; then | |
5434 | ac_path_FGREP_found=false | |
5435 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5437 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
c52df125 AC |
5438 | do |
5439 | IFS=$as_save_IFS | |
5440 | test -z "$as_dir" && as_dir=. | |
eec2776c | 5441 | for ac_prog in fgrep; do |
c52df125 | 5442 | for ac_exec_ext in '' $ac_executable_extensions; do |
eec2776c AJ |
5443 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
5444 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5445 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5446 | # Check for GNU $ac_path_FGREP | |
5447 | case `"$ac_path_FGREP" --version 2>&1` in | |
5448 | *GNU*) | |
5449 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5450 | *) | |
5451 | ac_count=0 | |
5452 | $as_echo_n 0123456789 >"conftest.in" | |
5453 | while : | |
5454 | do | |
5455 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5456 | mv "conftest.tmp" "conftest.in" | |
5457 | cp "conftest.in" "conftest.nl" | |
5458 | $as_echo 'FGREP' >> "conftest.nl" | |
5459 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5460 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5461 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5462 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5463 | # Best one so far, save it but keep looking for a better one | |
5464 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5465 | ac_path_FGREP_max=$ac_count | |
5466 | fi | |
5467 | # 10*(2^10) chars as input seems more than enough | |
5468 | test $ac_count -gt 10 && break | |
c52df125 | 5469 | done |
eec2776c AJ |
5470 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5471 | esac | |
c52df125 | 5472 | |
eec2776c AJ |
5473 | $ac_path_FGREP_found && break 3 |
5474 | done | |
5475 | done | |
5476 | done | |
5477 | IFS=$as_save_IFS | |
5478 | if test -z "$ac_cv_path_FGREP"; then | |
5479 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5480 | fi | |
c52df125 | 5481 | else |
eec2776c | 5482 | ac_cv_path_FGREP=$FGREP |
c52df125 AC |
5483 | fi |
5484 | ||
eec2776c | 5485 | fi |
c52df125 | 5486 | fi |
eec2776c AJ |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5488 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5489 | FGREP="$ac_cv_path_FGREP" | |
c52df125 | 5490 | |
c52df125 | 5491 | |
eec2776c | 5492 | test -z "$GREP" && GREP=grep |
c52df125 AC |
5493 | |
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
c52df125 | 5501 | |
c52df125 | 5502 | |
c52df125 | 5503 | |
c52df125 | 5504 | |
c52df125 | 5505 | |
c52df125 | 5506 | |
c52df125 | 5507 | |
c52df125 | 5508 | |
c52df125 | 5509 | |
c52df125 | 5510 | |
c52df125 | 5511 | |
eec2776c AJ |
5512 | # Check whether --with-gnu-ld was given. |
5513 | if test "${with_gnu_ld+set}" = set; then : | |
5514 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5515 | else | |
5516 | with_gnu_ld=no | |
5517 | fi | |
c52df125 | 5518 | |
eec2776c AJ |
5519 | ac_prog=ld |
5520 | if test "$GCC" = yes; then | |
5521 | # Check if gcc -print-prog-name=ld gives a path. | |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5523 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5524 | case $host in | |
5525 | *-*-mingw*) | |
5526 | # gcc leaves a trailing carriage return which upsets mingw | |
5527 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5528 | *) | |
5529 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
c52df125 | 5530 | esac |
eec2776c AJ |
5531 | case $ac_prog in |
5532 | # Accept absolute paths. | |
5533 | [\\/]* | ?:[\\/]*) | |
5534 | re_direlt='/[^/][^/]*/\.\./' | |
5535 | # Canonicalize the pathname of ld | |
5536 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5537 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5538 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5539 | done | |
5540 | test -z "$LD" && LD="$ac_prog" | |
5541 | ;; | |
5542 | "") | |
5543 | # If it fails, then pretend we aren't using GCC. | |
5544 | ac_prog=ld | |
c52df125 | 5545 | ;; |
eec2776c AJ |
5546 | *) |
5547 | # If it is relative, then search for the first ld in PATH. | |
5548 | with_gnu_ld=unknown | |
c52df125 AC |
5549 | ;; |
5550 | esac | |
eec2776c AJ |
5551 | elif test "$with_gnu_ld" = yes; then |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5553 | $as_echo_n "checking for GNU ld... " >&6; } | |
5554 | else | |
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5556 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
c52df125 | 5557 | fi |
eec2776c AJ |
5558 | if ${lt_cv_path_LD+:} false; then : |
5559 | $as_echo_n "(cached) " >&6 | |
5560 | else | |
5561 | if test -z "$LD"; then | |
5562 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5563 | for ac_dir in $PATH; do | |
5564 | IFS="$lt_save_ifs" | |
5565 | test -z "$ac_dir" && ac_dir=. | |
5566 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5567 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5568 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5569 | # but apparently some variants of GNU ld only accept -v. | |
5570 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5571 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5572 | *GNU* | *'with BFD'*) | |
5573 | test "$with_gnu_ld" != no && break | |
5574 | ;; | |
5575 | *) | |
5576 | test "$with_gnu_ld" != yes && break | |
5577 | ;; | |
5578 | esac | |
c52df125 | 5579 | fi |
eec2776c AJ |
5580 | done |
5581 | IFS="$lt_save_ifs" | |
5582 | else | |
5583 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5584 | fi | |
c52df125 AC |
5585 | fi |
5586 | ||
eec2776c AJ |
5587 | LD="$lt_cv_path_LD" |
5588 | if test -n "$LD"; then | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5590 | $as_echo "$LD" >&6; } | |
5591 | else | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5593 | $as_echo "no" >&6; } | |
5594 | fi | |
5595 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5597 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5598 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5599 | $as_echo_n "(cached) " >&6 | |
5600 | else | |
5601 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5602 | case `$LD -v 2>&1 </dev/null` in | |
5603 | *GNU* | *'with BFD'*) | |
5604 | lt_cv_prog_gnu_ld=yes | |
5605 | ;; | |
5606 | *) | |
5607 | lt_cv_prog_gnu_ld=no | |
5608 | ;; | |
5609 | esac | |
5610 | fi | |
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5612 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5613 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
c52df125 AC |
5614 | |
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
eec2776c AJ |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5624 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5625 | if ${lt_cv_path_NM+:} false; then : | |
c52df125 AC |
5626 | $as_echo_n "(cached) " >&6 |
5627 | else | |
eec2776c AJ |
5628 | if test -n "$NM"; then |
5629 | # Let the user override the test. | |
5630 | lt_cv_path_NM="$NM" | |
c52df125 | 5631 | else |
eec2776c AJ |
5632 | lt_nm_to_check="${ac_tool_prefix}nm" |
5633 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5634 | lt_nm_to_check="$lt_nm_to_check nm" | |
c52df125 | 5635 | fi |
eec2776c AJ |
5636 | for lt_tmp_nm in $lt_nm_to_check; do |
5637 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5638 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5639 | IFS="$lt_save_ifs" | |
5640 | test -z "$ac_dir" && ac_dir=. | |
5641 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5642 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5643 | # Check to see if the nm accepts a BSD-compat flag. | |
5644 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5645 | # nm: unknown option "B" ignored | |
5646 | # Tru64's nm complains that /dev/null is an invalid object file | |
5647 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5648 | */dev/null* | *'Invalid file or object type'*) | |
5649 | lt_cv_path_NM="$tmp_nm -B" | |
5650 | break | |
5651 | ;; | |
5652 | *) | |
5653 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5654 | */dev/null*) | |
5655 | lt_cv_path_NM="$tmp_nm -p" | |
5656 | break | |
5657 | ;; | |
5658 | *) | |
5659 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5660 | continue # so that we can try to find one that supports BSD flags | |
5661 | ;; | |
5662 | esac | |
5663 | ;; | |
5664 | esac | |
5665 | fi | |
5666 | done | |
5667 | IFS="$lt_save_ifs" | |
c52df125 | 5668 | done |
eec2776c | 5669 | : ${lt_cv_path_NM=no} |
c52df125 AC |
5670 | fi |
5671 | fi | |
eec2776c AJ |
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5673 | $as_echo "$lt_cv_path_NM" >&6; } | |
5674 | if test "$lt_cv_path_NM" != "no"; then | |
5675 | NM="$lt_cv_path_NM" | |
c52df125 | 5676 | else |
eec2776c AJ |
5677 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5678 | if test -n "$DUMPBIN"; then : | |
5679 | # Let the user override the test. | |
c52df125 | 5680 | else |
eec2776c AJ |
5681 | if test -n "$ac_tool_prefix"; then |
5682 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5683 | do |
5684 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5685 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5687 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5688 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
c52df125 AC |
5689 | $as_echo_n "(cached) " >&6 |
5690 | else | |
eec2776c AJ |
5691 | if test -n "$DUMPBIN"; then |
5692 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5693 | else |
5694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5695 | for as_dir in $PATH | |
5696 | do | |
5697 | IFS=$as_save_IFS | |
5698 | test -z "$as_dir" && as_dir=. | |
5699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5700 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5701 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5703 | break 2 | |
5704 | fi | |
5705 | done | |
5706 | done | |
5707 | IFS=$as_save_IFS | |
5708 | ||
5709 | fi | |
5710 | fi | |
eec2776c AJ |
5711 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5712 | if test -n "$DUMPBIN"; then | |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5714 | $as_echo "$DUMPBIN" >&6; } | |
c52df125 AC |
5715 | else |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5717 | $as_echo "no" >&6; } | |
5718 | fi | |
5719 | ||
5720 | ||
eec2776c | 5721 | test -n "$DUMPBIN" && break |
c52df125 AC |
5722 | done |
5723 | fi | |
eec2776c AJ |
5724 | if test -z "$DUMPBIN"; then |
5725 | ac_ct_DUMPBIN=$DUMPBIN | |
5726 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5727 | do |
5728 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5729 | set dummy $ac_prog; ac_word=$2 | |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5731 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5732 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
c52df125 AC |
5733 | $as_echo_n "(cached) " >&6 |
5734 | else | |
eec2776c AJ |
5735 | if test -n "$ac_ct_DUMPBIN"; then |
5736 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5737 | else |
5738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5739 | for as_dir in $PATH | |
5740 | do | |
5741 | IFS=$as_save_IFS | |
5742 | test -z "$as_dir" && as_dir=. | |
5743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5745 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
c52df125 AC |
5746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5747 | break 2 | |
5748 | fi | |
5749 | done | |
5750 | done | |
5751 | IFS=$as_save_IFS | |
5752 | ||
5753 | fi | |
5754 | fi | |
eec2776c AJ |
5755 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5756 | if test -n "$ac_ct_DUMPBIN"; then | |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5758 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
c52df125 AC |
5759 | else |
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5761 | $as_echo "no" >&6; } | |
5762 | fi | |
5763 | ||
5764 | ||
eec2776c | 5765 | test -n "$ac_ct_DUMPBIN" && break |
c52df125 AC |
5766 | done |
5767 | ||
eec2776c AJ |
5768 | if test "x$ac_ct_DUMPBIN" = x; then |
5769 | DUMPBIN=":" | |
c52df125 AC |
5770 | else |
5771 | case $cross_compiling:$ac_tool_warned in | |
5772 | yes:) | |
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5775 | ac_tool_warned=yes ;; | |
5776 | esac | |
eec2776c | 5777 | DUMPBIN=$ac_ct_DUMPBIN |
c52df125 AC |
5778 | fi |
5779 | fi | |
5780 | ||
eec2776c AJ |
5781 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5782 | *COFF*) | |
5783 | DUMPBIN="$DUMPBIN -symbols" | |
5784 | ;; | |
5785 | *) | |
5786 | DUMPBIN=: | |
5787 | ;; | |
5788 | esac | |
5789 | fi | |
c52df125 | 5790 | |
eec2776c AJ |
5791 | if test "$DUMPBIN" != ":"; then |
5792 | NM="$DUMPBIN" | |
5793 | fi | |
5794 | fi | |
5795 | test -z "$NM" && NM=nm | |
c52df125 AC |
5796 | |
5797 | ||
5798 | ||
5799 | ||
5800 | ||
5801 | ||
eec2776c AJ |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5803 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5804 | if ${lt_cv_nm_interface+:} false; then : | |
c52df125 AC |
5805 | $as_echo_n "(cached) " >&6 |
5806 | else | |
eec2776c AJ |
5807 | lt_cv_nm_interface="BSD nm" |
5808 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5809 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5810 | (eval "$ac_compile" 2>conftest.err) | |
5811 | cat conftest.err >&5 | |
5812 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5813 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5814 | cat conftest.err >&5 | |
5815 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5816 | cat conftest.out >&5 | |
5817 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5818 | lt_cv_nm_interface="MS dumpbin" | |
5819 | fi | |
5820 | rm -f conftest* | |
c52df125 | 5821 | fi |
eec2776c AJ |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5823 | $as_echo "$lt_cv_nm_interface" >&6; } | |
c52df125 | 5824 | |
eec2776c AJ |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5826 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5827 | LN_S=$as_ln_s | |
5828 | if test "$LN_S" = "ln -s"; then | |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5830 | $as_echo "yes" >&6; } | |
5831 | else | |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5833 | $as_echo "no, using $LN_S" >&6; } | |
c52df125 | 5834 | fi |
c52df125 | 5835 | |
eec2776c AJ |
5836 | # find the maximum length of command line arguments |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5838 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5839 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5840 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5841 | else |
eec2776c AJ |
5842 | i=0 |
5843 | teststring="ABCD" | |
c52df125 | 5844 | |
eec2776c AJ |
5845 | case $build_os in |
5846 | msdosdjgpp*) | |
5847 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5848 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5849 | # during glob expansion). Even if it were fixed, the result of this | |
5850 | # check would be larger than it should be. | |
5851 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5852 | ;; | |
c52df125 | 5853 | |
eec2776c AJ |
5854 | gnu*) |
5855 | # Under GNU Hurd, this test is not required because there is | |
5856 | # no limit to the length of command line arguments. | |
5857 | # Libtool will interpret -1 as no limit whatsoever | |
5858 | lt_cv_sys_max_cmd_len=-1; | |
5859 | ;; | |
c52df125 | 5860 | |
eec2776c AJ |
5861 | cygwin* | mingw* | cegcc*) |
5862 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5863 | # about 5 minutes as the teststring grows exponentially. | |
5864 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5865 | # you end up with a "frozen" computer, even though with patience | |
5866 | # the test eventually succeeds (with a max line length of 256k). | |
5867 | # Instead, let's just punt: use the minimum linelength reported by | |
5868 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5869 | lt_cv_sys_max_cmd_len=8192; | |
5870 | ;; | |
c52df125 | 5871 | |
eec2776c AJ |
5872 | mint*) |
5873 | # On MiNT this can take a long time and run out of memory. | |
5874 | lt_cv_sys_max_cmd_len=8192; | |
5875 | ;; | |
c52df125 | 5876 | |
eec2776c AJ |
5877 | amigaos*) |
5878 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5879 | # So we just punt and use a minimum line length of 8192. | |
5880 | lt_cv_sys_max_cmd_len=8192; | |
5881 | ;; | |
c52df125 | 5882 | |
eec2776c AJ |
5883 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5884 | # This has been around since 386BSD, at least. Likely further. | |
5885 | if test -x /sbin/sysctl; then | |
5886 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5887 | elif test -x /usr/sbin/sysctl; then | |
5888 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5889 | else | |
5890 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5891 | fi | |
5892 | # And add a safety zone | |
5893 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5894 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5895 | ;; | |
c52df125 | 5896 | |
eec2776c AJ |
5897 | interix*) |
5898 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5899 | lt_cv_sys_max_cmd_len=196608 | |
5900 | ;; | |
c52df125 | 5901 | |
eec2776c AJ |
5902 | os2*) |
5903 | # The test takes a long time on OS/2. | |
5904 | lt_cv_sys_max_cmd_len=8192 | |
5905 | ;; | |
c52df125 | 5906 | |
eec2776c AJ |
5907 | osf*) |
5908 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5909 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5910 | # nice to cause kernel panics so lets avoid the loop below. | |
5911 | # First set a reasonable default. | |
5912 | lt_cv_sys_max_cmd_len=16384 | |
5913 | # | |
5914 | if test -x /sbin/sysconfig; then | |
5915 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5916 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5917 | esac | |
5918 | fi | |
5919 | ;; | |
5920 | sco3.2v5*) | |
5921 | lt_cv_sys_max_cmd_len=102400 | |
5922 | ;; | |
5923 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5924 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5925 | if test -n "$kargmax"; then | |
5926 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5927 | else | |
5928 | lt_cv_sys_max_cmd_len=32768 | |
5929 | fi | |
5930 | ;; | |
5931 | *) | |
5932 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5933 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5934 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5935 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5936 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5937 | else | |
5938 | # Make teststring a little bigger before we do anything with it. | |
5939 | # a 1K string should be a reasonable start. | |
5940 | for i in 1 2 3 4 5 6 7 8 ; do | |
5941 | teststring=$teststring$teststring | |
5942 | done | |
5943 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5944 | # If test is not a shell built-in, we'll probably end up computing a | |
5945 | # maximum length that is only half of the actual maximum length, but | |
5946 | # we can't tell. | |
5947 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5948 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5949 | test $i != 17 # 1/2 MB should be enough | |
5950 | do | |
5951 | i=`expr $i + 1` | |
5952 | teststring=$teststring$teststring | |
5953 | done | |
5954 | # Only check the string length outside the loop. | |
5955 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5956 | teststring= | |
5957 | # Add a significant safety factor because C++ compilers can tack on | |
5958 | # massive amounts of additional arguments before passing them to the | |
5959 | # linker. It appears as though 1/2 is a usable value. | |
5960 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5961 | fi | |
5962 | ;; | |
5963 | esac | |
c52df125 AC |
5964 | |
5965 | fi | |
c52df125 | 5966 | |
eec2776c AJ |
5967 | if test -n $lt_cv_sys_max_cmd_len ; then |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5969 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
c52df125 | 5970 | else |
eec2776c AJ |
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5972 | $as_echo "none" >&6; } | |
c52df125 | 5973 | fi |
eec2776c | 5974 | max_cmd_len=$lt_cv_sys_max_cmd_len |
c52df125 | 5975 | |
eec2776c AJ |
5976 | |
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | : ${CP="cp -f"} | |
5982 | : ${MV="mv -f"} | |
5983 | : ${RM="rm -f"} | |
5984 | ||
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5986 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5987 | # Try some XSI features | |
5988 | xsi_shell=no | |
5989 | ( _lt_dummy="a/b/c" | |
5990 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5991 | = c,a/b,b/c, \ | |
5992 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5993 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5994 | && xsi_shell=yes | |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5996 | $as_echo "$xsi_shell" >&6; } | |
5997 | ||
5998 | ||
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6000 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6001 | lt_shell_append=no | |
6002 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6003 | >/dev/null 2>&1 \ | |
6004 | && lt_shell_append=yes | |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6006 | $as_echo "$lt_shell_append" >&6; } | |
6007 | ||
6008 | ||
6009 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6010 | lt_unset=unset | |
6011 | else | |
6012 | lt_unset=false | |
6013 | fi | |
6014 | ||
6015 | ||
6016 | ||
6017 | ||
6018 | ||
6019 | # test EBCDIC or ASCII | |
6020 | case `echo X|tr X '\101'` in | |
6021 | A) # ASCII based system | |
6022 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6023 | lt_SP2NL='tr \040 \012' | |
6024 | lt_NL2SP='tr \015\012 \040\040' | |
6025 | ;; | |
6026 | *) # EBCDIC based system | |
6027 | lt_SP2NL='tr \100 \n' | |
6028 | lt_NL2SP='tr \r\n \100\100' | |
6029 | ;; | |
c52df125 | 6030 | esac |
eec2776c AJ |
6031 | |
6032 | ||
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6041 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6042 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6043 | $as_echo_n "(cached) " >&6 | |
c52df125 | 6044 | else |
eec2776c AJ |
6045 | case $host in |
6046 | *-*-mingw* ) | |
6047 | case $build in | |
6048 | *-*-mingw* ) # actually msys | |
6049 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6050 | ;; | |
6051 | *-*-cygwin* ) | |
6052 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6053 | ;; | |
6054 | * ) # otherwise, assume *nix | |
6055 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6056 | ;; | |
6057 | esac | |
6058 | ;; | |
6059 | *-*-cygwin* ) | |
6060 | case $build in | |
6061 | *-*-mingw* ) # actually msys | |
6062 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6063 | ;; | |
6064 | *-*-cygwin* ) | |
6065 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6066 | ;; | |
6067 | * ) # otherwise, assume *nix | |
6068 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6069 | ;; | |
6070 | esac | |
6071 | ;; | |
6072 | * ) # unhandled hosts (and "normal" native builds) | |
6073 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6074 | ;; | |
6075 | esac | |
6076 | ||
c52df125 AC |
6077 | fi |
6078 | ||
eec2776c AJ |
6079 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6081 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6082 | ||
6083 | ||
6084 | ||
6085 | ||
6086 | ||
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6088 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6089 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6090 | $as_echo_n "(cached) " >&6 | |
6091 | else | |
6092 | #assume ordinary cross tools, or native build. | |
6093 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6094 | case $host in | |
6095 | *-*-mingw* ) | |
6096 | case $build in | |
6097 | *-*-mingw* ) # actually msys | |
6098 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6099 | ;; | |
6100 | esac | |
6101 | ;; | |
6102 | esac | |
6103 | ||
6104 | fi | |
6105 | ||
6106 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6108 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6115 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6116 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6117 | $as_echo_n "(cached) " >&6 | |
6118 | else | |
6119 | lt_cv_ld_reload_flag='-r' | |
6120 | fi | |
6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6122 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6123 | reload_flag=$lt_cv_ld_reload_flag | |
6124 | case $reload_flag in | |
6125 | "" | " "*) ;; | |
6126 | *) reload_flag=" $reload_flag" ;; | |
6127 | esac | |
6128 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6129 | case $host_os in | |
6130 | cygwin* | mingw* | pw32* | cegcc*) | |
6131 | if test "$GCC" != yes; then | |
6132 | reload_cmds=false | |
6133 | fi | |
6134 | ;; | |
6135 | darwin*) | |
6136 | if test "$GCC" = yes; then | |
6137 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6138 | else | |
6139 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6140 | fi | |
6141 | ;; | |
6142 | esac | |
6143 | ||
6144 | ||
6145 | ||
c52df125 AC |
6146 | |
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6153 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6154 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
c52df125 AC |
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6156 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6157 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
c52df125 AC |
6158 | $as_echo_n "(cached) " >&6 |
6159 | else | |
eec2776c AJ |
6160 | if test -n "$OBJDUMP"; then |
6161 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6162 | else |
6163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6164 | for as_dir in $PATH | |
6165 | do | |
6166 | IFS=$as_save_IFS | |
6167 | test -z "$as_dir" && as_dir=. | |
6168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6170 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
c52df125 AC |
6171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6172 | break 2 | |
6173 | fi | |
6174 | done | |
6175 | done | |
6176 | IFS=$as_save_IFS | |
6177 | ||
6178 | fi | |
6179 | fi | |
eec2776c AJ |
6180 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6181 | if test -n "$OBJDUMP"; then | |
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6183 | $as_echo "$OBJDUMP" >&6; } | |
c52df125 AC |
6184 | else |
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6186 | $as_echo "no" >&6; } | |
6187 | fi | |
6188 | ||
6189 | ||
6190 | fi | |
eec2776c AJ |
6191 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6192 | ac_ct_OBJDUMP=$OBJDUMP | |
6193 | # Extract the first word of "objdump", so it can be a program name with args. | |
6194 | set dummy objdump; ac_word=$2 | |
c52df125 AC |
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6196 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6197 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
c52df125 AC |
6198 | $as_echo_n "(cached) " >&6 |
6199 | else | |
eec2776c AJ |
6200 | if test -n "$ac_ct_OBJDUMP"; then |
6201 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6202 | else |
6203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6204 | for as_dir in $PATH | |
6205 | do | |
6206 | IFS=$as_save_IFS | |
6207 | test -z "$as_dir" && as_dir=. | |
6208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6210 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
c52df125 AC |
6211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6212 | break 2 | |
6213 | fi | |
6214 | done | |
6215 | done | |
6216 | IFS=$as_save_IFS | |
6217 | ||
6218 | fi | |
6219 | fi | |
eec2776c AJ |
6220 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6221 | if test -n "$ac_ct_OBJDUMP"; then | |
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6223 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
c52df125 AC |
6224 | else |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6226 | $as_echo "no" >&6; } | |
6227 | fi | |
6228 | ||
eec2776c AJ |
6229 | if test "x$ac_ct_OBJDUMP" = x; then |
6230 | OBJDUMP="false" | |
c52df125 AC |
6231 | else |
6232 | case $cross_compiling:$ac_tool_warned in | |
6233 | yes:) | |
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6235 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6236 | ac_tool_warned=yes ;; | |
6237 | esac | |
eec2776c | 6238 | OBJDUMP=$ac_ct_OBJDUMP |
c52df125 AC |
6239 | fi |
6240 | else | |
eec2776c | 6241 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
c52df125 AC |
6242 | fi |
6243 | ||
eec2776c | 6244 | test -z "$OBJDUMP" && OBJDUMP=objdump |
c52df125 AC |
6245 | |
6246 | ||
c52df125 | 6247 | |
c52df125 | 6248 | |
c52df125 AC |
6249 | |
6250 | ||
6251 | ||
6252 | ||
6253 | ||
eec2776c AJ |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6255 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6256 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6257 | $as_echo_n "(cached) " >&6 | |
6258 | else | |
6259 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6260 | lt_cv_file_magic_test_file= | |
6261 | lt_cv_deplibs_check_method='unknown' | |
6262 | # Need to set the preceding variable on all platforms that support | |
6263 | # interlibrary dependencies. | |
6264 | # 'none' -- dependencies not supported. | |
6265 | # `unknown' -- same as none, but documents that we really don't know. | |
6266 | # 'pass_all' -- all dependencies passed with no checks. | |
6267 | # 'test_compile' -- check by making test program. | |
6268 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6269 | # which responds to the $file_magic_cmd with a given extended regex. | |
6270 | # If you have `file' or equivalent on your system and you're not sure | |
6271 | # whether `pass_all' will *always* work, you probably want this one. | |
c52df125 | 6272 | |
eec2776c AJ |
6273 | case $host_os in |
6274 | aix[4-9]*) | |
6275 | lt_cv_deplibs_check_method=pass_all | |
6276 | ;; | |
c52df125 | 6277 | |
eec2776c AJ |
6278 | beos*) |
6279 | lt_cv_deplibs_check_method=pass_all | |
6280 | ;; | |
c52df125 | 6281 | |
eec2776c AJ |
6282 | bsdi[45]*) |
6283 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6284 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6285 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6286 | ;; | |
c52df125 | 6287 | |
eec2776c AJ |
6288 | cygwin*) |
6289 | # func_win32_libid is a shell function defined in ltmain.sh | |
6290 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6291 | lt_cv_file_magic_cmd='func_win32_libid' | |
6292 | ;; | |
c52df125 | 6293 | |
eec2776c AJ |
6294 | mingw* | pw32*) |
6295 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6296 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6297 | # unless we find 'file', for example because we are cross-compiling. | |
6298 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6299 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6300 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6301 | lt_cv_file_magic_cmd='func_win32_libid' | |
6302 | else | |
6303 | # Keep this pattern in sync with the one in func_win32_libid. | |
6304 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6305 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6306 | fi | |
6307 | ;; | |
c52df125 | 6308 | |
eec2776c AJ |
6309 | cegcc*) |
6310 | # use the weaker test based on 'objdump'. See mingw*. | |
6311 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6312 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6313 | ;; | |
c52df125 | 6314 | |
eec2776c AJ |
6315 | darwin* | rhapsody*) |
6316 | lt_cv_deplibs_check_method=pass_all | |
6317 | ;; | |
c52df125 | 6318 | |
eec2776c AJ |
6319 | freebsd* | dragonfly*) |
6320 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6321 | case $host_cpu in | |
6322 | i*86 ) | |
6323 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6324 | # Let's accept both of them until this is cleared up. | |
6325 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6326 | lt_cv_file_magic_cmd=/usr/bin/file | |
6327 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6328 | ;; | |
6329 | esac | |
6330 | else | |
6331 | lt_cv_deplibs_check_method=pass_all | |
6332 | fi | |
6333 | ;; | |
c52df125 | 6334 | |
eec2776c AJ |
6335 | haiku*) |
6336 | lt_cv_deplibs_check_method=pass_all | |
6337 | ;; | |
c52df125 | 6338 | |
eec2776c AJ |
6339 | hpux10.20* | hpux11*) |
6340 | lt_cv_file_magic_cmd=/usr/bin/file | |
6341 | case $host_cpu in | |
6342 | ia64*) | |
6343 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6344 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6345 | ;; | |
6346 | hppa*64*) | |
6347 | 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]' | |
6348 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6349 | ;; | |
6350 | *) | |
6351 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6352 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6353 | ;; | |
6354 | esac | |
6355 | ;; | |
c52df125 | 6356 | |
eec2776c AJ |
6357 | interix[3-9]*) |
6358 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6359 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6360 | ;; | |
c52df125 | 6361 | |
eec2776c AJ |
6362 | irix5* | irix6* | nonstopux*) |
6363 | case $LD in | |
6364 | *-32|*"-32 ") libmagic=32-bit;; | |
6365 | *-n32|*"-n32 ") libmagic=N32;; | |
6366 | *-64|*"-64 ") libmagic=64-bit;; | |
6367 | *) libmagic=never-match;; | |
6368 | esac | |
6369 | lt_cv_deplibs_check_method=pass_all | |
6370 | ;; | |
c52df125 | 6371 | |
eec2776c AJ |
6372 | # This must be glibc/ELF. |
6373 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6374 | lt_cv_deplibs_check_method=pass_all | |
6375 | ;; | |
c52df125 | 6376 | |
eec2776c AJ |
6377 | netbsd* | netbsdelf*-gnu) |
6378 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6379 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6380 | else | |
6381 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6382 | fi | |
6383 | ;; | |
c52df125 | 6384 | |
eec2776c AJ |
6385 | newos6*) |
6386 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6387 | lt_cv_file_magic_cmd=/usr/bin/file | |
6388 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6389 | ;; | |
c52df125 | 6390 | |
eec2776c AJ |
6391 | *nto* | *qnx*) |
6392 | lt_cv_deplibs_check_method=pass_all | |
6393 | ;; | |
c52df125 | 6394 | |
eec2776c AJ |
6395 | openbsd*) |
6396 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6397 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6398 | else | |
6399 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6400 | fi | |
6401 | ;; | |
c52df125 | 6402 | |
eec2776c AJ |
6403 | osf3* | osf4* | osf5*) |
6404 | lt_cv_deplibs_check_method=pass_all | |
6405 | ;; | |
c52df125 | 6406 | |
eec2776c AJ |
6407 | rdos*) |
6408 | lt_cv_deplibs_check_method=pass_all | |
6409 | ;; | |
c52df125 | 6410 | |
eec2776c AJ |
6411 | solaris*) |
6412 | lt_cv_deplibs_check_method=pass_all | |
6413 | ;; | |
c52df125 | 6414 | |
eec2776c AJ |
6415 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6416 | lt_cv_deplibs_check_method=pass_all | |
6417 | ;; | |
c52df125 | 6418 | |
eec2776c AJ |
6419 | sysv4 | sysv4.3*) |
6420 | case $host_vendor in | |
6421 | motorola) | |
6422 | 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]' | |
6423 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6424 | ;; | |
6425 | ncr) | |
6426 | lt_cv_deplibs_check_method=pass_all | |
6427 | ;; | |
6428 | sequent) | |
6429 | lt_cv_file_magic_cmd='/bin/file' | |
6430 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6431 | ;; | |
6432 | sni) | |
6433 | lt_cv_file_magic_cmd='/bin/file' | |
6434 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6435 | lt_cv_file_magic_test_file=/lib/libc.so | |
6436 | ;; | |
6437 | siemens) | |
6438 | lt_cv_deplibs_check_method=pass_all | |
6439 | ;; | |
6440 | pc) | |
6441 | lt_cv_deplibs_check_method=pass_all | |
6442 | ;; | |
6443 | esac | |
6444 | ;; | |
c52df125 | 6445 | |
eec2776c AJ |
6446 | tpf*) |
6447 | lt_cv_deplibs_check_method=pass_all | |
6448 | ;; | |
6449 | esac | |
c52df125 | 6450 | |
eec2776c AJ |
6451 | fi |
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6453 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
c52df125 | 6454 | |
eec2776c AJ |
6455 | file_magic_glob= |
6456 | want_nocaseglob=no | |
6457 | if test "$build" = "$host"; then | |
6458 | case $host_os in | |
6459 | mingw* | pw32*) | |
6460 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6461 | want_nocaseglob=yes | |
6462 | else | |
6463 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6464 | fi | |
6465 | ;; | |
6466 | esac | |
6467 | fi | |
c52df125 | 6468 | |
eec2776c AJ |
6469 | file_magic_cmd=$lt_cv_file_magic_cmd |
6470 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6471 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
c52df125 AC |
6472 | |
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
c52df125 | 6480 | |
c52df125 | 6481 | |
c52df125 AC |
6482 | |
6483 | ||
c52df125 | 6484 | |
c52df125 | 6485 | |
c52df125 | 6486 | |
c52df125 | 6487 | |
c52df125 | 6488 | |
c52df125 | 6489 | |
c52df125 | 6490 | |
c52df125 | 6491 | |
c52df125 | 6492 | |
c52df125 | 6493 | |
eec2776c AJ |
6494 | if test -n "$ac_tool_prefix"; then |
6495 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6496 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6498 | $as_echo_n "checking for $ac_word... " >&6; } | |
6499 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6500 | $as_echo_n "(cached) " >&6 | |
6501 | else | |
6502 | if test -n "$DLLTOOL"; then | |
6503 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6504 | else | |
6505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6506 | for as_dir in $PATH | |
6507 | do | |
6508 | IFS=$as_save_IFS | |
6509 | test -z "$as_dir" && as_dir=. | |
6510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6512 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6514 | break 2 | |
c52df125 | 6515 | fi |
eec2776c AJ |
6516 | done |
6517 | done | |
6518 | IFS=$as_save_IFS | |
c52df125 | 6519 | |
eec2776c AJ |
6520 | fi |
6521 | fi | |
6522 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6523 | if test -n "$DLLTOOL"; then | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6525 | $as_echo "$DLLTOOL" >&6; } | |
6526 | else | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6528 | $as_echo "no" >&6; } | |
6529 | fi | |
c52df125 | 6530 | |
c52df125 | 6531 | |
eec2776c AJ |
6532 | fi |
6533 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6534 | ac_ct_DLLTOOL=$DLLTOOL | |
6535 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6536 | set dummy dlltool; ac_word=$2 | |
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6538 | $as_echo_n "checking for $ac_word... " >&6; } | |
6539 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6540 | $as_echo_n "(cached) " >&6 | |
6541 | else | |
6542 | if test -n "$ac_ct_DLLTOOL"; then | |
6543 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6544 | else | |
6545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6546 | for as_dir in $PATH | |
6547 | do | |
6548 | IFS=$as_save_IFS | |
6549 | test -z "$as_dir" && as_dir=. | |
6550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6552 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6554 | break 2 | |
c52df125 AC |
6555 | fi |
6556 | done | |
eec2776c AJ |
6557 | done |
6558 | IFS=$as_save_IFS | |
c52df125 AC |
6559 | |
6560 | fi | |
c52df125 | 6561 | fi |
eec2776c AJ |
6562 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6563 | if test -n "$ac_ct_DLLTOOL"; then | |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6565 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
c52df125 | 6566 | else |
eec2776c AJ |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6568 | $as_echo "no" >&6; } | |
c52df125 AC |
6569 | fi |
6570 | ||
eec2776c AJ |
6571 | if test "x$ac_ct_DLLTOOL" = x; then |
6572 | DLLTOOL="false" | |
6573 | else | |
6574 | case $cross_compiling:$ac_tool_warned in | |
6575 | yes:) | |
6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6577 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6578 | ac_tool_warned=yes ;; | |
6579 | esac | |
6580 | DLLTOOL=$ac_ct_DLLTOOL | |
6581 | fi | |
6582 | else | |
6583 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
c52df125 AC |
6584 | fi |
6585 | ||
eec2776c | 6586 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
c52df125 AC |
6587 | |
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
eec2776c AJ |
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
6598 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6599 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6600 | $as_echo_n "(cached) " >&6 | |
6601 | else | |
6602 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
c52df125 | 6603 | |
eec2776c AJ |
6604 | case $host_os in |
6605 | cygwin* | mingw* | pw32* | cegcc*) | |
6606 | # two different shell functions defined in ltmain.sh | |
6607 | # decide which to use based on capabilities of $DLLTOOL | |
6608 | case `$DLLTOOL --help 2>&1` in | |
6609 | *--identify-strict*) | |
6610 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6611 | ;; | |
6612 | *) | |
6613 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6614 | ;; | |
6615 | esac | |
6616 | ;; | |
6617 | *) | |
6618 | # fallback: assume linklib IS sharedlib | |
6619 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6620 | ;; | |
6621 | esac | |
c52df125 | 6622 | |
eec2776c AJ |
6623 | fi |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6625 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6626 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6627 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
c52df125 AC |
6628 | |
6629 | ||
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
eec2776c AJ |
6635 | if test -n "$ac_tool_prefix"; then |
6636 | for ac_prog in ar | |
6637 | do | |
6638 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6639 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6641 | $as_echo_n "checking for $ac_word... " >&6; } | |
6642 | if ${ac_cv_prog_AR+:} false; then : | |
6643 | $as_echo_n "(cached) " >&6 | |
6644 | else | |
6645 | if test -n "$AR"; then | |
6646 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6647 | else | |
6648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6649 | for as_dir in $PATH | |
6650 | do | |
6651 | IFS=$as_save_IFS | |
6652 | test -z "$as_dir" && as_dir=. | |
6653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6655 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6657 | break 2 | |
6658 | fi | |
6659 | done | |
6660 | done | |
6661 | IFS=$as_save_IFS | |
c52df125 | 6662 | |
eec2776c AJ |
6663 | fi |
6664 | fi | |
6665 | AR=$ac_cv_prog_AR | |
6666 | if test -n "$AR"; then | |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6668 | $as_echo "$AR" >&6; } | |
6669 | else | |
6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6671 | $as_echo "no" >&6; } | |
6672 | fi | |
c52df125 AC |
6673 | |
6674 | ||
eec2776c AJ |
6675 | test -n "$AR" && break |
6676 | done | |
6677 | fi | |
6678 | if test -z "$AR"; then | |
6679 | ac_ct_AR=$AR | |
6680 | for ac_prog in ar | |
6681 | do | |
6682 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6683 | set dummy $ac_prog; ac_word=$2 | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6685 | $as_echo_n "checking for $ac_word... " >&6; } | |
6686 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6687 | $as_echo_n "(cached) " >&6 | |
6688 | else | |
6689 | if test -n "$ac_ct_AR"; then | |
6690 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6691 | else | |
6692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6693 | for as_dir in $PATH | |
6694 | do | |
6695 | IFS=$as_save_IFS | |
6696 | test -z "$as_dir" && as_dir=. | |
6697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6699 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6701 | break 2 | |
6702 | fi | |
6703 | done | |
6704 | done | |
6705 | IFS=$as_save_IFS | |
c52df125 | 6706 | |
eec2776c AJ |
6707 | fi |
6708 | fi | |
6709 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6710 | if test -n "$ac_ct_AR"; then | |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6712 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 | 6713 | else |
eec2776c AJ |
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6715 | $as_echo "no" >&6; } | |
c52df125 AC |
6716 | fi |
6717 | ||
6718 | ||
eec2776c AJ |
6719 | test -n "$ac_ct_AR" && break |
6720 | done | |
6721 | ||
6722 | if test "x$ac_ct_AR" = x; then | |
6723 | AR="false" | |
6724 | else | |
6725 | case $cross_compiling:$ac_tool_warned in | |
6726 | yes:) | |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6728 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6729 | ac_tool_warned=yes ;; | |
c52df125 | 6730 | esac |
eec2776c AJ |
6731 | AR=$ac_ct_AR |
6732 | fi | |
6733 | fi | |
c52df125 | 6734 | |
eec2776c AJ |
6735 | : ${AR=ar} |
6736 | : ${AR_FLAGS=cru} | |
c52df125 AC |
6737 | |
6738 | ||
6739 | ||
6740 | ||
6741 | ||
c52df125 | 6742 | |
c52df125 | 6743 | |
eec2776c AJ |
6744 | |
6745 | ||
6746 | ||
6747 | ||
6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6749 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6750 | if ${lt_cv_ar_at_file+:} false; then : | |
6751 | $as_echo_n "(cached) " >&6 | |
6752 | else | |
6753 | lt_cv_ar_at_file=no | |
6754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6755 | /* end confdefs.h. */ | |
6756 | ||
6757 | int | |
6758 | main () | |
6759 | { | |
6760 | ||
6761 | ; | |
6762 | return 0; | |
6763 | } | |
6764 | _ACEOF | |
6765 | if ac_fn_c_try_compile "$LINENO"; then : | |
6766 | echo conftest.$ac_objext > conftest.lst | |
6767 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6768 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6769 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6770 | ac_status=$? |
6771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6772 | test $ac_status = 0; } |
6773 | if test "$ac_status" -eq 0; then | |
6774 | # Ensure the archiver fails upon bogus file names. | |
6775 | rm -f conftest.$ac_objext libconftest.a | |
6776 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6777 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6778 | ac_status=$? |
6779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6780 | test $ac_status = 0; } |
6781 | if test "$ac_status" -ne 0; then | |
6782 | lt_cv_ar_at_file=@ | |
6783 | fi | |
6784 | fi | |
6785 | rm -f conftest.* libconftest.a | |
c52df125 | 6786 | |
eec2776c AJ |
6787 | fi |
6788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c52df125 | 6789 | |
eec2776c AJ |
6790 | fi |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6792 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6793 | ||
6794 | if test "x$lt_cv_ar_at_file" = xno; then | |
6795 | archiver_list_spec= | |
c52df125 | 6796 | else |
eec2776c AJ |
6797 | archiver_list_spec=$lt_cv_ar_at_file |
6798 | fi | |
6799 | ||
c52df125 | 6800 | |
c52df125 | 6801 | |
c52df125 | 6802 | |
c52df125 | 6803 | |
c52df125 | 6804 | |
c52df125 AC |
6805 | |
6806 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6807 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6808 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
c52df125 AC |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6810 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6811 | if ${ac_cv_prog_STRIP+:} false; then : |
c52df125 AC |
6812 | $as_echo_n "(cached) " >&6 |
6813 | else | |
eec2776c AJ |
6814 | if test -n "$STRIP"; then |
6815 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
c52df125 AC |
6816 | else |
6817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6818 | for as_dir in $PATH | |
6819 | do | |
6820 | IFS=$as_save_IFS | |
6821 | test -z "$as_dir" && as_dir=. | |
6822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6824 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
c52df125 AC |
6825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6826 | break 2 | |
6827 | fi | |
6828 | done | |
6829 | done | |
6830 | IFS=$as_save_IFS | |
6831 | ||
6832 | fi | |
6833 | fi | |
eec2776c AJ |
6834 | STRIP=$ac_cv_prog_STRIP |
6835 | if test -n "$STRIP"; then | |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6837 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
6838 | else |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6840 | $as_echo "no" >&6; } | |
6841 | fi | |
6842 | ||
6843 | ||
6844 | fi | |
eec2776c AJ |
6845 | if test -z "$ac_cv_prog_STRIP"; then |
6846 | ac_ct_STRIP=$STRIP | |
6847 | # Extract the first word of "strip", so it can be a program name with args. | |
6848 | set dummy strip; ac_word=$2 | |
c52df125 AC |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6850 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6851 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c52df125 AC |
6852 | $as_echo_n "(cached) " >&6 |
6853 | else | |
eec2776c AJ |
6854 | if test -n "$ac_ct_STRIP"; then |
6855 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
c52df125 AC |
6856 | else |
6857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6858 | for as_dir in $PATH | |
6859 | do | |
6860 | IFS=$as_save_IFS | |
6861 | test -z "$as_dir" && as_dir=. | |
6862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6864 | ac_cv_prog_ac_ct_STRIP="strip" |
c52df125 AC |
6865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6866 | break 2 | |
6867 | fi | |
6868 | done | |
6869 | done | |
6870 | IFS=$as_save_IFS | |
6871 | ||
6872 | fi | |
6873 | fi | |
eec2776c AJ |
6874 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6875 | if test -n "$ac_ct_STRIP"; then | |
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6877 | $as_echo "$ac_ct_STRIP" >&6; } | |
c52df125 AC |
6878 | else |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6880 | $as_echo "no" >&6; } | |
6881 | fi | |
6882 | ||
eec2776c AJ |
6883 | if test "x$ac_ct_STRIP" = x; then |
6884 | STRIP=":" | |
c52df125 AC |
6885 | else |
6886 | case $cross_compiling:$ac_tool_warned in | |
6887 | yes:) | |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6889 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6890 | ac_tool_warned=yes ;; | |
6891 | esac | |
eec2776c | 6892 | STRIP=$ac_ct_STRIP |
c52df125 AC |
6893 | fi |
6894 | else | |
eec2776c | 6895 | STRIP="$ac_cv_prog_STRIP" |
c52df125 AC |
6896 | fi |
6897 | ||
eec2776c | 6898 | test -z "$STRIP" && STRIP=: |
c52df125 AC |
6899 | |
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | ||
eec2776c AJ |
6905 | if test -n "$ac_tool_prefix"; then |
6906 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6907 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
c52df125 AC |
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6909 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6910 | if ${ac_cv_prog_RANLIB+:} false; then : |
c52df125 AC |
6911 | $as_echo_n "(cached) " >&6 |
6912 | else | |
eec2776c AJ |
6913 | if test -n "$RANLIB"; then |
6914 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c52df125 AC |
6915 | else |
6916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6917 | for as_dir in $PATH | |
6918 | do | |
6919 | IFS=$as_save_IFS | |
6920 | test -z "$as_dir" && as_dir=. | |
6921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6923 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
c52df125 AC |
6924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6925 | break 2 | |
6926 | fi | |
6927 | done | |
6928 | done | |
6929 | IFS=$as_save_IFS | |
6930 | ||
6931 | fi | |
6932 | fi | |
eec2776c AJ |
6933 | RANLIB=$ac_cv_prog_RANLIB |
6934 | if test -n "$RANLIB"; then | |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6936 | $as_echo "$RANLIB" >&6; } | |
c52df125 AC |
6937 | else |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6939 | $as_echo "no" >&6; } | |
6940 | fi | |
6941 | ||
6942 | ||
6943 | fi | |
eec2776c AJ |
6944 | if test -z "$ac_cv_prog_RANLIB"; then |
6945 | ac_ct_RANLIB=$RANLIB | |
6946 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6947 | set dummy ranlib; ac_word=$2 | |
c52df125 AC |
6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6949 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6950 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
c52df125 AC |
6951 | $as_echo_n "(cached) " >&6 |
6952 | else | |
eec2776c AJ |
6953 | if test -n "$ac_ct_RANLIB"; then |
6954 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
c52df125 AC |
6955 | else |
6956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6957 | for as_dir in $PATH | |
6958 | do | |
6959 | IFS=$as_save_IFS | |
6960 | test -z "$as_dir" && as_dir=. | |
6961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6963 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
c52df125 AC |
6964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6965 | break 2 | |
6966 | fi | |
6967 | done | |
6968 | done | |
6969 | IFS=$as_save_IFS | |
6970 | ||
6971 | fi | |
6972 | fi | |
eec2776c AJ |
6973 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6974 | if test -n "$ac_ct_RANLIB"; then | |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6976 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6977 | else | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
c52df125 AC |
6979 | $as_echo "no" >&6; } |
6980 | fi | |
6981 | ||
eec2776c AJ |
6982 | if test "x$ac_ct_RANLIB" = x; then |
6983 | RANLIB=":" | |
c52df125 AC |
6984 | else |
6985 | case $cross_compiling:$ac_tool_warned in | |
6986 | yes:) | |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6988 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6989 | ac_tool_warned=yes ;; | |
6990 | esac | |
eec2776c | 6991 | RANLIB=$ac_ct_RANLIB |
c52df125 AC |
6992 | fi |
6993 | else | |
eec2776c | 6994 | RANLIB="$ac_cv_prog_RANLIB" |
c52df125 AC |
6995 | fi |
6996 | ||
eec2776c | 6997 | test -z "$RANLIB" && RANLIB=: |
c52df125 | 6998 | |
c52df125 AC |
6999 | |
7000 | ||
c52df125 | 7001 | |
eec2776c AJ |
7002 | |
7003 | ||
7004 | # Determine commands to create old-style static archives. | |
7005 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7006 | old_postinstall_cmds='chmod 644 $oldlib' | |
7007 | old_postuninstall_cmds= | |
7008 | ||
7009 | if test -n "$RANLIB"; then | |
7010 | case $host_os in | |
7011 | openbsd*) | |
7012 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7013 | ;; | |
7014 | *) | |
7015 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7016 | ;; | |
7017 | esac | |
7018 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
c52df125 AC |
7019 | fi |
7020 | ||
eec2776c AJ |
7021 | case $host_os in |
7022 | darwin*) | |
7023 | lock_old_archive_extraction=yes ;; | |
7024 | *) | |
7025 | lock_old_archive_extraction=no ;; | |
c52df125 | 7026 | esac |
c52df125 | 7027 | |
c52df125 | 7028 | |
c52df125 AC |
7029 | |
7030 | ||
c52df125 | 7031 | |
c52df125 | 7032 | |
c52df125 | 7033 | |
c52df125 | 7034 | |
c52df125 AC |
7035 | |
7036 | ||
c52df125 | 7037 | |
c52df125 | 7038 | |
c52df125 AC |
7039 | |
7040 | ||
c52df125 | 7041 | |
c52df125 | 7042 | |
c52df125 AC |
7043 | |
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
eec2776c AJ |
7066 | # If no C compiler was specified, use CC. |
7067 | LTCC=${LTCC-"$CC"} | |
c52df125 | 7068 | |
eec2776c AJ |
7069 | # If no C compiler flags were specified, use CFLAGS. |
7070 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 7071 | |
eec2776c AJ |
7072 | # Allow CC to be a program name with arguments. |
7073 | compiler=$CC | |
c52df125 AC |
7074 | |
7075 | ||
eec2776c AJ |
7076 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7078 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7079 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
c52df125 AC |
7080 | $as_echo_n "(cached) " >&6 |
7081 | else | |
c52df125 | 7082 | |
eec2776c AJ |
7083 | # These are sane defaults that work on at least a few old systems. |
7084 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
c52df125 | 7085 | |
eec2776c AJ |
7086 | # Character class describing NM global symbol codes. |
7087 | symcode='[BCDEGRST]' | |
c52df125 | 7088 | |
eec2776c AJ |
7089 | # Regexp to match symbols that can be accessed directly from C. |
7090 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
c52df125 | 7091 | |
eec2776c AJ |
7092 | # Define system-specific variables. |
7093 | case $host_os in | |
7094 | aix*) | |
7095 | symcode='[BCDT]' | |
7096 | ;; | |
7097 | cygwin* | mingw* | pw32* | cegcc*) | |
7098 | symcode='[ABCDGISTW]' | |
7099 | ;; | |
7100 | hpux*) | |
7101 | if test "$host_cpu" = ia64; then | |
7102 | symcode='[ABCDEGRST]' | |
7103 | fi | |
7104 | ;; | |
7105 | irix* | nonstopux*) | |
7106 | symcode='[BCDEGRST]' | |
7107 | ;; | |
7108 | osf*) | |
7109 | symcode='[BCDEGQRST]' | |
7110 | ;; | |
7111 | solaris*) | |
7112 | symcode='[BDRT]' | |
7113 | ;; | |
7114 | sco3.2v5*) | |
7115 | symcode='[DT]' | |
7116 | ;; | |
7117 | sysv4.2uw2*) | |
7118 | symcode='[DT]' | |
7119 | ;; | |
7120 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7121 | symcode='[ABDT]' | |
7122 | ;; | |
7123 | sysv4) | |
7124 | symcode='[DFNSTU]' | |
7125 | ;; | |
7126 | esac | |
c52df125 | 7127 | |
eec2776c AJ |
7128 | # If we're using GNU nm, then use its standard symbol codes. |
7129 | case `$NM -V 2>&1` in | |
7130 | *GNU* | *'with BFD'*) | |
7131 | symcode='[ABCDGIRSTW]' ;; | |
7132 | esac | |
c52df125 | 7133 | |
eec2776c AJ |
7134 | # Transform an extracted symbol line into a proper C declaration. |
7135 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7136 | # so use this general approach. | |
7137 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
c52df125 | 7138 | |
eec2776c AJ |
7139 | # Transform an extracted symbol line into symbol name and symbol address |
7140 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7141 | 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 | 7142 | |
eec2776c AJ |
7143 | # Handle CRLF in mingw tool chain |
7144 | opt_cr= | |
7145 | case $build_os in | |
7146 | mingw*) | |
7147 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7148 | ;; | |
7149 | esac | |
c52df125 | 7150 | |
eec2776c AJ |
7151 | # Try without a prefix underscore, then with it. |
7152 | for ac_symprfx in "" "_"; do | |
c52df125 | 7153 | |
eec2776c AJ |
7154 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7155 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
c52df125 | 7156 | |
eec2776c AJ |
7157 | # Write the raw and C identifiers. |
7158 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7159 | # Fake it for dumpbin and say T for any non-static function | |
7160 | # and D for any global variable. | |
7161 | # Also find C++ and __fastcall symbols from MSVC++, | |
7162 | # which start with @ or ?. | |
7163 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7164 | " {last_section=section; section=\$ 3};"\ | |
7165 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7166 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7167 | " \$ 0!~/External *\|/{next};"\ | |
7168 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7169 | " {if(hide[section]) next};"\ | |
7170 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7171 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7172 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7173 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7174 | " ' prfx=^$ac_symprfx" | |
7175 | else | |
7176 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7177 | fi | |
7178 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
c52df125 | 7179 | |
eec2776c AJ |
7180 | # Check to see that the pipe works correctly. |
7181 | pipe_works=no | |
7182 | ||
7183 | rm -f conftest* | |
7184 | cat > conftest.$ac_ext <<_LT_EOF | |
7185 | #ifdef __cplusplus | |
7186 | extern "C" { | |
c52df125 | 7187 | #endif |
eec2776c AJ |
7188 | char nm_test_var; |
7189 | void nm_test_func(void); | |
7190 | void nm_test_func(void){} | |
7191 | #ifdef __cplusplus | |
7192 | } | |
7193 | #endif | |
7194 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7195 | _LT_EOF | |
c52df125 | 7196 | |
eec2776c AJ |
7197 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7198 | (eval $ac_compile) 2>&5 | |
7199 | ac_status=$? | |
7200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7201 | test $ac_status = 0; }; then | |
7202 | # Now try to grab the symbols. | |
7203 | nlist=conftest.nm | |
7204 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7205 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7206 | ac_status=$? | |
7207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7208 | test $ac_status = 0; } && test -s "$nlist"; then | |
7209 | # Try sorting and uniquifying the output. | |
7210 | if sort "$nlist" | uniq > "$nlist"T; then | |
7211 | mv -f "$nlist"T "$nlist" | |
7212 | else | |
7213 | rm -f "$nlist"T | |
7214 | fi | |
c52df125 | 7215 | |
eec2776c AJ |
7216 | # Make sure that we snagged all the symbols we need. |
7217 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7218 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7219 | cat <<_LT_EOF > conftest.$ac_ext | |
7220 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7221 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7222 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7223 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7224 | # define LT_DLSYM_CONST | |
7225 | #elif defined(__osf__) | |
7226 | /* This system does not cope well with relocations in const data. */ | |
7227 | # define LT_DLSYM_CONST | |
7228 | #else | |
7229 | # define LT_DLSYM_CONST const | |
7230 | #endif | |
c52df125 | 7231 | |
eec2776c AJ |
7232 | #ifdef __cplusplus |
7233 | extern "C" { | |
7234 | #endif | |
c52df125 | 7235 | |
eec2776c AJ |
7236 | _LT_EOF |
7237 | # Now generate the symbol file. | |
7238 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
c52df125 | 7239 | |
eec2776c | 7240 | cat <<_LT_EOF >> conftest.$ac_ext |
c52df125 | 7241 | |
eec2776c AJ |
7242 | /* The mapping between symbol names and symbols. */ |
7243 | LT_DLSYM_CONST struct { | |
7244 | const char *name; | |
7245 | void *address; | |
7246 | } | |
7247 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
c52df125 | 7248 | { |
eec2776c AJ |
7249 | { "@PROGRAM@", (void *) 0 }, |
7250 | _LT_EOF | |
7251 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7252 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7253 | {0, (void *) 0} | |
7254 | }; | |
c52df125 | 7255 | |
eec2776c AJ |
7256 | /* This works around a problem in FreeBSD linker */ |
7257 | #ifdef FREEBSD_WORKAROUND | |
7258 | static const void *lt_preloaded_setup() { | |
7259 | return lt__PROGRAM__LTX_preloaded_symbols; | |
c52df125 | 7260 | } |
eec2776c | 7261 | #endif |
c52df125 | 7262 | |
eec2776c AJ |
7263 | #ifdef __cplusplus |
7264 | } | |
7265 | #endif | |
7266 | _LT_EOF | |
7267 | # Now try linking the two files. | |
7268 | mv conftest.$ac_objext conftstm.$ac_objext | |
7269 | lt_globsym_save_LIBS=$LIBS | |
7270 | lt_globsym_save_CFLAGS=$CFLAGS | |
7271 | LIBS="conftstm.$ac_objext" | |
7272 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7273 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7274 | (eval $ac_link) 2>&5 | |
7275 | ac_status=$? | |
7276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7277 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7278 | pipe_works=yes | |
7279 | fi | |
7280 | LIBS=$lt_globsym_save_LIBS | |
7281 | CFLAGS=$lt_globsym_save_CFLAGS | |
7282 | else | |
7283 | echo "cannot find nm_test_func in $nlist" >&5 | |
7284 | fi | |
7285 | else | |
7286 | echo "cannot find nm_test_var in $nlist" >&5 | |
7287 | fi | |
7288 | else | |
7289 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7290 | fi | |
7291 | else | |
7292 | echo "$progname: failed program was:" >&5 | |
7293 | cat conftest.$ac_ext >&5 | |
7294 | fi | |
7295 | rm -rf conftest* conftst* | |
c52df125 | 7296 | |
eec2776c AJ |
7297 | # Do not use the global_symbol_pipe unless it works. |
7298 | if test "$pipe_works" = yes; then | |
7299 | break | |
7300 | else | |
7301 | lt_cv_sys_global_symbol_pipe= | |
7302 | fi | |
7303 | done | |
c52df125 | 7304 | |
c52df125 | 7305 | fi |
c52df125 | 7306 | |
eec2776c AJ |
7307 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7308 | lt_cv_sys_global_symbol_to_cdecl= | |
c52df125 | 7309 | fi |
eec2776c AJ |
7310 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7312 | $as_echo "failed" >&6; } | |
c52df125 | 7313 | else |
eec2776c AJ |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7315 | $as_echo "ok" >&6; } | |
c52df125 | 7316 | fi |
c52df125 | 7317 | |
eec2776c AJ |
7318 | # Response file support. |
7319 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7320 | nm_file_list_spec='@' | |
7321 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7322 | nm_file_list_spec='@' | |
c52df125 AC |
7323 | fi |
7324 | ||
c52df125 | 7325 | |
c52df125 | 7326 | |
c52df125 | 7327 | |
c52df125 | 7328 | |
c52df125 | 7329 | |
c52df125 | 7330 | |
c52df125 | 7331 | |
c52df125 | 7332 | |
c52df125 AC |
7333 | |
7334 | ||
c52df125 | 7335 | |
c52df125 | 7336 | |
c52df125 AC |
7337 | |
7338 | ||
7339 | ||
7340 | ||
7341 | ||
c52df125 AC |
7342 | |
7343 | ||
7344 | ||
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
eec2776c AJ |
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7352 | $as_echo_n "checking for sysroot... " >&6; } | |
c52df125 | 7353 | |
eec2776c AJ |
7354 | # Check whether --with-sysroot was given. |
7355 | if test "${with_sysroot+set}" = set; then : | |
7356 | withval=$with_sysroot; | |
7357 | else | |
7358 | with_sysroot=no | |
7359 | fi | |
c52df125 AC |
7360 | |
7361 | ||
eec2776c AJ |
7362 | lt_sysroot= |
7363 | case ${with_sysroot} in #( | |
7364 | yes) | |
7365 | if test "$GCC" = yes; then | |
7366 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7367 | fi | |
7368 | ;; #( | |
7369 | /*) | |
7370 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7371 | ;; #( | |
7372 | no|'') | |
7373 | ;; #( | |
7374 | *) | |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7376 | $as_echo "${with_sysroot}" >&6; } | |
7377 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7378 | ;; | |
7379 | esac | |
c52df125 | 7380 | |
eec2776c AJ |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7382 | $as_echo "${lt_sysroot:-no}" >&6; } | |
c52df125 AC |
7383 | |
7384 | ||
7385 | ||
7386 | ||
7387 | ||
eec2776c AJ |
7388 | # Check whether --enable-libtool-lock was given. |
7389 | if test "${enable_libtool_lock+set}" = set; then : | |
7390 | enableval=$enable_libtool_lock; | |
c52df125 AC |
7391 | fi |
7392 | ||
eec2776c | 7393 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
c52df125 | 7394 | |
eec2776c AJ |
7395 | # Some flags need to be propagated to the compiler or linker for good |
7396 | # libtool support. | |
7397 | case $host in | |
7398 | ia64-*-hpux*) | |
7399 | # Find out which ABI we are using. | |
7400 | echo 'int i;' > conftest.$ac_ext | |
7401 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7402 | (eval $ac_compile) 2>&5 | |
7403 | ac_status=$? | |
7404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7405 | test $ac_status = 0; }; then | |
7406 | case `/usr/bin/file conftest.$ac_objext` in | |
7407 | *ELF-32*) | |
7408 | HPUX_IA64_MODE="32" | |
7409 | ;; | |
7410 | *ELF-64*) | |
7411 | HPUX_IA64_MODE="64" | |
7412 | ;; | |
7413 | esac | |
7414 | fi | |
7415 | rm -rf conftest* | |
7416 | ;; | |
7417 | *-*-irix6*) | |
7418 | # Find out which ABI we are using. | |
7419 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7420 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7421 | (eval $ac_compile) 2>&5 | |
7422 | ac_status=$? | |
7423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7424 | test $ac_status = 0; }; then | |
7425 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7426 | case `/usr/bin/file conftest.$ac_objext` in | |
7427 | *32-bit*) | |
7428 | LD="${LD-ld} -melf32bsmip" | |
7429 | ;; | |
7430 | *N32*) | |
7431 | LD="${LD-ld} -melf32bmipn32" | |
7432 | ;; | |
7433 | *64-bit*) | |
7434 | LD="${LD-ld} -melf64bmip" | |
7435 | ;; | |
7436 | esac | |
7437 | else | |
7438 | case `/usr/bin/file conftest.$ac_objext` in | |
7439 | *32-bit*) | |
7440 | LD="${LD-ld} -32" | |
7441 | ;; | |
7442 | *N32*) | |
7443 | LD="${LD-ld} -n32" | |
7444 | ;; | |
7445 | *64-bit*) | |
7446 | LD="${LD-ld} -64" | |
7447 | ;; | |
7448 | esac | |
7449 | fi | |
7450 | fi | |
7451 | rm -rf conftest* | |
7452 | ;; | |
c52df125 | 7453 | |
eec2776c AJ |
7454 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7455 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7456 | # Find out which ABI we are using. | |
7457 | echo 'int i;' > conftest.$ac_ext | |
7458 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7459 | (eval $ac_compile) 2>&5 | |
7460 | ac_status=$? | |
7461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7462 | test $ac_status = 0; }; then | |
7463 | case `/usr/bin/file conftest.o` in | |
7464 | *32-bit*) | |
7465 | case $host in | |
7466 | x86_64-*kfreebsd*-gnu) | |
7467 | LD="${LD-ld} -m elf_i386_fbsd" | |
7468 | ;; | |
7469 | x86_64-*linux*) | |
7470 | case `/usr/bin/file conftest.o` in | |
7471 | *x86-64*) | |
7472 | LD="${LD-ld} -m elf32_x86_64" | |
7473 | ;; | |
7474 | *) | |
7475 | LD="${LD-ld} -m elf_i386" | |
7476 | ;; | |
7477 | esac | |
7478 | ;; | |
7479 | powerpc64le-*) | |
7480 | LD="${LD-ld} -m elf32lppclinux" | |
7481 | ;; | |
7482 | powerpc64-*) | |
7483 | LD="${LD-ld} -m elf32ppclinux" | |
7484 | ;; | |
7485 | s390x-*linux*) | |
7486 | LD="${LD-ld} -m elf_s390" | |
7487 | ;; | |
7488 | sparc64-*linux*) | |
7489 | LD="${LD-ld} -m elf32_sparc" | |
7490 | ;; | |
7491 | esac | |
7492 | ;; | |
7493 | *64-bit*) | |
7494 | case $host in | |
7495 | x86_64-*kfreebsd*-gnu) | |
7496 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7497 | ;; | |
7498 | x86_64-*linux*) | |
7499 | LD="${LD-ld} -m elf_x86_64" | |
7500 | ;; | |
7501 | powerpcle-*) | |
7502 | LD="${LD-ld} -m elf64lppc" | |
7503 | ;; | |
7504 | powerpc-*) | |
7505 | LD="${LD-ld} -m elf64ppc" | |
7506 | ;; | |
7507 | s390*-*linux*|s390*-*tpf*) | |
7508 | LD="${LD-ld} -m elf64_s390" | |
7509 | ;; | |
7510 | sparc*-*linux*) | |
7511 | LD="${LD-ld} -m elf64_sparc" | |
7512 | ;; | |
7513 | esac | |
7514 | ;; | |
7515 | esac | |
7516 | fi | |
7517 | rm -rf conftest* | |
7518 | ;; | |
c52df125 | 7519 | |
eec2776c AJ |
7520 | *-*-sco3.2v5*) |
7521 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7522 | SAVE_CFLAGS="$CFLAGS" | |
7523 | CFLAGS="$CFLAGS -belf" | |
7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7525 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7526 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7527 | $as_echo_n "(cached) " >&6 | |
7528 | else | |
7529 | ac_ext=c | |
7530 | ac_cpp='$CPP $CPPFLAGS' | |
7531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7534 | |
eec2776c AJ |
7535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7536 | /* end confdefs.h. */ | |
c52df125 | 7537 | |
eec2776c AJ |
7538 | int |
7539 | main () | |
7540 | { | |
c52df125 | 7541 | |
eec2776c AJ |
7542 | ; |
7543 | return 0; | |
7544 | } | |
7545 | _ACEOF | |
7546 | if ac_fn_c_try_link "$LINENO"; then : | |
7547 | lt_cv_cc_needs_belf=yes | |
c52df125 | 7548 | else |
eec2776c | 7549 | lt_cv_cc_needs_belf=no |
c52df125 | 7550 | fi |
eec2776c AJ |
7551 | rm -f core conftest.err conftest.$ac_objext \ |
7552 | conftest$ac_exeext conftest.$ac_ext | |
7553 | ac_ext=c | |
7554 | ac_cpp='$CPP $CPPFLAGS' | |
7555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7558 | |
eec2776c AJ |
7559 | fi |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7561 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7562 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7563 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7564 | CFLAGS="$SAVE_CFLAGS" | |
7565 | fi | |
7566 | ;; | |
7567 | *-*solaris*) | |
7568 | # Find out which ABI we are using. | |
7569 | echo 'int i;' > conftest.$ac_ext | |
7570 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7571 | (eval $ac_compile) 2>&5 | |
7572 | ac_status=$? | |
7573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7574 | test $ac_status = 0; }; then | |
7575 | case `/usr/bin/file conftest.o` in | |
7576 | *64-bit*) | |
7577 | case $lt_cv_prog_gnu_ld in | |
7578 | yes*) | |
7579 | case $host in | |
7580 | i?86-*-solaris*) | |
7581 | LD="${LD-ld} -m elf_x86_64" | |
7582 | ;; | |
7583 | sparc*-*-solaris*) | |
7584 | LD="${LD-ld} -m elf64_sparc" | |
7585 | ;; | |
7586 | esac | |
7587 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7588 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7589 | LD="${LD-ld}_sol2" | |
7590 | fi | |
7591 | ;; | |
7592 | *) | |
7593 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7594 | LD="${LD-ld} -64" | |
7595 | fi | |
7596 | ;; | |
7597 | esac | |
7598 | ;; | |
7599 | esac | |
7600 | fi | |
7601 | rm -rf conftest* | |
7602 | ;; | |
7603 | esac | |
c52df125 | 7604 | |
eec2776c | 7605 | need_locks="$enable_libtool_lock" |
c52df125 | 7606 | |
eec2776c AJ |
7607 | if test -n "$ac_tool_prefix"; then |
7608 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7609 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7611 | $as_echo_n "checking for $ac_word... " >&6; } | |
7612 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7613 | $as_echo_n "(cached) " >&6 | |
7614 | else | |
7615 | if test -n "$MANIFEST_TOOL"; then | |
7616 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7617 | else | |
7618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7619 | for as_dir in $PATH | |
7620 | do | |
7621 | IFS=$as_save_IFS | |
7622 | test -z "$as_dir" && as_dir=. | |
7623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7625 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7627 | break 2 | |
7628 | fi | |
7629 | done | |
7630 | done | |
7631 | IFS=$as_save_IFS | |
c52df125 | 7632 | |
eec2776c AJ |
7633 | fi |
7634 | fi | |
7635 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7636 | if test -n "$MANIFEST_TOOL"; then | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7638 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7639 | else | |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7641 | $as_echo "no" >&6; } | |
7642 | fi | |
c52df125 AC |
7643 | |
7644 | ||
eec2776c AJ |
7645 | fi |
7646 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7647 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7648 | # Extract the first word of "mt", so it can be a program name with args. | |
7649 | set dummy mt; ac_word=$2 | |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7651 | $as_echo_n "checking for $ac_word... " >&6; } | |
7652 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7653 | $as_echo_n "(cached) " >&6 | |
7654 | else | |
7655 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7656 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7657 | else | |
7658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7659 | for as_dir in $PATH | |
7660 | do | |
7661 | IFS=$as_save_IFS | |
7662 | test -z "$as_dir" && as_dir=. | |
7663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7665 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7667 | break 2 | |
7668 | fi | |
7669 | done | |
7670 | done | |
7671 | IFS=$as_save_IFS | |
c52df125 | 7672 | |
eec2776c AJ |
7673 | fi |
7674 | fi | |
7675 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7676 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7678 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7679 | else | |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7681 | $as_echo "no" >&6; } | |
7682 | fi | |
c52df125 | 7683 | |
eec2776c AJ |
7684 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7685 | MANIFEST_TOOL=":" | |
7686 | else | |
7687 | case $cross_compiling:$ac_tool_warned in | |
7688 | yes:) | |
7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7691 | ac_tool_warned=yes ;; | |
7692 | esac | |
7693 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7694 | fi | |
7695 | else | |
7696 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7697 | fi | |
c52df125 | 7698 | |
eec2776c AJ |
7699 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7701 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7702 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7703 | $as_echo_n "(cached) " >&6 | |
7704 | else | |
7705 | lt_cv_path_mainfest_tool=no | |
7706 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7707 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7708 | cat conftest.err >&5 | |
7709 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7710 | lt_cv_path_mainfest_tool=yes | |
7711 | fi | |
7712 | rm -f conftest* | |
7713 | fi | |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7715 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7716 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7717 | MANIFEST_TOOL=: | |
7718 | fi | |
c52df125 AC |
7719 | |
7720 | ||
7721 | ||
7722 | ||
7723 | ||
7724 | ||
eec2776c AJ |
7725 | case $host_os in |
7726 | rhapsody* | darwin*) | |
7727 | if test -n "$ac_tool_prefix"; then | |
7728 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7729 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7731 | $as_echo_n "checking for $ac_word... " >&6; } | |
7732 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7733 | $as_echo_n "(cached) " >&6 | |
7734 | else | |
7735 | if test -n "$DSYMUTIL"; then | |
7736 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7737 | else | |
7738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7739 | for as_dir in $PATH | |
7740 | do | |
7741 | IFS=$as_save_IFS | |
7742 | test -z "$as_dir" && as_dir=. | |
7743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7745 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7747 | break 2 | |
7748 | fi | |
7749 | done | |
7750 | done | |
7751 | IFS=$as_save_IFS | |
c52df125 | 7752 | |
eec2776c AJ |
7753 | fi |
7754 | fi | |
7755 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7756 | if test -n "$DSYMUTIL"; then | |
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7758 | $as_echo "$DSYMUTIL" >&6; } | |
7759 | else | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7761 | $as_echo "no" >&6; } | |
7762 | fi | |
c52df125 AC |
7763 | |
7764 | ||
c52df125 | 7765 | fi |
eec2776c AJ |
7766 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7767 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7768 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7769 | set dummy dsymutil; ac_word=$2 | |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7771 | $as_echo_n "checking for $ac_word... " >&6; } | |
7772 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
c52df125 AC |
7773 | $as_echo_n "(cached) " >&6 |
7774 | else | |
eec2776c AJ |
7775 | if test -n "$ac_ct_DSYMUTIL"; then |
7776 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
c52df125 | 7777 | else |
eec2776c AJ |
7778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7779 | for as_dir in $PATH | |
7780 | do | |
7781 | IFS=$as_save_IFS | |
7782 | test -z "$as_dir" && as_dir=. | |
7783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7785 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7787 | break 2 | |
7788 | fi | |
7789 | done | |
7790 | done | |
7791 | IFS=$as_save_IFS | |
7792 | ||
c52df125 | 7793 | fi |
c52df125 | 7794 | fi |
eec2776c AJ |
7795 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7796 | if test -n "$ac_ct_DSYMUTIL"; then | |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7798 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7799 | else | |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7801 | $as_echo "no" >&6; } | |
7802 | fi | |
c52df125 | 7803 | |
eec2776c AJ |
7804 | if test "x$ac_ct_DSYMUTIL" = x; then |
7805 | DSYMUTIL=":" | |
7806 | else | |
7807 | case $cross_compiling:$ac_tool_warned in | |
7808 | yes:) | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7811 | ac_tool_warned=yes ;; | |
c52df125 | 7812 | esac |
eec2776c AJ |
7813 | DSYMUTIL=$ac_ct_DSYMUTIL |
7814 | fi | |
7815 | else | |
7816 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7817 | fi | |
c52df125 | 7818 | |
eec2776c AJ |
7819 | if test -n "$ac_tool_prefix"; then |
7820 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7821 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7823 | $as_echo_n "checking for $ac_word... " >&6; } | |
7824 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
c52df125 AC |
7825 | $as_echo_n "(cached) " >&6 |
7826 | else | |
eec2776c AJ |
7827 | if test -n "$NMEDIT"; then |
7828 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7829 | else | |
7830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7831 | for as_dir in $PATH | |
7832 | do | |
7833 | IFS=$as_save_IFS | |
7834 | test -z "$as_dir" && as_dir=. | |
7835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7837 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7839 | break 2 | |
7840 | fi | |
7841 | done | |
c52df125 | 7842 | done |
eec2776c | 7843 | IFS=$as_save_IFS |
c52df125 | 7844 | |
eec2776c AJ |
7845 | fi |
7846 | fi | |
7847 | NMEDIT=$ac_cv_prog_NMEDIT | |
7848 | if test -n "$NMEDIT"; then | |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7850 | $as_echo "$NMEDIT" >&6; } | |
c52df125 AC |
7851 | else |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7853 | $as_echo "no" >&6; } | |
7854 | fi | |
7855 | ||
7856 | ||
eec2776c AJ |
7857 | fi |
7858 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7859 | ac_ct_NMEDIT=$NMEDIT | |
7860 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7861 | set dummy nmedit; ac_word=$2 | |
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7863 | $as_echo_n "checking for $ac_word... " >&6; } | |
7864 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
c52df125 AC |
7865 | $as_echo_n "(cached) " >&6 |
7866 | else | |
eec2776c AJ |
7867 | if test -n "$ac_ct_NMEDIT"; then |
7868 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7869 | else | |
7870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7871 | for as_dir in $PATH | |
7872 | do | |
7873 | IFS=$as_save_IFS | |
7874 | test -z "$as_dir" && as_dir=. | |
7875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7877 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7879 | break 2 | |
7880 | fi | |
7881 | done | |
c52df125 | 7882 | done |
eec2776c | 7883 | IFS=$as_save_IFS |
c52df125 | 7884 | |
eec2776c AJ |
7885 | fi |
7886 | fi | |
7887 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7888 | if test -n "$ac_ct_NMEDIT"; then | |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7890 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
c52df125 AC |
7891 | else |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7893 | $as_echo "no" >&6; } | |
7894 | fi | |
7895 | ||
eec2776c AJ |
7896 | if test "x$ac_ct_NMEDIT" = x; then |
7897 | NMEDIT=":" | |
c52df125 | 7898 | else |
eec2776c AJ |
7899 | case $cross_compiling:$ac_tool_warned in |
7900 | yes:) | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7902 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7903 | ac_tool_warned=yes ;; | |
7904 | esac | |
7905 | NMEDIT=$ac_ct_NMEDIT | |
c52df125 | 7906 | fi |
eec2776c AJ |
7907 | else |
7908 | NMEDIT="$ac_cv_prog_NMEDIT" | |
c52df125 AC |
7909 | fi |
7910 | ||
eec2776c AJ |
7911 | if test -n "$ac_tool_prefix"; then |
7912 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7913 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7915 | $as_echo_n "checking for $ac_word... " >&6; } | |
7916 | if ${ac_cv_prog_LIPO+:} false; then : | |
7917 | $as_echo_n "(cached) " >&6 | |
7918 | else | |
7919 | if test -n "$LIPO"; then | |
7920 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7921 | else | |
7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7923 | for as_dir in $PATH | |
7924 | do | |
7925 | IFS=$as_save_IFS | |
7926 | test -z "$as_dir" && as_dir=. | |
7927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7929 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7931 | break 2 | |
7932 | fi | |
7933 | done | |
7934 | done | |
7935 | IFS=$as_save_IFS | |
c52df125 | 7936 | |
eec2776c AJ |
7937 | fi |
7938 | fi | |
7939 | LIPO=$ac_cv_prog_LIPO | |
7940 | if test -n "$LIPO"; then | |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7942 | $as_echo "$LIPO" >&6; } | |
7943 | else | |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7945 | $as_echo "no" >&6; } | |
7946 | fi | |
c52df125 | 7947 | |
c52df125 | 7948 | |
eec2776c AJ |
7949 | fi |
7950 | if test -z "$ac_cv_prog_LIPO"; then | |
7951 | ac_ct_LIPO=$LIPO | |
7952 | # Extract the first word of "lipo", so it can be a program name with args. | |
7953 | set dummy lipo; ac_word=$2 | |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7955 | $as_echo_n "checking for $ac_word... " >&6; } | |
7956 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
c52df125 AC |
7957 | $as_echo_n "(cached) " >&6 |
7958 | else | |
eec2776c AJ |
7959 | if test -n "$ac_ct_LIPO"; then |
7960 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7961 | else | |
7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7963 | for as_dir in $PATH | |
7964 | do | |
7965 | IFS=$as_save_IFS | |
7966 | test -z "$as_dir" && as_dir=. | |
7967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7969 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7971 | break 2 | |
7972 | fi | |
7973 | done | |
7974 | done | |
7975 | IFS=$as_save_IFS | |
c52df125 AC |
7976 | |
7977 | fi | |
eec2776c AJ |
7978 | fi |
7979 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7980 | if test -n "$ac_ct_LIPO"; then | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7982 | $as_echo "$ac_ct_LIPO" >&6; } | |
c52df125 | 7983 | else |
eec2776c AJ |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7985 | $as_echo "no" >&6; } | |
c52df125 AC |
7986 | fi |
7987 | ||
eec2776c AJ |
7988 | if test "x$ac_ct_LIPO" = x; then |
7989 | LIPO=":" | |
7990 | else | |
7991 | case $cross_compiling:$ac_tool_warned in | |
7992 | yes:) | |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7995 | ac_tool_warned=yes ;; | |
7996 | esac | |
7997 | LIPO=$ac_ct_LIPO | |
7998 | fi | |
7999 | else | |
8000 | LIPO="$ac_cv_prog_LIPO" | |
c52df125 AC |
8001 | fi |
8002 | ||
eec2776c AJ |
8003 | if test -n "$ac_tool_prefix"; then |
8004 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8005 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8007 | $as_echo_n "checking for $ac_word... " >&6; } | |
8008 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8009 | $as_echo_n "(cached) " >&6 | |
8010 | else | |
8011 | if test -n "$OTOOL"; then | |
8012 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8013 | else | |
8014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8015 | for as_dir in $PATH | |
8016 | do | |
8017 | IFS=$as_save_IFS | |
8018 | test -z "$as_dir" && as_dir=. | |
8019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8021 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8023 | break 2 | |
8024 | fi | |
8025 | done | |
8026 | done | |
8027 | IFS=$as_save_IFS | |
c52df125 | 8028 | |
eec2776c AJ |
8029 | fi |
8030 | fi | |
8031 | OTOOL=$ac_cv_prog_OTOOL | |
8032 | if test -n "$OTOOL"; then | |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8034 | $as_echo "$OTOOL" >&6; } | |
8035 | else | |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8037 | $as_echo "no" >&6; } | |
8038 | fi | |
c52df125 AC |
8039 | |
8040 | ||
eec2776c AJ |
8041 | fi |
8042 | if test -z "$ac_cv_prog_OTOOL"; then | |
8043 | ac_ct_OTOOL=$OTOOL | |
8044 | # Extract the first word of "otool", so it can be a program name with args. | |
8045 | set dummy otool; ac_word=$2 | |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8047 | $as_echo_n "checking for $ac_word... " >&6; } | |
8048 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8049 | $as_echo_n "(cached) " >&6 | |
8050 | else | |
8051 | if test -n "$ac_ct_OTOOL"; then | |
8052 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8053 | else | |
8054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8055 | for as_dir in $PATH | |
8056 | do | |
8057 | IFS=$as_save_IFS | |
8058 | test -z "$as_dir" && as_dir=. | |
8059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8061 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8063 | break 2 | |
8064 | fi | |
8065 | done | |
8066 | done | |
8067 | IFS=$as_save_IFS | |
c52df125 | 8068 | |
eec2776c AJ |
8069 | fi |
8070 | fi | |
8071 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8072 | if test -n "$ac_ct_OTOOL"; then | |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8074 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8075 | else | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8077 | $as_echo "no" >&6; } | |
8078 | fi | |
c52df125 | 8079 | |
eec2776c AJ |
8080 | if test "x$ac_ct_OTOOL" = x; then |
8081 | OTOOL=":" | |
8082 | else | |
8083 | case $cross_compiling:$ac_tool_warned in | |
8084 | yes:) | |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8087 | ac_tool_warned=yes ;; | |
8088 | esac | |
8089 | OTOOL=$ac_ct_OTOOL | |
8090 | fi | |
8091 | else | |
8092 | OTOOL="$ac_cv_prog_OTOOL" | |
8093 | fi | |
c52df125 | 8094 | |
eec2776c AJ |
8095 | if test -n "$ac_tool_prefix"; then |
8096 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8097 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8099 | $as_echo_n "checking for $ac_word... " >&6; } | |
8100 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8101 | $as_echo_n "(cached) " >&6 | |
8102 | else | |
8103 | if test -n "$OTOOL64"; then | |
8104 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8105 | else | |
8106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8107 | for as_dir in $PATH | |
8108 | do | |
8109 | IFS=$as_save_IFS | |
8110 | test -z "$as_dir" && as_dir=. | |
8111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8113 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8115 | break 2 | |
8116 | fi | |
8117 | done | |
8118 | done | |
8119 | IFS=$as_save_IFS | |
c52df125 | 8120 | |
eec2776c AJ |
8121 | fi |
8122 | fi | |
8123 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8124 | if test -n "$OTOOL64"; then | |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8126 | $as_echo "$OTOOL64" >&6; } | |
8127 | else | |
8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8129 | $as_echo "no" >&6; } | |
8130 | fi | |
c52df125 | 8131 | |
c52df125 | 8132 | |
eec2776c AJ |
8133 | fi |
8134 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8135 | ac_ct_OTOOL64=$OTOOL64 | |
8136 | # Extract the first word of "otool64", so it can be a program name with args. | |
8137 | set dummy otool64; ac_word=$2 | |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8139 | $as_echo_n "checking for $ac_word... " >&6; } | |
8140 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8141 | $as_echo_n "(cached) " >&6 | |
8142 | else | |
8143 | if test -n "$ac_ct_OTOOL64"; then | |
8144 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8145 | else | |
8146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8147 | for as_dir in $PATH | |
8148 | do | |
8149 | IFS=$as_save_IFS | |
8150 | test -z "$as_dir" && as_dir=. | |
8151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8153 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8155 | break 2 | |
8156 | fi | |
8157 | done | |
8158 | done | |
8159 | IFS=$as_save_IFS | |
c52df125 | 8160 | |
eec2776c AJ |
8161 | fi |
8162 | fi | |
8163 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8164 | if test -n "$ac_ct_OTOOL64"; then | |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8166 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8167 | else | |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8169 | $as_echo "no" >&6; } | |
8170 | fi | |
c52df125 | 8171 | |
eec2776c AJ |
8172 | if test "x$ac_ct_OTOOL64" = x; then |
8173 | OTOOL64=":" | |
8174 | else | |
8175 | case $cross_compiling:$ac_tool_warned in | |
8176 | yes:) | |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8178 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8179 | ac_tool_warned=yes ;; | |
8180 | esac | |
8181 | OTOOL64=$ac_ct_OTOOL64 | |
8182 | fi | |
8183 | else | |
8184 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8185 | fi | |
c52df125 | 8186 | |
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 | |
eec2776c AJ |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8214 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8215 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
c52df125 AC |
8216 | $as_echo_n "(cached) " >&6 |
8217 | else | |
eec2776c AJ |
8218 | lt_cv_apple_cc_single_mod=no |
8219 | if test -z "${LT_MULTI_MODULE}"; then | |
8220 | # By default we will add the -single_module flag. You can override | |
8221 | # by either setting the environment variable LT_MULTI_MODULE | |
8222 | # non-empty at configure time, or by adding -multi_module to the | |
8223 | # link flags. | |
8224 | rm -rf libconftest.dylib* | |
8225 | echo "int foo(void){return 1;}" > conftest.c | |
8226 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8227 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8228 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8229 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8230 | _lt_result=$? | |
8231 | # If there is a non-empty error log, and "single_module" | |
8232 | # appears in it, assume the flag caused a linker warning | |
8233 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8234 | cat conftest.err >&5 | |
8235 | # Otherwise, if the output was created with a 0 exit code from | |
8236 | # the compiler, it worked. | |
8237 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8238 | lt_cv_apple_cc_single_mod=yes | |
8239 | else | |
8240 | cat conftest.err >&5 | |
8241 | fi | |
8242 | rm -rf libconftest.dylib* | |
8243 | rm -f conftest.* | |
8244 | fi | |
c52df125 | 8245 | fi |
eec2776c AJ |
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8247 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
c52df125 | 8248 | |
eec2776c AJ |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8250 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8251 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
c52df125 AC |
8252 | $as_echo_n "(cached) " >&6 |
8253 | else | |
eec2776c AJ |
8254 | lt_cv_ld_exported_symbols_list=no |
8255 | save_LDFLAGS=$LDFLAGS | |
8256 | echo "_main" > conftest.sym | |
8257 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8259 | /* end confdefs.h. */ | |
c52df125 | 8260 | |
eec2776c AJ |
8261 | int |
8262 | main () | |
8263 | { | |
c52df125 | 8264 | |
eec2776c AJ |
8265 | ; |
8266 | return 0; | |
8267 | } | |
8268 | _ACEOF | |
8269 | if ac_fn_c_try_link "$LINENO"; then : | |
8270 | lt_cv_ld_exported_symbols_list=yes | |
c52df125 | 8271 | else |
eec2776c | 8272 | lt_cv_ld_exported_symbols_list=no |
c52df125 | 8273 | fi |
eec2776c AJ |
8274 | rm -f core conftest.err conftest.$ac_objext \ |
8275 | conftest$ac_exeext conftest.$ac_ext | |
8276 | LDFLAGS="$save_LDFLAGS" | |
c52df125 AC |
8277 | |
8278 | fi | |
eec2776c AJ |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8280 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
c52df125 | 8281 | |
eec2776c AJ |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8283 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8284 | if ${lt_cv_ld_force_load+:} false; then : | |
c52df125 AC |
8285 | $as_echo_n "(cached) " >&6 |
8286 | else | |
eec2776c AJ |
8287 | lt_cv_ld_force_load=no |
8288 | cat > conftest.c << _LT_EOF | |
8289 | int forced_loaded() { return 2;} | |
8290 | _LT_EOF | |
8291 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8292 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8293 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8294 | $AR cru libconftest.a conftest.o 2>&5 | |
8295 | echo "$RANLIB libconftest.a" >&5 | |
8296 | $RANLIB libconftest.a 2>&5 | |
8297 | cat > conftest.c << _LT_EOF | |
8298 | int main() { return 0;} | |
8299 | _LT_EOF | |
8300 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8301 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8302 | _lt_result=$? | |
8303 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8304 | cat conftest.err >&5 | |
8305 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8306 | lt_cv_ld_force_load=yes | |
8307 | else | |
8308 | cat conftest.err >&5 | |
8309 | fi | |
8310 | rm -f conftest.err libconftest.a conftest conftest.c | |
8311 | rm -rf conftest.dSYM | |
c52df125 AC |
8312 | |
8313 | fi | |
eec2776c AJ |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8315 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8316 | case $host_os in | |
8317 | rhapsody* | darwin1.[012]) | |
8318 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8319 | darwin1.*) | |
8320 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8321 | darwin*) # darwin 5.x on | |
8322 | # if running on 10.5 or later, the deployment target defaults | |
8323 | # to the OS version, if on x86, and 10.4, the deployment | |
8324 | # target defaults to 10.4. Don't you love it? | |
8325 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8326 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8327 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8328 | 10.[012]*) | |
8329 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8330 | 10.*) | |
8331 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8332 | esac | |
8333 | ;; | |
8334 | esac | |
8335 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8336 | _lt_dar_single_mod='$single_module' | |
8337 | fi | |
8338 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8339 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8340 | else | |
8341 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8342 | fi | |
8343 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8344 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8345 | else | |
8346 | _lt_dsymutil= | |
8347 | fi | |
8348 | ;; | |
8349 | esac | |
c52df125 | 8350 | |
eec2776c AJ |
8351 | for ac_header in dlfcn.h |
8352 | do : | |
8353 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8354 | " | |
8355 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8356 | cat >>confdefs.h <<_ACEOF | |
8357 | #define HAVE_DLFCN_H 1 | |
8358 | _ACEOF | |
c52df125 | 8359 | |
eec2776c | 8360 | fi |
c52df125 | 8361 | |
eec2776c | 8362 | done |
c52df125 AC |
8363 | |
8364 | ||
8365 | ||
8366 | ||
8367 | ||
eec2776c AJ |
8368 | # Set options |
8369 | enable_dlopen=yes | |
8370 | # Check whether --enable-static was given. | |
8371 | if test "${enable_static+set}" = set; then : | |
8372 | enableval=$enable_static; p=${PACKAGE-default} | |
8373 | case $enableval in | |
8374 | yes) enable_static=yes ;; | |
8375 | no) enable_static=no ;; | |
8376 | *) | |
8377 | enable_static=no | |
8378 | # Look at the argument we got. We use all the common list separators. | |
8379 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8380 | for pkg in $enableval; do | |
8381 | IFS="$lt_save_ifs" | |
8382 | if test "X$pkg" = "X$p"; then | |
8383 | enable_static=yes | |
8384 | fi | |
8385 | done | |
8386 | IFS="$lt_save_ifs" | |
8387 | ;; | |
8388 | esac | |
c52df125 | 8389 | else |
eec2776c | 8390 | enable_static=no |
c52df125 | 8391 | fi |
c52df125 AC |
8392 | |
8393 | ||
8394 | ||
8395 | ||
8396 | ||
8397 | ||
c52df125 | 8398 | |
c52df125 | 8399 | |
c52df125 AC |
8400 | |
8401 | ||
8402 | ||
eec2776c | 8403 | enable_win32_dll=no |
c52df125 | 8404 | |
eec2776c AJ |
8405 | |
8406 | # Check whether --enable-shared was given. | |
8407 | if test "${enable_shared+set}" = set; then : | |
8408 | enableval=$enable_shared; p=${PACKAGE-default} | |
8409 | case $enableval in | |
8410 | yes) enable_shared=yes ;; | |
8411 | no) enable_shared=no ;; | |
8412 | *) | |
8413 | enable_shared=no | |
8414 | # Look at the argument we got. We use all the common list separators. | |
8415 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8416 | for pkg in $enableval; do | |
8417 | IFS="$lt_save_ifs" | |
8418 | if test "X$pkg" = "X$p"; then | |
8419 | enable_shared=yes | |
8420 | fi | |
8421 | done | |
8422 | IFS="$lt_save_ifs" | |
8423 | ;; | |
8424 | esac | |
c52df125 | 8425 | else |
eec2776c | 8426 | enable_shared=yes |
c52df125 AC |
8427 | fi |
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
c52df125 | 8434 | |
c52df125 | 8435 | |
c52df125 | 8436 | |
c52df125 | 8437 | |
eec2776c AJ |
8438 | |
8439 | # Check whether --with-pic was given. | |
8440 | if test "${with_pic+set}" = set; then : | |
8441 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8442 | case $withval in | |
8443 | yes|no) pic_mode=$withval ;; | |
8444 | *) | |
8445 | pic_mode=default | |
8446 | # Look at the argument we got. We use all the common list separators. | |
8447 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8448 | for lt_pkg in $withval; do | |
8449 | IFS="$lt_save_ifs" | |
8450 | if test "X$lt_pkg" = "X$lt_p"; then | |
8451 | pic_mode=yes | |
8452 | fi | |
8453 | done | |
8454 | IFS="$lt_save_ifs" | |
8455 | ;; | |
c52df125 | 8456 | esac |
eec2776c AJ |
8457 | else |
8458 | pic_mode=default | |
8459 | fi | |
c52df125 | 8460 | |
c52df125 | 8461 | |
eec2776c | 8462 | test -z "$pic_mode" && pic_mode=default |
c52df125 | 8463 | |
c52df125 | 8464 | |
c52df125 | 8465 | |
c52df125 | 8466 | |
c52df125 | 8467 | |
c52df125 | 8468 | |
c52df125 | 8469 | |
eec2776c AJ |
8470 | # Check whether --enable-fast-install was given. |
8471 | if test "${enable_fast_install+set}" = set; then : | |
8472 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8473 | case $enableval in | |
8474 | yes) enable_fast_install=yes ;; | |
8475 | no) enable_fast_install=no ;; | |
8476 | *) | |
8477 | enable_fast_install=no | |
8478 | # Look at the argument we got. We use all the common list separators. | |
8479 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8480 | for pkg in $enableval; do | |
8481 | IFS="$lt_save_ifs" | |
8482 | if test "X$pkg" = "X$p"; then | |
8483 | enable_fast_install=yes | |
8484 | fi | |
8485 | done | |
8486 | IFS="$lt_save_ifs" | |
c52df125 | 8487 | ;; |
eec2776c AJ |
8488 | esac |
8489 | else | |
8490 | enable_fast_install=yes | |
8491 | fi | |
c52df125 | 8492 | |
c52df125 | 8493 | |
c52df125 | 8494 | |
c52df125 | 8495 | |
c52df125 | 8496 | |
c52df125 | 8497 | |
c52df125 | 8498 | |
c52df125 | 8499 | |
c52df125 | 8500 | |
c52df125 | 8501 | |
c52df125 | 8502 | |
eec2776c AJ |
8503 | # This can be used to rebuild libtool when needed |
8504 | LIBTOOL_DEPS="$ltmain" | |
c52df125 | 8505 | |
eec2776c AJ |
8506 | # Always use our own libtool. |
8507 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
c52df125 | 8508 | |
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 AC |
8534 | |
8535 | ||
c52df125 | 8536 | |
c52df125 | 8537 | |
eec2776c | 8538 | test -z "$LN_S" && LN_S="ln -s" |
c52df125 | 8539 | |
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 | |
eec2776c AJ |
8553 | if test -n "${ZSH_VERSION+set}" ; then |
8554 | setopt NO_GLOB_SUBST | |
8555 | fi | |
c52df125 | 8556 | |
eec2776c AJ |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8558 | $as_echo_n "checking for objdir... " >&6; } | |
8559 | if ${lt_cv_objdir+:} false; then : | |
c52df125 AC |
8560 | $as_echo_n "(cached) " >&6 |
8561 | else | |
eec2776c AJ |
8562 | rm -f .libs 2>/dev/null |
8563 | mkdir .libs 2>/dev/null | |
8564 | if test -d .libs; then | |
8565 | lt_cv_objdir=.libs | |
c52df125 | 8566 | else |
eec2776c AJ |
8567 | # MS-DOS does not allow filenames that begin with a dot. |
8568 | lt_cv_objdir=_libs | |
c52df125 | 8569 | fi |
eec2776c | 8570 | rmdir .libs 2>/dev/null |
c52df125 | 8571 | fi |
eec2776c AJ |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8573 | $as_echo "$lt_cv_objdir" >&6; } | |
8574 | objdir=$lt_cv_objdir | |
c52df125 | 8575 | |
c52df125 | 8576 | |
c52df125 | 8577 | |
c52df125 | 8578 | |
c52df125 | 8579 | |
eec2776c AJ |
8580 | cat >>confdefs.h <<_ACEOF |
8581 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8582 | _ACEOF | |
c52df125 | 8583 | |
c52df125 | 8584 | |
c52df125 | 8585 | |
c52df125 | 8586 | |
eec2776c AJ |
8587 | case $host_os in |
8588 | aix3*) | |
8589 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8590 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8591 | # vanish in a puff of smoke. | |
8592 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8593 | COLLECT_NAMES= | |
8594 | export COLLECT_NAMES | |
8595 | fi | |
8596 | ;; | |
8597 | esac | |
c52df125 | 8598 | |
eec2776c AJ |
8599 | # Global variables: |
8600 | ofile=libtool | |
8601 | can_build_shared=yes | |
c52df125 | 8602 | |
eec2776c AJ |
8603 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8604 | # which needs '.lib'). | |
8605 | libext=a | |
c52df125 | 8606 | |
eec2776c | 8607 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
c52df125 | 8608 | |
eec2776c AJ |
8609 | old_CC="$CC" |
8610 | old_CFLAGS="$CFLAGS" | |
c52df125 | 8611 | |
eec2776c AJ |
8612 | # Set sane defaults for various variables |
8613 | test -z "$CC" && CC=cc | |
8614 | test -z "$LTCC" && LTCC=$CC | |
8615 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8616 | test -z "$LD" && LD=ld | |
8617 | test -z "$ac_objext" && ac_objext=o | |
c52df125 | 8618 | |
eec2776c AJ |
8619 | for cc_temp in $compiler""; do |
8620 | case $cc_temp in | |
8621 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8622 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8623 | \-*) ;; | |
8624 | *) break;; | |
8625 | esac | |
8626 | done | |
8627 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
c52df125 | 8628 | |
c52df125 | 8629 | |
eec2776c AJ |
8630 | # Only perform the check for file, if the check method requires it |
8631 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8632 | case $deplibs_check_method in | |
8633 | file_magic*) | |
8634 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8636 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8637 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8638 | $as_echo_n "(cached) " >&6 | |
8639 | else | |
8640 | case $MAGIC_CMD in | |
8641 | [\\/*] | ?:[\\/]*) | |
8642 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8643 | ;; | |
8644 | *) | |
8645 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8646 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8647 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8648 | for ac_dir in $ac_dummy; do | |
8649 | IFS="$lt_save_ifs" | |
8650 | test -z "$ac_dir" && ac_dir=. | |
8651 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8652 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8653 | if test -n "$file_magic_test_file"; then | |
8654 | case $deplibs_check_method in | |
8655 | "file_magic "*) | |
8656 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8657 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8658 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8659 | $EGREP "$file_magic_regex" > /dev/null; then | |
8660 | : | |
8661 | else | |
8662 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8663 | |
eec2776c AJ |
8664 | *** Warning: the command libtool uses to detect shared libraries, |
8665 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8666 | *** The result is that libtool may fail to recognize shared libraries | |
8667 | *** as such. This will affect the creation of libtool libraries that | |
8668 | *** depend on shared libraries, but programs linked with such libtool | |
8669 | *** libraries will work regardless of this problem. Nevertheless, you | |
8670 | *** may want to report the problem to your system manager and/or to | |
8671 | *** bug-libtool@gnu.org | |
c52df125 | 8672 | |
eec2776c AJ |
8673 | _LT_EOF |
8674 | fi ;; | |
8675 | esac | |
8676 | fi | |
8677 | break | |
c52df125 | 8678 | fi |
eec2776c AJ |
8679 | done |
8680 | IFS="$lt_save_ifs" | |
8681 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8682 | ;; | |
8683 | esac | |
8684 | fi | |
c52df125 | 8685 | |
eec2776c AJ |
8686 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8687 | if test -n "$MAGIC_CMD"; then | |
8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8689 | $as_echo "$MAGIC_CMD" >&6; } | |
8690 | else | |
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8692 | $as_echo "no" >&6; } | |
8693 | fi | |
c52df125 AC |
8694 | |
8695 | ||
8696 | ||
8697 | ||
8698 | ||
eec2776c AJ |
8699 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8700 | if test -n "$ac_tool_prefix"; then | |
8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8702 | $as_echo_n "checking for file... " >&6; } | |
8703 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8704 | $as_echo_n "(cached) " >&6 | |
8705 | else | |
8706 | case $MAGIC_CMD in | |
8707 | [\\/*] | ?:[\\/]*) | |
8708 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8709 | ;; | |
8710 | *) | |
8711 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8712 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8713 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8714 | for ac_dir in $ac_dummy; do | |
8715 | IFS="$lt_save_ifs" | |
8716 | test -z "$ac_dir" && ac_dir=. | |
8717 | if test -f $ac_dir/file; then | |
8718 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8719 | if test -n "$file_magic_test_file"; then | |
8720 | case $deplibs_check_method in | |
8721 | "file_magic "*) | |
8722 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8723 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8724 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8725 | $EGREP "$file_magic_regex" > /dev/null; then | |
8726 | : | |
8727 | else | |
8728 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8729 | |
eec2776c AJ |
8730 | *** Warning: the command libtool uses to detect shared libraries, |
8731 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8732 | *** The result is that libtool may fail to recognize shared libraries | |
8733 | *** as such. This will affect the creation of libtool libraries that | |
8734 | *** depend on shared libraries, but programs linked with such libtool | |
8735 | *** libraries will work regardless of this problem. Nevertheless, you | |
8736 | *** may want to report the problem to your system manager and/or to | |
8737 | *** bug-libtool@gnu.org | |
c52df125 | 8738 | |
eec2776c AJ |
8739 | _LT_EOF |
8740 | fi ;; | |
8741 | esac | |
8742 | fi | |
8743 | break | |
8744 | fi | |
8745 | done | |
8746 | IFS="$lt_save_ifs" | |
8747 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8748 | ;; | |
8749 | esac | |
8750 | fi | |
c52df125 | 8751 | |
eec2776c AJ |
8752 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8753 | if test -n "$MAGIC_CMD"; then | |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8755 | $as_echo "$MAGIC_CMD" >&6; } | |
8756 | else | |
8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8758 | $as_echo "no" >&6; } | |
8759 | fi | |
c52df125 AC |
8760 | |
8761 | ||
eec2776c AJ |
8762 | else |
8763 | MAGIC_CMD=: | |
8764 | fi | |
8765 | fi | |
c52df125 | 8766 | |
c52df125 AC |
8767 | fi |
8768 | ;; | |
8769 | esac | |
8770 | ||
eec2776c | 8771 | # Use C for the default configuration in the libtool script |
c52df125 | 8772 | |
eec2776c AJ |
8773 | lt_save_CC="$CC" |
8774 | ac_ext=c | |
8775 | ac_cpp='$CPP $CPPFLAGS' | |
8776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
8779 | |
8780 | ||
eec2776c AJ |
8781 | # Source file extension for C test sources. |
8782 | ac_ext=c | |
c52df125 | 8783 | |
eec2776c AJ |
8784 | # Object file extension for compiled C test sources. |
8785 | objext=o | |
8786 | objext=$objext | |
c52df125 | 8787 | |
eec2776c AJ |
8788 | # Code to be used in simple compile tests |
8789 | lt_simple_compile_test_code="int some_variable = 0;" | |
c52df125 | 8790 | |
eec2776c AJ |
8791 | # Code to be used in simple link tests |
8792 | lt_simple_link_test_code='int main(){return(0);}' | |
c52df125 AC |
8793 | |
8794 | ||
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | ||
eec2776c AJ |
8800 | # If no C compiler was specified, use CC. |
8801 | LTCC=${LTCC-"$CC"} | |
c52df125 | 8802 | |
eec2776c AJ |
8803 | # If no C compiler flags were specified, use CFLAGS. |
8804 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 8805 | |
eec2776c AJ |
8806 | # Allow CC to be a program name with arguments. |
8807 | compiler=$CC | |
c52df125 | 8808 | |
eec2776c AJ |
8809 | # Save the default compiler, since it gets overwritten when the other |
8810 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8811 | compiler_DEFAULT=$CC | |
c52df125 | 8812 | |
eec2776c AJ |
8813 | # save warnings/boilerplate of simple test code |
8814 | ac_outfile=conftest.$ac_objext | |
8815 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8816 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8817 | _lt_compiler_boilerplate=`cat conftest.err` | |
8818 | $RM conftest* | |
c52df125 | 8819 | |
eec2776c AJ |
8820 | ac_outfile=conftest.$ac_objext |
8821 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8822 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8823 | _lt_linker_boilerplate=`cat conftest.err` | |
8824 | $RM -r conftest* | |
c52df125 AC |
8825 | |
8826 | ||
eec2776c AJ |
8827 | ## CAVEAT EMPTOR: |
8828 | ## There is no encapsulation within the following macros, do not change | |
8829 | ## the running order or otherwise move them around unless you know exactly | |
8830 | ## what you are doing... | |
8831 | if test -n "$compiler"; then | |
c52df125 | 8832 | |
eec2776c | 8833 | lt_prog_compiler_no_builtin_flag= |
c52df125 | 8834 | |
eec2776c AJ |
8835 | if test "$GCC" = yes; then |
8836 | case $cc_basename in | |
8837 | nvcc*) | |
8838 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8839 | *) | |
8840 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8841 | esac | |
c52df125 | 8842 | |
eec2776c AJ |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8844 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8845 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8846 | $as_echo_n "(cached) " >&6 | |
8847 | else | |
8848 | lt_cv_prog_compiler_rtti_exceptions=no | |
8849 | ac_outfile=conftest.$ac_objext | |
8850 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8851 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8852 | # Insert the option either (1) after the last *FLAGS variable, or | |
8853 | # (2) before a word containing "conftest.", or (3) at the end. | |
8854 | # Note that $ac_compile itself does not contain backslashes and begins | |
8855 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8856 | # The option is referenced via a variable to avoid confusing sed. | |
8857 | lt_compile=`echo "$ac_compile" | $SED \ | |
8858 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8859 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8860 | -e 's:$: $lt_compiler_flag:'` | |
8861 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8862 | (eval "$lt_compile" 2>conftest.err) | |
8863 | ac_status=$? | |
8864 | cat conftest.err >&5 | |
8865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8866 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8867 | # The compiler can only warn and ignore the option if not recognized | |
8868 | # So say no if there are warnings other than the usual output. | |
8869 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8870 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8871 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8872 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8873 | fi | |
8874 | fi | |
8875 | $RM conftest* | |
c52df125 | 8876 | |
eec2776c AJ |
8877 | fi |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8879 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
c52df125 | 8880 | |
eec2776c AJ |
8881 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8882 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8883 | else | |
8884 | : | |
8885 | fi | |
c52df125 | 8886 | |
eec2776c | 8887 | fi |
c52df125 AC |
8888 | |
8889 | ||
8890 | ||
8891 | ||
8892 | ||
8893 | ||
eec2776c AJ |
8894 | lt_prog_compiler_wl= |
8895 | lt_prog_compiler_pic= | |
8896 | lt_prog_compiler_static= | |
c52df125 AC |
8897 | |
8898 | ||
eec2776c AJ |
8899 | if test "$GCC" = yes; then |
8900 | lt_prog_compiler_wl='-Wl,' | |
8901 | lt_prog_compiler_static='-static' | |
c52df125 | 8902 | |
eec2776c AJ |
8903 | case $host_os in |
8904 | aix*) | |
8905 | # All AIX code is PIC. | |
8906 | if test "$host_cpu" = ia64; then | |
8907 | # AIX 5 now supports IA64 processor | |
8908 | lt_prog_compiler_static='-Bstatic' | |
8909 | fi | |
8910 | ;; | |
c52df125 | 8911 | |
eec2776c AJ |
8912 | amigaos*) |
8913 | case $host_cpu in | |
8914 | powerpc) | |
8915 | # see comment about AmigaOS4 .so support | |
8916 | lt_prog_compiler_pic='-fPIC' | |
8917 | ;; | |
8918 | m68k) | |
8919 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8920 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8921 | # like `-m68040'. | |
8922 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8923 | ;; | |
8924 | esac | |
8925 | ;; | |
c52df125 | 8926 | |
eec2776c AJ |
8927 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8928 | # PIC is the default for these OSes. | |
8929 | ;; | |
c52df125 | 8930 | |
eec2776c AJ |
8931 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8932 | # This hack is so that the source file can tell whether it is being | |
8933 | # built for inclusion in a dll (and should export symbols for example). | |
8934 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8935 | # (--disable-auto-import) libraries | |
8936 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8937 | ;; | |
c52df125 | 8938 | |
eec2776c AJ |
8939 | darwin* | rhapsody*) |
8940 | # PIC is the default on this platform | |
8941 | # Common symbols not allowed in MH_DYLIB files | |
8942 | lt_prog_compiler_pic='-fno-common' | |
8943 | ;; | |
c52df125 | 8944 | |
eec2776c AJ |
8945 | haiku*) |
8946 | # PIC is the default for Haiku. | |
8947 | # The "-static" flag exists, but is broken. | |
8948 | lt_prog_compiler_static= | |
8949 | ;; | |
c52df125 | 8950 | |
eec2776c AJ |
8951 | hpux*) |
8952 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8953 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8954 | # sets the default TLS model and affects inlining. | |
8955 | case $host_cpu in | |
8956 | hppa*64*) | |
8957 | # +Z the default | |
8958 | ;; | |
8959 | *) | |
8960 | lt_prog_compiler_pic='-fPIC' | |
8961 | ;; | |
8962 | esac | |
8963 | ;; | |
c52df125 | 8964 | |
eec2776c AJ |
8965 | interix[3-9]*) |
8966 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8967 | # Instead, we relocate shared libraries at runtime. | |
8968 | ;; | |
c52df125 | 8969 | |
eec2776c AJ |
8970 | msdosdjgpp*) |
8971 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8972 | # on systems that don't support them. | |
8973 | lt_prog_compiler_can_build_shared=no | |
8974 | enable_shared=no | |
8975 | ;; | |
c52df125 | 8976 | |
eec2776c AJ |
8977 | *nto* | *qnx*) |
8978 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8979 | # it will coredump. | |
8980 | lt_prog_compiler_pic='-fPIC -shared' | |
8981 | ;; | |
c52df125 | 8982 | |
eec2776c AJ |
8983 | sysv4*MP*) |
8984 | if test -d /usr/nec; then | |
8985 | lt_prog_compiler_pic=-Kconform_pic | |
8986 | fi | |
8987 | ;; | |
c52df125 | 8988 | |
eec2776c AJ |
8989 | *) |
8990 | lt_prog_compiler_pic='-fPIC' | |
8991 | ;; | |
8992 | esac | |
c52df125 | 8993 | |
eec2776c AJ |
8994 | case $cc_basename in |
8995 | nvcc*) # Cuda Compiler Driver 2.2 | |
8996 | lt_prog_compiler_wl='-Xlinker ' | |
8997 | if test -n "$lt_prog_compiler_pic"; then | |
8998 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8999 | fi | |
9000 | ;; | |
9001 | esac | |
9002 | else | |
9003 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9004 | case $host_os in | |
9005 | aix*) | |
9006 | lt_prog_compiler_wl='-Wl,' | |
9007 | if test "$host_cpu" = ia64; then | |
9008 | # AIX 5 now supports IA64 processor | |
9009 | lt_prog_compiler_static='-Bstatic' | |
9010 | else | |
9011 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9012 | fi | |
9013 | ;; | |
c52df125 | 9014 | |
eec2776c AJ |
9015 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9016 | # This hack is so that the source file can tell whether it is being | |
9017 | # built for inclusion in a dll (and should export symbols for example). | |
9018 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9019 | ;; | |
c52df125 | 9020 | |
eec2776c AJ |
9021 | hpux9* | hpux10* | hpux11*) |
9022 | lt_prog_compiler_wl='-Wl,' | |
9023 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9024 | # not for PA HP-UX. | |
9025 | case $host_cpu in | |
9026 | hppa*64*|ia64*) | |
9027 | # +Z the default | |
9028 | ;; | |
9029 | *) | |
9030 | lt_prog_compiler_pic='+Z' | |
9031 | ;; | |
9032 | esac | |
9033 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9034 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9035 | ;; | |
c52df125 | 9036 | |
eec2776c AJ |
9037 | irix5* | irix6* | nonstopux*) |
9038 | lt_prog_compiler_wl='-Wl,' | |
9039 | # PIC (with -KPIC) is the default. | |
9040 | lt_prog_compiler_static='-non_shared' | |
9041 | ;; | |
c52df125 | 9042 | |
eec2776c AJ |
9043 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9044 | case $cc_basename in | |
9045 | # old Intel for x86_64 which still supported -KPIC. | |
9046 | ecc*) | |
9047 | lt_prog_compiler_wl='-Wl,' | |
9048 | lt_prog_compiler_pic='-KPIC' | |
9049 | lt_prog_compiler_static='-static' | |
9050 | ;; | |
9051 | # icc used to be incompatible with GCC. | |
9052 | # ICC 10 doesn't accept -KPIC any more. | |
9053 | icc* | ifort*) | |
9054 | lt_prog_compiler_wl='-Wl,' | |
9055 | lt_prog_compiler_pic='-fPIC' | |
9056 | lt_prog_compiler_static='-static' | |
9057 | ;; | |
9058 | # Lahey Fortran 8.1. | |
9059 | lf95*) | |
9060 | lt_prog_compiler_wl='-Wl,' | |
9061 | lt_prog_compiler_pic='--shared' | |
9062 | lt_prog_compiler_static='--static' | |
9063 | ;; | |
9064 | nagfor*) | |
9065 | # NAG Fortran compiler | |
9066 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9067 | lt_prog_compiler_pic='-PIC' | |
9068 | lt_prog_compiler_static='-Bstatic' | |
9069 | ;; | |
9070 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9071 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9072 | # which looks to be a dead project) | |
9073 | lt_prog_compiler_wl='-Wl,' | |
9074 | lt_prog_compiler_pic='-fpic' | |
9075 | lt_prog_compiler_static='-Bstatic' | |
9076 | ;; | |
9077 | ccc*) | |
9078 | lt_prog_compiler_wl='-Wl,' | |
9079 | # All Alpha code is PIC. | |
9080 | lt_prog_compiler_static='-non_shared' | |
9081 | ;; | |
9082 | xl* | bgxl* | bgf* | mpixl*) | |
9083 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9084 | lt_prog_compiler_wl='-Wl,' | |
9085 | lt_prog_compiler_pic='-qpic' | |
9086 | lt_prog_compiler_static='-qstaticlink' | |
9087 | ;; | |
9088 | *) | |
9089 | case `$CC -V 2>&1 | sed 5q` in | |
9090 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9091 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9092 | lt_prog_compiler_pic='-KPIC' | |
9093 | lt_prog_compiler_static='-Bstatic' | |
9094 | lt_prog_compiler_wl='' | |
9095 | ;; | |
9096 | *Sun\ F* | *Sun*Fortran*) | |
9097 | lt_prog_compiler_pic='-KPIC' | |
9098 | lt_prog_compiler_static='-Bstatic' | |
9099 | lt_prog_compiler_wl='-Qoption ld ' | |
9100 | ;; | |
9101 | *Sun\ C*) | |
9102 | # Sun C 5.9 | |
9103 | lt_prog_compiler_pic='-KPIC' | |
9104 | lt_prog_compiler_static='-Bstatic' | |
9105 | lt_prog_compiler_wl='-Wl,' | |
9106 | ;; | |
9107 | *Intel*\ [CF]*Compiler*) | |
9108 | lt_prog_compiler_wl='-Wl,' | |
9109 | lt_prog_compiler_pic='-fPIC' | |
9110 | lt_prog_compiler_static='-static' | |
9111 | ;; | |
9112 | *Portland\ Group*) | |
9113 | lt_prog_compiler_wl='-Wl,' | |
9114 | lt_prog_compiler_pic='-fpic' | |
9115 | lt_prog_compiler_static='-Bstatic' | |
9116 | ;; | |
9117 | esac | |
9118 | ;; | |
9119 | esac | |
9120 | ;; | |
c52df125 | 9121 | |
eec2776c AJ |
9122 | newsos6) |
9123 | lt_prog_compiler_pic='-KPIC' | |
9124 | lt_prog_compiler_static='-Bstatic' | |
9125 | ;; | |
c52df125 | 9126 | |
eec2776c AJ |
9127 | *nto* | *qnx*) |
9128 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9129 | # it will coredump. | |
9130 | lt_prog_compiler_pic='-fPIC -shared' | |
9131 | ;; | |
c52df125 | 9132 | |
eec2776c AJ |
9133 | osf3* | osf4* | osf5*) |
9134 | lt_prog_compiler_wl='-Wl,' | |
9135 | # All OSF/1 code is PIC. | |
9136 | lt_prog_compiler_static='-non_shared' | |
9137 | ;; | |
c52df125 | 9138 | |
eec2776c AJ |
9139 | rdos*) |
9140 | lt_prog_compiler_static='-non_shared' | |
9141 | ;; | |
c52df125 | 9142 | |
eec2776c AJ |
9143 | solaris*) |
9144 | lt_prog_compiler_pic='-KPIC' | |
9145 | lt_prog_compiler_static='-Bstatic' | |
9146 | case $cc_basename in | |
9147 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9148 | lt_prog_compiler_wl='-Qoption ld ';; | |
9149 | *) | |
9150 | lt_prog_compiler_wl='-Wl,';; | |
9151 | esac | |
9152 | ;; | |
c52df125 | 9153 | |
eec2776c AJ |
9154 | sunos4*) |
9155 | lt_prog_compiler_wl='-Qoption ld ' | |
9156 | lt_prog_compiler_pic='-PIC' | |
9157 | lt_prog_compiler_static='-Bstatic' | |
9158 | ;; | |
c52df125 | 9159 | |
eec2776c AJ |
9160 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9161 | lt_prog_compiler_wl='-Wl,' | |
9162 | lt_prog_compiler_pic='-KPIC' | |
9163 | lt_prog_compiler_static='-Bstatic' | |
9164 | ;; | |
c52df125 | 9165 | |
eec2776c AJ |
9166 | sysv4*MP*) |
9167 | if test -d /usr/nec ;then | |
9168 | lt_prog_compiler_pic='-Kconform_pic' | |
9169 | lt_prog_compiler_static='-Bstatic' | |
9170 | fi | |
9171 | ;; | |
c52df125 | 9172 | |
eec2776c AJ |
9173 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9174 | lt_prog_compiler_wl='-Wl,' | |
9175 | lt_prog_compiler_pic='-KPIC' | |
9176 | lt_prog_compiler_static='-Bstatic' | |
9177 | ;; | |
c52df125 | 9178 | |
eec2776c AJ |
9179 | unicos*) |
9180 | lt_prog_compiler_wl='-Wl,' | |
9181 | lt_prog_compiler_can_build_shared=no | |
9182 | ;; | |
c52df125 | 9183 | |
eec2776c AJ |
9184 | uts4*) |
9185 | lt_prog_compiler_pic='-pic' | |
9186 | lt_prog_compiler_static='-Bstatic' | |
9187 | ;; | |
c52df125 | 9188 | |
eec2776c AJ |
9189 | *) |
9190 | lt_prog_compiler_can_build_shared=no | |
9191 | ;; | |
9192 | esac | |
9193 | fi | |
c52df125 | 9194 | |
eec2776c AJ |
9195 | case $host_os in |
9196 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9197 | *djgpp*) | |
9198 | lt_prog_compiler_pic= | |
9199 | ;; | |
9200 | *) | |
9201 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9202 | ;; | |
9203 | esac | |
c52df125 | 9204 | |
eec2776c AJ |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9206 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9207 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9208 | $as_echo_n "(cached) " >&6 | |
9209 | else | |
9210 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9211 | fi | |
9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9213 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9214 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
c52df125 | 9215 | |
eec2776c AJ |
9216 | # |
9217 | # Check to make sure the PIC flag actually works. | |
9218 | # | |
9219 | if test -n "$lt_prog_compiler_pic"; then | |
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9221 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9222 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9223 | $as_echo_n "(cached) " >&6 | |
9224 | else | |
9225 | lt_cv_prog_compiler_pic_works=no | |
9226 | ac_outfile=conftest.$ac_objext | |
9227 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9228 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9229 | # Insert the option either (1) after the last *FLAGS variable, or | |
9230 | # (2) before a word containing "conftest.", or (3) at the end. | |
9231 | # Note that $ac_compile itself does not contain backslashes and begins | |
9232 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9233 | # The option is referenced via a variable to avoid confusing sed. | |
9234 | lt_compile=`echo "$ac_compile" | $SED \ | |
9235 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9236 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9237 | -e 's:$: $lt_compiler_flag:'` | |
9238 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9239 | (eval "$lt_compile" 2>conftest.err) | |
9240 | ac_status=$? | |
9241 | cat conftest.err >&5 | |
9242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9243 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9244 | # The compiler can only warn and ignore the option if not recognized | |
9245 | # So say no if there are warnings other than the usual output. | |
9246 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9247 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9248 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9249 | lt_cv_prog_compiler_pic_works=yes | |
9250 | fi | |
9251 | fi | |
9252 | $RM conftest* | |
c52df125 | 9253 | |
eec2776c AJ |
9254 | fi |
9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9256 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
c52df125 | 9257 | |
eec2776c AJ |
9258 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9259 | case $lt_prog_compiler_pic in | |
9260 | "" | " "*) ;; | |
9261 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9262 | esac | |
9263 | else | |
9264 | lt_prog_compiler_pic= | |
9265 | lt_prog_compiler_can_build_shared=no | |
9266 | fi | |
c52df125 | 9267 | |
eec2776c | 9268 | fi |
c52df125 AC |
9269 | |
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
eec2776c AJ |
9280 | # |
9281 | # Check to make sure the static flag actually works. | |
9282 | # | |
9283 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9285 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9286 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9287 | $as_echo_n "(cached) " >&6 | |
9288 | else | |
9289 | lt_cv_prog_compiler_static_works=no | |
9290 | save_LDFLAGS="$LDFLAGS" | |
9291 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9292 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9293 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9294 | # The linker can only warn and ignore the option if not recognized | |
9295 | # So say no if there are warnings | |
9296 | if test -s conftest.err; then | |
9297 | # Append any errors to the config.log. | |
9298 | cat conftest.err 1>&5 | |
9299 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9300 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9301 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9302 | lt_cv_prog_compiler_static_works=yes | |
9303 | fi | |
9304 | else | |
9305 | lt_cv_prog_compiler_static_works=yes | |
9306 | fi | |
9307 | fi | |
9308 | $RM -r conftest* | |
9309 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 9310 | |
eec2776c AJ |
9311 | fi |
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9313 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
c52df125 | 9314 | |
eec2776c AJ |
9315 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9316 | : | |
9317 | else | |
9318 | lt_prog_compiler_static= | |
9319 | fi | |
c52df125 AC |
9320 | |
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
eec2776c AJ |
9327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9328 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9329 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9330 | $as_echo_n "(cached) " >&6 | |
9331 | else | |
9332 | lt_cv_prog_compiler_c_o=no | |
9333 | $RM -r conftest 2>/dev/null | |
9334 | mkdir conftest | |
9335 | cd conftest | |
9336 | mkdir out | |
9337 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9338 | |
eec2776c AJ |
9339 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9340 | # Insert the option either (1) after the last *FLAGS variable, or | |
9341 | # (2) before a word containing "conftest.", or (3) at the end. | |
9342 | # Note that $ac_compile itself does not contain backslashes and begins | |
9343 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9344 | lt_compile=`echo "$ac_compile" | $SED \ | |
9345 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9346 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9347 | -e 's:$: $lt_compiler_flag:'` | |
9348 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9349 | (eval "$lt_compile" 2>out/conftest.err) | |
9350 | ac_status=$? | |
9351 | cat out/conftest.err >&5 | |
9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9353 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9354 | then | |
9355 | # The compiler can only warn and ignore the option if not recognized | |
9356 | # So say no if there are warnings | |
9357 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9358 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9359 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9360 | lt_cv_prog_compiler_c_o=yes | |
9361 | fi | |
9362 | fi | |
9363 | chmod u+w . 2>&5 | |
9364 | $RM conftest* | |
9365 | # SGI C++ compiler will create directory out/ii_files/ for | |
9366 | # template instantiation | |
9367 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9368 | $RM out/* && rmdir out | |
9369 | cd .. | |
9370 | $RM -r conftest | |
9371 | $RM conftest* | |
c52df125 | 9372 | |
eec2776c AJ |
9373 | fi |
9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9375 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9376 | |
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
eec2776c AJ |
9382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9383 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9384 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9385 | $as_echo_n "(cached) " >&6 | |
9386 | else | |
9387 | lt_cv_prog_compiler_c_o=no | |
9388 | $RM -r conftest 2>/dev/null | |
9389 | mkdir conftest | |
9390 | cd conftest | |
9391 | mkdir out | |
9392 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9393 | |
eec2776c AJ |
9394 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9395 | # Insert the option either (1) after the last *FLAGS variable, or | |
9396 | # (2) before a word containing "conftest.", or (3) at the end. | |
9397 | # Note that $ac_compile itself does not contain backslashes and begins | |
9398 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9399 | lt_compile=`echo "$ac_compile" | $SED \ | |
9400 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9401 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9402 | -e 's:$: $lt_compiler_flag:'` | |
9403 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9404 | (eval "$lt_compile" 2>out/conftest.err) | |
9405 | ac_status=$? | |
9406 | cat out/conftest.err >&5 | |
9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9408 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9409 | then | |
9410 | # The compiler can only warn and ignore the option if not recognized | |
9411 | # So say no if there are warnings | |
9412 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9413 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9414 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9415 | lt_cv_prog_compiler_c_o=yes | |
9416 | fi | |
9417 | fi | |
9418 | chmod u+w . 2>&5 | |
9419 | $RM conftest* | |
9420 | # SGI C++ compiler will create directory out/ii_files/ for | |
9421 | # template instantiation | |
9422 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9423 | $RM out/* && rmdir out | |
9424 | cd .. | |
9425 | $RM -r conftest | |
9426 | $RM conftest* | |
c52df125 | 9427 | |
eec2776c AJ |
9428 | fi |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9430 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9431 | |
9432 | ||
9433 | ||
9434 | ||
eec2776c AJ |
9435 | hard_links="nottested" |
9436 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9437 | # do not overwrite the value of need_locks provided by the user | |
9438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9439 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9440 | hard_links=yes | |
9441 | $RM conftest* | |
9442 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9443 | touch conftest.a | |
9444 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9445 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9447 | $as_echo "$hard_links" >&6; } | |
9448 | if test "$hard_links" = no; then | |
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9450 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9451 | need_locks=warn | |
9452 | fi | |
9453 | else | |
9454 | need_locks=no | |
9455 | fi | |
c52df125 AC |
9456 | |
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
eec2776c AJ |
9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9463 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
c52df125 | 9464 | |
eec2776c AJ |
9465 | runpath_var= |
9466 | allow_undefined_flag= | |
9467 | always_export_symbols=no | |
9468 | archive_cmds= | |
9469 | archive_expsym_cmds= | |
9470 | compiler_needs_object=no | |
9471 | enable_shared_with_static_runtimes=no | |
9472 | export_dynamic_flag_spec= | |
9473 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9474 | hardcode_automatic=no | |
9475 | hardcode_direct=no | |
9476 | hardcode_direct_absolute=no | |
9477 | hardcode_libdir_flag_spec= | |
9478 | hardcode_libdir_separator= | |
9479 | hardcode_minus_L=no | |
9480 | hardcode_shlibpath_var=unsupported | |
9481 | inherit_rpath=no | |
9482 | link_all_deplibs=unknown | |
9483 | module_cmds= | |
9484 | module_expsym_cmds= | |
9485 | old_archive_from_new_cmds= | |
9486 | old_archive_from_expsyms_cmds= | |
9487 | thread_safe_flag_spec= | |
9488 | whole_archive_flag_spec= | |
9489 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9490 | # included in the symbol list | |
9491 | include_expsyms= | |
9492 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9493 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9494 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9495 | # as well as any symbol that contains `d'. | |
9496 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9497 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9498 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9499 | # the symbol is explicitly referenced. Since portable code cannot | |
9500 | # rely on this symbol name, it's probably fine to never include it in | |
9501 | # preloaded symbol tables. | |
9502 | # Exclude shared library initialization/finalization symbols. | |
9503 | extract_expsyms_cmds= | |
c52df125 | 9504 | |
c52df125 | 9505 | case $host_os in |
eec2776c AJ |
9506 | cygwin* | mingw* | pw32* | cegcc*) |
9507 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9508 | # When not using gcc, we currently assume that we are using | |
9509 | # Microsoft Visual C++. | |
9510 | if test "$GCC" != yes; then | |
9511 | with_gnu_ld=no | |
9512 | fi | |
c52df125 | 9513 | ;; |
eec2776c AJ |
9514 | interix*) |
9515 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9516 | with_gnu_ld=yes | |
9517 | ;; | |
9518 | openbsd*) | |
9519 | with_gnu_ld=no | |
9520 | ;; | |
9521 | linux* | k*bsd*-gnu | gnu*) | |
9522 | link_all_deplibs=no | |
c52df125 AC |
9523 | ;; |
9524 | esac | |
c52df125 | 9525 | |
eec2776c | 9526 | ld_shlibs=yes |
c52df125 | 9527 | |
eec2776c AJ |
9528 | # On some targets, GNU ld is compatible enough with the native linker |
9529 | # that we're better off using the native interface for both. | |
9530 | lt_use_gnu_ld_interface=no | |
9531 | if test "$with_gnu_ld" = yes; then | |
c52df125 | 9532 | case $host_os in |
eec2776c AJ |
9533 | aix*) |
9534 | # The AIX port of GNU ld has always aspired to compatibility | |
9535 | # with the native linker. However, as the warning in the GNU ld | |
9536 | # block says, versions before 2.19.5* couldn't really create working | |
9537 | # shared libraries, regardless of the interface used. | |
9538 | case `$LD -v 2>&1` in | |
9539 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9540 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9541 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9542 | *) | |
9543 | lt_use_gnu_ld_interface=yes | |
9544 | ;; | |
9545 | esac | |
9546 | ;; | |
9547 | *) | |
9548 | lt_use_gnu_ld_interface=yes | |
9549 | ;; | |
c52df125 | 9550 | esac |
c52df125 | 9551 | fi |
c52df125 | 9552 | |
eec2776c AJ |
9553 | if test "$lt_use_gnu_ld_interface" = yes; then |
9554 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9555 | wlarc='${wl}' | |
c52df125 | 9556 | |
eec2776c AJ |
9557 | # Set some defaults for GNU ld with shared library support. These |
9558 | # are reset later if shared libraries are not supported. Putting them | |
9559 | # here allows them to be overridden if necessary. | |
9560 | runpath_var=LD_RUN_PATH | |
9561 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9562 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9563 | # ancient GNU ld didn't support --whole-archive et. al. | |
9564 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9565 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9566 | else | |
9567 | whole_archive_flag_spec= | |
9568 | fi | |
9569 | supports_anon_versioning=no | |
9570 | case `$LD -v 2>&1` in | |
9571 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9572 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9573 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9574 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9575 | *\ 2.11.*) ;; # other 2.11 versions | |
9576 | *) supports_anon_versioning=yes ;; | |
9577 | esac | |
c52df125 | 9578 | |
eec2776c AJ |
9579 | # See if GNU ld supports shared libraries. |
9580 | case $host_os in | |
9581 | aix[3-9]*) | |
9582 | # On AIX/PPC, the GNU linker is very broken | |
9583 | if test "$host_cpu" != ia64; then | |
9584 | ld_shlibs=no | |
9585 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9586 | |
eec2776c AJ |
9587 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9588 | *** to be unable to reliably create shared libraries on AIX. | |
9589 | *** Therefore, libtool is disabling shared libraries support. If you | |
9590 | *** really care for shared libraries, you may want to install binutils | |
9591 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9592 | *** You will then need to restart the configuration process. | |
c52df125 | 9593 | |
eec2776c AJ |
9594 | _LT_EOF |
9595 | fi | |
9596 | ;; | |
c52df125 | 9597 | |
eec2776c AJ |
9598 | amigaos*) |
9599 | case $host_cpu in | |
9600 | powerpc) | |
9601 | # see comment about AmigaOS4 .so support | |
9602 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9603 | archive_expsym_cmds='' | |
9604 | ;; | |
9605 | m68k) | |
9606 | 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)' | |
9607 | hardcode_libdir_flag_spec='-L$libdir' | |
9608 | hardcode_minus_L=yes | |
9609 | ;; | |
9610 | esac | |
9611 | ;; | |
c52df125 | 9612 | |
eec2776c AJ |
9613 | beos*) |
9614 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9615 | allow_undefined_flag=unsupported | |
9616 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9617 | # support --undefined. This deserves some investigation. FIXME | |
9618 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9619 | else | |
9620 | ld_shlibs=no | |
9621 | fi | |
c52df125 | 9622 | ;; |
eec2776c AJ |
9623 | |
9624 | cygwin* | mingw* | pw32* | cegcc*) | |
9625 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9626 | # as there is no search path for DLLs. | |
9627 | hardcode_libdir_flag_spec='-L$libdir' | |
9628 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9629 | allow_undefined_flag=unsupported | |
9630 | always_export_symbols=no | |
9631 | enable_shared_with_static_runtimes=yes | |
9632 | 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' | |
9633 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9634 | ||
9635 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9636 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9637 | # If the export-symbols file already is a .def file (1st line | |
9638 | # is EXPORTS), use it as is; otherwise, prepend... | |
9639 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9640 | cp $export_symbols $output_objdir/$soname.def; | |
9641 | else | |
9642 | echo EXPORTS > $output_objdir/$soname.def; | |
9643 | cat $export_symbols >> $output_objdir/$soname.def; | |
9644 | fi~ | |
9645 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9646 | else | |
9647 | ld_shlibs=no | |
9648 | fi | |
c52df125 | 9649 | ;; |
c52df125 | 9650 | |
eec2776c AJ |
9651 | haiku*) |
9652 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9653 | link_all_deplibs=yes | |
9654 | ;; | |
c52df125 | 9655 | |
eec2776c AJ |
9656 | interix[3-9]*) |
9657 | hardcode_direct=no | |
9658 | hardcode_shlibpath_var=no | |
9659 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9660 | export_dynamic_flag_spec='${wl}-E' | |
9661 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9662 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9663 | # default) and relocated if they conflict, which is a slow very memory | |
9664 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9665 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9666 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9667 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9668 | 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 | 9669 | ;; |
eec2776c AJ |
9670 | |
9671 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9672 | tmp_diet=no | |
9673 | if test "$host_os" = linux-dietlibc; then | |
9674 | case $cc_basename in | |
9675 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9676 | esac | |
9677 | fi | |
9678 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9679 | && test "$tmp_diet" = no | |
9680 | then | |
9681 | tmp_addflag=' $pic_flag' | |
9682 | tmp_sharedflag='-shared' | |
9683 | case $cc_basename,$host_cpu in | |
9684 | pgcc*) # Portland Group C compiler | |
9685 | 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' | |
9686 | tmp_addflag=' $pic_flag' | |
9687 | ;; | |
9688 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9689 | # Portland Group f77 and f90 compilers | |
9690 | 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' | |
9691 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9692 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9693 | tmp_addflag=' -i_dynamic' ;; | |
9694 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9695 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9696 | ifc* | ifort*) # Intel Fortran compiler | |
9697 | tmp_addflag=' -nofor_main' ;; | |
9698 | lf95*) # Lahey Fortran 8.1 | |
9699 | whole_archive_flag_spec= | |
9700 | tmp_sharedflag='--shared' ;; | |
9701 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9702 | tmp_sharedflag='-qmkshrobj' | |
9703 | tmp_addflag= ;; | |
9704 | nvcc*) # Cuda Compiler Driver 2.2 | |
9705 | 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' | |
9706 | compiler_needs_object=yes | |
9707 | ;; | |
9708 | esac | |
9709 | case `$CC -V 2>&1 | sed 5q` in | |
9710 | *Sun\ C*) # Sun C 5.9 | |
9711 | 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' | |
9712 | compiler_needs_object=yes | |
9713 | tmp_sharedflag='-G' ;; | |
9714 | *Sun\ F*) # Sun Fortran 8.3 | |
9715 | tmp_sharedflag='-G' ;; | |
9716 | esac | |
9717 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9718 | ||
9719 | if test "x$supports_anon_versioning" = xyes; then | |
9720 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9721 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9722 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9723 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9724 | fi | |
9725 | ||
9726 | case $cc_basename in | |
9727 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9728 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9729 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9730 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9731 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9732 | if test "x$supports_anon_versioning" = xyes; then | |
9733 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9734 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9735 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9736 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9737 | fi | |
9738 | ;; | |
9739 | esac | |
9740 | else | |
9741 | ld_shlibs=no | |
9742 | fi | |
c52df125 | 9743 | ;; |
eec2776c AJ |
9744 | |
9745 | netbsd* | netbsdelf*-gnu) | |
9746 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9747 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9748 | wlarc= | |
c52df125 | 9749 | else |
eec2776c AJ |
9750 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9751 | 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 | 9752 | fi |
c52df125 | 9753 | ;; |
c52df125 | 9754 | |
eec2776c AJ |
9755 | solaris*) |
9756 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9757 | ld_shlibs=no | |
9758 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9759 | |
eec2776c AJ |
9760 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9761 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9762 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9763 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9764 | *** your PATH or compiler configuration so that the native linker is | |
9765 | *** used, and then restart. | |
c52df125 | 9766 | |
eec2776c AJ |
9767 | _LT_EOF |
9768 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9769 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9770 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9771 | else | |
9772 | ld_shlibs=no | |
9773 | fi | |
9774 | ;; | |
c52df125 | 9775 | |
eec2776c AJ |
9776 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9777 | case `$LD -v 2>&1` in | |
9778 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9779 | ld_shlibs=no | |
9780 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9781 | |
eec2776c AJ |
9782 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9783 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9784 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9785 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9786 | *** your PATH or compiler configuration so that the native linker is | |
9787 | *** used, and then restart. | |
c52df125 | 9788 | |
eec2776c AJ |
9789 | _LT_EOF |
9790 | ;; | |
9791 | *) | |
9792 | # For security reasons, it is highly recommended that you always | |
9793 | # use absolute paths for naming shared libraries, and exclude the | |
9794 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9795 | # requires that you compile everything twice, which is a pain. | |
9796 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9797 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9798 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9799 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9800 | else | |
9801 | ld_shlibs=no | |
9802 | fi | |
9803 | ;; | |
9804 | esac | |
c52df125 | 9805 | ;; |
eec2776c AJ |
9806 | |
9807 | sunos4*) | |
9808 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9809 | wlarc= | |
9810 | hardcode_direct=yes | |
9811 | hardcode_shlibpath_var=no | |
c52df125 | 9812 | ;; |
c52df125 | 9813 | |
eec2776c AJ |
9814 | *) |
9815 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9816 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9817 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9818 | else | |
9819 | ld_shlibs=no | |
9820 | fi | |
9821 | ;; | |
9822 | esac | |
c52df125 | 9823 | |
eec2776c AJ |
9824 | if test "$ld_shlibs" = no; then |
9825 | runpath_var= | |
9826 | hardcode_libdir_flag_spec= | |
9827 | export_dynamic_flag_spec= | |
9828 | whole_archive_flag_spec= | |
c52df125 | 9829 | fi |
eec2776c AJ |
9830 | else |
9831 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9832 | case $host_os in | |
9833 | aix3*) | |
9834 | allow_undefined_flag=unsupported | |
9835 | always_export_symbols=yes | |
9836 | 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' | |
9837 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9838 | # are no directories specified by -L. | |
9839 | hardcode_minus_L=yes | |
9840 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9841 | # Neither direct hardcoding nor static linking is supported with a | |
9842 | # broken collect2. | |
9843 | hardcode_direct=unsupported | |
9844 | fi | |
9845 | ;; | |
c52df125 | 9846 | |
eec2776c AJ |
9847 | aix[4-9]*) |
9848 | if test "$host_cpu" = ia64; then | |
9849 | # On IA64, the linker does run time linking by default, so we don't | |
9850 | # have to do anything special. | |
9851 | aix_use_runtimelinking=no | |
9852 | exp_sym_flag='-Bexport' | |
9853 | no_entry_flag="" | |
9854 | else | |
9855 | # If we're using GNU nm, then we don't want the "-C" option. | |
9856 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9857 | # Also, AIX nm treats weak defined symbols like other global | |
9858 | # defined symbols, whereas GNU nm marks them as "W". | |
9859 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9860 | 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 | 9861 | else |
eec2776c AJ |
9862 | 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' |
9863 | fi | |
9864 | aix_use_runtimelinking=no | |
c52df125 | 9865 | |
eec2776c AJ |
9866 | # Test if we are trying to use run time linking or normal |
9867 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9868 | # need to do runtime linking. | |
9869 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9870 | for ld_flag in $LDFLAGS; do | |
9871 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9872 | aix_use_runtimelinking=yes | |
9873 | break | |
9874 | fi | |
9875 | done | |
9876 | ;; | |
9877 | esac | |
c52df125 | 9878 | |
eec2776c AJ |
9879 | exp_sym_flag='-bexport' |
9880 | no_entry_flag='-bnoentry' | |
9881 | fi | |
c52df125 | 9882 | |
eec2776c AJ |
9883 | # When large executables or shared objects are built, AIX ld can |
9884 | # have problems creating the table of contents. If linking a library | |
9885 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9886 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9887 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
c52df125 | 9888 | |
eec2776c AJ |
9889 | archive_cmds='' |
9890 | hardcode_direct=yes | |
9891 | hardcode_direct_absolute=yes | |
9892 | hardcode_libdir_separator=':' | |
9893 | link_all_deplibs=yes | |
9894 | file_list_spec='${wl}-f,' | |
c52df125 | 9895 | |
eec2776c AJ |
9896 | if test "$GCC" = yes; then |
9897 | case $host_os in aix4.[012]|aix4.[012].*) | |
9898 | # We only want to do this on AIX 4.2 and lower, the check | |
9899 | # below for broken collect2 doesn't work under 4.3+ | |
9900 | collect2name=`${CC} -print-prog-name=collect2` | |
9901 | if test -f "$collect2name" && | |
9902 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9903 | then | |
9904 | # We have reworked collect2 | |
9905 | : | |
9906 | else | |
9907 | # We have old collect2 | |
9908 | hardcode_direct=unsupported | |
9909 | # It fails to find uninstalled libraries when the uninstalled | |
9910 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9911 | # to unsupported forces relinking | |
9912 | hardcode_minus_L=yes | |
9913 | hardcode_libdir_flag_spec='-L$libdir' | |
9914 | hardcode_libdir_separator= | |
9915 | fi | |
9916 | ;; | |
9917 | esac | |
9918 | shared_flag='-shared' | |
9919 | if test "$aix_use_runtimelinking" = yes; then | |
9920 | shared_flag="$shared_flag "'${wl}-G' | |
9921 | fi | |
9922 | link_all_deplibs=no | |
9923 | else | |
9924 | # not using gcc | |
9925 | if test "$host_cpu" = ia64; then | |
9926 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9927 | # chokes on -Wl,-G. The following line is correct: | |
9928 | shared_flag='-G' | |
9929 | else | |
9930 | if test "$aix_use_runtimelinking" = yes; then | |
9931 | shared_flag='${wl}-G' | |
9932 | else | |
9933 | shared_flag='${wl}-bM:SRE' | |
9934 | fi | |
9935 | fi | |
9936 | fi | |
9937 | ||
9938 | export_dynamic_flag_spec='${wl}-bexpall' | |
9939 | # It seems that -bexpall does not export symbols beginning with | |
9940 | # underscore (_), so it is better to generate a list of symbols to export. | |
9941 | always_export_symbols=yes | |
9942 | if test "$aix_use_runtimelinking" = yes; then | |
9943 | # Warning - without using the other runtime loading flags (-brtl), | |
9944 | # -berok will link without error, but may produce a broken library. | |
9945 | allow_undefined_flag='-berok' | |
9946 | # Determine the default libpath from the value encoded in an | |
9947 | # empty executable. | |
9948 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9949 | aix_libpath=$lt_cv_aix_libpath | |
9950 | else | |
9951 | if ${lt_cv_aix_libpath_+:} false; then : | |
9952 | $as_echo_n "(cached) " >&6 | |
9953 | else | |
9954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9955 | /* end confdefs.h. */ | |
9956 | ||
9957 | int | |
9958 | main () | |
9959 | { | |
9960 | ||
9961 | ; | |
9962 | return 0; | |
9963 | } | |
9964 | _ACEOF | |
c52df125 | 9965 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c AJ |
9966 | |
9967 | lt_aix_libpath_sed=' | |
9968 | /Import File Strings/,/^$/ { | |
9969 | /^0/ { | |
9970 | s/^0 *\([^ ]*\) *$/\1/ | |
9971 | p | |
9972 | } | |
9973 | }' | |
9974 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9975 | # Check for a 64-bit object if we didn't find anything. | |
9976 | if test -z "$lt_cv_aix_libpath_"; then | |
9977 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9978 | fi | |
c52df125 AC |
9979 | fi |
9980 | rm -f core conftest.err conftest.$ac_objext \ | |
9981 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
9982 | if test -z "$lt_cv_aix_libpath_"; then |
9983 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9984 | fi | |
c52df125 AC |
9985 | |
9986 | fi | |
9987 | ||
eec2776c AJ |
9988 | aix_libpath=$lt_cv_aix_libpath_ |
9989 | fi | |
c52df125 | 9990 | |
eec2776c AJ |
9991 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9992 | 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" | |
9993 | else | |
9994 | if test "$host_cpu" = ia64; then | |
9995 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9996 | allow_undefined_flag="-z nodefs" | |
9997 | 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" | |
9998 | else | |
9999 | # Determine the default libpath from the value encoded in an | |
10000 | # empty executable. | |
10001 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10002 | aix_libpath=$lt_cv_aix_libpath | |
10003 | else | |
10004 | if ${lt_cv_aix_libpath_+:} false; then : | |
10005 | $as_echo_n "(cached) " >&6 | |
10006 | else | |
10007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10008 | /* end confdefs.h. */ | |
c52df125 | 10009 | |
eec2776c AJ |
10010 | int |
10011 | main () | |
10012 | { | |
c52df125 | 10013 | |
eec2776c AJ |
10014 | ; |
10015 | return 0; | |
10016 | } | |
10017 | _ACEOF | |
10018 | if ac_fn_c_try_link "$LINENO"; then : | |
c52df125 | 10019 | |
eec2776c AJ |
10020 | lt_aix_libpath_sed=' |
10021 | /Import File Strings/,/^$/ { | |
10022 | /^0/ { | |
10023 | s/^0 *\([^ ]*\) *$/\1/ | |
10024 | p | |
10025 | } | |
10026 | }' | |
10027 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10028 | # Check for a 64-bit object if we didn't find anything. | |
10029 | if test -z "$lt_cv_aix_libpath_"; then | |
10030 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
c52df125 | 10031 | fi |
eec2776c AJ |
10032 | fi |
10033 | rm -f core conftest.err conftest.$ac_objext \ | |
10034 | conftest$ac_exeext conftest.$ac_ext | |
10035 | if test -z "$lt_cv_aix_libpath_"; then | |
10036 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
c52df125 | 10037 | fi |
c52df125 | 10038 | |
eec2776c | 10039 | fi |
c52df125 | 10040 | |
eec2776c AJ |
10041 | aix_libpath=$lt_cv_aix_libpath_ |
10042 | fi | |
c52df125 | 10043 | |
eec2776c AJ |
10044 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10045 | # Warning - without using the other run time loading flags, | |
10046 | # -berok will link without error, but may produce a broken library. | |
10047 | no_undefined_flag=' ${wl}-bernotok' | |
10048 | allow_undefined_flag=' ${wl}-berok' | |
10049 | if test "$with_gnu_ld" = yes; then | |
10050 | # We only use this code for GNU lds that support --whole-archive. | |
10051 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10052 | else | |
10053 | # Exported symbols can be pulled into shared objects from archives | |
10054 | whole_archive_flag_spec='$convenience' | |
10055 | fi | |
10056 | archive_cmds_need_lc=yes | |
10057 | # This is similar to how AIX traditionally builds its shared libraries. | |
10058 | 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' | |
10059 | fi | |
10060 | fi | |
c52df125 | 10061 | ;; |
eec2776c AJ |
10062 | |
10063 | amigaos*) | |
10064 | case $host_cpu in | |
10065 | powerpc) | |
10066 | # see comment about AmigaOS4 .so support | |
10067 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10068 | archive_expsym_cmds='' | |
10069 | ;; | |
10070 | m68k) | |
10071 | 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)' | |
10072 | hardcode_libdir_flag_spec='-L$libdir' | |
10073 | hardcode_minus_L=yes | |
10074 | ;; | |
10075 | esac | |
c52df125 | 10076 | ;; |
c52df125 | 10077 | |
eec2776c AJ |
10078 | bsdi[45]*) |
10079 | export_dynamic_flag_spec=-rdynamic | |
10080 | ;; | |
c52df125 | 10081 | |
eec2776c AJ |
10082 | cygwin* | mingw* | pw32* | cegcc*) |
10083 | # When not using gcc, we currently assume that we are using | |
10084 | # Microsoft Visual C++. | |
10085 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10086 | # no search path for DLLs. | |
10087 | case $cc_basename in | |
10088 | cl*) | |
10089 | # Native MSVC | |
10090 | hardcode_libdir_flag_spec=' ' | |
10091 | allow_undefined_flag=unsupported | |
10092 | always_export_symbols=yes | |
10093 | file_list_spec='@' | |
10094 | # Tell ltmain to make .lib files, not .a files. | |
10095 | libext=lib | |
10096 | # Tell ltmain to make .dll files, not .so files. | |
10097 | shrext_cmds=".dll" | |
10098 | # FIXME: Setting linknames here is a bad hack. | |
10099 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10100 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10101 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10102 | else | |
10103 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10104 | fi~ | |
10105 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10106 | linknames=' | |
10107 | # The linker will not automatically build a static lib if we build a DLL. | |
10108 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10109 | enable_shared_with_static_runtimes=yes | |
10110 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10111 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10112 | # Don't use ranlib | |
10113 | old_postinstall_cmds='chmod 644 $oldlib' | |
10114 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10115 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10116 | case $lt_outputfile in | |
10117 | *.exe|*.EXE) ;; | |
10118 | *) | |
10119 | lt_outputfile="$lt_outputfile.exe" | |
10120 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10121 | ;; | |
10122 | esac~ | |
10123 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10124 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10125 | $RM "$lt_outputfile.manifest"; | |
10126 | fi' | |
c52df125 | 10127 | ;; |
eec2776c AJ |
10128 | *) |
10129 | # Assume MSVC wrapper | |
10130 | hardcode_libdir_flag_spec=' ' | |
10131 | allow_undefined_flag=unsupported | |
10132 | # Tell ltmain to make .lib files, not .a files. | |
10133 | libext=lib | |
10134 | # Tell ltmain to make .dll files, not .so files. | |
10135 | shrext_cmds=".dll" | |
10136 | # FIXME: Setting linknames here is a bad hack. | |
10137 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10138 | # The linker will automatically build a .lib file if we build a DLL. | |
10139 | old_archive_from_new_cmds='true' | |
10140 | # FIXME: Should let the user specify the lib program. | |
10141 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10142 | enable_shared_with_static_runtimes=yes | |
10143 | ;; | |
10144 | esac | |
10145 | ;; | |
c52df125 | 10146 | |
eec2776c | 10147 | darwin* | rhapsody*) |
c52df125 AC |
10148 | |
10149 | ||
eec2776c AJ |
10150 | archive_cmds_need_lc=no |
10151 | hardcode_direct=no | |
10152 | hardcode_automatic=yes | |
10153 | hardcode_shlibpath_var=unsupported | |
10154 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10155 | 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 | 10156 | |
eec2776c AJ |
10157 | else |
10158 | whole_archive_flag_spec='' | |
10159 | fi | |
10160 | link_all_deplibs=yes | |
10161 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10162 | case $cc_basename in | |
10163 | ifort*) _lt_dar_can_shared=yes ;; | |
10164 | *) _lt_dar_can_shared=$GCC ;; | |
10165 | esac | |
10166 | if test "$_lt_dar_can_shared" = "yes"; then | |
10167 | output_verbose_link_cmd=func_echo_all | |
10168 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10169 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10170 | 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}" | |
10171 | 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 | 10172 | |
eec2776c AJ |
10173 | else |
10174 | ld_shlibs=no | |
10175 | fi | |
c52df125 | 10176 | |
eec2776c | 10177 | ;; |
c52df125 | 10178 | |
eec2776c AJ |
10179 | dgux*) |
10180 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10181 | hardcode_libdir_flag_spec='-L$libdir' | |
10182 | hardcode_shlibpath_var=no | |
10183 | ;; | |
c52df125 | 10184 | |
eec2776c AJ |
10185 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10186 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10187 | # does not break anything, and helps significantly (at the cost of a little | |
10188 | # extra space). | |
10189 | freebsd2.2*) | |
10190 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10191 | hardcode_libdir_flag_spec='-R$libdir' | |
10192 | hardcode_direct=yes | |
10193 | hardcode_shlibpath_var=no | |
10194 | ;; | |
c52df125 | 10195 | |
eec2776c AJ |
10196 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10197 | freebsd2.*) | |
10198 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10199 | hardcode_direct=yes | |
10200 | hardcode_minus_L=yes | |
10201 | hardcode_shlibpath_var=no | |
10202 | ;; | |
c52df125 | 10203 | |
eec2776c AJ |
10204 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10205 | freebsd* | dragonfly*) | |
10206 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10207 | hardcode_libdir_flag_spec='-R$libdir' | |
10208 | hardcode_direct=yes | |
10209 | hardcode_shlibpath_var=no | |
10210 | ;; | |
c52df125 | 10211 | |
eec2776c AJ |
10212 | hpux9*) |
10213 | if test "$GCC" = yes; then | |
10214 | 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' | |
10215 | else | |
10216 | 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' | |
10217 | fi | |
10218 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10219 | hardcode_libdir_separator=: | |
10220 | hardcode_direct=yes | |
c52df125 | 10221 | |
eec2776c AJ |
10222 | # hardcode_minus_L: Not really in the search PATH, |
10223 | # but as the default location of the library. | |
10224 | hardcode_minus_L=yes | |
10225 | export_dynamic_flag_spec='${wl}-E' | |
10226 | ;; | |
c52df125 | 10227 | |
eec2776c AJ |
10228 | hpux10*) |
10229 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10230 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10231 | else | |
10232 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10233 | fi | |
10234 | if test "$with_gnu_ld" = no; then | |
10235 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10236 | hardcode_libdir_separator=: | |
10237 | hardcode_direct=yes | |
10238 | hardcode_direct_absolute=yes | |
10239 | export_dynamic_flag_spec='${wl}-E' | |
10240 | # hardcode_minus_L: Not really in the search PATH, | |
10241 | # but as the default location of the library. | |
10242 | hardcode_minus_L=yes | |
10243 | fi | |
10244 | ;; | |
c52df125 | 10245 | |
eec2776c AJ |
10246 | hpux11*) |
10247 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10248 | case $host_cpu in | |
10249 | hppa*64*) | |
10250 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10251 | ;; | |
10252 | ia64*) | |
10253 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10254 | ;; | |
10255 | *) | |
10256 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10257 | ;; | |
10258 | esac | |
10259 | else | |
10260 | case $host_cpu in | |
10261 | hppa*64*) | |
10262 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10263 | ;; | |
10264 | ia64*) | |
10265 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10266 | ;; | |
10267 | *) | |
c52df125 | 10268 | |
eec2776c AJ |
10269 | # Older versions of the 11.00 compiler do not understand -b yet |
10270 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10272 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10273 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10274 | $as_echo_n "(cached) " >&6 | |
10275 | else | |
10276 | lt_cv_prog_compiler__b=no | |
10277 | save_LDFLAGS="$LDFLAGS" | |
10278 | LDFLAGS="$LDFLAGS -b" | |
10279 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10280 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10281 | # The linker can only warn and ignore the option if not recognized | |
10282 | # So say no if there are warnings | |
10283 | if test -s conftest.err; then | |
10284 | # Append any errors to the config.log. | |
10285 | cat conftest.err 1>&5 | |
10286 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10287 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10288 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10289 | lt_cv_prog_compiler__b=yes | |
10290 | fi | |
10291 | else | |
10292 | lt_cv_prog_compiler__b=yes | |
10293 | fi | |
10294 | fi | |
10295 | $RM -r conftest* | |
10296 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 10297 | |
eec2776c AJ |
10298 | fi |
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10300 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
c52df125 | 10301 | |
eec2776c AJ |
10302 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10303 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10304 | else | |
10305 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10306 | fi | |
c52df125 | 10307 | |
eec2776c AJ |
10308 | ;; |
10309 | esac | |
10310 | fi | |
10311 | if test "$with_gnu_ld" = no; then | |
10312 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10313 | hardcode_libdir_separator=: | |
c52df125 | 10314 | |
eec2776c AJ |
10315 | case $host_cpu in |
10316 | hppa*64*|ia64*) | |
10317 | hardcode_direct=no | |
10318 | hardcode_shlibpath_var=no | |
10319 | ;; | |
10320 | *) | |
10321 | hardcode_direct=yes | |
10322 | hardcode_direct_absolute=yes | |
10323 | export_dynamic_flag_spec='${wl}-E' | |
c52df125 | 10324 | |
eec2776c AJ |
10325 | # hardcode_minus_L: Not really in the search PATH, |
10326 | # but as the default location of the library. | |
10327 | hardcode_minus_L=yes | |
10328 | ;; | |
10329 | esac | |
10330 | fi | |
10331 | ;; | |
c52df125 | 10332 | |
eec2776c AJ |
10333 | irix5* | irix6* | nonstopux*) |
10334 | if test "$GCC" = yes; then | |
10335 | 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' | |
10336 | # Try to use the -exported_symbol ld option, if it does not | |
10337 | # work, assume that -exports_file does not work either and | |
10338 | # implicitly export all symbols. | |
10339 | # This should be the same for all languages, so no per-tag cache variable. | |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10341 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10342 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10343 | $as_echo_n "(cached) " >&6 | |
10344 | else | |
10345 | save_LDFLAGS="$LDFLAGS" | |
10346 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10348 | /* end confdefs.h. */ | |
10349 | int foo (void) { return 0; } | |
10350 | _ACEOF | |
10351 | if ac_fn_c_try_link "$LINENO"; then : | |
10352 | lt_cv_irix_exported_symbol=yes | |
10353 | else | |
10354 | lt_cv_irix_exported_symbol=no | |
10355 | fi | |
10356 | rm -f core conftest.err conftest.$ac_objext \ | |
10357 | conftest$ac_exeext conftest.$ac_ext | |
10358 | LDFLAGS="$save_LDFLAGS" | |
10359 | fi | |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10361 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10362 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10363 | 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' | |
10364 | fi | |
10365 | else | |
10366 | 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' | |
10367 | 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' | |
10368 | fi | |
10369 | archive_cmds_need_lc='no' | |
10370 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10371 | hardcode_libdir_separator=: | |
10372 | inherit_rpath=yes | |
10373 | link_all_deplibs=yes | |
10374 | ;; | |
c52df125 | 10375 | |
eec2776c AJ |
10376 | netbsd* | netbsdelf*-gnu) |
10377 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10378 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10379 | else | |
10380 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10381 | fi | |
10382 | hardcode_libdir_flag_spec='-R$libdir' | |
10383 | hardcode_direct=yes | |
10384 | hardcode_shlibpath_var=no | |
10385 | ;; | |
c52df125 | 10386 | |
eec2776c AJ |
10387 | newsos6) |
10388 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10389 | hardcode_direct=yes | |
10390 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10391 | hardcode_libdir_separator=: | |
10392 | hardcode_shlibpath_var=no | |
10393 | ;; | |
c52df125 | 10394 | |
eec2776c AJ |
10395 | *nto* | *qnx*) |
10396 | ;; | |
c52df125 | 10397 | |
eec2776c AJ |
10398 | openbsd*) |
10399 | if test -f /usr/libexec/ld.so; then | |
10400 | hardcode_direct=yes | |
10401 | hardcode_shlibpath_var=no | |
10402 | hardcode_direct_absolute=yes | |
10403 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10404 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10405 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10406 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10407 | export_dynamic_flag_spec='${wl}-E' | |
10408 | else | |
10409 | case $host_os in | |
10410 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10411 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10412 | hardcode_libdir_flag_spec='-R$libdir' | |
10413 | ;; | |
10414 | *) | |
10415 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10416 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10417 | ;; | |
10418 | esac | |
10419 | fi | |
10420 | else | |
10421 | ld_shlibs=no | |
10422 | fi | |
10423 | ;; | |
c52df125 | 10424 | |
eec2776c AJ |
10425 | os2*) |
10426 | hardcode_libdir_flag_spec='-L$libdir' | |
10427 | hardcode_minus_L=yes | |
10428 | allow_undefined_flag=unsupported | |
10429 | 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' | |
10430 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10431 | ;; | |
c52df125 | 10432 | |
eec2776c AJ |
10433 | osf3*) |
10434 | if test "$GCC" = yes; then | |
10435 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10436 | 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' | |
10437 | else | |
10438 | allow_undefined_flag=' -expect_unresolved \*' | |
10439 | 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' | |
10440 | fi | |
10441 | archive_cmds_need_lc='no' | |
10442 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10443 | hardcode_libdir_separator=: | |
10444 | ;; | |
c52df125 | 10445 | |
eec2776c AJ |
10446 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10447 | if test "$GCC" = yes; then | |
10448 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10449 | 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' | |
10450 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10451 | else | |
10452 | allow_undefined_flag=' -expect_unresolved \*' | |
10453 | 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' | |
10454 | 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~ | |
10455 | $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 | 10456 | |
eec2776c AJ |
10457 | # Both c and cxx compiler support -rpath directly |
10458 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10459 | fi | |
10460 | archive_cmds_need_lc='no' | |
10461 | hardcode_libdir_separator=: | |
10462 | ;; | |
c52df125 | 10463 | |
eec2776c AJ |
10464 | solaris*) |
10465 | no_undefined_flag=' -z defs' | |
10466 | if test "$GCC" = yes; then | |
10467 | wlarc='${wl}' | |
10468 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10469 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10470 | $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' | |
10471 | else | |
10472 | case `$CC -V 2>&1` in | |
10473 | *"Compilers 5.0"*) | |
10474 | wlarc='' | |
10475 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10476 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10477 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10478 | ;; | |
10479 | *) | |
10480 | wlarc='${wl}' | |
10481 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10482 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10483 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10484 | ;; | |
10485 | esac | |
10486 | fi | |
10487 | hardcode_libdir_flag_spec='-R$libdir' | |
10488 | hardcode_shlibpath_var=no | |
10489 | case $host_os in | |
10490 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10491 | *) | |
10492 | # The compiler driver will combine and reorder linker options, | |
10493 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10494 | # but is careful enough not to reorder. | |
10495 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10496 | if test "$GCC" = yes; then | |
10497 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10498 | else | |
10499 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10500 | fi | |
10501 | ;; | |
10502 | esac | |
10503 | link_all_deplibs=yes | |
10504 | ;; | |
c52df125 | 10505 | |
eec2776c AJ |
10506 | sunos4*) |
10507 | if test "x$host_vendor" = xsequent; then | |
10508 | # Use $CC to link under sequent, because it throws in some extra .o | |
10509 | # files that make .init and .fini sections work. | |
10510 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10511 | else | |
10512 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10513 | fi | |
10514 | hardcode_libdir_flag_spec='-L$libdir' | |
10515 | hardcode_direct=yes | |
10516 | hardcode_minus_L=yes | |
10517 | hardcode_shlibpath_var=no | |
10518 | ;; | |
c52df125 | 10519 | |
eec2776c AJ |
10520 | sysv4) |
10521 | case $host_vendor in | |
10522 | sni) | |
10523 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10524 | hardcode_direct=yes # is this really true??? | |
10525 | ;; | |
10526 | siemens) | |
10527 | ## LD is ld it makes a PLAMLIB | |
10528 | ## CC just makes a GrossModule. | |
10529 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10530 | reload_cmds='$CC -r -o $output$reload_objs' | |
10531 | hardcode_direct=no | |
10532 | ;; | |
10533 | motorola) | |
10534 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10535 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10536 | ;; | |
10537 | esac | |
10538 | runpath_var='LD_RUN_PATH' | |
10539 | hardcode_shlibpath_var=no | |
10540 | ;; | |
c52df125 | 10541 | |
eec2776c AJ |
10542 | sysv4.3*) |
10543 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10544 | hardcode_shlibpath_var=no | |
10545 | export_dynamic_flag_spec='-Bexport' | |
10546 | ;; | |
c52df125 | 10547 | |
eec2776c AJ |
10548 | sysv4*MP*) |
10549 | if test -d /usr/nec; then | |
10550 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10551 | hardcode_shlibpath_var=no | |
10552 | runpath_var=LD_RUN_PATH | |
10553 | hardcode_runpath_var=yes | |
10554 | ld_shlibs=yes | |
10555 | fi | |
10556 | ;; | |
c52df125 | 10557 | |
eec2776c AJ |
10558 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10559 | no_undefined_flag='${wl}-z,text' | |
10560 | archive_cmds_need_lc=no | |
10561 | hardcode_shlibpath_var=no | |
10562 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10563 | |
eec2776c AJ |
10564 | if test "$GCC" = yes; then |
10565 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10566 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10567 | else | |
10568 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10569 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10570 | fi | |
10571 | ;; | |
c52df125 | 10572 | |
eec2776c AJ |
10573 | sysv5* | sco3.2v5* | sco5v6*) |
10574 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10575 | # link with -lc, and that would cause any symbols used from libc to | |
10576 | # always be unresolved, which means just about no library would | |
10577 | # ever link correctly. If we're not using GNU ld we use -z text | |
10578 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10579 | # as -z defs. | |
10580 | no_undefined_flag='${wl}-z,text' | |
10581 | allow_undefined_flag='${wl}-z,nodefs' | |
10582 | archive_cmds_need_lc=no | |
10583 | hardcode_shlibpath_var=no | |
10584 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10585 | hardcode_libdir_separator=':' | |
10586 | link_all_deplibs=yes | |
10587 | export_dynamic_flag_spec='${wl}-Bexport' | |
10588 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10589 | |
eec2776c AJ |
10590 | if test "$GCC" = yes; then |
10591 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10592 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10593 | else | |
10594 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10595 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10596 | fi | |
10597 | ;; | |
c52df125 | 10598 | |
eec2776c AJ |
10599 | uts4*) |
10600 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10601 | hardcode_libdir_flag_spec='-L$libdir' | |
10602 | hardcode_shlibpath_var=no | |
10603 | ;; | |
c52df125 | 10604 | |
eec2776c AJ |
10605 | *) |
10606 | ld_shlibs=no | |
10607 | ;; | |
10608 | esac | |
c52df125 | 10609 | |
eec2776c AJ |
10610 | if test x$host_vendor = xsni; then |
10611 | case $host in | |
10612 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10613 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10614 | ;; | |
10615 | esac | |
10616 | fi | |
10617 | fi | |
c52df125 | 10618 | |
eec2776c AJ |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10620 | $as_echo "$ld_shlibs" >&6; } | |
10621 | test "$ld_shlibs" = no && can_build_shared=no | |
c52df125 | 10622 | |
eec2776c | 10623 | with_gnu_ld=$with_gnu_ld |
c52df125 AC |
10624 | |
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
eec2776c AJ |
10639 | # |
10640 | # Do we need to explicitly link libc? | |
10641 | # | |
10642 | case "x$archive_cmds_need_lc" in | |
10643 | x|xyes) | |
10644 | # Assume -lc should be added | |
10645 | archive_cmds_need_lc=yes | |
c52df125 | 10646 | |
eec2776c AJ |
10647 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10648 | case $archive_cmds in | |
10649 | *'~'*) | |
10650 | # FIXME: we may have to deal with multi-command sequences. | |
10651 | ;; | |
10652 | '$CC '*) | |
10653 | # Test whether the compiler implicitly links with -lc since on some | |
10654 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10655 | # to ld, don't add -lc before -lgcc. | |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10657 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10658 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10659 | $as_echo_n "(cached) " >&6 | |
10660 | else | |
10661 | $RM conftest* | |
10662 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 10663 | |
eec2776c AJ |
10664 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10665 | (eval $ac_compile) 2>&5 | |
10666 | ac_status=$? | |
10667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10668 | test $ac_status = 0; } 2>conftest.err; then | |
10669 | soname=conftest | |
10670 | lib=conftest | |
10671 | libobjs=conftest.$ac_objext | |
10672 | deplibs= | |
10673 | wl=$lt_prog_compiler_wl | |
10674 | pic_flag=$lt_prog_compiler_pic | |
10675 | compiler_flags=-v | |
10676 | linker_flags=-v | |
10677 | verstring= | |
10678 | output_objdir=. | |
10679 | libname=conftest | |
10680 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10681 | allow_undefined_flag= | |
10682 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10683 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10684 | ac_status=$? | |
10685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10686 | test $ac_status = 0; } | |
10687 | then | |
10688 | lt_cv_archive_cmds_need_lc=no | |
10689 | else | |
10690 | lt_cv_archive_cmds_need_lc=yes | |
10691 | fi | |
10692 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10693 | else | |
10694 | cat conftest.err 1>&5 | |
10695 | fi | |
10696 | $RM conftest* | |
c52df125 | 10697 | |
eec2776c AJ |
10698 | fi |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10700 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10701 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10702 | ;; | |
10703 | esac | |
10704 | fi | |
10705 | ;; | |
10706 | esac | |
c52df125 AC |
10707 | |
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
c52df125 | 10715 | |
c52df125 | 10716 | |
c52df125 AC |
10717 | |
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
c52df125 | 10723 | |
c52df125 | 10724 | |
c52df125 | 10725 | |
c52df125 | 10726 | |
c52df125 | 10727 | |
c52df125 | 10728 | |
c52df125 | 10729 | |
c52df125 | 10730 | |
c52df125 | 10731 | |
c52df125 | 10732 | |
c52df125 | 10733 | |
c52df125 | 10734 | |
eec2776c AJ |
10735 | |
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10860 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10861 | ||
10862 | if test "$GCC" = yes; then | |
10863 | case $host_os in | |
10864 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10865 | *) lt_awk_arg="/^libraries:/" ;; | |
10866 | esac | |
10867 | case $host_os in | |
10868 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10869 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10870 | esac | |
10871 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10872 | case $lt_search_path_spec in | |
10873 | *\;*) | |
10874 | # if the path contains ";" then we assume it to be the separator | |
10875 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10876 | # assumed that no part of a normal pathname contains ";" but that should | |
10877 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10878 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10879 | ;; | |
10880 | *) | |
10881 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10882 | ;; | |
10883 | esac | |
10884 | # Ok, now we have the path, separated by spaces, we can step through it | |
10885 | # and add multilib dir if necessary. | |
10886 | lt_tmp_lt_search_path_spec= | |
10887 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10888 | for lt_sys_path in $lt_search_path_spec; do | |
10889 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10890 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10891 | else | |
10892 | test -d "$lt_sys_path" && \ | |
10893 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10894 | fi | |
10895 | done | |
10896 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10897 | BEGIN {RS=" "; FS="/|\n";} { | |
10898 | lt_foo=""; | |
10899 | lt_count=0; | |
10900 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10901 | if ($lt_i != "" && $lt_i != ".") { | |
10902 | if ($lt_i == "..") { | |
10903 | lt_count++; | |
10904 | } else { | |
10905 | if (lt_count == 0) { | |
10906 | lt_foo="/" $lt_i lt_foo; | |
10907 | } else { | |
10908 | lt_count--; | |
10909 | } | |
10910 | } | |
10911 | } | |
10912 | } | |
10913 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10914 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10915 | }'` | |
10916 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10917 | # for these hosts. | |
10918 | case $host_os in | |
10919 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10920 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10921 | esac | |
10922 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10923 | else | |
10924 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10925 | fi | |
10926 | library_names_spec= | |
10927 | libname_spec='lib$name' | |
10928 | soname_spec= | |
10929 | shrext_cmds=".so" | |
10930 | postinstall_cmds= | |
10931 | postuninstall_cmds= | |
10932 | finish_cmds= | |
10933 | finish_eval= | |
10934 | shlibpath_var= | |
10935 | shlibpath_overrides_runpath=unknown | |
10936 | version_type=none | |
10937 | dynamic_linker="$host_os ld.so" | |
10938 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10939 | need_lib_prefix=unknown | |
10940 | hardcode_into_libs=no | |
10941 | ||
10942 | # when you set need_version to no, make sure it does not cause -set_version | |
10943 | # flags to be left without arguments | |
10944 | need_version=unknown | |
10945 | ||
10946 | case $host_os in | |
10947 | aix3*) | |
10948 | version_type=linux # correct to gnu/linux during the next big refactor | |
10949 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10950 | shlibpath_var=LIBPATH | |
10951 | ||
10952 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10953 | soname_spec='${libname}${release}${shared_ext}$major' | |
10954 | ;; | |
10955 | ||
10956 | aix[4-9]*) | |
10957 | version_type=linux # correct to gnu/linux during the next big refactor | |
10958 | need_lib_prefix=no | |
10959 | need_version=no | |
10960 | hardcode_into_libs=yes | |
10961 | if test "$host_cpu" = ia64; then | |
10962 | # AIX 5 supports IA64 | |
10963 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10964 | shlibpath_var=LD_LIBRARY_PATH | |
10965 | else | |
10966 | # With GCC up to 2.95.x, collect2 would create an import file | |
10967 | # for dependence libraries. The import file would start with | |
10968 | # the line `#! .'. This would cause the generated library to | |
10969 | # depend on `.', always an invalid library. This was fixed in | |
10970 | # development snapshots of GCC prior to 3.0. | |
10971 | case $host_os in | |
10972 | aix4 | aix4.[01] | aix4.[01].*) | |
10973 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10974 | echo ' yes ' | |
10975 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10976 | : | |
10977 | else | |
10978 | can_build_shared=no | |
10979 | fi | |
10980 | ;; | |
10981 | esac | |
10982 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10983 | # soname into executable. Probably we can add versioning support to | |
10984 | # collect2, so additional links can be useful in future. | |
10985 | if test "$aix_use_runtimelinking" = yes; then | |
10986 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10987 | # instead of lib<name>.a to let people know that these are not | |
10988 | # typical AIX shared libraries. | |
10989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10990 | else | |
10991 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10992 | # and later when we are not doing run time linking. | |
10993 | library_names_spec='${libname}${release}.a $libname.a' | |
10994 | soname_spec='${libname}${release}${shared_ext}$major' | |
10995 | fi | |
10996 | shlibpath_var=LIBPATH | |
10997 | fi | |
10998 | ;; | |
10999 | ||
11000 | amigaos*) | |
11001 | case $host_cpu in | |
11002 | powerpc) | |
11003 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11004 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11006 | ;; | |
11007 | m68k) | |
11008 | library_names_spec='$libname.ixlibrary $libname.a' | |
11009 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11010 | 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' | |
11011 | ;; | |
11012 | esac | |
11013 | ;; | |
11014 | ||
11015 | beos*) | |
11016 | library_names_spec='${libname}${shared_ext}' | |
11017 | dynamic_linker="$host_os ld.so" | |
11018 | shlibpath_var=LIBRARY_PATH | |
11019 | ;; | |
11020 | ||
11021 | bsdi[45]*) | |
11022 | version_type=linux # correct to gnu/linux during the next big refactor | |
11023 | need_version=no | |
11024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11025 | soname_spec='${libname}${release}${shared_ext}$major' | |
11026 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11027 | shlibpath_var=LD_LIBRARY_PATH | |
11028 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11029 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11030 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11031 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11032 | # libtool to hard-code these into programs | |
11033 | ;; | |
11034 | ||
11035 | cygwin* | mingw* | pw32* | cegcc*) | |
11036 | version_type=windows | |
11037 | shrext_cmds=".dll" | |
11038 | need_version=no | |
11039 | need_lib_prefix=no | |
11040 | ||
11041 | case $GCC,$cc_basename in | |
11042 | yes,*) | |
11043 | # gcc | |
11044 | library_names_spec='$libname.dll.a' | |
11045 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11046 | postinstall_cmds='base_file=`basename \${file}`~ | |
11047 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11048 | dldir=$destdir/`dirname \$dlpath`~ | |
11049 | test -d \$dldir || mkdir -p \$dldir~ | |
11050 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11051 | chmod a+x \$dldir/$dlname~ | |
11052 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11053 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11054 | fi' | |
11055 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11056 | dlpath=$dir/\$dldll~ | |
11057 | $RM \$dlpath' | |
11058 | shlibpath_overrides_runpath=yes | |
11059 | ||
11060 | case $host_os in | |
11061 | cygwin*) | |
11062 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11063 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11064 | ||
11065 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11066 | ;; | |
11067 | mingw* | cegcc*) | |
11068 | # MinGW DLLs use traditional 'lib' prefix | |
11069 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11070 | ;; | |
11071 | pw32*) | |
11072 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11073 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11074 | ;; | |
11075 | esac | |
11076 | dynamic_linker='Win32 ld.exe' | |
11077 | ;; | |
11078 | ||
11079 | *,cl*) | |
11080 | # Native MSVC | |
11081 | libname_spec='$name' | |
11082 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11083 | library_names_spec='${libname}.dll.lib' | |
11084 | ||
11085 | case $build_os in | |
11086 | mingw*) | |
11087 | sys_lib_search_path_spec= | |
11088 | lt_save_ifs=$IFS | |
11089 | IFS=';' | |
11090 | for lt_path in $LIB | |
11091 | do | |
11092 | IFS=$lt_save_ifs | |
11093 | # Let DOS variable expansion print the short 8.3 style file name. | |
11094 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11095 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11096 | done | |
11097 | IFS=$lt_save_ifs | |
11098 | # Convert to MSYS style. | |
11099 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11100 | ;; | |
11101 | cygwin*) | |
11102 | # Convert to unix form, then to dos form, then back to unix form | |
11103 | # but this time dos style (no spaces!) so that the unix form looks | |
11104 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11105 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11106 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11107 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11108 | ;; | |
11109 | *) | |
11110 | sys_lib_search_path_spec="$LIB" | |
11111 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11112 | # It is most probably a Windows format PATH. | |
11113 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11114 | else | |
11115 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11116 | fi | |
11117 | # FIXME: find the short name or the path components, as spaces are | |
11118 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11119 | ;; | |
11120 | esac | |
11121 | ||
11122 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11123 | postinstall_cmds='base_file=`basename \${file}`~ | |
11124 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11125 | dldir=$destdir/`dirname \$dlpath`~ | |
11126 | test -d \$dldir || mkdir -p \$dldir~ | |
11127 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11128 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11129 | dlpath=$dir/\$dldll~ | |
11130 | $RM \$dlpath' | |
11131 | shlibpath_overrides_runpath=yes | |
11132 | dynamic_linker='Win32 link.exe' | |
11133 | ;; | |
11134 | ||
11135 | *) | |
11136 | # Assume MSVC wrapper | |
11137 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11138 | dynamic_linker='Win32 ld.exe' | |
11139 | ;; | |
11140 | esac | |
11141 | # FIXME: first we should search . and the directory the executable is in | |
11142 | shlibpath_var=PATH | |
11143 | ;; | |
11144 | ||
11145 | darwin* | rhapsody*) | |
11146 | dynamic_linker="$host_os dyld" | |
11147 | version_type=darwin | |
11148 | need_lib_prefix=no | |
11149 | need_version=no | |
11150 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11151 | soname_spec='${libname}${release}${major}$shared_ext' | |
11152 | shlibpath_overrides_runpath=yes | |
11153 | shlibpath_var=DYLD_LIBRARY_PATH | |
11154 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11155 | ||
11156 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11157 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11158 | ;; | |
11159 | ||
11160 | dgux*) | |
11161 | version_type=linux # correct to gnu/linux during the next big refactor | |
11162 | need_lib_prefix=no | |
11163 | need_version=no | |
11164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11165 | soname_spec='${libname}${release}${shared_ext}$major' | |
11166 | shlibpath_var=LD_LIBRARY_PATH | |
11167 | ;; | |
11168 | ||
11169 | freebsd* | dragonfly*) | |
11170 | # DragonFly does not have aout. When/if they implement a new | |
11171 | # versioning mechanism, adjust this. | |
11172 | if test -x /usr/bin/objformat; then | |
11173 | objformat=`/usr/bin/objformat` | |
11174 | else | |
11175 | case $host_os in | |
11176 | freebsd[23].*) objformat=aout ;; | |
11177 | *) objformat=elf ;; | |
11178 | esac | |
11179 | fi | |
11180 | version_type=freebsd-$objformat | |
11181 | case $version_type in | |
11182 | freebsd-elf*) | |
11183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11184 | need_version=no | |
11185 | need_lib_prefix=no | |
11186 | ;; | |
11187 | freebsd-*) | |
11188 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11189 | need_version=yes | |
11190 | ;; | |
11191 | esac | |
11192 | shlibpath_var=LD_LIBRARY_PATH | |
11193 | case $host_os in | |
11194 | freebsd2.*) | |
11195 | shlibpath_overrides_runpath=yes | |
11196 | ;; | |
11197 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11198 | shlibpath_overrides_runpath=yes | |
11199 | hardcode_into_libs=yes | |
11200 | ;; | |
11201 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11202 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11203 | shlibpath_overrides_runpath=no | |
11204 | hardcode_into_libs=yes | |
11205 | ;; | |
11206 | *) # from 4.6 on, and DragonFly | |
11207 | shlibpath_overrides_runpath=yes | |
11208 | hardcode_into_libs=yes | |
11209 | ;; | |
11210 | esac | |
11211 | ;; | |
11212 | ||
11213 | haiku*) | |
11214 | version_type=linux # correct to gnu/linux during the next big refactor | |
11215 | need_lib_prefix=no | |
11216 | need_version=no | |
11217 | dynamic_linker="$host_os runtime_loader" | |
11218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11219 | soname_spec='${libname}${release}${shared_ext}$major' | |
11220 | shlibpath_var=LIBRARY_PATH | |
11221 | shlibpath_overrides_runpath=yes | |
11222 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11223 | hardcode_into_libs=yes | |
11224 | ;; | |
11225 | ||
11226 | hpux9* | hpux10* | hpux11*) | |
11227 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11228 | # link against other versions. | |
11229 | version_type=sunos | |
11230 | need_lib_prefix=no | |
11231 | need_version=no | |
11232 | case $host_cpu in | |
11233 | ia64*) | |
11234 | shrext_cmds='.so' | |
11235 | hardcode_into_libs=yes | |
11236 | dynamic_linker="$host_os dld.so" | |
11237 | shlibpath_var=LD_LIBRARY_PATH | |
11238 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11240 | soname_spec='${libname}${release}${shared_ext}$major' | |
11241 | if test "X$HPUX_IA64_MODE" = X32; then | |
11242 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11243 | else | |
11244 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11245 | fi | |
11246 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11247 | ;; | |
11248 | hppa*64*) | |
11249 | shrext_cmds='.sl' | |
11250 | hardcode_into_libs=yes | |
11251 | dynamic_linker="$host_os dld.sl" | |
11252 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11253 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11255 | soname_spec='${libname}${release}${shared_ext}$major' | |
11256 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11257 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11258 | ;; | |
11259 | *) | |
11260 | shrext_cmds='.sl' | |
11261 | dynamic_linker="$host_os dld.sl" | |
11262 | shlibpath_var=SHLIB_PATH | |
11263 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11265 | soname_spec='${libname}${release}${shared_ext}$major' | |
11266 | ;; | |
11267 | esac | |
11268 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11269 | postinstall_cmds='chmod 555 $lib' | |
11270 | # or fails outright, so override atomically: | |
11271 | install_override_mode=555 | |
11272 | ;; | |
11273 | ||
11274 | interix[3-9]*) | |
11275 | version_type=linux # correct to gnu/linux during the next big refactor | |
11276 | need_lib_prefix=no | |
11277 | need_version=no | |
11278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11279 | soname_spec='${libname}${release}${shared_ext}$major' | |
11280 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11281 | shlibpath_var=LD_LIBRARY_PATH | |
11282 | shlibpath_overrides_runpath=no | |
11283 | hardcode_into_libs=yes | |
11284 | ;; | |
11285 | ||
11286 | irix5* | irix6* | nonstopux*) | |
11287 | case $host_os in | |
11288 | nonstopux*) version_type=nonstopux ;; | |
11289 | *) | |
11290 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11291 | version_type=linux # correct to gnu/linux during the next big refactor | |
11292 | else | |
11293 | version_type=irix | |
11294 | fi ;; | |
11295 | esac | |
11296 | need_lib_prefix=no | |
11297 | need_version=no | |
11298 | soname_spec='${libname}${release}${shared_ext}$major' | |
11299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11300 | case $host_os in | |
11301 | irix5* | nonstopux*) | |
11302 | libsuff= shlibsuff= | |
11303 | ;; | |
11304 | *) | |
11305 | case $LD in # libtool.m4 will add one of these switches to LD | |
11306 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11307 | libsuff= shlibsuff= libmagic=32-bit;; | |
11308 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11309 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11310 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11311 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11312 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11313 | esac | |
11314 | ;; | |
11315 | esac | |
11316 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11317 | shlibpath_overrides_runpath=no | |
11318 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11319 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11320 | hardcode_into_libs=yes | |
11321 | ;; | |
11322 | ||
11323 | # No shared lib support for Linux oldld, aout, or coff. | |
11324 | linux*oldld* | linux*aout* | linux*coff*) | |
11325 | dynamic_linker=no | |
11326 | ;; | |
11327 | ||
11328 | # This must be glibc/ELF. | |
11329 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11330 | version_type=linux # correct to gnu/linux during the next big refactor | |
11331 | need_lib_prefix=no | |
11332 | need_version=no | |
11333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11334 | soname_spec='${libname}${release}${shared_ext}$major' | |
11335 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11336 | shlibpath_var=LD_LIBRARY_PATH | |
11337 | shlibpath_overrides_runpath=no | |
11338 | ||
11339 | # Some binutils ld are patched to set DT_RUNPATH | |
11340 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
c52df125 AC |
11341 | $as_echo_n "(cached) " >&6 |
11342 | else | |
eec2776c AJ |
11343 | lt_cv_shlibpath_overrides_runpath=no |
11344 | save_LDFLAGS=$LDFLAGS | |
11345 | save_libdir=$libdir | |
11346 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11347 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 AC |
11349 | /* end confdefs.h. */ |
11350 | ||
c52df125 AC |
11351 | int |
11352 | main () | |
11353 | { | |
eec2776c | 11354 | |
c52df125 AC |
11355 | ; |
11356 | return 0; | |
11357 | } | |
11358 | _ACEOF | |
11359 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c AJ |
11360 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11361 | lt_cv_shlibpath_overrides_runpath=yes | |
11362 | fi | |
c52df125 AC |
11363 | fi |
11364 | rm -f core conftest.err conftest.$ac_objext \ | |
11365 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
11366 | LDFLAGS=$save_LDFLAGS |
11367 | libdir=$save_libdir | |
c52df125 AC |
11368 | |
11369 | fi | |
11370 | ||
eec2776c | 11371 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
c52df125 | 11372 | |
eec2776c AJ |
11373 | # This implies no fast_install, which is unacceptable. |
11374 | # Some rework will be needed to allow for fast_install | |
11375 | # before this can be enabled. | |
11376 | hardcode_into_libs=yes | |
c52df125 | 11377 | |
eec2776c AJ |
11378 | # Append ld.so.conf contents to the search path |
11379 | if test -f /etc/ld.so.conf; then | |
11380 | 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' ' '` | |
11381 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11382 | fi | |
c52df125 | 11383 | |
eec2776c AJ |
11384 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11385 | # powerpc, because MkLinux only supported shared libraries with the | |
11386 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11387 | # most powerpc-linux boxes support dynamic linking these days and | |
11388 | # people can always --disable-shared, the test was removed, and we | |
11389 | # assume the GNU/Linux dynamic linker is in use. | |
11390 | dynamic_linker='GNU/Linux ld.so' | |
11391 | ;; | |
c52df125 | 11392 | |
eec2776c AJ |
11393 | netbsdelf*-gnu) |
11394 | version_type=linux | |
11395 | need_lib_prefix=no | |
11396 | need_version=no | |
11397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11398 | soname_spec='${libname}${release}${shared_ext}$major' | |
11399 | shlibpath_var=LD_LIBRARY_PATH | |
11400 | shlibpath_overrides_runpath=no | |
11401 | hardcode_into_libs=yes | |
11402 | dynamic_linker='NetBSD ld.elf_so' | |
11403 | ;; | |
c52df125 | 11404 | |
eec2776c AJ |
11405 | netbsd*) |
11406 | version_type=sunos | |
11407 | need_lib_prefix=no | |
11408 | need_version=no | |
11409 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11411 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11412 | dynamic_linker='NetBSD (a.out) ld.so' | |
11413 | else | |
11414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11415 | soname_spec='${libname}${release}${shared_ext}$major' | |
11416 | dynamic_linker='NetBSD ld.elf_so' | |
11417 | fi | |
11418 | shlibpath_var=LD_LIBRARY_PATH | |
11419 | shlibpath_overrides_runpath=yes | |
11420 | hardcode_into_libs=yes | |
11421 | ;; | |
c52df125 | 11422 | |
eec2776c AJ |
11423 | newsos6) |
11424 | version_type=linux # correct to gnu/linux during the next big refactor | |
11425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11426 | shlibpath_var=LD_LIBRARY_PATH | |
11427 | shlibpath_overrides_runpath=yes | |
11428 | ;; | |
c52df125 | 11429 | |
eec2776c AJ |
11430 | *nto* | *qnx*) |
11431 | version_type=qnx | |
11432 | need_lib_prefix=no | |
11433 | need_version=no | |
11434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11435 | soname_spec='${libname}${release}${shared_ext}$major' | |
11436 | shlibpath_var=LD_LIBRARY_PATH | |
11437 | shlibpath_overrides_runpath=no | |
11438 | hardcode_into_libs=yes | |
11439 | dynamic_linker='ldqnx.so' | |
11440 | ;; | |
c52df125 | 11441 | |
eec2776c AJ |
11442 | openbsd*) |
11443 | version_type=sunos | |
11444 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11445 | need_lib_prefix=no | |
11446 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11447 | case $host_os in | |
11448 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11449 | *) need_version=no ;; | |
c52df125 | 11450 | esac |
eec2776c AJ |
11451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11452 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11453 | shlibpath_var=LD_LIBRARY_PATH | |
11454 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11455 | case $host_os in | |
11456 | openbsd2.[89] | openbsd2.[89].*) | |
11457 | shlibpath_overrides_runpath=no | |
11458 | ;; | |
11459 | *) | |
11460 | shlibpath_overrides_runpath=yes | |
11461 | ;; | |
11462 | esac | |
c52df125 | 11463 | else |
eec2776c | 11464 | shlibpath_overrides_runpath=yes |
c52df125 | 11465 | fi |
eec2776c | 11466 | ;; |
c52df125 | 11467 | |
eec2776c AJ |
11468 | os2*) |
11469 | libname_spec='$name' | |
11470 | shrext_cmds=".dll" | |
11471 | need_lib_prefix=no | |
11472 | library_names_spec='$libname${shared_ext} $libname.a' | |
11473 | dynamic_linker='OS/2 ld.exe' | |
11474 | shlibpath_var=LIBPATH | |
11475 | ;; | |
c52df125 | 11476 | |
eec2776c AJ |
11477 | osf3* | osf4* | osf5*) |
11478 | version_type=osf | |
11479 | need_lib_prefix=no | |
11480 | need_version=no | |
11481 | soname_spec='${libname}${release}${shared_ext}$major' | |
11482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11483 | shlibpath_var=LD_LIBRARY_PATH | |
11484 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11485 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11486 | ;; | |
c52df125 | 11487 | |
eec2776c AJ |
11488 | rdos*) |
11489 | dynamic_linker=no | |
11490 | ;; | |
c52df125 | 11491 | |
eec2776c AJ |
11492 | solaris*) |
11493 | version_type=linux # correct to gnu/linux during the next big refactor | |
11494 | need_lib_prefix=no | |
11495 | need_version=no | |
11496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11497 | soname_spec='${libname}${release}${shared_ext}$major' | |
11498 | shlibpath_var=LD_LIBRARY_PATH | |
11499 | shlibpath_overrides_runpath=yes | |
11500 | hardcode_into_libs=yes | |
11501 | # ldd complains unless libraries are executable | |
11502 | postinstall_cmds='chmod +x $lib' | |
11503 | ;; | |
c52df125 | 11504 | |
eec2776c AJ |
11505 | sunos4*) |
11506 | version_type=sunos | |
11507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11508 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11509 | shlibpath_var=LD_LIBRARY_PATH | |
11510 | shlibpath_overrides_runpath=yes | |
11511 | if test "$with_gnu_ld" = yes; then | |
11512 | need_lib_prefix=no | |
11513 | fi | |
11514 | need_version=yes | |
11515 | ;; | |
c52df125 | 11516 | |
eec2776c AJ |
11517 | sysv4 | sysv4.3*) |
11518 | version_type=linux # correct to gnu/linux during the next big refactor | |
11519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11520 | soname_spec='${libname}${release}${shared_ext}$major' | |
11521 | shlibpath_var=LD_LIBRARY_PATH | |
11522 | case $host_vendor in | |
11523 | sni) | |
11524 | shlibpath_overrides_runpath=no | |
11525 | need_lib_prefix=no | |
11526 | runpath_var=LD_RUN_PATH | |
11527 | ;; | |
11528 | siemens) | |
11529 | need_lib_prefix=no | |
11530 | ;; | |
11531 | motorola) | |
11532 | need_lib_prefix=no | |
11533 | need_version=no | |
11534 | shlibpath_overrides_runpath=no | |
11535 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11536 | ;; | |
11537 | esac | |
11538 | ;; | |
c52df125 | 11539 | |
eec2776c AJ |
11540 | sysv4*MP*) |
11541 | if test -d /usr/nec ;then | |
11542 | version_type=linux # correct to gnu/linux during the next big refactor | |
11543 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11544 | soname_spec='$libname${shared_ext}.$major' | |
11545 | shlibpath_var=LD_LIBRARY_PATH | |
11546 | fi | |
11547 | ;; | |
c52df125 | 11548 | |
eec2776c AJ |
11549 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11550 | version_type=freebsd-elf | |
11551 | need_lib_prefix=no | |
11552 | need_version=no | |
11553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11554 | soname_spec='${libname}${release}${shared_ext}$major' | |
11555 | shlibpath_var=LD_LIBRARY_PATH | |
11556 | shlibpath_overrides_runpath=yes | |
11557 | hardcode_into_libs=yes | |
11558 | if test "$with_gnu_ld" = yes; then | |
11559 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
c52df125 | 11560 | else |
eec2776c AJ |
11561 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11562 | case $host_os in | |
11563 | sco3.2v5*) | |
11564 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11565 | ;; | |
c52df125 | 11566 | esac |
c52df125 | 11567 | fi |
eec2776c AJ |
11568 | sys_lib_dlsearch_path_spec='/usr/lib' |
11569 | ;; | |
c52df125 | 11570 | |
eec2776c AJ |
11571 | tpf*) |
11572 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11573 | version_type=linux # correct to gnu/linux during the next big refactor | |
11574 | need_lib_prefix=no | |
11575 | need_version=no | |
11576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11577 | shlibpath_var=LD_LIBRARY_PATH | |
11578 | shlibpath_overrides_runpath=no | |
11579 | hardcode_into_libs=yes | |
11580 | ;; | |
c52df125 | 11581 | |
eec2776c AJ |
11582 | uts4*) |
11583 | version_type=linux # correct to gnu/linux during the next big refactor | |
11584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11585 | soname_spec='${libname}${release}${shared_ext}$major' | |
11586 | shlibpath_var=LD_LIBRARY_PATH | |
11587 | ;; | |
c52df125 | 11588 | |
eec2776c AJ |
11589 | *) |
11590 | dynamic_linker=no | |
11591 | ;; | |
11592 | esac | |
11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11594 | $as_echo "$dynamic_linker" >&6; } | |
11595 | test "$dynamic_linker" = no && can_build_shared=no | |
c52df125 | 11596 | |
eec2776c AJ |
11597 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11598 | if test "$GCC" = yes; then | |
11599 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11600 | fi | |
c52df125 | 11601 | |
eec2776c AJ |
11602 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11603 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11604 | fi | |
11605 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11606 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11607 | fi | |
c52df125 | 11608 | |
c52df125 | 11609 | |
c52df125 | 11610 | |
c52df125 | 11611 | |
c52df125 | 11612 | |
c52df125 | 11613 | |
c52df125 AC |
11614 | |
11615 | ||
c52df125 | 11616 | |
c52df125 | 11617 | |
c52df125 | 11618 | |
c52df125 AC |
11619 | |
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
c52df125 AC |
11636 | |
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
c52df125 | 11648 | |
c52df125 | 11649 | |
c52df125 | 11650 | |
c52df125 | 11651 | |
c52df125 AC |
11652 | |
11653 | ||
11654 | ||
11655 | ||
c52df125 | 11656 | |
c52df125 AC |
11657 | |
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
c52df125 AC |
11672 | |
11673 | ||
11674 | ||
11675 | ||
c52df125 AC |
11676 | |
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
c52df125 | 11686 | |
c52df125 | 11687 | |
c52df125 | 11688 | |
c52df125 | 11689 | |
c52df125 | 11690 | |
c52df125 | 11691 | |
c52df125 | 11692 | |
c52df125 | 11693 | |
c52df125 | 11694 | |
c52df125 | 11695 | |
eec2776c AJ |
11696 | |
11697 | ||
11698 | ||
11699 | ||
11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11701 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11702 | hardcode_action= | |
11703 | if test -n "$hardcode_libdir_flag_spec" || | |
11704 | test -n "$runpath_var" || | |
11705 | test "X$hardcode_automatic" = "Xyes" ; then | |
11706 | ||
11707 | # We can hardcode non-existent directories. | |
11708 | if test "$hardcode_direct" != no && | |
11709 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11710 | # have to relink, otherwise we might link with an installed library | |
11711 | # when we should be linking with a yet-to-be-installed one | |
11712 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11713 | test "$hardcode_minus_L" != no; then | |
11714 | # Linking always hardcodes the temporary library directory. | |
11715 | hardcode_action=relink | |
11716 | else | |
11717 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11718 | hardcode_action=immediate | |
11719 | fi | |
c52df125 | 11720 | else |
eec2776c AJ |
11721 | # We cannot hardcode anything, or else we can only hardcode existing |
11722 | # directories. | |
11723 | hardcode_action=unsupported | |
c52df125 | 11724 | fi |
eec2776c AJ |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11726 | $as_echo "$hardcode_action" >&6; } | |
c52df125 | 11727 | |
eec2776c AJ |
11728 | if test "$hardcode_action" = relink || |
11729 | test "$inherit_rpath" = yes; then | |
11730 | # Fast installation is not supported | |
11731 | enable_fast_install=no | |
11732 | elif test "$shlibpath_overrides_runpath" = yes || | |
11733 | test "$enable_shared" = no; then | |
11734 | # Fast installation is not necessary | |
11735 | enable_fast_install=needless | |
c52df125 AC |
11736 | fi |
11737 | ||
11738 | ||
c52df125 AC |
11739 | |
11740 | ||
c52df125 AC |
11741 | |
11742 | ||
eec2776c AJ |
11743 | if test "x$enable_dlopen" != xyes; then |
11744 | enable_dlopen=unknown | |
11745 | enable_dlopen_self=unknown | |
11746 | enable_dlopen_self_static=unknown | |
11747 | else | |
11748 | lt_cv_dlopen=no | |
11749 | lt_cv_dlopen_libs= | |
11750 | ||
11751 | case $host_os in | |
11752 | beos*) | |
11753 | lt_cv_dlopen="load_add_on" | |
11754 | lt_cv_dlopen_libs= | |
11755 | lt_cv_dlopen_self=yes | |
11756 | ;; | |
11757 | ||
11758 | mingw* | pw32* | cegcc*) | |
11759 | lt_cv_dlopen="LoadLibrary" | |
11760 | lt_cv_dlopen_libs= | |
11761 | ;; | |
11762 | ||
11763 | cygwin*) | |
11764 | lt_cv_dlopen="dlopen" | |
11765 | lt_cv_dlopen_libs= | |
11766 | ;; | |
11767 | ||
11768 | darwin*) | |
11769 | # if libdl is installed we need to link against it | |
11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11771 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11772 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11773 | $as_echo_n "(cached) " >&6 |
11774 | else | |
eec2776c AJ |
11775 | ac_check_lib_save_LIBS=$LIBS |
11776 | LIBS="-ldl $LIBS" | |
c52df125 AC |
11777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11778 | /* end confdefs.h. */ | |
11779 | ||
11780 | /* Override any GCC internal prototype to avoid an error. | |
11781 | Use char because int might match the return type of a GCC | |
11782 | builtin and then its argument prototype would still apply. */ | |
11783 | #ifdef __cplusplus | |
11784 | extern "C" | |
11785 | #endif | |
11786 | char dlopen (); | |
11787 | int | |
11788 | main () | |
11789 | { | |
11790 | return dlopen (); | |
11791 | ; | |
11792 | return 0; | |
11793 | } | |
11794 | _ACEOF | |
eec2776c AJ |
11795 | if ac_fn_c_try_link "$LINENO"; then : |
11796 | ac_cv_lib_dl_dlopen=yes | |
11797 | else | |
11798 | ac_cv_lib_dl_dlopen=no | |
c52df125 AC |
11799 | fi |
11800 | rm -f core conftest.err conftest.$ac_objext \ | |
eec2776c AJ |
11801 | conftest$ac_exeext conftest.$ac_ext |
11802 | LIBS=$ac_check_lib_save_LIBS | |
c52df125 | 11803 | fi |
eec2776c AJ |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11805 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11806 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11807 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11808 | else |
eec2776c AJ |
11809 | |
11810 | lt_cv_dlopen="dyld" | |
11811 | lt_cv_dlopen_libs= | |
11812 | lt_cv_dlopen_self=yes | |
11813 | ||
c52df125 | 11814 | fi |
c52df125 | 11815 | |
eec2776c | 11816 | ;; |
c52df125 | 11817 | |
eec2776c AJ |
11818 | *) |
11819 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11820 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11821 | lt_cv_dlopen="shl_load" | |
c52df125 | 11822 | else |
eec2776c AJ |
11823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11824 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11825 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11826 | $as_echo_n "(cached) " >&6 | |
11827 | else | |
11828 | ac_check_lib_save_LIBS=$LIBS | |
11829 | LIBS="-ldld $LIBS" | |
11830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 11831 | /* end confdefs.h. */ |
c52df125 | 11832 | |
eec2776c AJ |
11833 | /* Override any GCC internal prototype to avoid an error. |
11834 | Use char because int might match the return type of a GCC | |
11835 | builtin and then its argument prototype would still apply. */ | |
11836 | #ifdef __cplusplus | |
11837 | extern "C" | |
11838 | #endif | |
11839 | char shl_load (); | |
c52df125 AC |
11840 | int |
11841 | main () | |
11842 | { | |
eec2776c | 11843 | return shl_load (); |
c52df125 AC |
11844 | ; |
11845 | return 0; | |
eec2776c AJ |
11846 | } |
11847 | _ACEOF | |
11848 | if ac_fn_c_try_link "$LINENO"; then : | |
11849 | ac_cv_lib_dld_shl_load=yes | |
c52df125 | 11850 | else |
eec2776c AJ |
11851 | ac_cv_lib_dld_shl_load=no |
11852 | fi | |
11853 | rm -f core conftest.err conftest.$ac_objext \ | |
11854 | conftest$ac_exeext conftest.$ac_ext | |
11855 | LIBS=$ac_check_lib_save_LIBS | |
11856 | fi | |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11858 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11859 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11860 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11861 | else | |
11862 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11863 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11864 | lt_cv_dlopen="dlopen" | |
11865 | else | |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11867 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11868 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11869 | $as_echo_n "(cached) " >&6 |
11870 | else | |
11871 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11872 | LIBS="-ldl $LIBS" |
c52df125 AC |
11873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11874 | /* end confdefs.h. */ | |
11875 | ||
11876 | /* Override any GCC internal prototype to avoid an error. | |
11877 | Use char because int might match the return type of a GCC | |
11878 | builtin and then its argument prototype would still apply. */ | |
11879 | #ifdef __cplusplus | |
11880 | extern "C" | |
11881 | #endif | |
11882 | char dlopen (); | |
11883 | int | |
11884 | main () | |
11885 | { | |
11886 | return dlopen (); | |
11887 | ; | |
11888 | return 0; | |
11889 | } | |
11890 | _ACEOF | |
11891 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c | 11892 | ac_cv_lib_dl_dlopen=yes |
c52df125 | 11893 | else |
eec2776c | 11894 | ac_cv_lib_dl_dlopen=no |
7083c021 | 11895 | fi |
c52df125 AC |
11896 | rm -f core conftest.err conftest.$ac_objext \ |
11897 | conftest$ac_exeext conftest.$ac_ext | |
11898 | LIBS=$ac_check_lib_save_LIBS | |
11899 | fi | |
eec2776c AJ |
11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11901 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11902 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11903 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11904 | else |
eec2776c AJ |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11906 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11907 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 AC |
11908 | $as_echo_n "(cached) " >&6 |
11909 | else | |
11910 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11911 | LIBS="-lsvld $LIBS" |
7083c021 AC |
11912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11913 | /* end confdefs.h. */ | |
6fb6bd15 | 11914 | |
c52df125 AC |
11915 | /* Override any GCC internal prototype to avoid an error. |
11916 | Use char because int might match the return type of a GCC | |
11917 | builtin and then its argument prototype would still apply. */ | |
11918 | #ifdef __cplusplus | |
11919 | extern "C" | |
11920 | #endif | |
eec2776c | 11921 | char dlopen (); |
212380e3 | 11922 | int |
7083c021 | 11923 | main () |
212380e3 | 11924 | { |
eec2776c | 11925 | return dlopen (); |
7083c021 AC |
11926 | ; |
11927 | return 0; | |
212380e3 AC |
11928 | } |
11929 | _ACEOF | |
c52df125 | 11930 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 11931 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 11932 | else |
eec2776c | 11933 | ac_cv_lib_svld_dlopen=no |
c52df125 AC |
11934 | fi |
11935 | rm -f core conftest.err conftest.$ac_objext \ | |
11936 | conftest$ac_exeext conftest.$ac_ext | |
11937 | LIBS=$ac_check_lib_save_LIBS | |
11938 | fi | |
eec2776c AJ |
11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11940 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11941 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11942 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
6fb6bd15 | 11943 | else |
eec2776c | 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
c52df125 AC |
11945 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
11946 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11947 | $as_echo_n "(cached) " >&6 | |
11948 | else | |
11949 | ac_check_lib_save_LIBS=$LIBS | |
11950 | LIBS="-ldld $LIBS" | |
6fb6bd15 AC |
11951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11952 | /* end confdefs.h. */ | |
c52df125 AC |
11953 | |
11954 | /* Override any GCC internal prototype to avoid an error. | |
11955 | Use char because int might match the return type of a GCC | |
11956 | builtin and then its argument prototype would still apply. */ | |
11957 | #ifdef __cplusplus | |
11958 | extern "C" | |
11959 | #endif | |
11960 | char dld_link (); | |
6fb6bd15 AC |
11961 | int |
11962 | main () | |
11963 | { | |
c52df125 | 11964 | return dld_link (); |
6fb6bd15 AC |
11965 | ; |
11966 | return 0; | |
11967 | } | |
11968 | _ACEOF | |
c52df125 AC |
11969 | if ac_fn_c_try_link "$LINENO"; then : |
11970 | ac_cv_lib_dld_dld_link=yes | |
11971 | else | |
11972 | ac_cv_lib_dld_dld_link=no | |
11973 | fi | |
11974 | rm -f core conftest.err conftest.$ac_objext \ | |
11975 | conftest$ac_exeext conftest.$ac_ext | |
11976 | LIBS=$ac_check_lib_save_LIBS | |
11977 | fi | |
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11979 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11980 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
eec2776c AJ |
11981 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11982 | fi | |
c52df125 | 11983 | |
c52df125 | 11984 | |
c52df125 AC |
11985 | fi |
11986 | ||
11987 | ||
eec2776c | 11988 | fi |
c52df125 AC |
11989 | |
11990 | ||
eec2776c | 11991 | fi |
c52df125 | 11992 | |
c52df125 AC |
11993 | |
11994 | fi | |
11995 | ||
11996 | ||
eec2776c AJ |
11997 | fi |
11998 | ||
11999 | ;; | |
12000 | esac | |
c52df125 | 12001 | |
eec2776c AJ |
12002 | if test "x$lt_cv_dlopen" != xno; then |
12003 | enable_dlopen=yes | |
12004 | else | |
12005 | enable_dlopen=no | |
12006 | fi | |
c52df125 | 12007 | |
eec2776c AJ |
12008 | case $lt_cv_dlopen in |
12009 | dlopen) | |
12010 | save_CPPFLAGS="$CPPFLAGS" | |
12011 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12012 | ||
12013 | save_LDFLAGS="$LDFLAGS" | |
12014 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12015 | ||
12016 | save_LIBS="$LIBS" | |
12017 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12018 | ||
12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12020 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12021 | if ${lt_cv_dlopen_self+:} false; then : | |
12022 | $as_echo_n "(cached) " >&6 | |
12023 | else | |
12024 | if test "$cross_compiling" = yes; then : | |
12025 | lt_cv_dlopen_self=cross | |
12026 | else | |
12027 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12028 | lt_status=$lt_dlunknown | |
12029 | cat > conftest.$ac_ext <<_LT_EOF | |
12030 | #line $LINENO "configure" | |
12031 | #include "confdefs.h" | |
12032 | ||
12033 | #if HAVE_DLFCN_H | |
12034 | #include <dlfcn.h> | |
12035 | #endif | |
12036 | ||
12037 | #include <stdio.h> | |
12038 | ||
12039 | #ifdef RTLD_GLOBAL | |
12040 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12041 | #else | |
12042 | # ifdef DL_GLOBAL | |
12043 | # define LT_DLGLOBAL DL_GLOBAL | |
12044 | # else | |
12045 | # define LT_DLGLOBAL 0 | |
12046 | # endif | |
12047 | #endif | |
12048 | ||
12049 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12050 | find out it does not work in some platform. */ | |
12051 | #ifndef LT_DLLAZY_OR_NOW | |
12052 | # ifdef RTLD_LAZY | |
12053 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12054 | # else | |
12055 | # ifdef DL_LAZY | |
12056 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12057 | # else | |
12058 | # ifdef RTLD_NOW | |
12059 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12060 | # else | |
12061 | # ifdef DL_NOW | |
12062 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12063 | # else | |
12064 | # define LT_DLLAZY_OR_NOW 0 | |
12065 | # endif | |
12066 | # endif | |
12067 | # endif | |
12068 | # endif | |
12069 | #endif | |
12070 | ||
12071 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12072 | correspondingly for the symbols needed. */ | |
12073 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12074 | int fnord () __attribute__((visibility("default"))); | |
12075 | #endif | |
12076 | ||
12077 | int fnord () { return 42; } | |
12078 | int main () | |
12079 | { | |
12080 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12081 | int status = $lt_dlunknown; | |
c52df125 | 12082 | |
eec2776c AJ |
12083 | if (self) |
12084 | { | |
12085 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12086 | else | |
12087 | { | |
12088 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12089 | else puts (dlerror ()); | |
12090 | } | |
12091 | /* dlclose (self); */ | |
12092 | } | |
12093 | else | |
12094 | puts (dlerror ()); | |
c52df125 | 12095 | |
eec2776c AJ |
12096 | return status; |
12097 | } | |
c52df125 | 12098 | _LT_EOF |
eec2776c AJ |
12099 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12100 | (eval $ac_link) 2>&5 | |
6fb6bd15 AC |
12101 | ac_status=$? |
12102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
12103 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12104 | (./conftest; exit; ) >&5 2>/dev/null | |
12105 | lt_status=$? | |
12106 | case x$lt_status in | |
12107 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12108 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12109 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12110 | esac | |
12111 | else : | |
12112 | # compilation failed | |
12113 | lt_cv_dlopen_self=no | |
6fb6bd15 AC |
12114 | fi |
12115 | fi | |
eec2776c | 12116 | rm -fr conftest* |
6fb6bd15 | 12117 | |
c52df125 | 12118 | |
eec2776c AJ |
12119 | fi |
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12121 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12122 | ||
12123 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12124 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12126 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12127 | if ${lt_cv_dlopen_self_static+:} false; then : | |
7083c021 AC |
12128 | $as_echo_n "(cached) " >&6 |
12129 | else | |
eec2776c AJ |
12130 | if test "$cross_compiling" = yes; then : |
12131 | lt_cv_dlopen_self_static=cross | |
c52df125 AC |
12132 | else |
12133 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12134 | lt_status=$lt_dlunknown | |
12135 | cat > conftest.$ac_ext <<_LT_EOF | |
12136 | #line $LINENO "configure" | |
12137 | #include "confdefs.h" | |
212380e3 | 12138 | |
c52df125 AC |
12139 | #if HAVE_DLFCN_H |
12140 | #include <dlfcn.h> | |
12141 | #endif | |
12142 | ||
12143 | #include <stdio.h> | |
12144 | ||
12145 | #ifdef RTLD_GLOBAL | |
12146 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12147 | #else | |
12148 | # ifdef DL_GLOBAL | |
12149 | # define LT_DLGLOBAL DL_GLOBAL | |
12150 | # else | |
12151 | # define LT_DLGLOBAL 0 | |
12152 | # endif | |
12153 | #endif | |
12154 | ||
12155 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12156 | find out it does not work in some platform. */ | |
12157 | #ifndef LT_DLLAZY_OR_NOW | |
12158 | # ifdef RTLD_LAZY | |
12159 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12160 | # else | |
12161 | # ifdef DL_LAZY | |
12162 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12163 | # else | |
12164 | # ifdef RTLD_NOW | |
12165 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12166 | # else | |
12167 | # ifdef DL_NOW | |
12168 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12169 | # else | |
12170 | # define LT_DLLAZY_OR_NOW 0 | |
12171 | # endif | |
12172 | # endif | |
12173 | # endif | |
12174 | # endif | |
12175 | #endif | |
12176 | ||
12177 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12178 | correspondingly for the symbols needed. */ | |
12179 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12180 | int fnord () __attribute__((visibility("default"))); | |
12181 | #endif | |
12182 | ||
12183 | int fnord () { return 42; } | |
12184 | int main () | |
7083c021 | 12185 | { |
c52df125 AC |
12186 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12187 | int status = $lt_dlunknown; | |
7083c021 | 12188 | |
c52df125 AC |
12189 | if (self) |
12190 | { | |
12191 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12192 | else | |
12193 | { | |
12194 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12195 | else puts (dlerror ()); | |
12196 | } | |
12197 | /* dlclose (self); */ | |
12198 | } | |
12199 | else | |
12200 | puts (dlerror ()); | |
12201 | ||
12202 | return status; | |
7083c021 | 12203 | } |
c52df125 AC |
12204 | _LT_EOF |
12205 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12206 | (eval $ac_link) 2>&5 | |
212380e3 | 12207 | ac_status=$? |
7083c021 | 12208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c52df125 AC |
12209 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12210 | (./conftest; exit; ) >&5 2>/dev/null | |
12211 | lt_status=$? | |
12212 | case x$lt_status in | |
eec2776c AJ |
12213 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12214 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12215 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
c52df125 AC |
12216 | esac |
12217 | else : | |
12218 | # compilation failed | |
eec2776c | 12219 | lt_cv_dlopen_self_static=no |
c52df125 | 12220 | fi |
7083c021 | 12221 | fi |
c52df125 AC |
12222 | rm -fr conftest* |
12223 | ||
c52df125 | 12224 | |
212380e3 | 12225 | fi |
eec2776c AJ |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12227 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12228 | fi | |
c52df125 | 12229 | |
eec2776c AJ |
12230 | CPPFLAGS="$save_CPPFLAGS" |
12231 | LDFLAGS="$save_LDFLAGS" | |
12232 | LIBS="$save_LIBS" | |
12233 | ;; | |
12234 | esac | |
c52df125 | 12235 | |
eec2776c AJ |
12236 | case $lt_cv_dlopen_self in |
12237 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12238 | *) enable_dlopen_self=unknown ;; | |
12239 | esac | |
c52df125 | 12240 | |
eec2776c AJ |
12241 | case $lt_cv_dlopen_self_static in |
12242 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12243 | *) enable_dlopen_self_static=unknown ;; | |
12244 | esac | |
c52df125 AC |
12245 | fi |
12246 | ||
eec2776c AJ |
12247 | |
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | striplib= | |
12264 | old_striplib= | |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12266 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12267 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12268 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12269 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12271 | $as_echo "yes" >&6; } | |
7083c021 | 12272 | else |
eec2776c | 12273 | # FIXME - insert some real tests, host_os isn't really good enough |
c52df125 | 12274 | case $host_os in |
c52df125 | 12275 | darwin*) |
eec2776c AJ |
12276 | if test -n "$STRIP" ; then |
12277 | striplib="$STRIP -x" | |
12278 | old_striplib="$STRIP -S" | |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12280 | $as_echo "yes" >&6; } | |
12281 | else | |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12283 | $as_echo "no" >&6; } | |
12284 | fi | |
c52df125 | 12285 | ;; |
eec2776c AJ |
12286 | *) |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12288 | $as_echo "no" >&6; } | |
c52df125 | 12289 | ;; |
eec2776c AJ |
12290 | esac |
12291 | fi | |
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | # Report which library types will actually be built | |
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12306 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12308 | $as_echo "$can_build_shared" >&6; } | |
12309 | ||
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12311 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12312 | test "$can_build_shared" = "no" && enable_shared=no | |
12313 | ||
12314 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12315 | # are all built from PIC. | |
12316 | case $host_os in | |
12317 | aix3*) | |
12318 | test "$enable_shared" = yes && enable_static=no | |
12319 | if test -n "$RANLIB"; then | |
12320 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12321 | postinstall_cmds='$RANLIB $lib' | |
12322 | fi | |
c52df125 | 12323 | ;; |
eec2776c AJ |
12324 | |
12325 | aix[4-9]*) | |
12326 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12327 | test "$enable_shared" = yes && enable_static=no | |
12328 | fi | |
c52df125 AC |
12329 | ;; |
12330 | esac | |
eec2776c AJ |
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12332 | $as_echo "$enable_shared" >&6; } | |
12333 | ||
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12335 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12336 | # Make sure either enable_shared or enable_static is yes. | |
12337 | test "$enable_shared" = yes || enable_static=yes | |
12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12339 | $as_echo "$enable_static" >&6; } | |
12340 | ||
212380e3 | 12341 | |
c52df125 | 12342 | |
c52df125 AC |
12343 | |
12344 | fi | |
eec2776c AJ |
12345 | ac_ext=c |
12346 | ac_cpp='$CPP $CPPFLAGS' | |
12347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 12350 | |
eec2776c | 12351 | CC="$lt_save_CC" |
c52df125 | 12352 | |
c52df125 | 12353 | |
c52df125 | 12354 | |
c52df125 AC |
12355 | |
12356 | ||
212380e3 | 12357 | |
c52df125 AC |
12358 | |
12359 | ||
c52df125 | 12360 | |
c52df125 AC |
12361 | |
12362 | ||
7083c021 | 12363 | |
c52df125 AC |
12364 | |
12365 | ||
c52df125 | 12366 | |
eec2776c | 12367 | ac_config_commands="$ac_config_commands libtool" |
c52df125 | 12368 | |
c52df125 | 12369 | |
c52df125 AC |
12370 | |
12371 | ||
eec2776c | 12372 | # Only expand once: |
212380e3 | 12373 | |
631ef239 | 12374 | |
c52df125 AC |
12375 | |
12376 | ||
c52df125 | 12377 | |
c52df125 AC |
12378 | |
12379 | ||
12380 | ||
eec2776c AJ |
12381 | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12383 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12384 | if ${libltdl_cv_shlibext+:} false; then : | |
c52df125 AC |
12385 | $as_echo_n "(cached) " >&6 |
12386 | else | |
eec2776c AJ |
12387 | |
12388 | module=yes | |
12389 | eval libltdl_cv_shlibext=$shrext_cmds | |
12390 | module=no | |
12391 | eval libltdl_cv_shrext=$shrext_cmds | |
c52df125 AC |
12392 | |
12393 | fi | |
eec2776c AJ |
12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
12395 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12396 | if test -n "$libltdl_cv_shlibext"; then | |
c52df125 | 12397 | |
eec2776c AJ |
12398 | cat >>confdefs.h <<_ACEOF |
12399 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12400 | _ACEOF | |
c52df125 AC |
12401 | |
12402 | fi | |
eec2776c | 12403 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
c52df125 | 12404 | |
eec2776c AJ |
12405 | cat >>confdefs.h <<_ACEOF |
12406 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12407 | _ACEOF | |
c52df125 | 12408 | |
eec2776c | 12409 | fi |
c52df125 | 12410 | |
eec2776c AJ |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
12412 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12413 | if ${lt_cv_module_path_var+:} false; then : | |
12414 | $as_echo_n "(cached) " >&6 | |
12415 | else | |
12416 | lt_cv_module_path_var="$shlibpath_var" | |
12417 | fi | |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12419 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12420 | if test -n "$lt_cv_module_path_var"; then | |
12421 | ||
12422 | cat >>confdefs.h <<_ACEOF | |
12423 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12424 | _ACEOF | |
c52df125 | 12425 | |
eec2776c | 12426 | fi |
c52df125 | 12427 | |
eec2776c AJ |
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
12429 | $as_echo_n "checking for the default library search path... " >&6; } | |
12430 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12431 | $as_echo_n "(cached) " >&6 | |
12432 | else | |
12433 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12434 | fi | |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12436 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12437 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12438 | sys_dlsearch_path= | |
12439 | for dir in $lt_cv_sys_dlsearch_path; do | |
12440 | if test -z "$sys_dlsearch_path"; then | |
12441 | sys_dlsearch_path="$dir" | |
12442 | else | |
12443 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12444 | fi | |
12445 | done | |
c52df125 | 12446 | |
eec2776c AJ |
12447 | cat >>confdefs.h <<_ACEOF |
12448 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12449 | _ACEOF | |
c52df125 | 12450 | |
eec2776c | 12451 | fi |
c52df125 AC |
12452 | |
12453 | ||
eec2776c | 12454 | LT_DLLOADERS= |
c52df125 AC |
12455 | |
12456 | ||
eec2776c AJ |
12457 | ac_ext=c |
12458 | ac_cpp='$CPP $CPPFLAGS' | |
12459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12462 | |
12463 | ||
eec2776c AJ |
12464 | LIBADD_DLOPEN= |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12466 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12467 | if ${ac_cv_search_dlopen+:} false; then : | |
12468 | $as_echo_n "(cached) " >&6 | |
12469 | else | |
12470 | ac_func_search_save_LIBS=$LIBS | |
12471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12472 | /* end confdefs.h. */ | |
c52df125 | 12473 | |
eec2776c AJ |
12474 | /* Override any GCC internal prototype to avoid an error. |
12475 | Use char because int might match the return type of a GCC | |
12476 | builtin and then its argument prototype would still apply. */ | |
12477 | #ifdef __cplusplus | |
12478 | extern "C" | |
12479 | #endif | |
12480 | char dlopen (); | |
12481 | int | |
12482 | main () | |
12483 | { | |
12484 | return dlopen (); | |
12485 | ; | |
12486 | return 0; | |
12487 | } | |
12488 | _ACEOF | |
12489 | for ac_lib in '' dl; do | |
12490 | if test -z "$ac_lib"; then | |
12491 | ac_res="none required" | |
12492 | else | |
12493 | ac_res=-l$ac_lib | |
12494 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12495 | fi | |
12496 | if ac_fn_c_try_link "$LINENO"; then : | |
12497 | ac_cv_search_dlopen=$ac_res | |
12498 | fi | |
12499 | rm -f core conftest.err conftest.$ac_objext \ | |
12500 | conftest$ac_exeext | |
12501 | if ${ac_cv_search_dlopen+:} false; then : | |
12502 | break | |
12503 | fi | |
12504 | done | |
12505 | if ${ac_cv_search_dlopen+:} false; then : | |
c52df125 | 12506 | |
eec2776c AJ |
12507 | else |
12508 | ac_cv_search_dlopen=no | |
12509 | fi | |
12510 | rm conftest.$ac_ext | |
12511 | LIBS=$ac_func_search_save_LIBS | |
c52df125 | 12512 | fi |
eec2776c AJ |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12514 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12515 | ac_res=$ac_cv_search_dlopen | |
12516 | if test "$ac_res" != no; then : | |
12517 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12518 | ||
12519 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12520 | ||
12521 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12522 | LIBADD_DLOPEN="-ldl" | |
12523 | fi | |
12524 | libltdl_cv_lib_dl_dlopen="yes" | |
12525 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12526 | else | |
12527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12528 | /* end confdefs.h. */ | |
12529 | #if HAVE_DLFCN_H | |
12530 | # include <dlfcn.h> | |
12531 | #endif | |
212380e3 | 12532 | |
eec2776c AJ |
12533 | int |
12534 | main () | |
12535 | { | |
12536 | dlopen(0, 0); | |
12537 | ; | |
12538 | return 0; | |
12539 | } | |
12540 | _ACEOF | |
12541 | if ac_fn_c_try_link "$LINENO"; then : | |
631ef239 | 12542 | |
eec2776c | 12543 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
631ef239 | 12544 | |
eec2776c AJ |
12545 | libltdl_cv_func_dlopen="yes" |
12546 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12547 | else | |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12549 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12550 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 | 12551 | $as_echo_n "(cached) " >&6 |
7083c021 | 12552 | else |
c52df125 | 12553 | ac_check_lib_save_LIBS=$LIBS |
eec2776c | 12554 | LIBS="-lsvld $LIBS" |
c52df125 | 12555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 | 12556 | /* end confdefs.h. */ |
212380e3 | 12557 | |
c52df125 AC |
12558 | /* Override any GCC internal prototype to avoid an error. |
12559 | Use char because int might match the return type of a GCC | |
12560 | builtin and then its argument prototype would still apply. */ | |
12561 | #ifdef __cplusplus | |
12562 | extern "C" | |
12563 | #endif | |
eec2776c | 12564 | char dlopen (); |
7083c021 AC |
12565 | int |
12566 | main () | |
12567 | { | |
eec2776c | 12568 | return dlopen (); |
7083c021 AC |
12569 | ; |
12570 | return 0; | |
12571 | } | |
212380e3 | 12572 | _ACEOF |
c52df125 | 12573 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 12574 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 12575 | else |
eec2776c | 12576 | ac_cv_lib_svld_dlopen=no |
212380e3 | 12577 | fi |
c52df125 AC |
12578 | rm -f core conftest.err conftest.$ac_objext \ |
12579 | conftest$ac_exeext conftest.$ac_ext | |
12580 | LIBS=$ac_check_lib_save_LIBS | |
212380e3 | 12581 | fi |
eec2776c AJ |
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12583 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12584 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
c52df125 | 12585 | |
eec2776c | 12586 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
c52df125 | 12587 | |
eec2776c AJ |
12588 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12589 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
c52df125 AC |
12590 | fi |
12591 | ||
c52df125 | 12592 | fi |
eec2776c AJ |
12593 | rm -f core conftest.err conftest.$ac_objext \ |
12594 | conftest$ac_exeext conftest.$ac_ext | |
c52df125 AC |
12595 | fi |
12596 | ||
eec2776c AJ |
12597 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12598 | then | |
12599 | lt_save_LIBS="$LIBS" | |
12600 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12601 | for ac_func in dlerror | |
12602 | do : | |
12603 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12604 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12605 | cat >>confdefs.h <<_ACEOF | |
12606 | #define HAVE_DLERROR 1 | |
12607 | _ACEOF | |
c52df125 | 12608 | |
c52df125 | 12609 | fi |
eec2776c | 12610 | done |
c52df125 | 12611 | |
eec2776c | 12612 | LIBS="$lt_save_LIBS" |
c52df125 | 12613 | fi |
7083c021 | 12614 | |
631ef239 | 12615 | |
eec2776c AJ |
12616 | LIBADD_SHL_LOAD= |
12617 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12618 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
212380e3 | 12619 | |
eec2776c | 12620 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 | 12621 | |
eec2776c | 12622 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
c52df125 | 12623 | else |
eec2776c AJ |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12625 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12626 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12627 | $as_echo_n "(cached) " >&6 | |
7083c021 | 12628 | else |
eec2776c AJ |
12629 | ac_check_lib_save_LIBS=$LIBS |
12630 | LIBS="-ldld $LIBS" | |
12631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12632 | /* end confdefs.h. */ | |
c52df125 | 12633 | |
eec2776c AJ |
12634 | /* Override any GCC internal prototype to avoid an error. |
12635 | Use char because int might match the return type of a GCC | |
12636 | builtin and then its argument prototype would still apply. */ | |
12637 | #ifdef __cplusplus | |
12638 | extern "C" | |
12639 | #endif | |
12640 | char shl_load (); | |
12641 | int | |
12642 | main () | |
12643 | { | |
12644 | return shl_load (); | |
12645 | ; | |
12646 | return 0; | |
12647 | } | |
212380e3 | 12648 | _ACEOF |
eec2776c AJ |
12649 | if ac_fn_c_try_link "$LINENO"; then : |
12650 | ac_cv_lib_dld_shl_load=yes | |
7083c021 | 12651 | else |
eec2776c AJ |
12652 | ac_cv_lib_dld_shl_load=no |
12653 | fi | |
12654 | rm -f core conftest.err conftest.$ac_objext \ | |
12655 | conftest$ac_exeext conftest.$ac_ext | |
12656 | LIBS=$ac_check_lib_save_LIBS | |
12657 | fi | |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12659 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12660 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
c52df125 | 12661 | |
eec2776c | 12662 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
c52df125 | 12663 | |
eec2776c AJ |
12664 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12665 | LIBADD_SHL_LOAD="-ldld" | |
12666 | fi | |
c52df125 | 12667 | |
212380e3 AC |
12668 | fi |
12669 | ||
c52df125 | 12670 | |
212380e3 | 12671 | |
eec2776c AJ |
12672 | case $host_os in |
12673 | darwin[1567].*) | |
12674 | # We only want this for pre-Mac OS X 10.4. | |
12675 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12676 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
212380e3 | 12677 | |
eec2776c | 12678 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
7083c021 | 12679 | |
eec2776c | 12680 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
7083c021 | 12681 | fi |
c52df125 | 12682 | |
eec2776c AJ |
12683 | ;; |
12684 | beos*) | |
12685 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12686 | ;; | |
12687 | cygwin* | mingw* | os2* | pw32*) | |
12688 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12689 | " | |
12690 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12691 | ac_have_decl=1 | |
12692 | else | |
12693 | ac_have_decl=0 | |
12694 | fi | |
c52df125 AC |
12695 | |
12696 | cat >>confdefs.h <<_ACEOF | |
eec2776c | 12697 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
212380e3 AC |
12698 | _ACEOF |
12699 | ||
eec2776c AJ |
12700 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12701 | ;; | |
12702 | esac | |
212380e3 | 12703 | |
eec2776c AJ |
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12705 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12706 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12707 | $as_echo_n "(cached) " >&6 | |
12708 | else | |
12709 | ac_check_lib_save_LIBS=$LIBS | |
12710 | LIBS="-ldld $LIBS" | |
12711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12712 | /* end confdefs.h. */ | |
c52df125 | 12713 | |
eec2776c AJ |
12714 | /* Override any GCC internal prototype to avoid an error. |
12715 | Use char because int might match the return type of a GCC | |
12716 | builtin and then its argument prototype would still apply. */ | |
12717 | #ifdef __cplusplus | |
12718 | extern "C" | |
12719 | #endif | |
12720 | char dld_link (); | |
12721 | int | |
12722 | main () | |
12723 | { | |
12724 | return dld_link (); | |
12725 | ; | |
12726 | return 0; | |
12727 | } | |
212380e3 | 12728 | _ACEOF |
eec2776c AJ |
12729 | if ac_fn_c_try_link "$LINENO"; then : |
12730 | ac_cv_lib_dld_dld_link=yes | |
12731 | else | |
12732 | ac_cv_lib_dld_dld_link=no | |
12733 | fi | |
12734 | rm -f core conftest.err conftest.$ac_objext \ | |
12735 | conftest$ac_exeext conftest.$ac_ext | |
12736 | LIBS=$ac_check_lib_save_LIBS | |
12737 | fi | |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12739 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12740 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
212380e3 | 12741 | |
eec2776c AJ |
12742 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
12743 | ||
12744 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12745 | fi | |
212380e3 AC |
12746 | |
12747 | ||
12748 | ||
12749 | ||
eec2776c AJ |
12750 | LT_DLPREOPEN= |
12751 | if test -n "$LT_DLLOADERS" | |
12752 | then | |
12753 | for lt_loader in $LT_DLLOADERS; do | |
12754 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12755 | done | |
7083c021 | 12756 | |
eec2776c | 12757 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
212380e3 | 12758 | |
eec2776c | 12759 | fi |
631ef239 | 12760 | |
212380e3 | 12761 | |
eec2776c | 12762 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
212380e3 | 12763 | |
212380e3 | 12764 | |
eec2776c AJ |
12765 | ac_ext=c |
12766 | ac_cpp='$CPP $CPPFLAGS' | |
12767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12770 | |
12771 | ||
eec2776c AJ |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12773 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12774 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12775 | $as_echo_n "(cached) " >&6 | |
c52df125 | 12776 | else |
eec2776c AJ |
12777 | lt_cv_sys_symbol_underscore=no |
12778 | cat > conftest.$ac_ext <<_LT_EOF | |
12779 | void nm_test_func(){} | |
12780 | int main(){nm_test_func;return 0;} | |
12781 | _LT_EOF | |
12782 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12783 | (eval $ac_compile) 2>&5 | |
12784 | ac_status=$? | |
12785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12786 | test $ac_status = 0; }; then | |
12787 | # Now try to grab the symbols. | |
12788 | ac_nlist=conftest.nm | |
12789 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12790 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12791 | ac_status=$? | |
12792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12793 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12794 | # See whether the symbols have a leading underscore. | |
12795 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12796 | lt_cv_sys_symbol_underscore=yes | |
12797 | else | |
12798 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12799 | : | |
12800 | else | |
12801 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12802 | fi | |
12803 | fi | |
12804 | else | |
12805 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12806 | fi | |
12807 | else | |
12808 | echo "configure: failed program was:" >&5 | |
12809 | cat conftest.c >&5 | |
12810 | fi | |
12811 | rm -rf conftest* | |
12812 | ||
212380e3 | 12813 | fi |
eec2776c AJ |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12815 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12816 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
212380e3 AC |
12817 | |
12818 | ||
eec2776c AJ |
12819 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12820 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12821 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12823 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12824 | if ${libltdl_cv_need_uscore+:} false; then : | |
7083c021 | 12825 | $as_echo_n "(cached) " >&6 |
212380e3 | 12826 | else |
eec2776c AJ |
12827 | libltdl_cv_need_uscore=unknown |
12828 | save_LIBS="$LIBS" | |
12829 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12830 | if test "$cross_compiling" = yes; then : | |
12831 | libltdl_cv_need_uscore=cross | |
12832 | else | |
12833 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12834 | lt_status=$lt_dlunknown | |
12835 | cat > conftest.$ac_ext <<_LT_EOF | |
12836 | #line $LINENO "configure" | |
12837 | #include "confdefs.h" | |
212380e3 | 12838 | |
eec2776c AJ |
12839 | #if HAVE_DLFCN_H |
12840 | #include <dlfcn.h> | |
c52df125 | 12841 | #endif |
c52df125 | 12842 | |
eec2776c | 12843 | #include <stdio.h> |
c52df125 | 12844 | |
eec2776c AJ |
12845 | #ifdef RTLD_GLOBAL |
12846 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12847 | #else | |
12848 | # ifdef DL_GLOBAL | |
12849 | # define LT_DLGLOBAL DL_GLOBAL | |
12850 | # else | |
12851 | # define LT_DLGLOBAL 0 | |
12852 | # endif | |
12853 | #endif | |
c52df125 | 12854 | |
eec2776c AJ |
12855 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12856 | find out it does not work in some platform. */ | |
12857 | #ifndef LT_DLLAZY_OR_NOW | |
12858 | # ifdef RTLD_LAZY | |
12859 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12860 | # else | |
12861 | # ifdef DL_LAZY | |
12862 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12863 | # else | |
12864 | # ifdef RTLD_NOW | |
12865 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12866 | # else | |
12867 | # ifdef DL_NOW | |
12868 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12869 | # else | |
12870 | # define LT_DLLAZY_OR_NOW 0 | |
12871 | # endif | |
12872 | # endif | |
12873 | # endif | |
12874 | # endif | |
12875 | #endif | |
212380e3 | 12876 | |
eec2776c AJ |
12877 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12878 | correspondingly for the symbols needed. */ | |
12879 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12880 | int fnord () __attribute__((visibility("default"))); | |
12881 | #endif | |
212380e3 | 12882 | |
eec2776c AJ |
12883 | int fnord () { return 42; } |
12884 | int main () | |
12885 | { | |
12886 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12887 | int status = $lt_dlunknown; | |
c52df125 | 12888 | |
eec2776c | 12889 | if (self) |
c52df125 | 12890 | { |
eec2776c AJ |
12891 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12892 | else | |
12893 | { | |
12894 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12895 | else puts (dlerror ()); | |
c52df125 | 12896 | } |
eec2776c | 12897 | /* dlclose (self); */ |
c52df125 | 12898 | } |
eec2776c AJ |
12899 | else |
12900 | puts (dlerror ()); | |
12901 | ||
12902 | return status; | |
c52df125 | 12903 | } |
eec2776c AJ |
12904 | _LT_EOF |
12905 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12906 | (eval $ac_link) 2>&5 | |
12907 | ac_status=$? | |
12908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12909 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12910 | (./conftest; exit; ) >&5 2>/dev/null | |
12911 | lt_status=$? | |
12912 | case x$lt_status in | |
12913 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12914 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12915 | x$lt_dlunknown|x*) ;; | |
12916 | esac | |
12917 | else : | |
12918 | # compilation failed | |
c52df125 | 12919 | |
eec2776c AJ |
12920 | fi |
12921 | fi | |
12922 | rm -fr conftest* | |
c52df125 | 12923 | |
eec2776c | 12924 | LIBS="$save_LIBS" |
212380e3 | 12925 | |
eec2776c AJ |
12926 | fi |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12928 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12929 | fi | |
12930 | fi | |
212380e3 | 12931 | |
eec2776c | 12932 | if test x"$libltdl_cv_need_uscore" = xyes; then |
212380e3 | 12933 | |
eec2776c | 12934 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
212380e3 | 12935 | |
eec2776c | 12936 | fi |
7083c021 | 12937 | |
eec2776c AJ |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12939 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12940 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12941 | $as_echo_n "(cached) " >&6 | |
12942 | else | |
12943 | # PORTME does your system automatically load deplibs for dlopen? | |
12944 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12945 | # For now, we just catch OSes we know something about -- in the | |
12946 | # future, we'll try test this programmatically. | |
12947 | lt_cv_sys_dlopen_deplibs=unknown | |
12948 | case $host_os in | |
12949 | aix3*|aix4.1.*|aix4.2.*) | |
12950 | # Unknown whether this is true for these versions of AIX, but | |
12951 | # we want this `case' here to explicitly catch those versions. | |
12952 | lt_cv_sys_dlopen_deplibs=unknown | |
12953 | ;; | |
12954 | aix[4-9]*) | |
12955 | lt_cv_sys_dlopen_deplibs=yes | |
12956 | ;; | |
12957 | amigaos*) | |
12958 | case $host_cpu in | |
12959 | powerpc) | |
12960 | lt_cv_sys_dlopen_deplibs=no | |
12961 | ;; | |
12962 | esac | |
12963 | ;; | |
12964 | darwin*) | |
12965 | # Assuming the user has installed a libdl from somewhere, this is true | |
12966 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12967 | lt_cv_sys_dlopen_deplibs=yes | |
12968 | ;; | |
12969 | freebsd* | dragonfly*) | |
12970 | lt_cv_sys_dlopen_deplibs=yes | |
12971 | ;; | |
12972 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12973 | # GNU and its variants, using gnu ld.so (Glibc) | |
12974 | lt_cv_sys_dlopen_deplibs=yes | |
12975 | ;; | |
12976 | hpux10*|hpux11*) | |
12977 | lt_cv_sys_dlopen_deplibs=yes | |
12978 | ;; | |
12979 | interix*) | |
12980 | lt_cv_sys_dlopen_deplibs=yes | |
12981 | ;; | |
12982 | irix[12345]*|irix6.[01]*) | |
12983 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12984 | # know how it worked for any of those versions. | |
12985 | lt_cv_sys_dlopen_deplibs=unknown | |
12986 | ;; | |
12987 | irix*) | |
12988 | # The case above catches anything before 6.2, and it's known that | |
12989 | # at 6.2 and later dlopen does load deplibs. | |
12990 | lt_cv_sys_dlopen_deplibs=yes | |
12991 | ;; | |
12992 | netbsd* | netbsdelf*-gnu) | |
12993 | lt_cv_sys_dlopen_deplibs=yes | |
12994 | ;; | |
12995 | openbsd*) | |
12996 | lt_cv_sys_dlopen_deplibs=yes | |
12997 | ;; | |
12998 | osf[1234]*) | |
12999 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
13000 | # it did *not* use an RPATH in a shared library to find objects the | |
13001 | # library depends on, so we explicitly say `no'. | |
13002 | lt_cv_sys_dlopen_deplibs=no | |
13003 | ;; | |
13004 | osf5.0|osf5.0a|osf5.1) | |
13005 | # dlopen *does* load deplibs and with the right loader patch applied | |
13006 | # it even uses RPATH in a shared library to search for shared objects | |
13007 | # that the library depends on, but there's no easy way to know if that | |
13008 | # patch is installed. Since this is the case, all we can really | |
13009 | # say is unknown -- it depends on the patch being installed. If | |
13010 | # it is, this changes to `yes'. Without it, it would be `no'. | |
13011 | lt_cv_sys_dlopen_deplibs=unknown | |
13012 | ;; | |
13013 | osf*) | |
13014 | # the two cases above should catch all versions of osf <= 5.1. Read | |
13015 | # the comments above for what we know about them. | |
13016 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
13017 | # is used to find them so we can finally say `yes'. | |
13018 | lt_cv_sys_dlopen_deplibs=yes | |
13019 | ;; | |
13020 | qnx*) | |
13021 | lt_cv_sys_dlopen_deplibs=yes | |
13022 | ;; | |
13023 | solaris*) | |
13024 | lt_cv_sys_dlopen_deplibs=yes | |
13025 | ;; | |
13026 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13027 | libltdl_cv_sys_dlopen_deplibs=yes | |
13028 | ;; | |
13029 | esac | |
212380e3 | 13030 | |
eec2776c AJ |
13031 | fi |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
13033 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
13034 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
631ef239 | 13035 | |
eec2776c | 13036 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
7083c021 | 13037 | |
eec2776c AJ |
13038 | fi |
13039 | ||
13040 | : | |
13041 | ||
13042 | for ac_header in argz.h | |
13043 | do : | |
13044 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
13045 | " | |
13046 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
13047 | cat >>confdefs.h <<_ACEOF | |
13048 | #define HAVE_ARGZ_H 1 | |
212380e3 | 13049 | _ACEOF |
eec2776c | 13050 | |
7083c021 | 13051 | fi |
eec2776c | 13052 | |
c52df125 | 13053 | done |
631ef239 | 13054 | |
631ef239 | 13055 | |
eec2776c AJ |
13056 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
13057 | # include <argz.h> | |
13058 | #endif | |
13059 | " | |
13060 | if test "x$ac_cv_type_error_t" = xyes; then : | |
13061 | ||
13062 | cat >>confdefs.h <<_ACEOF | |
13063 | #define HAVE_ERROR_T 1 | |
13064 | _ACEOF | |
13065 | ||
631ef239 | 13066 | |
eec2776c | 13067 | else |
7083c021 | 13068 | |
eec2776c | 13069 | $as_echo "#define error_t int" >>confdefs.h |
7083c021 AC |
13070 | |
13071 | ||
eec2776c AJ |
13072 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
13073 | ||
13074 | fi | |
13075 | ||
13076 | ||
13077 | ARGZ_H= | |
13078 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
13079 | argz_next argz_stringify | |
13080 | do : | |
13081 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13082 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13083 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13084 | cat >>confdefs.h <<_ACEOF | |
13085 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13086 | _ACEOF | |
13087 | ||
212380e3 | 13088 | else |
eec2776c AJ |
13089 | ARGZ_H=argz.h; |
13090 | ||
13091 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13092 | ||
7083c021 | 13093 | fi |
eec2776c | 13094 | done |
7083c021 AC |
13095 | |
13096 | ||
eec2776c AJ |
13097 | if test -z "$ARGZ_H"; then : |
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
13099 | $as_echo_n "checking if argz actually works... " >&6; } | |
13100 | if ${lt_cv_sys_argz_works+:} false; then : | |
13101 | $as_echo_n "(cached) " >&6 | |
13102 | else | |
13103 | case $host_os in #( | |
13104 | *cygwin*) | |
13105 | lt_cv_sys_argz_works=no | |
13106 | if test "$cross_compiling" != no; then | |
13107 | lt_cv_sys_argz_works="guessing no" | |
13108 | else | |
13109 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13110 | save_IFS=$IFS | |
13111 | IFS=-. | |
13112 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13113 | IFS=$save_IFS | |
13114 | lt_os_major=${2-0} | |
13115 | lt_os_minor=${3-0} | |
13116 | lt_os_micro=${4-0} | |
13117 | if test "$lt_os_major" -gt 1 \ | |
13118 | || { test "$lt_os_major" -eq 1 \ | |
13119 | && { test "$lt_os_minor" -gt 5 \ | |
13120 | || { test "$lt_os_minor" -eq 5 \ | |
13121 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
13122 | lt_cv_sys_argz_works=yes | |
13123 | fi | |
13124 | fi | |
13125 | ;; #( | |
13126 | *) lt_cv_sys_argz_works=yes ;; | |
13127 | esac | |
13128 | fi | |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
13130 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
13131 | if test "$lt_cv_sys_argz_works" = yes; then : | |
7083c021 | 13132 | |
eec2776c | 13133 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
7083c021 | 13134 | |
eec2776c AJ |
13135 | else |
13136 | ARGZ_H=argz.h | |
212380e3 | 13137 | |
631ef239 | 13138 | |
eec2776c | 13139 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
631ef239 | 13140 | |
eec2776c AJ |
13141 | fi |
13142 | fi | |
631ef239 | 13143 | |
212380e3 | 13144 | |
212380e3 | 13145 | |
eec2776c AJ |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
13147 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13148 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
7083c021 | 13149 | $as_echo_n "(cached) " >&6 |
212380e3 | 13150 | else |
eec2776c AJ |
13151 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
13152 | libltdl_cv_preloaded_symbols=yes | |
13153 | else | |
13154 | libltdl_cv_preloaded_symbols=no | |
13155 | fi | |
7083c021 | 13156 | |
212380e3 | 13157 | fi |
eec2776c AJ |
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
13159 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
13160 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
13161 | ||
13162 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
13163 | ||
212380e3 | 13164 | fi |
212380e3 | 13165 | |
eec2776c | 13166 | # Set options |
212380e3 | 13167 | |
7083c021 | 13168 | |
7083c021 | 13169 | |
212380e3 | 13170 | |
7083c021 AC |
13171 | |
13172 | ||
13173 | ||
212380e3 | 13174 | |
212380e3 | 13175 | |
212380e3 | 13176 | |
212380e3 | 13177 | |
212380e3 | 13178 | |
eec2776c AJ |
13179 | # Check whether --with-included_ltdl was given. |
13180 | if test "${with_included_ltdl+set}" = set; then : | |
13181 | withval=$with_included_ltdl; | |
212380e3 | 13182 | fi |
631ef239 | 13183 | |
eec2776c AJ |
13184 | |
13185 | if test "x$with_included_ltdl" != xyes; then | |
13186 | # We are not being forced to use the included libltdl sources, so | |
13187 | # decide whether there is a useful installed version we can use. | |
13188 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
13189 | ||
13190 | " | |
13191 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13192 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
13193 | #include <ltdl.h> | |
13194 | " | |
13195 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
13197 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13198 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
7083c021 | 13199 | $as_echo_n "(cached) " >&6 |
212380e3 | 13200 | else |
eec2776c AJ |
13201 | ac_check_lib_save_LIBS=$LIBS |
13202 | LIBS="-lltdl $LIBS" | |
13203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13204 | /* end confdefs.h. */ | |
13205 | ||
13206 | /* Override any GCC internal prototype to avoid an error. | |
13207 | Use char because int might match the return type of a GCC | |
13208 | builtin and then its argument prototype would still apply. */ | |
13209 | #ifdef __cplusplus | |
13210 | extern "C" | |
13211 | #endif | |
13212 | char lt_dladvise_preload (); | |
13213 | int | |
13214 | main () | |
13215 | { | |
13216 | return lt_dladvise_preload (); | |
13217 | ; | |
13218 | return 0; | |
13219 | } | |
13220 | _ACEOF | |
13221 | if ac_fn_c_try_link "$LINENO"; then : | |
13222 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
212380e3 | 13223 | else |
eec2776c | 13224 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
212380e3 | 13225 | fi |
eec2776c AJ |
13226 | rm -f core conftest.err conftest.$ac_objext \ |
13227 | conftest$ac_exeext conftest.$ac_ext | |
13228 | LIBS=$ac_check_lib_save_LIBS | |
7083c021 | 13229 | fi |
eec2776c AJ |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
13231 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13232 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
13233 | with_included_ltdl=no | |
212380e3 | 13234 | else |
eec2776c | 13235 | with_included_ltdl=yes |
7083c021 AC |
13236 | fi |
13237 | ||
7083c021 | 13238 | else |
eec2776c | 13239 | with_included_ltdl=yes |
7083c021 | 13240 | fi |
eec2776c | 13241 | |
7083c021 | 13242 | else |
eec2776c | 13243 | with_included_ltdl=yes |
212380e3 | 13244 | fi |
631ef239 | 13245 | |
212380e3 | 13246 | |
7083c021 | 13247 | fi |
212380e3 | 13248 | |
eec2776c AJ |
13249 | |
13250 | ||
13251 | ||
13252 | # Check whether --with-ltdl_include was given. | |
13253 | if test "${with_ltdl_include+set}" = set; then : | |
13254 | withval=$with_ltdl_include; | |
212380e3 | 13255 | fi |
eec2776c AJ |
13256 | |
13257 | ||
13258 | if test -n "$with_ltdl_include"; then | |
13259 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13260 | else | |
13261 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
13262 | fi | |
212380e3 | 13263 | else |
eec2776c | 13264 | with_ltdl_include=no |
7083c021 | 13265 | fi |
212380e3 | 13266 | |
212380e3 | 13267 | |
eec2776c AJ |
13268 | # Check whether --with-ltdl_lib was given. |
13269 | if test "${with_ltdl_lib+set}" = set; then : | |
13270 | withval=$with_ltdl_lib; | |
7083c021 | 13271 | fi |
eec2776c AJ |
13272 | |
13273 | ||
13274 | if test -n "$with_ltdl_lib"; then | |
13275 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13276 | else | |
13277 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
7083c021 | 13278 | fi |
eec2776c AJ |
13279 | else |
13280 | with_ltdl_lib=no | |
13281 | fi | |
13282 | ||
13283 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13284 | ,yes,no,no,) | |
13285 | case $enable_ltdl_convenience in | |
13286 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13287 | "") enable_ltdl_convenience=yes | |
13288 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13289 | esac | |
13290 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13291 | LTDLDEPS=$LIBLTDL | |
13292 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13293 | ||
13294 | ||
13295 | ||
13296 | ||
13297 | ||
13298 | # For backwards non-gettext consistent compatibility... | |
13299 | INCLTDL="$LTDLINCL" | |
13300 | ||
13301 | ||
13302 | ;; | |
13303 | ,no,no,no,) | |
13304 | # If the included ltdl is not to be used, then use the | |
13305 | # preinstalled libltdl we found. | |
13306 | ||
13307 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13308 | ||
13309 | LIBLTDL=-lltdl | |
13310 | LTDLDEPS= | |
13311 | LTDLINCL= | |
13312 | ;; | |
13313 | ,no*,no,*) | |
13314 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13315 | ;; | |
13316 | *) with_included_ltdl=no | |
13317 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13318 | LTDLDEPS= | |
13319 | LTDLINCL="-I$with_ltdl_include" | |
13320 | ;; | |
13321 | esac | |
13322 | INCLTDL="$LTDLINCL" | |
13323 | ||
13324 | # Report our decision... | |
13325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13326 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13328 | $as_echo "$LTDLINCL" >&6; } | |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13330 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13332 | $as_echo "$LIBLTDL" >&6; } | |
13333 | ||
13334 | ||
212380e3 | 13335 | |
eec2776c AJ |
13336 | # Check whether --enable-ltdl-install was given. |
13337 | if test "${enable_ltdl_install+set}" = set; then : | |
13338 | enableval=$enable_ltdl_install; | |
212380e3 | 13339 | fi |
eec2776c AJ |
13340 | |
13341 | ||
13342 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13343 | *yes*) ;; | |
13344 | *) enable_ltdl_convenience=yes ;; | |
13345 | esac | |
13346 | ||
13347 | if test x"${enable_ltdl_install-no}" != xno; then | |
13348 | INSTALL_LTDL_TRUE= | |
13349 | INSTALL_LTDL_FALSE='#' | |
13350 | else | |
13351 | INSTALL_LTDL_TRUE='#' | |
13352 | INSTALL_LTDL_FALSE= | |
212380e3 | 13353 | fi |
eec2776c AJ |
13354 | |
13355 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13356 | CONVENIENCE_LTDL_TRUE= | |
13357 | CONVENIENCE_LTDL_FALSE='#' | |
7083c021 | 13358 | else |
eec2776c AJ |
13359 | CONVENIENCE_LTDL_TRUE='#' |
13360 | CONVENIENCE_LTDL_FALSE= | |
212380e3 | 13361 | fi |
631ef239 AC |
13362 | |
13363 | ||
13364 | ||
f0718c93 | 13365 | subdirs="$subdirs libltdl" |
212380e3 AC |
13366 | |
13367 | ||
7083c021 | 13368 | |
7083c021 | 13369 | |
eec2776c AJ |
13370 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13371 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13372 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13373 | # definitions required by ltdl.c. | |
13374 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
212380e3 | 13375 | |
7083c021 | 13376 | |
212380e3 | 13377 | |
eec2776c AJ |
13378 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13379 | do : | |
13380 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13381 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13382 | " | |
13383 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13384 | cat >>confdefs.h <<_ACEOF | |
13385 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 13386 | _ACEOF |
7083c021 AC |
13387 | |
13388 | fi | |
212380e3 | 13389 | |
eec2776c | 13390 | done |
7083c021 | 13391 | |
212380e3 | 13392 | |
eec2776c AJ |
13393 | for ac_func in closedir opendir readdir |
13394 | do : | |
13395 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13396 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13397 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13398 | cat >>confdefs.h <<_ACEOF | |
13399 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13400 | _ACEOF |
212380e3 | 13401 | |
7083c021 | 13402 | else |
7083c021 | 13403 | |
7083c021 | 13404 | |
eec2776c | 13405 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
7083c021 | 13406 | |
7083c021 | 13407 | fi |
7083c021 | 13408 | done |
7083c021 | 13409 | |
eec2776c AJ |
13410 | for ac_func in strlcat strlcpy |
13411 | do : | |
13412 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13413 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13414 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13415 | cat >>confdefs.h <<_ACEOF | |
13416 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13417 | _ACEOF | |
13418 | ||
13419 | else | |
13420 | ||
13421 | ||
13422 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
212380e3 | 13423 | |
212380e3 | 13424 | fi |
eec2776c | 13425 | done |
631ef239 | 13426 | |
7083c021 | 13427 | |
c52df125 | 13428 | |
eec2776c AJ |
13429 | cat >>confdefs.h <<_ACEOF |
13430 | #define LT_LIBEXT "$libext" | |
13431 | _ACEOF | |
c52df125 | 13432 | |
eec2776c AJ |
13433 | |
13434 | name= | |
13435 | eval "lt_libprefix=\"$libname_spec\"" | |
13436 | ||
13437 | cat >>confdefs.h <<_ACEOF | |
13438 | #define LT_LIBPREFIX "$lt_libprefix" | |
c52df125 | 13439 | _ACEOF |
7083c021 AC |
13440 | |
13441 | ||
eec2776c AJ |
13442 | name=ltdl |
13443 | eval "LTDLOPEN=\"$libname_spec\"" | |
7083c021 | 13444 | |
c52df125 | 13445 | |
c52df125 | 13446 | |
c52df125 | 13447 | |
1db8e007 | 13448 | |
1db8e007 JT |
13449 | |
13450 | ||
13451 | ||
eec2776c | 13452 | # Only expand once: |
1db8e007 | 13453 | |
1db8e007 | 13454 | |
7083c021 | 13455 | |
eec2776c | 13456 | build_ltdl=$with_included_ltdl |
d8c4154d | 13457 | if test x"$build_ltdl" = x"yes"; then |
eec2776c AJ |
13458 | BUILD_LTDL_TRUE= |
13459 | BUILD_LTDL_FALSE='#' | |
13460 | else | |
13461 | BUILD_LTDL_TRUE='#' | |
13462 | BUILD_LTDL_FALSE= | |
13463 | fi | |
7083c021 | 13464 | |
212380e3 | 13465 | |
cfa7b5fd | 13466 | if test "$ac_cv_c_compiler_gnu" = yes; then |
eec2776c | 13467 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" |
212380e3 | 13468 | fi |
631ef239 | 13469 | |
7083c021 | 13470 | if test "$ac_cv_prog_cc_g" = yes; then |
2a19fc3f | 13471 | IRC_CFLAGS="$IRC_CFLAGS -g" |
7083c021 | 13472 | fi |
7083c021 AC |
13473 | |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
13475 | $as_echo_n "checking for /dev/null... " >&6; } | |
13476 | if test -c /dev/null ; then | |
13477 | ||
13478 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
13479 | ||
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13481 | $as_echo "yes" >&6; } | |
212380e3 | 13482 | else |
212380e3 | 13483 | |
7083c021 AC |
13484 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13485 | ||
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
13487 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 13488 | fi |
631ef239 | 13489 | |
7083c021 AC |
13490 | if test ! -z "$CFLAGS"; then |
13491 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 13492 | fi |
631ef239 | 13493 | |
7083c021 AC |
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
13495 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 13496 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13497 | $as_echo_n "(cached) " >&6 |
13498 | else | |
13499 | ac_func_search_save_LIBS=$LIBS | |
13500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13501 | /* end confdefs.h. */ |
7083c021 AC |
13502 | |
13503 | /* Override any GCC internal prototype to avoid an error. | |
13504 | Use char because int might match the return type of a GCC | |
13505 | builtin and then its argument prototype would still apply. */ | |
13506 | #ifdef __cplusplus | |
13507 | extern "C" | |
13508 | #endif | |
13509 | char strerror (); | |
212380e3 AC |
13510 | int |
13511 | main () | |
13512 | { | |
7083c021 | 13513 | return strerror (); |
212380e3 AC |
13514 | ; |
13515 | return 0; | |
13516 | } | |
13517 | _ACEOF | |
7083c021 AC |
13518 | for ac_lib in '' cposix; do |
13519 | if test -z "$ac_lib"; then | |
13520 | ac_res="none required" | |
13521 | else | |
13522 | ac_res=-l$ac_lib | |
13523 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13524 | fi | |
13525 | if ac_fn_c_try_link "$LINENO"; then : | |
13526 | ac_cv_search_strerror=$ac_res | |
13527 | fi | |
13528 | rm -f core conftest.err conftest.$ac_objext \ | |
13529 | conftest$ac_exeext | |
b6d0720c | 13530 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13531 | break |
13532 | fi | |
13533 | done | |
b6d0720c | 13534 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 13535 | |
212380e3 | 13536 | else |
7083c021 AC |
13537 | ac_cv_search_strerror=no |
13538 | fi | |
13539 | rm conftest.$ac_ext | |
13540 | LIBS=$ac_func_search_save_LIBS | |
13541 | fi | |
13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
13543 | $as_echo "$ac_cv_search_strerror" >&6; } | |
13544 | ac_res=$ac_cv_search_strerror | |
13545 | if test "$ac_res" != no; then : | |
13546 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 13547 | |
212380e3 | 13548 | fi |
631ef239 | 13549 | |
7083c021 AC |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13551 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 13552 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
13553 | $as_echo_n "(cached) " >&6 |
13554 | else | |
13555 | ac_cv_c_inline=no | |
13556 | for ac_kw in inline __inline__ __inline; do | |
13557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13558 | /* end confdefs.h. */ | |
13559 | #ifndef __cplusplus | |
13560 | typedef int foo_t; | |
13561 | static $ac_kw foo_t static_foo () {return 0; } | |
13562 | $ac_kw foo_t foo () {return 0; } | |
13563 | #endif | |
13564 | ||
13565 | _ACEOF | |
13566 | if ac_fn_c_try_compile "$LINENO"; then : | |
13567 | ac_cv_c_inline=$ac_kw | |
13568 | fi | |
631ef239 | 13569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 13570 | test "$ac_cv_c_inline" != no && break |
212380e3 | 13571 | done |
7083c021 AC |
13572 | |
13573 | fi | |
13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13575 | $as_echo "$ac_cv_c_inline" >&6; } | |
13576 | ||
13577 | case $ac_cv_c_inline in | |
13578 | inline | yes) ;; | |
13579 | *) | |
13580 | case $ac_cv_c_inline in | |
13581 | no) ac_val=;; | |
13582 | *) ac_val=$ac_cv_c_inline;; | |
13583 | esac | |
13584 | cat >>confdefs.h <<_ACEOF | |
13585 | #ifndef __cplusplus | |
13586 | #define inline $ac_val | |
13587 | #endif | |
13588 | _ACEOF | |
13589 | ;; | |
212380e3 | 13590 | esac |
7083c021 | 13591 | |
7083c021 AC |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13593 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13594 | set x ${MAKE-make} | |
13595 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 13596 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
13597 | $as_echo_n "(cached) " >&6 |
13598 | else | |
13599 | cat >conftest.make <<\_ACEOF | |
13600 | SHELL = /bin/sh | |
13601 | all: | |
13602 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 13603 | _ACEOF |
b6d0720c | 13604 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
13605 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
13606 | *@@@%%%=?*=@@@%%%*) | |
13607 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13608 | *) | |
13609 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 13610 | esac |
7083c021 AC |
13611 | rm -f conftest.make |
13612 | fi | |
13613 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13615 | $as_echo "yes" >&6; } | |
13616 | SET_MAKE= | |
13617 | else | |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13619 | $as_echo "no" >&6; } | |
c52df125 | 13620 | SET_MAKE="MAKE=${MAKE-make}" |
7083c021 | 13621 | fi |
7083c021 | 13622 | |
7083c021 AC |
13623 | |
13624 | # Extract the first word of "rm", so it can be a program name with args. | |
13625 | set dummy rm; ac_word=$2 | |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13627 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13628 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 13629 | $as_echo_n "(cached) " >&6 |
212380e3 | 13630 | else |
7083c021 AC |
13631 | case $RM in |
13632 | [\\/]* | ?:[\\/]*) | |
13633 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
13634 | ;; | |
13635 | *) | |
13636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13637 | for as_dir in $PATH | |
13638 | do | |
13639 | IFS=$as_save_IFS | |
13640 | test -z "$as_dir" && as_dir=. | |
13641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13643 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
13644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13645 | break 2 | |
13646 | fi | |
13647 | done | |
13648 | done | |
13649 | IFS=$as_save_IFS | |
212380e3 | 13650 | |
7083c021 AC |
13651 | ;; |
13652 | esac | |
212380e3 | 13653 | fi |
7083c021 AC |
13654 | RM=$ac_cv_path_RM |
13655 | if test -n "$RM"; then | |
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
13657 | $as_echo "$RM" >&6; } | |
13658 | else | |
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13660 | $as_echo "no" >&6; } | |
212380e3 | 13661 | fi |
631ef239 AC |
13662 | |
13663 | ||
7083c021 AC |
13664 | # Extract the first word of "cp", so it can be a program name with args. |
13665 | set dummy cp; ac_word=$2 | |
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13667 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13668 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
13669 | $as_echo_n "(cached) " >&6 |
13670 | else | |
13671 | case $CP in | |
13672 | [\\/]* | ?:[\\/]*) | |
13673 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
13674 | ;; | |
13675 | *) | |
13676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13677 | for as_dir in $PATH | |
13678 | do | |
13679 | IFS=$as_save_IFS | |
13680 | test -z "$as_dir" && as_dir=. | |
13681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13683 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
13684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13685 | break 2 | |
13686 | fi | |
13687 | done | |
13688 | done | |
13689 | IFS=$as_save_IFS | |
631ef239 | 13690 | |
7083c021 AC |
13691 | ;; |
13692 | esac | |
13693 | fi | |
13694 | CP=$ac_cv_path_CP | |
13695 | if test -n "$CP"; then | |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
13697 | $as_echo "$CP" >&6; } | |
13698 | else | |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13700 | $as_echo "no" >&6; } | |
13701 | fi | |
212380e3 AC |
13702 | |
13703 | ||
7083c021 AC |
13704 | # Extract the first word of "mv", so it can be a program name with args. |
13705 | set dummy mv; ac_word=$2 | |
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13707 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13708 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 13709 | $as_echo_n "(cached) " >&6 |
212380e3 | 13710 | else |
7083c021 AC |
13711 | case $MV in |
13712 | [\\/]* | ?:[\\/]*) | |
13713 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
13714 | ;; | |
13715 | *) | |
13716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13717 | for as_dir in $PATH | |
13718 | do | |
13719 | IFS=$as_save_IFS | |
13720 | test -z "$as_dir" && as_dir=. | |
13721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13723 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
13724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13725 | break 2 | |
13726 | fi | |
13727 | done | |
13728 | done | |
13729 | IFS=$as_save_IFS | |
13730 | ||
13731 | ;; | |
631ef239 | 13732 | esac |
7083c021 AC |
13733 | fi |
13734 | MV=$ac_cv_path_MV | |
13735 | if test -n "$MV"; then | |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
13737 | $as_echo "$MV" >&6; } | |
212380e3 | 13738 | else |
7083c021 AC |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13740 | $as_echo "no" >&6; } | |
212380e3 | 13741 | fi |
631ef239 | 13742 | |
212380e3 | 13743 | |
7083c021 AC |
13744 | # Extract the first word of "ln", so it can be a program name with args. |
13745 | set dummy ln; ac_word=$2 | |
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13747 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13748 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 13749 | $as_echo_n "(cached) " >&6 |
212380e3 | 13750 | else |
7083c021 AC |
13751 | case $LN in |
13752 | [\\/]* | ?:[\\/]*) | |
13753 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
13754 | ;; | |
13755 | *) | |
13756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13757 | for as_dir in $PATH | |
13758 | do | |
13759 | IFS=$as_save_IFS | |
13760 | test -z "$as_dir" && as_dir=. | |
13761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13763 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
13764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13765 | break 2 | |
13766 | fi | |
13767 | done | |
13768 | done | |
13769 | IFS=$as_save_IFS | |
212380e3 | 13770 | |
7083c021 | 13771 | ;; |
631ef239 | 13772 | esac |
7083c021 AC |
13773 | fi |
13774 | LN=$ac_cv_path_LN | |
13775 | if test -n "$LN"; then | |
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
13777 | $as_echo "$LN" >&6; } | |
212380e3 | 13778 | else |
7083c021 AC |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13780 | $as_echo "no" >&6; } | |
212380e3 | 13781 | fi |
631ef239 | 13782 | |
7083c021 AC |
13783 | |
13784 | # Extract the first word of "sed", so it can be a program name with args. | |
13785 | set dummy sed; ac_word=$2 | |
13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13787 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13788 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
13789 | $as_echo_n "(cached) " >&6 |
13790 | else | |
13791 | case $SED in | |
13792 | [\\/]* | ?:[\\/]*) | |
13793 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
13794 | ;; | |
13795 | *) | |
13796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13797 | for as_dir in $PATH | |
13798 | do | |
13799 | IFS=$as_save_IFS | |
13800 | test -z "$as_dir" && as_dir=. | |
13801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13803 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
13804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13805 | break 2 | |
13806 | fi | |
13807 | done | |
212380e3 | 13808 | done |
7083c021 AC |
13809 | IFS=$as_save_IFS |
13810 | ||
13811 | ;; | |
13812 | esac | |
13813 | fi | |
13814 | SED=$ac_cv_path_SED | |
13815 | if test -n "$SED"; then | |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
13817 | $as_echo "$SED" >&6; } | |
212380e3 | 13818 | else |
7083c021 AC |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13820 | $as_echo "no" >&6; } | |
13821 | fi | |
212380e3 | 13822 | |
212380e3 | 13823 | |
7083c021 AC |
13824 | # Extract the first word of "ar", so it can be a program name with args. |
13825 | set dummy ar; ac_word=$2 | |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13827 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13828 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
13829 | $as_echo_n "(cached) " >&6 |
13830 | else | |
13831 | case $AR in | |
13832 | [\\/]* | ?:[\\/]*) | |
13833 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
13834 | ;; | |
13835 | *) | |
13836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13837 | for as_dir in $PATH | |
13838 | do | |
13839 | IFS=$as_save_IFS | |
13840 | test -z "$as_dir" && as_dir=. | |
13841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13843 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
13844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13845 | break 2 | |
13846 | fi | |
13847 | done | |
13848 | done | |
13849 | IFS=$as_save_IFS | |
212380e3 | 13850 | |
7083c021 | 13851 | ;; |
631ef239 | 13852 | esac |
7083c021 AC |
13853 | fi |
13854 | AR=$ac_cv_path_AR | |
13855 | if test -n "$AR"; then | |
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13857 | $as_echo "$AR" >&6; } | |
212380e3 | 13858 | else |
7083c021 AC |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13860 | $as_echo "no" >&6; } | |
212380e3 | 13861 | fi |
631ef239 | 13862 | |
7083c021 AC |
13863 | |
13864 | # Extract the first word of "ld", so it can be a program name with args. | |
13865 | set dummy ld; ac_word=$2 | |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13867 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13868 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 13869 | $as_echo_n "(cached) " >&6 |
212380e3 | 13870 | else |
7083c021 AC |
13871 | case $LD in |
13872 | [\\/]* | ?:[\\/]*) | |
13873 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
13874 | ;; | |
13875 | *) | |
13876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13877 | for as_dir in $PATH | |
13878 | do | |
13879 | IFS=$as_save_IFS | |
13880 | test -z "$as_dir" && as_dir=. | |
13881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13883 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
13884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13885 | break 2 | |
13886 | fi | |
13887 | done | |
13888 | done | |
13889 | IFS=$as_save_IFS | |
212380e3 | 13890 | |
7083c021 AC |
13891 | ;; |
13892 | esac | |
212380e3 | 13893 | fi |
7083c021 AC |
13894 | LD=$ac_cv_path_LD |
13895 | if test -n "$LD"; then | |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13897 | $as_echo "$LD" >&6; } | |
13898 | else | |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13900 | $as_echo "no" >&6; } | |
212380e3 | 13901 | fi |
631ef239 | 13902 | |
212380e3 | 13903 | |
7083c021 AC |
13904 | # Extract the first word of "ranlib", so it can be a program name with args. |
13905 | set dummy ranlib; ac_word=$2 | |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13907 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13908 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 13909 | $as_echo_n "(cached) " >&6 |
212380e3 | 13910 | else |
7083c021 AC |
13911 | case $RANLIB in |
13912 | [\\/]* | ?:[\\/]*) | |
13913 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
13914 | ;; | |
13915 | *) | |
13916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13917 | for as_dir in $PATH | |
13918 | do | |
13919 | IFS=$as_save_IFS | |
13920 | test -z "$as_dir" && as_dir=. | |
13921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13923 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
13924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13925 | break 2 | |
13926 | fi | |
13927 | done | |
13928 | done | |
13929 | IFS=$as_save_IFS | |
212380e3 | 13930 | |
7083c021 AC |
13931 | ;; |
13932 | esac | |
13933 | fi | |
13934 | RANLIB=$ac_cv_path_RANLIB | |
13935 | if test -n "$RANLIB"; then | |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
13937 | $as_echo "$RANLIB" >&6; } | |
13938 | else | |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13940 | $as_echo "no" >&6; } | |
212380e3 | 13941 | fi |
631ef239 | 13942 | |
7083c021 AC |
13943 | |
13944 | # Extract the first word of "touch", so it can be a program name with args. | |
13945 | set dummy touch; ac_word=$2 | |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13947 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13948 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
13949 | $as_echo_n "(cached) " >&6 |
13950 | else | |
13951 | case $TOUCH in | |
13952 | [\\/]* | ?:[\\/]*) | |
13953 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
13954 | ;; | |
13955 | *) | |
13956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13957 | for as_dir in $PATH | |
13958 | do | |
13959 | IFS=$as_save_IFS | |
13960 | test -z "$as_dir" && as_dir=. | |
13961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13963 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
13964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13965 | break 2 | |
13966 | fi | |
212380e3 | 13967 | done |
7083c021 AC |
13968 | done |
13969 | IFS=$as_save_IFS | |
13970 | ||
13971 | ;; | |
212380e3 | 13972 | esac |
7083c021 AC |
13973 | fi |
13974 | TOUCH=$ac_cv_path_TOUCH | |
13975 | if test -n "$TOUCH"; then | |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
13977 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 13978 | else |
7083c021 AC |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13980 | $as_echo "no" >&6; } | |
13981 | fi | |
212380e3 | 13982 | |
212380e3 | 13983 | |
7083c021 AC |
13984 | |
13985 | for ac_prog in 'bison -y' byacc | |
13986 | do | |
13987 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13988 | set dummy $ac_prog; ac_word=$2 | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13990 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13991 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 13992 | $as_echo_n "(cached) " >&6 |
212380e3 | 13993 | else |
7083c021 AC |
13994 | if test -n "$YACC"; then |
13995 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13996 | else | |
13997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13998 | for as_dir in $PATH | |
13999 | do | |
14000 | IFS=$as_save_IFS | |
14001 | test -z "$as_dir" && as_dir=. | |
14002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14004 | ac_cv_prog_YACC="$ac_prog" |
14005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14006 | break 2 | |
14007 | fi | |
14008 | done | |
14009 | done | |
14010 | IFS=$as_save_IFS | |
212380e3 | 14011 | |
212380e3 AC |
14012 | fi |
14013 | fi | |
7083c021 AC |
14014 | YACC=$ac_cv_prog_YACC |
14015 | if test -n "$YACC"; then | |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14017 | $as_echo "$YACC" >&6; } | |
14018 | else | |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14020 | $as_echo "no" >&6; } | |
212380e3 | 14021 | fi |
631ef239 AC |
14022 | |
14023 | ||
7083c021 AC |
14024 | test -n "$YACC" && break |
14025 | done | |
14026 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
14027 | |
14028 | ||
7083c021 | 14029 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 14030 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 14031 | fi |
212380e3 | 14032 | |
7083c021 AC |
14033 | for ac_prog in flex lex |
14034 | do | |
14035 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14036 | set dummy $ac_prog; ac_word=$2 | |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14038 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14039 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 14040 | $as_echo_n "(cached) " >&6 |
212380e3 | 14041 | else |
7083c021 AC |
14042 | if test -n "$LEX"; then |
14043 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 14044 | else |
7083c021 AC |
14045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14046 | for as_dir in $PATH | |
14047 | do | |
14048 | IFS=$as_save_IFS | |
14049 | test -z "$as_dir" && as_dir=. | |
14050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14052 | ac_cv_prog_LEX="$ac_prog" |
14053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14054 | break 2 | |
14055 | fi | |
631ef239 | 14056 | done |
7083c021 AC |
14057 | done |
14058 | IFS=$as_save_IFS | |
631ef239 | 14059 | |
7083c021 AC |
14060 | fi |
14061 | fi | |
14062 | LEX=$ac_cv_prog_LEX | |
14063 | if test -n "$LEX"; then | |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14065 | $as_echo "$LEX" >&6; } | |
631ef239 | 14066 | else |
7083c021 AC |
14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14068 | $as_echo "no" >&6; } | |
631ef239 AC |
14069 | fi |
14070 | ||
14071 | ||
7083c021 AC |
14072 | test -n "$LEX" && break |
14073 | done | |
14074 | test -n "$LEX" || LEX=":" | |
212380e3 | 14075 | |
7083c021 AC |
14076 | if test "x$LEX" != "x:"; then |
14077 | cat >conftest.l <<_ACEOF | |
14078 | %% | |
14079 | a { ECHO; } | |
14080 | b { REJECT; } | |
14081 | c { yymore (); } | |
14082 | d { yyless (1); } | |
2eff3833 JT |
14083 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
14084 | yyless ((input () != 0)); } | |
7083c021 AC |
14085 | f { unput (yytext[0]); } |
14086 | . { BEGIN INITIAL; } | |
14087 | %% | |
14088 | #ifdef YYTEXT_POINTER | |
14089 | extern char *yytext; | |
212380e3 | 14090 | #endif |
212380e3 | 14091 | int |
7083c021 | 14092 | main (void) |
212380e3 | 14093 | { |
7083c021 | 14094 | return ! yylex () + ! yywrap (); |
212380e3 AC |
14095 | } |
14096 | _ACEOF | |
7083c021 | 14097 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
14098 | case "(($ac_try" in |
14099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14100 | *) ac_try_echo=$ac_try;; | |
14101 | esac | |
7083c021 AC |
14102 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
14103 | $as_echo "$ac_try_echo"; } >&5 | |
14104 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 14105 | ac_status=$? |
7083c021 AC |
14106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14107 | test $ac_status = 0; } | |
14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14109 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 14110 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 14111 | $as_echo_n "(cached) " >&6 |
212380e3 | 14112 | else |
212380e3 | 14113 | |
7083c021 AC |
14114 | if test -f lex.yy.c; then |
14115 | ac_cv_prog_lex_root=lex.yy | |
14116 | elif test -f lexyy.c; then | |
14117 | ac_cv_prog_lex_root=lexyy | |
14118 | else | |
b6d0720c | 14119 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
14120 | fi |
14121 | fi | |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14123 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14124 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14125 | ||
14126 | if test -z "${LEXLIB+set}"; then | |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14128 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 14129 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
14130 | $as_echo_n "(cached) " >&6 |
14131 | else | |
631ef239 | 14132 | |
7083c021 AC |
14133 | ac_save_LIBS=$LIBS |
14134 | ac_cv_lib_lex='none needed' | |
14135 | for ac_lib in '' -lfl -ll; do | |
14136 | LIBS="$ac_lib $ac_save_LIBS" | |
14137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14138 | /* end confdefs.h. */ | |
14139 | `cat $LEX_OUTPUT_ROOT.c` | |
14140 | _ACEOF | |
14141 | if ac_fn_c_try_link "$LINENO"; then : | |
14142 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 14143 | fi |
7083c021 AC |
14144 | rm -f core conftest.err conftest.$ac_objext \ |
14145 | conftest$ac_exeext conftest.$ac_ext | |
14146 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14147 | done | |
14148 | LIBS=$ac_save_LIBS | |
631ef239 | 14149 | |
631ef239 | 14150 | fi |
7083c021 AC |
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
14152 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14153 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14154 | fi | |
14155 | ||
14156 | ||
14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14158 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 14159 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 14160 | $as_echo_n "(cached) " >&6 |
631ef239 | 14161 | else |
7083c021 AC |
14162 | # POSIX says lex can declare yytext either as a pointer or an array; the |
14163 | # default is implementation-dependent. Figure out which it is, since | |
14164 | # not all implementations provide the %pointer and %array declarations. | |
14165 | ac_cv_prog_lex_yytext_pointer=no | |
14166 | ac_save_LIBS=$LIBS | |
14167 | LIBS="$LEXLIB $ac_save_LIBS" | |
14168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14169 | /* end confdefs.h. */ | |
b6d0720c AC |
14170 | |
14171 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
14172 | `cat $LEX_OUTPUT_ROOT.c` |
14173 | _ACEOF | |
14174 | if ac_fn_c_try_link "$LINENO"; then : | |
14175 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 14176 | fi |
7083c021 AC |
14177 | rm -f core conftest.err conftest.$ac_objext \ |
14178 | conftest$ac_exeext conftest.$ac_ext | |
14179 | LIBS=$ac_save_LIBS | |
14180 | ||
212380e3 | 14181 | fi |
7083c021 AC |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
14183 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14184 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 14185 | |
7083c021 AC |
14186 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
14187 | ||
14188 | fi | |
14189 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14190 | ||
14191 | fi | |
14192 | ||
14193 | if test "$LEX" = ":"; then | |
b6d0720c | 14194 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
14195 | fi |
14196 | ||
9f9b7042 NPB |
14197 | # Check whether --enable-fhs-paths was given. |
14198 | if test "${enable_fhs_paths+set}" = set; then : | |
14199 | enableval=$enable_fhs_paths; | |
14200 | else | |
14201 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14202 | test "$localstatedir" = '${prefix}/var' && \ | |
14203 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14204 | enable_fhs_paths=no | |
14205 | else | |
14206 | enable_fhs_paths=yes | |
14207 | fi | |
14208 | ||
14209 | fi | |
14210 | ||
14211 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14212 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14213 | rundir=${rundir-'${prefix}/run'} | |
14214 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14215 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14216 | else | |
14217 | libexecdir='${bindir}' | |
14218 | pkglibexecdir='${libexecdir}' | |
14219 | rundir='${sysconfdir}' | |
14220 | pkgrundir='${rundir}' | |
7083c021 | 14221 | localstatedir='${prefix}' |
9f9b7042 | 14222 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 14223 | fi |
9f9b7042 NPB |
14224 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
14225 | ||
14226 | ||
14227 | ||
14228 | ||
14229 | ||
14230 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14231 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14232 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14233 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14234 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14235 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14236 | last_ac_define_dir="$ac_define_dir" | |
14237 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14238 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14239 | if test "x$ac_define_dir_counter" = x128; then : | |
14240 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
14241 | break | |
14242 | fi | |
9f9b7042 NPB |
14243 | done |
14244 | PKGLOCALSTATEDIR="$ac_define_dir" | |
14245 | ||
14246 | ||
14247 | cat >>confdefs.h <<_ACEOF | |
14248 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
14249 | _ACEOF | |
14250 | ||
14251 | ||
14252 | ||
14253 | ||
14254 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14255 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14256 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
14257 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14258 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14259 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14260 | last_ac_define_dir="$ac_define_dir" | |
14261 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14262 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14263 | if test "x$ac_define_dir_counter" = x128; then : | |
14264 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
14265 | break | |
14266 | fi | |
9f9b7042 NPB |
14267 | done |
14268 | PKGLIBEXECDIR="$ac_define_dir" | |
14269 | ||
14270 | ||
14271 | cat >>confdefs.h <<_ACEOF | |
14272 | #define PKGLIBEXECDIR "$ac_define_dir" | |
14273 | _ACEOF | |
14274 | ||
14275 | ||
212380e3 | 14276 | |
7083c021 AC |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
14278 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 14279 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 14280 | $as_echo_n "(cached) " >&6 |
212380e3 | 14281 | else |
7083c021 | 14282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14283 | /* end confdefs.h. */ |
7083c021 AC |
14284 | #include <stdlib.h> |
14285 | #include <stdarg.h> | |
14286 | #include <string.h> | |
14287 | #include <float.h> | |
212380e3 AC |
14288 | |
14289 | int | |
14290 | main () | |
14291 | { | |
7083c021 | 14292 | |
212380e3 AC |
14293 | ; |
14294 | return 0; | |
14295 | } | |
14296 | _ACEOF | |
7083c021 AC |
14297 | if ac_fn_c_try_compile "$LINENO"; then : |
14298 | ac_cv_header_stdc=yes | |
212380e3 | 14299 | else |
7083c021 | 14300 | ac_cv_header_stdc=no |
212380e3 | 14301 | fi |
631ef239 | 14302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14303 | |
7083c021 AC |
14304 | if test $ac_cv_header_stdc = yes; then |
14305 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14307 | /* end confdefs.h. */ | |
14308 | #include <string.h> | |
14309 | ||
212380e3 | 14310 | _ACEOF |
7083c021 AC |
14311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14312 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14313 | ||
14314 | else | |
14315 | ac_cv_header_stdc=no | |
14316 | fi | |
14317 | rm -f conftest* | |
212380e3 AC |
14318 | |
14319 | fi | |
14320 | ||
7083c021 AC |
14321 | if test $ac_cv_header_stdc = yes; then |
14322 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14324 | /* end confdefs.h. */ | |
14325 | #include <stdlib.h> | |
14326 | ||
14327 | _ACEOF | |
14328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14329 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 14330 | |
212380e3 | 14331 | else |
7083c021 | 14332 | ac_cv_header_stdc=no |
631ef239 | 14333 | fi |
7083c021 | 14334 | rm -f conftest* |
631ef239 | 14335 | |
7083c021 | 14336 | fi |
212380e3 | 14337 | |
7083c021 AC |
14338 | if test $ac_cv_header_stdc = yes; then |
14339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14340 | if test "$cross_compiling" = yes; then : | |
14341 | : | |
212380e3 | 14342 | else |
7083c021 | 14343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14344 | /* end confdefs.h. */ |
7083c021 AC |
14345 | #include <ctype.h> |
14346 | #include <stdlib.h> | |
14347 | #if ((' ' & 0x0FF) == 0x020) | |
14348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14350 | #else | |
14351 | # define ISLOWER(c) \ | |
14352 | (('a' <= (c) && (c) <= 'i') \ | |
14353 | || ('j' <= (c) && (c) <= 'r') \ | |
14354 | || ('s' <= (c) && (c) <= 'z')) | |
14355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 14356 | #endif |
7083c021 AC |
14357 | |
14358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
14359 | int |
14360 | main () | |
14361 | { | |
7083c021 AC |
14362 | int i; |
14363 | for (i = 0; i < 256; i++) | |
14364 | if (XOR (islower (i), ISLOWER (i)) | |
14365 | || toupper (i) != TOUPPER (i)) | |
14366 | return 2; | |
212380e3 AC |
14367 | return 0; |
14368 | } | |
14369 | _ACEOF | |
7083c021 | 14370 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 14371 | |
7083c021 AC |
14372 | else |
14373 | ac_cv_header_stdc=no | |
631ef239 | 14374 | fi |
7083c021 AC |
14375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14376 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14377 | fi |
7083c021 | 14378 | |
212380e3 | 14379 | fi |
212380e3 | 14380 | fi |
7083c021 AC |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14382 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14383 | if test $ac_cv_header_stdc = yes; then | |
14384 | ||
14385 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
14386 | |
14387 | fi | |
14388 | ||
14389 | ||
7083c021 AC |
14390 | 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 |
14391 | do : | |
14392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14393 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 14394 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14395 | cat >>confdefs.h <<_ACEOF |
14396 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14397 | _ACEOF | |
212380e3 | 14398 | |
212380e3 AC |
14399 | fi |
14400 | ||
7083c021 | 14401 | done |
212380e3 AC |
14402 | |
14403 | ||
212380e3 | 14404 | |
7083c021 AC |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14406 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 14407 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
14408 | $as_echo_n "(cached) " >&6 |
14409 | else | |
14410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14411 | /* end confdefs.h. */ | |
212380e3 | 14412 | |
7083c021 AC |
14413 | int |
14414 | main () | |
14415 | { | |
2eff3833 | 14416 | |
7083c021 | 14417 | #ifndef __cplusplus |
2eff3833 | 14418 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 14419 | typedef int charset[2]; |
2eff3833 | 14420 | const charset cs = { 0, 0 }; |
7083c021 AC |
14421 | /* SunOS 4.1.1 cc rejects this. */ |
14422 | char const *const *pcpcc; | |
14423 | char **ppc; | |
14424 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14425 | struct point {int x, y;}; | |
14426 | static struct point const zero = {0,0}; | |
14427 | /* AIX XL C 1.02.0.0 rejects this. | |
14428 | It does not let you subtract one const X* pointer from another in | |
14429 | an arm of an if-expression whose if-part is not a constant | |
14430 | expression */ | |
14431 | const char *g = "string"; | |
14432 | pcpcc = &g + (g ? g-g : 0); | |
14433 | /* HPUX 7.0 cc rejects these. */ | |
14434 | ++pcpcc; | |
14435 | ppc = (char**) pcpcc; | |
14436 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
14437 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14438 | char tx; | |
14439 | char *t = &tx; | |
7083c021 | 14440 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 14441 | |
7083c021 AC |
14442 | *t++ = 0; |
14443 | if (s) return 0; | |
14444 | } | |
14445 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14446 | int x[] = {25, 17}; | |
14447 | const int *foo = &x[0]; | |
14448 | ++foo; | |
14449 | } | |
14450 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14451 | typedef const int *iptr; | |
14452 | iptr p = 0; | |
14453 | ++p; | |
14454 | } | |
2eff3833 | 14455 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 14456 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
14457 | struct s { int j; const int *ap[3]; } bx; |
14458 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
14459 | } |
14460 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14461 | const int foo = 10; | |
14462 | if (!foo) return 0; | |
14463 | } | |
14464 | return !cs[0] && !zero.x; | |
14465 | #endif | |
212380e3 | 14466 | |
7083c021 AC |
14467 | ; |
14468 | return 0; | |
14469 | } | |
212380e3 | 14470 | _ACEOF |
7083c021 AC |
14471 | if ac_fn_c_try_compile "$LINENO"; then : |
14472 | ac_cv_c_const=yes | |
212380e3 | 14473 | else |
7083c021 | 14474 | ac_cv_c_const=no |
212380e3 | 14475 | fi |
631ef239 | 14476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14477 | fi |
7083c021 AC |
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14479 | $as_echo "$ac_cv_c_const" >&6; } | |
14480 | if test $ac_cv_c_const = no; then | |
212380e3 | 14481 | |
7083c021 | 14482 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
14483 | |
14484 | fi | |
14485 | ||
7083c021 AC |
14486 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14488 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 14489 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 14490 | $as_echo_n "(cached) " >&6 |
212380e3 | 14491 | else |
7083c021 AC |
14492 | ac_cv_c_bigendian=unknown |
14493 | # See if we're dealing with a universal compiler. | |
14494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14495 | /* end confdefs.h. */ | |
14496 | #ifndef __APPLE_CC__ | |
14497 | not a universal capable compiler | |
14498 | #endif | |
14499 | typedef int dummy; | |
14500 | ||
14501 | _ACEOF | |
14502 | if ac_fn_c_try_compile "$LINENO"; then : | |
14503 | ||
14504 | # Check for potential -arch flags. It is not universal unless | |
14505 | # there are at least two -arch flags with different values. | |
14506 | ac_arch= | |
14507 | ac_prev= | |
14508 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14509 | if test -n "$ac_prev"; then | |
14510 | case $ac_word in | |
14511 | i?86 | x86_64 | ppc | ppc64) | |
14512 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14513 | ac_arch=$ac_word | |
14514 | else | |
14515 | ac_cv_c_bigendian=universal | |
14516 | break | |
14517 | fi | |
14518 | ;; | |
14519 | esac | |
14520 | ac_prev= | |
14521 | elif test "x$ac_word" = "x-arch"; then | |
14522 | ac_prev=arch | |
14523 | fi | |
14524 | done | |
14525 | fi | |
14526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14527 | if test $ac_cv_c_bigendian = unknown; then | |
14528 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
14530 | /* end confdefs.h. */ |
14531 | #include <sys/types.h> | |
7083c021 | 14532 | #include <sys/param.h> |
212380e3 AC |
14533 | |
14534 | int | |
14535 | main () | |
14536 | { | |
7083c021 AC |
14537 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
14538 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14539 | && LITTLE_ENDIAN) | |
14540 | bogus endian macros | |
14541 | #endif | |
212380e3 AC |
14542 | |
14543 | ; | |
14544 | return 0; | |
14545 | } | |
14546 | _ACEOF | |
7083c021 | 14547 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14548 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 14549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
14550 | /* end confdefs.h. */ |
14551 | #include <sys/types.h> | |
7083c021 | 14552 | #include <sys/param.h> |
212380e3 AC |
14553 | |
14554 | int | |
14555 | main () | |
14556 | { | |
14557 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
14558 | not big endian |
14559 | #endif | |
212380e3 AC |
14560 | |
14561 | ; | |
14562 | return 0; | |
14563 | } | |
14564 | _ACEOF | |
7083c021 | 14565 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
14566 | ac_cv_c_bigendian=yes |
14567 | else | |
7083c021 | 14568 | ac_cv_c_bigendian=no |
212380e3 | 14569 | fi |
631ef239 | 14570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
14571 | fi |
14572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14573 | fi | |
14574 | if test $ac_cv_c_bigendian = unknown; then | |
14575 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14577 | /* end confdefs.h. */ | |
14578 | #include <limits.h> | |
212380e3 | 14579 | |
7083c021 AC |
14580 | int |
14581 | main () | |
14582 | { | |
14583 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14584 | bogus endian macros | |
14585 | #endif | |
14586 | ||
14587 | ; | |
14588 | return 0; | |
14589 | } | |
212380e3 | 14590 | _ACEOF |
7083c021 AC |
14591 | if ac_fn_c_try_compile "$LINENO"; then : |
14592 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14594 | /* end confdefs.h. */ |
7083c021 AC |
14595 | #include <limits.h> |
14596 | ||
212380e3 AC |
14597 | int |
14598 | main () | |
14599 | { | |
7083c021 AC |
14600 | #ifndef _BIG_ENDIAN |
14601 | not big endian | |
14602 | #endif | |
14603 | ||
212380e3 AC |
14604 | ; |
14605 | return 0; | |
14606 | } | |
14607 | _ACEOF | |
7083c021 | 14608 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14609 | ac_cv_c_bigendian=yes |
7083c021 AC |
14610 | else |
14611 | ac_cv_c_bigendian=no | |
212380e3 | 14612 | fi |
7083c021 | 14613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14614 | fi |
7083c021 AC |
14615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14616 | fi | |
14617 | if test $ac_cv_c_bigendian = unknown; then | |
14618 | # Compile a test program. | |
14619 | if test "$cross_compiling" = yes; then : | |
14620 | # Try to guess by grepping values from an object file. | |
14621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14622 | /* end confdefs.h. */ | |
14623 | short int ascii_mm[] = | |
14624 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14625 | short int ascii_ii[] = | |
14626 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14627 | int use_ascii (int i) { | |
14628 | return ascii_mm[i] + ascii_ii[i]; | |
14629 | } | |
14630 | short int ebcdic_ii[] = | |
14631 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14632 | short int ebcdic_mm[] = | |
14633 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14634 | int use_ebcdic (int i) { | |
14635 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14636 | } | |
14637 | extern int foo; | |
631ef239 | 14638 | |
7083c021 AC |
14639 | int |
14640 | main () | |
14641 | { | |
14642 | return use_ascii (foo) == use_ebcdic (foo); | |
14643 | ; | |
14644 | return 0; | |
14645 | } | |
14646 | _ACEOF | |
14647 | if ac_fn_c_try_compile "$LINENO"; then : | |
14648 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14649 | ac_cv_c_bigendian=yes | |
14650 | fi | |
14651 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14652 | if test "$ac_cv_c_bigendian" = unknown; then | |
14653 | ac_cv_c_bigendian=no | |
14654 | else | |
14655 | # finding both strings is unlikely to happen, but who knows? | |
14656 | ac_cv_c_bigendian=unknown | |
14657 | fi | |
14658 | fi | |
212380e3 | 14659 | fi |
631ef239 | 14660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14661 | else |
7083c021 | 14662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14663 | /* end confdefs.h. */ |
631ef239 | 14664 | $ac_includes_default |
212380e3 AC |
14665 | int |
14666 | main () | |
14667 | { | |
631ef239 | 14668 | |
7083c021 AC |
14669 | /* Are we little or big endian? From Harbison&Steele. */ |
14670 | union | |
14671 | { | |
14672 | long int l; | |
14673 | char c[sizeof (long int)]; | |
14674 | } u; | |
14675 | u.l = 1; | |
14676 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
14677 | |
14678 | ; | |
14679 | return 0; | |
212380e3 AC |
14680 | } |
14681 | _ACEOF | |
7083c021 | 14682 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
14683 | ac_cv_c_bigendian=no |
14684 | else | |
7083c021 | 14685 | ac_cv_c_bigendian=yes |
212380e3 | 14686 | fi |
7083c021 AC |
14687 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14688 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14689 | fi |
631ef239 | 14690 | |
7083c021 | 14691 | fi |
212380e3 | 14692 | fi |
7083c021 AC |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
14694 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14695 | case $ac_cv_c_bigendian in #( | |
14696 | yes) | |
14697 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14698 | ;; #( | |
14699 | no) | |
14700 | ;; #( | |
14701 | universal) | |
14702 | ||
14703 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14704 | ||
14705 | ;; #( | |
14706 | *) | |
b6d0720c | 14707 | as_fn_error $? "unknown endianness |
7083c021 AC |
14708 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
14709 | esac | |
631ef239 | 14710 | |
212380e3 | 14711 | fi |
7083c021 | 14712 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 14713 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 14714 | |
7083c021 | 14715 | else |
212380e3 | 14716 | |
7083c021 AC |
14717 | cat >>confdefs.h <<_ACEOF |
14718 | #define pid_t int | |
14719 | _ACEOF | |
212380e3 | 14720 | |
212380e3 | 14721 | fi |
7083c021 AC |
14722 | |
14723 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 14724 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 14725 | |
212380e3 | 14726 | else |
7083c021 AC |
14727 | |
14728 | cat >>confdefs.h <<_ACEOF | |
14729 | #define size_t unsigned int | |
212380e3 | 14730 | _ACEOF |
7083c021 AC |
14731 | |
14732 | fi | |
14733 | ||
14734 | # The cast to long int works around a bug in the HP C Compiler | |
14735 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14736 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14737 | # This bug is HP SR number 8606223364. | |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14739 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 14740 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 14741 | $as_echo_n "(cached) " >&6 |
212380e3 | 14742 | else |
7083c021 AC |
14743 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
14744 | ||
14745 | else | |
14746 | if test "$ac_cv_type_short" = yes; then | |
14747 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14749 | as_fn_error 77 "cannot compute sizeof (short) |
14750 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14751 | else |
14752 | ac_cv_sizeof_short=0 | |
14753 | fi | |
14754 | fi | |
212380e3 | 14755 | |
212380e3 | 14756 | fi |
7083c021 AC |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
14758 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 14759 | |
212380e3 | 14760 | |
7083c021 AC |
14761 | |
14762 | cat >>confdefs.h <<_ACEOF | |
14763 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 14764 | _ACEOF |
7083c021 AC |
14765 | |
14766 | ||
14767 | # The cast to long int works around a bug in the HP C Compiler | |
14768 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14769 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14770 | # This bug is HP SR number 8606223364. | |
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14772 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 14773 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
14774 | $as_echo_n "(cached) " >&6 |
14775 | else | |
14776 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14777 | ||
14778 | else | |
14779 | if test "$ac_cv_type_int" = yes; then | |
14780 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14781 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14782 | as_fn_error 77 "cannot compute sizeof (int) |
14783 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14784 | else |
14785 | ac_cv_sizeof_int=0 | |
14786 | fi | |
14787 | fi | |
14788 | ||
14789 | fi | |
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14791 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14792 | ||
14793 | ||
14794 | ||
14795 | cat >>confdefs.h <<_ACEOF | |
14796 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 14797 | _ACEOF |
7083c021 AC |
14798 | |
14799 | ||
14800 | # The cast to long int works around a bug in the HP C Compiler | |
14801 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14802 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14803 | # This bug is HP SR number 8606223364. | |
14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14805 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 14806 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 14807 | $as_echo_n "(cached) " >&6 |
212380e3 | 14808 | else |
7083c021 | 14809 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 14810 | |
7083c021 AC |
14811 | else |
14812 | if test "$ac_cv_type_long" = yes; then | |
14813 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14814 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14815 | as_fn_error 77 "cannot compute sizeof (long) |
14816 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14817 | else |
14818 | ac_cv_sizeof_long=0 | |
14819 | fi | |
212380e3 | 14820 | fi |
631ef239 | 14821 | |
7083c021 AC |
14822 | fi |
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14824 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 14825 | |
631ef239 | 14826 | |
7083c021 AC |
14827 | |
14828 | cat >>confdefs.h <<_ACEOF | |
14829 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14830 | _ACEOF | |
14831 | ||
14832 | ||
14833 | # The cast to long int works around a bug in the HP C Compiler | |
14834 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14835 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14836 | # This bug is HP SR number 8606223364. | |
14837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14838 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 14839 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
14840 | $as_echo_n "(cached) " >&6 |
14841 | else | |
14842 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14843 | ||
212380e3 | 14844 | else |
7083c021 AC |
14845 | if test "$ac_cv_type_long_long" = yes; then |
14846 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14847 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14848 | as_fn_error 77 "cannot compute sizeof (long long) |
14849 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14850 | else |
14851 | ac_cv_sizeof_long_long=0 | |
14852 | fi | |
212380e3 | 14853 | fi |
212380e3 AC |
14854 | |
14855 | fi | |
7083c021 AC |
14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
14857 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
14858 | |
14859 | ||
14860 | ||
7083c021 AC |
14861 | cat >>confdefs.h <<_ACEOF |
14862 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14863 | _ACEOF | |
212380e3 | 14864 | |
212380e3 | 14865 | |
212380e3 | 14866 | |
7083c021 AC |
14867 | |
14868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
14869 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 14870 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14871 | $as_echo_n "(cached) " >&6 |
14872 | else | |
14873 | ac_func_search_save_LIBS=$LIBS | |
14874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14875 | /* end confdefs.h. */ |
7083c021 AC |
14876 | |
14877 | /* Override any GCC internal prototype to avoid an error. | |
14878 | Use char because int might match the return type of a GCC | |
14879 | builtin and then its argument prototype would still apply. */ | |
14880 | #ifdef __cplusplus | |
14881 | extern "C" | |
14882 | #endif | |
14883 | char socket (); | |
212380e3 AC |
14884 | int |
14885 | main () | |
14886 | { | |
7083c021 | 14887 | return socket (); |
212380e3 AC |
14888 | ; |
14889 | return 0; | |
14890 | } | |
14891 | _ACEOF | |
7083c021 AC |
14892 | for ac_lib in '' socket; do |
14893 | if test -z "$ac_lib"; then | |
14894 | ac_res="none required" | |
14895 | else | |
14896 | ac_res=-l$ac_lib | |
14897 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14898 | fi | |
14899 | if ac_fn_c_try_link "$LINENO"; then : | |
14900 | ac_cv_search_socket=$ac_res | |
14901 | fi | |
14902 | rm -f core conftest.err conftest.$ac_objext \ | |
14903 | conftest$ac_exeext | |
b6d0720c | 14904 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14905 | break |
14906 | fi | |
14907 | done | |
b6d0720c | 14908 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
14909 | |
14910 | else | |
7083c021 AC |
14911 | ac_cv_search_socket=no |
14912 | fi | |
14913 | rm conftest.$ac_ext | |
14914 | LIBS=$ac_func_search_save_LIBS | |
14915 | fi | |
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
14917 | $as_echo "$ac_cv_search_socket" >&6; } | |
14918 | ac_res=$ac_cv_search_socket | |
14919 | if test "$ac_res" != no; then : | |
14920 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14921 | |
7083c021 | 14922 | else |
b6d0720c | 14923 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 14924 | fi |
631ef239 | 14925 | |
212380e3 | 14926 | |
7083c021 AC |
14927 | if test x"$SUN" = xyes; then |
14928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
14929 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 14930 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14931 | $as_echo_n "(cached) " >&6 |
14932 | else | |
14933 | ac_func_search_save_LIBS=$LIBS | |
14934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14935 | /* end confdefs.h. */ |
7083c021 AC |
14936 | |
14937 | /* Override any GCC internal prototype to avoid an error. | |
14938 | Use char because int might match the return type of a GCC | |
14939 | builtin and then its argument prototype would still apply. */ | |
14940 | #ifdef __cplusplus | |
14941 | extern "C" | |
14942 | #endif | |
14943 | char inet_ntoa (); | |
212380e3 AC |
14944 | int |
14945 | main () | |
14946 | { | |
7083c021 | 14947 | return inet_ntoa (); |
212380e3 AC |
14948 | ; |
14949 | return 0; | |
14950 | } | |
14951 | _ACEOF | |
7083c021 AC |
14952 | for ac_lib in '' nsl; do |
14953 | if test -z "$ac_lib"; then | |
14954 | ac_res="none required" | |
14955 | else | |
14956 | ac_res=-l$ac_lib | |
14957 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14958 | fi | |
14959 | if ac_fn_c_try_link "$LINENO"; then : | |
14960 | ac_cv_search_inet_ntoa=$ac_res | |
14961 | fi | |
14962 | rm -f core conftest.err conftest.$ac_objext \ | |
14963 | conftest$ac_exeext | |
b6d0720c | 14964 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14965 | break |
14966 | fi | |
14967 | done | |
b6d0720c | 14968 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
14969 | |
14970 | else | |
7083c021 AC |
14971 | ac_cv_search_inet_ntoa=no |
14972 | fi | |
14973 | rm conftest.$ac_ext | |
14974 | LIBS=$ac_func_search_save_LIBS | |
14975 | fi | |
14976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
14977 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
14978 | ac_res=$ac_cv_search_inet_ntoa | |
14979 | if test "$ac_res" != no; then : | |
14980 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14981 | |
7083c021 | 14982 | else |
b6d0720c | 14983 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 14984 | fi |
631ef239 | 14985 | |
7083c021 | 14986 | fi |
212380e3 | 14987 | |
7083c021 AC |
14988 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
14989 | #include <sys/socket.h> | |
14990 | " | |
b6d0720c | 14991 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
14992 | |
14993 | else | |
14994 | ||
7083c021 | 14995 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 14996 | |
7083c021 | 14997 | fi |
212380e3 AC |
14998 | |
14999 | ||
7083c021 AC |
15000 | # Check whether --enable-ipv6 was given. |
15001 | if test "${enable_ipv6+set}" = set; then : | |
15002 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 15003 | else |
7083c021 AC |
15004 | ipv6=no |
15005 | fi | |
212380e3 | 15006 | |
212380e3 | 15007 | |
7083c021 AC |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
15009 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 15010 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15011 | $as_echo_n "(cached) " >&6 |
15012 | else | |
15013 | ac_func_search_save_LIBS=$LIBS | |
15014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15015 | /* end confdefs.h. */ | |
212380e3 | 15016 | |
631ef239 AC |
15017 | /* Override any GCC internal prototype to avoid an error. |
15018 | Use char because int might match the return type of a GCC | |
15019 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15020 | #ifdef __cplusplus |
15021 | extern "C" | |
212380e3 | 15022 | #endif |
7083c021 | 15023 | char crypt (); |
212380e3 AC |
15024 | int |
15025 | main () | |
15026 | { | |
7083c021 | 15027 | return crypt (); |
212380e3 AC |
15028 | ; |
15029 | return 0; | |
15030 | } | |
15031 | _ACEOF | |
7083c021 AC |
15032 | for ac_lib in '' crypt descrypt; do |
15033 | if test -z "$ac_lib"; then | |
15034 | ac_res="none required" | |
15035 | else | |
15036 | ac_res=-l$ac_lib | |
15037 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15038 | fi | |
15039 | if ac_fn_c_try_link "$LINENO"; then : | |
15040 | ac_cv_search_crypt=$ac_res | |
15041 | fi | |
15042 | rm -f core conftest.err conftest.$ac_objext \ | |
15043 | conftest$ac_exeext | |
b6d0720c | 15044 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15045 | break |
15046 | fi | |
15047 | done | |
b6d0720c | 15048 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 15049 | |
212380e3 | 15050 | else |
7083c021 AC |
15051 | ac_cv_search_crypt=no |
15052 | fi | |
15053 | rm conftest.$ac_ext | |
15054 | LIBS=$ac_func_search_save_LIBS | |
15055 | fi | |
15056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15057 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15058 | ac_res=$ac_cv_search_crypt | |
15059 | if test "$ac_res" != no; then : | |
15060 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15061 | |
212380e3 | 15062 | fi |
631ef239 | 15063 | |
7083c021 AC |
15064 | |
15065 | CRYPT_LIB=$ac_cv_search_crypt | |
15066 | ||
15067 | if test "$CRYPT_LIB" = "none required"; then | |
15068 | unset CRYPT_LIB | |
15069 | elif test "$CRYPT_LIB" = no; then | |
15070 | unset CRYPT_LIB | |
212380e3 | 15071 | fi |
7083c021 AC |
15072 | |
15073 | ||
15074 | ||
7083c021 AC |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15076 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 15077 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
15078 | $as_echo_n "(cached) " >&6 |
15079 | else | |
15080 | ac_cv_c_bigendian=unknown | |
15081 | # See if we're dealing with a universal compiler. | |
15082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15083 | /* end confdefs.h. */ | |
15084 | #ifndef __APPLE_CC__ | |
15085 | not a universal capable compiler | |
15086 | #endif | |
15087 | typedef int dummy; | |
15088 | ||
15089 | _ACEOF | |
15090 | if ac_fn_c_try_compile "$LINENO"; then : | |
15091 | ||
15092 | # Check for potential -arch flags. It is not universal unless | |
15093 | # there are at least two -arch flags with different values. | |
15094 | ac_arch= | |
15095 | ac_prev= | |
15096 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15097 | if test -n "$ac_prev"; then | |
15098 | case $ac_word in | |
15099 | i?86 | x86_64 | ppc | ppc64) | |
15100 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15101 | ac_arch=$ac_word | |
15102 | else | |
15103 | ac_cv_c_bigendian=universal | |
15104 | break | |
15105 | fi | |
15106 | ;; | |
15107 | esac | |
15108 | ac_prev= | |
15109 | elif test "x$ac_word" = "x-arch"; then | |
15110 | ac_prev=arch | |
15111 | fi | |
15112 | done | |
212380e3 | 15113 | fi |
7083c021 AC |
15114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15115 | if test $ac_cv_c_bigendian = unknown; then | |
15116 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15118 | /* end confdefs.h. */ | |
15119 | #include <sys/types.h> | |
15120 | #include <sys/param.h> | |
15121 | ||
15122 | int | |
15123 | main () | |
15124 | { | |
15125 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15126 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15127 | && LITTLE_ENDIAN) | |
15128 | bogus endian macros | |
15129 | #endif | |
15130 | ||
15131 | ; | |
15132 | return 0; | |
15133 | } | |
15134 | _ACEOF | |
15135 | if ac_fn_c_try_compile "$LINENO"; then : | |
15136 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15138 | /* end confdefs.h. */ | |
15139 | #include <sys/types.h> | |
15140 | #include <sys/param.h> | |
15141 | ||
15142 | int | |
15143 | main () | |
15144 | { | |
15145 | #if BYTE_ORDER != BIG_ENDIAN | |
15146 | not big endian | |
15147 | #endif | |
212380e3 | 15148 | |
7083c021 AC |
15149 | ; |
15150 | return 0; | |
15151 | } | |
15152 | _ACEOF | |
15153 | if ac_fn_c_try_compile "$LINENO"; then : | |
15154 | ac_cv_c_bigendian=yes | |
212380e3 | 15155 | else |
7083c021 AC |
15156 | ac_cv_c_bigendian=no |
15157 | fi | |
15158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15159 | fi | |
15160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15161 | fi | |
15162 | if test $ac_cv_c_bigendian = unknown; then | |
15163 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15165 | /* end confdefs.h. */ | |
15166 | #include <limits.h> | |
15167 | ||
15168 | int | |
15169 | main () | |
15170 | { | |
15171 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15172 | bogus endian macros | |
15173 | #endif | |
15174 | ||
15175 | ; | |
15176 | return 0; | |
15177 | } | |
212380e3 | 15178 | _ACEOF |
7083c021 AC |
15179 | if ac_fn_c_try_compile "$LINENO"; then : |
15180 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15182 | /* end confdefs.h. */ |
7083c021 AC |
15183 | #include <limits.h> |
15184 | ||
212380e3 AC |
15185 | int |
15186 | main () | |
15187 | { | |
7083c021 AC |
15188 | #ifndef _BIG_ENDIAN |
15189 | not big endian | |
15190 | #endif | |
15191 | ||
212380e3 AC |
15192 | ; |
15193 | return 0; | |
15194 | } | |
15195 | _ACEOF | |
7083c021 AC |
15196 | if ac_fn_c_try_compile "$LINENO"; then : |
15197 | ac_cv_c_bigendian=yes | |
212380e3 | 15198 | else |
7083c021 | 15199 | ac_cv_c_bigendian=no |
212380e3 | 15200 | fi |
631ef239 | 15201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15202 | fi |
7083c021 AC |
15203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15204 | fi | |
15205 | if test $ac_cv_c_bigendian = unknown; then | |
15206 | # Compile a test program. | |
15207 | if test "$cross_compiling" = yes; then : | |
15208 | # Try to guess by grepping values from an object file. | |
15209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15210 | /* end confdefs.h. */ | |
15211 | short int ascii_mm[] = | |
15212 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15213 | short int ascii_ii[] = | |
15214 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15215 | int use_ascii (int i) { | |
15216 | return ascii_mm[i] + ascii_ii[i]; | |
15217 | } | |
15218 | short int ebcdic_ii[] = | |
15219 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15220 | short int ebcdic_mm[] = | |
15221 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15222 | int use_ebcdic (int i) { | |
15223 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15224 | } | |
15225 | extern int foo; | |
212380e3 | 15226 | |
7083c021 AC |
15227 | int |
15228 | main () | |
15229 | { | |
15230 | return use_ascii (foo) == use_ebcdic (foo); | |
15231 | ; | |
15232 | return 0; | |
15233 | } | |
212380e3 | 15234 | _ACEOF |
7083c021 AC |
15235 | if ac_fn_c_try_compile "$LINENO"; then : |
15236 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15237 | ac_cv_c_bigendian=yes | |
15238 | fi | |
15239 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15240 | if test "$ac_cv_c_bigendian" = unknown; then | |
15241 | ac_cv_c_bigendian=no | |
15242 | else | |
15243 | # finding both strings is unlikely to happen, but who knows? | |
15244 | ac_cv_c_bigendian=unknown | |
15245 | fi | |
15246 | fi | |
15247 | fi | |
15248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15249 | else | |
15250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
15251 | /* end confdefs.h. */ |
15252 | $ac_includes_default | |
15253 | int | |
15254 | main () | |
15255 | { | |
7083c021 AC |
15256 | |
15257 | /* Are we little or big endian? From Harbison&Steele. */ | |
15258 | union | |
15259 | { | |
15260 | long int l; | |
15261 | char c[sizeof (long int)]; | |
15262 | } u; | |
15263 | u.l = 1; | |
15264 | return u.c[sizeof (long int) - 1] == 1; | |
15265 | ||
212380e3 AC |
15266 | ; |
15267 | return 0; | |
15268 | } | |
15269 | _ACEOF | |
7083c021 AC |
15270 | if ac_fn_c_try_run "$LINENO"; then : |
15271 | ac_cv_c_bigendian=no | |
212380e3 | 15272 | else |
7083c021 | 15273 | ac_cv_c_bigendian=yes |
212380e3 | 15274 | fi |
7083c021 AC |
15275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15276 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15277 | fi |
212380e3 | 15278 | |
7083c021 AC |
15279 | fi |
15280 | fi | |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15282 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15283 | case $ac_cv_c_bigendian in #( | |
15284 | yes) | |
15285 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15286 | ;; #( | |
15287 | no) | |
15288 | ;; #( | |
15289 | universal) | |
212380e3 | 15290 | |
7083c021 | 15291 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 15292 | |
7083c021 AC |
15293 | ;; #( |
15294 | *) | |
b6d0720c | 15295 | as_fn_error $? "unknown endianness |
7083c021 AC |
15296 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
15297 | esac | |
212380e3 | 15298 | |
212380e3 | 15299 | |
7083c021 | 15300 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 15301 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 15302 | |
7083c021 | 15303 | else |
b6d0720c | 15304 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 15305 | fi |
212380e3 AC |
15306 | |
15307 | ||
7083c021 AC |
15308 | for ac_func in strlcat strlcpy |
15309 | do : | |
15310 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15311 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15312 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
15313 | cat >>confdefs.h <<_ACEOF |
15314 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
15315 | _ACEOF |
15316 | ||
212380e3 | 15317 | fi |
7083c021 | 15318 | done |
212380e3 AC |
15319 | |
15320 | ||
7083c021 | 15321 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 15322 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 15323 | |
212380e3 | 15324 | else |
212380e3 | 15325 | |
7083c021 | 15326 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 15327 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 15328 | |
631ef239 | 15329 | |
7083c021 | 15330 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 15331 | |
212380e3 | 15332 | |
7083c021 | 15333 | else |
212380e3 | 15334 | |
7083c021 AC |
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
15336 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 15337 | |
7083c021 | 15338 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 15339 | |
212380e3 | 15340 | |
212380e3 | 15341 | fi |
631ef239 | 15342 | |
7083c021 | 15343 | |
212380e3 | 15344 | fi |
7083c021 AC |
15345 | |
15346 | ||
15347 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 15348 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 15349 | |
212380e3 AC |
15350 | else |
15351 | ||
7083c021 | 15352 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 15353 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 15354 | |
7083c021 AC |
15355 | |
15356 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
15357 | |
15358 | ||
212380e3 | 15359 | else |
212380e3 | 15360 | |
7083c021 AC |
15361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
15362 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 15363 | |
7083c021 | 15364 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 15365 | |
7083c021 AC |
15366 | |
15367 | fi | |
212380e3 AC |
15368 | |
15369 | ||
15370 | fi | |
15371 | ||
15372 | ||
7083c021 AC |
15373 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
15374 | #include <netinet/in.h> | |
15375 | " | |
b6d0720c | 15376 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 15377 | |
7083c021 | 15378 | else |
212380e3 | 15379 | |
7083c021 | 15380 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 15381 | |
7083c021 | 15382 | fi |
212380e3 AC |
15383 | |
15384 | ||
7083c021 AC |
15385 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
15386 | #include <sys/socket.h> | |
15387 | " | |
b6d0720c | 15388 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 15389 | |
212380e3 | 15390 | else |
212380e3 | 15391 | |
7083c021 | 15392 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 15393 | |
7083c021 | 15394 | fi |
212380e3 | 15395 | |
212380e3 | 15396 | |
7083c021 | 15397 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 15398 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 15399 | |
7083c021 AC |
15400 | cat >>confdefs.h <<_ACEOF |
15401 | #define HAVE_UINTPTR_T 1 | |
15402 | _ACEOF | |
212380e3 | 15403 | |
631ef239 | 15404 | |
212380e3 | 15405 | fi |
7083c021 AC |
15406 | |
15407 | ||
5203cba5 | 15408 | for ac_func in snprintf vsnprintf socketpair mmap gettimeofday strdup strndup |
7083c021 AC |
15409 | do : |
15410 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15411 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15412 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 15413 | cat >>confdefs.h <<_ACEOF |
7083c021 | 15414 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
15415 | _ACEOF |
15416 | ||
15417 | fi | |
15418 | done | |
15419 | ||
15420 | ||
15421 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15422 | # for constant arguments. Useless! | |
7083c021 AC |
15423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
15424 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 15425 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 15426 | $as_echo_n "(cached) " >&6 |
212380e3 | 15427 | else |
7083c021 | 15428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15429 | /* end confdefs.h. */ |
15430 | #include <alloca.h> | |
15431 | int | |
15432 | main () | |
15433 | { | |
15434 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 15435 | if (p) return 0; |
212380e3 AC |
15436 | ; |
15437 | return 0; | |
15438 | } | |
15439 | _ACEOF | |
7083c021 | 15440 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15441 | ac_cv_working_alloca_h=yes |
15442 | else | |
7083c021 | 15443 | ac_cv_working_alloca_h=no |
212380e3 | 15444 | fi |
7083c021 AC |
15445 | rm -f core conftest.err conftest.$ac_objext \ |
15446 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15447 | fi |
7083c021 AC |
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
15449 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
15450 | if test $ac_cv_working_alloca_h = yes; then |
15451 | ||
7083c021 | 15452 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
15453 | |
15454 | fi | |
15455 | ||
7083c021 AC |
15456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
15457 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 15458 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 15459 | $as_echo_n "(cached) " >&6 |
212380e3 | 15460 | else |
7083c021 | 15461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15462 | /* end confdefs.h. */ |
15463 | #ifdef __GNUC__ | |
15464 | # define alloca __builtin_alloca | |
15465 | #else | |
15466 | # ifdef _MSC_VER | |
15467 | # include <malloc.h> | |
15468 | # define alloca _alloca | |
15469 | # else | |
631ef239 | 15470 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
15471 | # include <alloca.h> |
15472 | # else | |
15473 | # ifdef _AIX | |
15474 | #pragma alloca | |
15475 | # else | |
15476 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 15477 | void *alloca (size_t); |
212380e3 AC |
15478 | # endif |
15479 | # endif | |
15480 | # endif | |
15481 | # endif | |
15482 | #endif | |
15483 | ||
15484 | int | |
15485 | main () | |
15486 | { | |
15487 | char *p = (char *) alloca (1); | |
631ef239 | 15488 | if (p) return 0; |
212380e3 AC |
15489 | ; |
15490 | return 0; | |
15491 | } | |
15492 | _ACEOF | |
7083c021 | 15493 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15494 | ac_cv_func_alloca_works=yes |
15495 | else | |
7083c021 | 15496 | ac_cv_func_alloca_works=no |
212380e3 | 15497 | fi |
7083c021 AC |
15498 | rm -f core conftest.err conftest.$ac_objext \ |
15499 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15500 | fi |
7083c021 AC |
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
15502 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
15503 | |
15504 | if test $ac_cv_func_alloca_works = yes; then | |
15505 | ||
7083c021 | 15506 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15507 | |
15508 | else | |
15509 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15510 | # that cause trouble. Some versions do not even contain alloca or | |
15511 | # contain a buggy version. If you still want to use their alloca, | |
15512 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15513 | ||
631ef239 | 15514 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 15515 | |
7083c021 | 15516 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15517 | |
15518 | ||
7083c021 AC |
15519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
15520 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 15521 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 15522 | $as_echo_n "(cached) " >&6 |
212380e3 | 15523 | else |
7083c021 | 15524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15525 | /* end confdefs.h. */ |
631ef239 | 15526 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
15527 | webecray |
15528 | #else | |
15529 | wenotbecray | |
15530 | #endif | |
15531 | ||
15532 | _ACEOF | |
15533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 15534 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
15535 | ac_cv_os_cray=yes |
15536 | else | |
15537 | ac_cv_os_cray=no | |
15538 | fi | |
15539 | rm -f conftest* | |
15540 | ||
15541 | fi | |
7083c021 AC |
15542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
15543 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
15544 | if test $ac_cv_os_cray = yes; then |
15545 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
15546 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15547 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15548 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
15549 | |
15550 | cat >>confdefs.h <<_ACEOF | |
15551 | #define CRAY_STACKSEG_END $ac_func | |
15552 | _ACEOF | |
15553 | ||
15554 | break | |
15555 | fi | |
15556 | ||
15557 | done | |
15558 | fi | |
15559 | ||
7083c021 AC |
15560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
15561 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 15562 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 15563 | $as_echo_n "(cached) " >&6 |
212380e3 | 15564 | else |
7083c021 | 15565 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
15566 | ac_cv_c_stack_direction=0 |
15567 | else | |
7083c021 | 15568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15569 | /* end confdefs.h. */ |
631ef239 | 15570 | $ac_includes_default |
212380e3 | 15571 | int |
2eff3833 | 15572 | find_stack_direction (int *addr, int depth) |
212380e3 | 15573 | { |
2eff3833 JT |
15574 | int dir, dummy = 0; |
15575 | if (! addr) | |
15576 | addr = &dummy; | |
15577 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15578 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15579 | return dir + dummy; | |
212380e3 AC |
15580 | } |
15581 | ||
15582 | int | |
2eff3833 | 15583 | main (int argc, char **argv) |
212380e3 | 15584 | { |
2eff3833 | 15585 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
15586 | } |
15587 | _ACEOF | |
7083c021 | 15588 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15589 | ac_cv_c_stack_direction=1 |
15590 | else | |
7083c021 | 15591 | ac_cv_c_stack_direction=-1 |
212380e3 | 15592 | fi |
7083c021 AC |
15593 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15594 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15595 | fi |
631ef239 | 15596 | |
212380e3 | 15597 | fi |
7083c021 AC |
15598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
15599 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
15600 | cat >>confdefs.h <<_ACEOF |
15601 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15602 | _ACEOF | |
15603 | ||
15604 | ||
15605 | fi | |
15606 | ||
15607 | ||
15608 | ||
7083c021 | 15609 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 15610 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 15611 | |
212380e3 | 15612 | else |
7083c021 AC |
15613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
15614 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 15615 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 15616 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15617 | else |
15618 | ac_check_lib_save_LIBS=$LIBS | |
15619 | LIBS="-lrt $LIBS" | |
7083c021 | 15620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15621 | /* end confdefs.h. */ |
15622 | ||
631ef239 AC |
15623 | /* Override any GCC internal prototype to avoid an error. |
15624 | Use char because int might match the return type of a GCC | |
15625 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15626 | #ifdef __cplusplus |
15627 | extern "C" | |
15628 | #endif | |
212380e3 AC |
15629 | char nanosleep (); |
15630 | int | |
15631 | main () | |
15632 | { | |
631ef239 | 15633 | return nanosleep (); |
212380e3 AC |
15634 | ; |
15635 | return 0; | |
15636 | } | |
15637 | _ACEOF | |
7083c021 | 15638 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15639 | ac_cv_lib_rt_nanosleep=yes |
15640 | else | |
7083c021 | 15641 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 15642 | fi |
7083c021 AC |
15643 | rm -f core conftest.err conftest.$ac_objext \ |
15644 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15645 | LIBS=$ac_check_lib_save_LIBS |
15646 | fi | |
7083c021 AC |
15647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
15648 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 15649 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
15650 | LIBS="${LIBS} -lrt" |
15651 | else | |
7083c021 AC |
15652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
15653 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 15654 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 15655 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15656 | else |
15657 | ac_check_lib_save_LIBS=$LIBS | |
15658 | LIBS="-lposix4 $LIBS" | |
7083c021 | 15659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15660 | /* end confdefs.h. */ |
15661 | ||
631ef239 AC |
15662 | /* Override any GCC internal prototype to avoid an error. |
15663 | Use char because int might match the return type of a GCC | |
15664 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15665 | #ifdef __cplusplus |
15666 | extern "C" | |
15667 | #endif | |
212380e3 AC |
15668 | char nanosleep (); |
15669 | int | |
15670 | main () | |
15671 | { | |
631ef239 | 15672 | return nanosleep (); |
212380e3 AC |
15673 | ; |
15674 | return 0; | |
15675 | } | |
15676 | _ACEOF | |
7083c021 | 15677 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15678 | ac_cv_lib_posix4_nanosleep=yes |
15679 | else | |
7083c021 | 15680 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 15681 | fi |
7083c021 AC |
15682 | rm -f core conftest.err conftest.$ac_objext \ |
15683 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15684 | LIBS=$ac_check_lib_save_LIBS |
15685 | fi | |
7083c021 AC |
15686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
15687 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 15688 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
15689 | LIBS="${LIBS} -lposix4" |
15690 | ||
15691 | fi | |
15692 | ||
15693 | fi | |
15694 | ||
15695 | fi | |
15696 | ||
15697 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
15698 | then | |
7083c021 AC |
15699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
15700 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
15701 | else |
15702 | ||
7083c021 | 15703 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
15704 | |
15705 | fi | |
15706 | ||
7083c021 AC |
15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
15708 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 15709 | # Check whether --enable-openssl was given. |
7083c021 | 15710 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 15711 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
15712 | else |
15713 | cf_enable_openssl="auto" | |
631ef239 AC |
15714 | fi |
15715 | ||
212380e3 AC |
15716 | |
15717 | if test "$cf_enable_openssl" != "no" ; then | |
15718 | cf_openssl_basedir="" | |
15719 | if test "$cf_enable_openssl" != "auto" && | |
15720 | test "$cf_enable_openssl" != "yes" ; then | |
15721 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
15722 | else | |
15723 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
15724 | /usr/local/openssl ; do | |
15725 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
15726 | cf_openssl_basedir="${dirs}" | |
15727 | break | |
15728 | fi | |
15729 | done | |
15730 | unset dirs | |
15731 | fi | |
15732 | if test ! -z "$cf_openssl_basedir"; then | |
15733 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
15734 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
15735 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
15736 | else | |
15737 | cf_openssl_basedir="" | |
15738 | fi | |
15739 | else | |
15740 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
15741 | cf_openssl_basedir="/usr" | |
15742 | fi | |
15743 | fi | |
15744 | ||
15745 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
15747 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
15748 | cf_enable_openssl="yes" |
15749 | else | |
7083c021 AC |
15750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
15751 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
15752 | cf_enable_openssl="no" |
15753 | fi | |
15754 | unset cf_openssl_basedir | |
15755 | else | |
7083c021 AC |
15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
15757 | $as_echo "disabled" >&6; } | |
212380e3 AC |
15758 | fi |
15759 | ||
15760 | save_CPPFLAGS="$CPPFLAGS" | |
15761 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
15762 | save_LIBS="$LIBS" | |
15763 | LIBS="$LIBS $SSL_LIBS" | |
15764 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
15766 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
15767 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
15768 | cf_openssl_version_ok=no |
15769 | else | |
7083c021 | 15770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15771 | /* end confdefs.h. */ |
15772 | #include <openssl/opensslv.h> | |
15773 | #include <stdlib.h> | |
15774 | int | |
15775 | main () | |
15776 | { | |
15777 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
15778 | exit(0); else exit(1); | |
15779 | ; | |
15780 | return 0; | |
15781 | } | |
15782 | _ACEOF | |
7083c021 | 15783 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15784 | cf_openssl_version_ok=yes |
15785 | else | |
7083c021 | 15786 | cf_openssl_version_ok=no |
212380e3 | 15787 | fi |
7083c021 AC |
15788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15789 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
15790 | fi |
15791 | ||
631ef239 | 15792 | |
212380e3 | 15793 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
15794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
15795 | $as_echo "found" >&6; } | |
212380e3 AC |
15796 | |
15797 | ENCSPEED=encspeed | |
15798 | ||
15799 | ||
15800 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
15802 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 15803 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 15804 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15805 | else |
15806 | ac_check_lib_save_LIBS=$LIBS | |
15807 | LIBS="-lcrypto $LIBS" | |
7083c021 | 15808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15809 | /* end confdefs.h. */ |
15810 | ||
631ef239 AC |
15811 | /* Override any GCC internal prototype to avoid an error. |
15812 | Use char because int might match the return type of a GCC | |
15813 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15814 | #ifdef __cplusplus |
15815 | extern "C" | |
15816 | #endif | |
212380e3 AC |
15817 | char RSA_free (); |
15818 | int | |
15819 | main () | |
15820 | { | |
631ef239 | 15821 | return RSA_free (); |
212380e3 AC |
15822 | ; |
15823 | return 0; | |
15824 | } | |
15825 | _ACEOF | |
7083c021 | 15826 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15827 | ac_cv_lib_crypto_RSA_free=yes |
15828 | else | |
7083c021 | 15829 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 15830 | fi |
7083c021 AC |
15831 | rm -f core conftest.err conftest.$ac_objext \ |
15832 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15833 | LIBS=$ac_check_lib_save_LIBS |
15834 | fi | |
7083c021 AC |
15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
15836 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 15837 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
15838 | cat >>confdefs.h <<_ACEOF |
15839 | #define HAVE_LIBCRYPTO 1 | |
15840 | _ACEOF | |
15841 | ||
15842 | LIBS="-lcrypto $LIBS" | |
15843 | ||
15844 | fi | |
15845 | ||
15846 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
15847 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
15848 | else | |
7083c021 AC |
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
15850 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
15851 | fi |
15852 | fi | |
15853 | ||
15854 | CPPFLAGS="$save_CPPFLAGS" | |
15855 | LIBS="$save_LIBS" | |
15856 | ||
15857 | ||
15858 | ||
15859 | ||
15860 | ||
631ef239 | 15861 | # Check whether --with-zlib-path was given. |
7083c021 | 15862 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
15863 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
15864 | fi | |
212380e3 | 15865 | |
7083c021 AC |
15866 | |
15867 | # Check whether --enable-zlib was given. | |
15868 | if test "${enable_zlib+set}" = set; then : | |
15869 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 15870 | else |
7083c021 | 15871 | zlib=yes |
212380e3 | 15872 | fi |
212380e3 | 15873 | |
212380e3 | 15874 | |
7083c021 AC |
15875 | if test "$zlib" = yes; then |
15876 | ||
15877 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 15878 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
15879 | |
15880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
15881 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 15882 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 15883 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15884 | else |
15885 | ac_check_lib_save_LIBS=$LIBS | |
15886 | LIBS="-lz $LIBS" | |
7083c021 | 15887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15888 | /* end confdefs.h. */ |
15889 | ||
631ef239 AC |
15890 | /* Override any GCC internal prototype to avoid an error. |
15891 | Use char because int might match the return type of a GCC | |
15892 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15893 | #ifdef __cplusplus |
15894 | extern "C" | |
15895 | #endif | |
212380e3 AC |
15896 | char zlibVersion (); |
15897 | int | |
15898 | main () | |
15899 | { | |
631ef239 | 15900 | return zlibVersion (); |
212380e3 AC |
15901 | ; |
15902 | return 0; | |
15903 | } | |
15904 | _ACEOF | |
7083c021 | 15905 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15906 | ac_cv_lib_z_zlibVersion=yes |
15907 | else | |
7083c021 | 15908 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 15909 | fi |
7083c021 AC |
15910 | rm -f core conftest.err conftest.$ac_objext \ |
15911 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15912 | LIBS=$ac_check_lib_save_LIBS |
15913 | fi | |
7083c021 AC |
15914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
15915 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 15916 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
15917 | |
15918 | ZLIB_LD=-lz | |
15919 | ||
15920 | ||
7083c021 | 15921 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
15922 | |
15923 | ||
15924 | else | |
15925 | zlib=no | |
15926 | fi | |
15927 | ||
15928 | ||
15929 | else | |
15930 | zlib=no | |
15931 | fi | |
15932 | ||
15933 | ||
15934 | ||
497e30a0 LS |
15935 | fi |
15936 | ||
a6ef3156 LS |
15937 | |
15938 | # Check whether --with-shared-sqlite was given. | |
15939 | if test "${with_shared_sqlite+set}" = set; then : | |
15940 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
15941 | else |
15942 | shared_sqlite=no | |
15943 | fi | |
15944 | ||
15945 | ||
15946 | if test "$shared_sqlite" = yes; then | |
15947 | ||
cf1001a7 | 15948 | |
a5471f24 LS |
15949 | |
15950 | ||
15951 | ||
15952 | ||
15953 | ||
15954 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15955 | if test -n "$ac_tool_prefix"; then | |
15956 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15957 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15959 | $as_echo_n "checking for $ac_word... " >&6; } | |
15960 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15961 | $as_echo_n "(cached) " >&6 | |
15962 | else | |
15963 | case $PKG_CONFIG in | |
15964 | [\\/]* | ?:[\\/]*) | |
15965 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15966 | ;; | |
15967 | *) | |
15968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15969 | for as_dir in $PATH | |
15970 | do | |
15971 | IFS=$as_save_IFS | |
15972 | test -z "$as_dir" && as_dir=. | |
15973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15975 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15977 | break 2 | |
15978 | fi | |
15979 | done | |
15980 | done | |
15981 | IFS=$as_save_IFS | |
15982 | ||
15983 | ;; | |
cf1001a7 | 15984 | esac |
a5471f24 LS |
15985 | fi |
15986 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15987 | if test -n "$PKG_CONFIG"; then | |
15988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15989 | $as_echo "$PKG_CONFIG" >&6; } | |
15990 | else | |
15991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15992 | $as_echo "no" >&6; } | |
15993 | fi | |
cf1001a7 | 15994 | |
497e30a0 | 15995 | |
a5471f24 LS |
15996 | fi |
15997 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15998 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15999 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16000 | set dummy pkg-config; ac_word=$2 | |
16001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16002 | $as_echo_n "checking for $ac_word... " >&6; } | |
16003 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
16004 | $as_echo_n "(cached) " >&6 |
16005 | else | |
a5471f24 LS |
16006 | case $ac_pt_PKG_CONFIG in |
16007 | [\\/]* | ?:[\\/]*) | |
16008 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16009 | ;; | |
16010 | *) | |
16011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16012 | for as_dir in $PATH | |
16013 | do | |
16014 | IFS=$as_save_IFS | |
16015 | test -z "$as_dir" && as_dir=. | |
16016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16018 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16020 | break 2 | |
16021 | fi | |
16022 | done | |
16023 | done | |
16024 | IFS=$as_save_IFS | |
497e30a0 | 16025 | |
a5471f24 LS |
16026 | ;; |
16027 | esac | |
16028 | fi | |
16029 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16030 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16032 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 16033 | else |
a5471f24 LS |
16034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16035 | $as_echo "no" >&6; } | |
497e30a0 | 16036 | fi |
a5471f24 LS |
16037 | |
16038 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16039 | PKG_CONFIG="" | |
16040 | else | |
16041 | case $cross_compiling:$ac_tool_warned in | |
16042 | yes:) | |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16044 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16045 | ac_tool_warned=yes ;; | |
16046 | esac | |
16047 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16048 | fi | |
16049 | else | |
16050 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 16051 | fi |
497e30a0 | 16052 | |
a5471f24 LS |
16053 | fi |
16054 | if test -n "$PKG_CONFIG"; then | |
16055 | _pkg_min_version=0.9.0 | |
16056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16057 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16058 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16060 | $as_echo "yes" >&6; } | |
16061 | else | |
16062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16063 | $as_echo "no" >&6; } | |
16064 | PKG_CONFIG="" | |
16065 | fi | |
16066 | fi | |
16067 | ||
16068 | pkg_failed=no | |
16069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16070 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 16071 | |
a5471f24 LS |
16072 | if test -n "$SQLITE_CFLAGS"; then |
16073 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16074 | elif test -n "$PKG_CONFIG"; then | |
16075 | if test -n "$PKG_CONFIG" && \ | |
16076 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16077 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16078 | ac_status=$? | |
16079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16080 | test $ac_status = 0; }; then | |
16081 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16082 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 16083 | else |
a5471f24 LS |
16084 | pkg_failed=yes |
16085 | fi | |
16086 | else | |
16087 | pkg_failed=untried | |
16088 | fi | |
16089 | if test -n "$SQLITE_LIBS"; then | |
16090 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16091 | elif test -n "$PKG_CONFIG"; then | |
16092 | if test -n "$PKG_CONFIG" && \ | |
16093 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16094 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16095 | ac_status=$? | |
16096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16097 | test $ac_status = 0; }; then | |
16098 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16099 | test "x$?" != "x0" && pkg_failed=yes | |
16100 | else | |
16101 | pkg_failed=yes | |
16102 | fi | |
16103 | else | |
16104 | pkg_failed=untried | |
497e30a0 LS |
16105 | fi |
16106 | ||
16107 | ||
a5471f24 LS |
16108 | |
16109 | if test $pkg_failed = yes; then | |
16110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16111 | $as_echo "no" >&6; } | |
16112 | ||
16113 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16114 | _pkg_short_errors_supported=yes | |
497e30a0 | 16115 | else |
a5471f24 | 16116 | _pkg_short_errors_supported=no |
497e30a0 | 16117 | fi |
a5471f24 LS |
16118 | if test $_pkg_short_errors_supported = yes; then |
16119 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16120 | else | |
16121 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16122 | fi | |
16123 | # Put the nasty error message in config.log where it belongs | |
16124 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 16125 | |
a5471f24 LS |
16126 | shared_sqlite=no |
16127 | elif test $pkg_failed = untried; then | |
16128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16129 | $as_echo "no" >&6; } | |
16130 | shared_sqlite=no | |
16131 | else | |
16132 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
16133 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16135 | $as_echo "yes" >&6; } | |
497e30a0 | 16136 | |
a5471f24 | 16137 | shared_sqlite=yes |
497e30a0 | 16138 | |
74ab6be0 | 16139 | fi |
a5471f24 | 16140 | fi |
74ab6be0 LS |
16141 | |
16142 | if test "$shared_sqlite" = no; then | |
c52df125 | 16143 | SQLITE_OBJ='sqlite3.$(OBJEXT)' |
212380e3 AC |
16144 | fi |
16145 | ||
a5471f24 | 16146 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 16147 | |
a5471f24 | 16148 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
16149 | |
16150 | ||
cf1001a7 LS |
16151 | |
16152 | ||
212380e3 | 16153 | |
631ef239 | 16154 | # Check whether --with-confdir was given. |
7083c021 | 16155 | if test "${with_confdir+set}" = set; then : |
634d4aad | 16156 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 16157 | else |
9f9b7042 | 16158 | confdir='${sysconfdir}' |
634d4aad NPB |
16159 | fi |
16160 | ||
212380e3 AC |
16161 | |
16162 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16163 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 16164 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 16165 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 16166 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16167 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16168 | last_ac_define_dir="$ac_define_dir" | |
16169 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16170 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16171 | if test "x$ac_define_dir_counter" = x128; then : | |
16172 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
16173 | break | |
16174 | fi | |
9f9b7042 | 16175 | done |
212380e3 AC |
16176 | ETC_DIR="$ac_define_dir" |
16177 | ||
16178 | ||
16179 | cat >>confdefs.h <<_ACEOF | |
16180 | #define ETC_DIR "$ac_define_dir" | |
16181 | _ACEOF | |
16182 | ||
16183 | ||
16184 | ||
16185 | ||
7083c021 AC |
16186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
16187 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 16188 | |
631ef239 | 16189 | # Check whether --with-logdir was given. |
7083c021 | 16190 | if test "${with_logdir+set}" = set; then : |
631ef239 | 16191 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16193 | $as_echo "yes" >&6; } | |
212380e3 | 16194 | else |
9f9b7042 NPB |
16195 | if test "x$enable_fhs_paths" = "xyes"; then : |
16196 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
16197 | else | |
16198 | logdir='${prefix}/logs' | |
16199 | fi | |
7083c021 AC |
16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16201 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16202 | fi |
16203 | ||
212380e3 AC |
16204 | |
16205 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16206 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16207 | last_ac_define_dir=`eval echo $logdir` |
16208 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16209 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16210 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16211 | last_ac_define_dir="$ac_define_dir" | |
16212 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16213 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16214 | if test "x$ac_define_dir_counter" = x128; then : | |
16215 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
16216 | break | |
16217 | fi | |
9f9b7042 | 16218 | done |
212380e3 AC |
16219 | LOG_DIR="$ac_define_dir" |
16220 | ||
16221 | ||
16222 | cat >>confdefs.h <<_ACEOF | |
16223 | #define LOG_DIR "$ac_define_dir" | |
16224 | _ACEOF | |
16225 | ||
16226 | ||
16227 | ||
16228 | ||
16229 | logdir=`( | |
16230 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16231 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16232 | eval echo \""$logdir"\" | |
16233 | )` | |
16234 | ||
16235 | ||
16236 | ||
212380e3 | 16237 | |
7083c021 AC |
16238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
16239 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 16240 | |
631ef239 | 16241 | # Check whether --with-helpdir was given. |
7083c021 | 16242 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 16243 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16245 | $as_echo "yes" >&6; } | |
212380e3 | 16246 | else |
9f9b7042 NPB |
16247 | if test "x$enable_fhs_paths" = "xyes"; then : |
16248 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
16249 | else | |
16250 | helpdir='${prefix}/help' | |
16251 | fi | |
7083c021 AC |
16252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16253 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16254 | fi |
16255 | ||
212380e3 AC |
16256 | |
16257 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16258 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16259 | last_ac_define_dir=`eval echo $helpdir` |
16260 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16261 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16262 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16263 | last_ac_define_dir="$ac_define_dir" | |
16264 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16265 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16266 | if test "x$ac_define_dir_counter" = x128; then : | |
16267 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
16268 | break | |
16269 | fi | |
9f9b7042 | 16270 | done |
212380e3 AC |
16271 | HELP_DIR="$ac_define_dir" |
16272 | ||
16273 | ||
16274 | cat >>confdefs.h <<_ACEOF | |
16275 | #define HELP_DIR "$ac_define_dir" | |
16276 | _ACEOF | |
16277 | ||
16278 | ||
16279 | ||
16280 | ||
16281 | helpdir=`( | |
16282 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16283 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16284 | eval echo \""$helpdir"\" | |
16285 | )` | |
16286 | ||
16287 | ||
16288 | ||
212380e3 | 16289 | |
7083c021 AC |
16290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
16291 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 16292 | |
631ef239 | 16293 | # Check whether --with-moduledir was given. |
7083c021 | 16294 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 16295 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16297 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
16298 | else |
16299 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16300 | moduledir='${pkglibdir}/modules' | |
16301 | else | |
16302 | moduledir='${prefix}/modules' | |
16303 | fi | |
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16305 | $as_echo "no" >&6; } | |
16306 | ||
16307 | fi | |
16308 | ||
212380e3 AC |
16309 | |
16310 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16311 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16312 | last_ac_define_dir=`eval echo $moduledir` |
16313 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16314 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16315 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16316 | last_ac_define_dir="$ac_define_dir" | |
16317 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16318 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16319 | if test "x$ac_define_dir_counter" = x128; then : | |
16320 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
16321 | break | |
16322 | fi | |
9f9b7042 | 16323 | done |
212380e3 AC |
16324 | MODULE_DIR="$ac_define_dir" |
16325 | ||
16326 | ||
16327 | cat >>confdefs.h <<_ACEOF | |
16328 | #define MODULE_DIR "$ac_define_dir" | |
16329 | _ACEOF | |
16330 | ||
16331 | ||
16332 | ||
16333 | ||
16334 | moduledir=`( | |
16335 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16336 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16337 | eval echo \""$moduledir"\" | |
16338 | )` | |
16339 | ||
16340 | ||
9f9b7042 NPB |
16341 | |
16342 | ||
16343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
16344 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
16345 | ||
16346 | # Check whether --with-rundir was given. | |
16347 | if test "${with_rundir+set}" = set; then : | |
16348 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16349 | $as_echo "yes" >&6; } | |
16350 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 16351 | else |
9f9b7042 | 16352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 16353 | $as_echo "no" >&6; } |
9f9b7042 NPB |
16354 | if test "x$enable_fhs_paths" = "xyes"; then : |
16355 | rundir='${prefix}/run' | |
16356 | else | |
16357 | rundir='${sysconfdir}' | |
16358 | fi | |
16359 | fi | |
16360 | ||
16361 | ||
212380e3 AC |
16362 | |
16363 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16364 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16365 | last_ac_define_dir=`eval echo $pkgrundir` |
16366 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16367 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16368 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16369 | last_ac_define_dir="$ac_define_dir" | |
16370 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16371 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16372 | if test "x$ac_define_dir_counter" = x128; then : | |
16373 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
16374 | break | |
16375 | fi | |
9f9b7042 NPB |
16376 | done |
16377 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
16378 | |
16379 | ||
16380 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 16381 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
16382 | _ACEOF |
16383 | ||
16384 | ||
16385 | ||
9f9b7042 NPB |
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
16387 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 16388 | |
9f9b7042 NPB |
16389 | # Check whether --with-program-prefix was given. |
16390 | if test "${with_program_prefix+set}" = set; then : | |
16391 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
16392 | else | |
16393 | with_program_prefix= | |
16394 | fi | |
212380e3 | 16395 | |
9f9b7042 NPB |
16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
16397 | $as_echo "\"$with_program_prefix\"" >&6; } | |
16398 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
16399 | |
16400 | ||
9f9b7042 NPB |
16401 | cat >>confdefs.h <<_ACEOF |
16402 | #define PROGRAM_PREFIX "$with_program_prefix" | |
16403 | _ACEOF | |
631ef239 | 16404 | |
7083c021 | 16405 | |
b6d0720c AC |
16406 | |
16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
16408 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
16409 | ||
16410 | # Check whether --with-custom-branding was given. | |
16411 | if test "${with_custom_branding+set}" = set; then : | |
16412 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
16413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16414 | $as_echo "yes" >&6; } | |
16415 | else | |
16416 | BRANDING_NAME=$PACKAGE_NAME | |
16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16418 | $as_echo "no" >&6; } | |
16419 | ||
16420 | fi | |
16421 | ||
16422 | ||
16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
16424 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
16425 | ||
16426 | # Check whether --with-custom-version was given. | |
16427 | if test "${with_custom_version+set}" = set; then : | |
16428 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16430 | $as_echo "yes" >&6; } | |
16431 | else | |
16432 | BRANDING_VERSION=$PACKAGE_VERSION | |
16433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16434 | $as_echo "no" >&6; } | |
16435 | ||
16436 | fi | |
16437 | ||
16438 | ||
16439 | ||
16440 | cat >>confdefs.h <<_ACEOF | |
16441 | #define BRANDING_NAME "$BRANDING_NAME" | |
16442 | _ACEOF | |
16443 | ||
16444 | ||
16445 | cat >>confdefs.h <<_ACEOF | |
16446 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
16447 | _ACEOF | |
16448 | ||
16449 | ||
f5493691 AC |
16450 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
16451 | ||
16452 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
16453 | ||
16454 | fi | |
16455 | ||
212380e3 | 16456 | |
631ef239 | 16457 | # Check whether --enable-assert was given. |
7083c021 | 16458 | if test "${enable_assert+set}" = set; then : |
631ef239 | 16459 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
16460 | else |
16461 | assert=no | |
631ef239 AC |
16462 | fi |
16463 | ||
212380e3 AC |
16464 | |
16465 | if test "$assert" = no; then | |
16466 | ||
7083c021 | 16467 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16468 | |
16469 | elif test "$assert" = soft; then | |
16470 | ||
7083c021 | 16471 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
16472 | |
16473 | ||
7083c021 | 16474 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16475 | |
16476 | elif test "$assert" = yes; then | |
16477 | assert = "hard"; | |
16478 | fi | |
16479 | ||
7083c021 AC |
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
16481 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 16482 | # Check whether --enable-profile was given. |
7083c021 | 16483 | if test "${enable_profile+set}" = set; then : |
631ef239 | 16484 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
16485 | else |
16486 | profile=no | |
631ef239 AC |
16487 | fi |
16488 | ||
212380e3 AC |
16489 | |
16490 | if test "$profile" = yes; then | |
16491 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16492 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
16494 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 16495 | |
7083c021 | 16496 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
16497 | |
16498 | else | |
7083c021 AC |
16499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
16500 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
16501 | fi |
16502 | else | |
7083c021 AC |
16503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16504 | $as_echo "no" >&6; } | |
212380e3 AC |
16505 | fi |
16506 | ||
212380e3 | 16507 | |
7083c021 | 16508 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
16509 | |
16510 | ||
7083c021 | 16511 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16512 | |
16513 | ||
7083c021 | 16514 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16515 | |
16516 | ||
7083c021 | 16517 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16518 | |
16519 | ||
7083c021 | 16520 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
16521 | |
16522 | ||
7083c021 | 16523 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16524 | |
16525 | ||
7083c021 | 16526 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16527 | |
16528 | ||
7083c021 | 16529 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16530 | |
16531 | ||
7083c021 | 16532 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16533 | |
16534 | ||
7083c021 | 16535 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
16536 | |
16537 | ||
7083c021 | 16538 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
16539 | |
16540 | ||
7083c021 | 16541 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
16542 | |
16543 | ||
7083c021 | 16544 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16545 | |
16546 | ||
7083c021 | 16547 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 16548 | |
f589ec6f | 16549 | |
7083c021 | 16550 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
16551 | |
16552 | ||
7083c021 | 16553 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 16554 | |
212380e3 AC |
16555 | |
16556 | ||
631ef239 | 16557 | # Check whether --with-nicklen was given. |
7083c021 | 16558 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 16559 | withval=$with_nicklen; |
aa769893 | 16560 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 16561 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 16562 | fi |
cf533739 | 16563 | if test $withval -gt 50; then |
212380e3 | 16564 | NICKLEN=50 |
7083c021 AC |
16565 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
16566 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
16567 | elif test $withval -lt 9; then |
16568 | NICKLEN=9 | |
16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
16570 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
16571 | else |
16572 | NICKLEN="$withval" | |
16573 | fi | |
16574 | ||
16575 | else | |
cf533739 | 16576 | NICKLEN=31 |
631ef239 | 16577 | fi |
212380e3 AC |
16578 | |
16579 | ||
212380e3 | 16580 | |
631ef239 | 16581 | # Check whether --with-topiclen was given. |
7083c021 | 16582 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 16583 | withval=$with_topiclen; |
6755009c | 16584 | if test $withval -gt 390; then |
212380e3 | 16585 | TOPICLEN=390 |
7083c021 AC |
16586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
16587 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
16588 | else |
16589 | TOPICLEN=$withval | |
16590 | fi | |
16591 | ||
16592 | else | |
16593 | TOPICLEN=390 | |
212380e3 AC |
16594 | fi |
16595 | ||
212380e3 AC |
16596 | |
16597 | ||
16598 | cat >>confdefs.h <<_ACEOF | |
16599 | #define TOPICLEN ${TOPICLEN} | |
16600 | _ACEOF | |
16601 | ||
16602 | ||
16603 | cat >>confdefs.h <<_ACEOF | |
16604 | #define NICKLEN (${NICKLEN}+1) | |
16605 | _ACEOF | |
16606 | ||
16607 | ||
1a82970f JT |
16608 | # rpath, for finding libratbox.so at run time |
16609 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
16610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
16611 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 16612 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 16613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
16614 | /* end confdefs.h. */ |
16615 | ||
16616 | int | |
16617 | main () | |
16618 | { | |
16619 | int i; | |
16620 | ; | |
16621 | return 0; | |
16622 | } | |
16623 | _ACEOF | |
7083c021 | 16624 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
16625 | found=yes |
16626 | else | |
7083c021 | 16627 | found=no |
1a82970f | 16628 | fi |
7083c021 AC |
16629 | rm -f core conftest.err conftest.$ac_objext \ |
16630 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 16631 | LDFLAGS=$hold_ldflags |
7083c021 AC |
16632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
16633 | $as_echo "$found" >&6; } | |
1a82970f JT |
16634 | if test "$found" = yes; then |
16635 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
16636 | fi | |
16637 | ||
212380e3 AC |
16638 | # This must be down here, or it will mess up checks like the ones |
16639 | # for -Wl,-export-dynamic | |
16640 | # -- jilles | |
d2c5159a | 16641 | CWARNS="" |
631ef239 | 16642 | # Check whether --enable-warnings was given. |
7083c021 | 16643 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 16644 | enableval=$enable_warnings; |
212380e3 AC |
16645 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
16646 | CFLAGS="$IRC_CFLAGS" | |
16647 | ||
16648 | ||
7083c021 AC |
16649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
16650 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
16651 | if test "${GCC-no}" = yes |
16652 | then | |
b6d0720c | 16653 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 16654 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16655 | else |
16656 | ||
16657 | oldcflags="${CFLAGS-}" | |
16658 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 16659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16660 | /* end confdefs.h. */ |
16661 | ||
16662 | #include <string.h> | |
16663 | #include <stdio.h> | |
16664 | int main(void); | |
16665 | ||
16666 | int | |
16667 | main () | |
16668 | { | |
16669 | ||
b1fc1658 | 16670 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16671 | |
16672 | ; | |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
7083c021 | 16676 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16677 | charybdis_cv_c_gcc_w_all=yes |
16678 | else | |
7083c021 | 16679 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 16680 | fi |
631ef239 | 16681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16682 | CFLAGS="${oldcflags}" |
16683 | fi | |
16684 | ||
16685 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
16686 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16688 | $as_echo "ok" >&6; } | |
212380e3 AC |
16689 | else |
16690 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
16691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16692 | $as_echo "no" >&6; } | |
212380e3 AC |
16693 | fi |
16694 | else | |
7083c021 AC |
16695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16696 | $as_echo "no" >&6; } | |
212380e3 AC |
16697 | fi |
16698 | ||
16699 | ||
7083c021 AC |
16700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
16701 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
16702 | if test "${GCC-no}" = yes |
16703 | then | |
b6d0720c | 16704 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 16705 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16706 | else |
16707 | ||
16708 | oldcflags="${CFLAGS-}" | |
16709 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 16710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16711 | /* end confdefs.h. */ |
16712 | ||
16713 | #include <string.h> | |
16714 | #include <stdio.h> | |
16715 | int main(void); | |
16716 | ||
16717 | int | |
16718 | main () | |
16719 | { | |
16720 | ||
b1fc1658 | 16721 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16722 | |
16723 | ; | |
16724 | return 0; | |
16725 | } | |
16726 | _ACEOF | |
7083c021 | 16727 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16728 | charybdis_cv_c_gcc_w_pointer_arith=yes |
16729 | else | |
7083c021 | 16730 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 16731 | fi |
631ef239 | 16732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16733 | CFLAGS="${oldcflags}" |
16734 | fi | |
16735 | ||
16736 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
16737 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
16738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16739 | $as_echo "ok" >&6; } | |
212380e3 AC |
16740 | else |
16741 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16743 | $as_echo "no" >&6; } | |
212380e3 AC |
16744 | fi |
16745 | else | |
7083c021 AC |
16746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16747 | $as_echo "no" >&6; } | |
212380e3 AC |
16748 | fi |
16749 | ||
16750 | ||
7083c021 AC |
16751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
16752 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
16753 | if test "${GCC-no}" = yes |
16754 | then | |
b6d0720c | 16755 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 16756 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16757 | else |
16758 | ||
16759 | oldcflags="${CFLAGS-}" | |
16760 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 16761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16762 | /* end confdefs.h. */ |
16763 | ||
16764 | #include <string.h> | |
16765 | #include <stdio.h> | |
16766 | int main(void); | |
16767 | ||
16768 | int | |
16769 | main () | |
16770 | { | |
16771 | ||
b1fc1658 | 16772 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16773 | |
16774 | ; | |
16775 | return 0; | |
16776 | } | |
16777 | _ACEOF | |
7083c021 | 16778 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16779 | charybdis_cv_c_gcc_w_implicit=yes |
16780 | else | |
7083c021 | 16781 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 16782 | fi |
631ef239 | 16783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16784 | CFLAGS="${oldcflags}" |
16785 | fi | |
16786 | ||
16787 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
16788 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16790 | $as_echo "ok" >&6; } | |
212380e3 AC |
16791 | else |
16792 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16794 | $as_echo "no" >&6; } | |
212380e3 AC |
16795 | fi |
16796 | else | |
7083c021 AC |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16798 | $as_echo "no" >&6; } | |
212380e3 AC |
16799 | fi |
16800 | ||
16801 | ||
7083c021 AC |
16802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
16803 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
16804 | if test "${GCC-no}" = yes |
16805 | then | |
b6d0720c | 16806 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 16807 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16808 | else |
16809 | ||
16810 | oldcflags="${CFLAGS-}" | |
16811 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 16812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16813 | /* end confdefs.h. */ |
16814 | ||
16815 | #include <string.h> | |
16816 | #include <stdio.h> | |
16817 | int main(void); | |
16818 | ||
16819 | int | |
16820 | main () | |
16821 | { | |
16822 | ||
b1fc1658 | 16823 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
16824 | |
16825 | ; | |
16826 | return 0; | |
16827 | } | |
16828 | _ACEOF | |
16829 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
16830 | charybdis_cv_c_gcc_w_cast_align=yes |
16831 | else | |
7083c021 | 16832 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 16833 | fi |
631ef239 | 16834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16835 | CFLAGS="${oldcflags}" |
16836 | fi | |
16837 | ||
16838 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
16839 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
16840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16841 | $as_echo "ok" >&6; } | |
212380e3 AC |
16842 | else |
16843 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16845 | $as_echo "no" >&6; } | |
212380e3 AC |
16846 | fi |
16847 | else | |
7083c021 AC |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16849 | $as_echo "no" >&6; } | |
212380e3 AC |
16850 | fi |
16851 | ||
16852 | ||
7083c021 AC |
16853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
16854 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
16855 | if test "${GCC-no}" = yes |
16856 | then | |
b6d0720c | 16857 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 16858 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16859 | else |
16860 | ||
16861 | oldcflags="${CFLAGS-}" | |
16862 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 16863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16864 | /* end confdefs.h. */ |
16865 | ||
16866 | #include <string.h> | |
16867 | #include <stdio.h> | |
16868 | int main(void); | |
16869 | ||
16870 | int | |
16871 | main () | |
16872 | { | |
16873 | ||
b1fc1658 | 16874 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16875 | |
16876 | ; | |
16877 | return 0; | |
16878 | } | |
16879 | _ACEOF | |
7083c021 | 16880 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16881 | charybdis_cv_c_gcc_w_cast_qual=yes |
16882 | else | |
7083c021 | 16883 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 16884 | fi |
631ef239 | 16885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16886 | CFLAGS="${oldcflags}" |
16887 | fi | |
16888 | ||
16889 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
16890 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
16891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16892 | $as_echo "ok" >&6; } | |
212380e3 AC |
16893 | else |
16894 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
16895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16896 | $as_echo "no" >&6; } | |
212380e3 AC |
16897 | fi |
16898 | else | |
7083c021 AC |
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16900 | $as_echo "no" >&6; } | |
212380e3 AC |
16901 | fi |
16902 | ||
16903 | ||
7083c021 AC |
16904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
16905 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
16906 | if test "${GCC-no}" = yes |
16907 | then | |
b6d0720c | 16908 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 16909 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
16910 | else |
16911 | ||
16912 | oldcflags="${CFLAGS-}" | |
16913 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 16914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
16915 | /* end confdefs.h. */ |
16916 | ||
16917 | #include <string.h> | |
16918 | #include <stdio.h> | |
16919 | int main(void); | |
16920 | ||
16921 | int | |
16922 | main () | |
16923 | { | |
16924 | ||
16925 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16926 | ||
16927 | ; | |
16928 | return 0; | |
16929 | } | |
16930 | _ACEOF | |
7083c021 | 16931 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 16932 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 16933 | else |
7083c021 | 16934 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 16935 | fi |
d2c5159a JT |
16936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16937 | CFLAGS="${oldcflags}" | |
16938 | fi | |
16939 | ||
bbe58888 | 16940 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 16941 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
16942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16943 | $as_echo "ok" >&6; } | |
d2c5159a | 16944 | else |
bbe58888 | 16945 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16947 | $as_echo "no" >&6; } | |
bbe58888 VY |
16948 | fi |
16949 | else | |
7083c021 AC |
16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16951 | $as_echo "no" >&6; } | |
bbe58888 VY |
16952 | fi |
16953 | ||
16954 | ||
7083c021 AC |
16955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
16956 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
16957 | if test "${GCC-no}" = yes |
16958 | then | |
b6d0720c | 16959 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 16960 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
16961 | else |
16962 | ||
16963 | oldcflags="${CFLAGS-}" | |
16964 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 16965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
16966 | /* end confdefs.h. */ |
16967 | ||
16968 | #include <string.h> | |
16969 | #include <stdio.h> | |
16970 | int main(void); | |
16971 | ||
16972 | int | |
16973 | main () | |
16974 | { | |
16975 | ||
16976 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16977 | ||
16978 | ; | |
16979 | return 0; | |
16980 | } | |
16981 | _ACEOF | |
7083c021 | 16982 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
16983 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
16984 | else | |
7083c021 | 16985 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 16986 | fi |
bbe58888 VY |
16987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16988 | CFLAGS="${oldcflags}" | |
16989 | fi | |
16990 | ||
16991 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
16992 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16994 | $as_echo "ok" >&6; } | |
bbe58888 VY |
16995 | else |
16996 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16998 | $as_echo "no" >&6; } | |
d2c5159a JT |
16999 | fi |
17000 | else | |
7083c021 AC |
17001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17002 | $as_echo "no" >&6; } | |
d2c5159a JT |
17003 | fi |
17004 | ||
17005 | ||
7083c021 AC |
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
17007 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
17008 | if test "${GCC-no}" = yes |
17009 | then | |
b6d0720c | 17010 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 17011 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17012 | else |
17013 | ||
17014 | oldcflags="${CFLAGS-}" | |
17015 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 17016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17017 | /* end confdefs.h. */ |
17018 | ||
17019 | #include <string.h> | |
17020 | #include <stdio.h> | |
17021 | int main(void); | |
17022 | ||
17023 | int | |
17024 | main () | |
17025 | { | |
17026 | ||
b1fc1658 | 17027 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17028 | |
17029 | ; | |
17030 | return 0; | |
17031 | } | |
17032 | _ACEOF | |
7083c021 | 17033 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17034 | charybdis_cv_c_gcc_prototypes=yes |
17035 | else | |
7083c021 | 17036 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 17037 | fi |
631ef239 | 17038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17039 | CFLAGS="${oldcflags}" |
17040 | fi | |
17041 | ||
17042 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
17043 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
17044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17045 | $as_echo "ok" >&6; } | |
212380e3 AC |
17046 | else |
17047 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
17048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17049 | $as_echo "no" >&6; } | |
212380e3 AC |
17050 | fi |
17051 | else | |
7083c021 AC |
17052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17053 | $as_echo "no" >&6; } | |
212380e3 AC |
17054 | fi |
17055 | ||
17056 | ||
7083c021 AC |
17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
17058 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
17059 | if test "${GCC-no}" = yes |
17060 | then | |
b6d0720c | 17061 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 17062 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17063 | else |
17064 | ||
17065 | oldcflags="${CFLAGS-}" | |
17066 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 17067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17068 | /* end confdefs.h. */ |
17069 | ||
17070 | #include <string.h> | |
17071 | #include <stdio.h> | |
17072 | int main(void); | |
17073 | ||
17074 | int | |
17075 | main () | |
17076 | { | |
17077 | ||
b1fc1658 | 17078 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17079 | |
17080 | ; | |
17081 | return 0; | |
17082 | } | |
17083 | _ACEOF | |
7083c021 | 17084 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17085 | charybdis_cv_c_gcc_parenthesis=yes |
17086 | else | |
7083c021 | 17087 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 17088 | fi |
631ef239 | 17089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17090 | CFLAGS="${oldcflags}" |
17091 | fi | |
17092 | ||
17093 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
17094 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
17095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17096 | $as_echo "ok" >&6; } | |
212380e3 AC |
17097 | else |
17098 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
17099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17100 | $as_echo "no" >&6; } | |
212380e3 AC |
17101 | fi |
17102 | else | |
7083c021 AC |
17103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17104 | $as_echo "no" >&6; } | |
212380e3 AC |
17105 | fi |
17106 | ||
17107 | ||
7083c021 AC |
17108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
17109 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
17110 | if test "${GCC-no}" = yes |
17111 | then | |
b6d0720c | 17112 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 17113 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17114 | else |
17115 | ||
17116 | oldcflags="${CFLAGS-}" | |
17117 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 17118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17119 | /* end confdefs.h. */ |
17120 | ||
17121 | #include <string.h> | |
17122 | #include <stdio.h> | |
17123 | int main(void); | |
17124 | ||
17125 | int | |
17126 | main () | |
17127 | { | |
17128 | ||
b1fc1658 | 17129 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17130 | |
17131 | ; | |
17132 | return 0; | |
17133 | } | |
17134 | _ACEOF | |
7083c021 | 17135 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17136 | charybdis_cv_c_gcc_w=yes |
17137 | else | |
7083c021 | 17138 | charybdis_cv_c_gcc_w=no |
212380e3 | 17139 | fi |
631ef239 | 17140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17141 | CFLAGS="${oldcflags}" |
17142 | fi | |
17143 | ||
17144 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
17145 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
17146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17147 | $as_echo "ok" >&6; } | |
212380e3 AC |
17148 | else |
17149 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17151 | $as_echo "no" >&6; } | |
212380e3 AC |
17152 | fi |
17153 | else | |
7083c021 AC |
17154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17155 | $as_echo "no" >&6; } | |
212380e3 AC |
17156 | fi |
17157 | ||
17158 | ||
7083c021 AC |
17159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
17160 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
17161 | if test "${GCC-no}" = yes |
17162 | then | |
b6d0720c | 17163 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 17164 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17165 | else |
17166 | ||
17167 | oldcflags="${CFLAGS-}" | |
17168 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 17169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17170 | /* end confdefs.h. */ |
17171 | ||
17172 | #include <string.h> | |
17173 | #include <stdio.h> | |
17174 | int main(void); | |
17175 | ||
17176 | int | |
17177 | main () | |
17178 | { | |
17179 | ||
b1fc1658 | 17180 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17181 | |
17182 | ; | |
17183 | return 0; | |
17184 | } | |
17185 | _ACEOF | |
7083c021 | 17186 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17187 | charybdis_cv_c_gcc_w_extra=yes |
17188 | else | |
7083c021 | 17189 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 17190 | fi |
631ef239 | 17191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17192 | CFLAGS="${oldcflags}" |
17193 | fi | |
17194 | ||
17195 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
17196 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
17197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17198 | $as_echo "ok" >&6; } | |
212380e3 AC |
17199 | else |
17200 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
17201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17202 | $as_echo "no" >&6; } | |
212380e3 AC |
17203 | fi |
17204 | else | |
7083c021 AC |
17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17206 | $as_echo "no" >&6; } | |
212380e3 AC |
17207 | fi |
17208 | ||
17209 | ||
7083c021 AC |
17210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
17211 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
17212 | if test "${GCC-no}" = yes |
17213 | then | |
b6d0720c | 17214 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 17215 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17216 | else |
17217 | ||
17218 | oldcflags="${CFLAGS-}" | |
17219 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 17220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17221 | /* end confdefs.h. */ |
17222 | ||
17223 | #include <string.h> | |
17224 | #include <stdio.h> | |
17225 | int main(void); | |
17226 | ||
17227 | int | |
17228 | main () | |
17229 | { | |
17230 | ||
b1fc1658 | 17231 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17232 | |
17233 | ; | |
17234 | return 0; | |
17235 | } | |
17236 | _ACEOF | |
7083c021 | 17237 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17238 | charybdis_cv_c_gcc_w_shadow=yes |
17239 | else | |
7083c021 | 17240 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 17241 | fi |
631ef239 | 17242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17243 | CFLAGS="${oldcflags}" |
17244 | fi | |
17245 | ||
17246 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
17247 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17249 | $as_echo "ok" >&6; } | |
212380e3 AC |
17250 | else |
17251 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
17252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17253 | $as_echo "no" >&6; } | |
212380e3 AC |
17254 | fi |
17255 | else | |
7083c021 AC |
17256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17257 | $as_echo "no" >&6; } | |
212380e3 AC |
17258 | fi |
17259 | ||
17260 | ||
7083c021 AC |
17261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
17262 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
17263 | if test "${GCC-no}" = yes |
17264 | then | |
b6d0720c | 17265 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 17266 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17267 | else |
17268 | ||
17269 | oldcflags="${CFLAGS-}" | |
17270 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 17271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17272 | /* end confdefs.h. */ |
17273 | ||
17274 | #include <string.h> | |
17275 | #include <stdio.h> | |
17276 | int main(void); | |
17277 | ||
17278 | int | |
17279 | main () | |
17280 | { | |
17281 | ||
b1fc1658 | 17282 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17283 | |
17284 | ; | |
17285 | return 0; | |
17286 | } | |
17287 | _ACEOF | |
7083c021 | 17288 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17289 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
17290 | else | |
7083c021 | 17291 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 17292 | fi |
631ef239 | 17293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17294 | CFLAGS="${oldcflags}" |
17295 | fi | |
17296 | ||
17297 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
17298 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
17299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17300 | $as_echo "ok" >&6; } | |
212380e3 AC |
17301 | else |
17302 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17304 | $as_echo "no" >&6; } | |
212380e3 AC |
17305 | fi |
17306 | else | |
7083c021 AC |
17307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17308 | $as_echo "no" >&6; } | |
212380e3 AC |
17309 | fi |
17310 | ||
17311 | ||
7083c021 AC |
17312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
17313 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
17314 | if test "${GCC-no}" = yes |
17315 | then | |
b6d0720c | 17316 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 17317 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17318 | else |
17319 | ||
17320 | oldcflags="${CFLAGS-}" | |
17321 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 17322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17323 | /* end confdefs.h. */ |
17324 | ||
17325 | #include <string.h> | |
17326 | #include <stdio.h> | |
17327 | int main(void); | |
17328 | ||
17329 | int | |
17330 | main () | |
17331 | { | |
17332 | ||
b1fc1658 | 17333 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17334 | |
17335 | ; | |
17336 | return 0; | |
17337 | } | |
17338 | _ACEOF | |
7083c021 | 17339 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17340 | charybdis_cv_c_gcc_w_undef=yes |
17341 | else | |
7083c021 | 17342 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 17343 | fi |
631ef239 | 17344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17345 | CFLAGS="${oldcflags}" |
17346 | fi | |
17347 | ||
17348 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
17349 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17351 | $as_echo "ok" >&6; } | |
212380e3 AC |
17352 | else |
17353 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
17354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17355 | $as_echo "no" >&6; } | |
212380e3 AC |
17356 | fi |
17357 | else | |
7083c021 AC |
17358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17359 | $as_echo "no" >&6; } | |
212380e3 AC |
17360 | fi |
17361 | ||
17362 | ||
7083c021 AC |
17363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
17364 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
17365 | if test "${GCC-no}" = yes |
17366 | then | |
b6d0720c | 17367 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 17368 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17369 | else |
17370 | ||
17371 | oldcflags="${CFLAGS-}" | |
17372 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 17373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17374 | /* end confdefs.h. */ |
17375 | ||
17376 | #include <string.h> | |
17377 | #include <stdio.h> | |
17378 | int main(void); | |
17379 | ||
17380 | int | |
17381 | main () | |
17382 | { | |
17383 | ||
b1fc1658 | 17384 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17385 | |
17386 | ; | |
17387 | return 0; | |
17388 | } | |
17389 | _ACEOF | |
7083c021 | 17390 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17391 | charybdis_cv_c_gcc_w_packed=yes |
17392 | else | |
7083c021 | 17393 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 17394 | fi |
631ef239 | 17395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17396 | CFLAGS="${oldcflags}" |
17397 | fi | |
17398 | ||
17399 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
17400 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17402 | $as_echo "ok" >&6; } | |
212380e3 AC |
17403 | else |
17404 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
17405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17406 | $as_echo "no" >&6; } | |
212380e3 AC |
17407 | fi |
17408 | else | |
7083c021 AC |
17409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17410 | $as_echo "no" >&6; } | |
212380e3 AC |
17411 | fi |
17412 | ||
17413 | ||
7083c021 AC |
17414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
17415 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
17416 | if test "${GCC-no}" = yes |
17417 | then | |
b6d0720c | 17418 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 17419 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17420 | else |
17421 | ||
17422 | oldcflags="${CFLAGS-}" | |
17423 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 17424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17425 | /* end confdefs.h. */ |
17426 | ||
17427 | #include <string.h> | |
17428 | #include <stdio.h> | |
17429 | int main(void); | |
17430 | ||
17431 | int | |
17432 | main () | |
17433 | { | |
17434 | ||
b1fc1658 | 17435 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17436 | |
17437 | ; | |
17438 | return 0; | |
17439 | } | |
17440 | _ACEOF | |
7083c021 | 17441 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17442 | charybdis_cv_c_gcc_w_nested_externs=yes |
17443 | else | |
7083c021 | 17444 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 17445 | fi |
631ef239 | 17446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17447 | CFLAGS="${oldcflags}" |
17448 | fi | |
17449 | ||
17450 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
17451 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
17452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17453 | $as_echo "ok" >&6; } | |
212380e3 AC |
17454 | else |
17455 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17457 | $as_echo "no" >&6; } | |
212380e3 AC |
17458 | fi |
17459 | else | |
7083c021 AC |
17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17461 | $as_echo "no" >&6; } | |
212380e3 AC |
17462 | fi |
17463 | ||
17464 | ||
7083c021 AC |
17465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
17466 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
17467 | if test "${GCC-no}" = yes |
17468 | then | |
b6d0720c | 17469 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 17470 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17471 | else |
17472 | ||
17473 | oldcflags="${CFLAGS-}" | |
17474 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 17475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17476 | /* end confdefs.h. */ |
17477 | ||
17478 | #include <string.h> | |
17479 | #include <stdio.h> | |
17480 | int main(void); | |
17481 | ||
17482 | int | |
17483 | main () | |
17484 | { | |
17485 | ||
b1fc1658 | 17486 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17487 | |
17488 | ; | |
17489 | return 0; | |
17490 | } | |
17491 | _ACEOF | |
7083c021 | 17492 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17493 | charybdis_cv_c_gcc_w_unused=yes |
17494 | else | |
7083c021 | 17495 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 17496 | fi |
631ef239 | 17497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17498 | CFLAGS="${oldcflags}" |
17499 | fi | |
17500 | ||
17501 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
17502 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
17503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17504 | $as_echo "ok" >&6; } | |
212380e3 AC |
17505 | else |
17506 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
17507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17508 | $as_echo "no" >&6; } | |
212380e3 AC |
17509 | fi |
17510 | else | |
7083c021 AC |
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17512 | $as_echo "no" >&6; } | |
212380e3 AC |
17513 | fi |
17514 | ||
17515 | ||
7083c021 AC |
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
17517 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
17518 | if test "${GCC-no}" = yes |
17519 | then | |
b6d0720c | 17520 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 17521 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17522 | else |
17523 | ||
17524 | oldcflags="${CFLAGS-}" | |
17525 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 17526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17527 | /* end confdefs.h. */ |
17528 | ||
17529 | #include <string.h> | |
17530 | #include <stdio.h> | |
17531 | int main(void); | |
17532 | ||
17533 | int | |
17534 | main () | |
17535 | { | |
17536 | ||
b1fc1658 | 17537 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17538 | |
17539 | ; | |
17540 | return 0; | |
17541 | } | |
17542 | _ACEOF | |
7083c021 | 17543 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17544 | charybdis_cv_c_gcc_w_redundant_decls=yes |
17545 | else | |
7083c021 | 17546 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 17547 | fi |
631ef239 | 17548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17549 | CFLAGS="${oldcflags}" |
17550 | fi | |
17551 | ||
17552 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
17553 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17555 | $as_echo "ok" >&6; } | |
212380e3 AC |
17556 | else |
17557 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
17558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17559 | $as_echo "no" >&6; } | |
212380e3 AC |
17560 | fi |
17561 | else | |
7083c021 AC |
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17563 | $as_echo "no" >&6; } | |
212380e3 AC |
17564 | fi |
17565 | ||
17566 | ||
7083c021 AC |
17567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
17568 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
17569 | if test "${GCC-no}" = yes |
17570 | then | |
b6d0720c | 17571 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 17572 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17573 | else |
17574 | ||
17575 | oldcflags="${CFLAGS-}" | |
17576 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 17577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17578 | /* end confdefs.h. */ |
17579 | ||
17580 | #include <string.h> | |
17581 | #include <stdio.h> | |
17582 | int main(void); | |
17583 | ||
17584 | int | |
17585 | main () | |
17586 | { | |
17587 | ||
b1fc1658 | 17588 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17589 | |
17590 | ; | |
17591 | return 0; | |
17592 | } | |
17593 | _ACEOF | |
7083c021 | 17594 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17595 | charybdis_cv_c_gcc_w_float_equal=yes |
17596 | else | |
7083c021 | 17597 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 17598 | fi |
631ef239 | 17599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17600 | CFLAGS="${oldcflags}" |
17601 | fi | |
17602 | ||
17603 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
17604 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17606 | $as_echo "ok" >&6; } | |
212380e3 AC |
17607 | else |
17608 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
17609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17610 | $as_echo "no" >&6; } | |
212380e3 AC |
17611 | fi |
17612 | else | |
7083c021 AC |
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17614 | $as_echo "no" >&6; } | |
212380e3 AC |
17615 | fi |
17616 | ||
17617 | ||
7083c021 AC |
17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
17619 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
17620 | if test "${GCC-no}" = yes |
17621 | then | |
b6d0720c | 17622 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 17623 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17624 | else |
17625 | ||
17626 | oldcflags="${CFLAGS-}" | |
4a584d41 | 17627 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 17628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17629 | /* end confdefs.h. */ |
17630 | ||
17631 | #include <string.h> | |
17632 | #include <stdio.h> | |
17633 | int main(void); | |
17634 | ||
17635 | int | |
17636 | main () | |
17637 | { | |
7083c021 AC |
17638 | |
17639 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17640 | ||
212380e3 AC |
17641 | ; |
17642 | return 0; | |
17643 | } | |
17644 | _ACEOF | |
7083c021 AC |
17645 | if ac_fn_c_try_compile "$LINENO"; then : |
17646 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 17647 | else |
7083c021 AC |
17648 | charybdis_cv_c_gcc_w_format=no |
17649 | fi | |
17650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17651 | CFLAGS="${oldcflags}" | |
17652 | fi | |
17653 | ||
17654 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
17655 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17657 | $as_echo "ok" >&6; } | |
17658 | else | |
17659 | charybdis_cv_c_gcc_w_format='' | |
17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17661 | $as_echo "no" >&6; } | |
17662 | fi | |
17663 | else | |
17664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17665 | $as_echo "no" >&6; } | |
17666 | fi | |
17667 | ||
17668 | ||
17669 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 17670 | |
212380e3 | 17671 | fi |
631ef239 | 17672 | |
7083c021 | 17673 | |
d2c5159a JT |
17674 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
17675 | ||
212380e3 AC |
17676 | |
17677 | ||
17678 | ||
17679 | ||
17680 | ||
17681 | ||
17682 | ||
17683 | ||
17684 | ||
17685 | ||
17686 | ||
17687 | ||
17688 | ||
17689 | if test "$prefix" = "NONE"; then | |
17690 | ||
17691 | cat >>confdefs.h <<_ACEOF | |
17692 | #define IRCD_PREFIX "$ac_default_prefix" | |
17693 | _ACEOF | |
17694 | ||
17695 | ||
17696 | else | |
17697 | ||
17698 | ||
17699 | prefix=`echo $prefix | sed 's/\/$//'` | |
17700 | ||
17701 | cat >>confdefs.h <<_ACEOF | |
17702 | #define IRCD_PREFIX "$prefix" | |
17703 | _ACEOF | |
17704 | ||
17705 | ||
17706 | fi | |
17707 | ||
0d73e7db | 17708 | 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 | 17709 | |
2eff3833 | 17710 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
17711 | |
17712 | ||
17713 | cat >confcache <<\_ACEOF | |
17714 | # This file is a shell script that caches the results of configure | |
17715 | # tests run on this system so they can be shared between configure | |
17716 | # scripts and configure runs, see configure's option --config-cache. | |
17717 | # It is not useful on other systems. If it contains results you don't | |
17718 | # want to keep, you may remove or edit it. | |
17719 | # | |
17720 | # config.status only pays attention to the cache file if you give it | |
17721 | # the --recheck option to rerun configure. | |
17722 | # | |
17723 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17724 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17725 | # following values. | |
17726 | ||
17727 | _ACEOF | |
17728 | ||
17729 | # The following way of writing the cache mishandles newlines in values, | |
17730 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 17731 | # So, we kill variables containing newlines. |
212380e3 AC |
17732 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17733 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
17734 | ( |
17735 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17736 | eval ac_val=\$$ac_var | |
17737 | case $ac_val in #( | |
17738 | *${as_nl}*) | |
17739 | case $ac_var in #( | |
7083c021 AC |
17740 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17741 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
17742 | esac |
17743 | case $ac_var in #( | |
17744 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
17745 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17746 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
17747 | esac ;; |
17748 | esac | |
17749 | done | |
17750 | ||
212380e3 | 17751 | (set) 2>&1 | |
631ef239 AC |
17752 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17753 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
17754 | # `set' does not quote correctly, so add quotes: double-quote |
17755 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
17756 | sed -n \ |
17757 | "s/'/'\\\\''/g; | |
17758 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 17759 | ;; #( |
212380e3 AC |
17760 | *) |
17761 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 17762 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 17763 | ;; |
631ef239 AC |
17764 | esac | |
17765 | sort | |
17766 | ) | | |
212380e3 | 17767 | sed ' |
631ef239 | 17768 | /^ac_cv_env_/b end |
212380e3 | 17769 | t clear |
631ef239 | 17770 | :clear |
212380e3 AC |
17771 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17772 | t end | |
631ef239 AC |
17773 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17774 | :end' >>confcache | |
17775 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17776 | if test -w "$cache_file"; then | |
b6d0720c | 17777 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
17778 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17779 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
17780 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17781 | cat confcache >"$cache_file" | |
17782 | else | |
17783 | case $cache_file in #( | |
17784 | */* | ?:*) | |
17785 | mv -f confcache "$cache_file"$$ && | |
17786 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17787 | *) | |
17788 | mv -f confcache "$cache_file" ;; | |
17789 | esac | |
17790 | fi | |
17791 | fi | |
212380e3 | 17792 | else |
7083c021 AC |
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17794 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
17795 | fi |
17796 | fi | |
17797 | rm -f confcache | |
17798 | ||
17799 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17800 | # Let make expand exec_prefix. | |
17801 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17802 | ||
212380e3 AC |
17803 | DEFS=-DHAVE_CONFIG_H |
17804 | ||
17805 | ac_libobjs= | |
17806 | ac_ltlibobjs= | |
b6d0720c | 17807 | U= |
212380e3 AC |
17808 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17809 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 17810 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 17811 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
17812 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17813 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
17814 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17815 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
17816 | done |
17817 | LIBOBJS=$ac_libobjs | |
17818 | ||
17819 | LTLIBOBJS=$ac_ltlibobjs | |
17820 | ||
17821 | ||
c52df125 AC |
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17823 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17824 | if test -n "$am_sleep_pid"; then | |
17825 | # Hide warnings about reused PIDs. | |
17826 | wait $am_sleep_pid 2>/dev/null | |
17827 | fi | |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17829 | $as_echo "done" >&6; } | |
c52df125 AC |
17830 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17831 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17832 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17833 | fi | |
17834 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17835 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17836 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17837 | fi | |
eec2776c AJ |
17838 | if test -n "$EXEEXT"; then |
17839 | am__EXEEXT_TRUE= | |
17840 | am__EXEEXT_FALSE='#' | |
17841 | else | |
17842 | am__EXEEXT_TRUE='#' | |
17843 | am__EXEEXT_FALSE= | |
17844 | fi | |
17845 | ||
c52df125 AC |
17846 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
17847 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
17848 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17849 | fi | |
17850 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
17851 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
17852 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17853 | fi | |
17854 | LT_CONFIG_H=include/setup.h | |
17855 | ||
17856 | _ltdl_libobjs= | |
17857 | _ltdl_ltlibobjs= | |
17858 | if test -n "$_LT_LIBOBJS"; then | |
17859 | # Remove the extension. | |
17860 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17861 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
17862 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
17863 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
17864 | done | |
17865 | fi | |
17866 | ltdl_LIBOBJS=$_ltdl_libobjs | |
17867 | ||
17868 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
17869 | ||
17870 | ||
17871 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
17872 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
17873 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17874 | fi | |
212380e3 | 17875 | |
7083c021 AC |
17876 | |
17877 | ||
b6d0720c | 17878 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 17879 | ac_write_fail=0 |
212380e3 AC |
17880 | ac_clean_files_save=$ac_clean_files |
17881 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
17882 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17883 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17884 | as_write_fail=0 | |
17885 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
17886 | #! $SHELL |
17887 | # Generated by $as_me. | |
17888 | # Run this file to recreate the current configuration. | |
17889 | # Compiler output produced by configure, useful for debugging | |
17890 | # configure, is in config.log if it exists. | |
17891 | ||
17892 | debug=false | |
17893 | ac_cs_recheck=false | |
17894 | ac_cs_silent=false | |
212380e3 | 17895 | |
7083c021 AC |
17896 | SHELL=\${CONFIG_SHELL-$SHELL} |
17897 | export SHELL | |
17898 | _ASEOF | |
17899 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17900 | ## -------------------- ## | |
17901 | ## M4sh Initialization. ## | |
17902 | ## -------------------- ## | |
212380e3 | 17903 | |
631ef239 AC |
17904 | # Be more Bourne compatible |
17905 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 17906 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
17907 | emulate sh |
17908 | NULLCMD=: | |
7083c021 | 17909 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
17910 | # is contrary to our usage. Disable this feature. |
17911 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 17912 | setopt NO_GLOB_SUBST |
212380e3 | 17913 | else |
7083c021 AC |
17914 | case `(set -o) 2>/dev/null` in #( |
17915 | *posix*) : | |
17916 | set -o posix ;; #( | |
17917 | *) : | |
17918 | ;; | |
631ef239 | 17919 | esac |
212380e3 AC |
17920 | fi |
17921 | ||
17922 | ||
7083c021 AC |
17923 | as_nl=' |
17924 | ' | |
17925 | export as_nl | |
17926 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17927 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17928 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17929 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17930 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17931 | # but without wasting forks for bash or zsh. | |
17932 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17933 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17934 | as_echo='print -r --' | |
17935 | as_echo_n='print -rn --' | |
17936 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17937 | as_echo='printf %s\n' | |
17938 | as_echo_n='printf %s' | |
17939 | else | |
17940 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17941 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17942 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 17943 | else |
7083c021 AC |
17944 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
17945 | as_echo_n_body='eval | |
17946 | arg=$1; | |
17947 | case $arg in #( | |
17948 | *"$as_nl"*) | |
17949 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17950 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17951 | esac; | |
17952 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17953 | ' | |
17954 | export as_echo_n_body | |
17955 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 17956 | fi |
7083c021 AC |
17957 | export as_echo_body |
17958 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
17959 | fi |
17960 | ||
7083c021 AC |
17961 | # The user is always right. |
17962 | if test "${PATH_SEPARATOR+set}" != set; then | |
17963 | PATH_SEPARATOR=: | |
17964 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17965 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17966 | PATH_SEPARATOR=';' | |
17967 | } | |
631ef239 AC |
17968 | fi |
17969 | ||
17970 | ||
17971 | # IFS | |
17972 | # We need space, tab and new line, in precisely that order. Quoting is | |
17973 | # there to prevent editors from complaining about space-tab. | |
17974 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17975 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
17976 | IFS=" "" $as_nl" |
17977 | ||
17978 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 17979 | as_myself= |
7083c021 | 17980 | case $0 in #(( |
631ef239 AC |
17981 | *[\\/]* ) as_myself=$0 ;; |
17982 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17983 | for as_dir in $PATH | |
17984 | do | |
17985 | IFS=$as_save_IFS | |
17986 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
17987 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
17988 | done | |
631ef239 AC |
17989 | IFS=$as_save_IFS |
17990 | ||
17991 | ;; | |
17992 | esac | |
17993 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17994 | # in which case we are not to be found in the path. | |
17995 | if test "x$as_myself" = x; then | |
17996 | as_myself=$0 | |
17997 | fi | |
17998 | if test ! -f "$as_myself"; then | |
7083c021 AC |
17999 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
18000 | exit 1 | |
631ef239 AC |
18001 | fi |
18002 | ||
7083c021 AC |
18003 | # Unset variables that we do not need and which cause bugs (e.g. in |
18004 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18005 | # suppresses any "Segmentation fault" message there. '((' could | |
18006 | # trigger a bug in pdksh 5.2.14. | |
18007 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18008 | do eval test x\${$as_var+set} = xset \ | |
18009 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 18010 | done |
212380e3 AC |
18011 | PS1='$ ' |
18012 | PS2='> ' | |
18013 | PS4='+ ' | |
18014 | ||
7083c021 AC |
18015 | # NLS nuisances. |
18016 | LC_ALL=C | |
18017 | export LC_ALL | |
18018 | LANGUAGE=C | |
18019 | export LANGUAGE | |
18020 | ||
18021 | # CDPATH. | |
18022 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18023 | ||
18024 | ||
b6d0720c AC |
18025 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18026 | # ---------------------------------------- | |
7083c021 AC |
18027 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18028 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 18029 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
18030 | as_fn_error () |
18031 | { | |
b6d0720c AC |
18032 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18033 | if test "$4"; then | |
18034 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18035 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 18036 | fi |
b6d0720c | 18037 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
18038 | as_fn_exit $as_status |
18039 | } # as_fn_error | |
18040 | ||
18041 | ||
18042 | # as_fn_set_status STATUS | |
18043 | # ----------------------- | |
18044 | # Set $? to STATUS, without forking. | |
18045 | as_fn_set_status () | |
18046 | { | |
18047 | return $1 | |
18048 | } # as_fn_set_status | |
18049 | ||
18050 | # as_fn_exit STATUS | |
18051 | # ----------------- | |
18052 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18053 | as_fn_exit () | |
18054 | { | |
18055 | set +e | |
18056 | as_fn_set_status $1 | |
18057 | exit $1 | |
18058 | } # as_fn_exit | |
18059 | ||
18060 | # as_fn_unset VAR | |
18061 | # --------------- | |
18062 | # Portably unset VAR. | |
18063 | as_fn_unset () | |
18064 | { | |
18065 | { eval $1=; unset $1;} | |
18066 | } | |
18067 | as_unset=as_fn_unset | |
18068 | # as_fn_append VAR VALUE | |
18069 | # ---------------------- | |
18070 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18071 | # advantage of any shell optimizations that allow amortized linear growth over | |
18072 | # repeated appends, instead of the typical quadratic growth present in naive | |
18073 | # implementations. | |
18074 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18075 | eval 'as_fn_append () | |
18076 | { | |
18077 | eval $1+=\$2 | |
18078 | }' | |
18079 | else | |
18080 | as_fn_append () | |
18081 | { | |
18082 | eval $1=\$$1\$2 | |
18083 | } | |
18084 | fi # as_fn_append | |
18085 | ||
18086 | # as_fn_arith ARG... | |
18087 | # ------------------ | |
18088 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18089 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18090 | # must be portable across $(()) and expr. | |
18091 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18092 | eval 'as_fn_arith () | |
18093 | { | |
18094 | as_val=$(( $* )) | |
18095 | }' | |
18096 | else | |
18097 | as_fn_arith () | |
18098 | { | |
18099 | as_val=`expr "$@" || test $? -eq 1` | |
18100 | } | |
18101 | fi # as_fn_arith | |
18102 | ||
212380e3 | 18103 | |
631ef239 AC |
18104 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18105 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
18106 | as_expr=expr |
18107 | else | |
18108 | as_expr=false | |
18109 | fi | |
18110 | ||
631ef239 | 18111 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
18112 | as_basename=basename |
18113 | else | |
18114 | as_basename=false | |
18115 | fi | |
18116 | ||
7083c021 AC |
18117 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18118 | as_dirname=dirname | |
18119 | else | |
18120 | as_dirname=false | |
18121 | fi | |
212380e3 | 18122 | |
631ef239 | 18123 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
18124 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18125 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 18126 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 18127 | $as_echo X/"$0" | |
631ef239 AC |
18128 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18129 | s//\1/ | |
18130 | q | |
18131 | } | |
18132 | /^X\/\(\/\/\)$/{ | |
18133 | s//\1/ | |
18134 | q | |
18135 | } | |
18136 | /^X\/\(\/\).*/{ | |
18137 | s//\1/ | |
18138 | q | |
18139 | } | |
18140 | s/.*/./; q'` | |
212380e3 | 18141 | |
7083c021 AC |
18142 | # Avoid depending upon Character Ranges. |
18143 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18144 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18145 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18146 | as_cr_digits='0123456789' | |
18147 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
18148 | |
18149 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 18150 | case `echo -n x` in #((((( |
631ef239 | 18151 | -n*) |
7083c021 | 18152 | case `echo 'xy\c'` in |
631ef239 | 18153 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
18154 | xy) ECHO_C='\c';; |
18155 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18156 | ECHO_T=' ';; | |
631ef239 AC |
18157 | esac;; |
18158 | *) | |
18159 | ECHO_N='-n';; | |
212380e3 AC |
18160 | esac |
18161 | ||
212380e3 | 18162 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
18163 | if test -d conf$$.dir; then |
18164 | rm -f conf$$.dir/conf$$.file | |
18165 | else | |
18166 | rm -f conf$$.dir | |
7083c021 AC |
18167 | mkdir conf$$.dir 2>/dev/null |
18168 | fi | |
18169 | if (echo >conf$$.file) 2>/dev/null; then | |
18170 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18171 | as_ln_s='ln -s' | |
18172 | # ... but there are two gotchas: | |
18173 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18174 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 18175 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 18176 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 18177 | as_ln_s='cp -pR' |
7083c021 AC |
18178 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18179 | as_ln_s=ln | |
18180 | else | |
2eff3833 | 18181 | as_ln_s='cp -pR' |
7083c021 | 18182 | fi |
212380e3 | 18183 | else |
2eff3833 | 18184 | as_ln_s='cp -pR' |
212380e3 | 18185 | fi |
631ef239 AC |
18186 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18187 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 18188 | |
7083c021 AC |
18189 | |
18190 | # as_fn_mkdir_p | |
18191 | # ------------- | |
18192 | # Create "$as_dir" as a directory, including parents if necessary. | |
18193 | as_fn_mkdir_p () | |
18194 | { | |
18195 | ||
18196 | case $as_dir in #( | |
18197 | -*) as_dir=./$as_dir;; | |
18198 | esac | |
18199 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18200 | as_dirs= | |
18201 | while :; do | |
18202 | case $as_dir in #( | |
18203 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18204 | *) as_qdir=$as_dir;; | |
18205 | esac | |
18206 | as_dirs="'$as_qdir' $as_dirs" | |
18207 | as_dir=`$as_dirname -- "$as_dir" || | |
18208 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18209 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18210 | X"$as_dir" : 'X\(//\)$' \| \ | |
18211 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18212 | $as_echo X"$as_dir" | | |
18213 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18214 | s//\1/ | |
18215 | q | |
18216 | } | |
18217 | /^X\(\/\/\)[^/].*/{ | |
18218 | s//\1/ | |
18219 | q | |
18220 | } | |
18221 | /^X\(\/\/\)$/{ | |
18222 | s//\1/ | |
18223 | q | |
18224 | } | |
18225 | /^X\(\/\).*/{ | |
18226 | s//\1/ | |
18227 | q | |
18228 | } | |
18229 | s/.*/./; q'` | |
18230 | test -d "$as_dir" && break | |
18231 | done | |
18232 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 18233 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
18234 | |
18235 | ||
18236 | } # as_fn_mkdir_p | |
212380e3 | 18237 | if mkdir -p . 2>/dev/null; then |
7083c021 | 18238 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
18239 | else |
18240 | test -d ./-p && rmdir ./-p | |
18241 | as_mkdir_p=false | |
18242 | fi | |
18243 | ||
2eff3833 JT |
18244 | |
18245 | # as_fn_executable_p FILE | |
18246 | # ----------------------- | |
18247 | # Test if FILE is an executable regular file. | |
18248 | as_fn_executable_p () | |
18249 | { | |
18250 | test -f "$1" && test -x "$1" | |
18251 | } # as_fn_executable_p | |
18252 | as_test_x='test -x' | |
18253 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
18254 | |
18255 | # Sed expression to map a string onto a valid CPP name. | |
18256 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18257 | ||
18258 | # Sed expression to map a string onto a valid variable name. | |
18259 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18260 | ||
18261 | ||
212380e3 | 18262 | exec 6>&1 |
7083c021 AC |
18263 | ## ----------------------------------- ## |
18264 | ## Main body of $CONFIG_STATUS script. ## | |
18265 | ## ----------------------------------- ## | |
18266 | _ASEOF | |
18267 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 18268 | |
7083c021 AC |
18269 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18270 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 18271 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
18272 | # values after options handling. |
18273 | ac_log=" | |
c52df125 | 18274 | This file was extended by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 18275 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
18276 | |
18277 | CONFIG_FILES = $CONFIG_FILES | |
18278 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18279 | CONFIG_LINKS = $CONFIG_LINKS | |
18280 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18281 | $ $0 $@ | |
18282 | ||
631ef239 AC |
18283 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18284 | " | |
18285 | ||
212380e3 AC |
18286 | _ACEOF |
18287 | ||
7083c021 AC |
18288 | case $ac_config_files in *" |
18289 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18290 | esac | |
18291 | ||
18292 | case $ac_config_headers in *" | |
18293 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18294 | esac | |
18295 | ||
18296 | ||
18297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 18298 | # Files that config.status was made for. |
631ef239 AC |
18299 | config_files="$ac_config_files" |
18300 | config_headers="$ac_config_headers" | |
9f9b7042 | 18301 | config_commands="$ac_config_commands" |
212380e3 | 18302 | |
631ef239 | 18303 | _ACEOF |
212380e3 | 18304 | |
7083c021 | 18305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 18306 | ac_cs_usage="\ |
7083c021 AC |
18307 | \`$as_me' instantiates files and other configuration actions |
18308 | from templates according to the current configuration. Unless the files | |
18309 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 18310 | |
7083c021 | 18311 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
18312 | |
18313 | -h, --help print this help, then exit | |
631ef239 | 18314 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 18315 | --config print configuration, then exit |
7083c021 AC |
18316 | -q, --quiet, --silent |
18317 | do not print progress messages | |
212380e3 AC |
18318 | -d, --debug don't remove temporary files |
18319 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
18320 | --file=FILE[:TEMPLATE] |
18321 | instantiate the configuration file FILE | |
18322 | --header=FILE[:TEMPLATE] | |
18323 | instantiate the configuration header FILE | |
212380e3 AC |
18324 | |
18325 | Configuration files: | |
18326 | $config_files | |
18327 | ||
18328 | Configuration headers: | |
18329 | $config_headers | |
18330 | ||
9f9b7042 NPB |
18331 | Configuration commands: |
18332 | $config_commands | |
18333 | ||
7083c021 | 18334 | Report bugs to the package provider." |
212380e3 | 18335 | |
631ef239 | 18336 | _ACEOF |
7083c021 | 18337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 18338 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 18339 | ac_cs_version="\\ |
c52df125 | 18340 | charybdis config.status 3.6.0-dev |
2eff3833 | 18341 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 18342 | with options \\"\$ac_cs_config\\" |
212380e3 | 18343 | |
2eff3833 | 18344 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
18345 | This config.status script is free software; the Free Software Foundation |
18346 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
18347 | |
18348 | ac_pwd='$ac_pwd' | |
18349 | srcdir='$srcdir' | |
18350 | INSTALL='$INSTALL' | |
c52df125 AC |
18351 | MKDIR_P='$MKDIR_P' |
18352 | AWK='$AWK' | |
7083c021 | 18353 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
18354 | _ACEOF |
18355 | ||
7083c021 AC |
18356 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18357 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
18358 | ac_need_defaults=: |
18359 | while test $# != 0 | |
18360 | do | |
18361 | case $1 in | |
b6d0720c | 18362 | --*=?*) |
631ef239 AC |
18363 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18364 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
18365 | ac_shift=: |
18366 | ;; | |
b6d0720c AC |
18367 | --*=) |
18368 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18369 | ac_optarg= | |
18370 | ac_shift=: | |
18371 | ;; | |
631ef239 | 18372 | *) |
212380e3 AC |
18373 | ac_option=$1 |
18374 | ac_optarg=$2 | |
18375 | ac_shift=shift | |
18376 | ;; | |
212380e3 AC |
18377 | esac |
18378 | ||
18379 | case $ac_option in | |
18380 | # Handling of the options. | |
212380e3 AC |
18381 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18382 | ac_cs_recheck=: ;; | |
631ef239 | 18383 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 18384 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
18385 | --config | --confi | --conf | --con | --co | --c ) |
18386 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 18387 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
18388 | debug=: ;; |
18389 | --file | --fil | --fi | --f ) | |
18390 | $ac_shift | |
7083c021 AC |
18391 | case $ac_optarg in |
18392 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 18393 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
18394 | esac |
18395 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
18396 | ac_need_defaults=false;; |
18397 | --header | --heade | --head | --hea ) | |
18398 | $ac_shift | |
7083c021 AC |
18399 | case $ac_optarg in |
18400 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18401 | esac | |
18402 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 18403 | ac_need_defaults=false;; |
631ef239 AC |
18404 | --he | --h) |
18405 | # Conflict between --help and --header | |
b6d0720c | 18406 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 18407 | Try \`$0 --help' for more information.";; |
631ef239 | 18408 | --help | --hel | -h ) |
7083c021 | 18409 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
18410 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18411 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18412 | ac_cs_silent=: ;; | |
18413 | ||
18414 | # This is an error. | |
b6d0720c | 18415 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 18416 | Try \`$0 --help' for more information." ;; |
212380e3 | 18417 | |
7083c021 | 18418 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 18419 | ac_need_defaults=false ;; |
212380e3 AC |
18420 | |
18421 | esac | |
18422 | shift | |
18423 | done | |
18424 | ||
18425 | ac_configure_extra_args= | |
18426 | ||
18427 | if $ac_cs_silent; then | |
18428 | exec 6>/dev/null | |
18429 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18430 | fi | |
18431 | ||
18432 | _ACEOF | |
7083c021 | 18433 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 18434 | if \$ac_cs_recheck; then |
2eff3833 | 18435 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
18436 | shift |
18437 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18438 | CONFIG_SHELL='$SHELL' | |
631ef239 | 18439 | export CONFIG_SHELL |
7083c021 | 18440 | exec "\$@" |
212380e3 AC |
18441 | fi |
18442 | ||
18443 | _ACEOF | |
7083c021 | 18444 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18445 | exec 5>>config.log |
18446 | { | |
18447 | echo | |
18448 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18449 | ## Running $as_me. ## | |
18450 | _ASBOX | |
7083c021 | 18451 | $as_echo "$ac_log" |
631ef239 | 18452 | } >&5 |
212380e3 | 18453 | |
631ef239 | 18454 | _ACEOF |
7083c021 | 18455 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c52df125 AC |
18456 | # |
18457 | # INIT-COMMANDS | |
18458 | # | |
18459 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18460 | ||
18461 | ||
18462 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18463 | # if CDPATH is set. | |
18464 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18465 | ||
18466 | sed_quote_subst='$sed_quote_subst' | |
18467 | double_quote_subst='$double_quote_subst' | |
18468 | delay_variable_subst='$delay_variable_subst' | |
18469 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18470 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18471 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18472 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18473 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18474 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18475 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18476 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18477 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18478 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18479 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18480 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18481 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18482 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18483 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18484 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18485 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18486 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18487 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18488 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18489 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18490 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18491 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18492 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18493 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18494 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18495 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18496 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18497 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18498 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18499 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18500 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18501 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18502 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18503 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18504 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18505 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
18506 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
18507 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
18508 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
18509 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18510 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18511 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
18512 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18513 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18514 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18515 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18516 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18517 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18518 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18519 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18520 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18521 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18522 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18523 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18524 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18525 | 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"`' | |
18526 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18527 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
18528 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18529 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18530 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18531 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18532 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18533 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18534 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18535 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18536 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
18537 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18538 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18539 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18540 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18541 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18542 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18543 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18544 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18545 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18546 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18547 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18548 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18549 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18550 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18551 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18552 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18553 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18554 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18555 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18556 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18557 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18558 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18559 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18560 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18561 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18562 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18563 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18564 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18565 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18566 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18567 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18568 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18569 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18570 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18571 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18572 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18573 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
18574 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18575 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18576 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18577 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18578 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18579 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18580 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18581 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18582 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18583 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18584 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18585 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18586 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18587 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18588 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18589 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18590 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18591 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18592 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18593 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18594 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18595 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18596 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18597 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18598 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18599 | ||
18600 | LTCC='$LTCC' | |
18601 | LTCFLAGS='$LTCFLAGS' | |
18602 | compiler='$compiler_DEFAULT' | |
18603 | ||
18604 | # A function that is used when there is no print builtin or printf. | |
18605 | func_fallback_echo () | |
18606 | { | |
18607 | eval 'cat <<_LTECHO_EOF | |
18608 | \$1 | |
18609 | _LTECHO_EOF' | |
18610 | } | |
18611 | ||
18612 | # Quote evaled strings. | |
18613 | for var in SHELL \ | |
18614 | ECHO \ | |
18615 | PATH_SEPARATOR \ | |
18616 | SED \ | |
18617 | GREP \ | |
18618 | EGREP \ | |
18619 | FGREP \ | |
18620 | LD \ | |
18621 | NM \ | |
18622 | LN_S \ | |
18623 | lt_SP2NL \ | |
18624 | lt_NL2SP \ | |
18625 | reload_flag \ | |
18626 | OBJDUMP \ | |
18627 | deplibs_check_method \ | |
18628 | file_magic_cmd \ | |
18629 | file_magic_glob \ | |
18630 | want_nocaseglob \ | |
18631 | DLLTOOL \ | |
18632 | sharedlib_from_linklib_cmd \ | |
18633 | AR \ | |
18634 | AR_FLAGS \ | |
18635 | archiver_list_spec \ | |
18636 | STRIP \ | |
18637 | RANLIB \ | |
18638 | CC \ | |
18639 | CFLAGS \ | |
18640 | compiler \ | |
18641 | lt_cv_sys_global_symbol_pipe \ | |
18642 | lt_cv_sys_global_symbol_to_cdecl \ | |
18643 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18644 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18645 | nm_file_list_spec \ | |
18646 | lt_prog_compiler_no_builtin_flag \ | |
18647 | lt_prog_compiler_pic \ | |
18648 | lt_prog_compiler_wl \ | |
18649 | lt_prog_compiler_static \ | |
18650 | lt_cv_prog_compiler_c_o \ | |
18651 | need_locks \ | |
18652 | MANIFEST_TOOL \ | |
18653 | DSYMUTIL \ | |
18654 | NMEDIT \ | |
18655 | LIPO \ | |
18656 | OTOOL \ | |
18657 | OTOOL64 \ | |
18658 | shrext_cmds \ | |
18659 | export_dynamic_flag_spec \ | |
18660 | whole_archive_flag_spec \ | |
18661 | compiler_needs_object \ | |
18662 | with_gnu_ld \ | |
18663 | allow_undefined_flag \ | |
18664 | no_undefined_flag \ | |
18665 | hardcode_libdir_flag_spec \ | |
18666 | hardcode_libdir_separator \ | |
18667 | exclude_expsyms \ | |
18668 | include_expsyms \ | |
18669 | file_list_spec \ | |
18670 | variables_saved_for_relink \ | |
18671 | libname_spec \ | |
18672 | library_names_spec \ | |
18673 | soname_spec \ | |
18674 | install_override_mode \ | |
18675 | finish_eval \ | |
18676 | old_striplib \ | |
18677 | striplib; do | |
18678 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18679 | *[\\\\\\\`\\"\\\$]*) | |
18680 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18681 | ;; | |
18682 | *) | |
18683 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18684 | ;; | |
18685 | esac | |
18686 | done | |
18687 | ||
18688 | # Double-quote double-evaled strings. | |
18689 | for var in reload_cmds \ | |
18690 | old_postinstall_cmds \ | |
18691 | old_postuninstall_cmds \ | |
18692 | old_archive_cmds \ | |
18693 | extract_expsyms_cmds \ | |
18694 | old_archive_from_new_cmds \ | |
18695 | old_archive_from_expsyms_cmds \ | |
18696 | archive_cmds \ | |
18697 | archive_expsym_cmds \ | |
18698 | module_cmds \ | |
18699 | module_expsym_cmds \ | |
18700 | export_symbols_cmds \ | |
18701 | prelink_cmds \ | |
18702 | postlink_cmds \ | |
18703 | postinstall_cmds \ | |
18704 | postuninstall_cmds \ | |
18705 | finish_cmds \ | |
18706 | sys_lib_search_path_spec \ | |
18707 | sys_lib_dlsearch_path_spec; do | |
18708 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18709 | *[\\\\\\\`\\"\\\$]*) | |
18710 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18711 | ;; | |
18712 | *) | |
18713 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18714 | ;; | |
18715 | esac | |
18716 | done | |
18717 | ||
18718 | ac_aux_dir='$ac_aux_dir' | |
18719 | xsi_shell='$xsi_shell' | |
18720 | lt_shell_append='$lt_shell_append' | |
18721 | ||
18722 | # See if we are running on zsh, and set the options which allow our | |
18723 | # commands through without removal of \ escapes INIT. | |
18724 | if test -n "\${ZSH_VERSION+set}" ; then | |
18725 | setopt NO_GLOB_SUBST | |
18726 | fi | |
18727 | ||
18728 | ||
18729 | PACKAGE='$PACKAGE' | |
18730 | VERSION='$VERSION' | |
18731 | TIMESTAMP='$TIMESTAMP' | |
18732 | RM='$RM' | |
18733 | ofile='$ofile' | |
18734 | ||
18735 | ||
18736 | ||
18737 | ||
631ef239 | 18738 | _ACEOF |
212380e3 | 18739 | |
7083c021 | 18740 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18741 | |
18742 | # Handling of arguments. | |
212380e3 AC |
18743 | for ac_config_target in $ac_config_targets |
18744 | do | |
631ef239 AC |
18745 | case $ac_config_target in |
18746 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
c52df125 AC |
18747 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
18748 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
631ef239 | 18749 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
0d73e7db | 18750 | "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;; |
7083c021 | 18751 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 18752 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 18753 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
46fded53 | 18754 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; |
631ef239 AC |
18755 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
18756 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 18757 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
18758 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
18759 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 18760 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 18761 | |
b6d0720c | 18762 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
18763 | esac |
18764 | done | |
18765 | ||
631ef239 | 18766 | |
212380e3 AC |
18767 | # If the user did not use the arguments to specify the items to instantiate, |
18768 | # then the envvar interface is used. Set only those that are not. | |
18769 | # We use the long form for the default assignment because of an extremely | |
18770 | # bizarre bug on SunOS 4.1.3. | |
18771 | if $ac_need_defaults; then | |
18772 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18773 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 18774 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
18775 | fi |
18776 | ||
18777 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 18778 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 18779 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
18780 | # Hook for its removal unless debugging. |
18781 | # Note that there is a small window in which the directory will not be cleaned: | |
18782 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
18783 | $debug || |
18784 | { | |
b6d0720c | 18785 | tmp= ac_tmp= |
631ef239 | 18786 | trap 'exit_status=$? |
b6d0720c AC |
18787 | : "${ac_tmp:=$tmp}" |
18788 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 18789 | ' 0 |
7083c021 | 18790 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 18791 | } |
212380e3 AC |
18792 | # Create a (secure) tmp directory for tmp files. |
18793 | ||
18794 | { | |
631ef239 | 18795 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 18796 | test -d "$tmp" |
212380e3 AC |
18797 | } || |
18798 | { | |
631ef239 AC |
18799 | tmp=./conf$$-$RANDOM |
18800 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
18801 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18802 | ac_tmp=$tmp | |
212380e3 | 18803 | |
7083c021 AC |
18804 | # Set up the scripts for CONFIG_FILES section. |
18805 | # No need to generate them if there are no CONFIG_FILES. | |
18806 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
18807 | if test -n "$CONFIG_FILES"; then |
18808 | ||
631ef239 | 18809 | |
7083c021 AC |
18810 | ac_cr=`echo X | tr X '\015'` |
18811 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18812 | # But we know of no other shell where ac_cr would be empty at this | |
18813 | # point, so we can use a bashism as a fallback. | |
18814 | if test "x$ac_cr" = x; then | |
18815 | eval ac_cr=\$\'\\r\' | |
18816 | fi | |
18817 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18818 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 18819 | ac_cs_awk_cr='\\r' |
7083c021 AC |
18820 | else |
18821 | ac_cs_awk_cr=$ac_cr | |
18822 | fi | |
18823 | ||
b6d0720c | 18824 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 18825 | _ACEOF |
631ef239 AC |
18826 | |
18827 | ||
7083c021 AC |
18828 | { |
18829 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18830 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18831 | echo "_ACEOF" | |
18832 | } >conf$$subs.sh || | |
b6d0720c AC |
18833 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18834 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
18835 | ac_delim='%!_!# ' |
18836 | for ac_last_try in false false false false false :; do | |
7083c021 | 18837 | . ./conf$$subs.sh || |
b6d0720c | 18838 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
18839 | |
18840 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18841 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
18842 | break |
18843 | elif $ac_last_try; then | |
b6d0720c | 18844 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
18845 | else |
18846 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 18847 | fi |
631ef239 | 18848 | done |
7083c021 AC |
18849 | rm -f conf$$subs.sh |
18850 | ||
18851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 18852 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
18853 | _ACEOF |
18854 | sed -n ' | |
18855 | h | |
18856 | s/^/S["/; s/!.*/"]=/ | |
18857 | p | |
18858 | g | |
18859 | s/^[^!]*!// | |
18860 | :repl | |
18861 | t repl | |
18862 | s/'"$ac_delim"'$// | |
18863 | t delim | |
18864 | :nl | |
18865 | h | |
6fb6bd15 | 18866 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18867 | t more1 |
18868 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18869 | p | |
18870 | n | |
18871 | b repl | |
18872 | :more1 | |
18873 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18874 | p | |
18875 | g | |
18876 | s/.\{148\}// | |
18877 | t nl | |
18878 | :delim | |
18879 | h | |
6fb6bd15 | 18880 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18881 | t more2 |
18882 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18883 | p | |
18884 | b | |
18885 | :more2 | |
18886 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18887 | p | |
18888 | g | |
18889 | s/.\{148\}// | |
18890 | t delim | |
18891 | ' <conf$$subs.awk | sed ' | |
18892 | /^[^""]/{ | |
18893 | N | |
18894 | s/\n// | |
18895 | } | |
18896 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18897 | rm -f conf$$subs.awk | |
18898 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18899 | _ACAWK | |
b6d0720c | 18900 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
18901 | for (key in S) S_is_set[key] = 1 |
18902 | FS = "\a" | |
212380e3 | 18903 | |
7083c021 AC |
18904 | } |
18905 | { | |
18906 | line = $ 0 | |
18907 | nfields = split(line, field, "@") | |
18908 | substed = 0 | |
18909 | len = length(field[1]) | |
18910 | for (i = 2; i < nfields; i++) { | |
18911 | key = field[i] | |
18912 | keylen = length(key) | |
18913 | if (S_is_set[key]) { | |
18914 | value = S[key] | |
18915 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18916 | len += length(value) + length(field[++i]) | |
18917 | substed = 1 | |
18918 | } else | |
18919 | len += 1 + keylen | |
18920 | } | |
631ef239 | 18921 | |
7083c021 AC |
18922 | print line |
18923 | } | |
18924 | ||
18925 | _ACAWK | |
631ef239 | 18926 | _ACEOF |
7083c021 AC |
18927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18928 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18929 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18930 | else | |
18931 | cat | |
b6d0720c AC |
18932 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18933 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 18934 | _ACEOF |
631ef239 | 18935 | |
b6d0720c AC |
18936 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18937 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
18938 | # trailing colons and then remove the whole line if VPATH becomes empty |
18939 | # (actually we leave an empty line to preserve line numbers). | |
18940 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
18941 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18942 | h | |
18943 | s/// | |
18944 | s/^/:/ | |
18945 | s/[ ]*$/:/ | |
18946 | s/:\$(srcdir):/:/g | |
18947 | s/:\${srcdir}:/:/g | |
18948 | s/:@srcdir@:/:/g | |
18949 | s/^:*// | |
631ef239 | 18950 | s/:*$// |
b6d0720c AC |
18951 | x |
18952 | s/\(=[ ]*\).*/\1/ | |
18953 | G | |
18954 | s/\n// | |
631ef239 AC |
18955 | s/^[^=]*=[ ]*$// |
18956 | }' | |
18957 | fi | |
18958 | ||
7083c021 | 18959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18960 | fi # test -n "$CONFIG_FILES" |
18961 | ||
7083c021 AC |
18962 | # Set up the scripts for CONFIG_HEADERS section. |
18963 | # No need to generate them if there are no CONFIG_HEADERS. | |
18964 | # This happens for instance with `./config.status Makefile'. | |
18965 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 18966 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
18967 | BEGIN { |
18968 | _ACEOF | |
18969 | ||
18970 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18971 | # here-document in config.status, that substitutes the proper values into | |
18972 | # config.h.in to produce config.h. | |
18973 | ||
18974 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18975 | # handling of long lines. | |
18976 | ac_delim='%!_!# ' | |
18977 | for ac_last_try in false false :; do | |
b6d0720c AC |
18978 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18979 | if test -z "$ac_tt"; then | |
7083c021 AC |
18980 | break |
18981 | elif $ac_last_try; then | |
b6d0720c | 18982 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
18983 | else |
18984 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18985 | fi | |
18986 | done | |
18987 | ||
18988 | # For the awk script, D is an array of macro values keyed by name, | |
18989 | # likewise P contains macro parameters if any. Preserve backslash | |
18990 | # newline sequences. | |
18991 | ||
18992 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18993 | sed -n ' | |
18994 | s/.\{148\}/&'"$ac_delim"'/g | |
18995 | t rset | |
18996 | :rset | |
18997 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18998 | t def | |
18999 | d | |
19000 | :def | |
19001 | s/\\$// | |
19002 | t bsnl | |
19003 | s/["\\]/\\&/g | |
19004 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19005 | D["\1"]=" \3"/p | |
19006 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19007 | d | |
19008 | :bsnl | |
19009 | s/["\\]/\\&/g | |
19010 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19011 | D["\1"]=" \3\\\\\\n"\\/p | |
19012 | t cont | |
19013 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19014 | t cont | |
19015 | d | |
19016 | :cont | |
19017 | n | |
19018 | s/.\{148\}/&'"$ac_delim"'/g | |
19019 | t clear | |
19020 | :clear | |
19021 | s/\\$// | |
19022 | t bsnlc | |
19023 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19024 | d | |
19025 | :bsnlc | |
19026 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19027 | b cont | |
19028 | ' <confdefs.h | sed ' | |
19029 | s/'"$ac_delim"'/"\\\ | |
19030 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19031 | ||
19032 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19033 | for (key in D) D_is_set[key] = 1 | |
19034 | FS = "\a" | |
19035 | } | |
19036 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19037 | line = \$ 0 | |
19038 | split(line, arg, " ") | |
19039 | if (arg[1] == "#") { | |
19040 | defundef = arg[2] | |
19041 | mac1 = arg[3] | |
19042 | } else { | |
19043 | defundef = substr(arg[1], 2) | |
19044 | mac1 = arg[2] | |
19045 | } | |
19046 | split(mac1, mac2, "(") #) | |
19047 | macro = mac2[1] | |
19048 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19049 | if (D_is_set[macro]) { | |
19050 | # Preserve the white space surrounding the "#". | |
19051 | print prefix "define", macro P[macro] D[macro] | |
19052 | next | |
19053 | } else { | |
19054 | # Replace #undef with comments. This is necessary, for example, | |
19055 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19056 | # on some systems where configure will not decide to define it. | |
19057 | if (defundef == "undef") { | |
19058 | print "/*", prefix defundef, macro, "*/" | |
19059 | next | |
19060 | } | |
19061 | } | |
19062 | } | |
19063 | { print } | |
19064 | _ACAWK | |
19065 | _ACEOF | |
19066 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 19067 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
19068 | fi # test -n "$CONFIG_HEADERS" |
19069 | ||
631ef239 | 19070 | |
9f9b7042 | 19071 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
19072 | shift |
19073 | for ac_tag | |
631ef239 AC |
19074 | do |
19075 | case $ac_tag in | |
19076 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19077 | esac | |
19078 | case $ac_mode$ac_tag in | |
19079 | :[FHL]*:*);; | |
b6d0720c | 19080 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
19081 | :[FH]-) ac_tag=-:-;; |
19082 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 19083 | esac |
631ef239 AC |
19084 | ac_save_IFS=$IFS |
19085 | IFS=: | |
19086 | set x $ac_tag | |
19087 | IFS=$ac_save_IFS | |
19088 | shift | |
19089 | ac_file=$1 | |
19090 | shift | |
212380e3 | 19091 | |
631ef239 AC |
19092 | case $ac_mode in |
19093 | :L) ac_source=$1;; | |
19094 | :[FH]) | |
19095 | ac_file_inputs= | |
19096 | for ac_f | |
19097 | do | |
19098 | case $ac_f in | |
b6d0720c | 19099 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
19100 | *) # Look for the file first in the build tree, then in the source tree |
19101 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19102 | # because $ac_f cannot contain `:'. | |
19103 | test -f "$ac_f" || | |
19104 | case $ac_f in | |
19105 | [\\/$]*) false;; | |
19106 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19107 | esac || | |
b6d0720c | 19108 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 19109 | esac |
7083c021 AC |
19110 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19111 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
19112 | done |
19113 | ||
19114 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19115 | # use $as_me), people would be surprised to read: | |
19116 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
19117 | configure_input='Generated from '` |
19118 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19119 | `' by configure.' | |
631ef239 AC |
19120 | if test x"$ac_file" != x-; then |
19121 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
19122 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
19123 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 19124 | fi |
7083c021 AC |
19125 | # Neutralize special characters interpreted by sed in replacement strings. |
19126 | case $configure_input in #( | |
19127 | *\&* | *\|* | *\\* ) | |
19128 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19129 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19130 | *) ac_sed_conf_input=$configure_input;; | |
19131 | esac | |
631ef239 AC |
19132 | |
19133 | case $ac_tag in | |
b6d0720c AC |
19134 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19135 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
19136 | esac |
19137 | ;; | |
19138 | esac | |
19139 | ||
19140 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
19141 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19142 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19143 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 19144 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 19145 | $as_echo X"$ac_file" | |
631ef239 AC |
19146 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19147 | s//\1/ | |
19148 | q | |
19149 | } | |
19150 | /^X\(\/\/\)[^/].*/{ | |
19151 | s//\1/ | |
19152 | q | |
19153 | } | |
19154 | /^X\(\/\/\)$/{ | |
19155 | s//\1/ | |
19156 | q | |
19157 | } | |
19158 | /^X\(\/\).*/{ | |
19159 | s//\1/ | |
19160 | q | |
19161 | } | |
19162 | s/.*/./; q'` | |
7083c021 | 19163 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
19164 | ac_builddir=. |
19165 | ||
631ef239 AC |
19166 | case "$ac_dir" in |
19167 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19168 | *) | |
7083c021 | 19169 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 19170 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 19171 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
19172 | case $ac_top_builddir_sub in |
19173 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19174 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19175 | esac ;; | |
19176 | esac | |
19177 | ac_abs_top_builddir=$ac_pwd | |
19178 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19179 | # for backward compatibility: | |
19180 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
19181 | |
19182 | case $srcdir in | |
631ef239 | 19183 | .) # We are building in place. |
212380e3 | 19184 | ac_srcdir=. |
631ef239 AC |
19185 | ac_top_srcdir=$ac_top_builddir_sub |
19186 | ac_abs_top_srcdir=$ac_pwd ;; | |
19187 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 19188 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
19189 | ac_top_srcdir=$srcdir |
19190 | ac_abs_top_srcdir=$srcdir ;; | |
19191 | *) # Relative name. | |
19192 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19193 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19194 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 19195 | esac |
631ef239 | 19196 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 19197 | |
212380e3 | 19198 | |
631ef239 AC |
19199 | case $ac_mode in |
19200 | :F) | |
19201 | # | |
19202 | # CONFIG_FILE | |
19203 | # | |
212380e3 AC |
19204 | |
19205 | case $INSTALL in | |
19206 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 19207 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 19208 | esac |
c52df125 AC |
19209 | ac_MKDIR_P=$MKDIR_P |
19210 | case $MKDIR_P in | |
19211 | [\\/$]* | ?:[\\/]* ) ;; | |
19212 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19213 | esac | |
631ef239 | 19214 | _ACEOF |
212380e3 | 19215 | |
7083c021 | 19216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19217 | # If the template does not know about datarootdir, expand it. |
19218 | # FIXME: This hack should be removed a few years after 2.60. | |
19219 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
19220 | ac_sed_dataroot=' |
19221 | /datarootdir/ { | |
631ef239 AC |
19222 | p |
19223 | q | |
19224 | } | |
19225 | /@datadir@/p | |
19226 | /@docdir@/p | |
19227 | /@infodir@/p | |
19228 | /@localedir@/p | |
7083c021 AC |
19229 | /@mandir@/p' |
19230 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
19231 | *datarootdir*) ac_datarootdir_seen=yes;; |
19232 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
19233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19234 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 19235 | _ACEOF |
7083c021 | 19236 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
19237 | ac_datarootdir_hack=' |
19238 | s&@datadir@&$datadir&g | |
19239 | s&@docdir@&$docdir&g | |
19240 | s&@infodir@&$infodir&g | |
19241 | s&@localedir@&$localedir&g | |
19242 | s&@mandir@&$mandir&g | |
7083c021 | 19243 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 19244 | esac |
212380e3 | 19245 | _ACEOF |
631ef239 AC |
19246 | |
19247 | # Neutralize VPATH when `$srcdir' = `.'. | |
19248 | # Shell code in configure.ac might set extrasub. | |
19249 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
19250 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19251 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
19252 | $extrasub |
19253 | _ACEOF | |
7083c021 | 19254 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
19255 | :t |
19256 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 19257 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 19258 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 19259 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
19260 | s&@srcdir@&$ac_srcdir&;t t |
19261 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19262 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19263 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19264 | s&@builddir@&$ac_builddir&;t t | |
19265 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19266 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19267 | s&@INSTALL@&$ac_INSTALL&;t t | |
c52df125 | 19268 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
631ef239 | 19269 | $ac_datarootdir_hack |
7083c021 | 19270 | " |
b6d0720c AC |
19271 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19272 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
19273 | |
19274 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
19275 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19276 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19277 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 19278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19279 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 19280 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19281 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 19282 | |
b6d0720c | 19283 | rm -f "$ac_tmp/stdin" |
212380e3 | 19284 | case $ac_file in |
b6d0720c AC |
19285 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19286 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 19287 | esac \ |
b6d0720c | 19288 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
19289 | ;; |
19290 | :H) | |
19291 | # | |
19292 | # CONFIG_HEADER | |
19293 | # | |
212380e3 | 19294 | if test x"$ac_file" != x-; then |
7083c021 AC |
19295 | { |
19296 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
19297 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19298 | } >"$ac_tmp/config.h" \ | |
19299 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19300 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
19301 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19302 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 19303 | else |
7083c021 | 19304 | rm -f "$ac_file" |
b6d0720c AC |
19305 | mv "$ac_tmp/config.h" "$ac_file" \ |
19306 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
19307 | fi |
19308 | else | |
7083c021 | 19309 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
19310 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19311 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 19312 | fi |
c52df125 AC |
19313 | # Compute "$ac_file"'s index in $config_headers. |
19314 | _am_arg="$ac_file" | |
19315 | _am_stamp_count=1 | |
19316 | for _am_header in $config_headers :; do | |
19317 | case $_am_header in | |
19318 | $_am_arg | $_am_arg:* ) | |
19319 | break ;; | |
19320 | * ) | |
19321 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19322 | esac | |
19323 | done | |
19324 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19325 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19326 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19327 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19328 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19329 | $as_echo X"$_am_arg" | | |
19330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19331 | s//\1/ | |
19332 | q | |
19333 | } | |
19334 | /^X\(\/\/\)[^/].*/{ | |
19335 | s//\1/ | |
19336 | q | |
19337 | } | |
19338 | /^X\(\/\/\)$/{ | |
19339 | s//\1/ | |
19340 | q | |
19341 | } | |
19342 | /^X\(\/\).*/{ | |
19343 | s//\1/ | |
19344 | q | |
19345 | } | |
19346 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
631ef239 AC |
19347 | ;; |
19348 | ||
9f9b7042 NPB |
19349 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19350 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19351 | ;; | |
631ef239 AC |
19352 | esac |
19353 | ||
9f9b7042 NPB |
19354 | |
19355 | case $ac_file$ac_mode in | |
c52df125 AC |
19356 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
19357 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19358 | # are listed without --file. Let's play safe and only enable the eval | |
19359 | # if we detect the quoting. | |
19360 | case $CONFIG_FILES in | |
19361 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19362 | *) set x $CONFIG_FILES ;; | |
19363 | esac | |
19364 | shift | |
19365 | for mf | |
19366 | do | |
19367 | # Strip MF so we end up with the name of the file. | |
19368 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19369 | # Check whether this is an Automake generated Makefile or not. | |
19370 | # We used to match only the files named 'Makefile.in', but | |
19371 | # some people rename them; so instead we look at the file content. | |
19372 | # Grep'ing the first line is not enough: some people post-process | |
19373 | # each Makefile.in and add a new line on top of each file to say so. | |
19374 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19375 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19376 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19377 | dirpart=`$as_dirname -- "$mf" || | |
19378 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19379 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19380 | X"$mf" : 'X\(//\)$' \| \ | |
19381 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19382 | $as_echo X"$mf" | | |
19383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19384 | s//\1/ | |
19385 | q | |
19386 | } | |
19387 | /^X\(\/\/\)[^/].*/{ | |
19388 | s//\1/ | |
19389 | q | |
19390 | } | |
19391 | /^X\(\/\/\)$/{ | |
19392 | s//\1/ | |
19393 | q | |
19394 | } | |
19395 | /^X\(\/\).*/{ | |
19396 | s//\1/ | |
19397 | q | |
19398 | } | |
19399 | s/.*/./; q'` | |
19400 | else | |
19401 | continue | |
19402 | fi | |
19403 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19404 | # from the Makefile without running 'make'. | |
19405 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19406 | test -z "$DEPDIR" && continue | |
19407 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19408 | test -z "$am__include" && continue | |
19409 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19410 | # Find all dependency output files, they are included files with | |
19411 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19412 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19413 | # expansion. | |
19414 | for file in `sed -n " | |
19415 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19416 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19417 | # Make sure the directory exists. | |
19418 | test -f "$dirpart/$file" && continue | |
19419 | fdir=`$as_dirname -- "$file" || | |
19420 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19421 | X"$file" : 'X\(//\)[^/]' \| \ | |
19422 | X"$file" : 'X\(//\)$' \| \ | |
19423 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19424 | $as_echo X"$file" | | |
19425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19426 | s//\1/ | |
19427 | q | |
19428 | } | |
19429 | /^X\(\/\/\)[^/].*/{ | |
19430 | s//\1/ | |
19431 | q | |
19432 | } | |
19433 | /^X\(\/\/\)$/{ | |
19434 | s//\1/ | |
19435 | q | |
19436 | } | |
19437 | /^X\(\/\).*/{ | |
19438 | s//\1/ | |
19439 | q | |
19440 | } | |
19441 | s/.*/./; q'` | |
19442 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19443 | # echo "creating $dirpart/$file" | |
19444 | echo '# dummy' > "$dirpart/$file" | |
19445 | done | |
19446 | done | |
19447 | } | |
19448 | ;; | |
19449 | "libtool":C) | |
19450 | ||
19451 | # See if we are running on zsh, and set the options which allow our | |
19452 | # commands through without removal of \ escapes. | |
19453 | if test -n "${ZSH_VERSION+set}" ; then | |
19454 | setopt NO_GLOB_SUBST | |
19455 | fi | |
19456 | ||
19457 | cfgfile="${ofile}T" | |
19458 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19459 | $RM "$cfgfile" | |
19460 | ||
19461 | cat <<_LT_EOF >> "$cfgfile" | |
19462 | #! $SHELL | |
19463 | ||
19464 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19465 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19466 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19467 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19468 | # | |
19469 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19470 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
19471 | # Foundation, Inc. | |
19472 | # Written by Gordon Matzigkeit, 1996 | |
19473 | # | |
19474 | # This file is part of GNU Libtool. | |
19475 | # | |
19476 | # GNU Libtool is free software; you can redistribute it and/or | |
19477 | # modify it under the terms of the GNU General Public License as | |
19478 | # published by the Free Software Foundation; either version 2 of | |
19479 | # the License, or (at your option) any later version. | |
19480 | # | |
19481 | # As a special exception to the GNU General Public License, | |
19482 | # if you distribute this file as part of a program or library that | |
19483 | # is built using GNU Libtool, you may include this file under the | |
19484 | # same distribution terms that you use for the rest of that program. | |
19485 | # | |
19486 | # GNU Libtool is distributed in the hope that it will be useful, | |
19487 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19488 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19489 | # GNU General Public License for more details. | |
19490 | # | |
19491 | # You should have received a copy of the GNU General Public License | |
19492 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19493 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19494 | # obtained by writing to the Free Software Foundation, Inc., | |
19495 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19496 | ||
19497 | ||
19498 | # The names of the tagged configurations supported by this script. | |
19499 | available_tags="" | |
19500 | ||
19501 | # ### BEGIN LIBTOOL CONFIG | |
19502 | ||
19503 | # Which release of libtool.m4 was used? | |
19504 | macro_version=$macro_version | |
19505 | macro_revision=$macro_revision | |
19506 | ||
19507 | # Whether or not to build static libraries. | |
19508 | build_old_libs=$enable_static | |
19509 | ||
19510 | # Whether or not to build shared libraries. | |
19511 | build_libtool_libs=$enable_shared | |
19512 | ||
19513 | # What type of objects to build. | |
19514 | pic_mode=$pic_mode | |
19515 | ||
19516 | # Whether or not to optimize for fast installation. | |
19517 | fast_install=$enable_fast_install | |
19518 | ||
19519 | # Shell to use when invoking shell scripts. | |
19520 | SHELL=$lt_SHELL | |
19521 | ||
19522 | # An echo program that protects backslashes. | |
19523 | ECHO=$lt_ECHO | |
19524 | ||
19525 | # The PATH separator for the build system. | |
19526 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19527 | ||
19528 | # The host system. | |
19529 | host_alias=$host_alias | |
19530 | host=$host | |
19531 | host_os=$host_os | |
19532 | ||
19533 | # The build system. | |
19534 | build_alias=$build_alias | |
19535 | build=$build | |
19536 | build_os=$build_os | |
19537 | ||
19538 | # A sed program that does not truncate output. | |
19539 | SED=$lt_SED | |
19540 | ||
19541 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19542 | Xsed="\$SED -e 1s/^X//" | |
19543 | ||
19544 | # A grep program that handles long lines. | |
19545 | GREP=$lt_GREP | |
19546 | ||
19547 | # An ERE matcher. | |
19548 | EGREP=$lt_EGREP | |
19549 | ||
19550 | # A literal string matcher. | |
19551 | FGREP=$lt_FGREP | |
19552 | ||
19553 | # A BSD- or MS-compatible name lister. | |
19554 | NM=$lt_NM | |
19555 | ||
19556 | # Whether we need soft or hard links. | |
19557 | LN_S=$lt_LN_S | |
19558 | ||
19559 | # What is the maximum length of a command? | |
19560 | max_cmd_len=$max_cmd_len | |
19561 | ||
19562 | # Object file suffix (normally "o"). | |
19563 | objext=$ac_objext | |
19564 | ||
19565 | # Executable file suffix (normally ""). | |
19566 | exeext=$exeext | |
19567 | ||
19568 | # whether the shell understands "unset". | |
19569 | lt_unset=$lt_unset | |
19570 | ||
19571 | # turn spaces into newlines. | |
19572 | SP2NL=$lt_lt_SP2NL | |
19573 | ||
19574 | # turn newlines into spaces. | |
19575 | NL2SP=$lt_lt_NL2SP | |
19576 | ||
19577 | # convert \$build file names to \$host format. | |
19578 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
19579 | ||
19580 | # convert \$build files to toolchain format. | |
19581 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
19582 | ||
19583 | # An object symbol dumper. | |
19584 | OBJDUMP=$lt_OBJDUMP | |
19585 | ||
19586 | # Method to check whether dependent libraries are shared objects. | |
19587 | deplibs_check_method=$lt_deplibs_check_method | |
19588 | ||
19589 | # Command to use when deplibs_check_method = "file_magic". | |
19590 | file_magic_cmd=$lt_file_magic_cmd | |
19591 | ||
19592 | # How to find potential files when deplibs_check_method = "file_magic". | |
19593 | file_magic_glob=$lt_file_magic_glob | |
19594 | ||
19595 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
19596 | want_nocaseglob=$lt_want_nocaseglob | |
19597 | ||
19598 | # DLL creation program. | |
19599 | DLLTOOL=$lt_DLLTOOL | |
19600 | ||
19601 | # Command to associate shared and link libraries. | |
19602 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
19603 | ||
19604 | # The archiver. | |
19605 | AR=$lt_AR | |
19606 | ||
19607 | # Flags to create an archive. | |
19608 | AR_FLAGS=$lt_AR_FLAGS | |
19609 | ||
19610 | # How to feed a file listing to the archiver. | |
19611 | archiver_list_spec=$lt_archiver_list_spec | |
19612 | ||
19613 | # A symbol stripping program. | |
19614 | STRIP=$lt_STRIP | |
19615 | ||
19616 | # Commands used to install an old-style archive. | |
19617 | RANLIB=$lt_RANLIB | |
19618 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19619 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19620 | ||
19621 | # Whether to use a lock for old archive extraction. | |
19622 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19623 | ||
19624 | # A C compiler. | |
19625 | LTCC=$lt_CC | |
19626 | ||
19627 | # LTCC compiler flags. | |
19628 | LTCFLAGS=$lt_CFLAGS | |
19629 | ||
19630 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19631 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19632 | ||
19633 | # Transform the output of nm in a proper C declaration. | |
19634 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19635 | ||
19636 | # Transform the output of nm in a C name address pair. | |
19637 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19638 | ||
19639 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19640 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19641 | ||
19642 | # Specify filename containing input files for \$NM. | |
19643 | nm_file_list_spec=$lt_nm_file_list_spec | |
19644 | ||
19645 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
19646 | lt_sysroot=$lt_sysroot | |
19647 | ||
19648 | # The name of the directory that contains temporary libtool files. | |
19649 | objdir=$objdir | |
19650 | ||
19651 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19652 | MAGIC_CMD=$MAGIC_CMD | |
19653 | ||
19654 | # Must we lock files when doing compilation? | |
19655 | need_locks=$lt_need_locks | |
19656 | ||
19657 | # Manifest tool. | |
19658 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
19659 | ||
19660 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19661 | DSYMUTIL=$lt_DSYMUTIL | |
19662 | ||
19663 | # Tool to change global to local symbols on Mac OS X. | |
19664 | NMEDIT=$lt_NMEDIT | |
19665 | ||
19666 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19667 | LIPO=$lt_LIPO | |
19668 | ||
19669 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19670 | OTOOL=$lt_OTOOL | |
19671 | ||
19672 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19673 | OTOOL64=$lt_OTOOL64 | |
19674 | ||
19675 | # Old archive suffix (normally "a"). | |
19676 | libext=$libext | |
19677 | ||
19678 | # Shared library suffix (normally ".so"). | |
19679 | shrext_cmds=$lt_shrext_cmds | |
19680 | ||
19681 | # The commands to extract the exported symbol list from a shared archive. | |
19682 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19683 | ||
19684 | # Variables whose values should be saved in libtool wrapper scripts and | |
19685 | # restored at link time. | |
19686 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19687 | ||
19688 | # Do we need the "lib" prefix for modules? | |
19689 | need_lib_prefix=$need_lib_prefix | |
19690 | ||
19691 | # Do we need a version for libraries? | |
19692 | need_version=$need_version | |
19693 | ||
19694 | # Library versioning type. | |
19695 | version_type=$version_type | |
19696 | ||
19697 | # Shared library runtime path variable. | |
19698 | runpath_var=$runpath_var | |
19699 | ||
19700 | # Shared library path variable. | |
19701 | shlibpath_var=$shlibpath_var | |
19702 | ||
19703 | # Is shlibpath searched before the hard-coded library search path? | |
19704 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19705 | ||
19706 | # Format of library name prefix. | |
19707 | libname_spec=$lt_libname_spec | |
19708 | ||
19709 | # List of archive names. First name is the real one, the rest are links. | |
19710 | # The last name is the one that the linker finds with -lNAME | |
19711 | library_names_spec=$lt_library_names_spec | |
19712 | ||
19713 | # The coded name of the library, if different from the real name. | |
19714 | soname_spec=$lt_soname_spec | |
19715 | ||
19716 | # Permission mode override for installation of shared libraries. | |
19717 | install_override_mode=$lt_install_override_mode | |
19718 | ||
19719 | # Command to use after installation of a shared archive. | |
19720 | postinstall_cmds=$lt_postinstall_cmds | |
19721 | ||
19722 | # Command to use after uninstallation of a shared archive. | |
19723 | postuninstall_cmds=$lt_postuninstall_cmds | |
19724 | ||
19725 | # Commands used to finish a libtool library installation in a directory. | |
19726 | finish_cmds=$lt_finish_cmds | |
19727 | ||
19728 | # As "finish_cmds", except a single script fragment to be evaled but | |
19729 | # not shown. | |
19730 | finish_eval=$lt_finish_eval | |
19731 | ||
19732 | # Whether we should hardcode library paths into libraries. | |
19733 | hardcode_into_libs=$hardcode_into_libs | |
19734 | ||
19735 | # Compile-time system search path for libraries. | |
19736 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19737 | ||
19738 | # Run-time system search path for libraries. | |
19739 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19740 | ||
19741 | # Whether dlopen is supported. | |
19742 | dlopen_support=$enable_dlopen | |
19743 | ||
19744 | # Whether dlopen of programs is supported. | |
19745 | dlopen_self=$enable_dlopen_self | |
19746 | ||
19747 | # Whether dlopen of statically linked programs is supported. | |
19748 | dlopen_self_static=$enable_dlopen_self_static | |
19749 | ||
19750 | # Commands to strip libraries. | |
19751 | old_striplib=$lt_old_striplib | |
19752 | striplib=$lt_striplib | |
19753 | ||
19754 | ||
19755 | # The linker used to build libraries. | |
19756 | LD=$lt_LD | |
19757 | ||
19758 | # How to create reloadable object files. | |
19759 | reload_flag=$lt_reload_flag | |
19760 | reload_cmds=$lt_reload_cmds | |
19761 | ||
19762 | # Commands used to build an old-style archive. | |
19763 | old_archive_cmds=$lt_old_archive_cmds | |
19764 | ||
19765 | # A language specific compiler. | |
19766 | CC=$lt_compiler | |
19767 | ||
19768 | # Is the compiler the GNU compiler? | |
19769 | with_gcc=$GCC | |
19770 | ||
19771 | # Compiler flag to turn off builtin functions. | |
19772 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19773 | ||
19774 | # Additional compiler flags for building library objects. | |
19775 | pic_flag=$lt_lt_prog_compiler_pic | |
19776 | ||
19777 | # How to pass a linker flag through the compiler. | |
19778 | wl=$lt_lt_prog_compiler_wl | |
19779 | ||
19780 | # Compiler flag to prevent dynamic linking. | |
19781 | link_static_flag=$lt_lt_prog_compiler_static | |
19782 | ||
19783 | # Does compiler simultaneously support -c and -o options? | |
19784 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19785 | ||
19786 | # Whether or not to add -lc for building shared libraries. | |
19787 | build_libtool_need_lc=$archive_cmds_need_lc | |
19788 | ||
19789 | # Whether or not to disallow shared libs when runtime libs are static. | |
19790 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19791 | ||
19792 | # Compiler flag to allow reflexive dlopens. | |
19793 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19794 | ||
19795 | # Compiler flag to generate shared objects directly from archives. | |
19796 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19797 | ||
19798 | # Whether the compiler copes with passing no objects directly. | |
19799 | compiler_needs_object=$lt_compiler_needs_object | |
19800 | ||
19801 | # Create an old-style archive from a shared archive. | |
19802 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19803 | ||
19804 | # Create a temporary old-style archive to link instead of a shared archive. | |
19805 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19806 | ||
19807 | # Commands used to build a shared archive. | |
19808 | archive_cmds=$lt_archive_cmds | |
19809 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19810 | ||
19811 | # Commands used to build a loadable module if different from building | |
19812 | # a shared archive. | |
19813 | module_cmds=$lt_module_cmds | |
19814 | module_expsym_cmds=$lt_module_expsym_cmds | |
19815 | ||
19816 | # Whether we are building with GNU ld or not. | |
19817 | with_gnu_ld=$lt_with_gnu_ld | |
19818 | ||
19819 | # Flag that allows shared libraries with undefined symbols to be built. | |
19820 | allow_undefined_flag=$lt_allow_undefined_flag | |
19821 | ||
19822 | # Flag that enforces no undefined symbols. | |
19823 | no_undefined_flag=$lt_no_undefined_flag | |
19824 | ||
19825 | # Flag to hardcode \$libdir into a binary during linking. | |
19826 | # This must work even if \$libdir does not exist | |
19827 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19828 | ||
19829 | # Whether we need a single "-rpath" flag with a separated argument. | |
19830 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19831 | ||
19832 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19833 | # DIR into the resulting binary. | |
19834 | hardcode_direct=$hardcode_direct | |
19835 | ||
19836 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19837 | # DIR into the resulting binary and the resulting library dependency is | |
19838 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19839 | # library is relocated. | |
19840 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19841 | ||
19842 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19843 | # into the resulting binary. | |
19844 | hardcode_minus_L=$hardcode_minus_L | |
19845 | ||
19846 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19847 | # into the resulting binary. | |
19848 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19849 | ||
19850 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19851 | # into the library and all subsequent libraries and executables linked | |
19852 | # against it. | |
19853 | hardcode_automatic=$hardcode_automatic | |
19854 | ||
19855 | # Set to yes if linker adds runtime paths of dependent libraries | |
19856 | # to runtime path list. | |
19857 | inherit_rpath=$inherit_rpath | |
19858 | ||
19859 | # Whether libtool must link a program against all its dependency libraries. | |
19860 | link_all_deplibs=$link_all_deplibs | |
19861 | ||
19862 | # Set to "yes" if exported symbols are required. | |
19863 | always_export_symbols=$always_export_symbols | |
19864 | ||
19865 | # The commands to list exported symbols. | |
19866 | export_symbols_cmds=$lt_export_symbols_cmds | |
19867 | ||
19868 | # Symbols that should not be listed in the preloaded symbols. | |
19869 | exclude_expsyms=$lt_exclude_expsyms | |
19870 | ||
19871 | # Symbols that must always be exported. | |
19872 | include_expsyms=$lt_include_expsyms | |
19873 | ||
19874 | # Commands necessary for linking programs (against libraries) with templates. | |
19875 | prelink_cmds=$lt_prelink_cmds | |
19876 | ||
19877 | # Commands necessary for finishing linking programs. | |
19878 | postlink_cmds=$lt_postlink_cmds | |
19879 | ||
19880 | # Specify filename containing input files. | |
19881 | file_list_spec=$lt_file_list_spec | |
19882 | ||
19883 | # How to hardcode a shared library path into an executable. | |
19884 | hardcode_action=$hardcode_action | |
19885 | ||
19886 | # ### END LIBTOOL CONFIG | |
19887 | ||
19888 | _LT_EOF | |
19889 | ||
19890 | case $host_os in | |
19891 | aix3*) | |
19892 | cat <<\_LT_EOF >> "$cfgfile" | |
19893 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19894 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19895 | # vanish in a puff of smoke. | |
19896 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19897 | COLLECT_NAMES= | |
19898 | export COLLECT_NAMES | |
19899 | fi | |
19900 | _LT_EOF | |
19901 | ;; | |
19902 | esac | |
19903 | ||
19904 | ||
19905 | ltmain="$ac_aux_dir/ltmain.sh" | |
19906 | ||
19907 | ||
19908 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19909 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19910 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19911 | # is reportedly fixed, but why not run on old versions too? | |
19912 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
19913 | || (rm -f "$cfgfile"; exit 1) | |
19914 | ||
19915 | if test x"$xsi_shell" = xyes; then | |
19916 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
19917 | func_dirname ()\ | |
19918 | {\ | |
19919 | \ case ${1} in\ | |
19920 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
19921 | \ * ) func_dirname_result="${3}" ;;\ | |
19922 | \ esac\ | |
19923 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
19924 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19925 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19926 | test 0 -eq $? || _lt_function_replace_fail=: | |
19927 | ||
19928 | ||
19929 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
19930 | func_basename ()\ | |
19931 | {\ | |
19932 | \ func_basename_result="${1##*/}"\ | |
19933 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
19934 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19935 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19936 | test 0 -eq $? || _lt_function_replace_fail=: | |
19937 | ||
19938 | ||
19939 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
19940 | func_dirname_and_basename ()\ | |
19941 | {\ | |
19942 | \ case ${1} in\ | |
19943 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
19944 | \ * ) func_dirname_result="${3}" ;;\ | |
19945 | \ esac\ | |
19946 | \ func_basename_result="${1##*/}"\ | |
19947 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
19948 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19949 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19950 | test 0 -eq $? || _lt_function_replace_fail=: | |
19951 | ||
19952 | ||
19953 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
19954 | func_stripname ()\ | |
19955 | {\ | |
19956 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
19957 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
19958 | \ func_stripname_result=${3}\ | |
19959 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
19960 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
19961 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
19962 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19963 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19964 | test 0 -eq $? || _lt_function_replace_fail=: | |
19965 | ||
19966 | ||
19967 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
19968 | func_split_long_opt ()\ | |
19969 | {\ | |
19970 | \ func_split_long_opt_name=${1%%=*}\ | |
19971 | \ func_split_long_opt_arg=${1#*=}\ | |
19972 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
19973 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19974 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19975 | test 0 -eq $? || _lt_function_replace_fail=: | |
19976 | ||
19977 | ||
19978 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
19979 | func_split_short_opt ()\ | |
19980 | {\ | |
19981 | \ func_split_short_opt_arg=${1#??}\ | |
19982 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
19983 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
19984 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19985 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19986 | test 0 -eq $? || _lt_function_replace_fail=: | |
19987 | ||
19988 | ||
19989 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
19990 | func_lo2o ()\ | |
19991 | {\ | |
19992 | \ case ${1} in\ | |
19993 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
19994 | \ *) func_lo2o_result=${1} ;;\ | |
19995 | \ esac\ | |
19996 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
19997 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19998 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19999 | test 0 -eq $? || _lt_function_replace_fail=: | |
20000 | ||
20001 | ||
20002 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
20003 | func_xform ()\ | |
20004 | {\ | |
20005 | func_xform_result=${1%.*}.lo\ | |
20006 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
20007 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20008 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20009 | test 0 -eq $? || _lt_function_replace_fail=: | |
20010 | ||
20011 | ||
20012 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
20013 | func_arith ()\ | |
20014 | {\ | |
20015 | func_arith_result=$(( $* ))\ | |
20016 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
20017 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20018 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20019 | test 0 -eq $? || _lt_function_replace_fail=: | |
20020 | ||
20021 | ||
20022 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
20023 | func_len ()\ | |
20024 | {\ | |
20025 | func_len_result=${#1}\ | |
20026 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
20027 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20028 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20029 | test 0 -eq $? || _lt_function_replace_fail=: | |
20030 | ||
20031 | fi | |
20032 | ||
20033 | if test x"$lt_shell_append" = xyes; then | |
20034 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
20035 | func_append ()\ | |
20036 | {\ | |
20037 | eval "${1}+=\\${2}"\ | |
20038 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
20039 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20040 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20041 | test 0 -eq $? || _lt_function_replace_fail=: | |
20042 | ||
20043 | ||
20044 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
20045 | func_append_quoted ()\ | |
20046 | {\ | |
20047 | \ func_quote_for_eval "${2}"\ | |
20048 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
20049 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
20050 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20051 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20052 | test 0 -eq $? || _lt_function_replace_fail=: | |
20053 | ||
20054 | ||
20055 | # Save a `func_append' function call where possible by direct use of '+=' | |
20056 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
20057 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20058 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20059 | test 0 -eq $? || _lt_function_replace_fail=: | |
20060 | else | |
20061 | # Save a `func_append' function call even when '+=' is not available | |
20062 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
20063 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20064 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20065 | test 0 -eq $? || _lt_function_replace_fail=: | |
20066 | fi | |
20067 | ||
20068 | if test x"$_lt_function_replace_fail" = x":"; then | |
20069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
20070 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
20071 | fi | |
20072 | ||
20073 | ||
20074 | mv -f "$cfgfile" "$ofile" || | |
20075 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20076 | chmod +x "$ofile" | |
20077 | ||
20078 | ;; | |
2eff3833 | 20079 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
20080 | |
20081 | esac | |
631ef239 | 20082 | done # for ac_tag |
212380e3 | 20083 | |
212380e3 | 20084 | |
7083c021 | 20085 | as_fn_exit 0 |
212380e3 | 20086 | _ACEOF |
212380e3 AC |
20087 | ac_clean_files=$ac_clean_files_save |
20088 | ||
7083c021 | 20089 | test $ac_write_fail = 0 || |
b6d0720c | 20090 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 20091 | |
212380e3 AC |
20092 | |
20093 | # configure is writing to config.log, and then calls config.status. | |
20094 | # config.status does its own redirection, appending to config.log. | |
20095 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20096 | # by configure, so config.status won't be able to write to it; its | |
20097 | # output is simply discarded. So we exec the FD to /dev/null, | |
20098 | # effectively closing config.log, so it can be properly (re)opened and | |
20099 | # appended to by config.status. When coming back to configure, we | |
20100 | # need to make the FD available again. | |
20101 | if test "$no_create" != yes; then | |
20102 | ac_cs_success=: | |
20103 | ac_config_status_args= | |
20104 | test "$silent" = yes && | |
20105 | ac_config_status_args="$ac_config_status_args --quiet" | |
20106 | exec 5>/dev/null | |
20107 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20108 | exec 5>>config.log | |
20109 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20110 | # would make configure fail if this is the last instruction. | |
b6d0720c | 20111 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 20112 | fi |
1db8e007 JT |
20113 | |
20114 | # | |
20115 | # CONFIG_SUBDIRS section. | |
20116 | # | |
20117 | if test "$no_recursion" != yes; then | |
20118 | ||
20119 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
20120 | # so they do not pile up. | |
20121 | ac_sub_configure_args= | |
20122 | ac_prev= | |
20123 | eval "set x $ac_configure_args" | |
20124 | shift | |
20125 | for ac_arg | |
20126 | do | |
20127 | if test -n "$ac_prev"; then | |
20128 | ac_prev= | |
20129 | continue | |
20130 | fi | |
20131 | case $ac_arg in | |
20132 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
20133 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20134 | ac_prev=cache_file ;; | |
20135 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
20136 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
20137 | | --c=*) | |
20138 | ;; | |
20139 | --config-cache | -C) | |
20140 | ;; | |
20141 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20142 | ac_prev=srcdir ;; | |
20143 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20144 | ;; | |
20145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
20146 | ac_prev=prefix ;; | |
20147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
20148 | ;; | |
20149 | --disable-option-checking) | |
20150 | ;; | |
20151 | *) | |
20152 | case $ac_arg in | |
20153 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20154 | esac | |
20155 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
20156 | esac | |
20157 | done | |
20158 | ||
20159 | # Always prepend --prefix to ensure using the same prefix | |
20160 | # in subdir configurations. | |
20161 | ac_arg="--prefix=$prefix" | |
20162 | case $ac_arg in | |
20163 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20164 | esac | |
20165 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
20166 | ||
20167 | # Pass --silent | |
20168 | if test "$silent" = yes; then | |
20169 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
20170 | fi | |
20171 | ||
20172 | # Always prepend --disable-option-checking to silence warnings, since | |
20173 | # different subdirs can have different --enable and --with options. | |
20174 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
20175 | ||
20176 | ac_popdir=`pwd` | |
20177 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
20178 | ||
20179 | # Do not complain, so a configure script can configure whichever | |
20180 | # parts of a large source tree are present. | |
20181 | test -d "$srcdir/$ac_dir" || continue | |
20182 | ||
20183 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
20184 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
20185 | $as_echo "$ac_msg" >&6 | |
20186 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20187 | ac_builddir=. | |
20188 | ||
20189 | case "$ac_dir" in | |
20190 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20191 | *) | |
20192 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20193 | # A ".." for each directory in $ac_dir_suffix. | |
20194 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20195 | case $ac_top_builddir_sub in | |
20196 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20197 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20198 | esac ;; | |
20199 | esac | |
20200 | ac_abs_top_builddir=$ac_pwd | |
20201 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20202 | # for backward compatibility: | |
20203 | ac_top_builddir=$ac_top_build_prefix | |
20204 | ||
20205 | case $srcdir in | |
20206 | .) # We are building in place. | |
20207 | ac_srcdir=. | |
20208 | ac_top_srcdir=$ac_top_builddir_sub | |
20209 | ac_abs_top_srcdir=$ac_pwd ;; | |
20210 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20211 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20212 | ac_top_srcdir=$srcdir | |
20213 | ac_abs_top_srcdir=$srcdir ;; | |
20214 | *) # Relative name. | |
20215 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20216 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20217 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20218 | esac | |
20219 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20220 | ||
20221 | ||
20222 | cd "$ac_dir" | |
20223 | ||
20224 | # Check for guested configure; otherwise get Cygnus style configure. | |
20225 | if test -f "$ac_srcdir/configure.gnu"; then | |
20226 | ac_sub_configure=$ac_srcdir/configure.gnu | |
20227 | elif test -f "$ac_srcdir/configure"; then | |
20228 | ac_sub_configure=$ac_srcdir/configure | |
20229 | elif test -f "$ac_srcdir/configure.in"; then | |
20230 | # This should be Cygnus configure. | |
20231 | ac_sub_configure=$ac_aux_dir/configure | |
20232 | else | |
20233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
20234 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
20235 | ac_sub_configure= | |
20236 | fi | |
20237 | ||
20238 | # The recursion is here. | |
20239 | if test -n "$ac_sub_configure"; then | |
20240 | # Make the cache file name correct relative to the subdirectory. | |
20241 | case $cache_file in | |
20242 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
20243 | *) # Relative name. | |
20244 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
20245 | esac | |
20246 | ||
20247 | { $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 | |
20248 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
20249 | # The eval makes quoting arguments work. | |
20250 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
20251 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
20252 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
20253 | fi | |
20254 | ||
20255 | cd "$ac_popdir" | |
20256 | done | |
20257 | fi | |
7083c021 AC |
20258 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20259 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20260 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20261 | fi | |
b676ea3b | 20262 | |
212380e3 AC |
20263 | |
20264 | if test "$cf_openssl_version_ok" = yes; then | |
20265 | openssl="yes" | |
20266 | else | |
20267 | openssl="no" | |
20268 | fi | |
20269 | ||
212380e3 | 20270 | echo " |
b6d0720c | 20271 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
20272 | Install directory : $prefix |
20273 | ||
20274 | Ziplinks : $zlib | |
20275 | OpenSSL : $openssl | |
212380e3 AC |
20276 | |
20277 | Nickname length : $NICKLEN | |
20278 | Topic length : $TOPICLEN | |
20279 | ||
b6d0720c | 20280 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 20281 | " |