]>
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 | ||
566 | lt_ltdl_dir='extra/libltdl' | |
567 | ||
568 | lt_dlopen_dir="$lt_ltdl_dir" | |
569 | ||
631ef239 | 570 | |
6fb6bd15 AC |
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
572 | exec 6>&1 | |
631ef239 | 573 | |
7083c021 | 574 | # Name of the host. |
b6d0720c | 575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
576 | # so uname gets run too. |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 578 | |
7083c021 AC |
579 | # |
580 | # Initializations. | |
581 | # | |
582 | ac_default_prefix=/usr/local | |
583 | ac_clean_files= | |
584 | ac_config_libobj_dir=. | |
585 | LIBOBJS= | |
586 | cross_compiling=no | |
587 | subdirs= | |
588 | MFLAGS= | |
589 | MAKEFLAGS= | |
212380e3 | 590 | |
212380e3 AC |
591 | # Identity of this package. |
592 | PACKAGE_NAME='charybdis' | |
593 | PACKAGE_TARNAME='charybdis' | |
c52df125 AC |
594 | PACKAGE_VERSION='3.6.0-dev' |
595 | PACKAGE_STRING='charybdis 3.6.0-dev' | |
212380e3 | 596 | PACKAGE_BUGREPORT='' |
7083c021 | 597 | PACKAGE_URL='' |
212380e3 | 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 | |
651 | SELECT_TYPE | |
9f9b7042 NPB |
652 | PROGRAM_PREFIX |
653 | PKGRUNDIR | |
7083c021 AC |
654 | moduledir |
655 | MODULE_DIR | |
656 | helpdir | |
657 | HELP_DIR | |
658 | logdir | |
659 | LOG_DIR | |
7083c021 | 660 | ETC_DIR |
c52df125 | 661 | SQLITE_OBJ |
a5471f24 | 662 | SQLITE_INCLUDES |
497e30a0 | 663 | SQLITE_LD |
a5471f24 LS |
664 | SQLITE_LIBS |
665 | SQLITE_CFLAGS | |
666 | PKG_CONFIG_LIBDIR | |
667 | PKG_CONFIG_PATH | |
668 | PKG_CONFIG | |
7083c021 AC |
669 | ZLIB_LD |
670 | ENCSPEED | |
671 | ALLOCA | |
672 | VICONF | |
673 | CRYPT_LIB | |
9f9b7042 NPB |
674 | PKGLIBEXECDIR |
675 | pkglibexecdir | |
676 | PKGLOCALSTATEDIR | |
677 | pkglocalstatedir | |
678 | pkgrundir | |
679 | rundir | |
680 | pkglibdir | |
7083c021 AC |
681 | LEXLIB |
682 | LEX_OUTPUT_ROOT | |
683 | LEX | |
684 | YFLAGS | |
685 | YACC | |
686 | TOUCH | |
7083c021 AC |
687 | LN |
688 | MV | |
689 | CP | |
690 | RM | |
c52df125 AC |
691 | BUILD_LTDL_FALSE |
692 | BUILD_LTDL_TRUE | |
693 | LTDLOPEN | |
694 | LT_CONFIG_H | |
c52df125 AC |
695 | CONVENIENCE_LTDL_FALSE |
696 | CONVENIENCE_LTDL_TRUE | |
697 | INSTALL_LTDL_FALSE | |
698 | INSTALL_LTDL_TRUE | |
699 | ARGZ_H | |
700 | sys_symbol_underscore | |
701 | LIBADD_DL | |
702 | LT_DLPREOPEN | |
703 | LIBADD_DLD_LINK | |
704 | LIBADD_SHL_LOAD | |
705 | LIBADD_DLOPEN | |
706 | LT_DLLOADERS | |
707 | INCLTDL | |
708 | LTDLINCL | |
709 | LTDLDEPS | |
710 | LIBLTDL | |
c52df125 AC |
711 | OTOOL64 |
712 | OTOOL | |
713 | LIPO | |
714 | NMEDIT | |
715 | DSYMUTIL | |
716 | MANIFEST_TOOL | |
717 | RANLIB | |
718 | DLLTOOL | |
719 | OBJDUMP | |
720 | LN_S | |
721 | NM | |
722 | ac_ct_DUMPBIN | |
723 | DUMPBIN | |
724 | LD | |
725 | FGREP | |
c52df125 AC |
726 | SED |
727 | host_os | |
728 | host_vendor | |
729 | host_cpu | |
730 | host | |
731 | build_os | |
732 | build_vendor | |
733 | build_cpu | |
734 | build | |
735 | LIBTOOL | |
eec2776c AJ |
736 | ac_ct_AR |
737 | AR | |
738 | AM_BACKSLASH | |
739 | AM_DEFAULT_VERBOSITY | |
740 | AM_DEFAULT_V | |
741 | AM_V | |
c52df125 AC |
742 | am__fastdepCC_FALSE |
743 | am__fastdepCC_TRUE | |
744 | CCDEPMODE | |
745 | am__nodep | |
746 | AMDEPBACKSLASH | |
747 | AMDEP_FALSE | |
748 | AMDEP_TRUE | |
749 | am__quote | |
750 | am__include | |
751 | DEPDIR | |
c52df125 AC |
752 | am__untar |
753 | am__tar | |
754 | AMTAR | |
755 | am__leading_dot | |
756 | SET_MAKE | |
757 | AWK | |
758 | mkdir_p | |
759 | MKDIR_P | |
760 | INSTALL_STRIP_PROGRAM | |
761 | STRIP | |
762 | install_sh | |
763 | MAKEINFO | |
764 | AUTOHEADER | |
765 | AUTOMAKE | |
766 | AUTOCONF | |
767 | ACLOCAL | |
768 | VERSION | |
769 | PACKAGE | |
770 | CYGPATH_W | |
771 | am__isrc | |
772 | INSTALL_DATA | |
773 | INSTALL_SCRIPT | |
774 | INSTALL_PROGRAM | |
eec2776c AJ |
775 | subdirs |
776 | EGREP | |
777 | GREP | |
778 | CPP | |
779 | OBJEXT | |
780 | EXEEXT | |
781 | ac_ct_CC | |
782 | CPPFLAGS | |
783 | LDFLAGS | |
784 | CFLAGS | |
785 | CC | |
7083c021 AC |
786 | target_alias |
787 | host_alias | |
788 | build_alias | |
789 | LIBS | |
790 | ECHO_T | |
791 | ECHO_N | |
792 | ECHO_C | |
793 | DEFS | |
794 | mandir | |
795 | localedir | |
796 | libdir | |
797 | psdir | |
798 | pdfdir | |
799 | dvidir | |
800 | htmldir | |
801 | infodir | |
802 | docdir | |
803 | oldincludedir | |
804 | includedir | |
805 | localstatedir | |
806 | sharedstatedir | |
807 | sysconfdir | |
808 | datadir | |
809 | datarootdir | |
810 | libexecdir | |
811 | sbindir | |
812 | bindir | |
813 | program_transform_name | |
814 | prefix | |
815 | exec_prefix | |
816 | PACKAGE_URL | |
817 | PACKAGE_BUGREPORT | |
818 | PACKAGE_STRING | |
819 | PACKAGE_VERSION | |
820 | PACKAGE_TARNAME | |
821 | PACKAGE_NAME | |
822 | PATH_SEPARATOR | |
823 | SHELL' | |
212380e3 | 824 | ac_subst_files='' |
7083c021 AC |
825 | ac_user_opts=' |
826 | enable_option_checking | |
c52df125 | 827 | enable_dependency_tracking |
eec2776c | 828 | enable_silent_rules |
c52df125 AC |
829 | enable_static |
830 | enable_shared | |
831 | with_pic | |
832 | enable_fast_install | |
833 | with_gnu_ld | |
834 | with_sysroot | |
835 | enable_libtool_lock | |
836 | with_included_ltdl | |
837 | with_ltdl_include | |
838 | with_ltdl_lib | |
839 | enable_ltdl_install | |
9f9b7042 | 840 | enable_fhs_paths |
7083c021 AC |
841 | enable_ipv6 |
842 | enable_openssl | |
843 | with_zlib_path | |
844 | enable_zlib | |
a6ef3156 | 845 | with_shared_sqlite |
7083c021 AC |
846 | enable_ports |
847 | enable_poll | |
848 | enable_select | |
849 | enable_kqueue | |
850 | enable_epoll | |
851 | with_confdir | |
852 | with_logdir | |
853 | with_helpdir | |
854 | with_moduledir | |
9f9b7042 NPB |
855 | with_rundir |
856 | with_program_prefix | |
b6d0720c AC |
857 | with_custom_branding |
858 | with_custom_version | |
7083c021 AC |
859 | enable_assert |
860 | enable_iodebug | |
861 | enable_profile | |
862 | enable_balloc | |
863 | enable_small_net | |
864 | with_nicklen | |
865 | with_topiclen | |
866 | enable_warnings | |
867 | ' | |
631ef239 AC |
868 | ac_precious_vars='build_alias |
869 | host_alias | |
870 | target_alias | |
871 | CC | |
872 | CFLAGS | |
873 | LDFLAGS | |
874 | LIBS | |
875 | CPPFLAGS | |
876 | CPP | |
877 | YACC | |
a5471f24 LS |
878 | YFLAGS |
879 | PKG_CONFIG | |
880 | PKG_CONFIG_PATH | |
881 | PKG_CONFIG_LIBDIR | |
882 | SQLITE_CFLAGS | |
883 | SQLITE_LIBS' | |
eec2776c AJ |
884 | ac_subdirs_all='libratbox |
885 | extra/libltdl | |
886 | libltdl' | |
212380e3 AC |
887 | |
888 | # Initialize some variables set by options. | |
889 | ac_init_help= | |
890 | ac_init_version=false | |
7083c021 AC |
891 | ac_unrecognized_opts= |
892 | ac_unrecognized_sep= | |
212380e3 AC |
893 | # The variables have the same names as the options, with |
894 | # dashes changed to underlines. | |
895 | cache_file=/dev/null | |
896 | exec_prefix=NONE | |
897 | no_create= | |
898 | no_recursion= | |
899 | prefix=NONE | |
900 | program_prefix=NONE | |
901 | program_suffix=NONE | |
902 | program_transform_name=s,x,x, | |
903 | silent= | |
904 | site= | |
905 | srcdir= | |
906 | verbose= | |
907 | x_includes=NONE | |
908 | x_libraries=NONE | |
909 | ||
910 | # Installation directory options. | |
911 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
912 | # and all the variables that are supposed to be based on exec_prefix | |
913 | # by default will actually change. | |
914 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 915 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
916 | bindir='${exec_prefix}/bin' |
917 | sbindir='${exec_prefix}/sbin' | |
918 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
919 | datarootdir='${prefix}/share' |
920 | datadir='${datarootdir}' | |
212380e3 AC |
921 | sysconfdir='${prefix}/etc' |
922 | sharedstatedir='${prefix}/com' | |
923 | localstatedir='${prefix}/var' | |
212380e3 AC |
924 | includedir='${prefix}/include' |
925 | oldincludedir='/usr/include' | |
631ef239 AC |
926 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
927 | infodir='${datarootdir}/info' | |
928 | htmldir='${docdir}' | |
929 | dvidir='${docdir}' | |
930 | pdfdir='${docdir}' | |
931 | psdir='${docdir}' | |
932 | libdir='${exec_prefix}/lib' | |
933 | localedir='${datarootdir}/locale' | |
934 | mandir='${datarootdir}/man' | |
212380e3 AC |
935 | |
936 | ac_prev= | |
631ef239 | 937 | ac_dashdash= |
212380e3 AC |
938 | for ac_option |
939 | do | |
940 | # If the previous option needs an argument, assign it. | |
941 | if test -n "$ac_prev"; then | |
631ef239 | 942 | eval $ac_prev=\$ac_option |
212380e3 AC |
943 | ac_prev= |
944 | continue | |
945 | fi | |
946 | ||
631ef239 | 947 | case $ac_option in |
b6d0720c AC |
948 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
949 | *=) ac_optarg= ;; | |
950 | *) ac_optarg=yes ;; | |
631ef239 | 951 | esac |
212380e3 AC |
952 | |
953 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
954 | ||
631ef239 AC |
955 | case $ac_dashdash$ac_option in |
956 | --) | |
957 | ac_dashdash=yes ;; | |
212380e3 AC |
958 | |
959 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
960 | ac_prev=bindir ;; | |
961 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
962 | bindir=$ac_optarg ;; | |
963 | ||
964 | -build | --build | --buil | --bui | --bu) | |
965 | ac_prev=build_alias ;; | |
966 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
967 | build_alias=$ac_optarg ;; | |
968 | ||
969 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
970 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
971 | ac_prev=cache_file ;; | |
972 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
973 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
974 | cache_file=$ac_optarg ;; | |
975 | ||
976 | --config-cache | -C) | |
977 | cache_file=config.cache ;; | |
978 | ||
631ef239 | 979 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 980 | ac_prev=datadir ;; |
631ef239 | 981 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
982 | datadir=$ac_optarg ;; |
983 | ||
631ef239 AC |
984 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
985 | | --dataroo | --dataro | --datar) | |
986 | ac_prev=datarootdir ;; | |
987 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
988 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
989 | datarootdir=$ac_optarg ;; | |
990 | ||
212380e3 | 991 | -disable-* | --disable-*) |
7083c021 | 992 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 993 | # Reject names that are not valid shell variable names. |
7083c021 | 994 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 995 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
996 | ac_useropt_orig=$ac_useropt |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
1006 | |
1007 | -docdir | --docdir | --docdi | --doc | --do) | |
1008 | ac_prev=docdir ;; | |
1009 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1010 | docdir=$ac_optarg ;; | |
1011 | ||
1012 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1013 | ac_prev=dvidir ;; | |
1014 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1015 | dvidir=$ac_optarg ;; | |
212380e3 AC |
1016 | |
1017 | -enable-* | --enable-*) | |
7083c021 | 1018 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 1019 | # Reject names that are not valid shell variable names. |
7083c021 | 1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1021 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
1022 | ac_useropt_orig=$ac_useropt |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1032 | |
1033 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1034 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1035 | | --exec | --exe | --ex) | |
1036 | ac_prev=exec_prefix ;; | |
1037 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1038 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1039 | | --exec=* | --exe=* | --ex=*) | |
1040 | exec_prefix=$ac_optarg ;; | |
1041 | ||
1042 | -gas | --gas | --ga | --g) | |
1043 | # Obsolete; use --with-gas. | |
1044 | with_gas=yes ;; | |
1045 | ||
1046 | -help | --help | --hel | --he | -h) | |
1047 | ac_init_help=long ;; | |
1048 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1049 | ac_init_help=recursive ;; | |
1050 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1051 | ac_init_help=short ;; | |
1052 | ||
1053 | -host | --host | --hos | --ho) | |
1054 | ac_prev=host_alias ;; | |
1055 | -host=* | --host=* | --hos=* | --ho=*) | |
1056 | host_alias=$ac_optarg ;; | |
1057 | ||
631ef239 AC |
1058 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1059 | ac_prev=htmldir ;; | |
1060 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1061 | | --ht=*) | |
1062 | htmldir=$ac_optarg ;; | |
1063 | ||
212380e3 AC |
1064 | -includedir | --includedir | --includedi | --included | --include \ |
1065 | | --includ | --inclu | --incl | --inc) | |
1066 | ac_prev=includedir ;; | |
1067 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1068 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1069 | includedir=$ac_optarg ;; | |
1070 | ||
1071 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1072 | ac_prev=infodir ;; | |
1073 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1074 | infodir=$ac_optarg ;; | |
1075 | ||
1076 | -libdir | --libdir | --libdi | --libd) | |
1077 | ac_prev=libdir ;; | |
1078 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1079 | libdir=$ac_optarg ;; | |
1080 | ||
1081 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1082 | | --libexe | --libex | --libe) | |
1083 | ac_prev=libexecdir ;; | |
1084 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1085 | | --libexe=* | --libex=* | --libe=*) | |
1086 | libexecdir=$ac_optarg ;; | |
1087 | ||
631ef239 AC |
1088 | -localedir | --localedir | --localedi | --localed | --locale) |
1089 | ac_prev=localedir ;; | |
1090 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1091 | localedir=$ac_optarg ;; | |
1092 | ||
212380e3 | 1093 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 1094 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
1095 | ac_prev=localstatedir ;; |
1096 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 1097 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
1098 | localstatedir=$ac_optarg ;; |
1099 | ||
1100 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1101 | ac_prev=mandir ;; | |
1102 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1103 | mandir=$ac_optarg ;; | |
1104 | ||
1105 | -nfp | --nfp | --nf) | |
1106 | # Obsolete; use --without-fp. | |
1107 | with_fp=no ;; | |
1108 | ||
1109 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1110 | | --no-cr | --no-c | -n) | |
1111 | no_create=yes ;; | |
1112 | ||
1113 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1114 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1115 | no_recursion=yes ;; | |
1116 | ||
1117 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1118 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1119 | | --oldin | --oldi | --old | --ol | --o) | |
1120 | ac_prev=oldincludedir ;; | |
1121 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1122 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1123 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1124 | oldincludedir=$ac_optarg ;; | |
1125 | ||
1126 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1127 | ac_prev=prefix ;; | |
1128 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1129 | prefix=$ac_optarg ;; | |
1130 | ||
1131 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1132 | | --program-pre | --program-pr | --program-p) | |
1133 | ac_prev=program_prefix ;; | |
1134 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1135 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1136 | program_prefix=$ac_optarg ;; | |
1137 | ||
1138 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1139 | | --program-suf | --program-su | --program-s) | |
1140 | ac_prev=program_suffix ;; | |
1141 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1142 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1143 | program_suffix=$ac_optarg ;; | |
1144 | ||
1145 | -program-transform-name | --program-transform-name \ | |
1146 | | --program-transform-nam | --program-transform-na \ | |
1147 | | --program-transform-n | --program-transform- \ | |
1148 | | --program-transform | --program-transfor \ | |
1149 | | --program-transfo | --program-transf \ | |
1150 | | --program-trans | --program-tran \ | |
1151 | | --progr-tra | --program-tr | --program-t) | |
1152 | ac_prev=program_transform_name ;; | |
1153 | -program-transform-name=* | --program-transform-name=* \ | |
1154 | | --program-transform-nam=* | --program-transform-na=* \ | |
1155 | | --program-transform-n=* | --program-transform-=* \ | |
1156 | | --program-transform=* | --program-transfor=* \ | |
1157 | | --program-transfo=* | --program-transf=* \ | |
1158 | | --program-trans=* | --program-tran=* \ | |
1159 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1160 | program_transform_name=$ac_optarg ;; | |
1161 | ||
631ef239 AC |
1162 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1163 | ac_prev=pdfdir ;; | |
1164 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1165 | pdfdir=$ac_optarg ;; | |
1166 | ||
1167 | -psdir | --psdir | --psdi | --psd | --ps) | |
1168 | ac_prev=psdir ;; | |
1169 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1170 | psdir=$ac_optarg ;; | |
1171 | ||
212380e3 AC |
1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1173 | | -silent | --silent | --silen | --sile | --sil) | |
1174 | silent=yes ;; | |
1175 | ||
1176 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1177 | ac_prev=sbindir ;; | |
1178 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1179 | | --sbi=* | --sb=*) | |
1180 | sbindir=$ac_optarg ;; | |
1181 | ||
1182 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1183 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1184 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1185 | | --sha | --sh) | |
1186 | ac_prev=sharedstatedir ;; | |
1187 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1188 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1189 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1190 | | --sha=* | --sh=*) | |
1191 | sharedstatedir=$ac_optarg ;; | |
1192 | ||
1193 | -site | --site | --sit) | |
1194 | ac_prev=site ;; | |
1195 | -site=* | --site=* | --sit=*) | |
1196 | site=$ac_optarg ;; | |
1197 | ||
1198 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1199 | ac_prev=srcdir ;; | |
1200 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1201 | srcdir=$ac_optarg ;; | |
1202 | ||
1203 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1204 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1205 | ac_prev=sysconfdir ;; | |
1206 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1207 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1208 | sysconfdir=$ac_optarg ;; | |
1209 | ||
1210 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1211 | ac_prev=target_alias ;; | |
1212 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1213 | target_alias=$ac_optarg ;; | |
1214 | ||
1215 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1216 | verbose=yes ;; | |
1217 | ||
1218 | -version | --version | --versio | --versi | --vers | -V) | |
1219 | ac_init_version=: ;; | |
1220 | ||
1221 | -with-* | --with-*) | |
7083c021 | 1222 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1223 | # Reject names that are not valid shell variable names. |
7083c021 | 1224 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1225 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1226 | ac_useropt_orig=$ac_useropt |
1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1228 | case $ac_user_opts in | |
1229 | *" | |
1230 | "with_$ac_useropt" | |
1231 | "*) ;; | |
1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1233 | ac_unrecognized_sep=', ';; | |
1234 | esac | |
1235 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1236 | |
1237 | -without-* | --without-*) | |
7083c021 | 1238 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1239 | # Reject names that are not valid shell variable names. |
7083c021 | 1240 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1241 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1242 | ac_useropt_orig=$ac_useropt |
1243 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1244 | case $ac_user_opts in | |
1245 | *" | |
1246 | "with_$ac_useropt" | |
1247 | "*) ;; | |
1248 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1249 | ac_unrecognized_sep=', ';; | |
1250 | esac | |
1251 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1252 | |
1253 | --x) | |
1254 | # Obsolete; use --with-x. | |
1255 | with_x=yes ;; | |
1256 | ||
1257 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1258 | | --x-incl | --x-inc | --x-in | --x-i) | |
1259 | ac_prev=x_includes ;; | |
1260 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1261 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1262 | x_includes=$ac_optarg ;; | |
1263 | ||
1264 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1265 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1266 | ac_prev=x_libraries ;; | |
1267 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1268 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1269 | x_libraries=$ac_optarg ;; | |
1270 | ||
b6d0720c AC |
1271 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1272 | Try \`$0 --help' for more information" | |
212380e3 AC |
1273 | ;; |
1274 | ||
1275 | *=*) | |
1276 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1277 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1278 | case $ac_envvar in #( |
1279 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1280 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1281 | esac |
631ef239 | 1282 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1283 | export $ac_envvar ;; |
1284 | ||
1285 | *) | |
1286 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1287 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1288 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1289 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1290 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1291 | ;; |
1292 | ||
1293 | esac | |
1294 | done | |
1295 | ||
1296 | if test -n "$ac_prev"; then | |
1297 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1298 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1299 | fi |
1300 | ||
7083c021 AC |
1301 | if test -n "$ac_unrecognized_opts"; then |
1302 | case $enable_option_checking in | |
1303 | no) ;; | |
b6d0720c | 1304 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1305 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1306 | esac | |
1307 | fi | |
1308 | ||
1309 | # Check all directory arguments for consistency. | |
631ef239 AC |
1310 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1311 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1312 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1313 | libdir localedir mandir | |
212380e3 | 1314 | do |
631ef239 | 1315 | eval ac_val=\$$ac_var |
7083c021 AC |
1316 | # Remove trailing slashes. |
1317 | case $ac_val in | |
1318 | */ ) | |
1319 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1320 | eval $ac_var=\$ac_val;; | |
1321 | esac | |
1322 | # Be sure to have absolute directory names. | |
212380e3 | 1323 | case $ac_val in |
631ef239 AC |
1324 | [\\/$]* | ?:[\\/]* ) continue;; |
1325 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1326 | esac |
b6d0720c | 1327 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1328 | done |
1329 | ||
1330 | # There might be people who depend on the old broken behavior: `$host' | |
1331 | # used to hold the argument of --host etc. | |
1332 | # FIXME: To remove some day. | |
1333 | build=$build_alias | |
1334 | host=$host_alias | |
1335 | target=$target_alias | |
1336 | ||
1337 | # FIXME: To remove some day. | |
1338 | if test "x$host_alias" != x; then | |
1339 | if test "x$build_alias" = x; then | |
1340 | cross_compiling=maybe | |
212380e3 AC |
1341 | elif test "x$build_alias" != "x$host_alias"; then |
1342 | cross_compiling=yes | |
1343 | fi | |
1344 | fi | |
1345 | ||
1346 | ac_tool_prefix= | |
1347 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1348 | ||
1349 | test "$silent" = yes && exec 6>/dev/null | |
1350 | ||
1351 | ||
631ef239 AC |
1352 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1353 | ac_ls_di=`ls -di .` && | |
1354 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1355 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1356 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1357 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1358 | |
1359 | ||
1360 | # Find the source files, if location was not specified. | |
1361 | if test -z "$srcdir"; then | |
212380e3 | 1362 | ac_srcdir_defaulted=yes |
631ef239 | 1363 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1364 | ac_confdir=`$as_dirname -- "$as_myself" || |
1365 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1366 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1367 | X"$as_myself" : 'X\(//\)$' \| \ | |
1368 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1369 | $as_echo X"$as_myself" | | |
631ef239 AC |
1370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\/\)[^/].*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\/\)$/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\).*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | s/.*/./; q'` | |
212380e3 | 1387 | srcdir=$ac_confdir |
631ef239 | 1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1389 | srcdir=.. |
1390 | fi | |
1391 | else | |
1392 | ac_srcdir_defaulted=no | |
1393 | fi | |
631ef239 AC |
1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
1395 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1396 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1397 | fi |
631ef239 AC |
1398 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1399 | ac_abs_confdir=`( | |
b6d0720c | 1400 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1401 | pwd)` |
1402 | # When building in place, set srcdir=. | |
1403 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1404 | srcdir=. | |
1405 | fi | |
1406 | # Remove unnecessary trailing slashes from srcdir. | |
1407 | # Double slashes in file names in object file debugging info | |
1408 | # mess up M-x gdb in Emacs. | |
1409 | case $srcdir in | |
1410 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1411 | esac | |
1412 | for ac_var in $ac_precious_vars; do | |
1413 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1414 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1415 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1416 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1417 | done | |
212380e3 AC |
1418 | |
1419 | # | |
1420 | # Report the --help message. | |
1421 | # | |
1422 | if test "$ac_init_help" = "long"; then | |
1423 | # Omit some internal or obsolete options to make the list less imposing. | |
1424 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1425 | cat <<_ACEOF | |
c52df125 | 1426 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1427 | |
1428 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1429 | ||
1430 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1431 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1432 | ||
1433 | Defaults for the options are specified in brackets. | |
1434 | ||
1435 | Configuration: | |
1436 | -h, --help display this help and exit | |
1437 | --help=short display options specific to this package | |
1438 | --help=recursive display the short help of all the included packages | |
1439 | -V, --version display version information and exit | |
b6d0720c | 1440 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1441 | --cache-file=FILE cache test results in FILE [disabled] |
1442 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1443 | -n, --no-create do not create output files | |
1444 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1445 | ||
212380e3 AC |
1446 | Installation directories: |
1447 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1448 | [$ac_default_prefix] |
212380e3 | 1449 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1450 | [PREFIX] |
212380e3 AC |
1451 | |
1452 | By default, \`make install' will install all the files in | |
1453 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1454 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1455 | for instance \`--prefix=\$HOME'. | |
1456 | ||
1457 | For better control, use the options below. | |
1458 | ||
1459 | Fine tuning of the installation directories: | |
7083c021 AC |
1460 | --bindir=DIR user executables [EPREFIX/bin] |
1461 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1462 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1463 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1464 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1465 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1466 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1467 | --includedir=DIR C header files [PREFIX/include] | |
1468 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1469 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1470 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1471 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1472 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1473 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1474 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1475 | --htmldir=DIR html documentation [DOCDIR] | |
1476 | --dvidir=DIR dvi documentation [DOCDIR] | |
1477 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1478 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1479 | _ACEOF |
1480 | ||
1481 | cat <<\_ACEOF | |
c52df125 AC |
1482 | |
1483 | Program names: | |
1484 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1485 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1486 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1487 | ||
1488 | System types: | |
1489 | --build=BUILD configure for building on BUILD [guessed] | |
1490 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
212380e3 AC |
1491 | _ACEOF |
1492 | fi | |
1493 | ||
1494 | if test -n "$ac_init_help"; then | |
1495 | case $ac_init_help in | |
c52df125 | 1496 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; |
212380e3 AC |
1497 | esac |
1498 | cat <<\_ACEOF | |
1499 | ||
1500 | Optional Features: | |
7083c021 | 1501 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1502 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1503 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c52df125 AC |
1504 | --enable-dependency-tracking |
1505 | do not reject slow dependency extractors | |
1506 | --disable-dependency-tracking | |
1507 | speeds up one-time build | |
eec2776c AJ |
1508 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1509 | --disable-silent-rules verbose build output (undo: "make V=0") | |
c52df125 AC |
1510 | --enable-static[=PKGS] build static libraries [default=no] |
1511 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1512 | --enable-fast-install[=PKGS] | |
1513 | optimize for fast installation [default=yes] | |
1514 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1515 | --enable-ltdl-install install libltdl | |
6929cd01 | 1516 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1517 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1518 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1519 | --disable-openssl Disable OpenSSL support. |
1520 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1521 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1522 | --enable-poll Force poll() usage. |
1523 | --enable-select Force select() usage. | |
1524 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1525 | --enable-epoll Force sys_epoll usage (Linux only). |
1526 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1527 | hard(aborts the daemon) | |
1528 | --enable-iodebug Enable IO Debugging hooks | |
1529 | --enable-profile Enable profiling | |
1530 | --disable-balloc Disable the block allocator. | |
212380e3 | 1531 | --enable-small-net Enable small network support. |
212380e3 AC |
1532 | --enable-warnings Enable all sorts of warnings for debugging. |
1533 | ||
1534 | Optional Packages: | |
1535 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1536 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
c52df125 AC |
1537 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1538 | both] | |
1539 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1540 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1541 | (or the compiler's sysroot if not specified). | |
1542 | --with-included-ltdl use the GNU ltdl sources included here | |
1543 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1544 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
212380e3 | 1545 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
a6ef3156 | 1546 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1547 | --with-confdir=DIR Directory to install config files [deprecated, use |
1548 | --sysconfdir instead]. | |
212380e3 AC |
1549 | --with-logdir=DIR Directory where to write logfiles. |
1550 | --with-helpdir=DIR Directory to install help files. | |
1551 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1552 | --with-rundir=DIR Directory in which to store pidfile. |
1553 | --with-program-prefix= If set, programs installed into PATH will be | |
1554 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1555 | --with-custom-branding=NAME |
1556 | Custom branding name. | |
1557 | --with-custom-version=NAME | |
1558 | Custom version branding. | |
b583faf9 | 1559 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1560 | 31, max 50) |
212380e3 AC |
1561 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1562 | 390) | |
212380e3 AC |
1563 | |
1564 | Some influential environment variables: | |
1565 | CC C compiler command | |
1566 | CFLAGS C compiler flags | |
1567 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1568 | nonstandard directory <lib dir> | |
631ef239 | 1569 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1570 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1571 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1572 | CPP C preprocessor |
b6d0720c AC |
1573 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1574 | Defaults to the first program found out of: `bison -y', `byacc', | |
1575 | `yacc'. | |
631ef239 AC |
1576 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1577 | This script will default YFLAGS to the empty string to avoid a | |
1578 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1579 | PKG_CONFIG path to pkg-config utility |
1580 | PKG_CONFIG_PATH | |
1581 | directories to add to pkg-config's search path | |
1582 | PKG_CONFIG_LIBDIR | |
1583 | path overriding pkg-config's built-in search path | |
1584 | SQLITE_CFLAGS | |
1585 | C compiler flags for SQLITE, overriding pkg-config | |
1586 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1587 | |
1588 | Use these variables to override the choices made by `configure' or to help | |
1589 | it to find libraries and programs with nonstandard names/locations. | |
1590 | ||
7083c021 | 1591 | Report bugs to the package provider. |
212380e3 | 1592 | _ACEOF |
631ef239 | 1593 | ac_status=$? |
212380e3 AC |
1594 | fi |
1595 | ||
1596 | if test "$ac_init_help" = "recursive"; then | |
1597 | # If there are subdirs, report their specific --help. | |
212380e3 | 1598 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1599 | test -d "$ac_dir" || |
1600 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1601 | continue | |
212380e3 AC |
1602 | ac_builddir=. |
1603 | ||
631ef239 AC |
1604 | case "$ac_dir" in |
1605 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1606 | *) | |
7083c021 | 1607 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1608 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1609 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1610 | case $ac_top_builddir_sub in |
1611 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1612 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1613 | esac ;; | |
1614 | esac | |
1615 | ac_abs_top_builddir=$ac_pwd | |
1616 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1617 | # for backward compatibility: | |
1618 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1619 | |
1620 | case $srcdir in | |
631ef239 | 1621 | .) # We are building in place. |
212380e3 | 1622 | ac_srcdir=. |
631ef239 AC |
1623 | ac_top_srcdir=$ac_top_builddir_sub |
1624 | ac_abs_top_srcdir=$ac_pwd ;; | |
1625 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1626 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1627 | ac_top_srcdir=$srcdir |
1628 | ac_abs_top_srcdir=$srcdir ;; | |
1629 | *) # Relative name. | |
1630 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1631 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1632 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1633 | esac |
631ef239 AC |
1634 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1635 | ||
1636 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1637 | # Check for guested configure. | |
1638 | if test -f "$ac_srcdir/configure.gnu"; then | |
1639 | echo && | |
1640 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1641 | elif test -f "$ac_srcdir/configure"; then | |
1642 | echo && | |
1643 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1644 | else |
7083c021 | 1645 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1646 | fi || ac_status=$? |
1647 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1648 | done |
1649 | fi | |
1650 | ||
631ef239 | 1651 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1652 | if $ac_init_version; then |
1653 | cat <<\_ACEOF | |
c52df125 | 1654 | charybdis configure 3.6.0-dev |
2eff3833 | 1655 | generated by GNU Autoconf 2.69 |
212380e3 | 1656 | |
2eff3833 | 1657 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1658 | This configure script is free software; the Free Software Foundation |
1659 | gives unlimited permission to copy, distribute and modify it. | |
212380e3 | 1660 | _ACEOF |
631ef239 | 1661 | exit |
212380e3 | 1662 | fi |
212380e3 | 1663 | |
7083c021 AC |
1664 | ## ------------------------ ## |
1665 | ## Autoconf initialization. ## | |
1666 | ## ------------------------ ## | |
212380e3 | 1667 | |
7083c021 AC |
1668 | # ac_fn_c_try_compile LINENO |
1669 | # -------------------------- | |
1670 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1671 | ac_fn_c_try_compile () | |
1672 | { | |
1673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1674 | rm -f conftest.$ac_objext | |
1675 | if { { ac_try="$ac_compile" | |
1676 | case "(($ac_try" in | |
1677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1678 | *) ac_try_echo=$ac_try;; | |
1679 | esac | |
1680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1681 | $as_echo "$ac_try_echo"; } >&5 | |
1682 | (eval "$ac_compile") 2>conftest.err | |
1683 | ac_status=$? | |
1684 | if test -s conftest.err; then | |
1685 | grep -v '^ *+' conftest.err >conftest.er1 | |
1686 | cat conftest.er1 >&5 | |
1687 | mv -f conftest.er1 conftest.err | |
1688 | fi | |
1689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1690 | test $ac_status = 0; } && { | |
1691 | test -z "$ac_c_werror_flag" || | |
1692 | test ! -s conftest.err | |
1693 | } && test -s conftest.$ac_objext; then : | |
1694 | ac_retval=0 | |
1695 | else | |
1696 | $as_echo "$as_me: failed program was:" >&5 | |
1697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1698 | |
7083c021 AC |
1699 | ac_retval=1 |
1700 | fi | |
b6d0720c | 1701 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1702 | as_fn_set_status $ac_retval |
7083c021 AC |
1703 | |
1704 | } # ac_fn_c_try_compile | |
1705 | ||
eec2776c AJ |
1706 | # ac_fn_c_try_cpp LINENO |
1707 | # ---------------------- | |
1708 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1709 | ac_fn_c_try_cpp () | |
212380e3 | 1710 | { |
7083c021 | 1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
eec2776c | 1712 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
7083c021 AC |
1713 | case "(($ac_try" in |
1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1715 | *) ac_try_echo=$ac_try;; | |
1716 | esac | |
1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1718 | $as_echo "$ac_try_echo"; } >&5 | |
eec2776c | 1719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
7083c021 AC |
1720 | ac_status=$? |
1721 | if test -s conftest.err; then | |
1722 | grep -v '^ *+' conftest.err >conftest.er1 | |
1723 | cat conftest.er1 >&5 | |
1724 | mv -f conftest.er1 conftest.err | |
1725 | fi | |
1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
1727 | test $ac_status = 0; } > conftest.i && { |
1728 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7083c021 AC |
1729 | test ! -s conftest.err |
1730 | }; then : | |
1731 | ac_retval=0 | |
1732 | else | |
1733 | $as_echo "$as_me: failed program was:" >&5 | |
1734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1735 | |
eec2776c | 1736 | ac_retval=1 |
7083c021 | 1737 | fi |
b6d0720c | 1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1739 | as_fn_set_status $ac_retval |
212380e3 | 1740 | |
eec2776c | 1741 | } # ac_fn_c_try_cpp |
212380e3 | 1742 | |
eec2776c | 1743 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
7083c021 | 1744 | # ------------------------------------------------------- |
eec2776c AJ |
1745 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1746 | # the include files in INCLUDES and setting the cache variable VAR | |
1747 | # accordingly. | |
1748 | ac_fn_c_check_header_mongrel () | |
7083c021 AC |
1749 | { |
1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
eec2776c | 1751 | if eval \${$3+:} false; then : |
7083c021 AC |
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1753 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1754 | if eval \${$3+:} false; then : |
7083c021 | 1755 | $as_echo_n "(cached) " >&6 |
eec2776c AJ |
1756 | fi |
1757 | eval ac_res=\$$3 | |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1759 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1760 | else |
eec2776c AJ |
1761 | # Is the header compilable? |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1763 | $as_echo_n "checking $2 usability... " >&6; } | |
1764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 AC |
1765 | /* end confdefs.h. */ |
1766 | $4 | |
1767 | #include <$2> | |
1768 | _ACEOF | |
1769 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c | 1770 | ac_header_compiler=yes |
7083c021 | 1771 | else |
eec2776c | 1772 | ac_header_compiler=no |
7083c021 AC |
1773 | fi |
1774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1776 | $as_echo "$ac_header_compiler" >&6; } | |
c52df125 | 1777 | |
eec2776c AJ |
1778 | # Is the header present? |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1780 | $as_echo_n "checking $2 presence... " >&6; } | |
1781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1782 | /* end confdefs.h. */ | |
1783 | #include <$2> | |
1784 | _ACEOF | |
1785 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1786 | ac_header_preproc=yes | |
1787 | else | |
1788 | ac_header_preproc=no | |
1789 | fi | |
1790 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1792 | $as_echo "$ac_header_preproc" >&6; } | |
c52df125 | 1793 | |
eec2776c AJ |
1794 | # So? What about this header? |
1795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1796 | yes:no: ) | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1798 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1800 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1801 | ;; | |
1802 | no:yes:* ) | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1804 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1806 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1808 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1810 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1812 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1813 | ;; | |
c52df125 | 1814 | esac |
eec2776c AJ |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1816 | $as_echo_n "checking for $2... " >&6; } | |
1817 | if eval \${$3+:} false; then : | |
1818 | $as_echo_n "(cached) " >&6 | |
c52df125 | 1819 | else |
eec2776c AJ |
1820 | eval "$3=\$ac_header_compiler" |
1821 | fi | |
1822 | eval ac_res=\$$3 | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1824 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1825 | fi |
b6d0720c | 1826 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1827 | |
eec2776c | 1828 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1829 | |
7083c021 AC |
1830 | # ac_fn_c_try_run LINENO |
1831 | # ---------------------- | |
1832 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1833 | # that executables *can* be run. | |
1834 | ac_fn_c_try_run () | |
1835 | { | |
1836 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1837 | if { { ac_try="$ac_link" | |
1838 | case "(($ac_try" in | |
1839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1840 | *) ac_try_echo=$ac_try;; | |
1841 | esac | |
1842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1843 | $as_echo "$ac_try_echo"; } >&5 | |
1844 | (eval "$ac_link") 2>&5 | |
1845 | ac_status=$? | |
1846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1847 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1848 | { { case "(($ac_try" in | |
1849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1850 | *) ac_try_echo=$ac_try;; | |
1851 | esac | |
1852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1853 | $as_echo "$ac_try_echo"; } >&5 | |
1854 | (eval "$ac_try") 2>&5 | |
1855 | ac_status=$? | |
1856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1857 | test $ac_status = 0; }; }; then : | |
1858 | ac_retval=0 | |
1859 | else | |
1860 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1861 | $as_echo "$as_me: failed program was:" >&5 | |
1862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1863 | |
7083c021 AC |
1864 | ac_retval=$ac_status |
1865 | fi | |
1866 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1868 | as_fn_set_status $ac_retval |
212380e3 | 1869 | |
7083c021 | 1870 | } # ac_fn_c_try_run |
212380e3 | 1871 | |
eec2776c AJ |
1872 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1873 | # ------------------------------------------------------- | |
1874 | # Tests whether HEADER exists and can be compiled using the include files in | |
1875 | # INCLUDES, setting the cache variable VAR accordingly. | |
1876 | ac_fn_c_check_header_compile () | |
1877 | { | |
1878 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1880 | $as_echo_n "checking for $2... " >&6; } | |
1881 | if eval \${$3+:} false; then : | |
1882 | $as_echo_n "(cached) " >&6 | |
1883 | else | |
1884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1885 | /* end confdefs.h. */ | |
1886 | $4 | |
1887 | #include <$2> | |
1888 | _ACEOF | |
1889 | if ac_fn_c_try_compile "$LINENO"; then : | |
1890 | eval "$3=yes" | |
1891 | else | |
1892 | eval "$3=no" | |
1893 | fi | |
1894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1895 | fi | |
1896 | eval ac_res=\$$3 | |
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1898 | $as_echo "$ac_res" >&6; } | |
1899 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1900 | ||
1901 | } # ac_fn_c_check_header_compile | |
1902 | ||
1903 | # ac_fn_c_try_link LINENO | |
1904 | # ----------------------- | |
1905 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1906 | ac_fn_c_try_link () | |
1907 | { | |
1908 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1910 | if { { ac_try="$ac_link" | |
1911 | case "(($ac_try" in | |
1912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1913 | *) ac_try_echo=$ac_try;; | |
1914 | esac | |
1915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1916 | $as_echo "$ac_try_echo"; } >&5 | |
1917 | (eval "$ac_link") 2>conftest.err | |
1918 | ac_status=$? | |
1919 | if test -s conftest.err; then | |
1920 | grep -v '^ *+' conftest.err >conftest.er1 | |
1921 | cat conftest.er1 >&5 | |
1922 | mv -f conftest.er1 conftest.err | |
1923 | fi | |
1924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1925 | test $ac_status = 0; } && { | |
1926 | test -z "$ac_c_werror_flag" || | |
1927 | test ! -s conftest.err | |
1928 | } && test -s conftest$ac_exeext && { | |
1929 | test "$cross_compiling" = yes || | |
1930 | test -x conftest$ac_exeext | |
1931 | }; then : | |
1932 | ac_retval=0 | |
1933 | else | |
1934 | $as_echo "$as_me: failed program was:" >&5 | |
1935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1936 | ||
1937 | ac_retval=1 | |
1938 | fi | |
1939 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1940 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1941 | # interfere with the next link command; also delete a directory that is | |
1942 | # left behind by Apple's compiler. We do this before executing the actions. | |
1943 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1944 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1945 | as_fn_set_status $ac_retval | |
1946 | ||
1947 | } # ac_fn_c_try_link | |
1948 | ||
c52df125 AC |
1949 | # ac_fn_c_check_func LINENO FUNC VAR |
1950 | # ---------------------------------- | |
1951 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1952 | ac_fn_c_check_func () | |
7083c021 AC |
1953 | { |
1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1956 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1957 | if eval \${$3+:} false; then : |
7083c021 AC |
1958 | $as_echo_n "(cached) " >&6 |
1959 | else | |
1960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1961 | /* end confdefs.h. */ | |
c52df125 AC |
1962 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1964 | #define $2 innocuous_$2 | |
1965 | ||
1966 | /* System header to define __stub macros and hopefully few prototypes, | |
1967 | which can conflict with char $2 (); below. | |
1968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1969 | <limits.h> exists even on freestanding compilers. */ | |
1970 | ||
1971 | #ifdef __STDC__ | |
1972 | # include <limits.h> | |
1973 | #else | |
1974 | # include <assert.h> | |
1975 | #endif | |
1976 | ||
1977 | #undef $2 | |
1978 | ||
1979 | /* Override any GCC internal prototype to avoid an error. | |
1980 | Use char because int might match the return type of a GCC | |
1981 | builtin and then its argument prototype would still apply. */ | |
1982 | #ifdef __cplusplus | |
1983 | extern "C" | |
1984 | #endif | |
1985 | char $2 (); | |
1986 | /* The GNU C library defines this for functions which it implements | |
1987 | to always fail with ENOSYS. Some functions are actually named | |
1988 | something starting with __ and the normal name is an alias. */ | |
1989 | #if defined __stub_$2 || defined __stub___$2 | |
1990 | choke me | |
1991 | #endif | |
1992 | ||
1993 | int | |
1994 | main () | |
1995 | { | |
1996 | return $2 (); | |
1997 | ; | |
1998 | return 0; | |
1999 | } | |
2000 | _ACEOF | |
2001 | if ac_fn_c_try_link "$LINENO"; then : | |
2002 | eval "$3=yes" | |
2003 | else | |
2004 | eval "$3=no" | |
2005 | fi | |
2006 | rm -f core conftest.err conftest.$ac_objext \ | |
2007 | conftest$ac_exeext conftest.$ac_ext | |
2008 | fi | |
2009 | eval ac_res=\$$3 | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2011 | $as_echo "$ac_res" >&6; } | |
2012 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2013 | ||
2014 | } # ac_fn_c_check_func | |
2015 | ||
2016 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2017 | # --------------------------------------------- | |
2018 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2019 | # accordingly. | |
2020 | ac_fn_c_check_decl () | |
2021 | { | |
2022 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2023 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2024 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2026 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2027 | if eval \${$3+:} false; then : | |
2028 | $as_echo_n "(cached) " >&6 | |
2029 | else | |
2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2031 | /* end confdefs.h. */ | |
7083c021 | 2032 | $4 |
c52df125 AC |
2033 | int |
2034 | main () | |
2035 | { | |
2036 | #ifndef $as_decl_name | |
2037 | #ifdef __cplusplus | |
2038 | (void) $as_decl_use; | |
2039 | #else | |
2040 | (void) $as_decl_name; | |
2041 | #endif | |
2042 | #endif | |
2043 | ||
2044 | ; | |
2045 | return 0; | |
2046 | } | |
212380e3 | 2047 | _ACEOF |
7083c021 AC |
2048 | if ac_fn_c_try_compile "$LINENO"; then : |
2049 | eval "$3=yes" | |
2050 | else | |
2051 | eval "$3=no" | |
2052 | fi | |
2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2054 | fi | |
2055 | eval ac_res=\$$3 | |
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2057 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2058 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2059 | |
c52df125 | 2060 | } # ac_fn_c_check_decl |
212380e3 | 2061 | |
c52df125 AC |
2062 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2063 | # ------------------------------------------- | |
2064 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2065 | # variable VAR accordingly. | |
2066 | ac_fn_c_check_type () | |
7083c021 AC |
2067 | { |
2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2070 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2071 | if eval \${$3+:} false; then : |
7083c021 | 2072 | $as_echo_n "(cached) " >&6 |
212380e3 | 2073 | else |
7083c021 AC |
2074 | eval "$3=no" |
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2076 | /* end confdefs.h. */ | |
2077 | $4 | |
2078 | int | |
2079 | main () | |
2080 | { | |
2081 | if (sizeof ($2)) | |
2082 | return 0; | |
2083 | ; | |
2084 | return 0; | |
2085 | } | |
212380e3 | 2086 | _ACEOF |
7083c021 AC |
2087 | if ac_fn_c_try_compile "$LINENO"; then : |
2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2089 | /* end confdefs.h. */ |
7083c021 | 2090 | $4 |
212380e3 AC |
2091 | int |
2092 | main () | |
2093 | { | |
7083c021 AC |
2094 | if (sizeof (($2))) |
2095 | return 0; | |
212380e3 AC |
2096 | ; |
2097 | return 0; | |
2098 | } | |
2099 | _ACEOF | |
7083c021 | 2100 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 2101 | |
631ef239 | 2102 | else |
7083c021 | 2103 | eval "$3=yes" |
212380e3 | 2104 | fi |
7083c021 | 2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2106 | fi |
7083c021 | 2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2108 | fi |
7083c021 AC |
2109 | eval ac_res=\$$3 |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2111 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2112 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2113 | |
7083c021 AC |
2114 | } # ac_fn_c_check_type |
2115 | ||
2116 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2117 | # -------------------------------------------- | |
2118 | # Tries to find the compile-time value of EXPR in a program that includes | |
2119 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2120 | # computed | |
2121 | ac_fn_c_compute_int () | |
2122 | { | |
2123 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2124 | if test "$cross_compiling" = yes; then | |
2125 | # Depending upon the size, compute the lo and hi bounds. | |
2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2127 | /* end confdefs.h. */ | |
2128 | $4 | |
2129 | int | |
2130 | main () | |
2131 | { | |
2132 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
2133 | test_array [0] = 0; |
2134 | return test_array [0]; | |
7083c021 AC |
2135 | |
2136 | ; | |
2137 | return 0; | |
2138 | } | |
212380e3 | 2139 | _ACEOF |
7083c021 AC |
2140 | if ac_fn_c_try_compile "$LINENO"; then : |
2141 | ac_lo=0 ac_mid=0 | |
2142 | while :; do | |
2143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2144 | /* end confdefs.h. */ |
7083c021 AC |
2145 | $4 |
2146 | int | |
2147 | main () | |
2148 | { | |
2149 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2150 | test_array [0] = 0; |
2151 | return test_array [0]; | |
212380e3 | 2152 | |
7083c021 AC |
2153 | ; |
2154 | return 0; | |
2155 | } | |
212380e3 | 2156 | _ACEOF |
7083c021 AC |
2157 | if ac_fn_c_try_compile "$LINENO"; then : |
2158 | ac_hi=$ac_mid; break | |
212380e3 | 2159 | else |
7083c021 AC |
2160 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2161 | if test $ac_lo -le $ac_mid; then | |
2162 | ac_lo= ac_hi= | |
2163 | break | |
2164 | fi | |
2165 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 2166 | fi |
631ef239 | 2167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
2168 | done |
2169 | else | |
2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2171 | /* end confdefs.h. */ | |
2172 | $4 | |
2173 | int | |
2174 | main () | |
2175 | { | |
2176 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
2177 | test_array [0] = 0; |
2178 | return test_array [0]; | |
212380e3 | 2179 | |
7083c021 AC |
2180 | ; |
2181 | return 0; | |
2182 | } | |
212380e3 | 2183 | _ACEOF |
7083c021 AC |
2184 | if ac_fn_c_try_compile "$LINENO"; then : |
2185 | ac_hi=-1 ac_mid=-1 | |
2186 | while :; do | |
2187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2188 | /* end confdefs.h. */ | |
2189 | $4 | |
2190 | int | |
2191 | main () | |
2192 | { | |
2193 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
2194 | test_array [0] = 0; |
2195 | return test_array [0]; | |
212380e3 | 2196 | |
7083c021 AC |
2197 | ; |
2198 | return 0; | |
2199 | } | |
2200 | _ACEOF | |
2201 | if ac_fn_c_try_compile "$LINENO"; then : | |
2202 | ac_lo=$ac_mid; break | |
2203 | else | |
2204 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2205 | if test $ac_mid -le $ac_hi; then | |
2206 | ac_lo= ac_hi= | |
2207 | break | |
2208 | fi | |
2209 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 2210 | fi |
7083c021 AC |
2211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2212 | done | |
212380e3 | 2213 | else |
7083c021 AC |
2214 | ac_lo= ac_hi= |
2215 | fi | |
2216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2217 | fi | |
2218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2219 | # Binary search between lo and hi bounds. | |
2220 | while test "x$ac_lo" != "x$ac_hi"; do | |
2221 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2223 | /* end confdefs.h. */ |
7083c021 AC |
2224 | $4 |
2225 | int | |
2226 | main () | |
2227 | { | |
2228 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2229 | test_array [0] = 0; |
2230 | return test_array [0]; | |
7083c021 AC |
2231 | |
2232 | ; | |
2233 | return 0; | |
2234 | } | |
212380e3 | 2235 | _ACEOF |
7083c021 AC |
2236 | if ac_fn_c_try_compile "$LINENO"; then : |
2237 | ac_hi=$ac_mid | |
212380e3 | 2238 | else |
7083c021 | 2239 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 2240 | fi |
7083c021 AC |
2241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2242 | done | |
2243 | case $ac_lo in #(( | |
2244 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2245 | '') ac_retval=1 ;; | |
2246 | esac | |
2247 | else | |
2248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2249 | /* end confdefs.h. */ | |
2250 | $4 | |
2251 | static long int longval () { return $2; } | |
2252 | static unsigned long int ulongval () { return $2; } | |
2253 | #include <stdio.h> | |
2254 | #include <stdlib.h> | |
2255 | int | |
2256 | main () | |
2257 | { | |
631ef239 | 2258 | |
7083c021 AC |
2259 | FILE *f = fopen ("conftest.val", "w"); |
2260 | if (! f) | |
2261 | return 1; | |
2262 | if (($2) < 0) | |
2263 | { | |
2264 | long int i = longval (); | |
2265 | if (i != ($2)) | |
2266 | return 1; | |
2267 | fprintf (f, "%ld", i); | |
2268 | } | |
2269 | else | |
2270 | { | |
2271 | unsigned long int i = ulongval (); | |
2272 | if (i != ($2)) | |
2273 | return 1; | |
2274 | fprintf (f, "%lu", i); | |
2275 | } | |
2276 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2277 | on some platforms. */ | |
2278 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2279 | |
7083c021 AC |
2280 | ; |
2281 | return 0; | |
2282 | } | |
212380e3 | 2283 | _ACEOF |
7083c021 AC |
2284 | if ac_fn_c_try_run "$LINENO"; then : |
2285 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2286 | else |
7083c021 | 2287 | ac_retval=1 |
212380e3 | 2288 | fi |
7083c021 AC |
2289 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2290 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2291 | rm -f conftest.val | |
631ef239 | 2292 | |
7083c021 | 2293 | fi |
b6d0720c | 2294 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2295 | as_fn_set_status $ac_retval |
212380e3 | 2296 | |
7083c021 | 2297 | } # ac_fn_c_compute_int |
7083c021 AC |
2298 | cat >config.log <<_ACEOF |
2299 | This file contains any messages produced by compilers while | |
2300 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2301 | |
c52df125 | 2302 | It was created by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 2303 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2304 | |
7083c021 | 2305 | $ $0 $@ |
212380e3 | 2306 | |
7083c021 AC |
2307 | _ACEOF |
2308 | exec 5>>config.log | |
2309 | { | |
2310 | cat <<_ASUNAME | |
2311 | ## --------- ## | |
2312 | ## Platform. ## | |
2313 | ## --------- ## | |
2314 | ||
2315 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2316 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2317 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2318 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2319 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2320 | ||
2321 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2322 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2323 | ||
2324 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2325 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2326 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2327 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2328 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2329 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2330 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2331 | ||
2332 | _ASUNAME | |
212380e3 | 2333 | |
631ef239 | 2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2335 | for as_dir in $PATH |
631ef239 AC |
2336 | do |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2339 | $as_echo "PATH: $as_dir" |
631ef239 | 2340 | done |
631ef239 AC |
2341 | IFS=$as_save_IFS |
2342 | ||
7083c021 | 2343 | } >&5 |
631ef239 | 2344 | |
7083c021 | 2345 | cat >&5 <<_ACEOF |
631ef239 | 2346 | |
631ef239 | 2347 | |
7083c021 AC |
2348 | ## ----------- ## |
2349 | ## Core tests. ## | |
2350 | ## ----------- ## | |
631ef239 | 2351 | |
7083c021 | 2352 | _ACEOF |
631ef239 AC |
2353 | |
2354 | ||
7083c021 AC |
2355 | # Keep a trace of the command line. |
2356 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2357 | # Strip out --silent because we don't want to record it for future runs. | |
2358 | # Also quote any args containing shell meta-characters. | |
2359 | # Make two passes to allow for proper duplicate-argument suppression. | |
2360 | ac_configure_args= | |
2361 | ac_configure_args0= | |
2362 | ac_configure_args1= | |
2363 | ac_must_keep_next=false | |
2364 | for ac_pass in 1 2 | |
631ef239 | 2365 | do |
7083c021 | 2366 | for ac_arg |
631ef239 | 2367 | do |
7083c021 AC |
2368 | case $ac_arg in |
2369 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2370 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2371 | | -silent | --silent | --silen | --sile | --sil) | |
2372 | continue ;; | |
2373 | *\'*) | |
2374 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2375 | esac | |
2376 | case $ac_pass in | |
2377 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2378 | 2) | |
2379 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2380 | if test $ac_must_keep_next = true; then | |
2381 | ac_must_keep_next=false # Got value, back to normal. | |
2382 | else | |
2383 | case $ac_arg in | |
2384 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2385 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2386 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2387 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2388 | case "$ac_configure_args0 " in | |
2389 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2390 | esac | |
2391 | ;; | |
2392 | -* ) ac_must_keep_next=true ;; | |
2393 | esac | |
2394 | fi | |
2395 | as_fn_append ac_configure_args " '$ac_arg'" | |
2396 | ;; | |
2397 | esac | |
631ef239 AC |
2398 | done |
2399 | done | |
7083c021 AC |
2400 | { ac_configure_args0=; unset ac_configure_args0;} |
2401 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2402 | |
7083c021 AC |
2403 | # When interrupted or exit'd, cleanup temporary files, and complete |
2404 | # config.log. We remove comments because anyway the quotes in there | |
2405 | # would cause problems or look ugly. | |
2406 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2407 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2408 | trap 'exit_status=$? | |
2409 | # Save into config.log some information that might help in debugging. | |
2410 | { | |
2411 | echo | |
631ef239 | 2412 | |
b6d0720c | 2413 | $as_echo "## ---------------- ## |
7083c021 | 2414 | ## Cache variables. ## |
b6d0720c | 2415 | ## ---------------- ##" |
7083c021 AC |
2416 | echo |
2417 | # The following way of writing the cache mishandles newlines in values, | |
2418 | ( | |
2419 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2420 | eval ac_val=\$$ac_var | |
2421 | case $ac_val in #( | |
2422 | *${as_nl}*) | |
2423 | case $ac_var in #( | |
2424 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2425 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2426 | esac | |
2427 | case $ac_var in #( | |
2428 | _ | IFS | as_nl) ;; #( | |
2429 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2430 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2431 | esac ;; | |
2432 | esac | |
2433 | done | |
2434 | (set) 2>&1 | | |
2435 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2436 | *${as_nl}ac_space=\ *) | |
2437 | sed -n \ | |
2438 | "s/'\''/'\''\\\\'\'''\''/g; | |
2439 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2440 | ;; #( | |
2441 | *) | |
2442 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2443 | ;; | |
2444 | esac | | |
2445 | sort | |
2446 | ) | |
2447 | echo | |
631ef239 | 2448 | |
b6d0720c | 2449 | $as_echo "## ----------------- ## |
7083c021 | 2450 | ## Output variables. ## |
b6d0720c | 2451 | ## ----------------- ##" |
7083c021 AC |
2452 | echo |
2453 | for ac_var in $ac_subst_vars | |
2454 | do | |
2455 | eval ac_val=\$$ac_var | |
2456 | case $ac_val in | |
2457 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2458 | esac | |
2459 | $as_echo "$ac_var='\''$ac_val'\''" | |
2460 | done | sort | |
2461 | echo | |
631ef239 | 2462 | |
7083c021 | 2463 | if test -n "$ac_subst_files"; then |
b6d0720c | 2464 | $as_echo "## ------------------- ## |
7083c021 | 2465 | ## File substitutions. ## |
b6d0720c | 2466 | ## ------------------- ##" |
7083c021 AC |
2467 | echo |
2468 | for ac_var in $ac_subst_files | |
2469 | do | |
2470 | eval ac_val=\$$ac_var | |
2471 | case $ac_val in | |
2472 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2473 | esac | |
2474 | $as_echo "$ac_var='\''$ac_val'\''" | |
2475 | done | sort | |
2476 | echo | |
2477 | fi | |
631ef239 | 2478 | |
7083c021 | 2479 | if test -s confdefs.h; then |
b6d0720c | 2480 | $as_echo "## ----------- ## |
7083c021 | 2481 | ## confdefs.h. ## |
b6d0720c | 2482 | ## ----------- ##" |
7083c021 AC |
2483 | echo |
2484 | cat confdefs.h | |
2485 | echo | |
2486 | fi | |
2487 | test "$ac_signal" != 0 && | |
2488 | $as_echo "$as_me: caught signal $ac_signal" | |
2489 | $as_echo "$as_me: exit $exit_status" | |
2490 | } >&5 | |
2491 | rm -f core *.core core.conftest.* && | |
2492 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2493 | exit $exit_status | |
2494 | ' 0 | |
2495 | for ac_signal in 1 2 13 15; do | |
2496 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2497 | done | |
2498 | ac_signal=0 | |
631ef239 | 2499 | |
7083c021 AC |
2500 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2501 | rm -f -r conftest* confdefs.h | |
631ef239 | 2502 | |
7083c021 | 2503 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2504 | |
7083c021 | 2505 | # Predefined preprocessor variables. |
212380e3 | 2506 | |
7083c021 AC |
2507 | cat >>confdefs.h <<_ACEOF |
2508 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2509 | _ACEOF |
212380e3 | 2510 | |
7083c021 AC |
2511 | cat >>confdefs.h <<_ACEOF |
2512 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2513 | _ACEOF |
212380e3 | 2514 | |
7083c021 AC |
2515 | cat >>confdefs.h <<_ACEOF |
2516 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2517 | _ACEOF |
212380e3 | 2518 | |
7083c021 AC |
2519 | cat >>confdefs.h <<_ACEOF |
2520 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2521 | _ACEOF | |
212380e3 | 2522 | |
7083c021 AC |
2523 | cat >>confdefs.h <<_ACEOF |
2524 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2525 | _ACEOF | |
212380e3 | 2526 | |
7083c021 AC |
2527 | cat >>confdefs.h <<_ACEOF |
2528 | #define PACKAGE_URL "$PACKAGE_URL" | |
2529 | _ACEOF | |
212380e3 | 2530 | |
631ef239 | 2531 | |
7083c021 AC |
2532 | # Let the site file select an alternate cache file if it wants to. |
2533 | # Prefer an explicitly selected file to automatically selected ones. | |
2534 | ac_site_file1=NONE | |
2535 | ac_site_file2=NONE | |
2536 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2537 | # We do not want a PATH search for config.site. |
2538 | case $CONFIG_SITE in #(( | |
2539 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2540 | */*) ac_site_file1=$CONFIG_SITE;; | |
2541 | *) ac_site_file1=./$CONFIG_SITE;; | |
2542 | esac | |
7083c021 AC |
2543 | elif test "x$prefix" != xNONE; then |
2544 | ac_site_file1=$prefix/share/config.site | |
2545 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2546 | else |
7083c021 AC |
2547 | ac_site_file1=$ac_default_prefix/share/config.site |
2548 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2549 | fi | |
2550 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2551 | do |
7083c021 | 2552 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2553 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2555 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2556 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2557 | . "$ac_site_file" \ |
2558 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2559 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2560 | as_fn_error $? "failed to load site script $ac_site_file | |
2561 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2562 | fi |
2563 | done | |
212380e3 | 2564 | |
7083c021 | 2565 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2566 | # Some versions of bash will fail to source /dev/null (special files |
2567 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2568 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2570 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2571 | case $cache_file in | |
2572 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2573 | *) . "./$cache_file";; | |
2574 | esac | |
2575 | fi | |
212380e3 | 2576 | else |
7083c021 AC |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2578 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2579 | >$cache_file | |
212380e3 AC |
2580 | fi |
2581 | ||
7083c021 AC |
2582 | # Check that the precious variables saved in the cache have kept the same |
2583 | # value. | |
2584 | ac_cache_corrupted=false | |
2585 | for ac_var in $ac_precious_vars; do | |
2586 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2587 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2588 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2589 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2590 | case $ac_old_set,$ac_new_set in | |
2591 | set,) | |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2593 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2594 | ac_cache_corrupted=: ;; | |
2595 | ,set) | |
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2597 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2598 | ac_cache_corrupted=: ;; | |
2599 | ,);; | |
2600 | *) | |
2601 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2602 | # differences in whitespace do not lead to failure. | |
2603 | ac_old_val_w=`echo x $ac_old_val` | |
2604 | ac_new_val_w=`echo x $ac_new_val` | |
2605 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2607 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2608 | ac_cache_corrupted=: | |
2609 | else | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2611 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2612 | eval $ac_var=\$ac_old_val | |
2613 | fi | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2615 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2617 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2618 | fi;; | |
2619 | esac | |
2620 | # Pass precious variables to config.status. | |
2621 | if test "$ac_new_set" = set; then | |
2622 | case $ac_new_val in | |
2623 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2624 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2625 | esac | |
2626 | case " $ac_configure_args " in | |
2627 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2628 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2629 | esac | |
212380e3 AC |
2630 | fi |
2631 | done | |
7083c021 AC |
2632 | if $ac_cache_corrupted; then |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2634 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2636 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2637 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2638 | fi |
7083c021 AC |
2639 | ## -------------------- ## |
2640 | ## Main body of script. ## | |
2641 | ## -------------------- ## | |
212380e3 | 2642 | |
7083c021 AC |
2643 | ac_ext=c |
2644 | ac_cpp='$CPP $CPPFLAGS' | |
2645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2648 | |
212380e3 | 2649 | |
212380e3 | 2650 | |
eec2776c AJ |
2651 | ac_ext=c |
2652 | ac_cpp='$CPP $CPPFLAGS' | |
2653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2656 | |
c52df125 | 2657 | ac_aux_dir= |
eec2776c | 2658 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
c52df125 AC |
2659 | if test -f "$ac_dir/install-sh"; then |
2660 | ac_aux_dir=$ac_dir | |
2661 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2662 | break | |
2663 | elif test -f "$ac_dir/install.sh"; then | |
2664 | ac_aux_dir=$ac_dir | |
2665 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2666 | break | |
2667 | elif test -f "$ac_dir/shtool"; then | |
2668 | ac_aux_dir=$ac_dir | |
2669 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2670 | break | |
212380e3 AC |
2671 | fi |
2672 | done | |
c52df125 | 2673 | if test -z "$ac_aux_dir"; then |
eec2776c | 2674 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
212380e3 AC |
2675 | fi |
2676 | ||
c52df125 AC |
2677 | # These three variables are undocumented and unsupported, |
2678 | # and are intended to be withdrawn in a future Autoconf release. | |
2679 | # They can cause serious problems if a builder's source tree is in a directory | |
2680 | # whose full name contains unusual characters. | |
2681 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2682 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2683 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
631ef239 | 2684 | |
c52df125 | 2685 | |
eec2776c AJ |
2686 | # Expand $ac_aux_dir to an absolute path. |
2687 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
c52df125 | 2688 | |
eec2776c AJ |
2689 | ac_ext=c |
2690 | ac_cpp='$CPP $CPPFLAGS' | |
2691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2694 | if test -n "$ac_tool_prefix"; then | |
2695 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2696 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2698 | $as_echo_n "checking for $ac_word... " >&6; } | |
2699 | if ${ac_cv_prog_CC+:} false; then : | |
7083c021 | 2700 | $as_echo_n "(cached) " >&6 |
212380e3 | 2701 | else |
eec2776c AJ |
2702 | if test -n "$CC"; then |
2703 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2704 | else | |
2705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2706 | for as_dir in $PATH |
2707 | do | |
2708 | IFS=$as_save_IFS | |
2709 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
2710 | for ac_exec_ext in '' $ac_executable_extensions; do |
2711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2712 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2714 | break 2 | |
2715 | fi | |
2716 | done | |
7083c021 | 2717 | done |
631ef239 | 2718 | IFS=$as_save_IFS |
212380e3 | 2719 | |
212380e3 | 2720 | fi |
7083c021 | 2721 | fi |
eec2776c AJ |
2722 | CC=$ac_cv_prog_CC |
2723 | if test -n "$CC"; then | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2725 | $as_echo "$CC" >&6; } | |
2726 | else | |
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2728 | $as_echo "no" >&6; } | |
2729 | fi | |
212380e3 | 2730 | |
c52df125 | 2731 | |
eec2776c AJ |
2732 | fi |
2733 | if test -z "$ac_cv_prog_CC"; then | |
2734 | ac_ct_CC=$CC | |
2735 | # Extract the first word of "gcc", so it can be a program name with args. | |
2736 | set dummy gcc; ac_word=$2 | |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2738 | $as_echo_n "checking for $ac_word... " >&6; } | |
2739 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2740 | $as_echo_n "(cached) " >&6 | |
2741 | else | |
2742 | if test -n "$ac_ct_CC"; then | |
2743 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2744 | else | |
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2746 | for as_dir in $PATH | |
2747 | do | |
2748 | IFS=$as_save_IFS | |
2749 | test -z "$as_dir" && as_dir=. | |
2750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2752 | ac_cv_prog_ac_ct_CC="gcc" | |
2753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2754 | break 2 | |
2755 | fi | |
2756 | done | |
2757 | done | |
2758 | IFS=$as_save_IFS | |
c52df125 | 2759 | |
eec2776c AJ |
2760 | fi |
2761 | fi | |
2762 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2763 | if test -n "$ac_ct_CC"; then | |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2765 | $as_echo "$ac_ct_CC" >&6; } | |
2766 | else | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2768 | $as_echo "no" >&6; } | |
2769 | fi | |
c52df125 | 2770 | |
eec2776c AJ |
2771 | if test "x$ac_ct_CC" = x; then |
2772 | CC="" | |
2773 | else | |
2774 | case $cross_compiling:$ac_tool_warned in | |
2775 | yes:) | |
2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2777 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2778 | ac_tool_warned=yes ;; | |
c52df125 | 2779 | esac |
eec2776c AJ |
2780 | CC=$ac_ct_CC |
2781 | fi | |
c52df125 | 2782 | else |
eec2776c | 2783 | CC="$ac_cv_prog_CC" |
c52df125 AC |
2784 | fi |
2785 | ||
eec2776c AJ |
2786 | if test -z "$CC"; then |
2787 | if test -n "$ac_tool_prefix"; then | |
2788 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2789 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 AC |
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2791 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2792 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2793 | $as_echo_n "(cached) " >&6 |
212380e3 | 2794 | else |
eec2776c AJ |
2795 | if test -n "$CC"; then |
2796 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 AC |
2797 | else |
2798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2799 | for as_dir in $PATH |
2800 | do | |
2801 | IFS=$as_save_IFS | |
2802 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2803 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2805 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 2806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2807 | break 2 |
2808 | fi | |
2809 | done | |
7083c021 | 2810 | done |
631ef239 | 2811 | IFS=$as_save_IFS |
7083c021 | 2812 | |
212380e3 | 2813 | fi |
7083c021 | 2814 | fi |
eec2776c AJ |
2815 | CC=$ac_cv_prog_CC |
2816 | if test -n "$CC"; then | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2818 | $as_echo "$CC" >&6; } | |
212380e3 | 2819 | else |
7083c021 AC |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2821 | $as_echo "no" >&6; } | |
212380e3 AC |
2822 | fi |
2823 | ||
631ef239 | 2824 | |
eec2776c | 2825 | fi |
7083c021 | 2826 | fi |
eec2776c AJ |
2827 | if test -z "$CC"; then |
2828 | # Extract the first word of "cc", so it can be a program name with args. | |
2829 | set dummy cc; ac_word=$2 | |
7083c021 AC |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2831 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2832 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2833 | $as_echo_n "(cached) " >&6 |
212380e3 | 2834 | else |
eec2776c AJ |
2835 | if test -n "$CC"; then |
2836 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 | 2837 | else |
eec2776c | 2838 | ac_prog_rejected=no |
7083c021 | 2839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2840 | for as_dir in $PATH |
2841 | do | |
2842 | IFS=$as_save_IFS | |
2843 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2844 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c AJ |
2846 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2847 | ac_prog_rejected=yes | |
2848 | continue | |
2849 | fi | |
2850 | ac_cv_prog_CC="cc" | |
7083c021 | 2851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2852 | break 2 |
2853 | fi | |
2854 | done | |
7083c021 | 2855 | done |
631ef239 | 2856 | IFS=$as_save_IFS |
212380e3 | 2857 | |
eec2776c AJ |
2858 | if test $ac_prog_rejected = yes; then |
2859 | # We found a bogon in the path, so make sure we never use it. | |
2860 | set dummy $ac_cv_prog_CC | |
2861 | shift | |
2862 | if test $# != 0; then | |
2863 | # We chose a different compiler from the bogus one. | |
2864 | # However, it has the same basename, so the bogon will be chosen | |
2865 | # first if we set CC to just the basename; use the full file name. | |
2866 | shift | |
2867 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2868 | fi | |
212380e3 | 2869 | fi |
7083c021 | 2870 | fi |
eec2776c AJ |
2871 | fi |
2872 | CC=$ac_cv_prog_CC | |
2873 | if test -n "$CC"; then | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2875 | $as_echo "$CC" >&6; } | |
212380e3 | 2876 | else |
7083c021 AC |
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2878 | $as_echo "no" >&6; } | |
212380e3 AC |
2879 | fi |
2880 | ||
631ef239 | 2881 | |
212380e3 | 2882 | fi |
eec2776c AJ |
2883 | if test -z "$CC"; then |
2884 | if test -n "$ac_tool_prefix"; then | |
2885 | for ac_prog in cl.exe | |
2886 | do | |
2887 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2888 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2890 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2891 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2892 | $as_echo_n "(cached) " >&6 |
212380e3 | 2893 | else |
eec2776c AJ |
2894 | if test -n "$CC"; then |
2895 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2896 | else |
2897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2898 | for as_dir in $PATH | |
2899 | do | |
2900 | IFS=$as_save_IFS | |
2901 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2902 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2904 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 2905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2906 | break 2 |
2907 | fi | |
2908 | done | |
7083c021 | 2909 | done |
631ef239 | 2910 | IFS=$as_save_IFS |
212380e3 AC |
2911 | |
2912 | fi | |
2913 | fi | |
eec2776c AJ |
2914 | CC=$ac_cv_prog_CC |
2915 | if test -n "$CC"; then | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2917 | $as_echo "$CC" >&6; } | |
212380e3 | 2918 | else |
7083c021 AC |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2920 | $as_echo "no" >&6; } | |
212380e3 AC |
2921 | fi |
2922 | ||
631ef239 | 2923 | |
eec2776c AJ |
2924 | test -n "$CC" && break |
2925 | done | |
2926 | fi | |
2927 | if test -z "$CC"; then | |
2928 | ac_ct_CC=$CC | |
2929 | for ac_prog in cl.exe | |
2930 | do | |
2931 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2932 | set dummy $ac_prog; ac_word=$2 | |
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2934 | $as_echo_n "checking for $ac_word... " >&6; } | |
2935 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
c52df125 AC |
2936 | $as_echo_n "(cached) " >&6 |
2937 | else | |
eec2776c AJ |
2938 | if test -n "$ac_ct_CC"; then |
2939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2940 | else | |
2941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2942 | for as_dir in $PATH | |
2943 | do | |
2944 | IFS=$as_save_IFS | |
2945 | test -z "$as_dir" && as_dir=. | |
2946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2948 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2950 | break 2 | |
2951 | fi | |
2952 | done | |
2953 | done | |
2954 | IFS=$as_save_IFS | |
2955 | ||
c52df125 | 2956 | fi |
eec2776c AJ |
2957 | fi |
2958 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2959 | if test -n "$ac_ct_CC"; then | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2961 | $as_echo "$ac_ct_CC" >&6; } | |
c52df125 AC |
2962 | else |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2964 | $as_echo "no" >&6; } | |
c52df125 AC |
2965 | fi |
2966 | ||
c52df125 | 2967 | |
eec2776c AJ |
2968 | test -n "$ac_ct_CC" && break |
2969 | done | |
c52df125 | 2970 | |
eec2776c AJ |
2971 | if test "x$ac_ct_CC" = x; then |
2972 | CC="" | |
2973 | else | |
2974 | case $cross_compiling:$ac_tool_warned in | |
2975 | yes:) | |
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2978 | ac_tool_warned=yes ;; | |
c52df125 | 2979 | esac |
eec2776c | 2980 | CC=$ac_ct_CC |
c52df125 AC |
2981 | fi |
2982 | fi | |
2983 | ||
c52df125 AC |
2984 | fi |
2985 | ||
2986 | ||
eec2776c AJ |
2987 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2988 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2989 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2990 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 2991 | |
eec2776c AJ |
2992 | # Provide some information about the compiler. |
2993 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2994 | set X $ac_compile | |
2995 | ac_compiler=$2 | |
2996 | for ac_option in --version -v -V -qversion; do | |
2997 | { { ac_try="$ac_compiler $ac_option >&5" | |
2998 | case "(($ac_try" in | |
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3000 | *) ac_try_echo=$ac_try;; | |
3001 | esac | |
3002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3003 | $as_echo "$ac_try_echo"; } >&5 | |
3004 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3005 | ac_status=$? | |
3006 | if test -s conftest.err; then | |
3007 | sed '10a\ | |
3008 | ... rest of stderr output deleted ... | |
3009 | 10q' conftest.err >conftest.er1 | |
3010 | cat conftest.er1 >&5 | |
3011 | fi | |
3012 | rm -f conftest.er1 conftest.err | |
3013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3014 | test $ac_status = 0; } | |
3015 | done | |
c52df125 | 3016 | |
eec2776c AJ |
3017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3018 | /* end confdefs.h. */ | |
c52df125 | 3019 | |
eec2776c AJ |
3020 | int |
3021 | main () | |
3022 | { | |
c52df125 | 3023 | |
eec2776c AJ |
3024 | ; |
3025 | return 0; | |
3026 | } | |
c52df125 | 3027 | _ACEOF |
eec2776c AJ |
3028 | ac_clean_files_save=$ac_clean_files |
3029 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3030 | # Try to create an executable without -o first, disregard a.out. | |
3031 | # It will help us diagnose broken compilers, and finding out an intuition | |
3032 | # of exeext. | |
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3034 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3035 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
c52df125 | 3036 | |
eec2776c AJ |
3037 | # The possible output files: |
3038 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
c52df125 | 3039 | |
eec2776c AJ |
3040 | ac_rmfiles= |
3041 | for ac_file in $ac_files | |
3042 | do | |
3043 | case $ac_file in | |
3044 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3045 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3046 | esac | |
3047 | done | |
3048 | rm -f $ac_rmfiles | |
c52df125 | 3049 | |
eec2776c AJ |
3050 | if { { ac_try="$ac_link_default" |
3051 | case "(($ac_try" in | |
3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3053 | *) ac_try_echo=$ac_try;; | |
3054 | esac | |
3055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3056 | $as_echo "$ac_try_echo"; } >&5 | |
3057 | (eval "$ac_link_default") 2>&5 | |
3058 | ac_status=$? | |
3059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3060 | test $ac_status = 0; }; then : | |
3061 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3062 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3063 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3064 | # so that the user can short-circuit this test for compilers unknown to | |
3065 | # Autoconf. | |
3066 | for ac_file in $ac_files '' | |
3067 | do | |
3068 | test -f "$ac_file" || continue | |
3069 | case $ac_file in | |
3070 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3071 | ;; | |
3072 | [ab].out ) | |
3073 | # We found the default executable, but exeext='' is most | |
3074 | # certainly right. | |
3075 | break;; | |
3076 | *.* ) | |
3077 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3078 | then :; else | |
3079 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3080 | fi | |
3081 | # We set ac_cv_exeext here because the later test for it is not | |
3082 | # safe: cross compilers may not add the suffix if given an `-o' | |
3083 | # argument, so we may need to know it at that point already. | |
3084 | # Even if this section looks crufty: it has the advantage of | |
3085 | # actually working. | |
3086 | break;; | |
3087 | * ) | |
3088 | break;; | |
3089 | esac | |
3090 | done | |
3091 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
c52df125 | 3092 | |
eec2776c AJ |
3093 | else |
3094 | ac_file='' | |
3095 | fi | |
3096 | if test -z "$ac_file"; then : | |
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3098 | $as_echo "no" >&6; } | |
3099 | $as_echo "$as_me: failed program was:" >&5 | |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c52df125 | 3101 | |
eec2776c AJ |
3102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3104 | as_fn_error 77 "C compiler cannot create executables | |
3105 | See \`config.log' for more details" "$LINENO" 5; } | |
3106 | else | |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3108 | $as_echo "yes" >&6; } | |
3109 | fi | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3111 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3113 | $as_echo "$ac_file" >&6; } | |
3114 | ac_exeext=$ac_cv_exeext | |
c52df125 | 3115 | |
eec2776c AJ |
3116 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3117 | ac_clean_files=$ac_clean_files_save | |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3119 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3120 | if { { ac_try="$ac_link" | |
3121 | case "(($ac_try" in | |
3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3123 | *) ac_try_echo=$ac_try;; | |
3124 | esac | |
3125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3126 | $as_echo "$ac_try_echo"; } >&5 | |
3127 | (eval "$ac_link") 2>&5 | |
3128 | ac_status=$? | |
3129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3130 | test $ac_status = 0; }; then : | |
3131 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3132 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3133 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3134 | # `rm'. | |
3135 | for ac_file in conftest.exe conftest conftest.*; do | |
3136 | test -f "$ac_file" || continue | |
3137 | case $ac_file in | |
3138 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3139 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3140 | break;; | |
3141 | * ) break;; | |
3142 | esac | |
3143 | done | |
3144 | else | |
3145 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3146 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3147 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3148 | See \`config.log' for more details" "$LINENO" 5; } | |
3149 | fi | |
3150 | rm -f conftest conftest$ac_cv_exeext | |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3152 | $as_echo "$ac_cv_exeext" >&6; } | |
c52df125 | 3153 | |
eec2776c AJ |
3154 | rm -f conftest.$ac_ext |
3155 | EXEEXT=$ac_cv_exeext | |
3156 | ac_exeext=$EXEEXT | |
3157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3158 | /* end confdefs.h. */ | |
3159 | #include <stdio.h> | |
3160 | int | |
3161 | main () | |
3162 | { | |
3163 | FILE *f = fopen ("conftest.out", "w"); | |
3164 | return ferror (f) || fclose (f) != 0; | |
c52df125 | 3165 | |
eec2776c AJ |
3166 | ; |
3167 | return 0; | |
3168 | } | |
3169 | _ACEOF | |
3170 | ac_clean_files="$ac_clean_files conftest.out" | |
3171 | # Check that the compiler produces executables we can run. If not, either | |
3172 | # the compiler is broken, or we cross compile. | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3174 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3175 | if test "$cross_compiling" != yes; then | |
3176 | { { ac_try="$ac_link" | |
3177 | case "(($ac_try" in | |
3178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3179 | *) ac_try_echo=$ac_try;; | |
3180 | esac | |
3181 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3182 | $as_echo "$ac_try_echo"; } >&5 | |
3183 | (eval "$ac_link") 2>&5 | |
3184 | ac_status=$? | |
3185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3186 | test $ac_status = 0; } | |
3187 | if { ac_try='./conftest$ac_cv_exeext' | |
3188 | { { case "(($ac_try" in | |
3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3190 | *) ac_try_echo=$ac_try;; | |
3191 | esac | |
3192 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3193 | $as_echo "$ac_try_echo"; } >&5 | |
3194 | (eval "$ac_try") 2>&5 | |
3195 | ac_status=$? | |
3196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3197 | test $ac_status = 0; }; }; then | |
3198 | cross_compiling=no | |
c52df125 | 3199 | else |
eec2776c AJ |
3200 | if test "$cross_compiling" = maybe; then |
3201 | cross_compiling=yes | |
3202 | else | |
3203 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3204 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3205 | as_fn_error $? "cannot run C compiled programs. | |
3206 | If you meant to cross compile, use \`--host'. | |
3207 | See \`config.log' for more details" "$LINENO" 5; } | |
3208 | fi | |
c52df125 AC |
3209 | fi |
3210 | fi | |
eec2776c AJ |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3212 | $as_echo "$cross_compiling" >&6; } | |
c52df125 | 3213 | |
eec2776c AJ |
3214 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3215 | ac_clean_files=$ac_clean_files_save | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3217 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3218 | if ${ac_cv_objext+:} false; then : | |
c52df125 AC |
3219 | $as_echo_n "(cached) " >&6 |
3220 | else | |
eec2776c AJ |
3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3222 | /* end confdefs.h. */ | |
3223 | ||
3224 | int | |
3225 | main () | |
3226 | { | |
3227 | ||
3228 | ; | |
3229 | return 0; | |
3230 | } | |
3231 | _ACEOF | |
3232 | rm -f conftest.o conftest.obj | |
3233 | if { { ac_try="$ac_compile" | |
3234 | case "(($ac_try" in | |
3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3236 | *) ac_try_echo=$ac_try;; | |
3237 | esac | |
3238 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3239 | $as_echo "$ac_try_echo"; } >&5 | |
3240 | (eval "$ac_compile") 2>&5 | |
3241 | ac_status=$? | |
3242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3243 | test $ac_status = 0; }; then : | |
3244 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3245 | test -f "$ac_file" || continue; | |
3246 | case $ac_file in | |
3247 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3248 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3249 | break;; | |
3250 | esac | |
3251 | done | |
c52df125 | 3252 | else |
eec2776c AJ |
3253 | $as_echo "$as_me: failed program was:" >&5 |
3254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3255 | ||
3256 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3257 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3258 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3259 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 3260 | fi |
eec2776c | 3261 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
c52df125 | 3262 | fi |
eec2776c AJ |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3264 | $as_echo "$ac_cv_objext" >&6; } | |
3265 | OBJEXT=$ac_cv_objext | |
3266 | ac_objext=$OBJEXT | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3268 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3269 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3270 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3271 | else |
eec2776c AJ |
3272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3273 | /* end confdefs.h. */ | |
c52df125 | 3274 | |
eec2776c AJ |
3275 | int |
3276 | main () | |
3277 | { | |
3278 | #ifndef __GNUC__ | |
3279 | choke me | |
3280 | #endif | |
c52df125 | 3281 | |
eec2776c AJ |
3282 | ; |
3283 | return 0; | |
3284 | } | |
3285 | _ACEOF | |
3286 | if ac_fn_c_try_compile "$LINENO"; then : | |
3287 | ac_compiler_gnu=yes | |
3288 | else | |
3289 | ac_compiler_gnu=no | |
c52df125 | 3290 | fi |
eec2776c AJ |
3291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3292 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
c52df125 | 3293 | |
c52df125 | 3294 | fi |
eec2776c AJ |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3296 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3297 | if test $ac_compiler_gnu = yes; then | |
3298 | GCC=yes | |
c52df125 | 3299 | else |
eec2776c | 3300 | GCC= |
c52df125 | 3301 | fi |
eec2776c AJ |
3302 | ac_test_CFLAGS=${CFLAGS+set} |
3303 | ac_save_CFLAGS=$CFLAGS | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3305 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3306 | if ${ac_cv_prog_cc_g+:} false; then : | |
c52df125 AC |
3307 | $as_echo_n "(cached) " >&6 |
3308 | else | |
eec2776c AJ |
3309 | ac_save_c_werror_flag=$ac_c_werror_flag |
3310 | ac_c_werror_flag=yes | |
3311 | ac_cv_prog_cc_g=no | |
3312 | CFLAGS="-g" | |
3313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3314 | /* end confdefs.h. */ | |
c52df125 | 3315 | |
eec2776c AJ |
3316 | int |
3317 | main () | |
3318 | { | |
3319 | ||
3320 | ; | |
3321 | return 0; | |
3322 | } | |
3323 | _ACEOF | |
3324 | if ac_fn_c_try_compile "$LINENO"; then : | |
3325 | ac_cv_prog_cc_g=yes | |
c52df125 | 3326 | else |
eec2776c AJ |
3327 | CFLAGS="" |
3328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3329 | /* end confdefs.h. */ | |
c52df125 | 3330 | |
eec2776c AJ |
3331 | int |
3332 | main () | |
3333 | { | |
3334 | ||
3335 | ; | |
3336 | return 0; | |
3337 | } | |
3338 | _ACEOF | |
3339 | if ac_fn_c_try_compile "$LINENO"; then : | |
c52df125 | 3340 | |
c52df125 | 3341 | else |
eec2776c AJ |
3342 | ac_c_werror_flag=$ac_save_c_werror_flag |
3343 | CFLAGS="-g" | |
3344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3345 | /* end confdefs.h. */ | |
3346 | ||
3347 | int | |
3348 | main () | |
3349 | { | |
c52df125 | 3350 | |
eec2776c AJ |
3351 | ; |
3352 | return 0; | |
3353 | } | |
3354 | _ACEOF | |
3355 | if ac_fn_c_try_compile "$LINENO"; then : | |
3356 | ac_cv_prog_cc_g=yes | |
c52df125 | 3357 | fi |
eec2776c | 3358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3359 | fi |
eec2776c | 3360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3361 | fi |
eec2776c AJ |
3362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3363 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3364 | fi | |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3366 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3367 | if test "$ac_test_CFLAGS" = set; then | |
3368 | CFLAGS=$ac_save_CFLAGS | |
3369 | elif test $ac_cv_prog_cc_g = yes; then | |
3370 | if test "$GCC" = yes; then | |
3371 | CFLAGS="-g -O2" | |
7083c021 | 3372 | else |
eec2776c | 3373 | CFLAGS="-g" |
7083c021 | 3374 | fi |
c52df125 | 3375 | else |
eec2776c AJ |
3376 | if test "$GCC" = yes; then |
3377 | CFLAGS="-O2" | |
3378 | else | |
3379 | CFLAGS= | |
c52df125 | 3380 | fi |
c52df125 | 3381 | fi |
eec2776c AJ |
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3383 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3384 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3385 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3386 | else |
eec2776c AJ |
3387 | ac_cv_prog_cc_c89=no |
3388 | ac_save_CC=$CC | |
3389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3390 | /* end confdefs.h. */ | |
3391 | #include <stdarg.h> | |
3392 | #include <stdio.h> | |
3393 | struct stat; | |
3394 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3395 | struct buf { int x; }; | |
3396 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3397 | static char *e (p, i) | |
3398 | char **p; | |
3399 | int i; | |
3400 | { | |
3401 | return p[i]; | |
3402 | } | |
3403 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3404 | { | |
3405 | char *s; | |
3406 | va_list v; | |
3407 | va_start (v,p); | |
3408 | s = g (p, va_arg (v,int)); | |
3409 | va_end (v); | |
3410 | return s; | |
3411 | } | |
3412 | ||
3413 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3414 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3415 | These don't provoke an error unfortunately, instead are silently treated | |
3416 | as 'x'. The following induces an error, until -std is added to get | |
3417 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3418 | array size at least. It's necessary to write '\x00'==0 to get something | |
3419 | that's true only with -std. */ | |
3420 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
c52df125 | 3421 | |
eec2776c AJ |
3422 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3423 | inside strings and character constants. */ | |
3424 | #define FOO(x) 'x' | |
3425 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
c52df125 | 3426 | |
eec2776c AJ |
3427 | int test (int i, double x); |
3428 | struct s1 {int (*f) (int a);}; | |
3429 | struct s2 {int (*f) (double a);}; | |
3430 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3431 | int argc; | |
3432 | char **argv; | |
3433 | int | |
3434 | main () | |
3435 | { | |
3436 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3437 | ; | |
3438 | return 0; | |
3439 | } | |
3440 | _ACEOF | |
3441 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3442 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c52df125 | 3443 | do |
eec2776c AJ |
3444 | CC="$ac_save_CC $ac_arg" |
3445 | if ac_fn_c_try_compile "$LINENO"; then : | |
3446 | ac_cv_prog_cc_c89=$ac_arg | |
3447 | fi | |
3448 | rm -f core conftest.err conftest.$ac_objext | |
3449 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c52df125 | 3450 | done |
eec2776c AJ |
3451 | rm -f conftest.$ac_ext |
3452 | CC=$ac_save_CC | |
c52df125 | 3453 | |
c52df125 | 3454 | fi |
eec2776c AJ |
3455 | # AC_CACHE_VAL |
3456 | case "x$ac_cv_prog_cc_c89" in | |
3457 | x) | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3459 | $as_echo "none needed" >&6; } ;; | |
3460 | xno) | |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3462 | $as_echo "unsupported" >&6; } ;; | |
3463 | *) | |
3464 | CC="$CC $ac_cv_prog_cc_c89" | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3466 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3467 | esac | |
3468 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3469 | ||
c52df125 AC |
3470 | fi |
3471 | ||
eec2776c AJ |
3472 | ac_ext=c |
3473 | ac_cpp='$CPP $CPPFLAGS' | |
3474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3477 | |
eec2776c AJ |
3478 | ac_ext=c |
3479 | ac_cpp='$CPP $CPPFLAGS' | |
3480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3484 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3485 | if ${am_cv_prog_cc_c_o+:} false; then : | |
c52df125 AC |
3486 | $as_echo_n "(cached) " >&6 |
3487 | else | |
eec2776c AJ |
3488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3489 | /* end confdefs.h. */ | |
c52df125 | 3490 | |
eec2776c AJ |
3491 | int |
3492 | main () | |
3493 | { | |
3494 | ||
3495 | ; | |
3496 | return 0; | |
3497 | } | |
3498 | _ACEOF | |
3499 | # Make sure it works both with $CC and with simple cc. | |
3500 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3501 | # compilers refuse to overwrite an existing .o file with -o, | |
3502 | # though they will create one. | |
3503 | am_cv_prog_cc_c_o=yes | |
3504 | for am_i in 1 2; do | |
3505 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3506 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3507 | ac_status=$? | |
3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3509 | (exit $ac_status); } \ | |
3510 | && test -f conftest2.$ac_objext; then | |
3511 | : OK | |
3512 | else | |
3513 | am_cv_prog_cc_c_o=no | |
3514 | break | |
3515 | fi | |
3516 | done | |
3517 | rm -f core conftest* | |
3518 | unset am_i | |
c52df125 | 3519 | fi |
eec2776c AJ |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3521 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3522 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3523 | # Losing compiler, so override with the script. | |
3524 | # FIXME: It is wrong to rewrite CC. | |
3525 | # But if we don't then we get into trouble of one sort or another. | |
3526 | # A longer-term fix would be to have automake use am__CC in this case, | |
3527 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3528 | CC="$am_aux_dir/compile $CC" | |
c52df125 | 3529 | fi |
eec2776c AJ |
3530 | ac_ext=c |
3531 | ac_cpp='$CPP $CPPFLAGS' | |
3532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
3535 | |
3536 | ||
eec2776c AJ |
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3538 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3539 | if ${ac_cv_prog_cc_c99+:} false; then : | |
c52df125 AC |
3540 | $as_echo_n "(cached) " >&6 |
3541 | else | |
eec2776c AJ |
3542 | ac_cv_prog_cc_c99=no |
3543 | ac_save_CC=$CC | |
3544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3545 | /* end confdefs.h. */ | |
3546 | #include <stdarg.h> | |
3547 | #include <stdbool.h> | |
3548 | #include <stdlib.h> | |
3549 | #include <wchar.h> | |
3550 | #include <stdio.h> | |
c52df125 | 3551 | |
eec2776c AJ |
3552 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
3553 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3554 | #define showlist(...) puts (#__VA_ARGS__) | |
3555 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3556 | static void | |
3557 | test_varargs_macros (void) | |
3558 | { | |
3559 | int x = 1234; | |
3560 | int y = 5678; | |
3561 | debug ("Flag"); | |
3562 | debug ("X = %d\n", x); | |
3563 | showlist (The first, second, and third items.); | |
3564 | report (x>y, "x is %d but y is %d", x, y); | |
3565 | } | |
c52df125 | 3566 | |
eec2776c AJ |
3567 | // Check long long types. |
3568 | #define BIG64 18446744073709551615ull | |
3569 | #define BIG32 4294967295ul | |
3570 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3571 | #if !BIG_OK | |
3572 | your preprocessor is broken; | |
3573 | #endif | |
3574 | #if BIG_OK | |
3575 | #else | |
3576 | your preprocessor is broken; | |
3577 | #endif | |
3578 | static long long int bignum = -9223372036854775807LL; | |
3579 | static unsigned long long int ubignum = BIG64; | |
c52df125 | 3580 | |
eec2776c AJ |
3581 | struct incomplete_array |
3582 | { | |
3583 | int datasize; | |
3584 | double data[]; | |
3585 | }; | |
c52df125 | 3586 | |
eec2776c AJ |
3587 | struct named_init { |
3588 | int number; | |
3589 | const wchar_t *name; | |
3590 | double average; | |
3591 | }; | |
c52df125 | 3592 | |
eec2776c | 3593 | typedef const char *ccp; |
c52df125 | 3594 | |
eec2776c AJ |
3595 | static inline int |
3596 | test_restrict (ccp restrict text) | |
3597 | { | |
3598 | // See if C++-style comments work. | |
3599 | // Iterate through items via the restricted pointer. | |
3600 | // Also check for declarations in for loops. | |
3601 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3602 | continue; | |
3603 | return 0; | |
3604 | } | |
c52df125 | 3605 | |
eec2776c AJ |
3606 | // Check varargs and va_copy. |
3607 | static void | |
3608 | test_varargs (const char *format, ...) | |
3609 | { | |
3610 | va_list args; | |
3611 | va_start (args, format); | |
3612 | va_list args_copy; | |
3613 | va_copy (args_copy, args); | |
c52df125 | 3614 | |
eec2776c AJ |
3615 | const char *str; |
3616 | int number; | |
3617 | float fnumber; | |
3618 | ||
3619 | while (*format) | |
3620 | { | |
3621 | switch (*format++) | |
3622 | { | |
3623 | case 's': // string | |
3624 | str = va_arg (args_copy, const char *); | |
3625 | break; | |
3626 | case 'd': // int | |
3627 | number = va_arg (args_copy, int); | |
3628 | break; | |
3629 | case 'f': // float | |
3630 | fnumber = va_arg (args_copy, double); | |
3631 | break; | |
3632 | default: | |
3633 | break; | |
3634 | } | |
3635 | } | |
3636 | va_end (args_copy); | |
3637 | va_end (args); | |
3638 | } | |
c52df125 AC |
3639 | |
3640 | int | |
3641 | main () | |
3642 | { | |
3643 | ||
eec2776c AJ |
3644 | // Check bool. |
3645 | _Bool success = false; | |
3646 | ||
3647 | // Check restrict. | |
3648 | if (test_restrict ("String literal") == 0) | |
3649 | success = true; | |
3650 | char *restrict newvar = "Another string"; | |
3651 | ||
3652 | // Check varargs. | |
3653 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3654 | test_varargs_macros (); | |
3655 | ||
3656 | // Check flexible array members. | |
3657 | struct incomplete_array *ia = | |
3658 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3659 | ia->datasize = 10; | |
3660 | for (int i = 0; i < ia->datasize; ++i) | |
3661 | ia->data[i] = i * 1.234; | |
3662 | ||
3663 | // Check named initializers. | |
3664 | struct named_init ni = { | |
3665 | .number = 34, | |
3666 | .name = L"Test wide string", | |
3667 | .average = 543.34343, | |
3668 | }; | |
3669 | ||
3670 | ni.number = 58; | |
3671 | ||
3672 | int dynamic_array[ni.number]; | |
3673 | dynamic_array[ni.number - 1] = 543; | |
3674 | ||
3675 | // work around unused variable warnings | |
3676 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3677 | || dynamic_array[ni.number - 1] != 543); | |
3678 | ||
c52df125 AC |
3679 | ; |
3680 | return 0; | |
3681 | } | |
3682 | _ACEOF | |
eec2776c | 3683 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
c52df125 | 3684 | do |
eec2776c AJ |
3685 | CC="$ac_save_CC $ac_arg" |
3686 | if ac_fn_c_try_compile "$LINENO"; then : | |
3687 | ac_cv_prog_cc_c99=$ac_arg | |
3688 | fi | |
3689 | rm -f core conftest.err conftest.$ac_objext | |
3690 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
c52df125 | 3691 | done |
eec2776c AJ |
3692 | rm -f conftest.$ac_ext |
3693 | CC=$ac_save_CC | |
c52df125 | 3694 | |
c52df125 | 3695 | fi |
eec2776c AJ |
3696 | # AC_CACHE_VAL |
3697 | case "x$ac_cv_prog_cc_c99" in | |
3698 | x) | |
3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3700 | $as_echo "none needed" >&6; } ;; | |
3701 | xno) | |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3703 | $as_echo "unsupported" >&6; } ;; | |
3704 | *) | |
3705 | CC="$CC $ac_cv_prog_cc_c99" | |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3707 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
c52df125 | 3708 | esac |
eec2776c AJ |
3709 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
3710 | ||
c52df125 | 3711 | fi |
c52df125 | 3712 | |
c52df125 | 3713 | |
c52df125 | 3714 | |
eec2776c AJ |
3715 | ac_ext=c |
3716 | ac_cpp='$CPP $CPPFLAGS' | |
3717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3721 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3722 | # On Suns, sometimes $CPP names a directory. | |
3723 | if test -n "$CPP" && test -d "$CPP"; then | |
3724 | CPP= | |
3725 | fi | |
3726 | if test -z "$CPP"; then | |
3727 | if ${ac_cv_prog_CPP+:} false; then : | |
c52df125 AC |
3728 | $as_echo_n "(cached) " >&6 |
3729 | else | |
eec2776c AJ |
3730 | # Double quotes because CPP needs to be expanded |
3731 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3732 | do | |
3733 | ac_preproc_ok=false | |
3734 | for ac_c_preproc_warn_flag in '' yes | |
3735 | do | |
3736 | # Use a header file that comes with gcc, so configuring glibc | |
3737 | # with a fresh cross-compiler works. | |
3738 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3739 | # <limits.h> exists even on freestanding compilers. | |
3740 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3741 | # not just through cpp. "Syntax error" is here to catch this case. | |
c52df125 AC |
3742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3743 | /* end confdefs.h. */ | |
eec2776c AJ |
3744 | #ifdef __STDC__ |
3745 | # include <limits.h> | |
3746 | #else | |
3747 | # include <assert.h> | |
3748 | #endif | |
3749 | Syntax error | |
c52df125 | 3750 | _ACEOF |
eec2776c | 3751 | if ac_fn_c_try_cpp "$LINENO"; then : |
c52df125 | 3752 | |
c52df125 | 3753 | else |
eec2776c AJ |
3754 | # Broken: fails on valid input. |
3755 | continue | |
3756 | fi | |
3757 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3758 | ||
3759 | # OK, works on sane cases. Now check whether nonexistent headers | |
3760 | # can be detected and how. | |
c52df125 AC |
3761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3762 | /* end confdefs.h. */ | |
eec2776c | 3763 | #include <ac_nonexistent.h> |
c52df125 | 3764 | _ACEOF |
eec2776c AJ |
3765 | if ac_fn_c_try_cpp "$LINENO"; then : |
3766 | # Broken: success on invalid input. | |
3767 | continue | |
c52df125 | 3768 | else |
eec2776c AJ |
3769 | # Passes both tests. |
3770 | ac_preproc_ok=: | |
3771 | break | |
c52df125 | 3772 | fi |
eec2776c | 3773 | rm -f conftest.err conftest.i conftest.$ac_ext |
c52df125 | 3774 | |
eec2776c AJ |
3775 | done |
3776 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3777 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3778 | if $ac_preproc_ok; then : | |
3779 | break | |
c52df125 | 3780 | fi |
eec2776c AJ |
3781 | |
3782 | done | |
3783 | ac_cv_prog_CPP=$CPP | |
3784 | ||
c52df125 | 3785 | fi |
eec2776c | 3786 | CPP=$ac_cv_prog_CPP |
c52df125 | 3787 | else |
eec2776c AJ |
3788 | ac_cv_prog_CPP=$CPP |
3789 | fi | |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3791 | $as_echo "$CPP" >&6; } | |
3792 | ac_preproc_ok=false | |
3793 | for ac_c_preproc_warn_flag in '' yes | |
3794 | do | |
3795 | # Use a header file that comes with gcc, so configuring glibc | |
3796 | # with a fresh cross-compiler works. | |
3797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3798 | # <limits.h> exists even on freestanding compilers. | |
3799 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3800 | # not just through cpp. "Syntax error" is here to catch this case. | |
3801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3802 | /* end confdefs.h. */ |
eec2776c AJ |
3803 | #ifdef __STDC__ |
3804 | # include <limits.h> | |
3805 | #else | |
3806 | # include <assert.h> | |
3807 | #endif | |
3808 | Syntax error | |
3809 | _ACEOF | |
3810 | if ac_fn_c_try_cpp "$LINENO"; then : | |
c52df125 | 3811 | |
eec2776c AJ |
3812 | else |
3813 | # Broken: fails on valid input. | |
3814 | continue | |
3815 | fi | |
3816 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3817 | |
eec2776c AJ |
3818 | # OK, works on sane cases. Now check whether nonexistent headers |
3819 | # can be detected and how. | |
3820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3821 | /* end confdefs.h. */ | |
3822 | #include <ac_nonexistent.h> | |
c52df125 | 3823 | _ACEOF |
eec2776c AJ |
3824 | if ac_fn_c_try_cpp "$LINENO"; then : |
3825 | # Broken: success on invalid input. | |
3826 | continue | |
c52df125 | 3827 | else |
eec2776c AJ |
3828 | # Passes both tests. |
3829 | ac_preproc_ok=: | |
3830 | break | |
3831 | fi | |
3832 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3833 | |
eec2776c AJ |
3834 | done |
3835 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3836 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3837 | if $ac_preproc_ok; then : | |
3838 | ||
3839 | else | |
3840 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3841 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3842 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3843 | See \`config.log' for more details" "$LINENO" 5; } | |
3844 | fi | |
3845 | ||
3846 | ac_ext=c | |
3847 | ac_cpp='$CPP $CPPFLAGS' | |
3848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3851 | |
c52df125 | 3852 | |
eec2776c AJ |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3854 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3855 | if ${ac_cv_path_GREP+:} false; then : | |
3856 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3857 | else |
eec2776c AJ |
3858 | if test -z "$GREP"; then |
3859 | ac_path_GREP_found=false | |
3860 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3862 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3863 | do | |
3864 | IFS=$as_save_IFS | |
3865 | test -z "$as_dir" && as_dir=. | |
3866 | for ac_prog in grep ggrep; do | |
3867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3868 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3869 | as_fn_executable_p "$ac_path_GREP" || continue | |
3870 | # Check for GNU ac_path_GREP and select it if it is found. | |
3871 | # Check for GNU $ac_path_GREP | |
3872 | case `"$ac_path_GREP" --version 2>&1` in | |
3873 | *GNU*) | |
3874 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3875 | *) | |
3876 | ac_count=0 | |
3877 | $as_echo_n 0123456789 >"conftest.in" | |
3878 | while : | |
3879 | do | |
3880 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3881 | mv "conftest.tmp" "conftest.in" | |
3882 | cp "conftest.in" "conftest.nl" | |
3883 | $as_echo 'GREP' >> "conftest.nl" | |
3884 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3885 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3886 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3887 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3888 | # Best one so far, save it but keep looking for a better one | |
3889 | ac_cv_path_GREP="$ac_path_GREP" | |
3890 | ac_path_GREP_max=$ac_count | |
3891 | fi | |
3892 | # 10*(2^10) chars as input seems more than enough | |
3893 | test $ac_count -gt 10 && break | |
3894 | done | |
3895 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3896 | esac | |
3897 | ||
3898 | $ac_path_GREP_found && break 3 | |
3899 | done | |
3900 | done | |
3901 | done | |
3902 | IFS=$as_save_IFS | |
3903 | if test -z "$ac_cv_path_GREP"; then | |
3904 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3905 | fi | |
3906 | else | |
3907 | ac_cv_path_GREP=$GREP | |
3908 | fi | |
3909 | ||
3910 | fi | |
3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3912 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3913 | GREP="$ac_cv_path_GREP" | |
3914 | ||
3915 | ||
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3917 | $as_echo_n "checking for egrep... " >&6; } | |
3918 | if ${ac_cv_path_EGREP+:} false; then : | |
3919 | $as_echo_n "(cached) " >&6 | |
3920 | else | |
3921 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3922 | then ac_cv_path_EGREP="$GREP -E" | |
3923 | else | |
3924 | if test -z "$EGREP"; then | |
3925 | ac_path_EGREP_found=false | |
3926 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3928 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3929 | do | |
3930 | IFS=$as_save_IFS | |
3931 | test -z "$as_dir" && as_dir=. | |
3932 | for ac_prog in egrep; do | |
3933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3934 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3935 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3936 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3937 | # Check for GNU $ac_path_EGREP | |
3938 | case `"$ac_path_EGREP" --version 2>&1` in | |
3939 | *GNU*) | |
3940 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3941 | *) | |
3942 | ac_count=0 | |
3943 | $as_echo_n 0123456789 >"conftest.in" | |
3944 | while : | |
3945 | do | |
3946 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3947 | mv "conftest.tmp" "conftest.in" | |
3948 | cp "conftest.in" "conftest.nl" | |
3949 | $as_echo 'EGREP' >> "conftest.nl" | |
3950 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3951 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3952 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3953 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3954 | # Best one so far, save it but keep looking for a better one | |
3955 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3956 | ac_path_EGREP_max=$ac_count | |
3957 | fi | |
3958 | # 10*(2^10) chars as input seems more than enough | |
3959 | test $ac_count -gt 10 && break | |
3960 | done | |
3961 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3962 | esac | |
3963 | ||
3964 | $ac_path_EGREP_found && break 3 | |
3965 | done | |
3966 | done | |
3967 | done | |
3968 | IFS=$as_save_IFS | |
3969 | if test -z "$ac_cv_path_EGREP"; then | |
3970 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3971 | fi | |
3972 | else | |
3973 | ac_cv_path_EGREP=$EGREP | |
3974 | fi | |
3975 | ||
3976 | fi | |
3977 | fi | |
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3979 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3980 | EGREP="$ac_cv_path_EGREP" | |
3981 | ||
3982 | ||
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3984 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3985 | if ${ac_cv_header_stdc+:} false; then : | |
3986 | $as_echo_n "(cached) " >&6 | |
3987 | else | |
3988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3989 | /* end confdefs.h. */ |
eec2776c AJ |
3990 | #include <stdlib.h> |
3991 | #include <stdarg.h> | |
3992 | #include <string.h> | |
3993 | #include <float.h> | |
c52df125 AC |
3994 | |
3995 | int | |
3996 | main () | |
3997 | { | |
3998 | ||
3999 | ; | |
4000 | return 0; | |
4001 | } | |
4002 | _ACEOF | |
4003 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c AJ |
4004 | ac_cv_header_stdc=yes |
4005 | else | |
4006 | ac_cv_header_stdc=no | |
c52df125 AC |
4007 | fi |
4008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
4009 | |
4010 | if test $ac_cv_header_stdc = yes; then | |
4011 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4013 | /* end confdefs.h. */ | |
4014 | #include <string.h> | |
4015 | ||
4016 | _ACEOF | |
4017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4018 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4019 | ||
4020 | else | |
4021 | ac_cv_header_stdc=no | |
c52df125 | 4022 | fi |
eec2776c AJ |
4023 | rm -f conftest* |
4024 | ||
c52df125 | 4025 | fi |
eec2776c AJ |
4026 | |
4027 | if test $ac_cv_header_stdc = yes; then | |
4028 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 4030 | /* end confdefs.h. */ |
eec2776c | 4031 | #include <stdlib.h> |
c52df125 | 4032 | |
eec2776c AJ |
4033 | _ACEOF |
4034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4035 | $EGREP "free" >/dev/null 2>&1; then : | |
c52df125 | 4036 | |
eec2776c AJ |
4037 | else |
4038 | ac_cv_header_stdc=no | |
4039 | fi | |
4040 | rm -f conftest* | |
c52df125 | 4041 | |
eec2776c AJ |
4042 | fi |
4043 | ||
4044 | if test $ac_cv_header_stdc = yes; then | |
4045 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4046 | if test "$cross_compiling" = yes; then : | |
4047 | : | |
4048 | else | |
4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4050 | /* end confdefs.h. */ | |
4051 | #include <ctype.h> | |
4052 | #include <stdlib.h> | |
4053 | #if ((' ' & 0x0FF) == 0x020) | |
4054 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4055 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4056 | #else | |
4057 | # define ISLOWER(c) \ | |
4058 | (('a' <= (c) && (c) <= 'i') \ | |
4059 | || ('j' <= (c) && (c) <= 'r') \ | |
4060 | || ('s' <= (c) && (c) <= 'z')) | |
4061 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4062 | #endif | |
4063 | ||
4064 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
c52df125 AC |
4065 | int |
4066 | main () | |
4067 | { | |
eec2776c AJ |
4068 | int i; |
4069 | for (i = 0; i < 256; i++) | |
4070 | if (XOR (islower (i), ISLOWER (i)) | |
4071 | || toupper (i) != TOUPPER (i)) | |
4072 | return 2; | |
c52df125 AC |
4073 | return 0; |
4074 | } | |
4075 | _ACEOF | |
eec2776c AJ |
4076 | if ac_fn_c_try_run "$LINENO"; then : |
4077 | ||
4078 | else | |
4079 | ac_cv_header_stdc=no | |
4080 | fi | |
4081 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4082 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c52df125 | 4083 | fi |
c52df125 AC |
4084 | |
4085 | fi | |
eec2776c AJ |
4086 | fi |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4088 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4089 | if test $ac_cv_header_stdc = yes; then | |
4090 | ||
4091 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
c52df125 AC |
4092 | |
4093 | fi | |
4094 | ||
eec2776c AJ |
4095 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4096 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4097 | inttypes.h stdint.h unistd.h | |
4098 | do : | |
4099 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4100 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4101 | " | |
4102 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4103 | cat >>confdefs.h <<_ACEOF | |
4104 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4105 | _ACEOF | |
c52df125 | 4106 | |
eec2776c AJ |
4107 | fi |
4108 | ||
4109 | done | |
4110 | ||
4111 | ||
4112 | ||
4113 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4114 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4115 | MINIX=yes | |
4116 | else | |
4117 | MINIX= | |
4118 | fi | |
4119 | ||
4120 | ||
4121 | if test "$MINIX" = yes; then | |
4122 | ||
4123 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4124 | ||
4125 | ||
4126 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4127 | ||
4128 | ||
4129 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4130 | ||
4131 | fi | |
4132 | ||
4133 | ||
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4135 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4136 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
c52df125 AC |
4137 | $as_echo_n "(cached) " >&6 |
4138 | else | |
4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4140 | /* end confdefs.h. */ | |
4141 | ||
eec2776c AJ |
4142 | # define __EXTENSIONS__ 1 |
4143 | $ac_includes_default | |
c52df125 AC |
4144 | int |
4145 | main () | |
4146 | { | |
4147 | ||
4148 | ; | |
4149 | return 0; | |
4150 | } | |
4151 | _ACEOF | |
eec2776c AJ |
4152 | if ac_fn_c_try_compile "$LINENO"; then : |
4153 | ac_cv_safe_to_define___extensions__=yes | |
4154 | else | |
4155 | ac_cv_safe_to_define___extensions__=no | |
c52df125 | 4156 | fi |
eec2776c | 4157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 4158 | fi |
eec2776c AJ |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4160 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4161 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4162 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
c52df125 | 4163 | |
eec2776c | 4164 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c52df125 | 4165 | |
eec2776c | 4166 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c52df125 | 4167 | |
eec2776c | 4168 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c52df125 | 4169 | |
eec2776c | 4170 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c52df125 | 4171 | |
c52df125 | 4172 | |
c52df125 | 4173 | |
c52df125 | 4174 | |
c52df125 | 4175 | |
c52df125 | 4176 | |
eec2776c | 4177 | ac_config_headers="$ac_config_headers include/setup.h" |
c52df125 AC |
4178 | |
4179 | ||
eec2776c AJ |
4180 | |
4181 | subdirs="$subdirs libratbox" | |
4182 | ||
4183 | ac_aux_dir= | |
4184 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
4185 | if test -f "$ac_dir/install-sh"; then | |
4186 | ac_aux_dir=$ac_dir | |
4187 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4188 | break | |
4189 | elif test -f "$ac_dir/install.sh"; then | |
4190 | ac_aux_dir=$ac_dir | |
4191 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4192 | break | |
4193 | elif test -f "$ac_dir/shtool"; then | |
4194 | ac_aux_dir=$ac_dir | |
4195 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4196 | break | |
c52df125 AC |
4197 | fi |
4198 | done | |
eec2776c AJ |
4199 | if test -z "$ac_aux_dir"; then |
4200 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
c52df125 AC |
4201 | fi |
4202 | ||
eec2776c AJ |
4203 | # These three variables are undocumented and unsupported, |
4204 | # and are intended to be withdrawn in a future Autoconf release. | |
4205 | # They can cause serious problems if a builder's source tree is in a directory | |
4206 | # whose full name contains unusual characters. | |
4207 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4208 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4209 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4210 | ||
c52df125 | 4211 | |
eec2776c AJ |
4212 | |
4213 | ||
4214 | am__api_version='1.15' | |
4215 | ||
4216 | # Find a good install program. We prefer a C program (faster), | |
4217 | # so one script is as good as another. But avoid the broken or | |
4218 | # incompatible versions: | |
4219 | # SysV /etc/install, /usr/sbin/install | |
4220 | # SunOS /usr/etc/install | |
4221 | # IRIX /sbin/install | |
4222 | # AIX /bin/install | |
4223 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4224 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4225 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4226 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4227 | # OS/2's system install, which has a completely different semantic | |
4228 | # ./install, which can be erroneously created by make from ./install.sh. | |
4229 | # Reject install programs that cannot install multiple files. | |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4231 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4232 | if test -z "$INSTALL"; then | |
4233 | if ${ac_cv_path_install+:} false; then : | |
c52df125 AC |
4234 | $as_echo_n "(cached) " >&6 |
4235 | else | |
eec2776c | 4236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c52df125 AC |
4237 | for as_dir in $PATH |
4238 | do | |
4239 | IFS=$as_save_IFS | |
4240 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
4241 | # Account for people who put trailing slashes in PATH elements. |
4242 | case $as_dir/ in #(( | |
4243 | ./ | .// | /[cC]/* | \ | |
4244 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4245 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4246 | /usr/ucb/* ) ;; | |
4247 | *) | |
4248 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4249 | # Don't use installbsd from OSF since it installs stuff as root | |
4250 | # by default. | |
4251 | for ac_prog in ginstall scoinst install; do | |
4252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4253 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4254 | if test $ac_prog = install && | |
4255 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4256 | # AIX install. It has an incompatible calling convention. | |
4257 | : | |
4258 | elif test $ac_prog = install && | |
4259 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4260 | # program-specific install script used by HP pwplus--don't use. | |
4261 | : | |
4262 | else | |
4263 | rm -rf conftest.one conftest.two conftest.dir | |
4264 | echo one > conftest.one | |
4265 | echo two > conftest.two | |
4266 | mkdir conftest.dir | |
4267 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4268 | test -s conftest.one && test -s conftest.two && | |
4269 | test -s conftest.dir/conftest.one && | |
4270 | test -s conftest.dir/conftest.two | |
4271 | then | |
4272 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4273 | break 3 | |
4274 | fi | |
4275 | fi | |
4276 | fi | |
4277 | done | |
4278 | done | |
4279 | ;; | |
4280 | esac | |
4281 | ||
c52df125 AC |
4282 | done |
4283 | IFS=$as_save_IFS | |
4284 | ||
eec2776c AJ |
4285 | rm -rf conftest.one conftest.two conftest.dir |
4286 | ||
c52df125 | 4287 | fi |
eec2776c AJ |
4288 | if test "${ac_cv_path_install+set}" = set; then |
4289 | INSTALL=$ac_cv_path_install | |
4290 | else | |
4291 | # As a last resort, use the slow shell script. Don't cache a | |
4292 | # value for INSTALL within a source directory, because that will | |
4293 | # break other packages using the cache if that directory is | |
4294 | # removed, or if the value is a relative name. | |
4295 | INSTALL=$ac_install_sh | |
4296 | fi | |
4297 | fi | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4299 | $as_echo "$INSTALL" >&6; } | |
4300 | ||
4301 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4302 | # It thinks the first close brace ends the variable substitution. | |
4303 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4304 | ||
4305 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4306 | ||
4307 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4308 | ||
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4310 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4311 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4312 | # name. Accept space and tab only in the latter. | |
4313 | am_lf=' | |
4314 | ' | |
4315 | case `pwd` in | |
4316 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4317 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4318 | esac | |
4319 | case $srcdir in | |
4320 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4321 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4322 | esac | |
4323 | ||
4324 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4325 | # arguments. Must try -L first in case configure is actually a | |
4326 | # symlink; some systems play weird games with the mod time of symlinks | |
4327 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4328 | # directory). | |
4329 | if ( | |
4330 | am_has_slept=no | |
4331 | for am_try in 1 2; do | |
4332 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4333 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4334 | if test "$*" = "X"; then | |
4335 | # -L didn't work. | |
4336 | set X `ls -t "$srcdir/configure" conftest.file` | |
4337 | fi | |
4338 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4339 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4340 | ||
4341 | # If neither matched, then we have a broken ls. This can happen | |
4342 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4343 | # broken ls alias from the environment. This has actually | |
4344 | # happened. Such a system could not be considered "sane". | |
4345 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4346 | alias in your environment" "$LINENO" 5 | |
4347 | fi | |
4348 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4349 | break | |
4350 | fi | |
4351 | # Just in case. | |
4352 | sleep 1 | |
4353 | am_has_slept=yes | |
4354 | done | |
4355 | test "$2" = conftest.file | |
4356 | ) | |
4357 | then | |
4358 | # Ok. | |
4359 | : | |
4360 | else | |
4361 | as_fn_error $? "newly created file is older than distributed files! | |
4362 | Check your system clock" "$LINENO" 5 | |
4363 | fi | |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4365 | $as_echo "yes" >&6; } | |
4366 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4367 | # generated files are strictly newer. | |
4368 | am_sleep_pid= | |
4369 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4370 | ( sleep 1 ) & | |
4371 | am_sleep_pid=$! | |
4372 | fi | |
4373 | ||
4374 | rm -f conftest.file | |
4375 | ||
4376 | test "$program_prefix" != NONE && | |
4377 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4378 | # Use a double $ so make ignores it. | |
4379 | test "$program_suffix" != NONE && | |
4380 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4381 | # Double any \ or $. | |
4382 | # By default was `s,x,x', remove it if useless. | |
4383 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4384 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4385 | ||
4386 | if test x"${MISSING+set}" != xset; then | |
4387 | case $am_aux_dir in | |
4388 | *\ * | *\ *) | |
4389 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4390 | *) | |
4391 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4392 | esac | |
4393 | fi | |
4394 | # Use eval to expand $SHELL | |
4395 | if eval "$MISSING --is-lightweight"; then | |
4396 | am_missing_run="$MISSING " | |
4397 | else | |
4398 | am_missing_run= | |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4400 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4401 | fi | |
4402 | ||
4403 | if test x"${install_sh+set}" != xset; then | |
4404 | case $am_aux_dir in | |
4405 | *\ * | *\ *) | |
4406 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4407 | *) | |
4408 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4409 | esac | |
4410 | fi | |
4411 | ||
4412 | # Installed binaries are usually stripped using 'strip' when the user | |
4413 | # run "make install-strip". However 'strip' might not be the right | |
4414 | # tool to use in cross-compilation environments, therefore Automake | |
4415 | # will honor the 'STRIP' environment variable to overrule this program. | |
4416 | if test "$cross_compiling" != no; then | |
4417 | if test -n "$ac_tool_prefix"; then | |
4418 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4419 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4421 | $as_echo_n "checking for $ac_word... " >&6; } | |
4422 | if ${ac_cv_prog_STRIP+:} false; then : | |
4423 | $as_echo_n "(cached) " >&6 | |
4424 | else | |
4425 | if test -n "$STRIP"; then | |
4426 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4427 | else | |
4428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4429 | for as_dir in $PATH | |
4430 | do | |
4431 | IFS=$as_save_IFS | |
4432 | test -z "$as_dir" && as_dir=. | |
4433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4435 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4437 | break 2 | |
4438 | fi | |
4439 | done | |
4440 | done | |
4441 | IFS=$as_save_IFS | |
4442 | ||
4443 | fi | |
4444 | fi | |
4445 | STRIP=$ac_cv_prog_STRIP | |
4446 | if test -n "$STRIP"; then | |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4448 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
4449 | else |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4451 | $as_echo "no" >&6; } | |
4452 | fi | |
4453 | ||
4454 | ||
eec2776c AJ |
4455 | fi |
4456 | if test -z "$ac_cv_prog_STRIP"; then | |
4457 | ac_ct_STRIP=$STRIP | |
4458 | # Extract the first word of "strip", so it can be a program name with args. | |
4459 | set dummy strip; ac_word=$2 | |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4461 | $as_echo_n "checking for $ac_word... " >&6; } | |
4462 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4463 | $as_echo_n "(cached) " >&6 | |
4464 | else | |
4465 | if test -n "$ac_ct_STRIP"; then | |
4466 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4467 | else | |
4468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4469 | for as_dir in $PATH | |
4470 | do | |
4471 | IFS=$as_save_IFS | |
4472 | test -z "$as_dir" && as_dir=. | |
4473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4475 | ac_cv_prog_ac_ct_STRIP="strip" | |
4476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4477 | break 2 | |
4478 | fi | |
c52df125 | 4479 | done |
eec2776c AJ |
4480 | done |
4481 | IFS=$as_save_IFS | |
c52df125 | 4482 | |
eec2776c AJ |
4483 | fi |
4484 | fi | |
4485 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4486 | if test -n "$ac_ct_STRIP"; then | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4488 | $as_echo "$ac_ct_STRIP" >&6; } | |
4489 | else | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4491 | $as_echo "no" >&6; } | |
4492 | fi | |
4493 | ||
4494 | if test "x$ac_ct_STRIP" = x; then | |
4495 | STRIP=":" | |
c52df125 AC |
4496 | else |
4497 | case $cross_compiling:$ac_tool_warned in | |
4498 | yes:) | |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4500 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4501 | ac_tool_warned=yes ;; | |
4502 | esac | |
eec2776c | 4503 | STRIP=$ac_ct_STRIP |
c52df125 | 4504 | fi |
eec2776c AJ |
4505 | else |
4506 | STRIP="$ac_cv_prog_STRIP" | |
c52df125 AC |
4507 | fi |
4508 | ||
eec2776c AJ |
4509 | fi |
4510 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
c52df125 | 4511 | |
eec2776c AJ |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4513 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4514 | if test -z "$MKDIR_P"; then | |
4515 | if ${ac_cv_path_mkdir+:} false; then : | |
c52df125 AC |
4516 | $as_echo_n "(cached) " >&6 |
4517 | else | |
eec2776c AJ |
4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4519 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4520 | do | |
4521 | IFS=$as_save_IFS | |
4522 | test -z "$as_dir" && as_dir=. | |
4523 | for ac_prog in mkdir gmkdir; do | |
4524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4525 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4526 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4527 | 'mkdir (GNU coreutils) '* | \ | |
4528 | 'mkdir (coreutils) '* | \ | |
4529 | 'mkdir (fileutils) '4.1*) | |
4530 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4531 | break 3;; | |
4532 | esac | |
4533 | done | |
4534 | done | |
4535 | done | |
4536 | IFS=$as_save_IFS | |
c52df125 | 4537 | |
eec2776c | 4538 | fi |
c52df125 | 4539 | |
eec2776c AJ |
4540 | test -d ./--version && rmdir ./--version |
4541 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4542 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4543 | else | |
4544 | # As a last resort, use the slow shell script. Don't cache a | |
4545 | # value for MKDIR_P within a source directory, because that will | |
4546 | # break other packages using the cache if that directory is | |
4547 | # removed, or if the value is a relative name. | |
4548 | MKDIR_P="$ac_install_sh -d" | |
4549 | fi | |
c52df125 | 4550 | fi |
eec2776c AJ |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4552 | $as_echo "$MKDIR_P" >&6; } | |
4553 | ||
4554 | for ac_prog in gawk mawk nawk awk | |
4555 | do | |
4556 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4557 | set dummy $ac_prog; ac_word=$2 | |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4559 | $as_echo_n "checking for $ac_word... " >&6; } | |
4560 | if ${ac_cv_prog_AWK+:} false; then : | |
4561 | $as_echo_n "(cached) " >&6 | |
4562 | else | |
4563 | if test -n "$AWK"; then | |
4564 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4565 | else | |
4566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4567 | for as_dir in $PATH | |
4568 | do | |
4569 | IFS=$as_save_IFS | |
4570 | test -z "$as_dir" && as_dir=. | |
4571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4573 | ac_cv_prog_AWK="$ac_prog" | |
4574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4575 | break 2 | |
4576 | fi | |
4577 | done | |
4578 | done | |
4579 | IFS=$as_save_IFS | |
c52df125 AC |
4580 | |
4581 | fi | |
eec2776c AJ |
4582 | fi |
4583 | AWK=$ac_cv_prog_AWK | |
4584 | if test -n "$AWK"; then | |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4586 | $as_echo "$AWK" >&6; } | |
4587 | else | |
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4589 | $as_echo "no" >&6; } | |
4590 | fi | |
c52df125 | 4591 | |
c52df125 | 4592 | |
eec2776c AJ |
4593 | test -n "$AWK" && break |
4594 | done | |
c52df125 | 4595 | |
eec2776c AJ |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4597 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4598 | set x ${MAKE-make} | |
4599 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4600 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4601 | $as_echo_n "(cached) " >&6 | |
4602 | else | |
4603 | cat >conftest.make <<\_ACEOF | |
4604 | SHELL = /bin/sh | |
4605 | all: | |
4606 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4607 | _ACEOF | |
4608 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4609 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4610 | *@@@%%%=?*=@@@%%%*) | |
4611 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4612 | *) | |
4613 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
c52df125 | 4614 | esac |
eec2776c AJ |
4615 | rm -f conftest.make |
4616 | fi | |
4617 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4619 | $as_echo "yes" >&6; } | |
4620 | SET_MAKE= | |
4621 | else | |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4623 | $as_echo "no" >&6; } | |
4624 | SET_MAKE="MAKE=${MAKE-make}" | |
4625 | fi | |
c52df125 | 4626 | |
eec2776c AJ |
4627 | rm -rf .tst 2>/dev/null |
4628 | mkdir .tst 2>/dev/null | |
4629 | if test -d .tst; then | |
4630 | am__leading_dot=. | |
4631 | else | |
4632 | am__leading_dot=_ | |
4633 | fi | |
4634 | rmdir .tst 2>/dev/null | |
c52df125 | 4635 | |
eec2776c | 4636 | DEPDIR="${am__leading_dot}deps" |
c52df125 | 4637 | |
eec2776c | 4638 | ac_config_commands="$ac_config_commands depfiles" |
c52df125 AC |
4639 | |
4640 | ||
eec2776c AJ |
4641 | am_make=${MAKE-make} |
4642 | cat > confinc << 'END' | |
4643 | am__doit: | |
4644 | @echo this is the am__doit target | |
4645 | .PHONY: am__doit | |
4646 | END | |
4647 | # If we don't find an include directive, just comment out the code. | |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4649 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4650 | am__include="#" | |
4651 | am__quote= | |
4652 | _am_result=none | |
4653 | # First try GNU make style include. | |
4654 | echo "include confinc" > confmf | |
4655 | # Ignore all kinds of additional output from 'make'. | |
4656 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4657 | *the\ am__doit\ target*) | |
4658 | am__include=include | |
4659 | am__quote= | |
4660 | _am_result=GNU | |
4661 | ;; | |
4662 | esac | |
4663 | # Now try BSD make style include. | |
4664 | if test "$am__include" = "#"; then | |
4665 | echo '.include "confinc"' > confmf | |
4666 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4667 | *the\ am__doit\ target*) | |
4668 | am__include=.include | |
4669 | am__quote="\"" | |
4670 | _am_result=BSD | |
4671 | ;; | |
4672 | esac | |
4673 | fi | |
c52df125 AC |
4674 | |
4675 | ||
eec2776c AJ |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4677 | $as_echo "$_am_result" >&6; } | |
4678 | rm -f confinc confmf | |
c52df125 | 4679 | |
eec2776c AJ |
4680 | # Check whether --enable-dependency-tracking was given. |
4681 | if test "${enable_dependency_tracking+set}" = set; then : | |
4682 | enableval=$enable_dependency_tracking; | |
4683 | fi | |
c52df125 | 4684 | |
eec2776c AJ |
4685 | if test "x$enable_dependency_tracking" != xno; then |
4686 | am_depcomp="$ac_aux_dir/depcomp" | |
4687 | AMDEPBACKSLASH='\' | |
4688 | am__nodep='_no' | |
4689 | fi | |
4690 | if test "x$enable_dependency_tracking" != xno; then | |
4691 | AMDEP_TRUE= | |
4692 | AMDEP_FALSE='#' | |
4693 | else | |
4694 | AMDEP_TRUE='#' | |
4695 | AMDEP_FALSE= | |
4696 | fi | |
c52df125 AC |
4697 | |
4698 | ||
eec2776c AJ |
4699 | # Check whether --enable-silent-rules was given. |
4700 | if test "${enable_silent_rules+set}" = set; then : | |
4701 | enableval=$enable_silent_rules; | |
4702 | fi | |
c52df125 | 4703 | |
eec2776c AJ |
4704 | case $enable_silent_rules in # ((( |
4705 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4706 | no) AM_DEFAULT_VERBOSITY=1;; | |
4707 | *) AM_DEFAULT_VERBOSITY=1;; | |
4708 | esac | |
4709 | am_make=${MAKE-make} | |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4711 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4712 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4713 | $as_echo_n "(cached) " >&6 | |
4714 | else | |
4715 | if $as_echo 'TRUE=$(BAR$(V)) | |
4716 | BAR0=false | |
4717 | BAR1=true | |
4718 | V=1 | |
4719 | am__doit: | |
4720 | @$(TRUE) | |
4721 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4722 | am_cv_make_support_nested_variables=yes | |
4723 | else | |
4724 | am_cv_make_support_nested_variables=no | |
4725 | fi | |
4726 | fi | |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4728 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4729 | if test $am_cv_make_support_nested_variables = yes; then | |
4730 | AM_V='$(V)' | |
4731 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4732 | else | |
4733 | AM_V=$AM_DEFAULT_VERBOSITY | |
4734 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4735 | fi | |
4736 | AM_BACKSLASH='\' | |
c52df125 | 4737 | |
eec2776c AJ |
4738 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4739 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4740 | # is not polluted with repeated "-I." | |
4741 | am__isrc=' -I$(srcdir)' | |
4742 | # test to see if srcdir already configured | |
4743 | if test -f $srcdir/config.status; then | |
4744 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4745 | fi | |
4746 | fi | |
c52df125 | 4747 | |
eec2776c AJ |
4748 | # test whether we have cygpath |
4749 | if test -z "$CYGPATH_W"; then | |
4750 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4751 | CYGPATH_W='cygpath -w' | |
4752 | else | |
4753 | CYGPATH_W=echo | |
4754 | fi | |
4755 | fi | |
c52df125 AC |
4756 | |
4757 | ||
eec2776c AJ |
4758 | # Define the identity of the package. |
4759 | PACKAGE='charybdis' | |
4760 | VERSION='3.6.0-dev' | |
c52df125 | 4761 | |
c52df125 | 4762 | |
eec2776c AJ |
4763 | cat >>confdefs.h <<_ACEOF |
4764 | #define PACKAGE "$PACKAGE" | |
4765 | _ACEOF | |
c52df125 | 4766 | |
c52df125 | 4767 | |
eec2776c AJ |
4768 | cat >>confdefs.h <<_ACEOF |
4769 | #define VERSION "$VERSION" | |
4770 | _ACEOF | |
c52df125 | 4771 | |
eec2776c | 4772 | # Some tools Automake needs. |
c52df125 | 4773 | |
eec2776c | 4774 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
c52df125 | 4775 | |
c52df125 | 4776 | |
eec2776c | 4777 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
c52df125 | 4778 | |
c52df125 | 4779 | |
eec2776c | 4780 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
c52df125 | 4781 | |
c52df125 | 4782 | |
eec2776c | 4783 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
c52df125 AC |
4784 | |
4785 | ||
eec2776c | 4786 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
c52df125 | 4787 | |
eec2776c AJ |
4788 | # For better backward compatibility. To be removed once Automake 1.9.x |
4789 | # dies out for good. For more background, see: | |
4790 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4791 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4792 | mkdir_p='$(MKDIR_P)' | |
c52df125 | 4793 | |
eec2776c AJ |
4794 | # We need awk for the "check" target (and possibly the TAP driver). The |
4795 | # system "awk" is bad on some platforms. | |
4796 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4797 | # in the wild :-( We should find a proper way to deprecate it ... | |
4798 | AMTAR='$${TAR-tar}' | |
c52df125 AC |
4799 | |
4800 | ||
eec2776c AJ |
4801 | # We'll loop over all known methods to create a tar archive until one works. |
4802 | _am_tools='gnutar pax cpio none' | |
c52df125 | 4803 | |
eec2776c | 4804 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c52df125 AC |
4805 | |
4806 | ||
4807 | ||
4808 | ||
4809 | ||
eec2776c | 4810 | depcc="$CC" am_compiler_list= |
c52df125 | 4811 | |
eec2776c AJ |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4813 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4814 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
c52df125 AC |
4815 | $as_echo_n "(cached) " >&6 |
4816 | else | |
eec2776c AJ |
4817 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4818 | # We make a subdir and do the tests there. Otherwise we can end up | |
4819 | # making bogus files that we don't know about and never remove. For | |
4820 | # instance it was reported that on HP-UX the gcc test will end up | |
4821 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4822 | # in D". | |
4823 | rm -rf conftest.dir | |
4824 | mkdir conftest.dir | |
4825 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4826 | # using a relative directory. | |
4827 | cp "$am_depcomp" conftest.dir | |
4828 | cd conftest.dir | |
4829 | # We will build objects and dependencies in a subdirectory because | |
4830 | # it helps to detect inapplicable dependency modes. For instance | |
4831 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4832 | # side effect of compilation, but ICC will put the dependencies in | |
4833 | # the current directory while Tru64 will put them in the object | |
4834 | # directory. | |
4835 | mkdir sub | |
c52df125 | 4836 | |
eec2776c AJ |
4837 | am_cv_CC_dependencies_compiler_type=none |
4838 | if test "$am_compiler_list" = ""; then | |
4839 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
c52df125 | 4840 | fi |
eec2776c AJ |
4841 | am__universal=false |
4842 | case " $depcc " in #( | |
4843 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4844 | esac | |
c52df125 | 4845 | |
eec2776c AJ |
4846 | for depmode in $am_compiler_list; do |
4847 | # Setup a source with many dependencies, because some compilers | |
4848 | # like to wrap large dependency lists on column 80 (with \), and | |
4849 | # we should not choose a depcomp mode which is confused by this. | |
4850 | # | |
4851 | # We need to recreate these files for each test, as the compiler may | |
4852 | # overwrite some of them when testing with obscure command lines. | |
4853 | # This happens at least with the AIX C compiler. | |
4854 | : > sub/conftest.c | |
4855 | for i in 1 2 3 4 5 6; do | |
4856 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4857 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4858 | # Solaris 10 /bin/sh. | |
4859 | echo '/* dummy */' > sub/conftst$i.h | |
4860 | done | |
4861 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c52df125 | 4862 | |
eec2776c AJ |
4863 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4864 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4865 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4866 | # versions had trouble with output in subdirs. | |
4867 | am__obj=sub/conftest.${OBJEXT-o} | |
4868 | am__minus_obj="-o $am__obj" | |
4869 | case $depmode in | |
4870 | gcc) | |
4871 | # This depmode causes a compiler race in universal mode. | |
4872 | test "$am__universal" = false || continue | |
4873 | ;; | |
4874 | nosideeffect) | |
4875 | # After this tag, mechanisms are not by side-effect, so they'll | |
4876 | # only be used when explicitly requested. | |
4877 | if test "x$enable_dependency_tracking" = xyes; then | |
4878 | continue | |
4879 | else | |
4880 | break | |
4881 | fi | |
4882 | ;; | |
4883 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4884 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4885 | # not run yet. These depmodes are late enough in the game, and | |
4886 | # so weak that their functioning should not be impacted. | |
4887 | am__obj=conftest.${OBJEXT-o} | |
4888 | am__minus_obj= | |
4889 | ;; | |
4890 | none) break ;; | |
4891 | esac | |
4892 | if depmode=$depmode \ | |
4893 | source=sub/conftest.c object=$am__obj \ | |
4894 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4895 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4896 | >/dev/null 2>conftest.err && | |
4897 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4898 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4899 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4900 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4901 | # icc doesn't choke on unknown options, it will just issue warnings | |
4902 | # or remarks (even with -Werror). So we grep stderr for any message | |
4903 | # that says an option was ignored or not supported. | |
4904 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4905 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4906 | # The diagnosis changed in icc 8.0: | |
4907 | # icc: Command line remark: option '-MP' not supported | |
4908 | if (grep 'ignoring option' conftest.err || | |
4909 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4910 | am_cv_CC_dependencies_compiler_type=$depmode | |
4911 | break | |
4912 | fi | |
c52df125 | 4913 | fi |
c52df125 | 4914 | done |
c52df125 | 4915 | |
eec2776c AJ |
4916 | cd .. |
4917 | rm -rf conftest.dir | |
c52df125 | 4918 | else |
eec2776c | 4919 | am_cv_CC_dependencies_compiler_type=none |
c52df125 AC |
4920 | fi |
4921 | ||
4922 | fi | |
eec2776c AJ |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4924 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4925 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c52df125 | 4926 | |
eec2776c AJ |
4927 | if |
4928 | test "x$enable_dependency_tracking" != xno \ | |
4929 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4930 | am__fastdepCC_TRUE= | |
4931 | am__fastdepCC_FALSE='#' | |
c52df125 | 4932 | else |
eec2776c AJ |
4933 | am__fastdepCC_TRUE='#' |
4934 | am__fastdepCC_FALSE= | |
4935 | fi | |
c52df125 | 4936 | |
eec2776c AJ |
4937 | |
4938 | ||
4939 | # POSIX will say in a future version that running "rm -f" with no argument | |
4940 | # is OK; and we want to be able to make that assumption in our Makefile | |
4941 | # recipes. So use an aggressive probe to check that the usage we want is | |
4942 | # actually supported "in the wild" to an acceptable degree. | |
4943 | # See automake bug#10828. | |
4944 | # To make any issue more visible, cause the running configure to be aborted | |
4945 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4946 | # user can still override this though. | |
4947 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4948 | cat >&2 <<'END' | |
4949 | Oops! | |
4950 | ||
4951 | Your 'rm' program seems unable to run without file operands specified | |
4952 | on the command line, even when the '-f' option is present. This is contrary | |
4953 | to the behaviour of most rm programs out there, and not conforming with | |
4954 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4955 | ||
4956 | Please tell bug-automake@gnu.org about your system, including the value | |
4957 | of your $PATH and any error possibly output before this message. This | |
4958 | can help us improve future automake versions. | |
4959 | ||
4960 | END | |
4961 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4962 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4963 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4964 | echo >&2 | |
4965 | else | |
4966 | cat >&2 <<'END' | |
4967 | Aborting the configuration process, to ensure you take notice of the issue. | |
4968 | ||
4969 | You can download and install GNU coreutils to get an 'rm' implementation | |
4970 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4971 | ||
4972 | If you want to complete the configuration process using your problematic | |
4973 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4974 | to "yes", and re-run configure. | |
4975 | ||
4976 | END | |
4977 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
c52df125 | 4978 | fi |
c52df125 AC |
4979 | fi |
4980 | ||
eec2776c AJ |
4981 | # Check whether --enable-silent-rules was given. |
4982 | if test "${enable_silent_rules+set}" = set; then : | |
4983 | enableval=$enable_silent_rules; | |
c52df125 | 4984 | fi |
c52df125 | 4985 | |
eec2776c AJ |
4986 | case $enable_silent_rules in # ((( |
4987 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4988 | no) AM_DEFAULT_VERBOSITY=1;; | |
4989 | *) AM_DEFAULT_VERBOSITY=0;; | |
4990 | esac | |
4991 | am_make=${MAKE-make} | |
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4993 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4994 | if ${am_cv_make_support_nested_variables+:} false; then : | |
c52df125 AC |
4995 | $as_echo_n "(cached) " >&6 |
4996 | else | |
eec2776c AJ |
4997 | if $as_echo 'TRUE=$(BAR$(V)) |
4998 | BAR0=false | |
4999 | BAR1=true | |
5000 | V=1 | |
5001 | am__doit: | |
5002 | @$(TRUE) | |
5003 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
5004 | am_cv_make_support_nested_variables=yes | |
c52df125 | 5005 | else |
eec2776c | 5006 | am_cv_make_support_nested_variables=no |
c52df125 | 5007 | fi |
c52df125 | 5008 | fi |
eec2776c AJ |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
5010 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
5011 | if test $am_cv_make_support_nested_variables = yes; then | |
5012 | AM_V='$(V)' | |
5013 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
c52df125 | 5014 | else |
eec2776c AJ |
5015 | AM_V=$AM_DEFAULT_VERBOSITY |
5016 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
c52df125 | 5017 | fi |
eec2776c | 5018 | AM_BACKSLASH='\' |
c52df125 | 5019 | |
eec2776c AJ |
5020 | if test -n "$ac_tool_prefix"; then |
5021 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5022 | do |
5023 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5024 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5026 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5027 | if ${ac_cv_prog_AR+:} false; then : |
c52df125 AC |
5028 | $as_echo_n "(cached) " >&6 |
5029 | else | |
eec2776c AJ |
5030 | if test -n "$AR"; then |
5031 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c52df125 AC |
5032 | else |
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5034 | for as_dir in $PATH | |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | test -z "$as_dir" && as_dir=. | |
5038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5040 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5042 | break 2 | |
5043 | fi | |
5044 | done | |
5045 | done | |
5046 | IFS=$as_save_IFS | |
5047 | ||
5048 | fi | |
5049 | fi | |
eec2776c AJ |
5050 | AR=$ac_cv_prog_AR |
5051 | if test -n "$AR"; then | |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5053 | $as_echo "$AR" >&6; } | |
c52df125 AC |
5054 | else |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5056 | $as_echo "no" >&6; } | |
5057 | fi | |
5058 | ||
5059 | ||
eec2776c | 5060 | test -n "$AR" && break |
c52df125 AC |
5061 | done |
5062 | fi | |
eec2776c AJ |
5063 | if test -z "$AR"; then |
5064 | ac_ct_AR=$AR | |
5065 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5066 | do |
5067 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5068 | set dummy $ac_prog; ac_word=$2 | |
5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5070 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5071 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
c52df125 AC |
5072 | $as_echo_n "(cached) " >&6 |
5073 | else | |
eec2776c AJ |
5074 | if test -n "$ac_ct_AR"; then |
5075 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
c52df125 AC |
5076 | else |
5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5078 | for as_dir in $PATH | |
5079 | do | |
5080 | IFS=$as_save_IFS | |
5081 | test -z "$as_dir" && as_dir=. | |
5082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5084 | ac_cv_prog_ac_ct_AR="$ac_prog" |
c52df125 AC |
5085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5086 | break 2 | |
5087 | fi | |
5088 | done | |
5089 | done | |
5090 | IFS=$as_save_IFS | |
5091 | ||
5092 | fi | |
5093 | fi | |
eec2776c AJ |
5094 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5095 | if test -n "$ac_ct_AR"; then | |
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5097 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 AC |
5098 | else |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5100 | $as_echo "no" >&6; } | |
5101 | fi | |
5102 | ||
5103 | ||
eec2776c | 5104 | test -n "$ac_ct_AR" && break |
c52df125 AC |
5105 | done |
5106 | ||
eec2776c AJ |
5107 | if test "x$ac_ct_AR" = x; then |
5108 | AR="false" | |
c52df125 AC |
5109 | else |
5110 | case $cross_compiling:$ac_tool_warned in | |
5111 | yes:) | |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5114 | ac_tool_warned=yes ;; | |
5115 | esac | |
eec2776c | 5116 | AR=$ac_ct_AR |
c52df125 AC |
5117 | fi |
5118 | fi | |
5119 | ||
eec2776c AJ |
5120 | : ${AR=ar} |
5121 | ||
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5123 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5124 | if ${am_cv_ar_interface+:} false; then : | |
5125 | $as_echo_n "(cached) " >&6 | |
5126 | else | |
5127 | ac_ext=c | |
5128 | ac_cpp='$CPP $CPPFLAGS' | |
5129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5132 | ||
5133 | am_cv_ar_interface=ar | |
5134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5135 | /* end confdefs.h. */ | |
5136 | int some_variable = 0; | |
5137 | _ACEOF | |
5138 | if ac_fn_c_try_compile "$LINENO"; then : | |
5139 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5140 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5141 | (eval $am_ar_try) 2>&5 | |
5142 | ac_status=$? | |
5143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5144 | test $ac_status = 0; } | |
5145 | if test "$ac_status" -eq 0; then | |
5146 | am_cv_ar_interface=ar | |
5147 | else | |
5148 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5149 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5150 | (eval $am_ar_try) 2>&5 | |
5151 | ac_status=$? | |
5152 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5153 | test $ac_status = 0; } | |
5154 | if test "$ac_status" -eq 0; then | |
5155 | am_cv_ar_interface=lib | |
5156 | else | |
5157 | am_cv_ar_interface=unknown | |
5158 | fi | |
5159 | fi | |
5160 | rm -f conftest.lib libconftest.a | |
c52df125 | 5161 | |
c52df125 | 5162 | fi |
eec2776c AJ |
5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5164 | ac_ext=c | |
5165 | ac_cpp='$CPP $CPPFLAGS' | |
5166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 5169 | |
eec2776c AJ |
5170 | fi |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5172 | $as_echo "$am_cv_ar_interface" >&6; } | |
c52df125 | 5173 | |
eec2776c AJ |
5174 | case $am_cv_ar_interface in |
5175 | ar) | |
5176 | ;; | |
5177 | lib) | |
5178 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5179 | # FIXME: It is wrong to rewrite AR. | |
5180 | # But if we don't then we get into trouble of one sort or another. | |
5181 | # A longer-term fix would be to have automake use am__AR in this case, | |
5182 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5183 | # similar. | |
5184 | AR="$am_aux_dir/ar-lib $AR" | |
5185 | ;; | |
5186 | unknown) | |
5187 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5188 | ;; | |
5189 | esac | |
c52df125 AC |
5190 | |
5191 | ||
eec2776c AJ |
5192 | case `pwd` in |
5193 | *\ * | *\ *) | |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5195 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5196 | esac | |
c52df125 AC |
5197 | |
5198 | ||
c52df125 | 5199 | |
eec2776c AJ |
5200 | macro_version='2.4.2' |
5201 | macro_revision='1.3337' | |
c52df125 | 5202 | |
c52df125 | 5203 | |
c52df125 | 5204 | |
c52df125 | 5205 | |
c52df125 | 5206 | |
c52df125 | 5207 | |
c52df125 | 5208 | |
c52df125 | 5209 | |
c52df125 | 5210 | |
c52df125 AC |
5211 | |
5212 | ||
5213 | ||
5214 | ||
eec2776c | 5215 | ltmain="$ac_aux_dir/ltmain.sh" |
c52df125 | 5216 | |
eec2776c AJ |
5217 | # Make sure we can run config.sub. |
5218 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5219 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
c52df125 | 5220 | |
eec2776c AJ |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5222 | $as_echo_n "checking build system type... " >&6; } | |
5223 | if ${ac_cv_build+:} false; then : | |
5224 | $as_echo_n "(cached) " >&6 | |
5225 | else | |
5226 | ac_build_alias=$build_alias | |
5227 | test "x$ac_build_alias" = x && | |
5228 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5229 | test "x$ac_build_alias" = x && | |
5230 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5231 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5232 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
c52df125 | 5233 | |
eec2776c AJ |
5234 | fi |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5236 | $as_echo "$ac_cv_build" >&6; } | |
5237 | case $ac_cv_build in | |
5238 | *-*-*) ;; | |
5239 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5240 | esac | |
5241 | build=$ac_cv_build | |
5242 | ac_save_IFS=$IFS; IFS='-' | |
5243 | set x $ac_cv_build | |
5244 | shift | |
5245 | build_cpu=$1 | |
5246 | build_vendor=$2 | |
5247 | shift; shift | |
5248 | # Remember, the first character of IFS is used to create $*, | |
5249 | # except with old shells: | |
5250 | build_os=$* | |
5251 | IFS=$ac_save_IFS | |
5252 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5253 | |
5254 | ||
eec2776c AJ |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5256 | $as_echo_n "checking host system type... " >&6; } | |
5257 | if ${ac_cv_host+:} false; then : | |
5258 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5259 | else |
eec2776c AJ |
5260 | if test "x$host_alias" = x; then |
5261 | ac_cv_host=$ac_cv_build | |
5262 | else | |
5263 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5264 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c52df125 AC |
5265 | fi |
5266 | ||
eec2776c AJ |
5267 | fi |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5269 | $as_echo "$ac_cv_host" >&6; } | |
5270 | case $ac_cv_host in | |
5271 | *-*-*) ;; | |
5272 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
c52df125 | 5273 | esac |
eec2776c AJ |
5274 | host=$ac_cv_host |
5275 | ac_save_IFS=$IFS; IFS='-' | |
5276 | set x $ac_cv_host | |
5277 | shift | |
5278 | host_cpu=$1 | |
5279 | host_vendor=$2 | |
5280 | shift; shift | |
5281 | # Remember, the first character of IFS is used to create $*, | |
5282 | # except with old shells: | |
5283 | host_os=$* | |
5284 | IFS=$ac_save_IFS | |
5285 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5286 | |
5287 | ||
eec2776c AJ |
5288 | # Backslashify metacharacters that are still active within |
5289 | # double-quoted strings. | |
5290 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
c52df125 | 5291 | |
eec2776c AJ |
5292 | # Same as above, but do not quote variable references. |
5293 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
c52df125 | 5294 | |
eec2776c AJ |
5295 | # Sed substitution to delay expansion of an escaped shell variable in a |
5296 | # double_quote_subst'ed string. | |
5297 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
c52df125 | 5298 | |
eec2776c AJ |
5299 | # Sed substitution to delay expansion of an escaped single quote. |
5300 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
c52df125 | 5301 | |
eec2776c AJ |
5302 | # Sed substitution to avoid accidental globbing in evaled expressions |
5303 | no_glob_subst='s/\*/\\\*/g' | |
c52df125 | 5304 | |
eec2776c AJ |
5305 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5306 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5307 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
c52df125 | 5308 | |
eec2776c AJ |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5310 | $as_echo_n "checking how to print strings... " >&6; } | |
5311 | # Test print first, because it will be a builtin if present. | |
5312 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5313 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5314 | ECHO='print -r --' | |
5315 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5316 | ECHO='printf %s\n' | |
c52df125 | 5317 | else |
eec2776c AJ |
5318 | # Use this function as a fallback that always works. |
5319 | func_fallback_echo () | |
5320 | { | |
5321 | eval 'cat <<_LTECHO_EOF | |
5322 | $1 | |
5323 | _LTECHO_EOF' | |
5324 | } | |
5325 | ECHO='func_fallback_echo' | |
5326 | fi | |
5327 | ||
5328 | # func_echo_all arg... | |
5329 | # Invoke $ECHO with all args, space-separated. | |
5330 | func_echo_all () | |
5331 | { | |
5332 | $ECHO "" | |
5333 | } | |
5334 | ||
5335 | case "$ECHO" in | |
5336 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5337 | $as_echo "printf" >&6; } ;; | |
5338 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5339 | $as_echo "print -r" >&6; } ;; | |
5340 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5341 | $as_echo "cat" >&6; } ;; | |
c52df125 AC |
5342 | esac |
5343 | ||
c52df125 | 5344 | |
c52df125 AC |
5345 | |
5346 | ||
5347 | ||
5348 | ||
5349 | ||
c52df125 | 5350 | |
c52df125 | 5351 | |
c52df125 AC |
5352 | |
5353 | ||
5354 | ||
5355 | ||
5356 | ||
eec2776c AJ |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5358 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5359 | if ${ac_cv_path_SED+:} false; then : | |
c52df125 AC |
5360 | $as_echo_n "(cached) " >&6 |
5361 | else | |
eec2776c AJ |
5362 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5363 | for ac_i in 1 2 3 4 5 6 7; do | |
5364 | ac_script="$ac_script$as_nl$ac_script" | |
5365 | done | |
5366 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5367 | { ac_script=; unset ac_script;} | |
5368 | if test -z "$SED"; then | |
5369 | ac_path_SED_found=false | |
5370 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5372 | for as_dir in $PATH | |
5373 | do | |
5374 | IFS=$as_save_IFS | |
5375 | test -z "$as_dir" && as_dir=. | |
5376 | for ac_prog in sed gsed; do | |
5377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5378 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5379 | as_fn_executable_p "$ac_path_SED" || continue | |
5380 | # Check for GNU ac_path_SED and select it if it is found. | |
5381 | # Check for GNU $ac_path_SED | |
5382 | case `"$ac_path_SED" --version 2>&1` in | |
5383 | *GNU*) | |
5384 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5385 | *) | |
5386 | ac_count=0 | |
5387 | $as_echo_n 0123456789 >"conftest.in" | |
5388 | while : | |
5389 | do | |
5390 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5391 | mv "conftest.tmp" "conftest.in" | |
5392 | cp "conftest.in" "conftest.nl" | |
5393 | $as_echo '' >> "conftest.nl" | |
5394 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5395 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5396 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5397 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5398 | # Best one so far, save it but keep looking for a better one | |
5399 | ac_cv_path_SED="$ac_path_SED" | |
5400 | ac_path_SED_max=$ac_count | |
c52df125 | 5401 | fi |
eec2776c AJ |
5402 | # 10*(2^10) chars as input seems more than enough |
5403 | test $ac_count -gt 10 && break | |
5404 | done | |
5405 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
c52df125 AC |
5406 | esac |
5407 | ||
eec2776c AJ |
5408 | $ac_path_SED_found && break 3 |
5409 | done | |
5410 | done | |
5411 | done | |
5412 | IFS=$as_save_IFS | |
5413 | if test -z "$ac_cv_path_SED"; then | |
5414 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5415 | fi | |
5416 | else | |
5417 | ac_cv_path_SED=$SED | |
5418 | fi | |
5419 | ||
5420 | fi | |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5422 | $as_echo "$ac_cv_path_SED" >&6; } | |
5423 | SED="$ac_cv_path_SED" | |
5424 | rm -f conftest.sed | |
5425 | ||
5426 | test -z "$SED" && SED=sed | |
5427 | Xsed="$SED -e 1s/^X//" | |
c52df125 AC |
5428 | |
5429 | ||
5430 | ||
5431 | ||
5432 | ||
5433 | ||
5434 | ||
5435 | ||
c52df125 | 5436 | |
c52df125 AC |
5437 | |
5438 | ||
eec2776c AJ |
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5440 | $as_echo_n "checking for fgrep... " >&6; } | |
5441 | if ${ac_cv_path_FGREP+:} false; then : | |
c52df125 AC |
5442 | $as_echo_n "(cached) " >&6 |
5443 | else | |
eec2776c AJ |
5444 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5445 | then ac_cv_path_FGREP="$GREP -F" | |
5446 | else | |
5447 | if test -z "$FGREP"; then | |
5448 | ac_path_FGREP_found=false | |
5449 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5451 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
c52df125 AC |
5452 | do |
5453 | IFS=$as_save_IFS | |
5454 | test -z "$as_dir" && as_dir=. | |
eec2776c | 5455 | for ac_prog in fgrep; do |
c52df125 | 5456 | for ac_exec_ext in '' $ac_executable_extensions; do |
eec2776c AJ |
5457 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
5458 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5459 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5460 | # Check for GNU $ac_path_FGREP | |
5461 | case `"$ac_path_FGREP" --version 2>&1` in | |
5462 | *GNU*) | |
5463 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5464 | *) | |
5465 | ac_count=0 | |
5466 | $as_echo_n 0123456789 >"conftest.in" | |
5467 | while : | |
5468 | do | |
5469 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5470 | mv "conftest.tmp" "conftest.in" | |
5471 | cp "conftest.in" "conftest.nl" | |
5472 | $as_echo 'FGREP' >> "conftest.nl" | |
5473 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5474 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5475 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5476 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5477 | # Best one so far, save it but keep looking for a better one | |
5478 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5479 | ac_path_FGREP_max=$ac_count | |
5480 | fi | |
5481 | # 10*(2^10) chars as input seems more than enough | |
5482 | test $ac_count -gt 10 && break | |
c52df125 | 5483 | done |
eec2776c AJ |
5484 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5485 | esac | |
c52df125 | 5486 | |
eec2776c AJ |
5487 | $ac_path_FGREP_found && break 3 |
5488 | done | |
5489 | done | |
5490 | done | |
5491 | IFS=$as_save_IFS | |
5492 | if test -z "$ac_cv_path_FGREP"; then | |
5493 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5494 | fi | |
c52df125 | 5495 | else |
eec2776c | 5496 | ac_cv_path_FGREP=$FGREP |
c52df125 AC |
5497 | fi |
5498 | ||
eec2776c | 5499 | fi |
c52df125 | 5500 | fi |
eec2776c AJ |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5502 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5503 | FGREP="$ac_cv_path_FGREP" | |
c52df125 | 5504 | |
c52df125 | 5505 | |
eec2776c | 5506 | test -z "$GREP" && GREP=grep |
c52df125 AC |
5507 | |
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | ||
5513 | ||
5514 | ||
c52df125 | 5515 | |
c52df125 | 5516 | |
c52df125 | 5517 | |
c52df125 | 5518 | |
c52df125 | 5519 | |
c52df125 | 5520 | |
c52df125 | 5521 | |
c52df125 | 5522 | |
c52df125 | 5523 | |
c52df125 | 5524 | |
c52df125 | 5525 | |
eec2776c AJ |
5526 | # Check whether --with-gnu-ld was given. |
5527 | if test "${with_gnu_ld+set}" = set; then : | |
5528 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5529 | else | |
5530 | with_gnu_ld=no | |
5531 | fi | |
c52df125 | 5532 | |
eec2776c AJ |
5533 | ac_prog=ld |
5534 | if test "$GCC" = yes; then | |
5535 | # Check if gcc -print-prog-name=ld gives a path. | |
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5537 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5538 | case $host in | |
5539 | *-*-mingw*) | |
5540 | # gcc leaves a trailing carriage return which upsets mingw | |
5541 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5542 | *) | |
5543 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
c52df125 | 5544 | esac |
eec2776c AJ |
5545 | case $ac_prog in |
5546 | # Accept absolute paths. | |
5547 | [\\/]* | ?:[\\/]*) | |
5548 | re_direlt='/[^/][^/]*/\.\./' | |
5549 | # Canonicalize the pathname of ld | |
5550 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5551 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5552 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5553 | done | |
5554 | test -z "$LD" && LD="$ac_prog" | |
5555 | ;; | |
5556 | "") | |
5557 | # If it fails, then pretend we aren't using GCC. | |
5558 | ac_prog=ld | |
c52df125 | 5559 | ;; |
eec2776c AJ |
5560 | *) |
5561 | # If it is relative, then search for the first ld in PATH. | |
5562 | with_gnu_ld=unknown | |
c52df125 AC |
5563 | ;; |
5564 | esac | |
eec2776c AJ |
5565 | elif test "$with_gnu_ld" = yes; then |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5567 | $as_echo_n "checking for GNU ld... " >&6; } | |
5568 | else | |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5570 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
c52df125 | 5571 | fi |
eec2776c AJ |
5572 | if ${lt_cv_path_LD+:} false; then : |
5573 | $as_echo_n "(cached) " >&6 | |
5574 | else | |
5575 | if test -z "$LD"; then | |
5576 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5577 | for ac_dir in $PATH; do | |
5578 | IFS="$lt_save_ifs" | |
5579 | test -z "$ac_dir" && ac_dir=. | |
5580 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5581 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5582 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5583 | # but apparently some variants of GNU ld only accept -v. | |
5584 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5585 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5586 | *GNU* | *'with BFD'*) | |
5587 | test "$with_gnu_ld" != no && break | |
5588 | ;; | |
5589 | *) | |
5590 | test "$with_gnu_ld" != yes && break | |
5591 | ;; | |
5592 | esac | |
c52df125 | 5593 | fi |
eec2776c AJ |
5594 | done |
5595 | IFS="$lt_save_ifs" | |
5596 | else | |
5597 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5598 | fi | |
c52df125 AC |
5599 | fi |
5600 | ||
eec2776c AJ |
5601 | LD="$lt_cv_path_LD" |
5602 | if test -n "$LD"; then | |
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5604 | $as_echo "$LD" >&6; } | |
5605 | else | |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5607 | $as_echo "no" >&6; } | |
5608 | fi | |
5609 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5611 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5612 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5613 | $as_echo_n "(cached) " >&6 | |
5614 | else | |
5615 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5616 | case `$LD -v 2>&1 </dev/null` in | |
5617 | *GNU* | *'with BFD'*) | |
5618 | lt_cv_prog_gnu_ld=yes | |
5619 | ;; | |
5620 | *) | |
5621 | lt_cv_prog_gnu_ld=no | |
5622 | ;; | |
5623 | esac | |
5624 | fi | |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5626 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5627 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
c52df125 AC |
5628 | |
5629 | ||
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
eec2776c AJ |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5638 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5639 | if ${lt_cv_path_NM+:} false; then : | |
c52df125 AC |
5640 | $as_echo_n "(cached) " >&6 |
5641 | else | |
eec2776c AJ |
5642 | if test -n "$NM"; then |
5643 | # Let the user override the test. | |
5644 | lt_cv_path_NM="$NM" | |
c52df125 | 5645 | else |
eec2776c AJ |
5646 | lt_nm_to_check="${ac_tool_prefix}nm" |
5647 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5648 | lt_nm_to_check="$lt_nm_to_check nm" | |
c52df125 | 5649 | fi |
eec2776c AJ |
5650 | for lt_tmp_nm in $lt_nm_to_check; do |
5651 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5652 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5653 | IFS="$lt_save_ifs" | |
5654 | test -z "$ac_dir" && ac_dir=. | |
5655 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5656 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5657 | # Check to see if the nm accepts a BSD-compat flag. | |
5658 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5659 | # nm: unknown option "B" ignored | |
5660 | # Tru64's nm complains that /dev/null is an invalid object file | |
5661 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5662 | */dev/null* | *'Invalid file or object type'*) | |
5663 | lt_cv_path_NM="$tmp_nm -B" | |
5664 | break | |
5665 | ;; | |
5666 | *) | |
5667 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5668 | */dev/null*) | |
5669 | lt_cv_path_NM="$tmp_nm -p" | |
5670 | break | |
5671 | ;; | |
5672 | *) | |
5673 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5674 | continue # so that we can try to find one that supports BSD flags | |
5675 | ;; | |
5676 | esac | |
5677 | ;; | |
5678 | esac | |
5679 | fi | |
5680 | done | |
5681 | IFS="$lt_save_ifs" | |
c52df125 | 5682 | done |
eec2776c | 5683 | : ${lt_cv_path_NM=no} |
c52df125 AC |
5684 | fi |
5685 | fi | |
eec2776c AJ |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5687 | $as_echo "$lt_cv_path_NM" >&6; } | |
5688 | if test "$lt_cv_path_NM" != "no"; then | |
5689 | NM="$lt_cv_path_NM" | |
c52df125 | 5690 | else |
eec2776c AJ |
5691 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5692 | if test -n "$DUMPBIN"; then : | |
5693 | # Let the user override the test. | |
c52df125 | 5694 | else |
eec2776c AJ |
5695 | if test -n "$ac_tool_prefix"; then |
5696 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5697 | do |
5698 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5699 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5701 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5702 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
c52df125 AC |
5703 | $as_echo_n "(cached) " >&6 |
5704 | else | |
eec2776c AJ |
5705 | if test -n "$DUMPBIN"; then |
5706 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5707 | else |
5708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5709 | for as_dir in $PATH | |
5710 | do | |
5711 | IFS=$as_save_IFS | |
5712 | test -z "$as_dir" && as_dir=. | |
5713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5714 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5715 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5717 | break 2 | |
5718 | fi | |
5719 | done | |
5720 | done | |
5721 | IFS=$as_save_IFS | |
5722 | ||
5723 | fi | |
5724 | fi | |
eec2776c AJ |
5725 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5726 | if test -n "$DUMPBIN"; then | |
5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5728 | $as_echo "$DUMPBIN" >&6; } | |
c52df125 AC |
5729 | else |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5731 | $as_echo "no" >&6; } | |
5732 | fi | |
5733 | ||
5734 | ||
eec2776c | 5735 | test -n "$DUMPBIN" && break |
c52df125 AC |
5736 | done |
5737 | fi | |
eec2776c AJ |
5738 | if test -z "$DUMPBIN"; then |
5739 | ac_ct_DUMPBIN=$DUMPBIN | |
5740 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5741 | do |
5742 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5743 | set dummy $ac_prog; ac_word=$2 | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5745 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5746 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
c52df125 AC |
5747 | $as_echo_n "(cached) " >&6 |
5748 | else | |
eec2776c AJ |
5749 | if test -n "$ac_ct_DUMPBIN"; then |
5750 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5751 | else |
5752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5753 | for as_dir in $PATH | |
5754 | do | |
5755 | IFS=$as_save_IFS | |
5756 | test -z "$as_dir" && as_dir=. | |
5757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5759 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
c52df125 AC |
5760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5761 | break 2 | |
5762 | fi | |
5763 | done | |
5764 | done | |
5765 | IFS=$as_save_IFS | |
5766 | ||
5767 | fi | |
5768 | fi | |
eec2776c AJ |
5769 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5770 | if test -n "$ac_ct_DUMPBIN"; then | |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5772 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
c52df125 AC |
5773 | else |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5775 | $as_echo "no" >&6; } | |
5776 | fi | |
5777 | ||
5778 | ||
eec2776c | 5779 | test -n "$ac_ct_DUMPBIN" && break |
c52df125 AC |
5780 | done |
5781 | ||
eec2776c AJ |
5782 | if test "x$ac_ct_DUMPBIN" = x; then |
5783 | DUMPBIN=":" | |
c52df125 AC |
5784 | else |
5785 | case $cross_compiling:$ac_tool_warned in | |
5786 | yes:) | |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5788 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5789 | ac_tool_warned=yes ;; | |
5790 | esac | |
eec2776c | 5791 | DUMPBIN=$ac_ct_DUMPBIN |
c52df125 AC |
5792 | fi |
5793 | fi | |
5794 | ||
eec2776c AJ |
5795 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5796 | *COFF*) | |
5797 | DUMPBIN="$DUMPBIN -symbols" | |
5798 | ;; | |
5799 | *) | |
5800 | DUMPBIN=: | |
5801 | ;; | |
5802 | esac | |
5803 | fi | |
c52df125 | 5804 | |
eec2776c AJ |
5805 | if test "$DUMPBIN" != ":"; then |
5806 | NM="$DUMPBIN" | |
5807 | fi | |
5808 | fi | |
5809 | test -z "$NM" && NM=nm | |
c52df125 AC |
5810 | |
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | ||
eec2776c AJ |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5817 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5818 | if ${lt_cv_nm_interface+:} false; then : | |
c52df125 AC |
5819 | $as_echo_n "(cached) " >&6 |
5820 | else | |
eec2776c AJ |
5821 | lt_cv_nm_interface="BSD nm" |
5822 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5823 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5824 | (eval "$ac_compile" 2>conftest.err) | |
5825 | cat conftest.err >&5 | |
5826 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5827 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5828 | cat conftest.err >&5 | |
5829 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5830 | cat conftest.out >&5 | |
5831 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5832 | lt_cv_nm_interface="MS dumpbin" | |
5833 | fi | |
5834 | rm -f conftest* | |
c52df125 | 5835 | fi |
eec2776c AJ |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5837 | $as_echo "$lt_cv_nm_interface" >&6; } | |
c52df125 | 5838 | |
eec2776c AJ |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5840 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5841 | LN_S=$as_ln_s | |
5842 | if test "$LN_S" = "ln -s"; then | |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5844 | $as_echo "yes" >&6; } | |
5845 | else | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5847 | $as_echo "no, using $LN_S" >&6; } | |
c52df125 | 5848 | fi |
c52df125 | 5849 | |
eec2776c AJ |
5850 | # find the maximum length of command line arguments |
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5852 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5853 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5854 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5855 | else |
eec2776c AJ |
5856 | i=0 |
5857 | teststring="ABCD" | |
c52df125 | 5858 | |
eec2776c AJ |
5859 | case $build_os in |
5860 | msdosdjgpp*) | |
5861 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5862 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5863 | # during glob expansion). Even if it were fixed, the result of this | |
5864 | # check would be larger than it should be. | |
5865 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5866 | ;; | |
c52df125 | 5867 | |
eec2776c AJ |
5868 | gnu*) |
5869 | # Under GNU Hurd, this test is not required because there is | |
5870 | # no limit to the length of command line arguments. | |
5871 | # Libtool will interpret -1 as no limit whatsoever | |
5872 | lt_cv_sys_max_cmd_len=-1; | |
5873 | ;; | |
c52df125 | 5874 | |
eec2776c AJ |
5875 | cygwin* | mingw* | cegcc*) |
5876 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5877 | # about 5 minutes as the teststring grows exponentially. | |
5878 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5879 | # you end up with a "frozen" computer, even though with patience | |
5880 | # the test eventually succeeds (with a max line length of 256k). | |
5881 | # Instead, let's just punt: use the minimum linelength reported by | |
5882 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5883 | lt_cv_sys_max_cmd_len=8192; | |
5884 | ;; | |
c52df125 | 5885 | |
eec2776c AJ |
5886 | mint*) |
5887 | # On MiNT this can take a long time and run out of memory. | |
5888 | lt_cv_sys_max_cmd_len=8192; | |
5889 | ;; | |
c52df125 | 5890 | |
eec2776c AJ |
5891 | amigaos*) |
5892 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5893 | # So we just punt and use a minimum line length of 8192. | |
5894 | lt_cv_sys_max_cmd_len=8192; | |
5895 | ;; | |
c52df125 | 5896 | |
eec2776c AJ |
5897 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5898 | # This has been around since 386BSD, at least. Likely further. | |
5899 | if test -x /sbin/sysctl; then | |
5900 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5901 | elif test -x /usr/sbin/sysctl; then | |
5902 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5903 | else | |
5904 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5905 | fi | |
5906 | # And add a safety zone | |
5907 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5908 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5909 | ;; | |
c52df125 | 5910 | |
eec2776c AJ |
5911 | interix*) |
5912 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5913 | lt_cv_sys_max_cmd_len=196608 | |
5914 | ;; | |
c52df125 | 5915 | |
eec2776c AJ |
5916 | os2*) |
5917 | # The test takes a long time on OS/2. | |
5918 | lt_cv_sys_max_cmd_len=8192 | |
5919 | ;; | |
c52df125 | 5920 | |
eec2776c AJ |
5921 | osf*) |
5922 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5923 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5924 | # nice to cause kernel panics so lets avoid the loop below. | |
5925 | # First set a reasonable default. | |
5926 | lt_cv_sys_max_cmd_len=16384 | |
5927 | # | |
5928 | if test -x /sbin/sysconfig; then | |
5929 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5930 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5931 | esac | |
5932 | fi | |
5933 | ;; | |
5934 | sco3.2v5*) | |
5935 | lt_cv_sys_max_cmd_len=102400 | |
5936 | ;; | |
5937 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5938 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5939 | if test -n "$kargmax"; then | |
5940 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5941 | else | |
5942 | lt_cv_sys_max_cmd_len=32768 | |
5943 | fi | |
5944 | ;; | |
5945 | *) | |
5946 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5947 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5948 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5949 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5950 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5951 | else | |
5952 | # Make teststring a little bigger before we do anything with it. | |
5953 | # a 1K string should be a reasonable start. | |
5954 | for i in 1 2 3 4 5 6 7 8 ; do | |
5955 | teststring=$teststring$teststring | |
5956 | done | |
5957 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5958 | # If test is not a shell built-in, we'll probably end up computing a | |
5959 | # maximum length that is only half of the actual maximum length, but | |
5960 | # we can't tell. | |
5961 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5962 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5963 | test $i != 17 # 1/2 MB should be enough | |
5964 | do | |
5965 | i=`expr $i + 1` | |
5966 | teststring=$teststring$teststring | |
5967 | done | |
5968 | # Only check the string length outside the loop. | |
5969 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5970 | teststring= | |
5971 | # Add a significant safety factor because C++ compilers can tack on | |
5972 | # massive amounts of additional arguments before passing them to the | |
5973 | # linker. It appears as though 1/2 is a usable value. | |
5974 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5975 | fi | |
5976 | ;; | |
5977 | esac | |
c52df125 AC |
5978 | |
5979 | fi | |
c52df125 | 5980 | |
eec2776c AJ |
5981 | if test -n $lt_cv_sys_max_cmd_len ; then |
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5983 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
c52df125 | 5984 | else |
eec2776c AJ |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5986 | $as_echo "none" >&6; } | |
c52df125 | 5987 | fi |
eec2776c | 5988 | max_cmd_len=$lt_cv_sys_max_cmd_len |
c52df125 | 5989 | |
eec2776c AJ |
5990 | |
5991 | ||
5992 | ||
5993 | ||
5994 | ||
5995 | : ${CP="cp -f"} | |
5996 | : ${MV="mv -f"} | |
5997 | : ${RM="rm -f"} | |
5998 | ||
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6000 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6001 | # Try some XSI features | |
6002 | xsi_shell=no | |
6003 | ( _lt_dummy="a/b/c" | |
6004 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
6005 | = c,a/b,b/c, \ | |
6006 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6007 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6008 | && xsi_shell=yes | |
6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6010 | $as_echo "$xsi_shell" >&6; } | |
6011 | ||
6012 | ||
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6014 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6015 | lt_shell_append=no | |
6016 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6017 | >/dev/null 2>&1 \ | |
6018 | && lt_shell_append=yes | |
6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6020 | $as_echo "$lt_shell_append" >&6; } | |
6021 | ||
6022 | ||
6023 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6024 | lt_unset=unset | |
6025 | else | |
6026 | lt_unset=false | |
6027 | fi | |
6028 | ||
6029 | ||
6030 | ||
6031 | ||
6032 | ||
6033 | # test EBCDIC or ASCII | |
6034 | case `echo X|tr X '\101'` in | |
6035 | A) # ASCII based system | |
6036 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6037 | lt_SP2NL='tr \040 \012' | |
6038 | lt_NL2SP='tr \015\012 \040\040' | |
6039 | ;; | |
6040 | *) # EBCDIC based system | |
6041 | lt_SP2NL='tr \100 \n' | |
6042 | lt_NL2SP='tr \r\n \100\100' | |
6043 | ;; | |
c52df125 | 6044 | esac |
eec2776c AJ |
6045 | |
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6055 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6056 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6057 | $as_echo_n "(cached) " >&6 | |
c52df125 | 6058 | else |
eec2776c AJ |
6059 | case $host in |
6060 | *-*-mingw* ) | |
6061 | case $build in | |
6062 | *-*-mingw* ) # actually msys | |
6063 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6064 | ;; | |
6065 | *-*-cygwin* ) | |
6066 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6067 | ;; | |
6068 | * ) # otherwise, assume *nix | |
6069 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6070 | ;; | |
6071 | esac | |
6072 | ;; | |
6073 | *-*-cygwin* ) | |
6074 | case $build in | |
6075 | *-*-mingw* ) # actually msys | |
6076 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6077 | ;; | |
6078 | *-*-cygwin* ) | |
6079 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6080 | ;; | |
6081 | * ) # otherwise, assume *nix | |
6082 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6083 | ;; | |
6084 | esac | |
6085 | ;; | |
6086 | * ) # unhandled hosts (and "normal" native builds) | |
6087 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6088 | ;; | |
6089 | esac | |
6090 | ||
c52df125 AC |
6091 | fi |
6092 | ||
eec2776c AJ |
6093 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6095 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6102 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6103 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6104 | $as_echo_n "(cached) " >&6 | |
6105 | else | |
6106 | #assume ordinary cross tools, or native build. | |
6107 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6108 | case $host in | |
6109 | *-*-mingw* ) | |
6110 | case $build in | |
6111 | *-*-mingw* ) # actually msys | |
6112 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6113 | ;; | |
6114 | esac | |
6115 | ;; | |
6116 | esac | |
6117 | ||
6118 | fi | |
6119 | ||
6120 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6122 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6129 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6130 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6131 | $as_echo_n "(cached) " >&6 | |
6132 | else | |
6133 | lt_cv_ld_reload_flag='-r' | |
6134 | fi | |
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6136 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6137 | reload_flag=$lt_cv_ld_reload_flag | |
6138 | case $reload_flag in | |
6139 | "" | " "*) ;; | |
6140 | *) reload_flag=" $reload_flag" ;; | |
6141 | esac | |
6142 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6143 | case $host_os in | |
6144 | cygwin* | mingw* | pw32* | cegcc*) | |
6145 | if test "$GCC" != yes; then | |
6146 | reload_cmds=false | |
6147 | fi | |
6148 | ;; | |
6149 | darwin*) | |
6150 | if test "$GCC" = yes; then | |
6151 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6152 | else | |
6153 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6154 | fi | |
6155 | ;; | |
6156 | esac | |
6157 | ||
6158 | ||
6159 | ||
c52df125 AC |
6160 | |
6161 | ||
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6167 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6168 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
c52df125 AC |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6170 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6171 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
c52df125 AC |
6172 | $as_echo_n "(cached) " >&6 |
6173 | else | |
eec2776c AJ |
6174 | if test -n "$OBJDUMP"; then |
6175 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6176 | else |
6177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6178 | for as_dir in $PATH | |
6179 | do | |
6180 | IFS=$as_save_IFS | |
6181 | test -z "$as_dir" && as_dir=. | |
6182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6184 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
c52df125 AC |
6185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6186 | break 2 | |
6187 | fi | |
6188 | done | |
6189 | done | |
6190 | IFS=$as_save_IFS | |
6191 | ||
6192 | fi | |
6193 | fi | |
eec2776c AJ |
6194 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6195 | if test -n "$OBJDUMP"; then | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6197 | $as_echo "$OBJDUMP" >&6; } | |
c52df125 AC |
6198 | else |
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6200 | $as_echo "no" >&6; } | |
6201 | fi | |
6202 | ||
6203 | ||
6204 | fi | |
eec2776c AJ |
6205 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6206 | ac_ct_OBJDUMP=$OBJDUMP | |
6207 | # Extract the first word of "objdump", so it can be a program name with args. | |
6208 | set dummy objdump; ac_word=$2 | |
c52df125 AC |
6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6210 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6211 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
c52df125 AC |
6212 | $as_echo_n "(cached) " >&6 |
6213 | else | |
eec2776c AJ |
6214 | if test -n "$ac_ct_OBJDUMP"; then |
6215 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6216 | else |
6217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6218 | for as_dir in $PATH | |
6219 | do | |
6220 | IFS=$as_save_IFS | |
6221 | test -z "$as_dir" && as_dir=. | |
6222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6224 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
c52df125 AC |
6225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6226 | break 2 | |
6227 | fi | |
6228 | done | |
6229 | done | |
6230 | IFS=$as_save_IFS | |
6231 | ||
6232 | fi | |
6233 | fi | |
eec2776c AJ |
6234 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6235 | if test -n "$ac_ct_OBJDUMP"; then | |
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6237 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
c52df125 AC |
6238 | else |
6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6240 | $as_echo "no" >&6; } | |
6241 | fi | |
6242 | ||
eec2776c AJ |
6243 | if test "x$ac_ct_OBJDUMP" = x; then |
6244 | OBJDUMP="false" | |
c52df125 AC |
6245 | else |
6246 | case $cross_compiling:$ac_tool_warned in | |
6247 | yes:) | |
6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6249 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6250 | ac_tool_warned=yes ;; | |
6251 | esac | |
eec2776c | 6252 | OBJDUMP=$ac_ct_OBJDUMP |
c52df125 AC |
6253 | fi |
6254 | else | |
eec2776c | 6255 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
c52df125 AC |
6256 | fi |
6257 | ||
eec2776c | 6258 | test -z "$OBJDUMP" && OBJDUMP=objdump |
c52df125 AC |
6259 | |
6260 | ||
c52df125 | 6261 | |
c52df125 | 6262 | |
c52df125 AC |
6263 | |
6264 | ||
6265 | ||
6266 | ||
6267 | ||
eec2776c AJ |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6269 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6270 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6271 | $as_echo_n "(cached) " >&6 | |
6272 | else | |
6273 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6274 | lt_cv_file_magic_test_file= | |
6275 | lt_cv_deplibs_check_method='unknown' | |
6276 | # Need to set the preceding variable on all platforms that support | |
6277 | # interlibrary dependencies. | |
6278 | # 'none' -- dependencies not supported. | |
6279 | # `unknown' -- same as none, but documents that we really don't know. | |
6280 | # 'pass_all' -- all dependencies passed with no checks. | |
6281 | # 'test_compile' -- check by making test program. | |
6282 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6283 | # which responds to the $file_magic_cmd with a given extended regex. | |
6284 | # If you have `file' or equivalent on your system and you're not sure | |
6285 | # whether `pass_all' will *always* work, you probably want this one. | |
c52df125 | 6286 | |
eec2776c AJ |
6287 | case $host_os in |
6288 | aix[4-9]*) | |
6289 | lt_cv_deplibs_check_method=pass_all | |
6290 | ;; | |
c52df125 | 6291 | |
eec2776c AJ |
6292 | beos*) |
6293 | lt_cv_deplibs_check_method=pass_all | |
6294 | ;; | |
c52df125 | 6295 | |
eec2776c AJ |
6296 | bsdi[45]*) |
6297 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6298 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6299 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6300 | ;; | |
c52df125 | 6301 | |
eec2776c AJ |
6302 | cygwin*) |
6303 | # func_win32_libid is a shell function defined in ltmain.sh | |
6304 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6305 | lt_cv_file_magic_cmd='func_win32_libid' | |
6306 | ;; | |
c52df125 | 6307 | |
eec2776c AJ |
6308 | mingw* | pw32*) |
6309 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6310 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6311 | # unless we find 'file', for example because we are cross-compiling. | |
6312 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6313 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6314 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6315 | lt_cv_file_magic_cmd='func_win32_libid' | |
6316 | else | |
6317 | # Keep this pattern in sync with the one in func_win32_libid. | |
6318 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6319 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6320 | fi | |
6321 | ;; | |
c52df125 | 6322 | |
eec2776c AJ |
6323 | cegcc*) |
6324 | # use the weaker test based on 'objdump'. See mingw*. | |
6325 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6326 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6327 | ;; | |
c52df125 | 6328 | |
eec2776c AJ |
6329 | darwin* | rhapsody*) |
6330 | lt_cv_deplibs_check_method=pass_all | |
6331 | ;; | |
c52df125 | 6332 | |
eec2776c AJ |
6333 | freebsd* | dragonfly*) |
6334 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6335 | case $host_cpu in | |
6336 | i*86 ) | |
6337 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6338 | # Let's accept both of them until this is cleared up. | |
6339 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6340 | lt_cv_file_magic_cmd=/usr/bin/file | |
6341 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6342 | ;; | |
6343 | esac | |
6344 | else | |
6345 | lt_cv_deplibs_check_method=pass_all | |
6346 | fi | |
6347 | ;; | |
c52df125 | 6348 | |
eec2776c AJ |
6349 | haiku*) |
6350 | lt_cv_deplibs_check_method=pass_all | |
6351 | ;; | |
c52df125 | 6352 | |
eec2776c AJ |
6353 | hpux10.20* | hpux11*) |
6354 | lt_cv_file_magic_cmd=/usr/bin/file | |
6355 | case $host_cpu in | |
6356 | ia64*) | |
6357 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6358 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6359 | ;; | |
6360 | hppa*64*) | |
6361 | 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]' | |
6362 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6363 | ;; | |
6364 | *) | |
6365 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6366 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6367 | ;; | |
6368 | esac | |
6369 | ;; | |
c52df125 | 6370 | |
eec2776c AJ |
6371 | interix[3-9]*) |
6372 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6373 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6374 | ;; | |
c52df125 | 6375 | |
eec2776c AJ |
6376 | irix5* | irix6* | nonstopux*) |
6377 | case $LD in | |
6378 | *-32|*"-32 ") libmagic=32-bit;; | |
6379 | *-n32|*"-n32 ") libmagic=N32;; | |
6380 | *-64|*"-64 ") libmagic=64-bit;; | |
6381 | *) libmagic=never-match;; | |
6382 | esac | |
6383 | lt_cv_deplibs_check_method=pass_all | |
6384 | ;; | |
c52df125 | 6385 | |
eec2776c AJ |
6386 | # This must be glibc/ELF. |
6387 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6388 | lt_cv_deplibs_check_method=pass_all | |
6389 | ;; | |
c52df125 | 6390 | |
eec2776c AJ |
6391 | netbsd* | netbsdelf*-gnu) |
6392 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6394 | else | |
6395 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6396 | fi | |
6397 | ;; | |
c52df125 | 6398 | |
eec2776c AJ |
6399 | newos6*) |
6400 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6401 | lt_cv_file_magic_cmd=/usr/bin/file | |
6402 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6403 | ;; | |
c52df125 | 6404 | |
eec2776c AJ |
6405 | *nto* | *qnx*) |
6406 | lt_cv_deplibs_check_method=pass_all | |
6407 | ;; | |
c52df125 | 6408 | |
eec2776c AJ |
6409 | openbsd*) |
6410 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6411 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6412 | else | |
6413 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6414 | fi | |
6415 | ;; | |
c52df125 | 6416 | |
eec2776c AJ |
6417 | osf3* | osf4* | osf5*) |
6418 | lt_cv_deplibs_check_method=pass_all | |
6419 | ;; | |
c52df125 | 6420 | |
eec2776c AJ |
6421 | rdos*) |
6422 | lt_cv_deplibs_check_method=pass_all | |
6423 | ;; | |
c52df125 | 6424 | |
eec2776c AJ |
6425 | solaris*) |
6426 | lt_cv_deplibs_check_method=pass_all | |
6427 | ;; | |
c52df125 | 6428 | |
eec2776c AJ |
6429 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6430 | lt_cv_deplibs_check_method=pass_all | |
6431 | ;; | |
c52df125 | 6432 | |
eec2776c AJ |
6433 | sysv4 | sysv4.3*) |
6434 | case $host_vendor in | |
6435 | motorola) | |
6436 | 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]' | |
6437 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6438 | ;; | |
6439 | ncr) | |
6440 | lt_cv_deplibs_check_method=pass_all | |
6441 | ;; | |
6442 | sequent) | |
6443 | lt_cv_file_magic_cmd='/bin/file' | |
6444 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6445 | ;; | |
6446 | sni) | |
6447 | lt_cv_file_magic_cmd='/bin/file' | |
6448 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6449 | lt_cv_file_magic_test_file=/lib/libc.so | |
6450 | ;; | |
6451 | siemens) | |
6452 | lt_cv_deplibs_check_method=pass_all | |
6453 | ;; | |
6454 | pc) | |
6455 | lt_cv_deplibs_check_method=pass_all | |
6456 | ;; | |
6457 | esac | |
6458 | ;; | |
c52df125 | 6459 | |
eec2776c AJ |
6460 | tpf*) |
6461 | lt_cv_deplibs_check_method=pass_all | |
6462 | ;; | |
6463 | esac | |
c52df125 | 6464 | |
eec2776c AJ |
6465 | fi |
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6467 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
c52df125 | 6468 | |
eec2776c AJ |
6469 | file_magic_glob= |
6470 | want_nocaseglob=no | |
6471 | if test "$build" = "$host"; then | |
6472 | case $host_os in | |
6473 | mingw* | pw32*) | |
6474 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6475 | want_nocaseglob=yes | |
6476 | else | |
6477 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6478 | fi | |
6479 | ;; | |
6480 | esac | |
6481 | fi | |
c52df125 | 6482 | |
eec2776c AJ |
6483 | file_magic_cmd=$lt_cv_file_magic_cmd |
6484 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6485 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
c52df125 AC |
6486 | |
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
c52df125 | 6494 | |
c52df125 | 6495 | |
c52df125 AC |
6496 | |
6497 | ||
c52df125 | 6498 | |
c52df125 | 6499 | |
c52df125 | 6500 | |
c52df125 | 6501 | |
c52df125 | 6502 | |
c52df125 | 6503 | |
c52df125 | 6504 | |
c52df125 | 6505 | |
c52df125 | 6506 | |
c52df125 | 6507 | |
eec2776c AJ |
6508 | if test -n "$ac_tool_prefix"; then |
6509 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6510 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6512 | $as_echo_n "checking for $ac_word... " >&6; } | |
6513 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6514 | $as_echo_n "(cached) " >&6 | |
6515 | else | |
6516 | if test -n "$DLLTOOL"; then | |
6517 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6518 | else | |
6519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6520 | for as_dir in $PATH | |
6521 | do | |
6522 | IFS=$as_save_IFS | |
6523 | test -z "$as_dir" && as_dir=. | |
6524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6526 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6528 | break 2 | |
c52df125 | 6529 | fi |
eec2776c AJ |
6530 | done |
6531 | done | |
6532 | IFS=$as_save_IFS | |
c52df125 | 6533 | |
eec2776c AJ |
6534 | fi |
6535 | fi | |
6536 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6537 | if test -n "$DLLTOOL"; then | |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6539 | $as_echo "$DLLTOOL" >&6; } | |
6540 | else | |
6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6542 | $as_echo "no" >&6; } | |
6543 | fi | |
c52df125 | 6544 | |
c52df125 | 6545 | |
eec2776c AJ |
6546 | fi |
6547 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6548 | ac_ct_DLLTOOL=$DLLTOOL | |
6549 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6550 | set dummy dlltool; ac_word=$2 | |
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6552 | $as_echo_n "checking for $ac_word... " >&6; } | |
6553 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6554 | $as_echo_n "(cached) " >&6 | |
6555 | else | |
6556 | if test -n "$ac_ct_DLLTOOL"; then | |
6557 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6558 | else | |
6559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6560 | for as_dir in $PATH | |
6561 | do | |
6562 | IFS=$as_save_IFS | |
6563 | test -z "$as_dir" && as_dir=. | |
6564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6566 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6568 | break 2 | |
c52df125 AC |
6569 | fi |
6570 | done | |
eec2776c AJ |
6571 | done |
6572 | IFS=$as_save_IFS | |
c52df125 AC |
6573 | |
6574 | fi | |
c52df125 | 6575 | fi |
eec2776c AJ |
6576 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6577 | if test -n "$ac_ct_DLLTOOL"; then | |
6578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6579 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
c52df125 | 6580 | else |
eec2776c AJ |
6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6582 | $as_echo "no" >&6; } | |
c52df125 AC |
6583 | fi |
6584 | ||
eec2776c AJ |
6585 | if test "x$ac_ct_DLLTOOL" = x; then |
6586 | DLLTOOL="false" | |
6587 | else | |
6588 | case $cross_compiling:$ac_tool_warned in | |
6589 | yes:) | |
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6591 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6592 | ac_tool_warned=yes ;; | |
6593 | esac | |
6594 | DLLTOOL=$ac_ct_DLLTOOL | |
6595 | fi | |
6596 | else | |
6597 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
c52df125 AC |
6598 | fi |
6599 | ||
eec2776c | 6600 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
c52df125 AC |
6601 | |
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | ||
6610 | ||
eec2776c AJ |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
6612 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6613 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6614 | $as_echo_n "(cached) " >&6 | |
6615 | else | |
6616 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
c52df125 | 6617 | |
eec2776c AJ |
6618 | case $host_os in |
6619 | cygwin* | mingw* | pw32* | cegcc*) | |
6620 | # two different shell functions defined in ltmain.sh | |
6621 | # decide which to use based on capabilities of $DLLTOOL | |
6622 | case `$DLLTOOL --help 2>&1` in | |
6623 | *--identify-strict*) | |
6624 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6625 | ;; | |
6626 | *) | |
6627 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6628 | ;; | |
6629 | esac | |
6630 | ;; | |
6631 | *) | |
6632 | # fallback: assume linklib IS sharedlib | |
6633 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6634 | ;; | |
6635 | esac | |
c52df125 | 6636 | |
eec2776c AJ |
6637 | fi |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6639 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6640 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6641 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
c52df125 AC |
6642 | |
6643 | ||
6644 | ||
6645 | ||
6646 | ||
6647 | ||
6648 | ||
eec2776c AJ |
6649 | if test -n "$ac_tool_prefix"; then |
6650 | for ac_prog in ar | |
6651 | do | |
6652 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6653 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6655 | $as_echo_n "checking for $ac_word... " >&6; } | |
6656 | if ${ac_cv_prog_AR+:} false; then : | |
6657 | $as_echo_n "(cached) " >&6 | |
6658 | else | |
6659 | if test -n "$AR"; then | |
6660 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6661 | else | |
6662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6663 | for as_dir in $PATH | |
6664 | do | |
6665 | IFS=$as_save_IFS | |
6666 | test -z "$as_dir" && as_dir=. | |
6667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6669 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6671 | break 2 | |
6672 | fi | |
6673 | done | |
6674 | done | |
6675 | IFS=$as_save_IFS | |
c52df125 | 6676 | |
eec2776c AJ |
6677 | fi |
6678 | fi | |
6679 | AR=$ac_cv_prog_AR | |
6680 | if test -n "$AR"; then | |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6682 | $as_echo "$AR" >&6; } | |
6683 | else | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6685 | $as_echo "no" >&6; } | |
6686 | fi | |
c52df125 AC |
6687 | |
6688 | ||
eec2776c AJ |
6689 | test -n "$AR" && break |
6690 | done | |
6691 | fi | |
6692 | if test -z "$AR"; then | |
6693 | ac_ct_AR=$AR | |
6694 | for ac_prog in ar | |
6695 | do | |
6696 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6697 | set dummy $ac_prog; ac_word=$2 | |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6699 | $as_echo_n "checking for $ac_word... " >&6; } | |
6700 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6701 | $as_echo_n "(cached) " >&6 | |
6702 | else | |
6703 | if test -n "$ac_ct_AR"; then | |
6704 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6705 | else | |
6706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6707 | for as_dir in $PATH | |
6708 | do | |
6709 | IFS=$as_save_IFS | |
6710 | test -z "$as_dir" && as_dir=. | |
6711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6713 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6715 | break 2 | |
6716 | fi | |
6717 | done | |
6718 | done | |
6719 | IFS=$as_save_IFS | |
c52df125 | 6720 | |
eec2776c AJ |
6721 | fi |
6722 | fi | |
6723 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6724 | if test -n "$ac_ct_AR"; then | |
6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6726 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 | 6727 | else |
eec2776c AJ |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6729 | $as_echo "no" >&6; } | |
c52df125 AC |
6730 | fi |
6731 | ||
6732 | ||
eec2776c AJ |
6733 | test -n "$ac_ct_AR" && break |
6734 | done | |
6735 | ||
6736 | if test "x$ac_ct_AR" = x; then | |
6737 | AR="false" | |
6738 | else | |
6739 | case $cross_compiling:$ac_tool_warned in | |
6740 | yes:) | |
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6743 | ac_tool_warned=yes ;; | |
c52df125 | 6744 | esac |
eec2776c AJ |
6745 | AR=$ac_ct_AR |
6746 | fi | |
6747 | fi | |
c52df125 | 6748 | |
eec2776c AJ |
6749 | : ${AR=ar} |
6750 | : ${AR_FLAGS=cru} | |
c52df125 AC |
6751 | |
6752 | ||
6753 | ||
6754 | ||
6755 | ||
c52df125 | 6756 | |
c52df125 | 6757 | |
eec2776c AJ |
6758 | |
6759 | ||
6760 | ||
6761 | ||
6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6763 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6764 | if ${lt_cv_ar_at_file+:} false; then : | |
6765 | $as_echo_n "(cached) " >&6 | |
6766 | else | |
6767 | lt_cv_ar_at_file=no | |
6768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6769 | /* end confdefs.h. */ | |
6770 | ||
6771 | int | |
6772 | main () | |
6773 | { | |
6774 | ||
6775 | ; | |
6776 | return 0; | |
6777 | } | |
6778 | _ACEOF | |
6779 | if ac_fn_c_try_compile "$LINENO"; then : | |
6780 | echo conftest.$ac_objext > conftest.lst | |
6781 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6782 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6783 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6784 | ac_status=$? |
6785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6786 | test $ac_status = 0; } |
6787 | if test "$ac_status" -eq 0; then | |
6788 | # Ensure the archiver fails upon bogus file names. | |
6789 | rm -f conftest.$ac_objext libconftest.a | |
6790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6791 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6792 | ac_status=$? |
6793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6794 | test $ac_status = 0; } |
6795 | if test "$ac_status" -ne 0; then | |
6796 | lt_cv_ar_at_file=@ | |
6797 | fi | |
6798 | fi | |
6799 | rm -f conftest.* libconftest.a | |
c52df125 | 6800 | |
eec2776c AJ |
6801 | fi |
6802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c52df125 | 6803 | |
eec2776c AJ |
6804 | fi |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6806 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6807 | ||
6808 | if test "x$lt_cv_ar_at_file" = xno; then | |
6809 | archiver_list_spec= | |
c52df125 | 6810 | else |
eec2776c AJ |
6811 | archiver_list_spec=$lt_cv_ar_at_file |
6812 | fi | |
6813 | ||
c52df125 | 6814 | |
c52df125 | 6815 | |
c52df125 | 6816 | |
c52df125 | 6817 | |
c52df125 | 6818 | |
c52df125 AC |
6819 | |
6820 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6821 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6822 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
c52df125 AC |
6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6824 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6825 | if ${ac_cv_prog_STRIP+:} false; then : |
c52df125 AC |
6826 | $as_echo_n "(cached) " >&6 |
6827 | else | |
eec2776c AJ |
6828 | if test -n "$STRIP"; then |
6829 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
c52df125 AC |
6830 | else |
6831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6832 | for as_dir in $PATH | |
6833 | do | |
6834 | IFS=$as_save_IFS | |
6835 | test -z "$as_dir" && as_dir=. | |
6836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6838 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
c52df125 AC |
6839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6840 | break 2 | |
6841 | fi | |
6842 | done | |
6843 | done | |
6844 | IFS=$as_save_IFS | |
6845 | ||
6846 | fi | |
6847 | fi | |
eec2776c AJ |
6848 | STRIP=$ac_cv_prog_STRIP |
6849 | if test -n "$STRIP"; then | |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6851 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
6852 | else |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6854 | $as_echo "no" >&6; } | |
6855 | fi | |
6856 | ||
6857 | ||
6858 | fi | |
eec2776c AJ |
6859 | if test -z "$ac_cv_prog_STRIP"; then |
6860 | ac_ct_STRIP=$STRIP | |
6861 | # Extract the first word of "strip", so it can be a program name with args. | |
6862 | set dummy strip; ac_word=$2 | |
c52df125 AC |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6864 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6865 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c52df125 AC |
6866 | $as_echo_n "(cached) " >&6 |
6867 | else | |
eec2776c AJ |
6868 | if test -n "$ac_ct_STRIP"; then |
6869 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
c52df125 AC |
6870 | else |
6871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6872 | for as_dir in $PATH | |
6873 | do | |
6874 | IFS=$as_save_IFS | |
6875 | test -z "$as_dir" && as_dir=. | |
6876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6878 | ac_cv_prog_ac_ct_STRIP="strip" |
c52df125 AC |
6879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6880 | break 2 | |
6881 | fi | |
6882 | done | |
6883 | done | |
6884 | IFS=$as_save_IFS | |
6885 | ||
6886 | fi | |
6887 | fi | |
eec2776c AJ |
6888 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6889 | if test -n "$ac_ct_STRIP"; then | |
6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6891 | $as_echo "$ac_ct_STRIP" >&6; } | |
c52df125 AC |
6892 | else |
6893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6894 | $as_echo "no" >&6; } | |
6895 | fi | |
6896 | ||
eec2776c AJ |
6897 | if test "x$ac_ct_STRIP" = x; then |
6898 | STRIP=":" | |
c52df125 AC |
6899 | else |
6900 | case $cross_compiling:$ac_tool_warned in | |
6901 | yes:) | |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6904 | ac_tool_warned=yes ;; | |
6905 | esac | |
eec2776c | 6906 | STRIP=$ac_ct_STRIP |
c52df125 AC |
6907 | fi |
6908 | else | |
eec2776c | 6909 | STRIP="$ac_cv_prog_STRIP" |
c52df125 AC |
6910 | fi |
6911 | ||
eec2776c | 6912 | test -z "$STRIP" && STRIP=: |
c52df125 AC |
6913 | |
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
eec2776c AJ |
6919 | if test -n "$ac_tool_prefix"; then |
6920 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6921 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
c52df125 AC |
6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6923 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6924 | if ${ac_cv_prog_RANLIB+:} false; then : |
c52df125 AC |
6925 | $as_echo_n "(cached) " >&6 |
6926 | else | |
eec2776c AJ |
6927 | if test -n "$RANLIB"; then |
6928 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c52df125 AC |
6929 | else |
6930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6931 | for as_dir in $PATH | |
6932 | do | |
6933 | IFS=$as_save_IFS | |
6934 | test -z "$as_dir" && as_dir=. | |
6935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6937 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
c52df125 AC |
6938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6939 | break 2 | |
6940 | fi | |
6941 | done | |
6942 | done | |
6943 | IFS=$as_save_IFS | |
6944 | ||
6945 | fi | |
6946 | fi | |
eec2776c AJ |
6947 | RANLIB=$ac_cv_prog_RANLIB |
6948 | if test -n "$RANLIB"; then | |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6950 | $as_echo "$RANLIB" >&6; } | |
c52df125 AC |
6951 | else |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6953 | $as_echo "no" >&6; } | |
6954 | fi | |
6955 | ||
6956 | ||
6957 | fi | |
eec2776c AJ |
6958 | if test -z "$ac_cv_prog_RANLIB"; then |
6959 | ac_ct_RANLIB=$RANLIB | |
6960 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6961 | set dummy ranlib; ac_word=$2 | |
c52df125 AC |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6963 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6964 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
c52df125 AC |
6965 | $as_echo_n "(cached) " >&6 |
6966 | else | |
eec2776c AJ |
6967 | if test -n "$ac_ct_RANLIB"; then |
6968 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
c52df125 AC |
6969 | else |
6970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6971 | for as_dir in $PATH | |
6972 | do | |
6973 | IFS=$as_save_IFS | |
6974 | test -z "$as_dir" && as_dir=. | |
6975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6977 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
c52df125 AC |
6978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6979 | break 2 | |
6980 | fi | |
6981 | done | |
6982 | done | |
6983 | IFS=$as_save_IFS | |
6984 | ||
6985 | fi | |
6986 | fi | |
eec2776c AJ |
6987 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6988 | if test -n "$ac_ct_RANLIB"; then | |
6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6990 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6991 | else | |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
c52df125 AC |
6993 | $as_echo "no" >&6; } |
6994 | fi | |
6995 | ||
eec2776c AJ |
6996 | if test "x$ac_ct_RANLIB" = x; then |
6997 | RANLIB=":" | |
c52df125 AC |
6998 | else |
6999 | case $cross_compiling:$ac_tool_warned in | |
7000 | yes:) | |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7003 | ac_tool_warned=yes ;; | |
7004 | esac | |
eec2776c | 7005 | RANLIB=$ac_ct_RANLIB |
c52df125 AC |
7006 | fi |
7007 | else | |
eec2776c | 7008 | RANLIB="$ac_cv_prog_RANLIB" |
c52df125 AC |
7009 | fi |
7010 | ||
eec2776c | 7011 | test -z "$RANLIB" && RANLIB=: |
c52df125 | 7012 | |
c52df125 AC |
7013 | |
7014 | ||
c52df125 | 7015 | |
eec2776c AJ |
7016 | |
7017 | ||
7018 | # Determine commands to create old-style static archives. | |
7019 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7020 | old_postinstall_cmds='chmod 644 $oldlib' | |
7021 | old_postuninstall_cmds= | |
7022 | ||
7023 | if test -n "$RANLIB"; then | |
7024 | case $host_os in | |
7025 | openbsd*) | |
7026 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7027 | ;; | |
7028 | *) | |
7029 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7030 | ;; | |
7031 | esac | |
7032 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
c52df125 AC |
7033 | fi |
7034 | ||
eec2776c AJ |
7035 | case $host_os in |
7036 | darwin*) | |
7037 | lock_old_archive_extraction=yes ;; | |
7038 | *) | |
7039 | lock_old_archive_extraction=no ;; | |
c52df125 | 7040 | esac |
c52df125 | 7041 | |
c52df125 | 7042 | |
c52df125 AC |
7043 | |
7044 | ||
c52df125 | 7045 | |
c52df125 | 7046 | |
c52df125 | 7047 | |
c52df125 | 7048 | |
c52df125 AC |
7049 | |
7050 | ||
c52df125 | 7051 | |
c52df125 | 7052 | |
c52df125 AC |
7053 | |
7054 | ||
c52df125 | 7055 | |
c52df125 | 7056 | |
c52df125 AC |
7057 | |
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | ||
7069 | ||
7070 | ||
7071 | ||
7072 | ||
7073 | ||
7074 | ||
7075 | ||
7076 | ||
7077 | ||
7078 | ||
7079 | ||
eec2776c AJ |
7080 | # If no C compiler was specified, use CC. |
7081 | LTCC=${LTCC-"$CC"} | |
c52df125 | 7082 | |
eec2776c AJ |
7083 | # If no C compiler flags were specified, use CFLAGS. |
7084 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 7085 | |
eec2776c AJ |
7086 | # Allow CC to be a program name with arguments. |
7087 | compiler=$CC | |
c52df125 AC |
7088 | |
7089 | ||
eec2776c AJ |
7090 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7092 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7093 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
c52df125 AC |
7094 | $as_echo_n "(cached) " >&6 |
7095 | else | |
c52df125 | 7096 | |
eec2776c AJ |
7097 | # These are sane defaults that work on at least a few old systems. |
7098 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
c52df125 | 7099 | |
eec2776c AJ |
7100 | # Character class describing NM global symbol codes. |
7101 | symcode='[BCDEGRST]' | |
c52df125 | 7102 | |
eec2776c AJ |
7103 | # Regexp to match symbols that can be accessed directly from C. |
7104 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
c52df125 | 7105 | |
eec2776c AJ |
7106 | # Define system-specific variables. |
7107 | case $host_os in | |
7108 | aix*) | |
7109 | symcode='[BCDT]' | |
7110 | ;; | |
7111 | cygwin* | mingw* | pw32* | cegcc*) | |
7112 | symcode='[ABCDGISTW]' | |
7113 | ;; | |
7114 | hpux*) | |
7115 | if test "$host_cpu" = ia64; then | |
7116 | symcode='[ABCDEGRST]' | |
7117 | fi | |
7118 | ;; | |
7119 | irix* | nonstopux*) | |
7120 | symcode='[BCDEGRST]' | |
7121 | ;; | |
7122 | osf*) | |
7123 | symcode='[BCDEGQRST]' | |
7124 | ;; | |
7125 | solaris*) | |
7126 | symcode='[BDRT]' | |
7127 | ;; | |
7128 | sco3.2v5*) | |
7129 | symcode='[DT]' | |
7130 | ;; | |
7131 | sysv4.2uw2*) | |
7132 | symcode='[DT]' | |
7133 | ;; | |
7134 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7135 | symcode='[ABDT]' | |
7136 | ;; | |
7137 | sysv4) | |
7138 | symcode='[DFNSTU]' | |
7139 | ;; | |
7140 | esac | |
c52df125 | 7141 | |
eec2776c AJ |
7142 | # If we're using GNU nm, then use its standard symbol codes. |
7143 | case `$NM -V 2>&1` in | |
7144 | *GNU* | *'with BFD'*) | |
7145 | symcode='[ABCDGIRSTW]' ;; | |
7146 | esac | |
c52df125 | 7147 | |
eec2776c AJ |
7148 | # Transform an extracted symbol line into a proper C declaration. |
7149 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7150 | # so use this general approach. | |
7151 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
c52df125 | 7152 | |
eec2776c AJ |
7153 | # Transform an extracted symbol line into symbol name and symbol address |
7154 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7155 | 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 | 7156 | |
eec2776c AJ |
7157 | # Handle CRLF in mingw tool chain |
7158 | opt_cr= | |
7159 | case $build_os in | |
7160 | mingw*) | |
7161 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7162 | ;; | |
7163 | esac | |
c52df125 | 7164 | |
eec2776c AJ |
7165 | # Try without a prefix underscore, then with it. |
7166 | for ac_symprfx in "" "_"; do | |
c52df125 | 7167 | |
eec2776c AJ |
7168 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7169 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
c52df125 | 7170 | |
eec2776c AJ |
7171 | # Write the raw and C identifiers. |
7172 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7173 | # Fake it for dumpbin and say T for any non-static function | |
7174 | # and D for any global variable. | |
7175 | # Also find C++ and __fastcall symbols from MSVC++, | |
7176 | # which start with @ or ?. | |
7177 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7178 | " {last_section=section; section=\$ 3};"\ | |
7179 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7180 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7181 | " \$ 0!~/External *\|/{next};"\ | |
7182 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7183 | " {if(hide[section]) next};"\ | |
7184 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7185 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7186 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7187 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7188 | " ' prfx=^$ac_symprfx" | |
7189 | else | |
7190 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7191 | fi | |
7192 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
c52df125 | 7193 | |
eec2776c AJ |
7194 | # Check to see that the pipe works correctly. |
7195 | pipe_works=no | |
7196 | ||
7197 | rm -f conftest* | |
7198 | cat > conftest.$ac_ext <<_LT_EOF | |
7199 | #ifdef __cplusplus | |
7200 | extern "C" { | |
c52df125 | 7201 | #endif |
eec2776c AJ |
7202 | char nm_test_var; |
7203 | void nm_test_func(void); | |
7204 | void nm_test_func(void){} | |
7205 | #ifdef __cplusplus | |
7206 | } | |
7207 | #endif | |
7208 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7209 | _LT_EOF | |
c52df125 | 7210 | |
eec2776c AJ |
7211 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7212 | (eval $ac_compile) 2>&5 | |
7213 | ac_status=$? | |
7214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7215 | test $ac_status = 0; }; then | |
7216 | # Now try to grab the symbols. | |
7217 | nlist=conftest.nm | |
7218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7219 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7220 | ac_status=$? | |
7221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7222 | test $ac_status = 0; } && test -s "$nlist"; then | |
7223 | # Try sorting and uniquifying the output. | |
7224 | if sort "$nlist" | uniq > "$nlist"T; then | |
7225 | mv -f "$nlist"T "$nlist" | |
7226 | else | |
7227 | rm -f "$nlist"T | |
7228 | fi | |
c52df125 | 7229 | |
eec2776c AJ |
7230 | # Make sure that we snagged all the symbols we need. |
7231 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7232 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7233 | cat <<_LT_EOF > conftest.$ac_ext | |
7234 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7235 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7236 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7237 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7238 | # define LT_DLSYM_CONST | |
7239 | #elif defined(__osf__) | |
7240 | /* This system does not cope well with relocations in const data. */ | |
7241 | # define LT_DLSYM_CONST | |
7242 | #else | |
7243 | # define LT_DLSYM_CONST const | |
7244 | #endif | |
c52df125 | 7245 | |
eec2776c AJ |
7246 | #ifdef __cplusplus |
7247 | extern "C" { | |
7248 | #endif | |
c52df125 | 7249 | |
eec2776c AJ |
7250 | _LT_EOF |
7251 | # Now generate the symbol file. | |
7252 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
c52df125 | 7253 | |
eec2776c | 7254 | cat <<_LT_EOF >> conftest.$ac_ext |
c52df125 | 7255 | |
eec2776c AJ |
7256 | /* The mapping between symbol names and symbols. */ |
7257 | LT_DLSYM_CONST struct { | |
7258 | const char *name; | |
7259 | void *address; | |
7260 | } | |
7261 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
c52df125 | 7262 | { |
eec2776c AJ |
7263 | { "@PROGRAM@", (void *) 0 }, |
7264 | _LT_EOF | |
7265 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7266 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7267 | {0, (void *) 0} | |
7268 | }; | |
c52df125 | 7269 | |
eec2776c AJ |
7270 | /* This works around a problem in FreeBSD linker */ |
7271 | #ifdef FREEBSD_WORKAROUND | |
7272 | static const void *lt_preloaded_setup() { | |
7273 | return lt__PROGRAM__LTX_preloaded_symbols; | |
c52df125 | 7274 | } |
eec2776c | 7275 | #endif |
c52df125 | 7276 | |
eec2776c AJ |
7277 | #ifdef __cplusplus |
7278 | } | |
7279 | #endif | |
7280 | _LT_EOF | |
7281 | # Now try linking the two files. | |
7282 | mv conftest.$ac_objext conftstm.$ac_objext | |
7283 | lt_globsym_save_LIBS=$LIBS | |
7284 | lt_globsym_save_CFLAGS=$CFLAGS | |
7285 | LIBS="conftstm.$ac_objext" | |
7286 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7287 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7288 | (eval $ac_link) 2>&5 | |
7289 | ac_status=$? | |
7290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7291 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7292 | pipe_works=yes | |
7293 | fi | |
7294 | LIBS=$lt_globsym_save_LIBS | |
7295 | CFLAGS=$lt_globsym_save_CFLAGS | |
7296 | else | |
7297 | echo "cannot find nm_test_func in $nlist" >&5 | |
7298 | fi | |
7299 | else | |
7300 | echo "cannot find nm_test_var in $nlist" >&5 | |
7301 | fi | |
7302 | else | |
7303 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7304 | fi | |
7305 | else | |
7306 | echo "$progname: failed program was:" >&5 | |
7307 | cat conftest.$ac_ext >&5 | |
7308 | fi | |
7309 | rm -rf conftest* conftst* | |
c52df125 | 7310 | |
eec2776c AJ |
7311 | # Do not use the global_symbol_pipe unless it works. |
7312 | if test "$pipe_works" = yes; then | |
7313 | break | |
7314 | else | |
7315 | lt_cv_sys_global_symbol_pipe= | |
7316 | fi | |
7317 | done | |
c52df125 | 7318 | |
c52df125 | 7319 | fi |
c52df125 | 7320 | |
eec2776c AJ |
7321 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7322 | lt_cv_sys_global_symbol_to_cdecl= | |
c52df125 | 7323 | fi |
eec2776c AJ |
7324 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7326 | $as_echo "failed" >&6; } | |
c52df125 | 7327 | else |
eec2776c AJ |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7329 | $as_echo "ok" >&6; } | |
c52df125 | 7330 | fi |
c52df125 | 7331 | |
eec2776c AJ |
7332 | # Response file support. |
7333 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7334 | nm_file_list_spec='@' | |
7335 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7336 | nm_file_list_spec='@' | |
c52df125 AC |
7337 | fi |
7338 | ||
c52df125 | 7339 | |
c52df125 | 7340 | |
c52df125 | 7341 | |
c52df125 | 7342 | |
c52df125 | 7343 | |
c52df125 | 7344 | |
c52df125 | 7345 | |
c52df125 | 7346 | |
c52df125 AC |
7347 | |
7348 | ||
c52df125 | 7349 | |
c52df125 | 7350 | |
c52df125 AC |
7351 | |
7352 | ||
7353 | ||
7354 | ||
7355 | ||
c52df125 AC |
7356 | |
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | ||
7362 | ||
7363 | ||
7364 | ||
eec2776c AJ |
7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7366 | $as_echo_n "checking for sysroot... " >&6; } | |
c52df125 | 7367 | |
eec2776c AJ |
7368 | # Check whether --with-sysroot was given. |
7369 | if test "${with_sysroot+set}" = set; then : | |
7370 | withval=$with_sysroot; | |
7371 | else | |
7372 | with_sysroot=no | |
7373 | fi | |
c52df125 AC |
7374 | |
7375 | ||
eec2776c AJ |
7376 | lt_sysroot= |
7377 | case ${with_sysroot} in #( | |
7378 | yes) | |
7379 | if test "$GCC" = yes; then | |
7380 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7381 | fi | |
7382 | ;; #( | |
7383 | /*) | |
7384 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7385 | ;; #( | |
7386 | no|'') | |
7387 | ;; #( | |
7388 | *) | |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7390 | $as_echo "${with_sysroot}" >&6; } | |
7391 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7392 | ;; | |
7393 | esac | |
c52df125 | 7394 | |
eec2776c AJ |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7396 | $as_echo "${lt_sysroot:-no}" >&6; } | |
c52df125 AC |
7397 | |
7398 | ||
7399 | ||
7400 | ||
7401 | ||
eec2776c AJ |
7402 | # Check whether --enable-libtool-lock was given. |
7403 | if test "${enable_libtool_lock+set}" = set; then : | |
7404 | enableval=$enable_libtool_lock; | |
c52df125 AC |
7405 | fi |
7406 | ||
eec2776c | 7407 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
c52df125 | 7408 | |
eec2776c AJ |
7409 | # Some flags need to be propagated to the compiler or linker for good |
7410 | # libtool support. | |
7411 | case $host in | |
7412 | ia64-*-hpux*) | |
7413 | # Find out which ABI we are using. | |
7414 | echo 'int i;' > conftest.$ac_ext | |
7415 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7416 | (eval $ac_compile) 2>&5 | |
7417 | ac_status=$? | |
7418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7419 | test $ac_status = 0; }; then | |
7420 | case `/usr/bin/file conftest.$ac_objext` in | |
7421 | *ELF-32*) | |
7422 | HPUX_IA64_MODE="32" | |
7423 | ;; | |
7424 | *ELF-64*) | |
7425 | HPUX_IA64_MODE="64" | |
7426 | ;; | |
7427 | esac | |
7428 | fi | |
7429 | rm -rf conftest* | |
7430 | ;; | |
7431 | *-*-irix6*) | |
7432 | # Find out which ABI we are using. | |
7433 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7434 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7435 | (eval $ac_compile) 2>&5 | |
7436 | ac_status=$? | |
7437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7438 | test $ac_status = 0; }; then | |
7439 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7440 | case `/usr/bin/file conftest.$ac_objext` in | |
7441 | *32-bit*) | |
7442 | LD="${LD-ld} -melf32bsmip" | |
7443 | ;; | |
7444 | *N32*) | |
7445 | LD="${LD-ld} -melf32bmipn32" | |
7446 | ;; | |
7447 | *64-bit*) | |
7448 | LD="${LD-ld} -melf64bmip" | |
7449 | ;; | |
7450 | esac | |
7451 | else | |
7452 | case `/usr/bin/file conftest.$ac_objext` in | |
7453 | *32-bit*) | |
7454 | LD="${LD-ld} -32" | |
7455 | ;; | |
7456 | *N32*) | |
7457 | LD="${LD-ld} -n32" | |
7458 | ;; | |
7459 | *64-bit*) | |
7460 | LD="${LD-ld} -64" | |
7461 | ;; | |
7462 | esac | |
7463 | fi | |
7464 | fi | |
7465 | rm -rf conftest* | |
7466 | ;; | |
c52df125 | 7467 | |
eec2776c AJ |
7468 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7469 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7470 | # Find out which ABI we are using. | |
7471 | echo 'int i;' > conftest.$ac_ext | |
7472 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7473 | (eval $ac_compile) 2>&5 | |
7474 | ac_status=$? | |
7475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7476 | test $ac_status = 0; }; then | |
7477 | case `/usr/bin/file conftest.o` in | |
7478 | *32-bit*) | |
7479 | case $host in | |
7480 | x86_64-*kfreebsd*-gnu) | |
7481 | LD="${LD-ld} -m elf_i386_fbsd" | |
7482 | ;; | |
7483 | x86_64-*linux*) | |
7484 | case `/usr/bin/file conftest.o` in | |
7485 | *x86-64*) | |
7486 | LD="${LD-ld} -m elf32_x86_64" | |
7487 | ;; | |
7488 | *) | |
7489 | LD="${LD-ld} -m elf_i386" | |
7490 | ;; | |
7491 | esac | |
7492 | ;; | |
7493 | powerpc64le-*) | |
7494 | LD="${LD-ld} -m elf32lppclinux" | |
7495 | ;; | |
7496 | powerpc64-*) | |
7497 | LD="${LD-ld} -m elf32ppclinux" | |
7498 | ;; | |
7499 | s390x-*linux*) | |
7500 | LD="${LD-ld} -m elf_s390" | |
7501 | ;; | |
7502 | sparc64-*linux*) | |
7503 | LD="${LD-ld} -m elf32_sparc" | |
7504 | ;; | |
7505 | esac | |
7506 | ;; | |
7507 | *64-bit*) | |
7508 | case $host in | |
7509 | x86_64-*kfreebsd*-gnu) | |
7510 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7511 | ;; | |
7512 | x86_64-*linux*) | |
7513 | LD="${LD-ld} -m elf_x86_64" | |
7514 | ;; | |
7515 | powerpcle-*) | |
7516 | LD="${LD-ld} -m elf64lppc" | |
7517 | ;; | |
7518 | powerpc-*) | |
7519 | LD="${LD-ld} -m elf64ppc" | |
7520 | ;; | |
7521 | s390*-*linux*|s390*-*tpf*) | |
7522 | LD="${LD-ld} -m elf64_s390" | |
7523 | ;; | |
7524 | sparc*-*linux*) | |
7525 | LD="${LD-ld} -m elf64_sparc" | |
7526 | ;; | |
7527 | esac | |
7528 | ;; | |
7529 | esac | |
7530 | fi | |
7531 | rm -rf conftest* | |
7532 | ;; | |
c52df125 | 7533 | |
eec2776c AJ |
7534 | *-*-sco3.2v5*) |
7535 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7536 | SAVE_CFLAGS="$CFLAGS" | |
7537 | CFLAGS="$CFLAGS -belf" | |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7539 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7540 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7541 | $as_echo_n "(cached) " >&6 | |
7542 | else | |
7543 | ac_ext=c | |
7544 | ac_cpp='$CPP $CPPFLAGS' | |
7545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7548 | |
eec2776c AJ |
7549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7550 | /* end confdefs.h. */ | |
c52df125 | 7551 | |
eec2776c AJ |
7552 | int |
7553 | main () | |
7554 | { | |
c52df125 | 7555 | |
eec2776c AJ |
7556 | ; |
7557 | return 0; | |
7558 | } | |
7559 | _ACEOF | |
7560 | if ac_fn_c_try_link "$LINENO"; then : | |
7561 | lt_cv_cc_needs_belf=yes | |
c52df125 | 7562 | else |
eec2776c | 7563 | lt_cv_cc_needs_belf=no |
c52df125 | 7564 | fi |
eec2776c AJ |
7565 | rm -f core conftest.err conftest.$ac_objext \ |
7566 | conftest$ac_exeext conftest.$ac_ext | |
7567 | ac_ext=c | |
7568 | ac_cpp='$CPP $CPPFLAGS' | |
7569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7572 | |
eec2776c AJ |
7573 | fi |
7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7575 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7576 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7577 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7578 | CFLAGS="$SAVE_CFLAGS" | |
7579 | fi | |
7580 | ;; | |
7581 | *-*solaris*) | |
7582 | # Find out which ABI we are using. | |
7583 | echo 'int i;' > conftest.$ac_ext | |
7584 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7585 | (eval $ac_compile) 2>&5 | |
7586 | ac_status=$? | |
7587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7588 | test $ac_status = 0; }; then | |
7589 | case `/usr/bin/file conftest.o` in | |
7590 | *64-bit*) | |
7591 | case $lt_cv_prog_gnu_ld in | |
7592 | yes*) | |
7593 | case $host in | |
7594 | i?86-*-solaris*) | |
7595 | LD="${LD-ld} -m elf_x86_64" | |
7596 | ;; | |
7597 | sparc*-*-solaris*) | |
7598 | LD="${LD-ld} -m elf64_sparc" | |
7599 | ;; | |
7600 | esac | |
7601 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7602 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7603 | LD="${LD-ld}_sol2" | |
7604 | fi | |
7605 | ;; | |
7606 | *) | |
7607 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7608 | LD="${LD-ld} -64" | |
7609 | fi | |
7610 | ;; | |
7611 | esac | |
7612 | ;; | |
7613 | esac | |
7614 | fi | |
7615 | rm -rf conftest* | |
7616 | ;; | |
7617 | esac | |
c52df125 | 7618 | |
eec2776c | 7619 | need_locks="$enable_libtool_lock" |
c52df125 | 7620 | |
eec2776c AJ |
7621 | if test -n "$ac_tool_prefix"; then |
7622 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7623 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7625 | $as_echo_n "checking for $ac_word... " >&6; } | |
7626 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7627 | $as_echo_n "(cached) " >&6 | |
7628 | else | |
7629 | if test -n "$MANIFEST_TOOL"; then | |
7630 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7631 | else | |
7632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7633 | for as_dir in $PATH | |
7634 | do | |
7635 | IFS=$as_save_IFS | |
7636 | test -z "$as_dir" && as_dir=. | |
7637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7639 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7641 | break 2 | |
7642 | fi | |
7643 | done | |
7644 | done | |
7645 | IFS=$as_save_IFS | |
c52df125 | 7646 | |
eec2776c AJ |
7647 | fi |
7648 | fi | |
7649 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7650 | if test -n "$MANIFEST_TOOL"; then | |
7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7652 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7653 | else | |
7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7655 | $as_echo "no" >&6; } | |
7656 | fi | |
c52df125 AC |
7657 | |
7658 | ||
eec2776c AJ |
7659 | fi |
7660 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7661 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7662 | # Extract the first word of "mt", so it can be a program name with args. | |
7663 | set dummy mt; ac_word=$2 | |
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7665 | $as_echo_n "checking for $ac_word... " >&6; } | |
7666 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7667 | $as_echo_n "(cached) " >&6 | |
7668 | else | |
7669 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7670 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7671 | else | |
7672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7673 | for as_dir in $PATH | |
7674 | do | |
7675 | IFS=$as_save_IFS | |
7676 | test -z "$as_dir" && as_dir=. | |
7677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7679 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7681 | break 2 | |
7682 | fi | |
7683 | done | |
7684 | done | |
7685 | IFS=$as_save_IFS | |
c52df125 | 7686 | |
eec2776c AJ |
7687 | fi |
7688 | fi | |
7689 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7690 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7692 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7693 | else | |
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7695 | $as_echo "no" >&6; } | |
7696 | fi | |
c52df125 | 7697 | |
eec2776c AJ |
7698 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7699 | MANIFEST_TOOL=":" | |
7700 | else | |
7701 | case $cross_compiling:$ac_tool_warned in | |
7702 | yes:) | |
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7704 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7705 | ac_tool_warned=yes ;; | |
7706 | esac | |
7707 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7708 | fi | |
7709 | else | |
7710 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7711 | fi | |
c52df125 | 7712 | |
eec2776c AJ |
7713 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7715 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7716 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7717 | $as_echo_n "(cached) " >&6 | |
7718 | else | |
7719 | lt_cv_path_mainfest_tool=no | |
7720 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7721 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7722 | cat conftest.err >&5 | |
7723 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7724 | lt_cv_path_mainfest_tool=yes | |
7725 | fi | |
7726 | rm -f conftest* | |
7727 | fi | |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7729 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7730 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7731 | MANIFEST_TOOL=: | |
7732 | fi | |
c52df125 AC |
7733 | |
7734 | ||
7735 | ||
7736 | ||
7737 | ||
7738 | ||
eec2776c AJ |
7739 | case $host_os in |
7740 | rhapsody* | darwin*) | |
7741 | if test -n "$ac_tool_prefix"; then | |
7742 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7743 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7745 | $as_echo_n "checking for $ac_word... " >&6; } | |
7746 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7747 | $as_echo_n "(cached) " >&6 | |
7748 | else | |
7749 | if test -n "$DSYMUTIL"; then | |
7750 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7751 | else | |
7752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7753 | for as_dir in $PATH | |
7754 | do | |
7755 | IFS=$as_save_IFS | |
7756 | test -z "$as_dir" && as_dir=. | |
7757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7759 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7761 | break 2 | |
7762 | fi | |
7763 | done | |
7764 | done | |
7765 | IFS=$as_save_IFS | |
c52df125 | 7766 | |
eec2776c AJ |
7767 | fi |
7768 | fi | |
7769 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7770 | if test -n "$DSYMUTIL"; then | |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7772 | $as_echo "$DSYMUTIL" >&6; } | |
7773 | else | |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7775 | $as_echo "no" >&6; } | |
7776 | fi | |
c52df125 AC |
7777 | |
7778 | ||
c52df125 | 7779 | fi |
eec2776c AJ |
7780 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7781 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7782 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7783 | set dummy dsymutil; ac_word=$2 | |
7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7785 | $as_echo_n "checking for $ac_word... " >&6; } | |
7786 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
c52df125 AC |
7787 | $as_echo_n "(cached) " >&6 |
7788 | else | |
eec2776c AJ |
7789 | if test -n "$ac_ct_DSYMUTIL"; then |
7790 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
c52df125 | 7791 | else |
eec2776c AJ |
7792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7793 | for as_dir in $PATH | |
7794 | do | |
7795 | IFS=$as_save_IFS | |
7796 | test -z "$as_dir" && as_dir=. | |
7797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7799 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7801 | break 2 | |
7802 | fi | |
7803 | done | |
7804 | done | |
7805 | IFS=$as_save_IFS | |
7806 | ||
c52df125 | 7807 | fi |
c52df125 | 7808 | fi |
eec2776c AJ |
7809 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7810 | if test -n "$ac_ct_DSYMUTIL"; then | |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7812 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7813 | else | |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7815 | $as_echo "no" >&6; } | |
7816 | fi | |
c52df125 | 7817 | |
eec2776c AJ |
7818 | if test "x$ac_ct_DSYMUTIL" = x; then |
7819 | DSYMUTIL=":" | |
7820 | else | |
7821 | case $cross_compiling:$ac_tool_warned in | |
7822 | yes:) | |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7824 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7825 | ac_tool_warned=yes ;; | |
c52df125 | 7826 | esac |
eec2776c AJ |
7827 | DSYMUTIL=$ac_ct_DSYMUTIL |
7828 | fi | |
7829 | else | |
7830 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7831 | fi | |
c52df125 | 7832 | |
eec2776c AJ |
7833 | if test -n "$ac_tool_prefix"; then |
7834 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7835 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7837 | $as_echo_n "checking for $ac_word... " >&6; } | |
7838 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
c52df125 AC |
7839 | $as_echo_n "(cached) " >&6 |
7840 | else | |
eec2776c AJ |
7841 | if test -n "$NMEDIT"; then |
7842 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7843 | else | |
7844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7845 | for as_dir in $PATH | |
7846 | do | |
7847 | IFS=$as_save_IFS | |
7848 | test -z "$as_dir" && as_dir=. | |
7849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7851 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7853 | break 2 | |
7854 | fi | |
7855 | done | |
c52df125 | 7856 | done |
eec2776c | 7857 | IFS=$as_save_IFS |
c52df125 | 7858 | |
eec2776c AJ |
7859 | fi |
7860 | fi | |
7861 | NMEDIT=$ac_cv_prog_NMEDIT | |
7862 | if test -n "$NMEDIT"; then | |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7864 | $as_echo "$NMEDIT" >&6; } | |
c52df125 AC |
7865 | else |
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7867 | $as_echo "no" >&6; } | |
7868 | fi | |
7869 | ||
7870 | ||
eec2776c AJ |
7871 | fi |
7872 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7873 | ac_ct_NMEDIT=$NMEDIT | |
7874 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7875 | set dummy nmedit; ac_word=$2 | |
7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7877 | $as_echo_n "checking for $ac_word... " >&6; } | |
7878 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
c52df125 AC |
7879 | $as_echo_n "(cached) " >&6 |
7880 | else | |
eec2776c AJ |
7881 | if test -n "$ac_ct_NMEDIT"; then |
7882 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7883 | else | |
7884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7885 | for as_dir in $PATH | |
7886 | do | |
7887 | IFS=$as_save_IFS | |
7888 | test -z "$as_dir" && as_dir=. | |
7889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7891 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7893 | break 2 | |
7894 | fi | |
7895 | done | |
c52df125 | 7896 | done |
eec2776c | 7897 | IFS=$as_save_IFS |
c52df125 | 7898 | |
eec2776c AJ |
7899 | fi |
7900 | fi | |
7901 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7902 | if test -n "$ac_ct_NMEDIT"; then | |
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7904 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
c52df125 AC |
7905 | else |
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7907 | $as_echo "no" >&6; } | |
7908 | fi | |
7909 | ||
eec2776c AJ |
7910 | if test "x$ac_ct_NMEDIT" = x; then |
7911 | NMEDIT=":" | |
c52df125 | 7912 | else |
eec2776c AJ |
7913 | case $cross_compiling:$ac_tool_warned in |
7914 | yes:) | |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7916 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7917 | ac_tool_warned=yes ;; | |
7918 | esac | |
7919 | NMEDIT=$ac_ct_NMEDIT | |
c52df125 | 7920 | fi |
eec2776c AJ |
7921 | else |
7922 | NMEDIT="$ac_cv_prog_NMEDIT" | |
c52df125 AC |
7923 | fi |
7924 | ||
eec2776c AJ |
7925 | if test -n "$ac_tool_prefix"; then |
7926 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7927 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7929 | $as_echo_n "checking for $ac_word... " >&6; } | |
7930 | if ${ac_cv_prog_LIPO+:} false; then : | |
7931 | $as_echo_n "(cached) " >&6 | |
7932 | else | |
7933 | if test -n "$LIPO"; then | |
7934 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7935 | else | |
7936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7937 | for as_dir in $PATH | |
7938 | do | |
7939 | IFS=$as_save_IFS | |
7940 | test -z "$as_dir" && as_dir=. | |
7941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7942 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7943 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7945 | break 2 | |
7946 | fi | |
7947 | done | |
7948 | done | |
7949 | IFS=$as_save_IFS | |
c52df125 | 7950 | |
eec2776c AJ |
7951 | fi |
7952 | fi | |
7953 | LIPO=$ac_cv_prog_LIPO | |
7954 | if test -n "$LIPO"; then | |
7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7956 | $as_echo "$LIPO" >&6; } | |
7957 | else | |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7959 | $as_echo "no" >&6; } | |
7960 | fi | |
c52df125 | 7961 | |
c52df125 | 7962 | |
eec2776c AJ |
7963 | fi |
7964 | if test -z "$ac_cv_prog_LIPO"; then | |
7965 | ac_ct_LIPO=$LIPO | |
7966 | # Extract the first word of "lipo", so it can be a program name with args. | |
7967 | set dummy lipo; ac_word=$2 | |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7969 | $as_echo_n "checking for $ac_word... " >&6; } | |
7970 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
c52df125 AC |
7971 | $as_echo_n "(cached) " >&6 |
7972 | else | |
eec2776c AJ |
7973 | if test -n "$ac_ct_LIPO"; then |
7974 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7975 | else | |
7976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7977 | for as_dir in $PATH | |
7978 | do | |
7979 | IFS=$as_save_IFS | |
7980 | test -z "$as_dir" && as_dir=. | |
7981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7983 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7985 | break 2 | |
7986 | fi | |
7987 | done | |
7988 | done | |
7989 | IFS=$as_save_IFS | |
c52df125 AC |
7990 | |
7991 | fi | |
eec2776c AJ |
7992 | fi |
7993 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7994 | if test -n "$ac_ct_LIPO"; then | |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7996 | $as_echo "$ac_ct_LIPO" >&6; } | |
c52df125 | 7997 | else |
eec2776c AJ |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7999 | $as_echo "no" >&6; } | |
c52df125 AC |
8000 | fi |
8001 | ||
eec2776c AJ |
8002 | if test "x$ac_ct_LIPO" = x; then |
8003 | LIPO=":" | |
8004 | else | |
8005 | case $cross_compiling:$ac_tool_warned in | |
8006 | yes:) | |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8009 | ac_tool_warned=yes ;; | |
8010 | esac | |
8011 | LIPO=$ac_ct_LIPO | |
8012 | fi | |
8013 | else | |
8014 | LIPO="$ac_cv_prog_LIPO" | |
c52df125 AC |
8015 | fi |
8016 | ||
eec2776c AJ |
8017 | if test -n "$ac_tool_prefix"; then |
8018 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8019 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8021 | $as_echo_n "checking for $ac_word... " >&6; } | |
8022 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8023 | $as_echo_n "(cached) " >&6 | |
8024 | else | |
8025 | if test -n "$OTOOL"; then | |
8026 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8027 | else | |
8028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8029 | for as_dir in $PATH | |
8030 | do | |
8031 | IFS=$as_save_IFS | |
8032 | test -z "$as_dir" && as_dir=. | |
8033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8035 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8037 | break 2 | |
8038 | fi | |
8039 | done | |
8040 | done | |
8041 | IFS=$as_save_IFS | |
c52df125 | 8042 | |
eec2776c AJ |
8043 | fi |
8044 | fi | |
8045 | OTOOL=$ac_cv_prog_OTOOL | |
8046 | if test -n "$OTOOL"; then | |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8048 | $as_echo "$OTOOL" >&6; } | |
8049 | else | |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8051 | $as_echo "no" >&6; } | |
8052 | fi | |
c52df125 AC |
8053 | |
8054 | ||
eec2776c AJ |
8055 | fi |
8056 | if test -z "$ac_cv_prog_OTOOL"; then | |
8057 | ac_ct_OTOOL=$OTOOL | |
8058 | # Extract the first word of "otool", so it can be a program name with args. | |
8059 | set dummy otool; ac_word=$2 | |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8061 | $as_echo_n "checking for $ac_word... " >&6; } | |
8062 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8063 | $as_echo_n "(cached) " >&6 | |
8064 | else | |
8065 | if test -n "$ac_ct_OTOOL"; then | |
8066 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8067 | else | |
8068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8069 | for as_dir in $PATH | |
8070 | do | |
8071 | IFS=$as_save_IFS | |
8072 | test -z "$as_dir" && as_dir=. | |
8073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8075 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8077 | break 2 | |
8078 | fi | |
8079 | done | |
8080 | done | |
8081 | IFS=$as_save_IFS | |
c52df125 | 8082 | |
eec2776c AJ |
8083 | fi |
8084 | fi | |
8085 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8086 | if test -n "$ac_ct_OTOOL"; then | |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8088 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8089 | else | |
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8091 | $as_echo "no" >&6; } | |
8092 | fi | |
c52df125 | 8093 | |
eec2776c AJ |
8094 | if test "x$ac_ct_OTOOL" = x; then |
8095 | OTOOL=":" | |
8096 | else | |
8097 | case $cross_compiling:$ac_tool_warned in | |
8098 | yes:) | |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8101 | ac_tool_warned=yes ;; | |
8102 | esac | |
8103 | OTOOL=$ac_ct_OTOOL | |
8104 | fi | |
8105 | else | |
8106 | OTOOL="$ac_cv_prog_OTOOL" | |
8107 | fi | |
c52df125 | 8108 | |
eec2776c AJ |
8109 | if test -n "$ac_tool_prefix"; then |
8110 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8111 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8113 | $as_echo_n "checking for $ac_word... " >&6; } | |
8114 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8115 | $as_echo_n "(cached) " >&6 | |
8116 | else | |
8117 | if test -n "$OTOOL64"; then | |
8118 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8119 | else | |
8120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8121 | for as_dir in $PATH | |
8122 | do | |
8123 | IFS=$as_save_IFS | |
8124 | test -z "$as_dir" && as_dir=. | |
8125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8127 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8129 | break 2 | |
8130 | fi | |
8131 | done | |
8132 | done | |
8133 | IFS=$as_save_IFS | |
c52df125 | 8134 | |
eec2776c AJ |
8135 | fi |
8136 | fi | |
8137 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8138 | if test -n "$OTOOL64"; then | |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8140 | $as_echo "$OTOOL64" >&6; } | |
8141 | else | |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8143 | $as_echo "no" >&6; } | |
8144 | fi | |
c52df125 | 8145 | |
c52df125 | 8146 | |
eec2776c AJ |
8147 | fi |
8148 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8149 | ac_ct_OTOOL64=$OTOOL64 | |
8150 | # Extract the first word of "otool64", so it can be a program name with args. | |
8151 | set dummy otool64; ac_word=$2 | |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8153 | $as_echo_n "checking for $ac_word... " >&6; } | |
8154 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8155 | $as_echo_n "(cached) " >&6 | |
8156 | else | |
8157 | if test -n "$ac_ct_OTOOL64"; then | |
8158 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8159 | else | |
8160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8161 | for as_dir in $PATH | |
8162 | do | |
8163 | IFS=$as_save_IFS | |
8164 | test -z "$as_dir" && as_dir=. | |
8165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8167 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8169 | break 2 | |
8170 | fi | |
8171 | done | |
8172 | done | |
8173 | IFS=$as_save_IFS | |
c52df125 | 8174 | |
eec2776c AJ |
8175 | fi |
8176 | fi | |
8177 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8178 | if test -n "$ac_ct_OTOOL64"; then | |
8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8180 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8181 | else | |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8183 | $as_echo "no" >&6; } | |
8184 | fi | |
c52df125 | 8185 | |
eec2776c AJ |
8186 | if test "x$ac_ct_OTOOL64" = x; then |
8187 | OTOOL64=":" | |
8188 | else | |
8189 | case $cross_compiling:$ac_tool_warned in | |
8190 | yes:) | |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8192 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8193 | ac_tool_warned=yes ;; | |
8194 | esac | |
8195 | OTOOL64=$ac_ct_OTOOL64 | |
8196 | fi | |
8197 | else | |
8198 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8199 | fi | |
c52df125 | 8200 | |
c52df125 | 8201 | |
c52df125 | 8202 | |
c52df125 | 8203 | |
c52df125 | 8204 | |
c52df125 | 8205 | |
c52df125 | 8206 | |
c52df125 | 8207 | |
c52df125 | 8208 | |
c52df125 | 8209 | |
c52df125 | 8210 | |
c52df125 | 8211 | |
c52df125 | 8212 | |
c52df125 | 8213 | |
c52df125 | 8214 | |
c52df125 | 8215 | |
c52df125 | 8216 | |
c52df125 | 8217 | |
c52df125 | 8218 | |
c52df125 | 8219 | |
c52df125 | 8220 | |
c52df125 | 8221 | |
c52df125 | 8222 | |
c52df125 | 8223 | |
c52df125 | 8224 | |
c52df125 | 8225 | |
c52df125 | 8226 | |
eec2776c AJ |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8228 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8229 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
c52df125 AC |
8230 | $as_echo_n "(cached) " >&6 |
8231 | else | |
eec2776c AJ |
8232 | lt_cv_apple_cc_single_mod=no |
8233 | if test -z "${LT_MULTI_MODULE}"; then | |
8234 | # By default we will add the -single_module flag. You can override | |
8235 | # by either setting the environment variable LT_MULTI_MODULE | |
8236 | # non-empty at configure time, or by adding -multi_module to the | |
8237 | # link flags. | |
8238 | rm -rf libconftest.dylib* | |
8239 | echo "int foo(void){return 1;}" > conftest.c | |
8240 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8241 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8242 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8243 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8244 | _lt_result=$? | |
8245 | # If there is a non-empty error log, and "single_module" | |
8246 | # appears in it, assume the flag caused a linker warning | |
8247 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8248 | cat conftest.err >&5 | |
8249 | # Otherwise, if the output was created with a 0 exit code from | |
8250 | # the compiler, it worked. | |
8251 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8252 | lt_cv_apple_cc_single_mod=yes | |
8253 | else | |
8254 | cat conftest.err >&5 | |
8255 | fi | |
8256 | rm -rf libconftest.dylib* | |
8257 | rm -f conftest.* | |
8258 | fi | |
c52df125 | 8259 | fi |
eec2776c AJ |
8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8261 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
c52df125 | 8262 | |
eec2776c AJ |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8264 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8265 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
c52df125 AC |
8266 | $as_echo_n "(cached) " >&6 |
8267 | else | |
eec2776c AJ |
8268 | lt_cv_ld_exported_symbols_list=no |
8269 | save_LDFLAGS=$LDFLAGS | |
8270 | echo "_main" > conftest.sym | |
8271 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8273 | /* end confdefs.h. */ | |
c52df125 | 8274 | |
eec2776c AJ |
8275 | int |
8276 | main () | |
8277 | { | |
c52df125 | 8278 | |
eec2776c AJ |
8279 | ; |
8280 | return 0; | |
8281 | } | |
8282 | _ACEOF | |
8283 | if ac_fn_c_try_link "$LINENO"; then : | |
8284 | lt_cv_ld_exported_symbols_list=yes | |
c52df125 | 8285 | else |
eec2776c | 8286 | lt_cv_ld_exported_symbols_list=no |
c52df125 | 8287 | fi |
eec2776c AJ |
8288 | rm -f core conftest.err conftest.$ac_objext \ |
8289 | conftest$ac_exeext conftest.$ac_ext | |
8290 | LDFLAGS="$save_LDFLAGS" | |
c52df125 AC |
8291 | |
8292 | fi | |
eec2776c AJ |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8294 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
c52df125 | 8295 | |
eec2776c AJ |
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8297 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8298 | if ${lt_cv_ld_force_load+:} false; then : | |
c52df125 AC |
8299 | $as_echo_n "(cached) " >&6 |
8300 | else | |
eec2776c AJ |
8301 | lt_cv_ld_force_load=no |
8302 | cat > conftest.c << _LT_EOF | |
8303 | int forced_loaded() { return 2;} | |
8304 | _LT_EOF | |
8305 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8306 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8307 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8308 | $AR cru libconftest.a conftest.o 2>&5 | |
8309 | echo "$RANLIB libconftest.a" >&5 | |
8310 | $RANLIB libconftest.a 2>&5 | |
8311 | cat > conftest.c << _LT_EOF | |
8312 | int main() { return 0;} | |
8313 | _LT_EOF | |
8314 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8315 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8316 | _lt_result=$? | |
8317 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8318 | cat conftest.err >&5 | |
8319 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8320 | lt_cv_ld_force_load=yes | |
8321 | else | |
8322 | cat conftest.err >&5 | |
8323 | fi | |
8324 | rm -f conftest.err libconftest.a conftest conftest.c | |
8325 | rm -rf conftest.dSYM | |
c52df125 AC |
8326 | |
8327 | fi | |
eec2776c AJ |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8329 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8330 | case $host_os in | |
8331 | rhapsody* | darwin1.[012]) | |
8332 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8333 | darwin1.*) | |
8334 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8335 | darwin*) # darwin 5.x on | |
8336 | # if running on 10.5 or later, the deployment target defaults | |
8337 | # to the OS version, if on x86, and 10.4, the deployment | |
8338 | # target defaults to 10.4. Don't you love it? | |
8339 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8340 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8341 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8342 | 10.[012]*) | |
8343 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8344 | 10.*) | |
8345 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8346 | esac | |
8347 | ;; | |
8348 | esac | |
8349 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8350 | _lt_dar_single_mod='$single_module' | |
8351 | fi | |
8352 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8353 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8354 | else | |
8355 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8356 | fi | |
8357 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8358 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8359 | else | |
8360 | _lt_dsymutil= | |
8361 | fi | |
8362 | ;; | |
8363 | esac | |
c52df125 | 8364 | |
eec2776c AJ |
8365 | for ac_header in dlfcn.h |
8366 | do : | |
8367 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8368 | " | |
8369 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8370 | cat >>confdefs.h <<_ACEOF | |
8371 | #define HAVE_DLFCN_H 1 | |
8372 | _ACEOF | |
c52df125 | 8373 | |
eec2776c | 8374 | fi |
c52df125 | 8375 | |
eec2776c | 8376 | done |
c52df125 AC |
8377 | |
8378 | ||
8379 | ||
8380 | ||
8381 | ||
eec2776c AJ |
8382 | # Set options |
8383 | enable_dlopen=yes | |
8384 | # Check whether --enable-static was given. | |
8385 | if test "${enable_static+set}" = set; then : | |
8386 | enableval=$enable_static; p=${PACKAGE-default} | |
8387 | case $enableval in | |
8388 | yes) enable_static=yes ;; | |
8389 | no) enable_static=no ;; | |
8390 | *) | |
8391 | enable_static=no | |
8392 | # Look at the argument we got. We use all the common list separators. | |
8393 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8394 | for pkg in $enableval; do | |
8395 | IFS="$lt_save_ifs" | |
8396 | if test "X$pkg" = "X$p"; then | |
8397 | enable_static=yes | |
8398 | fi | |
8399 | done | |
8400 | IFS="$lt_save_ifs" | |
8401 | ;; | |
8402 | esac | |
c52df125 | 8403 | else |
eec2776c | 8404 | enable_static=no |
c52df125 | 8405 | fi |
c52df125 AC |
8406 | |
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
c52df125 | 8412 | |
c52df125 | 8413 | |
c52df125 AC |
8414 | |
8415 | ||
8416 | ||
eec2776c | 8417 | enable_win32_dll=no |
c52df125 | 8418 | |
eec2776c AJ |
8419 | |
8420 | # Check whether --enable-shared was given. | |
8421 | if test "${enable_shared+set}" = set; then : | |
8422 | enableval=$enable_shared; p=${PACKAGE-default} | |
8423 | case $enableval in | |
8424 | yes) enable_shared=yes ;; | |
8425 | no) enable_shared=no ;; | |
8426 | *) | |
8427 | enable_shared=no | |
8428 | # Look at the argument we got. We use all the common list separators. | |
8429 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8430 | for pkg in $enableval; do | |
8431 | IFS="$lt_save_ifs" | |
8432 | if test "X$pkg" = "X$p"; then | |
8433 | enable_shared=yes | |
8434 | fi | |
8435 | done | |
8436 | IFS="$lt_save_ifs" | |
8437 | ;; | |
8438 | esac | |
c52df125 | 8439 | else |
eec2776c | 8440 | enable_shared=yes |
c52df125 AC |
8441 | fi |
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
c52df125 | 8448 | |
c52df125 | 8449 | |
c52df125 | 8450 | |
c52df125 | 8451 | |
eec2776c AJ |
8452 | |
8453 | # Check whether --with-pic was given. | |
8454 | if test "${with_pic+set}" = set; then : | |
8455 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8456 | case $withval in | |
8457 | yes|no) pic_mode=$withval ;; | |
8458 | *) | |
8459 | pic_mode=default | |
8460 | # Look at the argument we got. We use all the common list separators. | |
8461 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8462 | for lt_pkg in $withval; do | |
8463 | IFS="$lt_save_ifs" | |
8464 | if test "X$lt_pkg" = "X$lt_p"; then | |
8465 | pic_mode=yes | |
8466 | fi | |
8467 | done | |
8468 | IFS="$lt_save_ifs" | |
8469 | ;; | |
c52df125 | 8470 | esac |
eec2776c AJ |
8471 | else |
8472 | pic_mode=default | |
8473 | fi | |
c52df125 | 8474 | |
c52df125 | 8475 | |
eec2776c | 8476 | test -z "$pic_mode" && pic_mode=default |
c52df125 | 8477 | |
c52df125 | 8478 | |
c52df125 | 8479 | |
c52df125 | 8480 | |
c52df125 | 8481 | |
c52df125 | 8482 | |
c52df125 | 8483 | |
eec2776c AJ |
8484 | # Check whether --enable-fast-install was given. |
8485 | if test "${enable_fast_install+set}" = set; then : | |
8486 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8487 | case $enableval in | |
8488 | yes) enable_fast_install=yes ;; | |
8489 | no) enable_fast_install=no ;; | |
8490 | *) | |
8491 | enable_fast_install=no | |
8492 | # Look at the argument we got. We use all the common list separators. | |
8493 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8494 | for pkg in $enableval; do | |
8495 | IFS="$lt_save_ifs" | |
8496 | if test "X$pkg" = "X$p"; then | |
8497 | enable_fast_install=yes | |
8498 | fi | |
8499 | done | |
8500 | IFS="$lt_save_ifs" | |
c52df125 | 8501 | ;; |
eec2776c AJ |
8502 | esac |
8503 | else | |
8504 | enable_fast_install=yes | |
8505 | fi | |
c52df125 | 8506 | |
c52df125 | 8507 | |
c52df125 | 8508 | |
c52df125 | 8509 | |
c52df125 | 8510 | |
c52df125 | 8511 | |
c52df125 | 8512 | |
c52df125 | 8513 | |
c52df125 | 8514 | |
c52df125 | 8515 | |
c52df125 | 8516 | |
eec2776c AJ |
8517 | # This can be used to rebuild libtool when needed |
8518 | LIBTOOL_DEPS="$ltmain" | |
c52df125 | 8519 | |
eec2776c AJ |
8520 | # Always use our own libtool. |
8521 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
c52df125 | 8522 | |
c52df125 | 8523 | |
c52df125 | 8524 | |
c52df125 | 8525 | |
c52df125 | 8526 | |
c52df125 | 8527 | |
c52df125 | 8528 | |
c52df125 | 8529 | |
c52df125 | 8530 | |
c52df125 | 8531 | |
c52df125 | 8532 | |
c52df125 | 8533 | |
c52df125 | 8534 | |
c52df125 | 8535 | |
c52df125 | 8536 | |
c52df125 | 8537 | |
c52df125 | 8538 | |
c52df125 | 8539 | |
c52df125 | 8540 | |
c52df125 | 8541 | |
c52df125 | 8542 | |
c52df125 | 8543 | |
c52df125 | 8544 | |
c52df125 | 8545 | |
c52df125 | 8546 | |
c52df125 | 8547 | |
c52df125 AC |
8548 | |
8549 | ||
c52df125 | 8550 | |
c52df125 | 8551 | |
eec2776c | 8552 | test -z "$LN_S" && LN_S="ln -s" |
c52df125 | 8553 | |
c52df125 | 8554 | |
c52df125 | 8555 | |
c52df125 | 8556 | |
c52df125 | 8557 | |
c52df125 | 8558 | |
c52df125 | 8559 | |
c52df125 | 8560 | |
c52df125 | 8561 | |
c52df125 | 8562 | |
c52df125 | 8563 | |
c52df125 | 8564 | |
c52df125 | 8565 | |
c52df125 | 8566 | |
eec2776c AJ |
8567 | if test -n "${ZSH_VERSION+set}" ; then |
8568 | setopt NO_GLOB_SUBST | |
8569 | fi | |
c52df125 | 8570 | |
eec2776c AJ |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8572 | $as_echo_n "checking for objdir... " >&6; } | |
8573 | if ${lt_cv_objdir+:} false; then : | |
c52df125 AC |
8574 | $as_echo_n "(cached) " >&6 |
8575 | else | |
eec2776c AJ |
8576 | rm -f .libs 2>/dev/null |
8577 | mkdir .libs 2>/dev/null | |
8578 | if test -d .libs; then | |
8579 | lt_cv_objdir=.libs | |
c52df125 | 8580 | else |
eec2776c AJ |
8581 | # MS-DOS does not allow filenames that begin with a dot. |
8582 | lt_cv_objdir=_libs | |
c52df125 | 8583 | fi |
eec2776c | 8584 | rmdir .libs 2>/dev/null |
c52df125 | 8585 | fi |
eec2776c AJ |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8587 | $as_echo "$lt_cv_objdir" >&6; } | |
8588 | objdir=$lt_cv_objdir | |
c52df125 | 8589 | |
c52df125 | 8590 | |
c52df125 | 8591 | |
c52df125 | 8592 | |
c52df125 | 8593 | |
eec2776c AJ |
8594 | cat >>confdefs.h <<_ACEOF |
8595 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8596 | _ACEOF | |
c52df125 | 8597 | |
c52df125 | 8598 | |
c52df125 | 8599 | |
c52df125 | 8600 | |
eec2776c AJ |
8601 | case $host_os in |
8602 | aix3*) | |
8603 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8604 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8605 | # vanish in a puff of smoke. | |
8606 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8607 | COLLECT_NAMES= | |
8608 | export COLLECT_NAMES | |
8609 | fi | |
8610 | ;; | |
8611 | esac | |
c52df125 | 8612 | |
eec2776c AJ |
8613 | # Global variables: |
8614 | ofile=libtool | |
8615 | can_build_shared=yes | |
c52df125 | 8616 | |
eec2776c AJ |
8617 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8618 | # which needs '.lib'). | |
8619 | libext=a | |
c52df125 | 8620 | |
eec2776c | 8621 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
c52df125 | 8622 | |
eec2776c AJ |
8623 | old_CC="$CC" |
8624 | old_CFLAGS="$CFLAGS" | |
c52df125 | 8625 | |
eec2776c AJ |
8626 | # Set sane defaults for various variables |
8627 | test -z "$CC" && CC=cc | |
8628 | test -z "$LTCC" && LTCC=$CC | |
8629 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8630 | test -z "$LD" && LD=ld | |
8631 | test -z "$ac_objext" && ac_objext=o | |
c52df125 | 8632 | |
eec2776c AJ |
8633 | for cc_temp in $compiler""; do |
8634 | case $cc_temp in | |
8635 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8636 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8637 | \-*) ;; | |
8638 | *) break;; | |
8639 | esac | |
8640 | done | |
8641 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
c52df125 | 8642 | |
c52df125 | 8643 | |
eec2776c AJ |
8644 | # Only perform the check for file, if the check method requires it |
8645 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8646 | case $deplibs_check_method in | |
8647 | file_magic*) | |
8648 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8650 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8651 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8652 | $as_echo_n "(cached) " >&6 | |
8653 | else | |
8654 | case $MAGIC_CMD in | |
8655 | [\\/*] | ?:[\\/]*) | |
8656 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8657 | ;; | |
8658 | *) | |
8659 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8660 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8661 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8662 | for ac_dir in $ac_dummy; do | |
8663 | IFS="$lt_save_ifs" | |
8664 | test -z "$ac_dir" && ac_dir=. | |
8665 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8666 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8667 | if test -n "$file_magic_test_file"; then | |
8668 | case $deplibs_check_method in | |
8669 | "file_magic "*) | |
8670 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8671 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8672 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8673 | $EGREP "$file_magic_regex" > /dev/null; then | |
8674 | : | |
8675 | else | |
8676 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8677 | |
eec2776c AJ |
8678 | *** Warning: the command libtool uses to detect shared libraries, |
8679 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8680 | *** The result is that libtool may fail to recognize shared libraries | |
8681 | *** as such. This will affect the creation of libtool libraries that | |
8682 | *** depend on shared libraries, but programs linked with such libtool | |
8683 | *** libraries will work regardless of this problem. Nevertheless, you | |
8684 | *** may want to report the problem to your system manager and/or to | |
8685 | *** bug-libtool@gnu.org | |
c52df125 | 8686 | |
eec2776c AJ |
8687 | _LT_EOF |
8688 | fi ;; | |
8689 | esac | |
8690 | fi | |
8691 | break | |
c52df125 | 8692 | fi |
eec2776c AJ |
8693 | done |
8694 | IFS="$lt_save_ifs" | |
8695 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8696 | ;; | |
8697 | esac | |
8698 | fi | |
c52df125 | 8699 | |
eec2776c AJ |
8700 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8701 | if test -n "$MAGIC_CMD"; then | |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8703 | $as_echo "$MAGIC_CMD" >&6; } | |
8704 | else | |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8706 | $as_echo "no" >&6; } | |
8707 | fi | |
c52df125 AC |
8708 | |
8709 | ||
8710 | ||
8711 | ||
8712 | ||
eec2776c AJ |
8713 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8714 | if test -n "$ac_tool_prefix"; then | |
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8716 | $as_echo_n "checking for file... " >&6; } | |
8717 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8718 | $as_echo_n "(cached) " >&6 | |
8719 | else | |
8720 | case $MAGIC_CMD in | |
8721 | [\\/*] | ?:[\\/]*) | |
8722 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8723 | ;; | |
8724 | *) | |
8725 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8726 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8727 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8728 | for ac_dir in $ac_dummy; do | |
8729 | IFS="$lt_save_ifs" | |
8730 | test -z "$ac_dir" && ac_dir=. | |
8731 | if test -f $ac_dir/file; then | |
8732 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8733 | if test -n "$file_magic_test_file"; then | |
8734 | case $deplibs_check_method in | |
8735 | "file_magic "*) | |
8736 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8737 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8738 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8739 | $EGREP "$file_magic_regex" > /dev/null; then | |
8740 | : | |
8741 | else | |
8742 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8743 | |
eec2776c AJ |
8744 | *** Warning: the command libtool uses to detect shared libraries, |
8745 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8746 | *** The result is that libtool may fail to recognize shared libraries | |
8747 | *** as such. This will affect the creation of libtool libraries that | |
8748 | *** depend on shared libraries, but programs linked with such libtool | |
8749 | *** libraries will work regardless of this problem. Nevertheless, you | |
8750 | *** may want to report the problem to your system manager and/or to | |
8751 | *** bug-libtool@gnu.org | |
c52df125 | 8752 | |
eec2776c AJ |
8753 | _LT_EOF |
8754 | fi ;; | |
8755 | esac | |
8756 | fi | |
8757 | break | |
8758 | fi | |
8759 | done | |
8760 | IFS="$lt_save_ifs" | |
8761 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8762 | ;; | |
8763 | esac | |
8764 | fi | |
c52df125 | 8765 | |
eec2776c AJ |
8766 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8767 | if test -n "$MAGIC_CMD"; then | |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8769 | $as_echo "$MAGIC_CMD" >&6; } | |
8770 | else | |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8772 | $as_echo "no" >&6; } | |
8773 | fi | |
c52df125 AC |
8774 | |
8775 | ||
eec2776c AJ |
8776 | else |
8777 | MAGIC_CMD=: | |
8778 | fi | |
8779 | fi | |
c52df125 | 8780 | |
c52df125 AC |
8781 | fi |
8782 | ;; | |
8783 | esac | |
8784 | ||
eec2776c | 8785 | # Use C for the default configuration in the libtool script |
c52df125 | 8786 | |
eec2776c AJ |
8787 | lt_save_CC="$CC" |
8788 | ac_ext=c | |
8789 | ac_cpp='$CPP $CPPFLAGS' | |
8790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
8793 | |
8794 | ||
eec2776c AJ |
8795 | # Source file extension for C test sources. |
8796 | ac_ext=c | |
c52df125 | 8797 | |
eec2776c AJ |
8798 | # Object file extension for compiled C test sources. |
8799 | objext=o | |
8800 | objext=$objext | |
c52df125 | 8801 | |
eec2776c AJ |
8802 | # Code to be used in simple compile tests |
8803 | lt_simple_compile_test_code="int some_variable = 0;" | |
c52df125 | 8804 | |
eec2776c AJ |
8805 | # Code to be used in simple link tests |
8806 | lt_simple_link_test_code='int main(){return(0);}' | |
c52df125 AC |
8807 | |
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
eec2776c AJ |
8814 | # If no C compiler was specified, use CC. |
8815 | LTCC=${LTCC-"$CC"} | |
c52df125 | 8816 | |
eec2776c AJ |
8817 | # If no C compiler flags were specified, use CFLAGS. |
8818 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 8819 | |
eec2776c AJ |
8820 | # Allow CC to be a program name with arguments. |
8821 | compiler=$CC | |
c52df125 | 8822 | |
eec2776c AJ |
8823 | # Save the default compiler, since it gets overwritten when the other |
8824 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8825 | compiler_DEFAULT=$CC | |
c52df125 | 8826 | |
eec2776c AJ |
8827 | # save warnings/boilerplate of simple test code |
8828 | ac_outfile=conftest.$ac_objext | |
8829 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8830 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8831 | _lt_compiler_boilerplate=`cat conftest.err` | |
8832 | $RM conftest* | |
c52df125 | 8833 | |
eec2776c AJ |
8834 | ac_outfile=conftest.$ac_objext |
8835 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8836 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8837 | _lt_linker_boilerplate=`cat conftest.err` | |
8838 | $RM -r conftest* | |
c52df125 AC |
8839 | |
8840 | ||
eec2776c AJ |
8841 | ## CAVEAT EMPTOR: |
8842 | ## There is no encapsulation within the following macros, do not change | |
8843 | ## the running order or otherwise move them around unless you know exactly | |
8844 | ## what you are doing... | |
8845 | if test -n "$compiler"; then | |
c52df125 | 8846 | |
eec2776c | 8847 | lt_prog_compiler_no_builtin_flag= |
c52df125 | 8848 | |
eec2776c AJ |
8849 | if test "$GCC" = yes; then |
8850 | case $cc_basename in | |
8851 | nvcc*) | |
8852 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8853 | *) | |
8854 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8855 | esac | |
c52df125 | 8856 | |
eec2776c AJ |
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8858 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8859 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8860 | $as_echo_n "(cached) " >&6 | |
8861 | else | |
8862 | lt_cv_prog_compiler_rtti_exceptions=no | |
8863 | ac_outfile=conftest.$ac_objext | |
8864 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8865 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8866 | # Insert the option either (1) after the last *FLAGS variable, or | |
8867 | # (2) before a word containing "conftest.", or (3) at the end. | |
8868 | # Note that $ac_compile itself does not contain backslashes and begins | |
8869 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8870 | # The option is referenced via a variable to avoid confusing sed. | |
8871 | lt_compile=`echo "$ac_compile" | $SED \ | |
8872 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8873 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8874 | -e 's:$: $lt_compiler_flag:'` | |
8875 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8876 | (eval "$lt_compile" 2>conftest.err) | |
8877 | ac_status=$? | |
8878 | cat conftest.err >&5 | |
8879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8880 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8881 | # The compiler can only warn and ignore the option if not recognized | |
8882 | # So say no if there are warnings other than the usual output. | |
8883 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8884 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8885 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8886 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8887 | fi | |
8888 | fi | |
8889 | $RM conftest* | |
c52df125 | 8890 | |
eec2776c AJ |
8891 | fi |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8893 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
c52df125 | 8894 | |
eec2776c AJ |
8895 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8896 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8897 | else | |
8898 | : | |
8899 | fi | |
c52df125 | 8900 | |
eec2776c | 8901 | fi |
c52df125 AC |
8902 | |
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
eec2776c AJ |
8908 | lt_prog_compiler_wl= |
8909 | lt_prog_compiler_pic= | |
8910 | lt_prog_compiler_static= | |
c52df125 AC |
8911 | |
8912 | ||
eec2776c AJ |
8913 | if test "$GCC" = yes; then |
8914 | lt_prog_compiler_wl='-Wl,' | |
8915 | lt_prog_compiler_static='-static' | |
c52df125 | 8916 | |
eec2776c AJ |
8917 | case $host_os in |
8918 | aix*) | |
8919 | # All AIX code is PIC. | |
8920 | if test "$host_cpu" = ia64; then | |
8921 | # AIX 5 now supports IA64 processor | |
8922 | lt_prog_compiler_static='-Bstatic' | |
8923 | fi | |
8924 | ;; | |
c52df125 | 8925 | |
eec2776c AJ |
8926 | amigaos*) |
8927 | case $host_cpu in | |
8928 | powerpc) | |
8929 | # see comment about AmigaOS4 .so support | |
8930 | lt_prog_compiler_pic='-fPIC' | |
8931 | ;; | |
8932 | m68k) | |
8933 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8934 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8935 | # like `-m68040'. | |
8936 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8937 | ;; | |
8938 | esac | |
8939 | ;; | |
c52df125 | 8940 | |
eec2776c AJ |
8941 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8942 | # PIC is the default for these OSes. | |
8943 | ;; | |
c52df125 | 8944 | |
eec2776c AJ |
8945 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8946 | # This hack is so that the source file can tell whether it is being | |
8947 | # built for inclusion in a dll (and should export symbols for example). | |
8948 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8949 | # (--disable-auto-import) libraries | |
8950 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8951 | ;; | |
c52df125 | 8952 | |
eec2776c AJ |
8953 | darwin* | rhapsody*) |
8954 | # PIC is the default on this platform | |
8955 | # Common symbols not allowed in MH_DYLIB files | |
8956 | lt_prog_compiler_pic='-fno-common' | |
8957 | ;; | |
c52df125 | 8958 | |
eec2776c AJ |
8959 | haiku*) |
8960 | # PIC is the default for Haiku. | |
8961 | # The "-static" flag exists, but is broken. | |
8962 | lt_prog_compiler_static= | |
8963 | ;; | |
c52df125 | 8964 | |
eec2776c AJ |
8965 | hpux*) |
8966 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8967 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8968 | # sets the default TLS model and affects inlining. | |
8969 | case $host_cpu in | |
8970 | hppa*64*) | |
8971 | # +Z the default | |
8972 | ;; | |
8973 | *) | |
8974 | lt_prog_compiler_pic='-fPIC' | |
8975 | ;; | |
8976 | esac | |
8977 | ;; | |
c52df125 | 8978 | |
eec2776c AJ |
8979 | interix[3-9]*) |
8980 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8981 | # Instead, we relocate shared libraries at runtime. | |
8982 | ;; | |
c52df125 | 8983 | |
eec2776c AJ |
8984 | msdosdjgpp*) |
8985 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8986 | # on systems that don't support them. | |
8987 | lt_prog_compiler_can_build_shared=no | |
8988 | enable_shared=no | |
8989 | ;; | |
c52df125 | 8990 | |
eec2776c AJ |
8991 | *nto* | *qnx*) |
8992 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8993 | # it will coredump. | |
8994 | lt_prog_compiler_pic='-fPIC -shared' | |
8995 | ;; | |
c52df125 | 8996 | |
eec2776c AJ |
8997 | sysv4*MP*) |
8998 | if test -d /usr/nec; then | |
8999 | lt_prog_compiler_pic=-Kconform_pic | |
9000 | fi | |
9001 | ;; | |
c52df125 | 9002 | |
eec2776c AJ |
9003 | *) |
9004 | lt_prog_compiler_pic='-fPIC' | |
9005 | ;; | |
9006 | esac | |
c52df125 | 9007 | |
eec2776c AJ |
9008 | case $cc_basename in |
9009 | nvcc*) # Cuda Compiler Driver 2.2 | |
9010 | lt_prog_compiler_wl='-Xlinker ' | |
9011 | if test -n "$lt_prog_compiler_pic"; then | |
9012 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9013 | fi | |
9014 | ;; | |
9015 | esac | |
9016 | else | |
9017 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9018 | case $host_os in | |
9019 | aix*) | |
9020 | lt_prog_compiler_wl='-Wl,' | |
9021 | if test "$host_cpu" = ia64; then | |
9022 | # AIX 5 now supports IA64 processor | |
9023 | lt_prog_compiler_static='-Bstatic' | |
9024 | else | |
9025 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9026 | fi | |
9027 | ;; | |
c52df125 | 9028 | |
eec2776c AJ |
9029 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9030 | # This hack is so that the source file can tell whether it is being | |
9031 | # built for inclusion in a dll (and should export symbols for example). | |
9032 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9033 | ;; | |
c52df125 | 9034 | |
eec2776c AJ |
9035 | hpux9* | hpux10* | hpux11*) |
9036 | lt_prog_compiler_wl='-Wl,' | |
9037 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9038 | # not for PA HP-UX. | |
9039 | case $host_cpu in | |
9040 | hppa*64*|ia64*) | |
9041 | # +Z the default | |
9042 | ;; | |
9043 | *) | |
9044 | lt_prog_compiler_pic='+Z' | |
9045 | ;; | |
9046 | esac | |
9047 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9048 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9049 | ;; | |
c52df125 | 9050 | |
eec2776c AJ |
9051 | irix5* | irix6* | nonstopux*) |
9052 | lt_prog_compiler_wl='-Wl,' | |
9053 | # PIC (with -KPIC) is the default. | |
9054 | lt_prog_compiler_static='-non_shared' | |
9055 | ;; | |
c52df125 | 9056 | |
eec2776c AJ |
9057 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9058 | case $cc_basename in | |
9059 | # old Intel for x86_64 which still supported -KPIC. | |
9060 | ecc*) | |
9061 | lt_prog_compiler_wl='-Wl,' | |
9062 | lt_prog_compiler_pic='-KPIC' | |
9063 | lt_prog_compiler_static='-static' | |
9064 | ;; | |
9065 | # icc used to be incompatible with GCC. | |
9066 | # ICC 10 doesn't accept -KPIC any more. | |
9067 | icc* | ifort*) | |
9068 | lt_prog_compiler_wl='-Wl,' | |
9069 | lt_prog_compiler_pic='-fPIC' | |
9070 | lt_prog_compiler_static='-static' | |
9071 | ;; | |
9072 | # Lahey Fortran 8.1. | |
9073 | lf95*) | |
9074 | lt_prog_compiler_wl='-Wl,' | |
9075 | lt_prog_compiler_pic='--shared' | |
9076 | lt_prog_compiler_static='--static' | |
9077 | ;; | |
9078 | nagfor*) | |
9079 | # NAG Fortran compiler | |
9080 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9081 | lt_prog_compiler_pic='-PIC' | |
9082 | lt_prog_compiler_static='-Bstatic' | |
9083 | ;; | |
9084 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9085 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9086 | # which looks to be a dead project) | |
9087 | lt_prog_compiler_wl='-Wl,' | |
9088 | lt_prog_compiler_pic='-fpic' | |
9089 | lt_prog_compiler_static='-Bstatic' | |
9090 | ;; | |
9091 | ccc*) | |
9092 | lt_prog_compiler_wl='-Wl,' | |
9093 | # All Alpha code is PIC. | |
9094 | lt_prog_compiler_static='-non_shared' | |
9095 | ;; | |
9096 | xl* | bgxl* | bgf* | mpixl*) | |
9097 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9098 | lt_prog_compiler_wl='-Wl,' | |
9099 | lt_prog_compiler_pic='-qpic' | |
9100 | lt_prog_compiler_static='-qstaticlink' | |
9101 | ;; | |
9102 | *) | |
9103 | case `$CC -V 2>&1 | sed 5q` in | |
9104 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9105 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9106 | lt_prog_compiler_pic='-KPIC' | |
9107 | lt_prog_compiler_static='-Bstatic' | |
9108 | lt_prog_compiler_wl='' | |
9109 | ;; | |
9110 | *Sun\ F* | *Sun*Fortran*) | |
9111 | lt_prog_compiler_pic='-KPIC' | |
9112 | lt_prog_compiler_static='-Bstatic' | |
9113 | lt_prog_compiler_wl='-Qoption ld ' | |
9114 | ;; | |
9115 | *Sun\ C*) | |
9116 | # Sun C 5.9 | |
9117 | lt_prog_compiler_pic='-KPIC' | |
9118 | lt_prog_compiler_static='-Bstatic' | |
9119 | lt_prog_compiler_wl='-Wl,' | |
9120 | ;; | |
9121 | *Intel*\ [CF]*Compiler*) | |
9122 | lt_prog_compiler_wl='-Wl,' | |
9123 | lt_prog_compiler_pic='-fPIC' | |
9124 | lt_prog_compiler_static='-static' | |
9125 | ;; | |
9126 | *Portland\ Group*) | |
9127 | lt_prog_compiler_wl='-Wl,' | |
9128 | lt_prog_compiler_pic='-fpic' | |
9129 | lt_prog_compiler_static='-Bstatic' | |
9130 | ;; | |
9131 | esac | |
9132 | ;; | |
9133 | esac | |
9134 | ;; | |
c52df125 | 9135 | |
eec2776c AJ |
9136 | newsos6) |
9137 | lt_prog_compiler_pic='-KPIC' | |
9138 | lt_prog_compiler_static='-Bstatic' | |
9139 | ;; | |
c52df125 | 9140 | |
eec2776c AJ |
9141 | *nto* | *qnx*) |
9142 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9143 | # it will coredump. | |
9144 | lt_prog_compiler_pic='-fPIC -shared' | |
9145 | ;; | |
c52df125 | 9146 | |
eec2776c AJ |
9147 | osf3* | osf4* | osf5*) |
9148 | lt_prog_compiler_wl='-Wl,' | |
9149 | # All OSF/1 code is PIC. | |
9150 | lt_prog_compiler_static='-non_shared' | |
9151 | ;; | |
c52df125 | 9152 | |
eec2776c AJ |
9153 | rdos*) |
9154 | lt_prog_compiler_static='-non_shared' | |
9155 | ;; | |
c52df125 | 9156 | |
eec2776c AJ |
9157 | solaris*) |
9158 | lt_prog_compiler_pic='-KPIC' | |
9159 | lt_prog_compiler_static='-Bstatic' | |
9160 | case $cc_basename in | |
9161 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9162 | lt_prog_compiler_wl='-Qoption ld ';; | |
9163 | *) | |
9164 | lt_prog_compiler_wl='-Wl,';; | |
9165 | esac | |
9166 | ;; | |
c52df125 | 9167 | |
eec2776c AJ |
9168 | sunos4*) |
9169 | lt_prog_compiler_wl='-Qoption ld ' | |
9170 | lt_prog_compiler_pic='-PIC' | |
9171 | lt_prog_compiler_static='-Bstatic' | |
9172 | ;; | |
c52df125 | 9173 | |
eec2776c AJ |
9174 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9175 | lt_prog_compiler_wl='-Wl,' | |
9176 | lt_prog_compiler_pic='-KPIC' | |
9177 | lt_prog_compiler_static='-Bstatic' | |
9178 | ;; | |
c52df125 | 9179 | |
eec2776c AJ |
9180 | sysv4*MP*) |
9181 | if test -d /usr/nec ;then | |
9182 | lt_prog_compiler_pic='-Kconform_pic' | |
9183 | lt_prog_compiler_static='-Bstatic' | |
9184 | fi | |
9185 | ;; | |
c52df125 | 9186 | |
eec2776c AJ |
9187 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9188 | lt_prog_compiler_wl='-Wl,' | |
9189 | lt_prog_compiler_pic='-KPIC' | |
9190 | lt_prog_compiler_static='-Bstatic' | |
9191 | ;; | |
c52df125 | 9192 | |
eec2776c AJ |
9193 | unicos*) |
9194 | lt_prog_compiler_wl='-Wl,' | |
9195 | lt_prog_compiler_can_build_shared=no | |
9196 | ;; | |
c52df125 | 9197 | |
eec2776c AJ |
9198 | uts4*) |
9199 | lt_prog_compiler_pic='-pic' | |
9200 | lt_prog_compiler_static='-Bstatic' | |
9201 | ;; | |
c52df125 | 9202 | |
eec2776c AJ |
9203 | *) |
9204 | lt_prog_compiler_can_build_shared=no | |
9205 | ;; | |
9206 | esac | |
9207 | fi | |
c52df125 | 9208 | |
eec2776c AJ |
9209 | case $host_os in |
9210 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9211 | *djgpp*) | |
9212 | lt_prog_compiler_pic= | |
9213 | ;; | |
9214 | *) | |
9215 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9216 | ;; | |
9217 | esac | |
c52df125 | 9218 | |
eec2776c AJ |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9220 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9221 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9222 | $as_echo_n "(cached) " >&6 | |
9223 | else | |
9224 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9225 | fi | |
9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9227 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9228 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
c52df125 | 9229 | |
eec2776c AJ |
9230 | # |
9231 | # Check to make sure the PIC flag actually works. | |
9232 | # | |
9233 | if test -n "$lt_prog_compiler_pic"; then | |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9235 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9236 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9237 | $as_echo_n "(cached) " >&6 | |
9238 | else | |
9239 | lt_cv_prog_compiler_pic_works=no | |
9240 | ac_outfile=conftest.$ac_objext | |
9241 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9242 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9243 | # Insert the option either (1) after the last *FLAGS variable, or | |
9244 | # (2) before a word containing "conftest.", or (3) at the end. | |
9245 | # Note that $ac_compile itself does not contain backslashes and begins | |
9246 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9247 | # The option is referenced via a variable to avoid confusing sed. | |
9248 | lt_compile=`echo "$ac_compile" | $SED \ | |
9249 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9250 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9251 | -e 's:$: $lt_compiler_flag:'` | |
9252 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9253 | (eval "$lt_compile" 2>conftest.err) | |
9254 | ac_status=$? | |
9255 | cat conftest.err >&5 | |
9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9257 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9258 | # The compiler can only warn and ignore the option if not recognized | |
9259 | # So say no if there are warnings other than the usual output. | |
9260 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9261 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9262 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9263 | lt_cv_prog_compiler_pic_works=yes | |
9264 | fi | |
9265 | fi | |
9266 | $RM conftest* | |
c52df125 | 9267 | |
eec2776c AJ |
9268 | fi |
9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9270 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
c52df125 | 9271 | |
eec2776c AJ |
9272 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9273 | case $lt_prog_compiler_pic in | |
9274 | "" | " "*) ;; | |
9275 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9276 | esac | |
9277 | else | |
9278 | lt_prog_compiler_pic= | |
9279 | lt_prog_compiler_can_build_shared=no | |
9280 | fi | |
c52df125 | 9281 | |
eec2776c | 9282 | fi |
c52df125 AC |
9283 | |
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
eec2776c AJ |
9294 | # |
9295 | # Check to make sure the static flag actually works. | |
9296 | # | |
9297 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9299 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9300 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9301 | $as_echo_n "(cached) " >&6 | |
9302 | else | |
9303 | lt_cv_prog_compiler_static_works=no | |
9304 | save_LDFLAGS="$LDFLAGS" | |
9305 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9306 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9307 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9308 | # The linker can only warn and ignore the option if not recognized | |
9309 | # So say no if there are warnings | |
9310 | if test -s conftest.err; then | |
9311 | # Append any errors to the config.log. | |
9312 | cat conftest.err 1>&5 | |
9313 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9314 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9315 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9316 | lt_cv_prog_compiler_static_works=yes | |
9317 | fi | |
9318 | else | |
9319 | lt_cv_prog_compiler_static_works=yes | |
9320 | fi | |
9321 | fi | |
9322 | $RM -r conftest* | |
9323 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 9324 | |
eec2776c AJ |
9325 | fi |
9326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9327 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
c52df125 | 9328 | |
eec2776c AJ |
9329 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9330 | : | |
9331 | else | |
9332 | lt_prog_compiler_static= | |
9333 | fi | |
c52df125 AC |
9334 | |
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
eec2776c AJ |
9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9342 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9343 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9344 | $as_echo_n "(cached) " >&6 | |
9345 | else | |
9346 | lt_cv_prog_compiler_c_o=no | |
9347 | $RM -r conftest 2>/dev/null | |
9348 | mkdir conftest | |
9349 | cd conftest | |
9350 | mkdir out | |
9351 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9352 | |
eec2776c AJ |
9353 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9354 | # Insert the option either (1) after the last *FLAGS variable, or | |
9355 | # (2) before a word containing "conftest.", or (3) at the end. | |
9356 | # Note that $ac_compile itself does not contain backslashes and begins | |
9357 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9358 | lt_compile=`echo "$ac_compile" | $SED \ | |
9359 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9360 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9361 | -e 's:$: $lt_compiler_flag:'` | |
9362 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9363 | (eval "$lt_compile" 2>out/conftest.err) | |
9364 | ac_status=$? | |
9365 | cat out/conftest.err >&5 | |
9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9367 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9368 | then | |
9369 | # The compiler can only warn and ignore the option if not recognized | |
9370 | # So say no if there are warnings | |
9371 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9372 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9373 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9374 | lt_cv_prog_compiler_c_o=yes | |
9375 | fi | |
9376 | fi | |
9377 | chmod u+w . 2>&5 | |
9378 | $RM conftest* | |
9379 | # SGI C++ compiler will create directory out/ii_files/ for | |
9380 | # template instantiation | |
9381 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9382 | $RM out/* && rmdir out | |
9383 | cd .. | |
9384 | $RM -r conftest | |
9385 | $RM conftest* | |
c52df125 | 9386 | |
eec2776c AJ |
9387 | fi |
9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9389 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9390 | |
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
eec2776c AJ |
9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9397 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9398 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9399 | $as_echo_n "(cached) " >&6 | |
9400 | else | |
9401 | lt_cv_prog_compiler_c_o=no | |
9402 | $RM -r conftest 2>/dev/null | |
9403 | mkdir conftest | |
9404 | cd conftest | |
9405 | mkdir out | |
9406 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9407 | |
eec2776c AJ |
9408 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9409 | # Insert the option either (1) after the last *FLAGS variable, or | |
9410 | # (2) before a word containing "conftest.", or (3) at the end. | |
9411 | # Note that $ac_compile itself does not contain backslashes and begins | |
9412 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9413 | lt_compile=`echo "$ac_compile" | $SED \ | |
9414 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9415 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9416 | -e 's:$: $lt_compiler_flag:'` | |
9417 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9418 | (eval "$lt_compile" 2>out/conftest.err) | |
9419 | ac_status=$? | |
9420 | cat out/conftest.err >&5 | |
9421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9422 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9423 | then | |
9424 | # The compiler can only warn and ignore the option if not recognized | |
9425 | # So say no if there are warnings | |
9426 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9427 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9428 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9429 | lt_cv_prog_compiler_c_o=yes | |
9430 | fi | |
9431 | fi | |
9432 | chmod u+w . 2>&5 | |
9433 | $RM conftest* | |
9434 | # SGI C++ compiler will create directory out/ii_files/ for | |
9435 | # template instantiation | |
9436 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9437 | $RM out/* && rmdir out | |
9438 | cd .. | |
9439 | $RM -r conftest | |
9440 | $RM conftest* | |
c52df125 | 9441 | |
eec2776c AJ |
9442 | fi |
9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9444 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9445 | |
9446 | ||
9447 | ||
9448 | ||
eec2776c AJ |
9449 | hard_links="nottested" |
9450 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9451 | # do not overwrite the value of need_locks provided by the user | |
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9453 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9454 | hard_links=yes | |
9455 | $RM conftest* | |
9456 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9457 | touch conftest.a | |
9458 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9459 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9461 | $as_echo "$hard_links" >&6; } | |
9462 | if test "$hard_links" = no; then | |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9464 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9465 | need_locks=warn | |
9466 | fi | |
9467 | else | |
9468 | need_locks=no | |
9469 | fi | |
c52df125 AC |
9470 | |
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
eec2776c AJ |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9477 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
c52df125 | 9478 | |
eec2776c AJ |
9479 | runpath_var= |
9480 | allow_undefined_flag= | |
9481 | always_export_symbols=no | |
9482 | archive_cmds= | |
9483 | archive_expsym_cmds= | |
9484 | compiler_needs_object=no | |
9485 | enable_shared_with_static_runtimes=no | |
9486 | export_dynamic_flag_spec= | |
9487 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9488 | hardcode_automatic=no | |
9489 | hardcode_direct=no | |
9490 | hardcode_direct_absolute=no | |
9491 | hardcode_libdir_flag_spec= | |
9492 | hardcode_libdir_separator= | |
9493 | hardcode_minus_L=no | |
9494 | hardcode_shlibpath_var=unsupported | |
9495 | inherit_rpath=no | |
9496 | link_all_deplibs=unknown | |
9497 | module_cmds= | |
9498 | module_expsym_cmds= | |
9499 | old_archive_from_new_cmds= | |
9500 | old_archive_from_expsyms_cmds= | |
9501 | thread_safe_flag_spec= | |
9502 | whole_archive_flag_spec= | |
9503 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9504 | # included in the symbol list | |
9505 | include_expsyms= | |
9506 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9507 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9508 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9509 | # as well as any symbol that contains `d'. | |
9510 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9511 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9512 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9513 | # the symbol is explicitly referenced. Since portable code cannot | |
9514 | # rely on this symbol name, it's probably fine to never include it in | |
9515 | # preloaded symbol tables. | |
9516 | # Exclude shared library initialization/finalization symbols. | |
9517 | extract_expsyms_cmds= | |
c52df125 | 9518 | |
c52df125 | 9519 | case $host_os in |
eec2776c AJ |
9520 | cygwin* | mingw* | pw32* | cegcc*) |
9521 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9522 | # When not using gcc, we currently assume that we are using | |
9523 | # Microsoft Visual C++. | |
9524 | if test "$GCC" != yes; then | |
9525 | with_gnu_ld=no | |
9526 | fi | |
c52df125 | 9527 | ;; |
eec2776c AJ |
9528 | interix*) |
9529 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9530 | with_gnu_ld=yes | |
9531 | ;; | |
9532 | openbsd*) | |
9533 | with_gnu_ld=no | |
9534 | ;; | |
9535 | linux* | k*bsd*-gnu | gnu*) | |
9536 | link_all_deplibs=no | |
c52df125 AC |
9537 | ;; |
9538 | esac | |
c52df125 | 9539 | |
eec2776c | 9540 | ld_shlibs=yes |
c52df125 | 9541 | |
eec2776c AJ |
9542 | # On some targets, GNU ld is compatible enough with the native linker |
9543 | # that we're better off using the native interface for both. | |
9544 | lt_use_gnu_ld_interface=no | |
9545 | if test "$with_gnu_ld" = yes; then | |
c52df125 | 9546 | case $host_os in |
eec2776c AJ |
9547 | aix*) |
9548 | # The AIX port of GNU ld has always aspired to compatibility | |
9549 | # with the native linker. However, as the warning in the GNU ld | |
9550 | # block says, versions before 2.19.5* couldn't really create working | |
9551 | # shared libraries, regardless of the interface used. | |
9552 | case `$LD -v 2>&1` in | |
9553 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9554 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9555 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9556 | *) | |
9557 | lt_use_gnu_ld_interface=yes | |
9558 | ;; | |
9559 | esac | |
9560 | ;; | |
9561 | *) | |
9562 | lt_use_gnu_ld_interface=yes | |
9563 | ;; | |
c52df125 | 9564 | esac |
c52df125 | 9565 | fi |
c52df125 | 9566 | |
eec2776c AJ |
9567 | if test "$lt_use_gnu_ld_interface" = yes; then |
9568 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9569 | wlarc='${wl}' | |
c52df125 | 9570 | |
eec2776c AJ |
9571 | # Set some defaults for GNU ld with shared library support. These |
9572 | # are reset later if shared libraries are not supported. Putting them | |
9573 | # here allows them to be overridden if necessary. | |
9574 | runpath_var=LD_RUN_PATH | |
9575 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9576 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9577 | # ancient GNU ld didn't support --whole-archive et. al. | |
9578 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9579 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9580 | else | |
9581 | whole_archive_flag_spec= | |
9582 | fi | |
9583 | supports_anon_versioning=no | |
9584 | case `$LD -v 2>&1` in | |
9585 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9586 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9587 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9588 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9589 | *\ 2.11.*) ;; # other 2.11 versions | |
9590 | *) supports_anon_versioning=yes ;; | |
9591 | esac | |
c52df125 | 9592 | |
eec2776c AJ |
9593 | # See if GNU ld supports shared libraries. |
9594 | case $host_os in | |
9595 | aix[3-9]*) | |
9596 | # On AIX/PPC, the GNU linker is very broken | |
9597 | if test "$host_cpu" != ia64; then | |
9598 | ld_shlibs=no | |
9599 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9600 | |
eec2776c AJ |
9601 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9602 | *** to be unable to reliably create shared libraries on AIX. | |
9603 | *** Therefore, libtool is disabling shared libraries support. If you | |
9604 | *** really care for shared libraries, you may want to install binutils | |
9605 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9606 | *** You will then need to restart the configuration process. | |
c52df125 | 9607 | |
eec2776c AJ |
9608 | _LT_EOF |
9609 | fi | |
9610 | ;; | |
c52df125 | 9611 | |
eec2776c AJ |
9612 | amigaos*) |
9613 | case $host_cpu in | |
9614 | powerpc) | |
9615 | # see comment about AmigaOS4 .so support | |
9616 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9617 | archive_expsym_cmds='' | |
9618 | ;; | |
9619 | m68k) | |
9620 | 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)' | |
9621 | hardcode_libdir_flag_spec='-L$libdir' | |
9622 | hardcode_minus_L=yes | |
9623 | ;; | |
9624 | esac | |
9625 | ;; | |
c52df125 | 9626 | |
eec2776c AJ |
9627 | beos*) |
9628 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9629 | allow_undefined_flag=unsupported | |
9630 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9631 | # support --undefined. This deserves some investigation. FIXME | |
9632 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9633 | else | |
9634 | ld_shlibs=no | |
9635 | fi | |
c52df125 | 9636 | ;; |
eec2776c AJ |
9637 | |
9638 | cygwin* | mingw* | pw32* | cegcc*) | |
9639 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9640 | # as there is no search path for DLLs. | |
9641 | hardcode_libdir_flag_spec='-L$libdir' | |
9642 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9643 | allow_undefined_flag=unsupported | |
9644 | always_export_symbols=no | |
9645 | enable_shared_with_static_runtimes=yes | |
9646 | 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' | |
9647 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9648 | ||
9649 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9650 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9651 | # If the export-symbols file already is a .def file (1st line | |
9652 | # is EXPORTS), use it as is; otherwise, prepend... | |
9653 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9654 | cp $export_symbols $output_objdir/$soname.def; | |
9655 | else | |
9656 | echo EXPORTS > $output_objdir/$soname.def; | |
9657 | cat $export_symbols >> $output_objdir/$soname.def; | |
9658 | fi~ | |
9659 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9660 | else | |
9661 | ld_shlibs=no | |
9662 | fi | |
c52df125 | 9663 | ;; |
c52df125 | 9664 | |
eec2776c AJ |
9665 | haiku*) |
9666 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9667 | link_all_deplibs=yes | |
9668 | ;; | |
c52df125 | 9669 | |
eec2776c AJ |
9670 | interix[3-9]*) |
9671 | hardcode_direct=no | |
9672 | hardcode_shlibpath_var=no | |
9673 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9674 | export_dynamic_flag_spec='${wl}-E' | |
9675 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9676 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9677 | # default) and relocated if they conflict, which is a slow very memory | |
9678 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9679 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9680 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9681 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9682 | 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 | 9683 | ;; |
eec2776c AJ |
9684 | |
9685 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9686 | tmp_diet=no | |
9687 | if test "$host_os" = linux-dietlibc; then | |
9688 | case $cc_basename in | |
9689 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9690 | esac | |
9691 | fi | |
9692 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9693 | && test "$tmp_diet" = no | |
9694 | then | |
9695 | tmp_addflag=' $pic_flag' | |
9696 | tmp_sharedflag='-shared' | |
9697 | case $cc_basename,$host_cpu in | |
9698 | pgcc*) # Portland Group C compiler | |
9699 | 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' | |
9700 | tmp_addflag=' $pic_flag' | |
9701 | ;; | |
9702 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9703 | # Portland Group f77 and f90 compilers | |
9704 | 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' | |
9705 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9706 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9707 | tmp_addflag=' -i_dynamic' ;; | |
9708 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9709 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9710 | ifc* | ifort*) # Intel Fortran compiler | |
9711 | tmp_addflag=' -nofor_main' ;; | |
9712 | lf95*) # Lahey Fortran 8.1 | |
9713 | whole_archive_flag_spec= | |
9714 | tmp_sharedflag='--shared' ;; | |
9715 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9716 | tmp_sharedflag='-qmkshrobj' | |
9717 | tmp_addflag= ;; | |
9718 | nvcc*) # Cuda Compiler Driver 2.2 | |
9719 | 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' | |
9720 | compiler_needs_object=yes | |
9721 | ;; | |
9722 | esac | |
9723 | case `$CC -V 2>&1 | sed 5q` in | |
9724 | *Sun\ C*) # Sun C 5.9 | |
9725 | 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' | |
9726 | compiler_needs_object=yes | |
9727 | tmp_sharedflag='-G' ;; | |
9728 | *Sun\ F*) # Sun Fortran 8.3 | |
9729 | tmp_sharedflag='-G' ;; | |
9730 | esac | |
9731 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9732 | ||
9733 | if test "x$supports_anon_versioning" = xyes; then | |
9734 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9735 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9736 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9737 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9738 | fi | |
9739 | ||
9740 | case $cc_basename in | |
9741 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9742 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9743 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9744 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9745 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9746 | if test "x$supports_anon_versioning" = xyes; then | |
9747 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9748 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9749 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9750 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9751 | fi | |
9752 | ;; | |
9753 | esac | |
9754 | else | |
9755 | ld_shlibs=no | |
9756 | fi | |
c52df125 | 9757 | ;; |
eec2776c AJ |
9758 | |
9759 | netbsd* | netbsdelf*-gnu) | |
9760 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9761 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9762 | wlarc= | |
c52df125 | 9763 | else |
eec2776c AJ |
9764 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9765 | 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 | 9766 | fi |
c52df125 | 9767 | ;; |
c52df125 | 9768 | |
eec2776c AJ |
9769 | solaris*) |
9770 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9771 | ld_shlibs=no | |
9772 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9773 | |
eec2776c AJ |
9774 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9775 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9776 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9777 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9778 | *** your PATH or compiler configuration so that the native linker is | |
9779 | *** used, and then restart. | |
c52df125 | 9780 | |
eec2776c AJ |
9781 | _LT_EOF |
9782 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9783 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9784 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9785 | else | |
9786 | ld_shlibs=no | |
9787 | fi | |
9788 | ;; | |
c52df125 | 9789 | |
eec2776c AJ |
9790 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9791 | case `$LD -v 2>&1` in | |
9792 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9793 | ld_shlibs=no | |
9794 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9795 | |
eec2776c AJ |
9796 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9797 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9798 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9799 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9800 | *** your PATH or compiler configuration so that the native linker is | |
9801 | *** used, and then restart. | |
c52df125 | 9802 | |
eec2776c AJ |
9803 | _LT_EOF |
9804 | ;; | |
9805 | *) | |
9806 | # For security reasons, it is highly recommended that you always | |
9807 | # use absolute paths for naming shared libraries, and exclude the | |
9808 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9809 | # requires that you compile everything twice, which is a pain. | |
9810 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9811 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9812 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9813 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9814 | else | |
9815 | ld_shlibs=no | |
9816 | fi | |
9817 | ;; | |
9818 | esac | |
c52df125 | 9819 | ;; |
eec2776c AJ |
9820 | |
9821 | sunos4*) | |
9822 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9823 | wlarc= | |
9824 | hardcode_direct=yes | |
9825 | hardcode_shlibpath_var=no | |
c52df125 | 9826 | ;; |
c52df125 | 9827 | |
eec2776c AJ |
9828 | *) |
9829 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9830 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9831 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9832 | else | |
9833 | ld_shlibs=no | |
9834 | fi | |
9835 | ;; | |
9836 | esac | |
c52df125 | 9837 | |
eec2776c AJ |
9838 | if test "$ld_shlibs" = no; then |
9839 | runpath_var= | |
9840 | hardcode_libdir_flag_spec= | |
9841 | export_dynamic_flag_spec= | |
9842 | whole_archive_flag_spec= | |
c52df125 | 9843 | fi |
eec2776c AJ |
9844 | else |
9845 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9846 | case $host_os in | |
9847 | aix3*) | |
9848 | allow_undefined_flag=unsupported | |
9849 | always_export_symbols=yes | |
9850 | 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' | |
9851 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9852 | # are no directories specified by -L. | |
9853 | hardcode_minus_L=yes | |
9854 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9855 | # Neither direct hardcoding nor static linking is supported with a | |
9856 | # broken collect2. | |
9857 | hardcode_direct=unsupported | |
9858 | fi | |
9859 | ;; | |
c52df125 | 9860 | |
eec2776c AJ |
9861 | aix[4-9]*) |
9862 | if test "$host_cpu" = ia64; then | |
9863 | # On IA64, the linker does run time linking by default, so we don't | |
9864 | # have to do anything special. | |
9865 | aix_use_runtimelinking=no | |
9866 | exp_sym_flag='-Bexport' | |
9867 | no_entry_flag="" | |
9868 | else | |
9869 | # If we're using GNU nm, then we don't want the "-C" option. | |
9870 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9871 | # Also, AIX nm treats weak defined symbols like other global | |
9872 | # defined symbols, whereas GNU nm marks them as "W". | |
9873 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9874 | 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 | 9875 | else |
eec2776c AJ |
9876 | 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' |
9877 | fi | |
9878 | aix_use_runtimelinking=no | |
c52df125 | 9879 | |
eec2776c AJ |
9880 | # Test if we are trying to use run time linking or normal |
9881 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9882 | # need to do runtime linking. | |
9883 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9884 | for ld_flag in $LDFLAGS; do | |
9885 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9886 | aix_use_runtimelinking=yes | |
9887 | break | |
9888 | fi | |
9889 | done | |
9890 | ;; | |
9891 | esac | |
c52df125 | 9892 | |
eec2776c AJ |
9893 | exp_sym_flag='-bexport' |
9894 | no_entry_flag='-bnoentry' | |
9895 | fi | |
c52df125 | 9896 | |
eec2776c AJ |
9897 | # When large executables or shared objects are built, AIX ld can |
9898 | # have problems creating the table of contents. If linking a library | |
9899 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9900 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9901 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
c52df125 | 9902 | |
eec2776c AJ |
9903 | archive_cmds='' |
9904 | hardcode_direct=yes | |
9905 | hardcode_direct_absolute=yes | |
9906 | hardcode_libdir_separator=':' | |
9907 | link_all_deplibs=yes | |
9908 | file_list_spec='${wl}-f,' | |
c52df125 | 9909 | |
eec2776c AJ |
9910 | if test "$GCC" = yes; then |
9911 | case $host_os in aix4.[012]|aix4.[012].*) | |
9912 | # We only want to do this on AIX 4.2 and lower, the check | |
9913 | # below for broken collect2 doesn't work under 4.3+ | |
9914 | collect2name=`${CC} -print-prog-name=collect2` | |
9915 | if test -f "$collect2name" && | |
9916 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9917 | then | |
9918 | # We have reworked collect2 | |
9919 | : | |
9920 | else | |
9921 | # We have old collect2 | |
9922 | hardcode_direct=unsupported | |
9923 | # It fails to find uninstalled libraries when the uninstalled | |
9924 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9925 | # to unsupported forces relinking | |
9926 | hardcode_minus_L=yes | |
9927 | hardcode_libdir_flag_spec='-L$libdir' | |
9928 | hardcode_libdir_separator= | |
9929 | fi | |
9930 | ;; | |
9931 | esac | |
9932 | shared_flag='-shared' | |
9933 | if test "$aix_use_runtimelinking" = yes; then | |
9934 | shared_flag="$shared_flag "'${wl}-G' | |
9935 | fi | |
9936 | link_all_deplibs=no | |
9937 | else | |
9938 | # not using gcc | |
9939 | if test "$host_cpu" = ia64; then | |
9940 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9941 | # chokes on -Wl,-G. The following line is correct: | |
9942 | shared_flag='-G' | |
9943 | else | |
9944 | if test "$aix_use_runtimelinking" = yes; then | |
9945 | shared_flag='${wl}-G' | |
9946 | else | |
9947 | shared_flag='${wl}-bM:SRE' | |
9948 | fi | |
9949 | fi | |
9950 | fi | |
9951 | ||
9952 | export_dynamic_flag_spec='${wl}-bexpall' | |
9953 | # It seems that -bexpall does not export symbols beginning with | |
9954 | # underscore (_), so it is better to generate a list of symbols to export. | |
9955 | always_export_symbols=yes | |
9956 | if test "$aix_use_runtimelinking" = yes; then | |
9957 | # Warning - without using the other runtime loading flags (-brtl), | |
9958 | # -berok will link without error, but may produce a broken library. | |
9959 | allow_undefined_flag='-berok' | |
9960 | # Determine the default libpath from the value encoded in an | |
9961 | # empty executable. | |
9962 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9963 | aix_libpath=$lt_cv_aix_libpath | |
9964 | else | |
9965 | if ${lt_cv_aix_libpath_+:} false; then : | |
9966 | $as_echo_n "(cached) " >&6 | |
9967 | else | |
9968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9969 | /* end confdefs.h. */ | |
9970 | ||
9971 | int | |
9972 | main () | |
9973 | { | |
9974 | ||
9975 | ; | |
9976 | return 0; | |
9977 | } | |
9978 | _ACEOF | |
c52df125 | 9979 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c AJ |
9980 | |
9981 | lt_aix_libpath_sed=' | |
9982 | /Import File Strings/,/^$/ { | |
9983 | /^0/ { | |
9984 | s/^0 *\([^ ]*\) *$/\1/ | |
9985 | p | |
9986 | } | |
9987 | }' | |
9988 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9989 | # Check for a 64-bit object if we didn't find anything. | |
9990 | if test -z "$lt_cv_aix_libpath_"; then | |
9991 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9992 | fi | |
c52df125 AC |
9993 | fi |
9994 | rm -f core conftest.err conftest.$ac_objext \ | |
9995 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
9996 | if test -z "$lt_cv_aix_libpath_"; then |
9997 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9998 | fi | |
c52df125 AC |
9999 | |
10000 | fi | |
10001 | ||
eec2776c AJ |
10002 | aix_libpath=$lt_cv_aix_libpath_ |
10003 | fi | |
c52df125 | 10004 | |
eec2776c AJ |
10005 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10006 | 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" | |
10007 | else | |
10008 | if test "$host_cpu" = ia64; then | |
10009 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10010 | allow_undefined_flag="-z nodefs" | |
10011 | 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" | |
10012 | else | |
10013 | # Determine the default libpath from the value encoded in an | |
10014 | # empty executable. | |
10015 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10016 | aix_libpath=$lt_cv_aix_libpath | |
10017 | else | |
10018 | if ${lt_cv_aix_libpath_+:} false; then : | |
10019 | $as_echo_n "(cached) " >&6 | |
10020 | else | |
10021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10022 | /* end confdefs.h. */ | |
c52df125 | 10023 | |
eec2776c AJ |
10024 | int |
10025 | main () | |
10026 | { | |
c52df125 | 10027 | |
eec2776c AJ |
10028 | ; |
10029 | return 0; | |
10030 | } | |
10031 | _ACEOF | |
10032 | if ac_fn_c_try_link "$LINENO"; then : | |
c52df125 | 10033 | |
eec2776c AJ |
10034 | lt_aix_libpath_sed=' |
10035 | /Import File Strings/,/^$/ { | |
10036 | /^0/ { | |
10037 | s/^0 *\([^ ]*\) *$/\1/ | |
10038 | p | |
10039 | } | |
10040 | }' | |
10041 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10042 | # Check for a 64-bit object if we didn't find anything. | |
10043 | if test -z "$lt_cv_aix_libpath_"; then | |
10044 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
c52df125 | 10045 | fi |
eec2776c AJ |
10046 | fi |
10047 | rm -f core conftest.err conftest.$ac_objext \ | |
10048 | conftest$ac_exeext conftest.$ac_ext | |
10049 | if test -z "$lt_cv_aix_libpath_"; then | |
10050 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
c52df125 | 10051 | fi |
c52df125 | 10052 | |
eec2776c | 10053 | fi |
c52df125 | 10054 | |
eec2776c AJ |
10055 | aix_libpath=$lt_cv_aix_libpath_ |
10056 | fi | |
c52df125 | 10057 | |
eec2776c AJ |
10058 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10059 | # Warning - without using the other run time loading flags, | |
10060 | # -berok will link without error, but may produce a broken library. | |
10061 | no_undefined_flag=' ${wl}-bernotok' | |
10062 | allow_undefined_flag=' ${wl}-berok' | |
10063 | if test "$with_gnu_ld" = yes; then | |
10064 | # We only use this code for GNU lds that support --whole-archive. | |
10065 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10066 | else | |
10067 | # Exported symbols can be pulled into shared objects from archives | |
10068 | whole_archive_flag_spec='$convenience' | |
10069 | fi | |
10070 | archive_cmds_need_lc=yes | |
10071 | # This is similar to how AIX traditionally builds its shared libraries. | |
10072 | 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' | |
10073 | fi | |
10074 | fi | |
c52df125 | 10075 | ;; |
eec2776c AJ |
10076 | |
10077 | amigaos*) | |
10078 | case $host_cpu in | |
10079 | powerpc) | |
10080 | # see comment about AmigaOS4 .so support | |
10081 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10082 | archive_expsym_cmds='' | |
10083 | ;; | |
10084 | m68k) | |
10085 | 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)' | |
10086 | hardcode_libdir_flag_spec='-L$libdir' | |
10087 | hardcode_minus_L=yes | |
10088 | ;; | |
10089 | esac | |
c52df125 | 10090 | ;; |
c52df125 | 10091 | |
eec2776c AJ |
10092 | bsdi[45]*) |
10093 | export_dynamic_flag_spec=-rdynamic | |
10094 | ;; | |
c52df125 | 10095 | |
eec2776c AJ |
10096 | cygwin* | mingw* | pw32* | cegcc*) |
10097 | # When not using gcc, we currently assume that we are using | |
10098 | # Microsoft Visual C++. | |
10099 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10100 | # no search path for DLLs. | |
10101 | case $cc_basename in | |
10102 | cl*) | |
10103 | # Native MSVC | |
10104 | hardcode_libdir_flag_spec=' ' | |
10105 | allow_undefined_flag=unsupported | |
10106 | always_export_symbols=yes | |
10107 | file_list_spec='@' | |
10108 | # Tell ltmain to make .lib files, not .a files. | |
10109 | libext=lib | |
10110 | # Tell ltmain to make .dll files, not .so files. | |
10111 | shrext_cmds=".dll" | |
10112 | # FIXME: Setting linknames here is a bad hack. | |
10113 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10114 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10115 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10116 | else | |
10117 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10118 | fi~ | |
10119 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10120 | linknames=' | |
10121 | # The linker will not automatically build a static lib if we build a DLL. | |
10122 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10123 | enable_shared_with_static_runtimes=yes | |
10124 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10125 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10126 | # Don't use ranlib | |
10127 | old_postinstall_cmds='chmod 644 $oldlib' | |
10128 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10129 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10130 | case $lt_outputfile in | |
10131 | *.exe|*.EXE) ;; | |
10132 | *) | |
10133 | lt_outputfile="$lt_outputfile.exe" | |
10134 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10135 | ;; | |
10136 | esac~ | |
10137 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10138 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10139 | $RM "$lt_outputfile.manifest"; | |
10140 | fi' | |
c52df125 | 10141 | ;; |
eec2776c AJ |
10142 | *) |
10143 | # Assume MSVC wrapper | |
10144 | hardcode_libdir_flag_spec=' ' | |
10145 | allow_undefined_flag=unsupported | |
10146 | # Tell ltmain to make .lib files, not .a files. | |
10147 | libext=lib | |
10148 | # Tell ltmain to make .dll files, not .so files. | |
10149 | shrext_cmds=".dll" | |
10150 | # FIXME: Setting linknames here is a bad hack. | |
10151 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10152 | # The linker will automatically build a .lib file if we build a DLL. | |
10153 | old_archive_from_new_cmds='true' | |
10154 | # FIXME: Should let the user specify the lib program. | |
10155 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10156 | enable_shared_with_static_runtimes=yes | |
10157 | ;; | |
10158 | esac | |
10159 | ;; | |
c52df125 | 10160 | |
eec2776c | 10161 | darwin* | rhapsody*) |
c52df125 AC |
10162 | |
10163 | ||
eec2776c AJ |
10164 | archive_cmds_need_lc=no |
10165 | hardcode_direct=no | |
10166 | hardcode_automatic=yes | |
10167 | hardcode_shlibpath_var=unsupported | |
10168 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10169 | 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 | 10170 | |
eec2776c AJ |
10171 | else |
10172 | whole_archive_flag_spec='' | |
10173 | fi | |
10174 | link_all_deplibs=yes | |
10175 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10176 | case $cc_basename in | |
10177 | ifort*) _lt_dar_can_shared=yes ;; | |
10178 | *) _lt_dar_can_shared=$GCC ;; | |
10179 | esac | |
10180 | if test "$_lt_dar_can_shared" = "yes"; then | |
10181 | output_verbose_link_cmd=func_echo_all | |
10182 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10183 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10184 | 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}" | |
10185 | 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 | 10186 | |
eec2776c AJ |
10187 | else |
10188 | ld_shlibs=no | |
10189 | fi | |
c52df125 | 10190 | |
eec2776c | 10191 | ;; |
c52df125 | 10192 | |
eec2776c AJ |
10193 | dgux*) |
10194 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10195 | hardcode_libdir_flag_spec='-L$libdir' | |
10196 | hardcode_shlibpath_var=no | |
10197 | ;; | |
c52df125 | 10198 | |
eec2776c AJ |
10199 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10200 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10201 | # does not break anything, and helps significantly (at the cost of a little | |
10202 | # extra space). | |
10203 | freebsd2.2*) | |
10204 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10205 | hardcode_libdir_flag_spec='-R$libdir' | |
10206 | hardcode_direct=yes | |
10207 | hardcode_shlibpath_var=no | |
10208 | ;; | |
c52df125 | 10209 | |
eec2776c AJ |
10210 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10211 | freebsd2.*) | |
10212 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10213 | hardcode_direct=yes | |
10214 | hardcode_minus_L=yes | |
10215 | hardcode_shlibpath_var=no | |
10216 | ;; | |
c52df125 | 10217 | |
eec2776c AJ |
10218 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10219 | freebsd* | dragonfly*) | |
10220 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10221 | hardcode_libdir_flag_spec='-R$libdir' | |
10222 | hardcode_direct=yes | |
10223 | hardcode_shlibpath_var=no | |
10224 | ;; | |
c52df125 | 10225 | |
eec2776c AJ |
10226 | hpux9*) |
10227 | if test "$GCC" = yes; then | |
10228 | 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' | |
10229 | else | |
10230 | 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' | |
10231 | fi | |
10232 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10233 | hardcode_libdir_separator=: | |
10234 | hardcode_direct=yes | |
c52df125 | 10235 | |
eec2776c AJ |
10236 | # hardcode_minus_L: Not really in the search PATH, |
10237 | # but as the default location of the library. | |
10238 | hardcode_minus_L=yes | |
10239 | export_dynamic_flag_spec='${wl}-E' | |
10240 | ;; | |
c52df125 | 10241 | |
eec2776c AJ |
10242 | hpux10*) |
10243 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10244 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10245 | else | |
10246 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10247 | fi | |
10248 | if test "$with_gnu_ld" = no; then | |
10249 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10250 | hardcode_libdir_separator=: | |
10251 | hardcode_direct=yes | |
10252 | hardcode_direct_absolute=yes | |
10253 | export_dynamic_flag_spec='${wl}-E' | |
10254 | # hardcode_minus_L: Not really in the search PATH, | |
10255 | # but as the default location of the library. | |
10256 | hardcode_minus_L=yes | |
10257 | fi | |
10258 | ;; | |
c52df125 | 10259 | |
eec2776c AJ |
10260 | hpux11*) |
10261 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10262 | case $host_cpu in | |
10263 | hppa*64*) | |
10264 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10265 | ;; | |
10266 | ia64*) | |
10267 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10268 | ;; | |
10269 | *) | |
10270 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10271 | ;; | |
10272 | esac | |
10273 | else | |
10274 | case $host_cpu in | |
10275 | hppa*64*) | |
10276 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10277 | ;; | |
10278 | ia64*) | |
10279 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10280 | ;; | |
10281 | *) | |
c52df125 | 10282 | |
eec2776c AJ |
10283 | # Older versions of the 11.00 compiler do not understand -b yet |
10284 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10286 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10287 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10288 | $as_echo_n "(cached) " >&6 | |
10289 | else | |
10290 | lt_cv_prog_compiler__b=no | |
10291 | save_LDFLAGS="$LDFLAGS" | |
10292 | LDFLAGS="$LDFLAGS -b" | |
10293 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10294 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10295 | # The linker can only warn and ignore the option if not recognized | |
10296 | # So say no if there are warnings | |
10297 | if test -s conftest.err; then | |
10298 | # Append any errors to the config.log. | |
10299 | cat conftest.err 1>&5 | |
10300 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10301 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10302 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10303 | lt_cv_prog_compiler__b=yes | |
10304 | fi | |
10305 | else | |
10306 | lt_cv_prog_compiler__b=yes | |
10307 | fi | |
10308 | fi | |
10309 | $RM -r conftest* | |
10310 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 10311 | |
eec2776c AJ |
10312 | fi |
10313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10314 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
c52df125 | 10315 | |
eec2776c AJ |
10316 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10317 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10318 | else | |
10319 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10320 | fi | |
c52df125 | 10321 | |
eec2776c AJ |
10322 | ;; |
10323 | esac | |
10324 | fi | |
10325 | if test "$with_gnu_ld" = no; then | |
10326 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10327 | hardcode_libdir_separator=: | |
c52df125 | 10328 | |
eec2776c AJ |
10329 | case $host_cpu in |
10330 | hppa*64*|ia64*) | |
10331 | hardcode_direct=no | |
10332 | hardcode_shlibpath_var=no | |
10333 | ;; | |
10334 | *) | |
10335 | hardcode_direct=yes | |
10336 | hardcode_direct_absolute=yes | |
10337 | export_dynamic_flag_spec='${wl}-E' | |
c52df125 | 10338 | |
eec2776c AJ |
10339 | # hardcode_minus_L: Not really in the search PATH, |
10340 | # but as the default location of the library. | |
10341 | hardcode_minus_L=yes | |
10342 | ;; | |
10343 | esac | |
10344 | fi | |
10345 | ;; | |
c52df125 | 10346 | |
eec2776c AJ |
10347 | irix5* | irix6* | nonstopux*) |
10348 | if test "$GCC" = yes; then | |
10349 | 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' | |
10350 | # Try to use the -exported_symbol ld option, if it does not | |
10351 | # work, assume that -exports_file does not work either and | |
10352 | # implicitly export all symbols. | |
10353 | # This should be the same for all languages, so no per-tag cache variable. | |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10355 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10356 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10357 | $as_echo_n "(cached) " >&6 | |
10358 | else | |
10359 | save_LDFLAGS="$LDFLAGS" | |
10360 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10362 | /* end confdefs.h. */ | |
10363 | int foo (void) { return 0; } | |
10364 | _ACEOF | |
10365 | if ac_fn_c_try_link "$LINENO"; then : | |
10366 | lt_cv_irix_exported_symbol=yes | |
10367 | else | |
10368 | lt_cv_irix_exported_symbol=no | |
10369 | fi | |
10370 | rm -f core conftest.err conftest.$ac_objext \ | |
10371 | conftest$ac_exeext conftest.$ac_ext | |
10372 | LDFLAGS="$save_LDFLAGS" | |
10373 | fi | |
10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10375 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10376 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10377 | 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' | |
10378 | fi | |
10379 | else | |
10380 | 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' | |
10381 | 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' | |
10382 | fi | |
10383 | archive_cmds_need_lc='no' | |
10384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10385 | hardcode_libdir_separator=: | |
10386 | inherit_rpath=yes | |
10387 | link_all_deplibs=yes | |
10388 | ;; | |
c52df125 | 10389 | |
eec2776c AJ |
10390 | netbsd* | netbsdelf*-gnu) |
10391 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10392 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10393 | else | |
10394 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10395 | fi | |
10396 | hardcode_libdir_flag_spec='-R$libdir' | |
10397 | hardcode_direct=yes | |
10398 | hardcode_shlibpath_var=no | |
10399 | ;; | |
c52df125 | 10400 | |
eec2776c AJ |
10401 | newsos6) |
10402 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10403 | hardcode_direct=yes | |
10404 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10405 | hardcode_libdir_separator=: | |
10406 | hardcode_shlibpath_var=no | |
10407 | ;; | |
c52df125 | 10408 | |
eec2776c AJ |
10409 | *nto* | *qnx*) |
10410 | ;; | |
c52df125 | 10411 | |
eec2776c AJ |
10412 | openbsd*) |
10413 | if test -f /usr/libexec/ld.so; then | |
10414 | hardcode_direct=yes | |
10415 | hardcode_shlibpath_var=no | |
10416 | hardcode_direct_absolute=yes | |
10417 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10418 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10419 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10420 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10421 | export_dynamic_flag_spec='${wl}-E' | |
10422 | else | |
10423 | case $host_os in | |
10424 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10425 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10426 | hardcode_libdir_flag_spec='-R$libdir' | |
10427 | ;; | |
10428 | *) | |
10429 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10430 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10431 | ;; | |
10432 | esac | |
10433 | fi | |
10434 | else | |
10435 | ld_shlibs=no | |
10436 | fi | |
10437 | ;; | |
c52df125 | 10438 | |
eec2776c AJ |
10439 | os2*) |
10440 | hardcode_libdir_flag_spec='-L$libdir' | |
10441 | hardcode_minus_L=yes | |
10442 | allow_undefined_flag=unsupported | |
10443 | 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' | |
10444 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10445 | ;; | |
c52df125 | 10446 | |
eec2776c AJ |
10447 | osf3*) |
10448 | if test "$GCC" = yes; then | |
10449 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10450 | 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' | |
10451 | else | |
10452 | allow_undefined_flag=' -expect_unresolved \*' | |
10453 | 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' | |
10454 | fi | |
10455 | archive_cmds_need_lc='no' | |
10456 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10457 | hardcode_libdir_separator=: | |
10458 | ;; | |
c52df125 | 10459 | |
eec2776c AJ |
10460 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10461 | if test "$GCC" = yes; then | |
10462 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10463 | 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' | |
10464 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10465 | else | |
10466 | allow_undefined_flag=' -expect_unresolved \*' | |
10467 | 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' | |
10468 | 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~ | |
10469 | $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 | 10470 | |
eec2776c AJ |
10471 | # Both c and cxx compiler support -rpath directly |
10472 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10473 | fi | |
10474 | archive_cmds_need_lc='no' | |
10475 | hardcode_libdir_separator=: | |
10476 | ;; | |
c52df125 | 10477 | |
eec2776c AJ |
10478 | solaris*) |
10479 | no_undefined_flag=' -z defs' | |
10480 | if test "$GCC" = yes; then | |
10481 | wlarc='${wl}' | |
10482 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10483 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10484 | $CC -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' | |
10485 | else | |
10486 | case `$CC -V 2>&1` in | |
10487 | *"Compilers 5.0"*) | |
10488 | wlarc='' | |
10489 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10490 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10491 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10492 | ;; | |
10493 | *) | |
10494 | wlarc='${wl}' | |
10495 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10496 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10497 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10498 | ;; | |
10499 | esac | |
10500 | fi | |
10501 | hardcode_libdir_flag_spec='-R$libdir' | |
10502 | hardcode_shlibpath_var=no | |
10503 | case $host_os in | |
10504 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10505 | *) | |
10506 | # The compiler driver will combine and reorder linker options, | |
10507 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10508 | # but is careful enough not to reorder. | |
10509 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10510 | if test "$GCC" = yes; then | |
10511 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10512 | else | |
10513 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10514 | fi | |
10515 | ;; | |
10516 | esac | |
10517 | link_all_deplibs=yes | |
10518 | ;; | |
c52df125 | 10519 | |
eec2776c AJ |
10520 | sunos4*) |
10521 | if test "x$host_vendor" = xsequent; then | |
10522 | # Use $CC to link under sequent, because it throws in some extra .o | |
10523 | # files that make .init and .fini sections work. | |
10524 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10525 | else | |
10526 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10527 | fi | |
10528 | hardcode_libdir_flag_spec='-L$libdir' | |
10529 | hardcode_direct=yes | |
10530 | hardcode_minus_L=yes | |
10531 | hardcode_shlibpath_var=no | |
10532 | ;; | |
c52df125 | 10533 | |
eec2776c AJ |
10534 | sysv4) |
10535 | case $host_vendor in | |
10536 | sni) | |
10537 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10538 | hardcode_direct=yes # is this really true??? | |
10539 | ;; | |
10540 | siemens) | |
10541 | ## LD is ld it makes a PLAMLIB | |
10542 | ## CC just makes a GrossModule. | |
10543 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10544 | reload_cmds='$CC -r -o $output$reload_objs' | |
10545 | hardcode_direct=no | |
10546 | ;; | |
10547 | motorola) | |
10548 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10549 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10550 | ;; | |
10551 | esac | |
10552 | runpath_var='LD_RUN_PATH' | |
10553 | hardcode_shlibpath_var=no | |
10554 | ;; | |
c52df125 | 10555 | |
eec2776c AJ |
10556 | sysv4.3*) |
10557 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10558 | hardcode_shlibpath_var=no | |
10559 | export_dynamic_flag_spec='-Bexport' | |
10560 | ;; | |
c52df125 | 10561 | |
eec2776c AJ |
10562 | sysv4*MP*) |
10563 | if test -d /usr/nec; then | |
10564 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10565 | hardcode_shlibpath_var=no | |
10566 | runpath_var=LD_RUN_PATH | |
10567 | hardcode_runpath_var=yes | |
10568 | ld_shlibs=yes | |
10569 | fi | |
10570 | ;; | |
c52df125 | 10571 | |
eec2776c AJ |
10572 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10573 | no_undefined_flag='${wl}-z,text' | |
10574 | archive_cmds_need_lc=no | |
10575 | hardcode_shlibpath_var=no | |
10576 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10577 | |
eec2776c AJ |
10578 | if test "$GCC" = yes; then |
10579 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10580 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10581 | else | |
10582 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10583 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10584 | fi | |
10585 | ;; | |
c52df125 | 10586 | |
eec2776c AJ |
10587 | sysv5* | sco3.2v5* | sco5v6*) |
10588 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10589 | # link with -lc, and that would cause any symbols used from libc to | |
10590 | # always be unresolved, which means just about no library would | |
10591 | # ever link correctly. If we're not using GNU ld we use -z text | |
10592 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10593 | # as -z defs. | |
10594 | no_undefined_flag='${wl}-z,text' | |
10595 | allow_undefined_flag='${wl}-z,nodefs' | |
10596 | archive_cmds_need_lc=no | |
10597 | hardcode_shlibpath_var=no | |
10598 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10599 | hardcode_libdir_separator=':' | |
10600 | link_all_deplibs=yes | |
10601 | export_dynamic_flag_spec='${wl}-Bexport' | |
10602 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10603 | |
eec2776c AJ |
10604 | if test "$GCC" = yes; then |
10605 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10606 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10607 | else | |
10608 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10609 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10610 | fi | |
10611 | ;; | |
c52df125 | 10612 | |
eec2776c AJ |
10613 | uts4*) |
10614 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10615 | hardcode_libdir_flag_spec='-L$libdir' | |
10616 | hardcode_shlibpath_var=no | |
10617 | ;; | |
c52df125 | 10618 | |
eec2776c AJ |
10619 | *) |
10620 | ld_shlibs=no | |
10621 | ;; | |
10622 | esac | |
c52df125 | 10623 | |
eec2776c AJ |
10624 | if test x$host_vendor = xsni; then |
10625 | case $host in | |
10626 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10627 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10628 | ;; | |
10629 | esac | |
10630 | fi | |
10631 | fi | |
c52df125 | 10632 | |
eec2776c AJ |
10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10634 | $as_echo "$ld_shlibs" >&6; } | |
10635 | test "$ld_shlibs" = no && can_build_shared=no | |
c52df125 | 10636 | |
eec2776c | 10637 | with_gnu_ld=$with_gnu_ld |
c52df125 AC |
10638 | |
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | ||
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | ||
10651 | ||
10652 | ||
eec2776c AJ |
10653 | # |
10654 | # Do we need to explicitly link libc? | |
10655 | # | |
10656 | case "x$archive_cmds_need_lc" in | |
10657 | x|xyes) | |
10658 | # Assume -lc should be added | |
10659 | archive_cmds_need_lc=yes | |
c52df125 | 10660 | |
eec2776c AJ |
10661 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10662 | case $archive_cmds in | |
10663 | *'~'*) | |
10664 | # FIXME: we may have to deal with multi-command sequences. | |
10665 | ;; | |
10666 | '$CC '*) | |
10667 | # Test whether the compiler implicitly links with -lc since on some | |
10668 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10669 | # to ld, don't add -lc before -lgcc. | |
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10671 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10672 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10673 | $as_echo_n "(cached) " >&6 | |
10674 | else | |
10675 | $RM conftest* | |
10676 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 10677 | |
eec2776c AJ |
10678 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10679 | (eval $ac_compile) 2>&5 | |
10680 | ac_status=$? | |
10681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10682 | test $ac_status = 0; } 2>conftest.err; then | |
10683 | soname=conftest | |
10684 | lib=conftest | |
10685 | libobjs=conftest.$ac_objext | |
10686 | deplibs= | |
10687 | wl=$lt_prog_compiler_wl | |
10688 | pic_flag=$lt_prog_compiler_pic | |
10689 | compiler_flags=-v | |
10690 | linker_flags=-v | |
10691 | verstring= | |
10692 | output_objdir=. | |
10693 | libname=conftest | |
10694 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10695 | allow_undefined_flag= | |
10696 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10697 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10698 | ac_status=$? | |
10699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10700 | test $ac_status = 0; } | |
10701 | then | |
10702 | lt_cv_archive_cmds_need_lc=no | |
10703 | else | |
10704 | lt_cv_archive_cmds_need_lc=yes | |
10705 | fi | |
10706 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10707 | else | |
10708 | cat conftest.err 1>&5 | |
10709 | fi | |
10710 | $RM conftest* | |
c52df125 | 10711 | |
eec2776c AJ |
10712 | fi |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10714 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10715 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10716 | ;; | |
10717 | esac | |
10718 | fi | |
10719 | ;; | |
10720 | esac | |
c52df125 AC |
10721 | |
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
c52df125 | 10729 | |
c52df125 | 10730 | |
c52df125 AC |
10731 | |
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | ||
c52df125 | 10737 | |
c52df125 | 10738 | |
c52df125 | 10739 | |
c52df125 | 10740 | |
c52df125 | 10741 | |
c52df125 | 10742 | |
c52df125 | 10743 | |
c52df125 | 10744 | |
c52df125 | 10745 | |
c52df125 | 10746 | |
c52df125 | 10747 | |
c52df125 | 10748 | |
eec2776c AJ |
10749 | |
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10874 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10875 | ||
10876 | if test "$GCC" = yes; then | |
10877 | case $host_os in | |
10878 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10879 | *) lt_awk_arg="/^libraries:/" ;; | |
10880 | esac | |
10881 | case $host_os in | |
10882 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10883 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10884 | esac | |
10885 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10886 | case $lt_search_path_spec in | |
10887 | *\;*) | |
10888 | # if the path contains ";" then we assume it to be the separator | |
10889 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10890 | # assumed that no part of a normal pathname contains ";" but that should | |
10891 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10892 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10893 | ;; | |
10894 | *) | |
10895 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10896 | ;; | |
10897 | esac | |
10898 | # Ok, now we have the path, separated by spaces, we can step through it | |
10899 | # and add multilib dir if necessary. | |
10900 | lt_tmp_lt_search_path_spec= | |
10901 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10902 | for lt_sys_path in $lt_search_path_spec; do | |
10903 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10904 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10905 | else | |
10906 | test -d "$lt_sys_path" && \ | |
10907 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10908 | fi | |
10909 | done | |
10910 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10911 | BEGIN {RS=" "; FS="/|\n";} { | |
10912 | lt_foo=""; | |
10913 | lt_count=0; | |
10914 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10915 | if ($lt_i != "" && $lt_i != ".") { | |
10916 | if ($lt_i == "..") { | |
10917 | lt_count++; | |
10918 | } else { | |
10919 | if (lt_count == 0) { | |
10920 | lt_foo="/" $lt_i lt_foo; | |
10921 | } else { | |
10922 | lt_count--; | |
10923 | } | |
10924 | } | |
10925 | } | |
10926 | } | |
10927 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10928 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10929 | }'` | |
10930 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10931 | # for these hosts. | |
10932 | case $host_os in | |
10933 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10934 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10935 | esac | |
10936 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10937 | else | |
10938 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10939 | fi | |
10940 | library_names_spec= | |
10941 | libname_spec='lib$name' | |
10942 | soname_spec= | |
10943 | shrext_cmds=".so" | |
10944 | postinstall_cmds= | |
10945 | postuninstall_cmds= | |
10946 | finish_cmds= | |
10947 | finish_eval= | |
10948 | shlibpath_var= | |
10949 | shlibpath_overrides_runpath=unknown | |
10950 | version_type=none | |
10951 | dynamic_linker="$host_os ld.so" | |
10952 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10953 | need_lib_prefix=unknown | |
10954 | hardcode_into_libs=no | |
10955 | ||
10956 | # when you set need_version to no, make sure it does not cause -set_version | |
10957 | # flags to be left without arguments | |
10958 | need_version=unknown | |
10959 | ||
10960 | case $host_os in | |
10961 | aix3*) | |
10962 | version_type=linux # correct to gnu/linux during the next big refactor | |
10963 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10964 | shlibpath_var=LIBPATH | |
10965 | ||
10966 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10967 | soname_spec='${libname}${release}${shared_ext}$major' | |
10968 | ;; | |
10969 | ||
10970 | aix[4-9]*) | |
10971 | version_type=linux # correct to gnu/linux during the next big refactor | |
10972 | need_lib_prefix=no | |
10973 | need_version=no | |
10974 | hardcode_into_libs=yes | |
10975 | if test "$host_cpu" = ia64; then | |
10976 | # AIX 5 supports IA64 | |
10977 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10978 | shlibpath_var=LD_LIBRARY_PATH | |
10979 | else | |
10980 | # With GCC up to 2.95.x, collect2 would create an import file | |
10981 | # for dependence libraries. The import file would start with | |
10982 | # the line `#! .'. This would cause the generated library to | |
10983 | # depend on `.', always an invalid library. This was fixed in | |
10984 | # development snapshots of GCC prior to 3.0. | |
10985 | case $host_os in | |
10986 | aix4 | aix4.[01] | aix4.[01].*) | |
10987 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10988 | echo ' yes ' | |
10989 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10990 | : | |
10991 | else | |
10992 | can_build_shared=no | |
10993 | fi | |
10994 | ;; | |
10995 | esac | |
10996 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10997 | # soname into executable. Probably we can add versioning support to | |
10998 | # collect2, so additional links can be useful in future. | |
10999 | if test "$aix_use_runtimelinking" = yes; then | |
11000 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11001 | # instead of lib<name>.a to let people know that these are not | |
11002 | # typical AIX shared libraries. | |
11003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11004 | else | |
11005 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11006 | # and later when we are not doing run time linking. | |
11007 | library_names_spec='${libname}${release}.a $libname.a' | |
11008 | soname_spec='${libname}${release}${shared_ext}$major' | |
11009 | fi | |
11010 | shlibpath_var=LIBPATH | |
11011 | fi | |
11012 | ;; | |
11013 | ||
11014 | amigaos*) | |
11015 | case $host_cpu in | |
11016 | powerpc) | |
11017 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11018 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11020 | ;; | |
11021 | m68k) | |
11022 | library_names_spec='$libname.ixlibrary $libname.a' | |
11023 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11024 | 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' | |
11025 | ;; | |
11026 | esac | |
11027 | ;; | |
11028 | ||
11029 | beos*) | |
11030 | library_names_spec='${libname}${shared_ext}' | |
11031 | dynamic_linker="$host_os ld.so" | |
11032 | shlibpath_var=LIBRARY_PATH | |
11033 | ;; | |
11034 | ||
11035 | bsdi[45]*) | |
11036 | version_type=linux # correct to gnu/linux during the next big refactor | |
11037 | need_version=no | |
11038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11039 | soname_spec='${libname}${release}${shared_ext}$major' | |
11040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11041 | shlibpath_var=LD_LIBRARY_PATH | |
11042 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11043 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11044 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11045 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11046 | # libtool to hard-code these into programs | |
11047 | ;; | |
11048 | ||
11049 | cygwin* | mingw* | pw32* | cegcc*) | |
11050 | version_type=windows | |
11051 | shrext_cmds=".dll" | |
11052 | need_version=no | |
11053 | need_lib_prefix=no | |
11054 | ||
11055 | case $GCC,$cc_basename in | |
11056 | yes,*) | |
11057 | # gcc | |
11058 | library_names_spec='$libname.dll.a' | |
11059 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11060 | postinstall_cmds='base_file=`basename \${file}`~ | |
11061 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11062 | dldir=$destdir/`dirname \$dlpath`~ | |
11063 | test -d \$dldir || mkdir -p \$dldir~ | |
11064 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11065 | chmod a+x \$dldir/$dlname~ | |
11066 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11067 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11068 | fi' | |
11069 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11070 | dlpath=$dir/\$dldll~ | |
11071 | $RM \$dlpath' | |
11072 | shlibpath_overrides_runpath=yes | |
11073 | ||
11074 | case $host_os in | |
11075 | cygwin*) | |
11076 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11077 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11078 | ||
11079 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11080 | ;; | |
11081 | mingw* | cegcc*) | |
11082 | # MinGW DLLs use traditional 'lib' prefix | |
11083 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11084 | ;; | |
11085 | pw32*) | |
11086 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11087 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11088 | ;; | |
11089 | esac | |
11090 | dynamic_linker='Win32 ld.exe' | |
11091 | ;; | |
11092 | ||
11093 | *,cl*) | |
11094 | # Native MSVC | |
11095 | libname_spec='$name' | |
11096 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11097 | library_names_spec='${libname}.dll.lib' | |
11098 | ||
11099 | case $build_os in | |
11100 | mingw*) | |
11101 | sys_lib_search_path_spec= | |
11102 | lt_save_ifs=$IFS | |
11103 | IFS=';' | |
11104 | for lt_path in $LIB | |
11105 | do | |
11106 | IFS=$lt_save_ifs | |
11107 | # Let DOS variable expansion print the short 8.3 style file name. | |
11108 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11109 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11110 | done | |
11111 | IFS=$lt_save_ifs | |
11112 | # Convert to MSYS style. | |
11113 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11114 | ;; | |
11115 | cygwin*) | |
11116 | # Convert to unix form, then to dos form, then back to unix form | |
11117 | # but this time dos style (no spaces!) so that the unix form looks | |
11118 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11119 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11120 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11121 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11122 | ;; | |
11123 | *) | |
11124 | sys_lib_search_path_spec="$LIB" | |
11125 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11126 | # It is most probably a Windows format PATH. | |
11127 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11128 | else | |
11129 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11130 | fi | |
11131 | # FIXME: find the short name or the path components, as spaces are | |
11132 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11133 | ;; | |
11134 | esac | |
11135 | ||
11136 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11137 | postinstall_cmds='base_file=`basename \${file}`~ | |
11138 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11139 | dldir=$destdir/`dirname \$dlpath`~ | |
11140 | test -d \$dldir || mkdir -p \$dldir~ | |
11141 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11142 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11143 | dlpath=$dir/\$dldll~ | |
11144 | $RM \$dlpath' | |
11145 | shlibpath_overrides_runpath=yes | |
11146 | dynamic_linker='Win32 link.exe' | |
11147 | ;; | |
11148 | ||
11149 | *) | |
11150 | # Assume MSVC wrapper | |
11151 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11152 | dynamic_linker='Win32 ld.exe' | |
11153 | ;; | |
11154 | esac | |
11155 | # FIXME: first we should search . and the directory the executable is in | |
11156 | shlibpath_var=PATH | |
11157 | ;; | |
11158 | ||
11159 | darwin* | rhapsody*) | |
11160 | dynamic_linker="$host_os dyld" | |
11161 | version_type=darwin | |
11162 | need_lib_prefix=no | |
11163 | need_version=no | |
11164 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11165 | soname_spec='${libname}${release}${major}$shared_ext' | |
11166 | shlibpath_overrides_runpath=yes | |
11167 | shlibpath_var=DYLD_LIBRARY_PATH | |
11168 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11169 | ||
11170 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11171 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11172 | ;; | |
11173 | ||
11174 | dgux*) | |
11175 | version_type=linux # correct to gnu/linux during the next big refactor | |
11176 | need_lib_prefix=no | |
11177 | need_version=no | |
11178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11179 | soname_spec='${libname}${release}${shared_ext}$major' | |
11180 | shlibpath_var=LD_LIBRARY_PATH | |
11181 | ;; | |
11182 | ||
11183 | freebsd* | dragonfly*) | |
11184 | # DragonFly does not have aout. When/if they implement a new | |
11185 | # versioning mechanism, adjust this. | |
11186 | if test -x /usr/bin/objformat; then | |
11187 | objformat=`/usr/bin/objformat` | |
11188 | else | |
11189 | case $host_os in | |
11190 | freebsd[23].*) objformat=aout ;; | |
11191 | *) objformat=elf ;; | |
11192 | esac | |
11193 | fi | |
11194 | version_type=freebsd-$objformat | |
11195 | case $version_type in | |
11196 | freebsd-elf*) | |
11197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11198 | need_version=no | |
11199 | need_lib_prefix=no | |
11200 | ;; | |
11201 | freebsd-*) | |
11202 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11203 | need_version=yes | |
11204 | ;; | |
11205 | esac | |
11206 | shlibpath_var=LD_LIBRARY_PATH | |
11207 | case $host_os in | |
11208 | freebsd2.*) | |
11209 | shlibpath_overrides_runpath=yes | |
11210 | ;; | |
11211 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11212 | shlibpath_overrides_runpath=yes | |
11213 | hardcode_into_libs=yes | |
11214 | ;; | |
11215 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11216 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11217 | shlibpath_overrides_runpath=no | |
11218 | hardcode_into_libs=yes | |
11219 | ;; | |
11220 | *) # from 4.6 on, and DragonFly | |
11221 | shlibpath_overrides_runpath=yes | |
11222 | hardcode_into_libs=yes | |
11223 | ;; | |
11224 | esac | |
11225 | ;; | |
11226 | ||
11227 | haiku*) | |
11228 | version_type=linux # correct to gnu/linux during the next big refactor | |
11229 | need_lib_prefix=no | |
11230 | need_version=no | |
11231 | dynamic_linker="$host_os runtime_loader" | |
11232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11233 | soname_spec='${libname}${release}${shared_ext}$major' | |
11234 | shlibpath_var=LIBRARY_PATH | |
11235 | shlibpath_overrides_runpath=yes | |
11236 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11237 | hardcode_into_libs=yes | |
11238 | ;; | |
11239 | ||
11240 | hpux9* | hpux10* | hpux11*) | |
11241 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11242 | # link against other versions. | |
11243 | version_type=sunos | |
11244 | need_lib_prefix=no | |
11245 | need_version=no | |
11246 | case $host_cpu in | |
11247 | ia64*) | |
11248 | shrext_cmds='.so' | |
11249 | hardcode_into_libs=yes | |
11250 | dynamic_linker="$host_os dld.so" | |
11251 | shlibpath_var=LD_LIBRARY_PATH | |
11252 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11254 | soname_spec='${libname}${release}${shared_ext}$major' | |
11255 | if test "X$HPUX_IA64_MODE" = X32; then | |
11256 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11257 | else | |
11258 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11259 | fi | |
11260 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11261 | ;; | |
11262 | hppa*64*) | |
11263 | shrext_cmds='.sl' | |
11264 | hardcode_into_libs=yes | |
11265 | dynamic_linker="$host_os dld.sl" | |
11266 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11267 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11269 | soname_spec='${libname}${release}${shared_ext}$major' | |
11270 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11271 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11272 | ;; | |
11273 | *) | |
11274 | shrext_cmds='.sl' | |
11275 | dynamic_linker="$host_os dld.sl" | |
11276 | shlibpath_var=SHLIB_PATH | |
11277 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
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 | ;; | |
11281 | esac | |
11282 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11283 | postinstall_cmds='chmod 555 $lib' | |
11284 | # or fails outright, so override atomically: | |
11285 | install_override_mode=555 | |
11286 | ;; | |
11287 | ||
11288 | interix[3-9]*) | |
11289 | version_type=linux # correct to gnu/linux during the next big refactor | |
11290 | need_lib_prefix=no | |
11291 | need_version=no | |
11292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11293 | soname_spec='${libname}${release}${shared_ext}$major' | |
11294 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11295 | shlibpath_var=LD_LIBRARY_PATH | |
11296 | shlibpath_overrides_runpath=no | |
11297 | hardcode_into_libs=yes | |
11298 | ;; | |
11299 | ||
11300 | irix5* | irix6* | nonstopux*) | |
11301 | case $host_os in | |
11302 | nonstopux*) version_type=nonstopux ;; | |
11303 | *) | |
11304 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11305 | version_type=linux # correct to gnu/linux during the next big refactor | |
11306 | else | |
11307 | version_type=irix | |
11308 | fi ;; | |
11309 | esac | |
11310 | need_lib_prefix=no | |
11311 | need_version=no | |
11312 | soname_spec='${libname}${release}${shared_ext}$major' | |
11313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11314 | case $host_os in | |
11315 | irix5* | nonstopux*) | |
11316 | libsuff= shlibsuff= | |
11317 | ;; | |
11318 | *) | |
11319 | case $LD in # libtool.m4 will add one of these switches to LD | |
11320 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11321 | libsuff= shlibsuff= libmagic=32-bit;; | |
11322 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11323 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11324 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11325 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11326 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11327 | esac | |
11328 | ;; | |
11329 | esac | |
11330 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11331 | shlibpath_overrides_runpath=no | |
11332 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11333 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11334 | hardcode_into_libs=yes | |
11335 | ;; | |
11336 | ||
11337 | # No shared lib support for Linux oldld, aout, or coff. | |
11338 | linux*oldld* | linux*aout* | linux*coff*) | |
11339 | dynamic_linker=no | |
11340 | ;; | |
11341 | ||
11342 | # This must be glibc/ELF. | |
11343 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11344 | version_type=linux # correct to gnu/linux during the next big refactor | |
11345 | need_lib_prefix=no | |
11346 | need_version=no | |
11347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11348 | soname_spec='${libname}${release}${shared_ext}$major' | |
11349 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11350 | shlibpath_var=LD_LIBRARY_PATH | |
11351 | shlibpath_overrides_runpath=no | |
11352 | ||
11353 | # Some binutils ld are patched to set DT_RUNPATH | |
11354 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
c52df125 AC |
11355 | $as_echo_n "(cached) " >&6 |
11356 | else | |
eec2776c AJ |
11357 | lt_cv_shlibpath_overrides_runpath=no |
11358 | save_LDFLAGS=$LDFLAGS | |
11359 | save_libdir=$libdir | |
11360 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11361 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 AC |
11363 | /* end confdefs.h. */ |
11364 | ||
c52df125 AC |
11365 | int |
11366 | main () | |
11367 | { | |
eec2776c | 11368 | |
c52df125 AC |
11369 | ; |
11370 | return 0; | |
11371 | } | |
11372 | _ACEOF | |
11373 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c AJ |
11374 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11375 | lt_cv_shlibpath_overrides_runpath=yes | |
11376 | fi | |
c52df125 AC |
11377 | fi |
11378 | rm -f core conftest.err conftest.$ac_objext \ | |
11379 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
11380 | LDFLAGS=$save_LDFLAGS |
11381 | libdir=$save_libdir | |
c52df125 AC |
11382 | |
11383 | fi | |
11384 | ||
eec2776c | 11385 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
c52df125 | 11386 | |
eec2776c AJ |
11387 | # This implies no fast_install, which is unacceptable. |
11388 | # Some rework will be needed to allow for fast_install | |
11389 | # before this can be enabled. | |
11390 | hardcode_into_libs=yes | |
c52df125 | 11391 | |
eec2776c AJ |
11392 | # Append ld.so.conf contents to the search path |
11393 | if test -f /etc/ld.so.conf; then | |
11394 | 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' ' '` | |
11395 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11396 | fi | |
c52df125 | 11397 | |
eec2776c AJ |
11398 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11399 | # powerpc, because MkLinux only supported shared libraries with the | |
11400 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11401 | # most powerpc-linux boxes support dynamic linking these days and | |
11402 | # people can always --disable-shared, the test was removed, and we | |
11403 | # assume the GNU/Linux dynamic linker is in use. | |
11404 | dynamic_linker='GNU/Linux ld.so' | |
11405 | ;; | |
c52df125 | 11406 | |
eec2776c AJ |
11407 | netbsdelf*-gnu) |
11408 | version_type=linux | |
11409 | need_lib_prefix=no | |
11410 | need_version=no | |
11411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11412 | soname_spec='${libname}${release}${shared_ext}$major' | |
11413 | shlibpath_var=LD_LIBRARY_PATH | |
11414 | shlibpath_overrides_runpath=no | |
11415 | hardcode_into_libs=yes | |
11416 | dynamic_linker='NetBSD ld.elf_so' | |
11417 | ;; | |
c52df125 | 11418 | |
eec2776c AJ |
11419 | netbsd*) |
11420 | version_type=sunos | |
11421 | need_lib_prefix=no | |
11422 | need_version=no | |
11423 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11426 | dynamic_linker='NetBSD (a.out) ld.so' | |
11427 | else | |
11428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11429 | soname_spec='${libname}${release}${shared_ext}$major' | |
11430 | dynamic_linker='NetBSD ld.elf_so' | |
11431 | fi | |
11432 | shlibpath_var=LD_LIBRARY_PATH | |
11433 | shlibpath_overrides_runpath=yes | |
11434 | hardcode_into_libs=yes | |
11435 | ;; | |
c52df125 | 11436 | |
eec2776c AJ |
11437 | newsos6) |
11438 | version_type=linux # correct to gnu/linux during the next big refactor | |
11439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11440 | shlibpath_var=LD_LIBRARY_PATH | |
11441 | shlibpath_overrides_runpath=yes | |
11442 | ;; | |
c52df125 | 11443 | |
eec2776c AJ |
11444 | *nto* | *qnx*) |
11445 | version_type=qnx | |
11446 | need_lib_prefix=no | |
11447 | need_version=no | |
11448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11449 | soname_spec='${libname}${release}${shared_ext}$major' | |
11450 | shlibpath_var=LD_LIBRARY_PATH | |
11451 | shlibpath_overrides_runpath=no | |
11452 | hardcode_into_libs=yes | |
11453 | dynamic_linker='ldqnx.so' | |
11454 | ;; | |
c52df125 | 11455 | |
eec2776c AJ |
11456 | openbsd*) |
11457 | version_type=sunos | |
11458 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11459 | need_lib_prefix=no | |
11460 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11461 | case $host_os in | |
11462 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11463 | *) need_version=no ;; | |
c52df125 | 11464 | esac |
eec2776c AJ |
11465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11466 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11467 | shlibpath_var=LD_LIBRARY_PATH | |
11468 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11469 | case $host_os in | |
11470 | openbsd2.[89] | openbsd2.[89].*) | |
11471 | shlibpath_overrides_runpath=no | |
11472 | ;; | |
11473 | *) | |
11474 | shlibpath_overrides_runpath=yes | |
11475 | ;; | |
11476 | esac | |
c52df125 | 11477 | else |
eec2776c | 11478 | shlibpath_overrides_runpath=yes |
c52df125 | 11479 | fi |
eec2776c | 11480 | ;; |
c52df125 | 11481 | |
eec2776c AJ |
11482 | os2*) |
11483 | libname_spec='$name' | |
11484 | shrext_cmds=".dll" | |
11485 | need_lib_prefix=no | |
11486 | library_names_spec='$libname${shared_ext} $libname.a' | |
11487 | dynamic_linker='OS/2 ld.exe' | |
11488 | shlibpath_var=LIBPATH | |
11489 | ;; | |
c52df125 | 11490 | |
eec2776c AJ |
11491 | osf3* | osf4* | osf5*) |
11492 | version_type=osf | |
11493 | need_lib_prefix=no | |
11494 | need_version=no | |
11495 | soname_spec='${libname}${release}${shared_ext}$major' | |
11496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11497 | shlibpath_var=LD_LIBRARY_PATH | |
11498 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11499 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11500 | ;; | |
c52df125 | 11501 | |
eec2776c AJ |
11502 | rdos*) |
11503 | dynamic_linker=no | |
11504 | ;; | |
c52df125 | 11505 | |
eec2776c AJ |
11506 | solaris*) |
11507 | version_type=linux # correct to gnu/linux during the next big refactor | |
11508 | need_lib_prefix=no | |
11509 | need_version=no | |
11510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11511 | soname_spec='${libname}${release}${shared_ext}$major' | |
11512 | shlibpath_var=LD_LIBRARY_PATH | |
11513 | shlibpath_overrides_runpath=yes | |
11514 | hardcode_into_libs=yes | |
11515 | # ldd complains unless libraries are executable | |
11516 | postinstall_cmds='chmod +x $lib' | |
11517 | ;; | |
c52df125 | 11518 | |
eec2776c AJ |
11519 | sunos4*) |
11520 | version_type=sunos | |
11521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11522 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11523 | shlibpath_var=LD_LIBRARY_PATH | |
11524 | shlibpath_overrides_runpath=yes | |
11525 | if test "$with_gnu_ld" = yes; then | |
11526 | need_lib_prefix=no | |
11527 | fi | |
11528 | need_version=yes | |
11529 | ;; | |
c52df125 | 11530 | |
eec2776c AJ |
11531 | sysv4 | sysv4.3*) |
11532 | version_type=linux # correct to gnu/linux during the next big refactor | |
11533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11534 | soname_spec='${libname}${release}${shared_ext}$major' | |
11535 | shlibpath_var=LD_LIBRARY_PATH | |
11536 | case $host_vendor in | |
11537 | sni) | |
11538 | shlibpath_overrides_runpath=no | |
11539 | need_lib_prefix=no | |
11540 | runpath_var=LD_RUN_PATH | |
11541 | ;; | |
11542 | siemens) | |
11543 | need_lib_prefix=no | |
11544 | ;; | |
11545 | motorola) | |
11546 | need_lib_prefix=no | |
11547 | need_version=no | |
11548 | shlibpath_overrides_runpath=no | |
11549 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11550 | ;; | |
11551 | esac | |
11552 | ;; | |
c52df125 | 11553 | |
eec2776c AJ |
11554 | sysv4*MP*) |
11555 | if test -d /usr/nec ;then | |
11556 | version_type=linux # correct to gnu/linux during the next big refactor | |
11557 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11558 | soname_spec='$libname${shared_ext}.$major' | |
11559 | shlibpath_var=LD_LIBRARY_PATH | |
11560 | fi | |
11561 | ;; | |
c52df125 | 11562 | |
eec2776c AJ |
11563 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11564 | version_type=freebsd-elf | |
11565 | need_lib_prefix=no | |
11566 | need_version=no | |
11567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11568 | soname_spec='${libname}${release}${shared_ext}$major' | |
11569 | shlibpath_var=LD_LIBRARY_PATH | |
11570 | shlibpath_overrides_runpath=yes | |
11571 | hardcode_into_libs=yes | |
11572 | if test "$with_gnu_ld" = yes; then | |
11573 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
c52df125 | 11574 | else |
eec2776c AJ |
11575 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11576 | case $host_os in | |
11577 | sco3.2v5*) | |
11578 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11579 | ;; | |
c52df125 | 11580 | esac |
c52df125 | 11581 | fi |
eec2776c AJ |
11582 | sys_lib_dlsearch_path_spec='/usr/lib' |
11583 | ;; | |
c52df125 | 11584 | |
eec2776c AJ |
11585 | tpf*) |
11586 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11587 | version_type=linux # correct to gnu/linux during the next big refactor | |
11588 | need_lib_prefix=no | |
11589 | need_version=no | |
11590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11591 | shlibpath_var=LD_LIBRARY_PATH | |
11592 | shlibpath_overrides_runpath=no | |
11593 | hardcode_into_libs=yes | |
11594 | ;; | |
c52df125 | 11595 | |
eec2776c AJ |
11596 | uts4*) |
11597 | version_type=linux # correct to gnu/linux during the next big refactor | |
11598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11599 | soname_spec='${libname}${release}${shared_ext}$major' | |
11600 | shlibpath_var=LD_LIBRARY_PATH | |
11601 | ;; | |
c52df125 | 11602 | |
eec2776c AJ |
11603 | *) |
11604 | dynamic_linker=no | |
11605 | ;; | |
11606 | esac | |
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11608 | $as_echo "$dynamic_linker" >&6; } | |
11609 | test "$dynamic_linker" = no && can_build_shared=no | |
c52df125 | 11610 | |
eec2776c AJ |
11611 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11612 | if test "$GCC" = yes; then | |
11613 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11614 | fi | |
c52df125 | 11615 | |
eec2776c AJ |
11616 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11617 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11618 | fi | |
11619 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11620 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11621 | fi | |
c52df125 | 11622 | |
c52df125 | 11623 | |
c52df125 | 11624 | |
c52df125 | 11625 | |
c52df125 | 11626 | |
c52df125 | 11627 | |
c52df125 AC |
11628 | |
11629 | ||
c52df125 | 11630 | |
c52df125 | 11631 | |
c52df125 | 11632 | |
c52df125 AC |
11633 | |
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
c52df125 AC |
11650 | |
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
c52df125 | 11662 | |
c52df125 | 11663 | |
c52df125 | 11664 | |
c52df125 | 11665 | |
c52df125 AC |
11666 | |
11667 | ||
11668 | ||
11669 | ||
c52df125 | 11670 | |
c52df125 AC |
11671 | |
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
c52df125 AC |
11686 | |
11687 | ||
11688 | ||
11689 | ||
c52df125 AC |
11690 | |
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
c52df125 | 11700 | |
c52df125 | 11701 | |
c52df125 | 11702 | |
c52df125 | 11703 | |
c52df125 | 11704 | |
c52df125 | 11705 | |
c52df125 | 11706 | |
c52df125 | 11707 | |
c52df125 | 11708 | |
c52df125 | 11709 | |
eec2776c AJ |
11710 | |
11711 | ||
11712 | ||
11713 | ||
11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11715 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11716 | hardcode_action= | |
11717 | if test -n "$hardcode_libdir_flag_spec" || | |
11718 | test -n "$runpath_var" || | |
11719 | test "X$hardcode_automatic" = "Xyes" ; then | |
11720 | ||
11721 | # We can hardcode non-existent directories. | |
11722 | if test "$hardcode_direct" != no && | |
11723 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11724 | # have to relink, otherwise we might link with an installed library | |
11725 | # when we should be linking with a yet-to-be-installed one | |
11726 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11727 | test "$hardcode_minus_L" != no; then | |
11728 | # Linking always hardcodes the temporary library directory. | |
11729 | hardcode_action=relink | |
11730 | else | |
11731 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11732 | hardcode_action=immediate | |
11733 | fi | |
c52df125 | 11734 | else |
eec2776c AJ |
11735 | # We cannot hardcode anything, or else we can only hardcode existing |
11736 | # directories. | |
11737 | hardcode_action=unsupported | |
c52df125 | 11738 | fi |
eec2776c AJ |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11740 | $as_echo "$hardcode_action" >&6; } | |
c52df125 | 11741 | |
eec2776c AJ |
11742 | if test "$hardcode_action" = relink || |
11743 | test "$inherit_rpath" = yes; then | |
11744 | # Fast installation is not supported | |
11745 | enable_fast_install=no | |
11746 | elif test "$shlibpath_overrides_runpath" = yes || | |
11747 | test "$enable_shared" = no; then | |
11748 | # Fast installation is not necessary | |
11749 | enable_fast_install=needless | |
c52df125 AC |
11750 | fi |
11751 | ||
11752 | ||
c52df125 AC |
11753 | |
11754 | ||
c52df125 AC |
11755 | |
11756 | ||
eec2776c AJ |
11757 | if test "x$enable_dlopen" != xyes; then |
11758 | enable_dlopen=unknown | |
11759 | enable_dlopen_self=unknown | |
11760 | enable_dlopen_self_static=unknown | |
11761 | else | |
11762 | lt_cv_dlopen=no | |
11763 | lt_cv_dlopen_libs= | |
11764 | ||
11765 | case $host_os in | |
11766 | beos*) | |
11767 | lt_cv_dlopen="load_add_on" | |
11768 | lt_cv_dlopen_libs= | |
11769 | lt_cv_dlopen_self=yes | |
11770 | ;; | |
11771 | ||
11772 | mingw* | pw32* | cegcc*) | |
11773 | lt_cv_dlopen="LoadLibrary" | |
11774 | lt_cv_dlopen_libs= | |
11775 | ;; | |
11776 | ||
11777 | cygwin*) | |
11778 | lt_cv_dlopen="dlopen" | |
11779 | lt_cv_dlopen_libs= | |
11780 | ;; | |
11781 | ||
11782 | darwin*) | |
11783 | # if libdl is installed we need to link against it | |
11784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11785 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11786 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11787 | $as_echo_n "(cached) " >&6 |
11788 | else | |
eec2776c AJ |
11789 | ac_check_lib_save_LIBS=$LIBS |
11790 | LIBS="-ldl $LIBS" | |
c52df125 AC |
11791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11792 | /* end confdefs.h. */ | |
11793 | ||
11794 | /* Override any GCC internal prototype to avoid an error. | |
11795 | Use char because int might match the return type of a GCC | |
11796 | builtin and then its argument prototype would still apply. */ | |
11797 | #ifdef __cplusplus | |
11798 | extern "C" | |
11799 | #endif | |
11800 | char dlopen (); | |
11801 | int | |
11802 | main () | |
11803 | { | |
11804 | return dlopen (); | |
11805 | ; | |
11806 | return 0; | |
11807 | } | |
11808 | _ACEOF | |
eec2776c AJ |
11809 | if ac_fn_c_try_link "$LINENO"; then : |
11810 | ac_cv_lib_dl_dlopen=yes | |
11811 | else | |
11812 | ac_cv_lib_dl_dlopen=no | |
c52df125 AC |
11813 | fi |
11814 | rm -f core conftest.err conftest.$ac_objext \ | |
eec2776c AJ |
11815 | conftest$ac_exeext conftest.$ac_ext |
11816 | LIBS=$ac_check_lib_save_LIBS | |
c52df125 | 11817 | fi |
eec2776c AJ |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11819 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11820 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11821 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11822 | else |
eec2776c AJ |
11823 | |
11824 | lt_cv_dlopen="dyld" | |
11825 | lt_cv_dlopen_libs= | |
11826 | lt_cv_dlopen_self=yes | |
11827 | ||
c52df125 | 11828 | fi |
c52df125 | 11829 | |
eec2776c | 11830 | ;; |
c52df125 | 11831 | |
eec2776c AJ |
11832 | *) |
11833 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11834 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11835 | lt_cv_dlopen="shl_load" | |
c52df125 | 11836 | else |
eec2776c AJ |
11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11838 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11839 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11840 | $as_echo_n "(cached) " >&6 | |
11841 | else | |
11842 | ac_check_lib_save_LIBS=$LIBS | |
11843 | LIBS="-ldld $LIBS" | |
11844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 11845 | /* end confdefs.h. */ |
c52df125 | 11846 | |
eec2776c AJ |
11847 | /* Override any GCC internal prototype to avoid an error. |
11848 | Use char because int might match the return type of a GCC | |
11849 | builtin and then its argument prototype would still apply. */ | |
11850 | #ifdef __cplusplus | |
11851 | extern "C" | |
11852 | #endif | |
11853 | char shl_load (); | |
c52df125 AC |
11854 | int |
11855 | main () | |
11856 | { | |
eec2776c | 11857 | return shl_load (); |
c52df125 AC |
11858 | ; |
11859 | return 0; | |
eec2776c AJ |
11860 | } |
11861 | _ACEOF | |
11862 | if ac_fn_c_try_link "$LINENO"; then : | |
11863 | ac_cv_lib_dld_shl_load=yes | |
c52df125 | 11864 | else |
eec2776c AJ |
11865 | ac_cv_lib_dld_shl_load=no |
11866 | fi | |
11867 | rm -f core conftest.err conftest.$ac_objext \ | |
11868 | conftest$ac_exeext conftest.$ac_ext | |
11869 | LIBS=$ac_check_lib_save_LIBS | |
11870 | fi | |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11872 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11873 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11874 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11875 | else | |
11876 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11877 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11878 | lt_cv_dlopen="dlopen" | |
11879 | else | |
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11881 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11882 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11883 | $as_echo_n "(cached) " >&6 |
11884 | else | |
11885 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11886 | LIBS="-ldl $LIBS" |
c52df125 AC |
11887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11888 | /* end confdefs.h. */ | |
11889 | ||
11890 | /* Override any GCC internal prototype to avoid an error. | |
11891 | Use char because int might match the return type of a GCC | |
11892 | builtin and then its argument prototype would still apply. */ | |
11893 | #ifdef __cplusplus | |
11894 | extern "C" | |
11895 | #endif | |
11896 | char dlopen (); | |
11897 | int | |
11898 | main () | |
11899 | { | |
11900 | return dlopen (); | |
11901 | ; | |
11902 | return 0; | |
11903 | } | |
11904 | _ACEOF | |
11905 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c | 11906 | ac_cv_lib_dl_dlopen=yes |
c52df125 | 11907 | else |
eec2776c | 11908 | ac_cv_lib_dl_dlopen=no |
7083c021 | 11909 | fi |
c52df125 AC |
11910 | rm -f core conftest.err conftest.$ac_objext \ |
11911 | conftest$ac_exeext conftest.$ac_ext | |
11912 | LIBS=$ac_check_lib_save_LIBS | |
11913 | fi | |
eec2776c AJ |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11915 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11916 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11917 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11918 | else |
eec2776c AJ |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11920 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11921 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 AC |
11922 | $as_echo_n "(cached) " >&6 |
11923 | else | |
11924 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11925 | LIBS="-lsvld $LIBS" |
7083c021 AC |
11926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11927 | /* end confdefs.h. */ | |
6fb6bd15 | 11928 | |
c52df125 AC |
11929 | /* Override any GCC internal prototype to avoid an error. |
11930 | Use char because int might match the return type of a GCC | |
11931 | builtin and then its argument prototype would still apply. */ | |
11932 | #ifdef __cplusplus | |
11933 | extern "C" | |
11934 | #endif | |
eec2776c | 11935 | char dlopen (); |
212380e3 | 11936 | int |
7083c021 | 11937 | main () |
212380e3 | 11938 | { |
eec2776c | 11939 | return dlopen (); |
7083c021 AC |
11940 | ; |
11941 | return 0; | |
212380e3 AC |
11942 | } |
11943 | _ACEOF | |
c52df125 | 11944 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 11945 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 11946 | else |
eec2776c | 11947 | ac_cv_lib_svld_dlopen=no |
c52df125 AC |
11948 | fi |
11949 | rm -f core conftest.err conftest.$ac_objext \ | |
11950 | conftest$ac_exeext conftest.$ac_ext | |
11951 | LIBS=$ac_check_lib_save_LIBS | |
11952 | fi | |
eec2776c AJ |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11954 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11955 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11956 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
6fb6bd15 | 11957 | else |
eec2776c | 11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
c52df125 AC |
11959 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
11960 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11961 | $as_echo_n "(cached) " >&6 | |
11962 | else | |
11963 | ac_check_lib_save_LIBS=$LIBS | |
11964 | LIBS="-ldld $LIBS" | |
6fb6bd15 AC |
11965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11966 | /* end confdefs.h. */ | |
c52df125 AC |
11967 | |
11968 | /* Override any GCC internal prototype to avoid an error. | |
11969 | Use char because int might match the return type of a GCC | |
11970 | builtin and then its argument prototype would still apply. */ | |
11971 | #ifdef __cplusplus | |
11972 | extern "C" | |
11973 | #endif | |
11974 | char dld_link (); | |
6fb6bd15 AC |
11975 | int |
11976 | main () | |
11977 | { | |
c52df125 | 11978 | return dld_link (); |
6fb6bd15 AC |
11979 | ; |
11980 | return 0; | |
11981 | } | |
11982 | _ACEOF | |
c52df125 AC |
11983 | if ac_fn_c_try_link "$LINENO"; then : |
11984 | ac_cv_lib_dld_dld_link=yes | |
11985 | else | |
11986 | ac_cv_lib_dld_dld_link=no | |
11987 | fi | |
11988 | rm -f core conftest.err conftest.$ac_objext \ | |
11989 | conftest$ac_exeext conftest.$ac_ext | |
11990 | LIBS=$ac_check_lib_save_LIBS | |
11991 | fi | |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11993 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11994 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
eec2776c AJ |
11995 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11996 | fi | |
c52df125 | 11997 | |
c52df125 | 11998 | |
c52df125 AC |
11999 | fi |
12000 | ||
12001 | ||
eec2776c | 12002 | fi |
c52df125 AC |
12003 | |
12004 | ||
eec2776c | 12005 | fi |
c52df125 | 12006 | |
c52df125 AC |
12007 | |
12008 | fi | |
12009 | ||
12010 | ||
eec2776c AJ |
12011 | fi |
12012 | ||
12013 | ;; | |
12014 | esac | |
c52df125 | 12015 | |
eec2776c AJ |
12016 | if test "x$lt_cv_dlopen" != xno; then |
12017 | enable_dlopen=yes | |
12018 | else | |
12019 | enable_dlopen=no | |
12020 | fi | |
c52df125 | 12021 | |
eec2776c AJ |
12022 | case $lt_cv_dlopen in |
12023 | dlopen) | |
12024 | save_CPPFLAGS="$CPPFLAGS" | |
12025 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12026 | ||
12027 | save_LDFLAGS="$LDFLAGS" | |
12028 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12029 | ||
12030 | save_LIBS="$LIBS" | |
12031 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12032 | ||
12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12034 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12035 | if ${lt_cv_dlopen_self+:} false; then : | |
12036 | $as_echo_n "(cached) " >&6 | |
12037 | else | |
12038 | if test "$cross_compiling" = yes; then : | |
12039 | lt_cv_dlopen_self=cross | |
12040 | else | |
12041 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12042 | lt_status=$lt_dlunknown | |
12043 | cat > conftest.$ac_ext <<_LT_EOF | |
12044 | #line $LINENO "configure" | |
12045 | #include "confdefs.h" | |
12046 | ||
12047 | #if HAVE_DLFCN_H | |
12048 | #include <dlfcn.h> | |
12049 | #endif | |
12050 | ||
12051 | #include <stdio.h> | |
12052 | ||
12053 | #ifdef RTLD_GLOBAL | |
12054 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12055 | #else | |
12056 | # ifdef DL_GLOBAL | |
12057 | # define LT_DLGLOBAL DL_GLOBAL | |
12058 | # else | |
12059 | # define LT_DLGLOBAL 0 | |
12060 | # endif | |
12061 | #endif | |
12062 | ||
12063 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12064 | find out it does not work in some platform. */ | |
12065 | #ifndef LT_DLLAZY_OR_NOW | |
12066 | # ifdef RTLD_LAZY | |
12067 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12068 | # else | |
12069 | # ifdef DL_LAZY | |
12070 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12071 | # else | |
12072 | # ifdef RTLD_NOW | |
12073 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12074 | # else | |
12075 | # ifdef DL_NOW | |
12076 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12077 | # else | |
12078 | # define LT_DLLAZY_OR_NOW 0 | |
12079 | # endif | |
12080 | # endif | |
12081 | # endif | |
12082 | # endif | |
12083 | #endif | |
12084 | ||
12085 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12086 | correspondingly for the symbols needed. */ | |
12087 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12088 | int fnord () __attribute__((visibility("default"))); | |
12089 | #endif | |
12090 | ||
12091 | int fnord () { return 42; } | |
12092 | int main () | |
12093 | { | |
12094 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12095 | int status = $lt_dlunknown; | |
c52df125 | 12096 | |
eec2776c AJ |
12097 | if (self) |
12098 | { | |
12099 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12100 | else | |
12101 | { | |
12102 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12103 | else puts (dlerror ()); | |
12104 | } | |
12105 | /* dlclose (self); */ | |
12106 | } | |
12107 | else | |
12108 | puts (dlerror ()); | |
c52df125 | 12109 | |
eec2776c AJ |
12110 | return status; |
12111 | } | |
c52df125 | 12112 | _LT_EOF |
eec2776c AJ |
12113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12114 | (eval $ac_link) 2>&5 | |
6fb6bd15 AC |
12115 | ac_status=$? |
12116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
12117 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12118 | (./conftest; exit; ) >&5 2>/dev/null | |
12119 | lt_status=$? | |
12120 | case x$lt_status in | |
12121 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12122 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12123 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12124 | esac | |
12125 | else : | |
12126 | # compilation failed | |
12127 | lt_cv_dlopen_self=no | |
6fb6bd15 AC |
12128 | fi |
12129 | fi | |
eec2776c | 12130 | rm -fr conftest* |
6fb6bd15 | 12131 | |
c52df125 | 12132 | |
eec2776c AJ |
12133 | fi |
12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12135 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12136 | ||
12137 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12138 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12140 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12141 | if ${lt_cv_dlopen_self_static+:} false; then : | |
7083c021 AC |
12142 | $as_echo_n "(cached) " >&6 |
12143 | else | |
eec2776c AJ |
12144 | if test "$cross_compiling" = yes; then : |
12145 | lt_cv_dlopen_self_static=cross | |
c52df125 AC |
12146 | else |
12147 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12148 | lt_status=$lt_dlunknown | |
12149 | cat > conftest.$ac_ext <<_LT_EOF | |
12150 | #line $LINENO "configure" | |
12151 | #include "confdefs.h" | |
212380e3 | 12152 | |
c52df125 AC |
12153 | #if HAVE_DLFCN_H |
12154 | #include <dlfcn.h> | |
12155 | #endif | |
12156 | ||
12157 | #include <stdio.h> | |
12158 | ||
12159 | #ifdef RTLD_GLOBAL | |
12160 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12161 | #else | |
12162 | # ifdef DL_GLOBAL | |
12163 | # define LT_DLGLOBAL DL_GLOBAL | |
12164 | # else | |
12165 | # define LT_DLGLOBAL 0 | |
12166 | # endif | |
12167 | #endif | |
12168 | ||
12169 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12170 | find out it does not work in some platform. */ | |
12171 | #ifndef LT_DLLAZY_OR_NOW | |
12172 | # ifdef RTLD_LAZY | |
12173 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12174 | # else | |
12175 | # ifdef DL_LAZY | |
12176 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12177 | # else | |
12178 | # ifdef RTLD_NOW | |
12179 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12180 | # else | |
12181 | # ifdef DL_NOW | |
12182 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12183 | # else | |
12184 | # define LT_DLLAZY_OR_NOW 0 | |
12185 | # endif | |
12186 | # endif | |
12187 | # endif | |
12188 | # endif | |
12189 | #endif | |
12190 | ||
12191 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12192 | correspondingly for the symbols needed. */ | |
12193 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12194 | int fnord () __attribute__((visibility("default"))); | |
12195 | #endif | |
12196 | ||
12197 | int fnord () { return 42; } | |
12198 | int main () | |
7083c021 | 12199 | { |
c52df125 AC |
12200 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12201 | int status = $lt_dlunknown; | |
7083c021 | 12202 | |
c52df125 AC |
12203 | if (self) |
12204 | { | |
12205 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12206 | else | |
12207 | { | |
12208 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12209 | else puts (dlerror ()); | |
12210 | } | |
12211 | /* dlclose (self); */ | |
12212 | } | |
12213 | else | |
12214 | puts (dlerror ()); | |
12215 | ||
12216 | return status; | |
7083c021 | 12217 | } |
c52df125 AC |
12218 | _LT_EOF |
12219 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12220 | (eval $ac_link) 2>&5 | |
212380e3 | 12221 | ac_status=$? |
7083c021 | 12222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c52df125 AC |
12223 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12224 | (./conftest; exit; ) >&5 2>/dev/null | |
12225 | lt_status=$? | |
12226 | case x$lt_status in | |
eec2776c AJ |
12227 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12228 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12229 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
c52df125 AC |
12230 | esac |
12231 | else : | |
12232 | # compilation failed | |
eec2776c | 12233 | lt_cv_dlopen_self_static=no |
c52df125 | 12234 | fi |
7083c021 | 12235 | fi |
c52df125 AC |
12236 | rm -fr conftest* |
12237 | ||
c52df125 | 12238 | |
212380e3 | 12239 | fi |
eec2776c AJ |
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12241 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12242 | fi | |
c52df125 | 12243 | |
eec2776c AJ |
12244 | CPPFLAGS="$save_CPPFLAGS" |
12245 | LDFLAGS="$save_LDFLAGS" | |
12246 | LIBS="$save_LIBS" | |
12247 | ;; | |
12248 | esac | |
c52df125 | 12249 | |
eec2776c AJ |
12250 | case $lt_cv_dlopen_self in |
12251 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12252 | *) enable_dlopen_self=unknown ;; | |
12253 | esac | |
c52df125 | 12254 | |
eec2776c AJ |
12255 | case $lt_cv_dlopen_self_static in |
12256 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12257 | *) enable_dlopen_self_static=unknown ;; | |
12258 | esac | |
c52df125 AC |
12259 | fi |
12260 | ||
eec2776c AJ |
12261 | |
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | ||
12267 | ||
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | ||
12273 | ||
12274 | ||
12275 | ||
12276 | ||
12277 | striplib= | |
12278 | old_striplib= | |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12280 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12281 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12282 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12283 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12285 | $as_echo "yes" >&6; } | |
7083c021 | 12286 | else |
eec2776c | 12287 | # FIXME - insert some real tests, host_os isn't really good enough |
c52df125 | 12288 | case $host_os in |
c52df125 | 12289 | darwin*) |
eec2776c AJ |
12290 | if test -n "$STRIP" ; then |
12291 | striplib="$STRIP -x" | |
12292 | old_striplib="$STRIP -S" | |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12294 | $as_echo "yes" >&6; } | |
12295 | else | |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12297 | $as_echo "no" >&6; } | |
12298 | fi | |
c52df125 | 12299 | ;; |
eec2776c AJ |
12300 | *) |
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12302 | $as_echo "no" >&6; } | |
c52df125 | 12303 | ;; |
eec2776c AJ |
12304 | esac |
12305 | fi | |
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | # Report which library types will actually be built | |
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12320 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12322 | $as_echo "$can_build_shared" >&6; } | |
12323 | ||
12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12325 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12326 | test "$can_build_shared" = "no" && enable_shared=no | |
12327 | ||
12328 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12329 | # are all built from PIC. | |
12330 | case $host_os in | |
12331 | aix3*) | |
12332 | test "$enable_shared" = yes && enable_static=no | |
12333 | if test -n "$RANLIB"; then | |
12334 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12335 | postinstall_cmds='$RANLIB $lib' | |
12336 | fi | |
c52df125 | 12337 | ;; |
eec2776c AJ |
12338 | |
12339 | aix[4-9]*) | |
12340 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12341 | test "$enable_shared" = yes && enable_static=no | |
12342 | fi | |
c52df125 AC |
12343 | ;; |
12344 | esac | |
eec2776c AJ |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12346 | $as_echo "$enable_shared" >&6; } | |
12347 | ||
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12349 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12350 | # Make sure either enable_shared or enable_static is yes. | |
12351 | test "$enable_shared" = yes || enable_static=yes | |
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12353 | $as_echo "$enable_static" >&6; } | |
12354 | ||
212380e3 | 12355 | |
c52df125 | 12356 | |
c52df125 AC |
12357 | |
12358 | fi | |
eec2776c AJ |
12359 | ac_ext=c |
12360 | ac_cpp='$CPP $CPPFLAGS' | |
12361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 12364 | |
eec2776c | 12365 | CC="$lt_save_CC" |
c52df125 | 12366 | |
c52df125 | 12367 | |
c52df125 | 12368 | |
c52df125 AC |
12369 | |
12370 | ||
212380e3 | 12371 | |
c52df125 AC |
12372 | |
12373 | ||
c52df125 | 12374 | |
c52df125 AC |
12375 | |
12376 | ||
7083c021 | 12377 | |
c52df125 AC |
12378 | |
12379 | ||
c52df125 | 12380 | |
eec2776c | 12381 | ac_config_commands="$ac_config_commands libtool" |
c52df125 | 12382 | |
c52df125 | 12383 | |
c52df125 AC |
12384 | |
12385 | ||
eec2776c | 12386 | # Only expand once: |
212380e3 | 12387 | |
631ef239 | 12388 | |
c52df125 AC |
12389 | |
12390 | ||
c52df125 | 12391 | |
c52df125 AC |
12392 | |
12393 | ||
12394 | ||
eec2776c AJ |
12395 | |
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12397 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12398 | if ${libltdl_cv_shlibext+:} false; then : | |
c52df125 AC |
12399 | $as_echo_n "(cached) " >&6 |
12400 | else | |
eec2776c AJ |
12401 | |
12402 | module=yes | |
12403 | eval libltdl_cv_shlibext=$shrext_cmds | |
12404 | module=no | |
12405 | eval libltdl_cv_shrext=$shrext_cmds | |
c52df125 AC |
12406 | |
12407 | fi | |
eec2776c AJ |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
12409 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12410 | if test -n "$libltdl_cv_shlibext"; then | |
c52df125 | 12411 | |
eec2776c AJ |
12412 | cat >>confdefs.h <<_ACEOF |
12413 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12414 | _ACEOF | |
c52df125 AC |
12415 | |
12416 | fi | |
eec2776c | 12417 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
c52df125 | 12418 | |
eec2776c AJ |
12419 | cat >>confdefs.h <<_ACEOF |
12420 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12421 | _ACEOF | |
c52df125 | 12422 | |
eec2776c | 12423 | fi |
c52df125 | 12424 | |
eec2776c AJ |
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
12426 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12427 | if ${lt_cv_module_path_var+:} false; then : | |
12428 | $as_echo_n "(cached) " >&6 | |
12429 | else | |
12430 | lt_cv_module_path_var="$shlibpath_var" | |
12431 | fi | |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12433 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12434 | if test -n "$lt_cv_module_path_var"; then | |
12435 | ||
12436 | cat >>confdefs.h <<_ACEOF | |
12437 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12438 | _ACEOF | |
c52df125 | 12439 | |
eec2776c | 12440 | fi |
c52df125 | 12441 | |
eec2776c AJ |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
12443 | $as_echo_n "checking for the default library search path... " >&6; } | |
12444 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12445 | $as_echo_n "(cached) " >&6 | |
12446 | else | |
12447 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12448 | fi | |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12450 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12451 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12452 | sys_dlsearch_path= | |
12453 | for dir in $lt_cv_sys_dlsearch_path; do | |
12454 | if test -z "$sys_dlsearch_path"; then | |
12455 | sys_dlsearch_path="$dir" | |
12456 | else | |
12457 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12458 | fi | |
12459 | done | |
c52df125 | 12460 | |
eec2776c AJ |
12461 | cat >>confdefs.h <<_ACEOF |
12462 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12463 | _ACEOF | |
c52df125 | 12464 | |
eec2776c | 12465 | fi |
c52df125 AC |
12466 | |
12467 | ||
eec2776c | 12468 | LT_DLLOADERS= |
c52df125 AC |
12469 | |
12470 | ||
eec2776c AJ |
12471 | ac_ext=c |
12472 | ac_cpp='$CPP $CPPFLAGS' | |
12473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12476 | |
12477 | ||
eec2776c AJ |
12478 | LIBADD_DLOPEN= |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12480 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12481 | if ${ac_cv_search_dlopen+:} false; then : | |
12482 | $as_echo_n "(cached) " >&6 | |
12483 | else | |
12484 | ac_func_search_save_LIBS=$LIBS | |
12485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12486 | /* end confdefs.h. */ | |
c52df125 | 12487 | |
eec2776c AJ |
12488 | /* Override any GCC internal prototype to avoid an error. |
12489 | Use char because int might match the return type of a GCC | |
12490 | builtin and then its argument prototype would still apply. */ | |
12491 | #ifdef __cplusplus | |
12492 | extern "C" | |
12493 | #endif | |
12494 | char dlopen (); | |
12495 | int | |
12496 | main () | |
12497 | { | |
12498 | return dlopen (); | |
12499 | ; | |
12500 | return 0; | |
12501 | } | |
12502 | _ACEOF | |
12503 | for ac_lib in '' dl; do | |
12504 | if test -z "$ac_lib"; then | |
12505 | ac_res="none required" | |
12506 | else | |
12507 | ac_res=-l$ac_lib | |
12508 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12509 | fi | |
12510 | if ac_fn_c_try_link "$LINENO"; then : | |
12511 | ac_cv_search_dlopen=$ac_res | |
12512 | fi | |
12513 | rm -f core conftest.err conftest.$ac_objext \ | |
12514 | conftest$ac_exeext | |
12515 | if ${ac_cv_search_dlopen+:} false; then : | |
12516 | break | |
12517 | fi | |
12518 | done | |
12519 | if ${ac_cv_search_dlopen+:} false; then : | |
c52df125 | 12520 | |
eec2776c AJ |
12521 | else |
12522 | ac_cv_search_dlopen=no | |
12523 | fi | |
12524 | rm conftest.$ac_ext | |
12525 | LIBS=$ac_func_search_save_LIBS | |
c52df125 | 12526 | fi |
eec2776c AJ |
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12528 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12529 | ac_res=$ac_cv_search_dlopen | |
12530 | if test "$ac_res" != no; then : | |
12531 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12532 | ||
12533 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12534 | ||
12535 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12536 | LIBADD_DLOPEN="-ldl" | |
12537 | fi | |
12538 | libltdl_cv_lib_dl_dlopen="yes" | |
12539 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12540 | else | |
12541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12542 | /* end confdefs.h. */ | |
12543 | #if HAVE_DLFCN_H | |
12544 | # include <dlfcn.h> | |
12545 | #endif | |
212380e3 | 12546 | |
eec2776c AJ |
12547 | int |
12548 | main () | |
12549 | { | |
12550 | dlopen(0, 0); | |
12551 | ; | |
12552 | return 0; | |
12553 | } | |
12554 | _ACEOF | |
12555 | if ac_fn_c_try_link "$LINENO"; then : | |
631ef239 | 12556 | |
eec2776c | 12557 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
631ef239 | 12558 | |
eec2776c AJ |
12559 | libltdl_cv_func_dlopen="yes" |
12560 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12561 | else | |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12563 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12564 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 | 12565 | $as_echo_n "(cached) " >&6 |
7083c021 | 12566 | else |
c52df125 | 12567 | ac_check_lib_save_LIBS=$LIBS |
eec2776c | 12568 | LIBS="-lsvld $LIBS" |
c52df125 | 12569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 | 12570 | /* end confdefs.h. */ |
212380e3 | 12571 | |
c52df125 AC |
12572 | /* Override any GCC internal prototype to avoid an error. |
12573 | Use char because int might match the return type of a GCC | |
12574 | builtin and then its argument prototype would still apply. */ | |
12575 | #ifdef __cplusplus | |
12576 | extern "C" | |
12577 | #endif | |
eec2776c | 12578 | char dlopen (); |
7083c021 AC |
12579 | int |
12580 | main () | |
12581 | { | |
eec2776c | 12582 | return dlopen (); |
7083c021 AC |
12583 | ; |
12584 | return 0; | |
12585 | } | |
212380e3 | 12586 | _ACEOF |
c52df125 | 12587 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 12588 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 12589 | else |
eec2776c | 12590 | ac_cv_lib_svld_dlopen=no |
212380e3 | 12591 | fi |
c52df125 AC |
12592 | rm -f core conftest.err conftest.$ac_objext \ |
12593 | conftest$ac_exeext conftest.$ac_ext | |
12594 | LIBS=$ac_check_lib_save_LIBS | |
212380e3 | 12595 | fi |
eec2776c AJ |
12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12597 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12598 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
c52df125 | 12599 | |
eec2776c | 12600 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
c52df125 | 12601 | |
eec2776c AJ |
12602 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12603 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
c52df125 AC |
12604 | fi |
12605 | ||
c52df125 | 12606 | fi |
eec2776c AJ |
12607 | rm -f core conftest.err conftest.$ac_objext \ |
12608 | conftest$ac_exeext conftest.$ac_ext | |
c52df125 AC |
12609 | fi |
12610 | ||
eec2776c AJ |
12611 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12612 | then | |
12613 | lt_save_LIBS="$LIBS" | |
12614 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12615 | for ac_func in dlerror | |
12616 | do : | |
12617 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12618 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12619 | cat >>confdefs.h <<_ACEOF | |
12620 | #define HAVE_DLERROR 1 | |
12621 | _ACEOF | |
c52df125 | 12622 | |
c52df125 | 12623 | fi |
eec2776c | 12624 | done |
c52df125 | 12625 | |
eec2776c | 12626 | LIBS="$lt_save_LIBS" |
c52df125 | 12627 | fi |
7083c021 | 12628 | |
631ef239 | 12629 | |
eec2776c AJ |
12630 | LIBADD_SHL_LOAD= |
12631 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12632 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
212380e3 | 12633 | |
eec2776c | 12634 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 | 12635 | |
eec2776c | 12636 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
c52df125 | 12637 | else |
eec2776c AJ |
12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12639 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12640 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12641 | $as_echo_n "(cached) " >&6 | |
7083c021 | 12642 | else |
eec2776c AJ |
12643 | ac_check_lib_save_LIBS=$LIBS |
12644 | LIBS="-ldld $LIBS" | |
12645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12646 | /* end confdefs.h. */ | |
c52df125 | 12647 | |
eec2776c AJ |
12648 | /* Override any GCC internal prototype to avoid an error. |
12649 | Use char because int might match the return type of a GCC | |
12650 | builtin and then its argument prototype would still apply. */ | |
12651 | #ifdef __cplusplus | |
12652 | extern "C" | |
12653 | #endif | |
12654 | char shl_load (); | |
12655 | int | |
12656 | main () | |
12657 | { | |
12658 | return shl_load (); | |
12659 | ; | |
12660 | return 0; | |
12661 | } | |
212380e3 | 12662 | _ACEOF |
eec2776c AJ |
12663 | if ac_fn_c_try_link "$LINENO"; then : |
12664 | ac_cv_lib_dld_shl_load=yes | |
7083c021 | 12665 | else |
eec2776c AJ |
12666 | ac_cv_lib_dld_shl_load=no |
12667 | fi | |
12668 | rm -f core conftest.err conftest.$ac_objext \ | |
12669 | conftest$ac_exeext conftest.$ac_ext | |
12670 | LIBS=$ac_check_lib_save_LIBS | |
12671 | fi | |
12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12673 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12674 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
c52df125 | 12675 | |
eec2776c | 12676 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
c52df125 | 12677 | |
eec2776c AJ |
12678 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12679 | LIBADD_SHL_LOAD="-ldld" | |
12680 | fi | |
c52df125 | 12681 | |
212380e3 AC |
12682 | fi |
12683 | ||
c52df125 | 12684 | |
212380e3 | 12685 | |
eec2776c AJ |
12686 | case $host_os in |
12687 | darwin[1567].*) | |
12688 | # We only want this for pre-Mac OS X 10.4. | |
12689 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12690 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
212380e3 | 12691 | |
eec2776c | 12692 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
7083c021 | 12693 | |
eec2776c | 12694 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
7083c021 | 12695 | fi |
c52df125 | 12696 | |
eec2776c AJ |
12697 | ;; |
12698 | beos*) | |
12699 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12700 | ;; | |
12701 | cygwin* | mingw* | os2* | pw32*) | |
12702 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12703 | " | |
12704 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12705 | ac_have_decl=1 | |
12706 | else | |
12707 | ac_have_decl=0 | |
12708 | fi | |
c52df125 AC |
12709 | |
12710 | cat >>confdefs.h <<_ACEOF | |
eec2776c | 12711 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
212380e3 AC |
12712 | _ACEOF |
12713 | ||
eec2776c AJ |
12714 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12715 | ;; | |
12716 | esac | |
212380e3 | 12717 | |
eec2776c AJ |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12719 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12720 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12721 | $as_echo_n "(cached) " >&6 | |
12722 | else | |
12723 | ac_check_lib_save_LIBS=$LIBS | |
12724 | LIBS="-ldld $LIBS" | |
12725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12726 | /* end confdefs.h. */ | |
c52df125 | 12727 | |
eec2776c AJ |
12728 | /* Override any GCC internal prototype to avoid an error. |
12729 | Use char because int might match the return type of a GCC | |
12730 | builtin and then its argument prototype would still apply. */ | |
12731 | #ifdef __cplusplus | |
12732 | extern "C" | |
12733 | #endif | |
12734 | char dld_link (); | |
12735 | int | |
12736 | main () | |
12737 | { | |
12738 | return dld_link (); | |
12739 | ; | |
12740 | return 0; | |
12741 | } | |
212380e3 | 12742 | _ACEOF |
eec2776c AJ |
12743 | if ac_fn_c_try_link "$LINENO"; then : |
12744 | ac_cv_lib_dld_dld_link=yes | |
12745 | else | |
12746 | ac_cv_lib_dld_dld_link=no | |
12747 | fi | |
12748 | rm -f core conftest.err conftest.$ac_objext \ | |
12749 | conftest$ac_exeext conftest.$ac_ext | |
12750 | LIBS=$ac_check_lib_save_LIBS | |
12751 | fi | |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12753 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12754 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
212380e3 | 12755 | |
eec2776c AJ |
12756 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
12757 | ||
12758 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12759 | fi | |
212380e3 AC |
12760 | |
12761 | ||
12762 | ||
12763 | ||
eec2776c AJ |
12764 | LT_DLPREOPEN= |
12765 | if test -n "$LT_DLLOADERS" | |
12766 | then | |
12767 | for lt_loader in $LT_DLLOADERS; do | |
12768 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12769 | done | |
7083c021 | 12770 | |
eec2776c | 12771 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
212380e3 | 12772 | |
eec2776c | 12773 | fi |
631ef239 | 12774 | |
212380e3 | 12775 | |
eec2776c | 12776 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
212380e3 | 12777 | |
212380e3 | 12778 | |
eec2776c AJ |
12779 | ac_ext=c |
12780 | ac_cpp='$CPP $CPPFLAGS' | |
12781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12784 | |
12785 | ||
eec2776c AJ |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12787 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12788 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12789 | $as_echo_n "(cached) " >&6 | |
c52df125 | 12790 | else |
eec2776c AJ |
12791 | lt_cv_sys_symbol_underscore=no |
12792 | cat > conftest.$ac_ext <<_LT_EOF | |
12793 | void nm_test_func(){} | |
12794 | int main(){nm_test_func;return 0;} | |
12795 | _LT_EOF | |
12796 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12797 | (eval $ac_compile) 2>&5 | |
12798 | ac_status=$? | |
12799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12800 | test $ac_status = 0; }; then | |
12801 | # Now try to grab the symbols. | |
12802 | ac_nlist=conftest.nm | |
12803 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12804 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12805 | ac_status=$? | |
12806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12807 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12808 | # See whether the symbols have a leading underscore. | |
12809 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12810 | lt_cv_sys_symbol_underscore=yes | |
12811 | else | |
12812 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12813 | : | |
12814 | else | |
12815 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12816 | fi | |
12817 | fi | |
12818 | else | |
12819 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12820 | fi | |
12821 | else | |
12822 | echo "configure: failed program was:" >&5 | |
12823 | cat conftest.c >&5 | |
12824 | fi | |
12825 | rm -rf conftest* | |
12826 | ||
212380e3 | 12827 | fi |
eec2776c AJ |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12829 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12830 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
212380e3 AC |
12831 | |
12832 | ||
eec2776c AJ |
12833 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12834 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12835 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12837 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12838 | if ${libltdl_cv_need_uscore+:} false; then : | |
7083c021 | 12839 | $as_echo_n "(cached) " >&6 |
212380e3 | 12840 | else |
eec2776c AJ |
12841 | libltdl_cv_need_uscore=unknown |
12842 | save_LIBS="$LIBS" | |
12843 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12844 | if test "$cross_compiling" = yes; then : | |
12845 | libltdl_cv_need_uscore=cross | |
12846 | else | |
12847 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12848 | lt_status=$lt_dlunknown | |
12849 | cat > conftest.$ac_ext <<_LT_EOF | |
12850 | #line $LINENO "configure" | |
12851 | #include "confdefs.h" | |
212380e3 | 12852 | |
eec2776c AJ |
12853 | #if HAVE_DLFCN_H |
12854 | #include <dlfcn.h> | |
c52df125 | 12855 | #endif |
c52df125 | 12856 | |
eec2776c | 12857 | #include <stdio.h> |
c52df125 | 12858 | |
eec2776c AJ |
12859 | #ifdef RTLD_GLOBAL |
12860 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12861 | #else | |
12862 | # ifdef DL_GLOBAL | |
12863 | # define LT_DLGLOBAL DL_GLOBAL | |
12864 | # else | |
12865 | # define LT_DLGLOBAL 0 | |
12866 | # endif | |
12867 | #endif | |
c52df125 | 12868 | |
eec2776c AJ |
12869 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12870 | find out it does not work in some platform. */ | |
12871 | #ifndef LT_DLLAZY_OR_NOW | |
12872 | # ifdef RTLD_LAZY | |
12873 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12874 | # else | |
12875 | # ifdef DL_LAZY | |
12876 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12877 | # else | |
12878 | # ifdef RTLD_NOW | |
12879 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12880 | # else | |
12881 | # ifdef DL_NOW | |
12882 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12883 | # else | |
12884 | # define LT_DLLAZY_OR_NOW 0 | |
12885 | # endif | |
12886 | # endif | |
12887 | # endif | |
12888 | # endif | |
12889 | #endif | |
212380e3 | 12890 | |
eec2776c AJ |
12891 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12892 | correspondingly for the symbols needed. */ | |
12893 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12894 | int fnord () __attribute__((visibility("default"))); | |
12895 | #endif | |
212380e3 | 12896 | |
eec2776c AJ |
12897 | int fnord () { return 42; } |
12898 | int main () | |
12899 | { | |
12900 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12901 | int status = $lt_dlunknown; | |
c52df125 | 12902 | |
eec2776c | 12903 | if (self) |
c52df125 | 12904 | { |
eec2776c AJ |
12905 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12906 | else | |
12907 | { | |
12908 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12909 | else puts (dlerror ()); | |
c52df125 | 12910 | } |
eec2776c | 12911 | /* dlclose (self); */ |
c52df125 | 12912 | } |
eec2776c AJ |
12913 | else |
12914 | puts (dlerror ()); | |
12915 | ||
12916 | return status; | |
c52df125 | 12917 | } |
eec2776c AJ |
12918 | _LT_EOF |
12919 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12920 | (eval $ac_link) 2>&5 | |
12921 | ac_status=$? | |
12922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12923 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12924 | (./conftest; exit; ) >&5 2>/dev/null | |
12925 | lt_status=$? | |
12926 | case x$lt_status in | |
12927 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12928 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12929 | x$lt_dlunknown|x*) ;; | |
12930 | esac | |
12931 | else : | |
12932 | # compilation failed | |
c52df125 | 12933 | |
eec2776c AJ |
12934 | fi |
12935 | fi | |
12936 | rm -fr conftest* | |
c52df125 | 12937 | |
eec2776c | 12938 | LIBS="$save_LIBS" |
212380e3 | 12939 | |
eec2776c AJ |
12940 | fi |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12942 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12943 | fi | |
12944 | fi | |
212380e3 | 12945 | |
eec2776c | 12946 | if test x"$libltdl_cv_need_uscore" = xyes; then |
212380e3 | 12947 | |
eec2776c | 12948 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
212380e3 | 12949 | |
eec2776c | 12950 | fi |
7083c021 | 12951 | |
eec2776c AJ |
12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12953 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12954 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12955 | $as_echo_n "(cached) " >&6 | |
12956 | else | |
12957 | # PORTME does your system automatically load deplibs for dlopen? | |
12958 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12959 | # For now, we just catch OSes we know something about -- in the | |
12960 | # future, we'll try test this programmatically. | |
12961 | lt_cv_sys_dlopen_deplibs=unknown | |
12962 | case $host_os in | |
12963 | aix3*|aix4.1.*|aix4.2.*) | |
12964 | # Unknown whether this is true for these versions of AIX, but | |
12965 | # we want this `case' here to explicitly catch those versions. | |
12966 | lt_cv_sys_dlopen_deplibs=unknown | |
12967 | ;; | |
12968 | aix[4-9]*) | |
12969 | lt_cv_sys_dlopen_deplibs=yes | |
12970 | ;; | |
12971 | amigaos*) | |
12972 | case $host_cpu in | |
12973 | powerpc) | |
12974 | lt_cv_sys_dlopen_deplibs=no | |
12975 | ;; | |
12976 | esac | |
12977 | ;; | |
12978 | darwin*) | |
12979 | # Assuming the user has installed a libdl from somewhere, this is true | |
12980 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12981 | lt_cv_sys_dlopen_deplibs=yes | |
12982 | ;; | |
12983 | freebsd* | dragonfly*) | |
12984 | lt_cv_sys_dlopen_deplibs=yes | |
12985 | ;; | |
12986 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12987 | # GNU and its variants, using gnu ld.so (Glibc) | |
12988 | lt_cv_sys_dlopen_deplibs=yes | |
12989 | ;; | |
12990 | hpux10*|hpux11*) | |
12991 | lt_cv_sys_dlopen_deplibs=yes | |
12992 | ;; | |
12993 | interix*) | |
12994 | lt_cv_sys_dlopen_deplibs=yes | |
12995 | ;; | |
12996 | irix[12345]*|irix6.[01]*) | |
12997 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12998 | # know how it worked for any of those versions. | |
12999 | lt_cv_sys_dlopen_deplibs=unknown | |
13000 | ;; | |
13001 | irix*) | |
13002 | # The case above catches anything before 6.2, and it's known that | |
13003 | # at 6.2 and later dlopen does load deplibs. | |
13004 | lt_cv_sys_dlopen_deplibs=yes | |
13005 | ;; | |
13006 | netbsd* | netbsdelf*-gnu) | |
13007 | lt_cv_sys_dlopen_deplibs=yes | |
13008 | ;; | |
13009 | openbsd*) | |
13010 | lt_cv_sys_dlopen_deplibs=yes | |
13011 | ;; | |
13012 | osf[1234]*) | |
13013 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
13014 | # it did *not* use an RPATH in a shared library to find objects the | |
13015 | # library depends on, so we explicitly say `no'. | |
13016 | lt_cv_sys_dlopen_deplibs=no | |
13017 | ;; | |
13018 | osf5.0|osf5.0a|osf5.1) | |
13019 | # dlopen *does* load deplibs and with the right loader patch applied | |
13020 | # it even uses RPATH in a shared library to search for shared objects | |
13021 | # that the library depends on, but there's no easy way to know if that | |
13022 | # patch is installed. Since this is the case, all we can really | |
13023 | # say is unknown -- it depends on the patch being installed. If | |
13024 | # it is, this changes to `yes'. Without it, it would be `no'. | |
13025 | lt_cv_sys_dlopen_deplibs=unknown | |
13026 | ;; | |
13027 | osf*) | |
13028 | # the two cases above should catch all versions of osf <= 5.1. Read | |
13029 | # the comments above for what we know about them. | |
13030 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
13031 | # is used to find them so we can finally say `yes'. | |
13032 | lt_cv_sys_dlopen_deplibs=yes | |
13033 | ;; | |
13034 | qnx*) | |
13035 | lt_cv_sys_dlopen_deplibs=yes | |
13036 | ;; | |
13037 | solaris*) | |
13038 | lt_cv_sys_dlopen_deplibs=yes | |
13039 | ;; | |
13040 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13041 | libltdl_cv_sys_dlopen_deplibs=yes | |
13042 | ;; | |
13043 | esac | |
212380e3 | 13044 | |
eec2776c AJ |
13045 | fi |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
13047 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
13048 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
631ef239 | 13049 | |
eec2776c | 13050 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
7083c021 | 13051 | |
eec2776c AJ |
13052 | fi |
13053 | ||
13054 | : | |
13055 | ||
13056 | for ac_header in argz.h | |
13057 | do : | |
13058 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
13059 | " | |
13060 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
13061 | cat >>confdefs.h <<_ACEOF | |
13062 | #define HAVE_ARGZ_H 1 | |
212380e3 | 13063 | _ACEOF |
eec2776c | 13064 | |
7083c021 | 13065 | fi |
eec2776c | 13066 | |
c52df125 | 13067 | done |
631ef239 | 13068 | |
631ef239 | 13069 | |
eec2776c AJ |
13070 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
13071 | # include <argz.h> | |
13072 | #endif | |
13073 | " | |
13074 | if test "x$ac_cv_type_error_t" = xyes; then : | |
13075 | ||
13076 | cat >>confdefs.h <<_ACEOF | |
13077 | #define HAVE_ERROR_T 1 | |
13078 | _ACEOF | |
13079 | ||
631ef239 | 13080 | |
eec2776c | 13081 | else |
7083c021 | 13082 | |
eec2776c | 13083 | $as_echo "#define error_t int" >>confdefs.h |
7083c021 AC |
13084 | |
13085 | ||
eec2776c AJ |
13086 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
13087 | ||
13088 | fi | |
13089 | ||
13090 | ||
13091 | ARGZ_H= | |
13092 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
13093 | argz_next argz_stringify | |
13094 | do : | |
13095 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13096 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13097 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13098 | cat >>confdefs.h <<_ACEOF | |
13099 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13100 | _ACEOF | |
13101 | ||
212380e3 | 13102 | else |
eec2776c AJ |
13103 | ARGZ_H=argz.h; |
13104 | ||
13105 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13106 | ||
7083c021 | 13107 | fi |
eec2776c | 13108 | done |
7083c021 AC |
13109 | |
13110 | ||
eec2776c AJ |
13111 | if test -z "$ARGZ_H"; then : |
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
13113 | $as_echo_n "checking if argz actually works... " >&6; } | |
13114 | if ${lt_cv_sys_argz_works+:} false; then : | |
13115 | $as_echo_n "(cached) " >&6 | |
13116 | else | |
13117 | case $host_os in #( | |
13118 | *cygwin*) | |
13119 | lt_cv_sys_argz_works=no | |
13120 | if test "$cross_compiling" != no; then | |
13121 | lt_cv_sys_argz_works="guessing no" | |
13122 | else | |
13123 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13124 | save_IFS=$IFS | |
13125 | IFS=-. | |
13126 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13127 | IFS=$save_IFS | |
13128 | lt_os_major=${2-0} | |
13129 | lt_os_minor=${3-0} | |
13130 | lt_os_micro=${4-0} | |
13131 | if test "$lt_os_major" -gt 1 \ | |
13132 | || { test "$lt_os_major" -eq 1 \ | |
13133 | && { test "$lt_os_minor" -gt 5 \ | |
13134 | || { test "$lt_os_minor" -eq 5 \ | |
13135 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
13136 | lt_cv_sys_argz_works=yes | |
13137 | fi | |
13138 | fi | |
13139 | ;; #( | |
13140 | *) lt_cv_sys_argz_works=yes ;; | |
13141 | esac | |
13142 | fi | |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
13144 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
13145 | if test "$lt_cv_sys_argz_works" = yes; then : | |
7083c021 | 13146 | |
eec2776c | 13147 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
7083c021 | 13148 | |
eec2776c AJ |
13149 | else |
13150 | ARGZ_H=argz.h | |
212380e3 | 13151 | |
631ef239 | 13152 | |
eec2776c | 13153 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
631ef239 | 13154 | |
eec2776c AJ |
13155 | fi |
13156 | fi | |
631ef239 | 13157 | |
212380e3 | 13158 | |
212380e3 | 13159 | |
eec2776c AJ |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
13161 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13162 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
7083c021 | 13163 | $as_echo_n "(cached) " >&6 |
212380e3 | 13164 | else |
eec2776c AJ |
13165 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
13166 | libltdl_cv_preloaded_symbols=yes | |
13167 | else | |
13168 | libltdl_cv_preloaded_symbols=no | |
13169 | fi | |
7083c021 | 13170 | |
212380e3 | 13171 | fi |
eec2776c AJ |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
13173 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
13174 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
13175 | ||
13176 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
13177 | ||
212380e3 | 13178 | fi |
212380e3 | 13179 | |
eec2776c | 13180 | # Set options |
212380e3 | 13181 | |
7083c021 | 13182 | |
7083c021 | 13183 | |
212380e3 | 13184 | |
7083c021 AC |
13185 | |
13186 | ||
13187 | ||
212380e3 | 13188 | |
212380e3 | 13189 | |
212380e3 | 13190 | |
212380e3 | 13191 | |
212380e3 | 13192 | |
eec2776c AJ |
13193 | # Check whether --with-included_ltdl was given. |
13194 | if test "${with_included_ltdl+set}" = set; then : | |
13195 | withval=$with_included_ltdl; | |
212380e3 | 13196 | fi |
631ef239 | 13197 | |
eec2776c AJ |
13198 | |
13199 | if test "x$with_included_ltdl" != xyes; then | |
13200 | # We are not being forced to use the included libltdl sources, so | |
13201 | # decide whether there is a useful installed version we can use. | |
13202 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
13203 | ||
13204 | " | |
13205 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13206 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
13207 | #include <ltdl.h> | |
13208 | " | |
13209 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
13211 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13212 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
7083c021 | 13213 | $as_echo_n "(cached) " >&6 |
212380e3 | 13214 | else |
eec2776c AJ |
13215 | ac_check_lib_save_LIBS=$LIBS |
13216 | LIBS="-lltdl $LIBS" | |
13217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13218 | /* end confdefs.h. */ | |
13219 | ||
13220 | /* Override any GCC internal prototype to avoid an error. | |
13221 | Use char because int might match the return type of a GCC | |
13222 | builtin and then its argument prototype would still apply. */ | |
13223 | #ifdef __cplusplus | |
13224 | extern "C" | |
13225 | #endif | |
13226 | char lt_dladvise_preload (); | |
13227 | int | |
13228 | main () | |
13229 | { | |
13230 | return lt_dladvise_preload (); | |
13231 | ; | |
13232 | return 0; | |
13233 | } | |
13234 | _ACEOF | |
13235 | if ac_fn_c_try_link "$LINENO"; then : | |
13236 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
212380e3 | 13237 | else |
eec2776c | 13238 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
212380e3 | 13239 | fi |
eec2776c AJ |
13240 | rm -f core conftest.err conftest.$ac_objext \ |
13241 | conftest$ac_exeext conftest.$ac_ext | |
13242 | LIBS=$ac_check_lib_save_LIBS | |
7083c021 | 13243 | fi |
eec2776c AJ |
13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
13245 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13246 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
13247 | with_included_ltdl=no | |
212380e3 | 13248 | else |
eec2776c | 13249 | with_included_ltdl=yes |
7083c021 AC |
13250 | fi |
13251 | ||
7083c021 | 13252 | else |
eec2776c | 13253 | with_included_ltdl=yes |
7083c021 | 13254 | fi |
eec2776c | 13255 | |
7083c021 | 13256 | else |
eec2776c | 13257 | with_included_ltdl=yes |
212380e3 | 13258 | fi |
631ef239 | 13259 | |
212380e3 | 13260 | |
7083c021 | 13261 | fi |
212380e3 | 13262 | |
eec2776c AJ |
13263 | |
13264 | ||
13265 | ||
13266 | # Check whether --with-ltdl_include was given. | |
13267 | if test "${with_ltdl_include+set}" = set; then : | |
13268 | withval=$with_ltdl_include; | |
212380e3 | 13269 | fi |
eec2776c AJ |
13270 | |
13271 | ||
13272 | if test -n "$with_ltdl_include"; then | |
13273 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13274 | else | |
13275 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
13276 | fi | |
212380e3 | 13277 | else |
eec2776c | 13278 | with_ltdl_include=no |
7083c021 | 13279 | fi |
212380e3 | 13280 | |
212380e3 | 13281 | |
eec2776c AJ |
13282 | # Check whether --with-ltdl_lib was given. |
13283 | if test "${with_ltdl_lib+set}" = set; then : | |
13284 | withval=$with_ltdl_lib; | |
7083c021 | 13285 | fi |
eec2776c AJ |
13286 | |
13287 | ||
13288 | if test -n "$with_ltdl_lib"; then | |
13289 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13290 | else | |
13291 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
7083c021 | 13292 | fi |
eec2776c AJ |
13293 | else |
13294 | with_ltdl_lib=no | |
13295 | fi | |
13296 | ||
13297 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13298 | ,yes,no,no,) | |
13299 | case $enable_ltdl_convenience in | |
13300 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13301 | "") enable_ltdl_convenience=yes | |
13302 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13303 | esac | |
13304 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13305 | LTDLDEPS=$LIBLTDL | |
13306 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13307 | ||
13308 | ||
13309 | ||
13310 | ||
13311 | ||
13312 | # For backwards non-gettext consistent compatibility... | |
13313 | INCLTDL="$LTDLINCL" | |
13314 | ||
13315 | ||
13316 | ;; | |
13317 | ,no,no,no,) | |
13318 | # If the included ltdl is not to be used, then use the | |
13319 | # preinstalled libltdl we found. | |
13320 | ||
13321 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13322 | ||
13323 | LIBLTDL=-lltdl | |
13324 | LTDLDEPS= | |
13325 | LTDLINCL= | |
13326 | ;; | |
13327 | ,no*,no,*) | |
13328 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13329 | ;; | |
13330 | *) with_included_ltdl=no | |
13331 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13332 | LTDLDEPS= | |
13333 | LTDLINCL="-I$with_ltdl_include" | |
13334 | ;; | |
13335 | esac | |
13336 | INCLTDL="$LTDLINCL" | |
13337 | ||
13338 | # Report our decision... | |
13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13340 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13342 | $as_echo "$LTDLINCL" >&6; } | |
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13344 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13346 | $as_echo "$LIBLTDL" >&6; } | |
13347 | ||
13348 | ||
212380e3 | 13349 | |
eec2776c AJ |
13350 | # Check whether --enable-ltdl-install was given. |
13351 | if test "${enable_ltdl_install+set}" = set; then : | |
13352 | enableval=$enable_ltdl_install; | |
212380e3 | 13353 | fi |
eec2776c AJ |
13354 | |
13355 | ||
13356 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13357 | *yes*) ;; | |
13358 | *) enable_ltdl_convenience=yes ;; | |
13359 | esac | |
13360 | ||
13361 | if test x"${enable_ltdl_install-no}" != xno; then | |
13362 | INSTALL_LTDL_TRUE= | |
13363 | INSTALL_LTDL_FALSE='#' | |
13364 | else | |
13365 | INSTALL_LTDL_TRUE='#' | |
13366 | INSTALL_LTDL_FALSE= | |
212380e3 | 13367 | fi |
eec2776c AJ |
13368 | |
13369 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13370 | CONVENIENCE_LTDL_TRUE= | |
13371 | CONVENIENCE_LTDL_FALSE='#' | |
7083c021 | 13372 | else |
eec2776c AJ |
13373 | CONVENIENCE_LTDL_TRUE='#' |
13374 | CONVENIENCE_LTDL_FALSE= | |
212380e3 | 13375 | fi |
631ef239 AC |
13376 | |
13377 | ||
13378 | ||
eec2776c | 13379 | subdirs="$subdirs extra/libltdl" |
212380e3 AC |
13380 | |
13381 | ||
7083c021 | 13382 | |
7083c021 | 13383 | |
eec2776c AJ |
13384 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13385 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13386 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13387 | # definitions required by ltdl.c. | |
13388 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
212380e3 | 13389 | |
7083c021 | 13390 | |
212380e3 | 13391 | |
eec2776c AJ |
13392 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13393 | do : | |
13394 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13395 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13396 | " | |
13397 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13398 | cat >>confdefs.h <<_ACEOF | |
13399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 13400 | _ACEOF |
7083c021 AC |
13401 | |
13402 | fi | |
212380e3 | 13403 | |
eec2776c | 13404 | done |
7083c021 | 13405 | |
212380e3 | 13406 | |
eec2776c AJ |
13407 | for ac_func in closedir opendir readdir |
13408 | do : | |
13409 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13410 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13411 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13412 | cat >>confdefs.h <<_ACEOF | |
13413 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13414 | _ACEOF |
212380e3 | 13415 | |
7083c021 | 13416 | else |
7083c021 | 13417 | |
7083c021 | 13418 | |
eec2776c | 13419 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
7083c021 | 13420 | |
7083c021 | 13421 | fi |
7083c021 | 13422 | done |
7083c021 | 13423 | |
eec2776c AJ |
13424 | for ac_func in strlcat strlcpy |
13425 | do : | |
13426 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13427 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13428 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13429 | cat >>confdefs.h <<_ACEOF | |
13430 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13431 | _ACEOF | |
13432 | ||
13433 | else | |
13434 | ||
13435 | ||
13436 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
212380e3 | 13437 | |
212380e3 | 13438 | fi |
eec2776c | 13439 | done |
631ef239 | 13440 | |
7083c021 | 13441 | |
c52df125 | 13442 | |
eec2776c AJ |
13443 | cat >>confdefs.h <<_ACEOF |
13444 | #define LT_LIBEXT "$libext" | |
13445 | _ACEOF | |
c52df125 | 13446 | |
eec2776c AJ |
13447 | |
13448 | name= | |
13449 | eval "lt_libprefix=\"$libname_spec\"" | |
13450 | ||
13451 | cat >>confdefs.h <<_ACEOF | |
13452 | #define LT_LIBPREFIX "$lt_libprefix" | |
c52df125 | 13453 | _ACEOF |
7083c021 AC |
13454 | |
13455 | ||
eec2776c AJ |
13456 | name=ltdl |
13457 | eval "LTDLOPEN=\"$libname_spec\"" | |
7083c021 | 13458 | |
c52df125 | 13459 | |
c52df125 | 13460 | |
c52df125 | 13461 | |
1db8e007 | 13462 | |
1db8e007 JT |
13463 | |
13464 | ||
13465 | ||
eec2776c | 13466 | # Only expand once: |
1db8e007 | 13467 | |
1db8e007 | 13468 | |
7083c021 | 13469 | |
eec2776c AJ |
13470 | build_ltdl=$with_included_ltdl |
13471 | if test x"$build_ltdl" = x"yes"; then | |
13472 | if 1; then | |
13473 | BUILD_LTDL_TRUE= | |
13474 | BUILD_LTDL_FALSE='#' | |
13475 | else | |
13476 | BUILD_LTDL_TRUE='#' | |
13477 | BUILD_LTDL_FALSE= | |
13478 | fi | |
7083c021 | 13479 | |
eec2776c | 13480 | subdirs="$subdirs libltdl" |
7083c021 | 13481 | |
eec2776c | 13482 | fi |
212380e3 | 13483 | |
cfa7b5fd | 13484 | if test "$ac_cv_c_compiler_gnu" = yes; then |
eec2776c | 13485 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" |
212380e3 | 13486 | fi |
631ef239 | 13487 | |
7083c021 | 13488 | if test "$ac_cv_prog_cc_g" = yes; then |
2a19fc3f | 13489 | IRC_CFLAGS="$IRC_CFLAGS -g" |
7083c021 | 13490 | fi |
7083c021 AC |
13491 | |
13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
13493 | $as_echo_n "checking for /dev/null... " >&6; } | |
13494 | if test -c /dev/null ; then | |
13495 | ||
13496 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
13497 | ||
13498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13499 | $as_echo "yes" >&6; } | |
212380e3 | 13500 | else |
212380e3 | 13501 | |
7083c021 AC |
13502 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13503 | ||
13504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
13505 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 13506 | fi |
631ef239 | 13507 | |
7083c021 AC |
13508 | if test ! -z "$CFLAGS"; then |
13509 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 13510 | fi |
631ef239 | 13511 | |
7083c021 AC |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
13513 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 13514 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13515 | $as_echo_n "(cached) " >&6 |
13516 | else | |
13517 | ac_func_search_save_LIBS=$LIBS | |
13518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13519 | /* end confdefs.h. */ |
7083c021 AC |
13520 | |
13521 | /* Override any GCC internal prototype to avoid an error. | |
13522 | Use char because int might match the return type of a GCC | |
13523 | builtin and then its argument prototype would still apply. */ | |
13524 | #ifdef __cplusplus | |
13525 | extern "C" | |
13526 | #endif | |
13527 | char strerror (); | |
212380e3 AC |
13528 | int |
13529 | main () | |
13530 | { | |
7083c021 | 13531 | return strerror (); |
212380e3 AC |
13532 | ; |
13533 | return 0; | |
13534 | } | |
13535 | _ACEOF | |
7083c021 AC |
13536 | for ac_lib in '' cposix; do |
13537 | if test -z "$ac_lib"; then | |
13538 | ac_res="none required" | |
13539 | else | |
13540 | ac_res=-l$ac_lib | |
13541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13542 | fi | |
13543 | if ac_fn_c_try_link "$LINENO"; then : | |
13544 | ac_cv_search_strerror=$ac_res | |
13545 | fi | |
13546 | rm -f core conftest.err conftest.$ac_objext \ | |
13547 | conftest$ac_exeext | |
b6d0720c | 13548 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13549 | break |
13550 | fi | |
13551 | done | |
b6d0720c | 13552 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 13553 | |
212380e3 | 13554 | else |
7083c021 AC |
13555 | ac_cv_search_strerror=no |
13556 | fi | |
13557 | rm conftest.$ac_ext | |
13558 | LIBS=$ac_func_search_save_LIBS | |
13559 | fi | |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
13561 | $as_echo "$ac_cv_search_strerror" >&6; } | |
13562 | ac_res=$ac_cv_search_strerror | |
13563 | if test "$ac_res" != no; then : | |
13564 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 13565 | |
212380e3 | 13566 | fi |
631ef239 | 13567 | |
7083c021 AC |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13569 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 13570 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
13571 | $as_echo_n "(cached) " >&6 |
13572 | else | |
13573 | ac_cv_c_inline=no | |
13574 | for ac_kw in inline __inline__ __inline; do | |
13575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13576 | /* end confdefs.h. */ | |
13577 | #ifndef __cplusplus | |
13578 | typedef int foo_t; | |
13579 | static $ac_kw foo_t static_foo () {return 0; } | |
13580 | $ac_kw foo_t foo () {return 0; } | |
13581 | #endif | |
13582 | ||
13583 | _ACEOF | |
13584 | if ac_fn_c_try_compile "$LINENO"; then : | |
13585 | ac_cv_c_inline=$ac_kw | |
13586 | fi | |
631ef239 | 13587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 13588 | test "$ac_cv_c_inline" != no && break |
212380e3 | 13589 | done |
7083c021 AC |
13590 | |
13591 | fi | |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13593 | $as_echo "$ac_cv_c_inline" >&6; } | |
13594 | ||
13595 | case $ac_cv_c_inline in | |
13596 | inline | yes) ;; | |
13597 | *) | |
13598 | case $ac_cv_c_inline in | |
13599 | no) ac_val=;; | |
13600 | *) ac_val=$ac_cv_c_inline;; | |
13601 | esac | |
13602 | cat >>confdefs.h <<_ACEOF | |
13603 | #ifndef __cplusplus | |
13604 | #define inline $ac_val | |
13605 | #endif | |
13606 | _ACEOF | |
13607 | ;; | |
212380e3 | 13608 | esac |
7083c021 | 13609 | |
7083c021 AC |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13611 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13612 | set x ${MAKE-make} | |
13613 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 13614 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
13615 | $as_echo_n "(cached) " >&6 |
13616 | else | |
13617 | cat >conftest.make <<\_ACEOF | |
13618 | SHELL = /bin/sh | |
13619 | all: | |
13620 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 13621 | _ACEOF |
b6d0720c | 13622 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
13623 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
13624 | *@@@%%%=?*=@@@%%%*) | |
13625 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13626 | *) | |
13627 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 13628 | esac |
7083c021 AC |
13629 | rm -f conftest.make |
13630 | fi | |
13631 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13633 | $as_echo "yes" >&6; } | |
13634 | SET_MAKE= | |
13635 | else | |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13637 | $as_echo "no" >&6; } | |
c52df125 | 13638 | SET_MAKE="MAKE=${MAKE-make}" |
7083c021 | 13639 | fi |
7083c021 | 13640 | |
7083c021 AC |
13641 | |
13642 | # Extract the first word of "rm", so it can be a program name with args. | |
13643 | set dummy rm; ac_word=$2 | |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13645 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13646 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 13647 | $as_echo_n "(cached) " >&6 |
212380e3 | 13648 | else |
7083c021 AC |
13649 | case $RM in |
13650 | [\\/]* | ?:[\\/]*) | |
13651 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
13652 | ;; | |
13653 | *) | |
13654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13655 | for as_dir in $PATH | |
13656 | do | |
13657 | IFS=$as_save_IFS | |
13658 | test -z "$as_dir" && as_dir=. | |
13659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13660 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13661 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
13662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13663 | break 2 | |
13664 | fi | |
13665 | done | |
13666 | done | |
13667 | IFS=$as_save_IFS | |
212380e3 | 13668 | |
7083c021 AC |
13669 | ;; |
13670 | esac | |
212380e3 | 13671 | fi |
7083c021 AC |
13672 | RM=$ac_cv_path_RM |
13673 | if test -n "$RM"; then | |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
13675 | $as_echo "$RM" >&6; } | |
13676 | else | |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13678 | $as_echo "no" >&6; } | |
212380e3 | 13679 | fi |
631ef239 AC |
13680 | |
13681 | ||
7083c021 AC |
13682 | # Extract the first word of "cp", so it can be a program name with args. |
13683 | set dummy cp; ac_word=$2 | |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13685 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13686 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
13687 | $as_echo_n "(cached) " >&6 |
13688 | else | |
13689 | case $CP in | |
13690 | [\\/]* | ?:[\\/]*) | |
13691 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
13692 | ;; | |
13693 | *) | |
13694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13695 | for as_dir in $PATH | |
13696 | do | |
13697 | IFS=$as_save_IFS | |
13698 | test -z "$as_dir" && as_dir=. | |
13699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13700 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13701 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
13702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13703 | break 2 | |
13704 | fi | |
13705 | done | |
13706 | done | |
13707 | IFS=$as_save_IFS | |
631ef239 | 13708 | |
7083c021 AC |
13709 | ;; |
13710 | esac | |
13711 | fi | |
13712 | CP=$ac_cv_path_CP | |
13713 | if test -n "$CP"; then | |
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
13715 | $as_echo "$CP" >&6; } | |
13716 | else | |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13718 | $as_echo "no" >&6; } | |
13719 | fi | |
212380e3 AC |
13720 | |
13721 | ||
7083c021 AC |
13722 | # Extract the first word of "mv", so it can be a program name with args. |
13723 | set dummy mv; ac_word=$2 | |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13725 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13726 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 13727 | $as_echo_n "(cached) " >&6 |
212380e3 | 13728 | else |
7083c021 AC |
13729 | case $MV in |
13730 | [\\/]* | ?:[\\/]*) | |
13731 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
13732 | ;; | |
13733 | *) | |
13734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13735 | for as_dir in $PATH | |
13736 | do | |
13737 | IFS=$as_save_IFS | |
13738 | test -z "$as_dir" && as_dir=. | |
13739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13741 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
13742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13743 | break 2 | |
13744 | fi | |
13745 | done | |
13746 | done | |
13747 | IFS=$as_save_IFS | |
13748 | ||
13749 | ;; | |
631ef239 | 13750 | esac |
7083c021 AC |
13751 | fi |
13752 | MV=$ac_cv_path_MV | |
13753 | if test -n "$MV"; then | |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
13755 | $as_echo "$MV" >&6; } | |
212380e3 | 13756 | else |
7083c021 AC |
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13758 | $as_echo "no" >&6; } | |
212380e3 | 13759 | fi |
631ef239 | 13760 | |
212380e3 | 13761 | |
7083c021 AC |
13762 | # Extract the first word of "ln", so it can be a program name with args. |
13763 | set dummy ln; ac_word=$2 | |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13765 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13766 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 13767 | $as_echo_n "(cached) " >&6 |
212380e3 | 13768 | else |
7083c021 AC |
13769 | case $LN in |
13770 | [\\/]* | ?:[\\/]*) | |
13771 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
13772 | ;; | |
13773 | *) | |
13774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13775 | for as_dir in $PATH | |
13776 | do | |
13777 | IFS=$as_save_IFS | |
13778 | test -z "$as_dir" && as_dir=. | |
13779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13781 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
13782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13783 | break 2 | |
13784 | fi | |
13785 | done | |
13786 | done | |
13787 | IFS=$as_save_IFS | |
212380e3 | 13788 | |
7083c021 | 13789 | ;; |
631ef239 | 13790 | esac |
7083c021 AC |
13791 | fi |
13792 | LN=$ac_cv_path_LN | |
13793 | if test -n "$LN"; then | |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
13795 | $as_echo "$LN" >&6; } | |
212380e3 | 13796 | else |
7083c021 AC |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13798 | $as_echo "no" >&6; } | |
212380e3 | 13799 | fi |
631ef239 | 13800 | |
7083c021 AC |
13801 | |
13802 | # Extract the first word of "sed", so it can be a program name with args. | |
13803 | set dummy sed; ac_word=$2 | |
13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13805 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13806 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
13807 | $as_echo_n "(cached) " >&6 |
13808 | else | |
13809 | case $SED in | |
13810 | [\\/]* | ?:[\\/]*) | |
13811 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
13812 | ;; | |
13813 | *) | |
13814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13815 | for as_dir in $PATH | |
13816 | do | |
13817 | IFS=$as_save_IFS | |
13818 | test -z "$as_dir" && as_dir=. | |
13819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13821 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
13822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13823 | break 2 | |
13824 | fi | |
13825 | done | |
212380e3 | 13826 | done |
7083c021 AC |
13827 | IFS=$as_save_IFS |
13828 | ||
13829 | ;; | |
13830 | esac | |
13831 | fi | |
13832 | SED=$ac_cv_path_SED | |
13833 | if test -n "$SED"; then | |
13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
13835 | $as_echo "$SED" >&6; } | |
212380e3 | 13836 | else |
7083c021 AC |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13838 | $as_echo "no" >&6; } | |
13839 | fi | |
212380e3 | 13840 | |
212380e3 | 13841 | |
7083c021 AC |
13842 | # Extract the first word of "ar", so it can be a program name with args. |
13843 | set dummy ar; ac_word=$2 | |
13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13845 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13846 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
13847 | $as_echo_n "(cached) " >&6 |
13848 | else | |
13849 | case $AR in | |
13850 | [\\/]* | ?:[\\/]*) | |
13851 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
13852 | ;; | |
13853 | *) | |
13854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13855 | for as_dir in $PATH | |
13856 | do | |
13857 | IFS=$as_save_IFS | |
13858 | test -z "$as_dir" && as_dir=. | |
13859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13861 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
13862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13863 | break 2 | |
13864 | fi | |
13865 | done | |
13866 | done | |
13867 | IFS=$as_save_IFS | |
212380e3 | 13868 | |
7083c021 | 13869 | ;; |
631ef239 | 13870 | esac |
7083c021 AC |
13871 | fi |
13872 | AR=$ac_cv_path_AR | |
13873 | if test -n "$AR"; then | |
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13875 | $as_echo "$AR" >&6; } | |
212380e3 | 13876 | else |
7083c021 AC |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13878 | $as_echo "no" >&6; } | |
212380e3 | 13879 | fi |
631ef239 | 13880 | |
7083c021 AC |
13881 | |
13882 | # Extract the first word of "ld", so it can be a program name with args. | |
13883 | set dummy ld; ac_word=$2 | |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13885 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13886 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 13887 | $as_echo_n "(cached) " >&6 |
212380e3 | 13888 | else |
7083c021 AC |
13889 | case $LD in |
13890 | [\\/]* | ?:[\\/]*) | |
13891 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
13892 | ;; | |
13893 | *) | |
13894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13895 | for as_dir in $PATH | |
13896 | do | |
13897 | IFS=$as_save_IFS | |
13898 | test -z "$as_dir" && as_dir=. | |
13899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13900 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13901 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
13902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13903 | break 2 | |
13904 | fi | |
13905 | done | |
13906 | done | |
13907 | IFS=$as_save_IFS | |
212380e3 | 13908 | |
7083c021 AC |
13909 | ;; |
13910 | esac | |
212380e3 | 13911 | fi |
7083c021 AC |
13912 | LD=$ac_cv_path_LD |
13913 | if test -n "$LD"; then | |
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13915 | $as_echo "$LD" >&6; } | |
13916 | else | |
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13918 | $as_echo "no" >&6; } | |
212380e3 | 13919 | fi |
631ef239 | 13920 | |
212380e3 | 13921 | |
7083c021 AC |
13922 | # Extract the first word of "ranlib", so it can be a program name with args. |
13923 | set dummy ranlib; ac_word=$2 | |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13925 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13926 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 13927 | $as_echo_n "(cached) " >&6 |
212380e3 | 13928 | else |
7083c021 AC |
13929 | case $RANLIB in |
13930 | [\\/]* | ?:[\\/]*) | |
13931 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
13932 | ;; | |
13933 | *) | |
13934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13935 | for as_dir in $PATH | |
13936 | do | |
13937 | IFS=$as_save_IFS | |
13938 | test -z "$as_dir" && as_dir=. | |
13939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13941 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
13942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13943 | break 2 | |
13944 | fi | |
13945 | done | |
13946 | done | |
13947 | IFS=$as_save_IFS | |
212380e3 | 13948 | |
7083c021 AC |
13949 | ;; |
13950 | esac | |
13951 | fi | |
13952 | RANLIB=$ac_cv_path_RANLIB | |
13953 | if test -n "$RANLIB"; then | |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
13955 | $as_echo "$RANLIB" >&6; } | |
13956 | else | |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13958 | $as_echo "no" >&6; } | |
212380e3 | 13959 | fi |
631ef239 | 13960 | |
7083c021 AC |
13961 | |
13962 | # Extract the first word of "touch", so it can be a program name with args. | |
13963 | set dummy touch; ac_word=$2 | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13965 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13966 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
13967 | $as_echo_n "(cached) " >&6 |
13968 | else | |
13969 | case $TOUCH in | |
13970 | [\\/]* | ?:[\\/]*) | |
13971 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
13972 | ;; | |
13973 | *) | |
13974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13975 | for as_dir in $PATH | |
13976 | do | |
13977 | IFS=$as_save_IFS | |
13978 | test -z "$as_dir" && as_dir=. | |
13979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13981 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
13982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13983 | break 2 | |
13984 | fi | |
212380e3 | 13985 | done |
7083c021 AC |
13986 | done |
13987 | IFS=$as_save_IFS | |
13988 | ||
13989 | ;; | |
212380e3 | 13990 | esac |
7083c021 AC |
13991 | fi |
13992 | TOUCH=$ac_cv_path_TOUCH | |
13993 | if test -n "$TOUCH"; then | |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
13995 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 13996 | else |
7083c021 AC |
13997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13998 | $as_echo "no" >&6; } | |
13999 | fi | |
212380e3 | 14000 | |
212380e3 | 14001 | |
7083c021 AC |
14002 | |
14003 | for ac_prog in 'bison -y' byacc | |
14004 | do | |
14005 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14006 | set dummy $ac_prog; ac_word=$2 | |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14008 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14009 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 14010 | $as_echo_n "(cached) " >&6 |
212380e3 | 14011 | else |
7083c021 AC |
14012 | if test -n "$YACC"; then |
14013 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
14014 | else | |
14015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14016 | for as_dir in $PATH | |
14017 | do | |
14018 | IFS=$as_save_IFS | |
14019 | test -z "$as_dir" && as_dir=. | |
14020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14022 | ac_cv_prog_YACC="$ac_prog" |
14023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14024 | break 2 | |
14025 | fi | |
14026 | done | |
14027 | done | |
14028 | IFS=$as_save_IFS | |
212380e3 | 14029 | |
212380e3 AC |
14030 | fi |
14031 | fi | |
7083c021 AC |
14032 | YACC=$ac_cv_prog_YACC |
14033 | if test -n "$YACC"; then | |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14035 | $as_echo "$YACC" >&6; } | |
14036 | else | |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14038 | $as_echo "no" >&6; } | |
212380e3 | 14039 | fi |
631ef239 AC |
14040 | |
14041 | ||
7083c021 AC |
14042 | test -n "$YACC" && break |
14043 | done | |
14044 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
14045 | |
14046 | ||
7083c021 | 14047 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 14048 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 14049 | fi |
212380e3 | 14050 | |
7083c021 AC |
14051 | for ac_prog in flex lex |
14052 | do | |
14053 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14054 | set dummy $ac_prog; ac_word=$2 | |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14056 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14057 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 14058 | $as_echo_n "(cached) " >&6 |
212380e3 | 14059 | else |
7083c021 AC |
14060 | if test -n "$LEX"; then |
14061 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 14062 | else |
7083c021 AC |
14063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14064 | for as_dir in $PATH | |
14065 | do | |
14066 | IFS=$as_save_IFS | |
14067 | test -z "$as_dir" && as_dir=. | |
14068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14070 | ac_cv_prog_LEX="$ac_prog" |
14071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14072 | break 2 | |
14073 | fi | |
631ef239 | 14074 | done |
7083c021 AC |
14075 | done |
14076 | IFS=$as_save_IFS | |
631ef239 | 14077 | |
7083c021 AC |
14078 | fi |
14079 | fi | |
14080 | LEX=$ac_cv_prog_LEX | |
14081 | if test -n "$LEX"; then | |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14083 | $as_echo "$LEX" >&6; } | |
631ef239 | 14084 | else |
7083c021 AC |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14086 | $as_echo "no" >&6; } | |
631ef239 AC |
14087 | fi |
14088 | ||
14089 | ||
7083c021 AC |
14090 | test -n "$LEX" && break |
14091 | done | |
14092 | test -n "$LEX" || LEX=":" | |
212380e3 | 14093 | |
7083c021 AC |
14094 | if test "x$LEX" != "x:"; then |
14095 | cat >conftest.l <<_ACEOF | |
14096 | %% | |
14097 | a { ECHO; } | |
14098 | b { REJECT; } | |
14099 | c { yymore (); } | |
14100 | d { yyless (1); } | |
2eff3833 JT |
14101 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
14102 | yyless ((input () != 0)); } | |
7083c021 AC |
14103 | f { unput (yytext[0]); } |
14104 | . { BEGIN INITIAL; } | |
14105 | %% | |
14106 | #ifdef YYTEXT_POINTER | |
14107 | extern char *yytext; | |
212380e3 | 14108 | #endif |
212380e3 | 14109 | int |
7083c021 | 14110 | main (void) |
212380e3 | 14111 | { |
7083c021 | 14112 | return ! yylex () + ! yywrap (); |
212380e3 AC |
14113 | } |
14114 | _ACEOF | |
7083c021 | 14115 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
14116 | case "(($ac_try" in |
14117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14118 | *) ac_try_echo=$ac_try;; | |
14119 | esac | |
7083c021 AC |
14120 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
14121 | $as_echo "$ac_try_echo"; } >&5 | |
14122 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 14123 | ac_status=$? |
7083c021 AC |
14124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14125 | test $ac_status = 0; } | |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14127 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 14128 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 14129 | $as_echo_n "(cached) " >&6 |
212380e3 | 14130 | else |
212380e3 | 14131 | |
7083c021 AC |
14132 | if test -f lex.yy.c; then |
14133 | ac_cv_prog_lex_root=lex.yy | |
14134 | elif test -f lexyy.c; then | |
14135 | ac_cv_prog_lex_root=lexyy | |
14136 | else | |
b6d0720c | 14137 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
14138 | fi |
14139 | fi | |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14141 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14142 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14143 | ||
14144 | if test -z "${LEXLIB+set}"; then | |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14146 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 14147 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
14148 | $as_echo_n "(cached) " >&6 |
14149 | else | |
631ef239 | 14150 | |
7083c021 AC |
14151 | ac_save_LIBS=$LIBS |
14152 | ac_cv_lib_lex='none needed' | |
14153 | for ac_lib in '' -lfl -ll; do | |
14154 | LIBS="$ac_lib $ac_save_LIBS" | |
14155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14156 | /* end confdefs.h. */ | |
14157 | `cat $LEX_OUTPUT_ROOT.c` | |
14158 | _ACEOF | |
14159 | if ac_fn_c_try_link "$LINENO"; then : | |
14160 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 14161 | fi |
7083c021 AC |
14162 | rm -f core conftest.err conftest.$ac_objext \ |
14163 | conftest$ac_exeext conftest.$ac_ext | |
14164 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14165 | done | |
14166 | LIBS=$ac_save_LIBS | |
631ef239 | 14167 | |
631ef239 | 14168 | fi |
7083c021 AC |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
14170 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14171 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14172 | fi | |
14173 | ||
14174 | ||
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14176 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 14177 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 14178 | $as_echo_n "(cached) " >&6 |
631ef239 | 14179 | else |
7083c021 AC |
14180 | # POSIX says lex can declare yytext either as a pointer or an array; the |
14181 | # default is implementation-dependent. Figure out which it is, since | |
14182 | # not all implementations provide the %pointer and %array declarations. | |
14183 | ac_cv_prog_lex_yytext_pointer=no | |
14184 | ac_save_LIBS=$LIBS | |
14185 | LIBS="$LEXLIB $ac_save_LIBS" | |
14186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14187 | /* end confdefs.h. */ | |
b6d0720c AC |
14188 | |
14189 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
14190 | `cat $LEX_OUTPUT_ROOT.c` |
14191 | _ACEOF | |
14192 | if ac_fn_c_try_link "$LINENO"; then : | |
14193 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 14194 | fi |
7083c021 AC |
14195 | rm -f core conftest.err conftest.$ac_objext \ |
14196 | conftest$ac_exeext conftest.$ac_ext | |
14197 | LIBS=$ac_save_LIBS | |
14198 | ||
212380e3 | 14199 | fi |
7083c021 AC |
14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
14201 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14202 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 14203 | |
7083c021 AC |
14204 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
14205 | ||
14206 | fi | |
14207 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14208 | ||
14209 | fi | |
14210 | ||
14211 | if test "$LEX" = ":"; then | |
b6d0720c | 14212 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
14213 | fi |
14214 | ||
9f9b7042 NPB |
14215 | # Check whether --enable-fhs-paths was given. |
14216 | if test "${enable_fhs_paths+set}" = set; then : | |
14217 | enableval=$enable_fhs_paths; | |
14218 | else | |
14219 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14220 | test "$localstatedir" = '${prefix}/var' && \ | |
14221 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14222 | enable_fhs_paths=no | |
14223 | else | |
14224 | enable_fhs_paths=yes | |
14225 | fi | |
14226 | ||
14227 | fi | |
14228 | ||
14229 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14230 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14231 | rundir=${rundir-'${prefix}/run'} | |
14232 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14233 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14234 | else | |
14235 | libexecdir='${bindir}' | |
14236 | pkglibexecdir='${libexecdir}' | |
14237 | rundir='${sysconfdir}' | |
14238 | pkgrundir='${rundir}' | |
7083c021 | 14239 | localstatedir='${prefix}' |
9f9b7042 | 14240 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 14241 | fi |
9f9b7042 NPB |
14242 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
14243 | ||
14244 | ||
14245 | ||
14246 | ||
14247 | ||
14248 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14249 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14250 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14251 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14252 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14253 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14254 | last_ac_define_dir="$ac_define_dir" | |
14255 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14256 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14257 | if test "x$ac_define_dir_counter" = x128; then : | |
14258 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
14259 | break | |
14260 | fi | |
9f9b7042 NPB |
14261 | done |
14262 | PKGLOCALSTATEDIR="$ac_define_dir" | |
14263 | ||
14264 | ||
14265 | cat >>confdefs.h <<_ACEOF | |
14266 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
14267 | _ACEOF | |
14268 | ||
14269 | ||
14270 | ||
14271 | ||
14272 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14274 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
14275 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14276 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14277 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14278 | last_ac_define_dir="$ac_define_dir" | |
14279 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14280 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14281 | if test "x$ac_define_dir_counter" = x128; then : | |
14282 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
14283 | break | |
14284 | fi | |
9f9b7042 NPB |
14285 | done |
14286 | PKGLIBEXECDIR="$ac_define_dir" | |
14287 | ||
14288 | ||
14289 | cat >>confdefs.h <<_ACEOF | |
14290 | #define PKGLIBEXECDIR "$ac_define_dir" | |
14291 | _ACEOF | |
14292 | ||
14293 | ||
212380e3 | 14294 | |
7083c021 AC |
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
14296 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 14297 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 14298 | $as_echo_n "(cached) " >&6 |
212380e3 | 14299 | else |
7083c021 | 14300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14301 | /* end confdefs.h. */ |
7083c021 AC |
14302 | #include <stdlib.h> |
14303 | #include <stdarg.h> | |
14304 | #include <string.h> | |
14305 | #include <float.h> | |
212380e3 AC |
14306 | |
14307 | int | |
14308 | main () | |
14309 | { | |
7083c021 | 14310 | |
212380e3 AC |
14311 | ; |
14312 | return 0; | |
14313 | } | |
14314 | _ACEOF | |
7083c021 AC |
14315 | if ac_fn_c_try_compile "$LINENO"; then : |
14316 | ac_cv_header_stdc=yes | |
212380e3 | 14317 | else |
7083c021 | 14318 | ac_cv_header_stdc=no |
212380e3 | 14319 | fi |
631ef239 | 14320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14321 | |
7083c021 AC |
14322 | if test $ac_cv_header_stdc = yes; then |
14323 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14325 | /* end confdefs.h. */ | |
14326 | #include <string.h> | |
14327 | ||
212380e3 | 14328 | _ACEOF |
7083c021 AC |
14329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14330 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14331 | ||
14332 | else | |
14333 | ac_cv_header_stdc=no | |
14334 | fi | |
14335 | rm -f conftest* | |
212380e3 AC |
14336 | |
14337 | fi | |
14338 | ||
7083c021 AC |
14339 | if test $ac_cv_header_stdc = yes; then |
14340 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14342 | /* end confdefs.h. */ | |
14343 | #include <stdlib.h> | |
14344 | ||
14345 | _ACEOF | |
14346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14347 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 14348 | |
212380e3 | 14349 | else |
7083c021 | 14350 | ac_cv_header_stdc=no |
631ef239 | 14351 | fi |
7083c021 | 14352 | rm -f conftest* |
631ef239 | 14353 | |
7083c021 | 14354 | fi |
212380e3 | 14355 | |
7083c021 AC |
14356 | if test $ac_cv_header_stdc = yes; then |
14357 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14358 | if test "$cross_compiling" = yes; then : | |
14359 | : | |
212380e3 | 14360 | else |
7083c021 | 14361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14362 | /* end confdefs.h. */ |
7083c021 AC |
14363 | #include <ctype.h> |
14364 | #include <stdlib.h> | |
14365 | #if ((' ' & 0x0FF) == 0x020) | |
14366 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14367 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14368 | #else | |
14369 | # define ISLOWER(c) \ | |
14370 | (('a' <= (c) && (c) <= 'i') \ | |
14371 | || ('j' <= (c) && (c) <= 'r') \ | |
14372 | || ('s' <= (c) && (c) <= 'z')) | |
14373 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 14374 | #endif |
7083c021 AC |
14375 | |
14376 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
14377 | int |
14378 | main () | |
14379 | { | |
7083c021 AC |
14380 | int i; |
14381 | for (i = 0; i < 256; i++) | |
14382 | if (XOR (islower (i), ISLOWER (i)) | |
14383 | || toupper (i) != TOUPPER (i)) | |
14384 | return 2; | |
212380e3 AC |
14385 | return 0; |
14386 | } | |
14387 | _ACEOF | |
7083c021 | 14388 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 14389 | |
7083c021 AC |
14390 | else |
14391 | ac_cv_header_stdc=no | |
631ef239 | 14392 | fi |
7083c021 AC |
14393 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14394 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14395 | fi |
7083c021 | 14396 | |
212380e3 | 14397 | fi |
212380e3 | 14398 | fi |
7083c021 AC |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14400 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14401 | if test $ac_cv_header_stdc = yes; then | |
14402 | ||
14403 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
14404 | |
14405 | fi | |
14406 | ||
14407 | ||
7083c021 AC |
14408 | 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 |
14409 | do : | |
14410 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14411 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 14412 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14413 | cat >>confdefs.h <<_ACEOF |
14414 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14415 | _ACEOF | |
212380e3 | 14416 | |
212380e3 AC |
14417 | fi |
14418 | ||
7083c021 | 14419 | done |
212380e3 AC |
14420 | |
14421 | ||
212380e3 | 14422 | |
7083c021 AC |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14424 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 14425 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
14426 | $as_echo_n "(cached) " >&6 |
14427 | else | |
14428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14429 | /* end confdefs.h. */ | |
212380e3 | 14430 | |
7083c021 AC |
14431 | int |
14432 | main () | |
14433 | { | |
2eff3833 | 14434 | |
7083c021 | 14435 | #ifndef __cplusplus |
2eff3833 | 14436 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 14437 | typedef int charset[2]; |
2eff3833 | 14438 | const charset cs = { 0, 0 }; |
7083c021 AC |
14439 | /* SunOS 4.1.1 cc rejects this. */ |
14440 | char const *const *pcpcc; | |
14441 | char **ppc; | |
14442 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14443 | struct point {int x, y;}; | |
14444 | static struct point const zero = {0,0}; | |
14445 | /* AIX XL C 1.02.0.0 rejects this. | |
14446 | It does not let you subtract one const X* pointer from another in | |
14447 | an arm of an if-expression whose if-part is not a constant | |
14448 | expression */ | |
14449 | const char *g = "string"; | |
14450 | pcpcc = &g + (g ? g-g : 0); | |
14451 | /* HPUX 7.0 cc rejects these. */ | |
14452 | ++pcpcc; | |
14453 | ppc = (char**) pcpcc; | |
14454 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
14455 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14456 | char tx; | |
14457 | char *t = &tx; | |
7083c021 | 14458 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 14459 | |
7083c021 AC |
14460 | *t++ = 0; |
14461 | if (s) return 0; | |
14462 | } | |
14463 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14464 | int x[] = {25, 17}; | |
14465 | const int *foo = &x[0]; | |
14466 | ++foo; | |
14467 | } | |
14468 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14469 | typedef const int *iptr; | |
14470 | iptr p = 0; | |
14471 | ++p; | |
14472 | } | |
2eff3833 | 14473 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 14474 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
14475 | struct s { int j; const int *ap[3]; } bx; |
14476 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
14477 | } |
14478 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14479 | const int foo = 10; | |
14480 | if (!foo) return 0; | |
14481 | } | |
14482 | return !cs[0] && !zero.x; | |
14483 | #endif | |
212380e3 | 14484 | |
7083c021 AC |
14485 | ; |
14486 | return 0; | |
14487 | } | |
212380e3 | 14488 | _ACEOF |
7083c021 AC |
14489 | if ac_fn_c_try_compile "$LINENO"; then : |
14490 | ac_cv_c_const=yes | |
212380e3 | 14491 | else |
7083c021 | 14492 | ac_cv_c_const=no |
212380e3 | 14493 | fi |
631ef239 | 14494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14495 | fi |
7083c021 AC |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14497 | $as_echo "$ac_cv_c_const" >&6; } | |
14498 | if test $ac_cv_c_const = no; then | |
212380e3 | 14499 | |
7083c021 | 14500 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
14501 | |
14502 | fi | |
14503 | ||
7083c021 AC |
14504 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14506 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 14507 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 14508 | $as_echo_n "(cached) " >&6 |
212380e3 | 14509 | else |
7083c021 AC |
14510 | ac_cv_c_bigendian=unknown |
14511 | # See if we're dealing with a universal compiler. | |
14512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14513 | /* end confdefs.h. */ | |
14514 | #ifndef __APPLE_CC__ | |
14515 | not a universal capable compiler | |
14516 | #endif | |
14517 | typedef int dummy; | |
14518 | ||
14519 | _ACEOF | |
14520 | if ac_fn_c_try_compile "$LINENO"; then : | |
14521 | ||
14522 | # Check for potential -arch flags. It is not universal unless | |
14523 | # there are at least two -arch flags with different values. | |
14524 | ac_arch= | |
14525 | ac_prev= | |
14526 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14527 | if test -n "$ac_prev"; then | |
14528 | case $ac_word in | |
14529 | i?86 | x86_64 | ppc | ppc64) | |
14530 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14531 | ac_arch=$ac_word | |
14532 | else | |
14533 | ac_cv_c_bigendian=universal | |
14534 | break | |
14535 | fi | |
14536 | ;; | |
14537 | esac | |
14538 | ac_prev= | |
14539 | elif test "x$ac_word" = "x-arch"; then | |
14540 | ac_prev=arch | |
14541 | fi | |
14542 | done | |
14543 | fi | |
14544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14545 | if test $ac_cv_c_bigendian = unknown; then | |
14546 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
14548 | /* end confdefs.h. */ |
14549 | #include <sys/types.h> | |
7083c021 | 14550 | #include <sys/param.h> |
212380e3 AC |
14551 | |
14552 | int | |
14553 | main () | |
14554 | { | |
7083c021 AC |
14555 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
14556 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14557 | && LITTLE_ENDIAN) | |
14558 | bogus endian macros | |
14559 | #endif | |
212380e3 AC |
14560 | |
14561 | ; | |
14562 | return 0; | |
14563 | } | |
14564 | _ACEOF | |
7083c021 | 14565 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14566 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 14567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
14568 | /* end confdefs.h. */ |
14569 | #include <sys/types.h> | |
7083c021 | 14570 | #include <sys/param.h> |
212380e3 AC |
14571 | |
14572 | int | |
14573 | main () | |
14574 | { | |
14575 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
14576 | not big endian |
14577 | #endif | |
212380e3 AC |
14578 | |
14579 | ; | |
14580 | return 0; | |
14581 | } | |
14582 | _ACEOF | |
7083c021 | 14583 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
14584 | ac_cv_c_bigendian=yes |
14585 | else | |
7083c021 | 14586 | ac_cv_c_bigendian=no |
212380e3 | 14587 | fi |
631ef239 | 14588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
14589 | fi |
14590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14591 | fi | |
14592 | if test $ac_cv_c_bigendian = unknown; then | |
14593 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14595 | /* end confdefs.h. */ | |
14596 | #include <limits.h> | |
212380e3 | 14597 | |
7083c021 AC |
14598 | int |
14599 | main () | |
14600 | { | |
14601 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14602 | bogus endian macros | |
14603 | #endif | |
14604 | ||
14605 | ; | |
14606 | return 0; | |
14607 | } | |
212380e3 | 14608 | _ACEOF |
7083c021 AC |
14609 | if ac_fn_c_try_compile "$LINENO"; then : |
14610 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14612 | /* end confdefs.h. */ |
7083c021 AC |
14613 | #include <limits.h> |
14614 | ||
212380e3 AC |
14615 | int |
14616 | main () | |
14617 | { | |
7083c021 AC |
14618 | #ifndef _BIG_ENDIAN |
14619 | not big endian | |
14620 | #endif | |
14621 | ||
212380e3 AC |
14622 | ; |
14623 | return 0; | |
14624 | } | |
14625 | _ACEOF | |
7083c021 | 14626 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14627 | ac_cv_c_bigendian=yes |
7083c021 AC |
14628 | else |
14629 | ac_cv_c_bigendian=no | |
212380e3 | 14630 | fi |
7083c021 | 14631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14632 | fi |
7083c021 AC |
14633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14634 | fi | |
14635 | if test $ac_cv_c_bigendian = unknown; then | |
14636 | # Compile a test program. | |
14637 | if test "$cross_compiling" = yes; then : | |
14638 | # Try to guess by grepping values from an object file. | |
14639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14640 | /* end confdefs.h. */ | |
14641 | short int ascii_mm[] = | |
14642 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14643 | short int ascii_ii[] = | |
14644 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14645 | int use_ascii (int i) { | |
14646 | return ascii_mm[i] + ascii_ii[i]; | |
14647 | } | |
14648 | short int ebcdic_ii[] = | |
14649 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14650 | short int ebcdic_mm[] = | |
14651 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14652 | int use_ebcdic (int i) { | |
14653 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14654 | } | |
14655 | extern int foo; | |
631ef239 | 14656 | |
7083c021 AC |
14657 | int |
14658 | main () | |
14659 | { | |
14660 | return use_ascii (foo) == use_ebcdic (foo); | |
14661 | ; | |
14662 | return 0; | |
14663 | } | |
14664 | _ACEOF | |
14665 | if ac_fn_c_try_compile "$LINENO"; then : | |
14666 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14667 | ac_cv_c_bigendian=yes | |
14668 | fi | |
14669 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14670 | if test "$ac_cv_c_bigendian" = unknown; then | |
14671 | ac_cv_c_bigendian=no | |
14672 | else | |
14673 | # finding both strings is unlikely to happen, but who knows? | |
14674 | ac_cv_c_bigendian=unknown | |
14675 | fi | |
14676 | fi | |
212380e3 | 14677 | fi |
631ef239 | 14678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14679 | else |
7083c021 | 14680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14681 | /* end confdefs.h. */ |
631ef239 | 14682 | $ac_includes_default |
212380e3 AC |
14683 | int |
14684 | main () | |
14685 | { | |
631ef239 | 14686 | |
7083c021 AC |
14687 | /* Are we little or big endian? From Harbison&Steele. */ |
14688 | union | |
14689 | { | |
14690 | long int l; | |
14691 | char c[sizeof (long int)]; | |
14692 | } u; | |
14693 | u.l = 1; | |
14694 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
14695 | |
14696 | ; | |
14697 | return 0; | |
212380e3 AC |
14698 | } |
14699 | _ACEOF | |
7083c021 | 14700 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
14701 | ac_cv_c_bigendian=no |
14702 | else | |
7083c021 | 14703 | ac_cv_c_bigendian=yes |
212380e3 | 14704 | fi |
7083c021 AC |
14705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14706 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14707 | fi |
631ef239 | 14708 | |
7083c021 | 14709 | fi |
212380e3 | 14710 | fi |
7083c021 AC |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
14712 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14713 | case $ac_cv_c_bigendian in #( | |
14714 | yes) | |
14715 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14716 | ;; #( | |
14717 | no) | |
14718 | ;; #( | |
14719 | universal) | |
14720 | ||
14721 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14722 | ||
14723 | ;; #( | |
14724 | *) | |
b6d0720c | 14725 | as_fn_error $? "unknown endianness |
7083c021 AC |
14726 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
14727 | esac | |
631ef239 | 14728 | |
212380e3 | 14729 | fi |
7083c021 | 14730 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 14731 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 14732 | |
7083c021 | 14733 | else |
212380e3 | 14734 | |
7083c021 AC |
14735 | cat >>confdefs.h <<_ACEOF |
14736 | #define pid_t int | |
14737 | _ACEOF | |
212380e3 | 14738 | |
212380e3 | 14739 | fi |
7083c021 AC |
14740 | |
14741 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 14742 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 14743 | |
212380e3 | 14744 | else |
7083c021 AC |
14745 | |
14746 | cat >>confdefs.h <<_ACEOF | |
14747 | #define size_t unsigned int | |
212380e3 | 14748 | _ACEOF |
7083c021 AC |
14749 | |
14750 | fi | |
14751 | ||
14752 | # The cast to long int works around a bug in the HP C Compiler | |
14753 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14754 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14755 | # This bug is HP SR number 8606223364. | |
14756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14757 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 14758 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 14759 | $as_echo_n "(cached) " >&6 |
212380e3 | 14760 | else |
7083c021 AC |
14761 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
14762 | ||
14763 | else | |
14764 | if test "$ac_cv_type_short" = yes; then | |
14765 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14767 | as_fn_error 77 "cannot compute sizeof (short) |
14768 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14769 | else |
14770 | ac_cv_sizeof_short=0 | |
14771 | fi | |
14772 | fi | |
212380e3 | 14773 | |
212380e3 | 14774 | fi |
7083c021 AC |
14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
14776 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 14777 | |
212380e3 | 14778 | |
7083c021 AC |
14779 | |
14780 | cat >>confdefs.h <<_ACEOF | |
14781 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 14782 | _ACEOF |
7083c021 AC |
14783 | |
14784 | ||
14785 | # The cast to long int works around a bug in the HP C Compiler | |
14786 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14787 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14788 | # This bug is HP SR number 8606223364. | |
14789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14790 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 14791 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
14792 | $as_echo_n "(cached) " >&6 |
14793 | else | |
14794 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14795 | ||
14796 | else | |
14797 | if test "$ac_cv_type_int" = yes; then | |
14798 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14800 | as_fn_error 77 "cannot compute sizeof (int) |
14801 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14802 | else |
14803 | ac_cv_sizeof_int=0 | |
14804 | fi | |
14805 | fi | |
14806 | ||
14807 | fi | |
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14809 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14810 | ||
14811 | ||
14812 | ||
14813 | cat >>confdefs.h <<_ACEOF | |
14814 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 14815 | _ACEOF |
7083c021 AC |
14816 | |
14817 | ||
14818 | # The cast to long int works around a bug in the HP C Compiler | |
14819 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14820 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14821 | # This bug is HP SR number 8606223364. | |
14822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14823 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 14824 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 14825 | $as_echo_n "(cached) " >&6 |
212380e3 | 14826 | else |
7083c021 | 14827 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 14828 | |
7083c021 AC |
14829 | else |
14830 | if test "$ac_cv_type_long" = yes; then | |
14831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14832 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14833 | as_fn_error 77 "cannot compute sizeof (long) |
14834 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14835 | else |
14836 | ac_cv_sizeof_long=0 | |
14837 | fi | |
212380e3 | 14838 | fi |
631ef239 | 14839 | |
7083c021 AC |
14840 | fi |
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14842 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 14843 | |
631ef239 | 14844 | |
7083c021 AC |
14845 | |
14846 | cat >>confdefs.h <<_ACEOF | |
14847 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14848 | _ACEOF | |
14849 | ||
14850 | ||
14851 | # The cast to long int works around a bug in the HP C Compiler | |
14852 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14853 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14854 | # This bug is HP SR number 8606223364. | |
14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14856 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 14857 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
14858 | $as_echo_n "(cached) " >&6 |
14859 | else | |
14860 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14861 | ||
212380e3 | 14862 | else |
7083c021 AC |
14863 | if test "$ac_cv_type_long_long" = yes; then |
14864 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14866 | as_fn_error 77 "cannot compute sizeof (long long) |
14867 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14868 | else |
14869 | ac_cv_sizeof_long_long=0 | |
14870 | fi | |
212380e3 | 14871 | fi |
212380e3 AC |
14872 | |
14873 | fi | |
7083c021 AC |
14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
14875 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
14876 | |
14877 | ||
14878 | ||
7083c021 AC |
14879 | cat >>confdefs.h <<_ACEOF |
14880 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14881 | _ACEOF | |
212380e3 | 14882 | |
212380e3 | 14883 | |
212380e3 | 14884 | |
7083c021 AC |
14885 | |
14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
14887 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 14888 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14889 | $as_echo_n "(cached) " >&6 |
14890 | else | |
14891 | ac_func_search_save_LIBS=$LIBS | |
14892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14893 | /* end confdefs.h. */ |
7083c021 AC |
14894 | |
14895 | /* Override any GCC internal prototype to avoid an error. | |
14896 | Use char because int might match the return type of a GCC | |
14897 | builtin and then its argument prototype would still apply. */ | |
14898 | #ifdef __cplusplus | |
14899 | extern "C" | |
14900 | #endif | |
14901 | char socket (); | |
212380e3 AC |
14902 | int |
14903 | main () | |
14904 | { | |
7083c021 | 14905 | return socket (); |
212380e3 AC |
14906 | ; |
14907 | return 0; | |
14908 | } | |
14909 | _ACEOF | |
7083c021 AC |
14910 | for ac_lib in '' socket; do |
14911 | if test -z "$ac_lib"; then | |
14912 | ac_res="none required" | |
14913 | else | |
14914 | ac_res=-l$ac_lib | |
14915 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14916 | fi | |
14917 | if ac_fn_c_try_link "$LINENO"; then : | |
14918 | ac_cv_search_socket=$ac_res | |
14919 | fi | |
14920 | rm -f core conftest.err conftest.$ac_objext \ | |
14921 | conftest$ac_exeext | |
b6d0720c | 14922 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14923 | break |
14924 | fi | |
14925 | done | |
b6d0720c | 14926 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
14927 | |
14928 | else | |
7083c021 AC |
14929 | ac_cv_search_socket=no |
14930 | fi | |
14931 | rm conftest.$ac_ext | |
14932 | LIBS=$ac_func_search_save_LIBS | |
14933 | fi | |
14934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
14935 | $as_echo "$ac_cv_search_socket" >&6; } | |
14936 | ac_res=$ac_cv_search_socket | |
14937 | if test "$ac_res" != no; then : | |
14938 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14939 | |
7083c021 | 14940 | else |
b6d0720c | 14941 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 14942 | fi |
631ef239 | 14943 | |
212380e3 | 14944 | |
7083c021 AC |
14945 | if test x"$SUN" = xyes; then |
14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
14947 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 14948 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14949 | $as_echo_n "(cached) " >&6 |
14950 | else | |
14951 | ac_func_search_save_LIBS=$LIBS | |
14952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14953 | /* end confdefs.h. */ |
7083c021 AC |
14954 | |
14955 | /* Override any GCC internal prototype to avoid an error. | |
14956 | Use char because int might match the return type of a GCC | |
14957 | builtin and then its argument prototype would still apply. */ | |
14958 | #ifdef __cplusplus | |
14959 | extern "C" | |
14960 | #endif | |
14961 | char inet_ntoa (); | |
212380e3 AC |
14962 | int |
14963 | main () | |
14964 | { | |
7083c021 | 14965 | return inet_ntoa (); |
212380e3 AC |
14966 | ; |
14967 | return 0; | |
14968 | } | |
14969 | _ACEOF | |
7083c021 AC |
14970 | for ac_lib in '' nsl; do |
14971 | if test -z "$ac_lib"; then | |
14972 | ac_res="none required" | |
14973 | else | |
14974 | ac_res=-l$ac_lib | |
14975 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14976 | fi | |
14977 | if ac_fn_c_try_link "$LINENO"; then : | |
14978 | ac_cv_search_inet_ntoa=$ac_res | |
14979 | fi | |
14980 | rm -f core conftest.err conftest.$ac_objext \ | |
14981 | conftest$ac_exeext | |
b6d0720c | 14982 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14983 | break |
14984 | fi | |
14985 | done | |
b6d0720c | 14986 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
14987 | |
14988 | else | |
7083c021 AC |
14989 | ac_cv_search_inet_ntoa=no |
14990 | fi | |
14991 | rm conftest.$ac_ext | |
14992 | LIBS=$ac_func_search_save_LIBS | |
14993 | fi | |
14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
14995 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
14996 | ac_res=$ac_cv_search_inet_ntoa | |
14997 | if test "$ac_res" != no; then : | |
14998 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14999 | |
7083c021 | 15000 | else |
b6d0720c | 15001 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 15002 | fi |
631ef239 | 15003 | |
7083c021 | 15004 | fi |
212380e3 | 15005 | |
7083c021 AC |
15006 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
15007 | #include <sys/socket.h> | |
15008 | " | |
b6d0720c | 15009 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
15010 | |
15011 | else | |
15012 | ||
7083c021 | 15013 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 15014 | |
7083c021 | 15015 | fi |
212380e3 AC |
15016 | |
15017 | ||
7083c021 AC |
15018 | # Check whether --enable-ipv6 was given. |
15019 | if test "${enable_ipv6+set}" = set; then : | |
15020 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 15021 | else |
7083c021 AC |
15022 | ipv6=no |
15023 | fi | |
212380e3 | 15024 | |
212380e3 | 15025 | |
7083c021 AC |
15026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
15027 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 15028 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15029 | $as_echo_n "(cached) " >&6 |
15030 | else | |
15031 | ac_func_search_save_LIBS=$LIBS | |
15032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15033 | /* end confdefs.h. */ | |
212380e3 | 15034 | |
631ef239 AC |
15035 | /* Override any GCC internal prototype to avoid an error. |
15036 | Use char because int might match the return type of a GCC | |
15037 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15038 | #ifdef __cplusplus |
15039 | extern "C" | |
212380e3 | 15040 | #endif |
7083c021 | 15041 | char crypt (); |
212380e3 AC |
15042 | int |
15043 | main () | |
15044 | { | |
7083c021 | 15045 | return crypt (); |
212380e3 AC |
15046 | ; |
15047 | return 0; | |
15048 | } | |
15049 | _ACEOF | |
7083c021 AC |
15050 | for ac_lib in '' crypt descrypt; do |
15051 | if test -z "$ac_lib"; then | |
15052 | ac_res="none required" | |
15053 | else | |
15054 | ac_res=-l$ac_lib | |
15055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15056 | fi | |
15057 | if ac_fn_c_try_link "$LINENO"; then : | |
15058 | ac_cv_search_crypt=$ac_res | |
15059 | fi | |
15060 | rm -f core conftest.err conftest.$ac_objext \ | |
15061 | conftest$ac_exeext | |
b6d0720c | 15062 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15063 | break |
15064 | fi | |
15065 | done | |
b6d0720c | 15066 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 15067 | |
212380e3 | 15068 | else |
7083c021 AC |
15069 | ac_cv_search_crypt=no |
15070 | fi | |
15071 | rm conftest.$ac_ext | |
15072 | LIBS=$ac_func_search_save_LIBS | |
15073 | fi | |
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15075 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15076 | ac_res=$ac_cv_search_crypt | |
15077 | if test "$ac_res" != no; then : | |
15078 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15079 | |
212380e3 | 15080 | fi |
631ef239 | 15081 | |
7083c021 AC |
15082 | |
15083 | CRYPT_LIB=$ac_cv_search_crypt | |
15084 | ||
15085 | if test "$CRYPT_LIB" = "none required"; then | |
15086 | unset CRYPT_LIB | |
15087 | elif test "$CRYPT_LIB" = no; then | |
15088 | unset CRYPT_LIB | |
212380e3 | 15089 | fi |
7083c021 AC |
15090 | |
15091 | ||
15092 | ||
15093 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
15094 | VICONF=viconf | |
15095 | else | |
15096 | VICONF="" | |
15097 | fi | |
15098 | ||
15099 | ||
15100 | ||
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
15102 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b6d0720c | 15103 | if ${gcc_cv_header_string+:} false; then : |
7083c021 AC |
15104 | $as_echo_n "(cached) " >&6 |
15105 | else | |
15106 | ||
15107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15108 | /* end confdefs.h. */ | |
15109 | #include <string.h> | |
15110 | #include <strings.h> | |
212380e3 | 15111 | _ACEOF |
7083c021 AC |
15112 | if ac_fn_c_try_compile "$LINENO"; then : |
15113 | gcc_cv_header_string=yes | |
15114 | else | |
15115 | gcc_cv_header_string=no | |
15116 | fi | |
15117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
15118 | |
15119 | fi | |
7083c021 AC |
15120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
15121 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 15122 | |
7083c021 AC |
15123 | if test "$gcc_cv_header_string" = "yes"; then |
15124 | ||
15125 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
15126 | ||
15127 | fi | |
212380e3 | 15128 | |
7083c021 AC |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15130 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 15131 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
15132 | $as_echo_n "(cached) " >&6 |
15133 | else | |
15134 | ac_cv_c_bigendian=unknown | |
15135 | # See if we're dealing with a universal compiler. | |
15136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15137 | /* end confdefs.h. */ | |
15138 | #ifndef __APPLE_CC__ | |
15139 | not a universal capable compiler | |
15140 | #endif | |
15141 | typedef int dummy; | |
15142 | ||
15143 | _ACEOF | |
15144 | if ac_fn_c_try_compile "$LINENO"; then : | |
15145 | ||
15146 | # Check for potential -arch flags. It is not universal unless | |
15147 | # there are at least two -arch flags with different values. | |
15148 | ac_arch= | |
15149 | ac_prev= | |
15150 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15151 | if test -n "$ac_prev"; then | |
15152 | case $ac_word in | |
15153 | i?86 | x86_64 | ppc | ppc64) | |
15154 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15155 | ac_arch=$ac_word | |
15156 | else | |
15157 | ac_cv_c_bigendian=universal | |
15158 | break | |
15159 | fi | |
15160 | ;; | |
15161 | esac | |
15162 | ac_prev= | |
15163 | elif test "x$ac_word" = "x-arch"; then | |
15164 | ac_prev=arch | |
15165 | fi | |
15166 | done | |
212380e3 | 15167 | fi |
7083c021 AC |
15168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15169 | if test $ac_cv_c_bigendian = unknown; then | |
15170 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15172 | /* end confdefs.h. */ | |
15173 | #include <sys/types.h> | |
15174 | #include <sys/param.h> | |
15175 | ||
15176 | int | |
15177 | main () | |
15178 | { | |
15179 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15180 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15181 | && LITTLE_ENDIAN) | |
15182 | bogus endian macros | |
15183 | #endif | |
15184 | ||
15185 | ; | |
15186 | return 0; | |
15187 | } | |
15188 | _ACEOF | |
15189 | if ac_fn_c_try_compile "$LINENO"; then : | |
15190 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15192 | /* end confdefs.h. */ | |
15193 | #include <sys/types.h> | |
15194 | #include <sys/param.h> | |
15195 | ||
15196 | int | |
15197 | main () | |
15198 | { | |
15199 | #if BYTE_ORDER != BIG_ENDIAN | |
15200 | not big endian | |
15201 | #endif | |
212380e3 | 15202 | |
7083c021 AC |
15203 | ; |
15204 | return 0; | |
15205 | } | |
15206 | _ACEOF | |
15207 | if ac_fn_c_try_compile "$LINENO"; then : | |
15208 | ac_cv_c_bigendian=yes | |
212380e3 | 15209 | else |
7083c021 AC |
15210 | ac_cv_c_bigendian=no |
15211 | fi | |
15212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15213 | fi | |
15214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15215 | fi | |
15216 | if test $ac_cv_c_bigendian = unknown; then | |
15217 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15219 | /* end confdefs.h. */ | |
15220 | #include <limits.h> | |
15221 | ||
15222 | int | |
15223 | main () | |
15224 | { | |
15225 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15226 | bogus endian macros | |
15227 | #endif | |
15228 | ||
15229 | ; | |
15230 | return 0; | |
15231 | } | |
212380e3 | 15232 | _ACEOF |
7083c021 AC |
15233 | if ac_fn_c_try_compile "$LINENO"; then : |
15234 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15236 | /* end confdefs.h. */ |
7083c021 AC |
15237 | #include <limits.h> |
15238 | ||
212380e3 AC |
15239 | int |
15240 | main () | |
15241 | { | |
7083c021 AC |
15242 | #ifndef _BIG_ENDIAN |
15243 | not big endian | |
15244 | #endif | |
15245 | ||
212380e3 AC |
15246 | ; |
15247 | return 0; | |
15248 | } | |
15249 | _ACEOF | |
7083c021 AC |
15250 | if ac_fn_c_try_compile "$LINENO"; then : |
15251 | ac_cv_c_bigendian=yes | |
212380e3 | 15252 | else |
7083c021 | 15253 | ac_cv_c_bigendian=no |
212380e3 | 15254 | fi |
631ef239 | 15255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15256 | fi |
7083c021 AC |
15257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15258 | fi | |
15259 | if test $ac_cv_c_bigendian = unknown; then | |
15260 | # Compile a test program. | |
15261 | if test "$cross_compiling" = yes; then : | |
15262 | # Try to guess by grepping values from an object file. | |
15263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15264 | /* end confdefs.h. */ | |
15265 | short int ascii_mm[] = | |
15266 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15267 | short int ascii_ii[] = | |
15268 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15269 | int use_ascii (int i) { | |
15270 | return ascii_mm[i] + ascii_ii[i]; | |
15271 | } | |
15272 | short int ebcdic_ii[] = | |
15273 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15274 | short int ebcdic_mm[] = | |
15275 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15276 | int use_ebcdic (int i) { | |
15277 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15278 | } | |
15279 | extern int foo; | |
212380e3 | 15280 | |
7083c021 AC |
15281 | int |
15282 | main () | |
15283 | { | |
15284 | return use_ascii (foo) == use_ebcdic (foo); | |
15285 | ; | |
15286 | return 0; | |
15287 | } | |
212380e3 | 15288 | _ACEOF |
7083c021 AC |
15289 | if ac_fn_c_try_compile "$LINENO"; then : |
15290 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15291 | ac_cv_c_bigendian=yes | |
15292 | fi | |
15293 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15294 | if test "$ac_cv_c_bigendian" = unknown; then | |
15295 | ac_cv_c_bigendian=no | |
15296 | else | |
15297 | # finding both strings is unlikely to happen, but who knows? | |
15298 | ac_cv_c_bigendian=unknown | |
15299 | fi | |
15300 | fi | |
15301 | fi | |
15302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15303 | else | |
15304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
15305 | /* end confdefs.h. */ |
15306 | $ac_includes_default | |
15307 | int | |
15308 | main () | |
15309 | { | |
7083c021 AC |
15310 | |
15311 | /* Are we little or big endian? From Harbison&Steele. */ | |
15312 | union | |
15313 | { | |
15314 | long int l; | |
15315 | char c[sizeof (long int)]; | |
15316 | } u; | |
15317 | u.l = 1; | |
15318 | return u.c[sizeof (long int) - 1] == 1; | |
15319 | ||
212380e3 AC |
15320 | ; |
15321 | return 0; | |
15322 | } | |
15323 | _ACEOF | |
7083c021 AC |
15324 | if ac_fn_c_try_run "$LINENO"; then : |
15325 | ac_cv_c_bigendian=no | |
212380e3 | 15326 | else |
7083c021 | 15327 | ac_cv_c_bigendian=yes |
212380e3 | 15328 | fi |
7083c021 AC |
15329 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15330 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15331 | fi |
212380e3 | 15332 | |
7083c021 AC |
15333 | fi |
15334 | fi | |
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15336 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15337 | case $ac_cv_c_bigendian in #( | |
15338 | yes) | |
15339 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15340 | ;; #( | |
15341 | no) | |
15342 | ;; #( | |
15343 | universal) | |
212380e3 | 15344 | |
7083c021 | 15345 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 15346 | |
7083c021 AC |
15347 | ;; #( |
15348 | *) | |
b6d0720c | 15349 | as_fn_error $? "unknown endianness |
7083c021 AC |
15350 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
15351 | esac | |
212380e3 | 15352 | |
212380e3 | 15353 | |
7083c021 | 15354 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 15355 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 15356 | |
7083c021 | 15357 | else |
b6d0720c | 15358 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 15359 | fi |
212380e3 AC |
15360 | |
15361 | ||
212380e3 AC |
15362 | |
15363 | ||
7083c021 | 15364 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 15365 | |
7083c021 AC |
15366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
15367 | $as_echo_n "checking for strlcpy... " >&6; } | |
15368 | save_CFLAGS=$CFLAGS | |
15369 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 15370 | |
7083c021 | 15371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15372 | /* end confdefs.h. */ |
7083c021 AC |
15373 | #include <string.h> |
15374 | #include <stdlib.h> | |
212380e3 AC |
15375 | int |
15376 | main () | |
15377 | { | |
7083c021 AC |
15378 | char *a = malloc(6); |
15379 | strlcpy(a, "hello", 6); | |
15380 | ||
212380e3 AC |
15381 | ; |
15382 | return 0; | |
15383 | } | |
15384 | _ACEOF | |
7083c021 AC |
15385 | if ac_fn_c_try_link "$LINENO"; then : |
15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15387 | $as_echo "yes" >&6; } | |
212380e3 | 15388 | |
7083c021 | 15389 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 15390 | |
212380e3 | 15391 | else |
7083c021 AC |
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15393 | $as_echo "no" >&6; } | |
212380e3 | 15394 | |
7083c021 AC |
15395 | fi |
15396 | rm -f core conftest.err conftest.$ac_objext \ | |
15397 | conftest$ac_exeext conftest.$ac_ext | |
15398 | ||
15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
15400 | $as_echo_n "checking for strlcat... " >&6; } | |
15401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15402 | /* end confdefs.h. */ |
7083c021 AC |
15403 | #include <string.h> |
15404 | #include <stdlib.h> | |
212380e3 AC |
15405 | int |
15406 | main () | |
15407 | { | |
7083c021 AC |
15408 | char *a = malloc(6); |
15409 | a[0] = '\0'; | |
15410 | strlcat(a, "hello", 6); | |
15411 | ||
212380e3 AC |
15412 | ; |
15413 | return 0; | |
15414 | } | |
15415 | _ACEOF | |
7083c021 AC |
15416 | if ac_fn_c_try_link "$LINENO"; then : |
15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15418 | $as_echo "yes" >&6; } | |
631ef239 | 15419 | |
7083c021 | 15420 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 15421 | |
7083c021 AC |
15422 | else |
15423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15424 | $as_echo "no" >&6; } | |
212380e3 | 15425 | |
7083c021 AC |
15426 | fi |
15427 | rm -f core conftest.err conftest.$ac_objext \ | |
15428 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15429 | |
7083c021 | 15430 | CFLAGS=$save_CFLAGS |
212380e3 AC |
15431 | |
15432 | else | |
15433 | ||
212380e3 | 15434 | |
7083c021 AC |
15435 | for ac_func in strlcat strlcpy |
15436 | do : | |
15437 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15438 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15439 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
15440 | cat >>confdefs.h <<_ACEOF |
15441 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
15442 | _ACEOF |
15443 | ||
212380e3 | 15444 | fi |
7083c021 | 15445 | done |
212380e3 AC |
15446 | |
15447 | ||
15448 | fi | |
15449 | ||
7083c021 | 15450 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 15451 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 15452 | |
212380e3 | 15453 | else |
212380e3 | 15454 | |
7083c021 | 15455 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 15456 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 15457 | |
631ef239 | 15458 | |
7083c021 | 15459 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 15460 | |
212380e3 | 15461 | |
7083c021 | 15462 | else |
212380e3 | 15463 | |
7083c021 AC |
15464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
15465 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 15466 | |
7083c021 | 15467 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 15468 | |
212380e3 | 15469 | |
212380e3 | 15470 | fi |
631ef239 | 15471 | |
7083c021 | 15472 | |
212380e3 | 15473 | fi |
7083c021 AC |
15474 | |
15475 | ||
15476 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 15477 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 15478 | |
212380e3 AC |
15479 | else |
15480 | ||
7083c021 | 15481 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 15482 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 15483 | |
7083c021 AC |
15484 | |
15485 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
15486 | |
15487 | ||
212380e3 | 15488 | else |
212380e3 | 15489 | |
7083c021 AC |
15490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
15491 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 15492 | |
7083c021 | 15493 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 15494 | |
7083c021 AC |
15495 | |
15496 | fi | |
212380e3 AC |
15497 | |
15498 | ||
15499 | fi | |
15500 | ||
15501 | ||
7083c021 AC |
15502 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
15503 | #include <netinet/in.h> | |
15504 | " | |
b6d0720c | 15505 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 15506 | |
7083c021 | 15507 | else |
212380e3 | 15508 | |
7083c021 | 15509 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 15510 | |
7083c021 | 15511 | fi |
212380e3 AC |
15512 | |
15513 | ||
7083c021 AC |
15514 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
15515 | #include <sys/socket.h> | |
15516 | " | |
b6d0720c | 15517 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 15518 | |
212380e3 | 15519 | else |
212380e3 | 15520 | |
7083c021 | 15521 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 15522 | |
7083c021 | 15523 | fi |
212380e3 | 15524 | |
212380e3 | 15525 | |
7083c021 | 15526 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 15527 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 15528 | |
7083c021 AC |
15529 | cat >>confdefs.h <<_ACEOF |
15530 | #define HAVE_UINTPTR_T 1 | |
15531 | _ACEOF | |
212380e3 | 15532 | |
631ef239 | 15533 | |
212380e3 | 15534 | fi |
7083c021 AC |
15535 | |
15536 | ||
15537 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
15538 | do : | |
15539 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15540 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15541 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 15542 | cat >>confdefs.h <<_ACEOF |
7083c021 | 15543 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
15544 | _ACEOF |
15545 | ||
15546 | fi | |
15547 | done | |
15548 | ||
15549 | ||
15550 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15551 | # for constant arguments. Useless! | |
7083c021 AC |
15552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
15553 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 15554 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 15555 | $as_echo_n "(cached) " >&6 |
212380e3 | 15556 | else |
7083c021 | 15557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15558 | /* end confdefs.h. */ |
15559 | #include <alloca.h> | |
15560 | int | |
15561 | main () | |
15562 | { | |
15563 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 15564 | if (p) return 0; |
212380e3 AC |
15565 | ; |
15566 | return 0; | |
15567 | } | |
15568 | _ACEOF | |
7083c021 | 15569 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15570 | ac_cv_working_alloca_h=yes |
15571 | else | |
7083c021 | 15572 | ac_cv_working_alloca_h=no |
212380e3 | 15573 | fi |
7083c021 AC |
15574 | rm -f core conftest.err conftest.$ac_objext \ |
15575 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15576 | fi |
7083c021 AC |
15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
15578 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
15579 | if test $ac_cv_working_alloca_h = yes; then |
15580 | ||
7083c021 | 15581 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
15582 | |
15583 | fi | |
15584 | ||
7083c021 AC |
15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
15586 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 15587 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 15588 | $as_echo_n "(cached) " >&6 |
212380e3 | 15589 | else |
7083c021 | 15590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15591 | /* end confdefs.h. */ |
15592 | #ifdef __GNUC__ | |
15593 | # define alloca __builtin_alloca | |
15594 | #else | |
15595 | # ifdef _MSC_VER | |
15596 | # include <malloc.h> | |
15597 | # define alloca _alloca | |
15598 | # else | |
631ef239 | 15599 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
15600 | # include <alloca.h> |
15601 | # else | |
15602 | # ifdef _AIX | |
15603 | #pragma alloca | |
15604 | # else | |
15605 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 15606 | void *alloca (size_t); |
212380e3 AC |
15607 | # endif |
15608 | # endif | |
15609 | # endif | |
15610 | # endif | |
15611 | #endif | |
15612 | ||
15613 | int | |
15614 | main () | |
15615 | { | |
15616 | char *p = (char *) alloca (1); | |
631ef239 | 15617 | if (p) return 0; |
212380e3 AC |
15618 | ; |
15619 | return 0; | |
15620 | } | |
15621 | _ACEOF | |
7083c021 | 15622 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15623 | ac_cv_func_alloca_works=yes |
15624 | else | |
7083c021 | 15625 | ac_cv_func_alloca_works=no |
212380e3 | 15626 | fi |
7083c021 AC |
15627 | rm -f core conftest.err conftest.$ac_objext \ |
15628 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15629 | fi |
7083c021 AC |
15630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
15631 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
15632 | |
15633 | if test $ac_cv_func_alloca_works = yes; then | |
15634 | ||
7083c021 | 15635 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15636 | |
15637 | else | |
15638 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15639 | # that cause trouble. Some versions do not even contain alloca or | |
15640 | # contain a buggy version. If you still want to use their alloca, | |
15641 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15642 | ||
631ef239 | 15643 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 15644 | |
7083c021 | 15645 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15646 | |
15647 | ||
7083c021 AC |
15648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
15649 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 15650 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 15651 | $as_echo_n "(cached) " >&6 |
212380e3 | 15652 | else |
7083c021 | 15653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15654 | /* end confdefs.h. */ |
631ef239 | 15655 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
15656 | webecray |
15657 | #else | |
15658 | wenotbecray | |
15659 | #endif | |
15660 | ||
15661 | _ACEOF | |
15662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 15663 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
15664 | ac_cv_os_cray=yes |
15665 | else | |
15666 | ac_cv_os_cray=no | |
15667 | fi | |
15668 | rm -f conftest* | |
15669 | ||
15670 | fi | |
7083c021 AC |
15671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
15672 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
15673 | if test $ac_cv_os_cray = yes; then |
15674 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
15675 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15676 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15677 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
15678 | |
15679 | cat >>confdefs.h <<_ACEOF | |
15680 | #define CRAY_STACKSEG_END $ac_func | |
15681 | _ACEOF | |
15682 | ||
15683 | break | |
15684 | fi | |
15685 | ||
15686 | done | |
15687 | fi | |
15688 | ||
7083c021 AC |
15689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
15690 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 15691 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 15692 | $as_echo_n "(cached) " >&6 |
212380e3 | 15693 | else |
7083c021 | 15694 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
15695 | ac_cv_c_stack_direction=0 |
15696 | else | |
7083c021 | 15697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15698 | /* end confdefs.h. */ |
631ef239 | 15699 | $ac_includes_default |
212380e3 | 15700 | int |
2eff3833 | 15701 | find_stack_direction (int *addr, int depth) |
212380e3 | 15702 | { |
2eff3833 JT |
15703 | int dir, dummy = 0; |
15704 | if (! addr) | |
15705 | addr = &dummy; | |
15706 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15707 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15708 | return dir + dummy; | |
212380e3 AC |
15709 | } |
15710 | ||
15711 | int | |
2eff3833 | 15712 | main (int argc, char **argv) |
212380e3 | 15713 | { |
2eff3833 | 15714 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
15715 | } |
15716 | _ACEOF | |
7083c021 | 15717 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15718 | ac_cv_c_stack_direction=1 |
15719 | else | |
7083c021 | 15720 | ac_cv_c_stack_direction=-1 |
212380e3 | 15721 | fi |
7083c021 AC |
15722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15723 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15724 | fi |
631ef239 | 15725 | |
212380e3 | 15726 | fi |
7083c021 AC |
15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
15728 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
15729 | cat >>confdefs.h <<_ACEOF |
15730 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15731 | _ACEOF | |
15732 | ||
15733 | ||
15734 | fi | |
15735 | ||
15736 | ||
15737 | ||
7083c021 | 15738 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 15739 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 15740 | |
212380e3 | 15741 | else |
7083c021 AC |
15742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
15743 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 15744 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 15745 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15746 | else |
15747 | ac_check_lib_save_LIBS=$LIBS | |
15748 | LIBS="-lrt $LIBS" | |
7083c021 | 15749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15750 | /* end confdefs.h. */ |
15751 | ||
631ef239 AC |
15752 | /* Override any GCC internal prototype to avoid an error. |
15753 | Use char because int might match the return type of a GCC | |
15754 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15755 | #ifdef __cplusplus |
15756 | extern "C" | |
15757 | #endif | |
212380e3 AC |
15758 | char nanosleep (); |
15759 | int | |
15760 | main () | |
15761 | { | |
631ef239 | 15762 | return nanosleep (); |
212380e3 AC |
15763 | ; |
15764 | return 0; | |
15765 | } | |
15766 | _ACEOF | |
7083c021 | 15767 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15768 | ac_cv_lib_rt_nanosleep=yes |
15769 | else | |
7083c021 | 15770 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 15771 | fi |
7083c021 AC |
15772 | rm -f core conftest.err conftest.$ac_objext \ |
15773 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15774 | LIBS=$ac_check_lib_save_LIBS |
15775 | fi | |
7083c021 AC |
15776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
15777 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 15778 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
15779 | LIBS="${LIBS} -lrt" |
15780 | else | |
7083c021 AC |
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
15782 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 15783 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 15784 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15785 | else |
15786 | ac_check_lib_save_LIBS=$LIBS | |
15787 | LIBS="-lposix4 $LIBS" | |
7083c021 | 15788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15789 | /* end confdefs.h. */ |
15790 | ||
631ef239 AC |
15791 | /* Override any GCC internal prototype to avoid an error. |
15792 | Use char because int might match the return type of a GCC | |
15793 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15794 | #ifdef __cplusplus |
15795 | extern "C" | |
15796 | #endif | |
212380e3 AC |
15797 | char nanosleep (); |
15798 | int | |
15799 | main () | |
15800 | { | |
631ef239 | 15801 | return nanosleep (); |
212380e3 AC |
15802 | ; |
15803 | return 0; | |
15804 | } | |
15805 | _ACEOF | |
7083c021 | 15806 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15807 | ac_cv_lib_posix4_nanosleep=yes |
15808 | else | |
7083c021 | 15809 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 15810 | fi |
7083c021 AC |
15811 | rm -f core conftest.err conftest.$ac_objext \ |
15812 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15813 | LIBS=$ac_check_lib_save_LIBS |
15814 | fi | |
7083c021 AC |
15815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
15816 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 15817 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
15818 | LIBS="${LIBS} -lposix4" |
15819 | ||
15820 | fi | |
15821 | ||
15822 | fi | |
15823 | ||
15824 | fi | |
15825 | ||
15826 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
15827 | then | |
7083c021 AC |
15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
15829 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
15830 | else |
15831 | ||
7083c021 | 15832 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
15833 | |
15834 | fi | |
15835 | ||
7083c021 AC |
15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
15837 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 15838 | # Check whether --enable-openssl was given. |
7083c021 | 15839 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 15840 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
15841 | else |
15842 | cf_enable_openssl="auto" | |
631ef239 AC |
15843 | fi |
15844 | ||
212380e3 AC |
15845 | |
15846 | if test "$cf_enable_openssl" != "no" ; then | |
15847 | cf_openssl_basedir="" | |
15848 | if test "$cf_enable_openssl" != "auto" && | |
15849 | test "$cf_enable_openssl" != "yes" ; then | |
15850 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
15851 | else | |
15852 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
15853 | /usr/local/openssl ; do | |
15854 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
15855 | cf_openssl_basedir="${dirs}" | |
15856 | break | |
15857 | fi | |
15858 | done | |
15859 | unset dirs | |
15860 | fi | |
15861 | if test ! -z "$cf_openssl_basedir"; then | |
15862 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
15863 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
15864 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
15865 | else | |
15866 | cf_openssl_basedir="" | |
15867 | fi | |
15868 | else | |
15869 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
15870 | cf_openssl_basedir="/usr" | |
15871 | fi | |
15872 | fi | |
15873 | ||
15874 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
15876 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
15877 | cf_enable_openssl="yes" |
15878 | else | |
7083c021 AC |
15879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
15880 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
15881 | cf_enable_openssl="no" |
15882 | fi | |
15883 | unset cf_openssl_basedir | |
15884 | else | |
7083c021 AC |
15885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
15886 | $as_echo "disabled" >&6; } | |
212380e3 AC |
15887 | fi |
15888 | ||
15889 | save_CPPFLAGS="$CPPFLAGS" | |
15890 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
15891 | save_LIBS="$LIBS" | |
15892 | LIBS="$LIBS $SSL_LIBS" | |
15893 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
15895 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
15896 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
15897 | cf_openssl_version_ok=no |
15898 | else | |
7083c021 | 15899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15900 | /* end confdefs.h. */ |
15901 | #include <openssl/opensslv.h> | |
15902 | #include <stdlib.h> | |
15903 | int | |
15904 | main () | |
15905 | { | |
15906 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
15907 | exit(0); else exit(1); | |
15908 | ; | |
15909 | return 0; | |
15910 | } | |
15911 | _ACEOF | |
7083c021 | 15912 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15913 | cf_openssl_version_ok=yes |
15914 | else | |
7083c021 | 15915 | cf_openssl_version_ok=no |
212380e3 | 15916 | fi |
7083c021 AC |
15917 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15918 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
15919 | fi |
15920 | ||
631ef239 | 15921 | |
212380e3 | 15922 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
15923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
15924 | $as_echo "found" >&6; } | |
212380e3 AC |
15925 | |
15926 | ENCSPEED=encspeed | |
15927 | ||
15928 | ||
15929 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
15930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
15931 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 15932 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 15933 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15934 | else |
15935 | ac_check_lib_save_LIBS=$LIBS | |
15936 | LIBS="-lcrypto $LIBS" | |
7083c021 | 15937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15938 | /* end confdefs.h. */ |
15939 | ||
631ef239 AC |
15940 | /* Override any GCC internal prototype to avoid an error. |
15941 | Use char because int might match the return type of a GCC | |
15942 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15943 | #ifdef __cplusplus |
15944 | extern "C" | |
15945 | #endif | |
212380e3 AC |
15946 | char RSA_free (); |
15947 | int | |
15948 | main () | |
15949 | { | |
631ef239 | 15950 | return RSA_free (); |
212380e3 AC |
15951 | ; |
15952 | return 0; | |
15953 | } | |
15954 | _ACEOF | |
7083c021 | 15955 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15956 | ac_cv_lib_crypto_RSA_free=yes |
15957 | else | |
7083c021 | 15958 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 15959 | fi |
7083c021 AC |
15960 | rm -f core conftest.err conftest.$ac_objext \ |
15961 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15962 | LIBS=$ac_check_lib_save_LIBS |
15963 | fi | |
7083c021 AC |
15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
15965 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 15966 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
15967 | cat >>confdefs.h <<_ACEOF |
15968 | #define HAVE_LIBCRYPTO 1 | |
15969 | _ACEOF | |
15970 | ||
15971 | LIBS="-lcrypto $LIBS" | |
15972 | ||
15973 | fi | |
15974 | ||
15975 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
15976 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
15977 | else | |
7083c021 AC |
15978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
15979 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
15980 | fi |
15981 | fi | |
15982 | ||
15983 | CPPFLAGS="$save_CPPFLAGS" | |
15984 | LIBS="$save_LIBS" | |
15985 | ||
15986 | ||
15987 | ||
15988 | ||
15989 | ||
631ef239 | 15990 | # Check whether --with-zlib-path was given. |
7083c021 | 15991 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
15992 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
15993 | fi | |
212380e3 | 15994 | |
7083c021 AC |
15995 | |
15996 | # Check whether --enable-zlib was given. | |
15997 | if test "${enable_zlib+set}" = set; then : | |
15998 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 15999 | else |
7083c021 | 16000 | zlib=yes |
212380e3 | 16001 | fi |
212380e3 | 16002 | |
212380e3 | 16003 | |
7083c021 AC |
16004 | if test "$zlib" = yes; then |
16005 | ||
16006 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 16007 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
16008 | |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
16010 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 16011 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 16012 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16013 | else |
16014 | ac_check_lib_save_LIBS=$LIBS | |
16015 | LIBS="-lz $LIBS" | |
7083c021 | 16016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16017 | /* end confdefs.h. */ |
16018 | ||
631ef239 AC |
16019 | /* Override any GCC internal prototype to avoid an error. |
16020 | Use char because int might match the return type of a GCC | |
16021 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
16022 | #ifdef __cplusplus |
16023 | extern "C" | |
16024 | #endif | |
212380e3 AC |
16025 | char zlibVersion (); |
16026 | int | |
16027 | main () | |
16028 | { | |
631ef239 | 16029 | return zlibVersion (); |
212380e3 AC |
16030 | ; |
16031 | return 0; | |
16032 | } | |
16033 | _ACEOF | |
7083c021 | 16034 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
16035 | ac_cv_lib_z_zlibVersion=yes |
16036 | else | |
7083c021 | 16037 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 16038 | fi |
7083c021 AC |
16039 | rm -f core conftest.err conftest.$ac_objext \ |
16040 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
16041 | LIBS=$ac_check_lib_save_LIBS |
16042 | fi | |
7083c021 AC |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
16044 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 16045 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
16046 | |
16047 | ZLIB_LD=-lz | |
16048 | ||
16049 | ||
7083c021 | 16050 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
16051 | |
16052 | ||
16053 | else | |
16054 | zlib=no | |
16055 | fi | |
16056 | ||
16057 | ||
16058 | else | |
16059 | zlib=no | |
16060 | fi | |
16061 | ||
16062 | ||
16063 | ||
497e30a0 LS |
16064 | fi |
16065 | ||
a6ef3156 LS |
16066 | |
16067 | # Check whether --with-shared-sqlite was given. | |
16068 | if test "${with_shared_sqlite+set}" = set; then : | |
16069 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
16070 | else |
16071 | shared_sqlite=no | |
16072 | fi | |
16073 | ||
16074 | ||
16075 | if test "$shared_sqlite" = yes; then | |
16076 | ||
cf1001a7 | 16077 | |
a5471f24 LS |
16078 | |
16079 | ||
16080 | ||
16081 | ||
16082 | ||
16083 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
16084 | if test -n "$ac_tool_prefix"; then | |
16085 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
16086 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16088 | $as_echo_n "checking for $ac_word... " >&6; } | |
16089 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
16090 | $as_echo_n "(cached) " >&6 | |
16091 | else | |
16092 | case $PKG_CONFIG in | |
16093 | [\\/]* | ?:[\\/]*) | |
16094 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
16095 | ;; | |
16096 | *) | |
16097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16098 | for as_dir in $PATH | |
16099 | do | |
16100 | IFS=$as_save_IFS | |
16101 | test -z "$as_dir" && as_dir=. | |
16102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16104 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16106 | break 2 | |
16107 | fi | |
16108 | done | |
16109 | done | |
16110 | IFS=$as_save_IFS | |
16111 | ||
16112 | ;; | |
cf1001a7 | 16113 | esac |
a5471f24 LS |
16114 | fi |
16115 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
16116 | if test -n "$PKG_CONFIG"; then | |
16117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
16118 | $as_echo "$PKG_CONFIG" >&6; } | |
16119 | else | |
16120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16121 | $as_echo "no" >&6; } | |
16122 | fi | |
cf1001a7 | 16123 | |
497e30a0 | 16124 | |
a5471f24 LS |
16125 | fi |
16126 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16127 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16128 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16129 | set dummy pkg-config; ac_word=$2 | |
16130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16131 | $as_echo_n "checking for $ac_word... " >&6; } | |
16132 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
16133 | $as_echo_n "(cached) " >&6 |
16134 | else | |
a5471f24 LS |
16135 | case $ac_pt_PKG_CONFIG in |
16136 | [\\/]* | ?:[\\/]*) | |
16137 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16138 | ;; | |
16139 | *) | |
16140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16141 | for as_dir in $PATH | |
16142 | do | |
16143 | IFS=$as_save_IFS | |
16144 | test -z "$as_dir" && as_dir=. | |
16145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16147 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16149 | break 2 | |
16150 | fi | |
16151 | done | |
16152 | done | |
16153 | IFS=$as_save_IFS | |
497e30a0 | 16154 | |
a5471f24 LS |
16155 | ;; |
16156 | esac | |
16157 | fi | |
16158 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16159 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16161 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 16162 | else |
a5471f24 LS |
16163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16164 | $as_echo "no" >&6; } | |
497e30a0 | 16165 | fi |
a5471f24 LS |
16166 | |
16167 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16168 | PKG_CONFIG="" | |
16169 | else | |
16170 | case $cross_compiling:$ac_tool_warned in | |
16171 | yes:) | |
16172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16174 | ac_tool_warned=yes ;; | |
16175 | esac | |
16176 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16177 | fi | |
16178 | else | |
16179 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 16180 | fi |
497e30a0 | 16181 | |
a5471f24 LS |
16182 | fi |
16183 | if test -n "$PKG_CONFIG"; then | |
16184 | _pkg_min_version=0.9.0 | |
16185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16186 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16187 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16189 | $as_echo "yes" >&6; } | |
16190 | else | |
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16192 | $as_echo "no" >&6; } | |
16193 | PKG_CONFIG="" | |
16194 | fi | |
16195 | fi | |
16196 | ||
16197 | pkg_failed=no | |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16199 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 16200 | |
a5471f24 LS |
16201 | if test -n "$SQLITE_CFLAGS"; then |
16202 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16203 | elif test -n "$PKG_CONFIG"; then | |
16204 | if test -n "$PKG_CONFIG" && \ | |
16205 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16206 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16207 | ac_status=$? | |
16208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16209 | test $ac_status = 0; }; then | |
16210 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16211 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 16212 | else |
a5471f24 LS |
16213 | pkg_failed=yes |
16214 | fi | |
16215 | else | |
16216 | pkg_failed=untried | |
16217 | fi | |
16218 | if test -n "$SQLITE_LIBS"; then | |
16219 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16220 | elif test -n "$PKG_CONFIG"; then | |
16221 | if test -n "$PKG_CONFIG" && \ | |
16222 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16223 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16224 | ac_status=$? | |
16225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16226 | test $ac_status = 0; }; then | |
16227 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16228 | test "x$?" != "x0" && pkg_failed=yes | |
16229 | else | |
16230 | pkg_failed=yes | |
16231 | fi | |
16232 | else | |
16233 | pkg_failed=untried | |
497e30a0 LS |
16234 | fi |
16235 | ||
16236 | ||
a5471f24 LS |
16237 | |
16238 | if test $pkg_failed = yes; then | |
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16240 | $as_echo "no" >&6; } | |
16241 | ||
16242 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16243 | _pkg_short_errors_supported=yes | |
497e30a0 | 16244 | else |
a5471f24 | 16245 | _pkg_short_errors_supported=no |
497e30a0 | 16246 | fi |
a5471f24 LS |
16247 | if test $_pkg_short_errors_supported = yes; then |
16248 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16249 | else | |
16250 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16251 | fi | |
16252 | # Put the nasty error message in config.log where it belongs | |
16253 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 16254 | |
a5471f24 LS |
16255 | shared_sqlite=no |
16256 | elif test $pkg_failed = untried; then | |
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16258 | $as_echo "no" >&6; } | |
16259 | shared_sqlite=no | |
16260 | else | |
16261 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
16262 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16264 | $as_echo "yes" >&6; } | |
497e30a0 | 16265 | |
a5471f24 | 16266 | shared_sqlite=yes |
497e30a0 | 16267 | |
74ab6be0 | 16268 | fi |
a5471f24 | 16269 | fi |
74ab6be0 LS |
16270 | |
16271 | if test "$shared_sqlite" = no; then | |
c52df125 | 16272 | SQLITE_OBJ='sqlite3.$(OBJEXT)' |
212380e3 AC |
16273 | fi |
16274 | ||
a5471f24 | 16275 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 16276 | |
a5471f24 | 16277 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
16278 | |
16279 | ||
cf1001a7 LS |
16280 | |
16281 | ||
c1c5fdc4 | 16282 | # Check whether --enable-ports was given. |
7083c021 | 16283 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 AC |
16284 | enableval=$enable_ports; if test $enableval = yes; then |
16285 | SELECT_TYPE_EXPLICIT="ports" | |
16286 | else | |
16287 | use_ports=no | |
16288 | fi | |
16289 | ||
16290 | fi | |
16291 | ||
16292 | ||
631ef239 | 16293 | # Check whether --enable-poll was given. |
7083c021 | 16294 | if test "${enable_poll+set}" = set; then : |
631ef239 | 16295 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
16296 | SELECT_TYPE_EXPLICIT="poll" |
16297 | else | |
16298 | use_poll=no | |
16299 | fi | |
16300 | ||
631ef239 AC |
16301 | fi |
16302 | ||
212380e3 | 16303 | |
631ef239 | 16304 | # Check whether --enable-select was given. |
7083c021 | 16305 | if test "${enable_select+set}" = set; then : |
631ef239 | 16306 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
16307 | SELECT_TYPE_EXPLICIT="select" |
16308 | else | |
16309 | use_select=no | |
16310 | fi | |
16311 | ||
631ef239 AC |
16312 | fi |
16313 | ||
212380e3 | 16314 | |
631ef239 | 16315 | # Check whether --enable-kqueue was given. |
7083c021 | 16316 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 16317 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
16318 | SELECT_TYPE_EXPLICIT="kqueue" |
16319 | else | |
16320 | use_kqueue=no | |
16321 | fi | |
16322 | ||
631ef239 AC |
16323 | fi |
16324 | ||
212380e3 | 16325 | |
631ef239 | 16326 | # Check whether --enable-epoll was given. |
7083c021 | 16327 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 16328 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 16329 | SELECT_TYPE_EXPLICIT="epoll" |
7083c021 AC |
16330 | for ac_func in epoll_ctl |
16331 | do : | |
16332 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 16333 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 16334 | cat >>confdefs.h <<_ACEOF |
7083c021 | 16335 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 JT |
16336 | _ACEOF |
16337 | haveepoll=yes | |
16338 | else | |
16339 | haveepoll=no | |
16340 | fi | |
16341 | done | |
16342 | ||
212380e3 AC |
16343 | else |
16344 | use_epoll=no | |
16345 | fi | |
16346 | ||
631ef239 AC |
16347 | fi |
16348 | ||
212380e3 AC |
16349 | |
16350 | ||
212380e3 | 16351 | |
631ef239 | 16352 | # Check whether --with-confdir was given. |
7083c021 | 16353 | if test "${with_confdir+set}" = set; then : |
634d4aad | 16354 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 16355 | else |
9f9b7042 | 16356 | confdir='${sysconfdir}' |
634d4aad NPB |
16357 | fi |
16358 | ||
212380e3 AC |
16359 | |
16360 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16361 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 16362 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 16363 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 16364 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16365 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16366 | last_ac_define_dir="$ac_define_dir" | |
16367 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16368 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16369 | if test "x$ac_define_dir_counter" = x128; then : | |
16370 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
16371 | break | |
16372 | fi | |
9f9b7042 | 16373 | done |
212380e3 AC |
16374 | ETC_DIR="$ac_define_dir" |
16375 | ||
16376 | ||
16377 | cat >>confdefs.h <<_ACEOF | |
16378 | #define ETC_DIR "$ac_define_dir" | |
16379 | _ACEOF | |
16380 | ||
16381 | ||
16382 | ||
16383 | ||
7083c021 AC |
16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
16385 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 16386 | |
631ef239 | 16387 | # Check whether --with-logdir was given. |
7083c021 | 16388 | if test "${with_logdir+set}" = set; then : |
631ef239 | 16389 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16391 | $as_echo "yes" >&6; } | |
212380e3 | 16392 | else |
9f9b7042 NPB |
16393 | if test "x$enable_fhs_paths" = "xyes"; then : |
16394 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
16395 | else | |
16396 | logdir='${prefix}/logs' | |
16397 | fi | |
7083c021 AC |
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16399 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16400 | fi |
16401 | ||
212380e3 AC |
16402 | |
16403 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16404 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16405 | last_ac_define_dir=`eval echo $logdir` |
16406 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16407 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16408 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16409 | last_ac_define_dir="$ac_define_dir" | |
16410 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16411 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16412 | if test "x$ac_define_dir_counter" = x128; then : | |
16413 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
16414 | break | |
16415 | fi | |
9f9b7042 | 16416 | done |
212380e3 AC |
16417 | LOG_DIR="$ac_define_dir" |
16418 | ||
16419 | ||
16420 | cat >>confdefs.h <<_ACEOF | |
16421 | #define LOG_DIR "$ac_define_dir" | |
16422 | _ACEOF | |
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | logdir=`( | |
16428 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16429 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16430 | eval echo \""$logdir"\" | |
16431 | )` | |
16432 | ||
16433 | ||
16434 | ||
212380e3 | 16435 | |
7083c021 AC |
16436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
16437 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 16438 | |
631ef239 | 16439 | # Check whether --with-helpdir was given. |
7083c021 | 16440 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 16441 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16443 | $as_echo "yes" >&6; } | |
212380e3 | 16444 | else |
9f9b7042 NPB |
16445 | if test "x$enable_fhs_paths" = "xyes"; then : |
16446 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
16447 | else | |
16448 | helpdir='${prefix}/help' | |
16449 | fi | |
7083c021 AC |
16450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16451 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16452 | fi |
16453 | ||
212380e3 AC |
16454 | |
16455 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16456 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16457 | last_ac_define_dir=`eval echo $helpdir` |
16458 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16459 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16460 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16461 | last_ac_define_dir="$ac_define_dir" | |
16462 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16463 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16464 | if test "x$ac_define_dir_counter" = x128; then : | |
16465 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
16466 | break | |
16467 | fi | |
9f9b7042 | 16468 | done |
212380e3 AC |
16469 | HELP_DIR="$ac_define_dir" |
16470 | ||
16471 | ||
16472 | cat >>confdefs.h <<_ACEOF | |
16473 | #define HELP_DIR "$ac_define_dir" | |
16474 | _ACEOF | |
16475 | ||
16476 | ||
16477 | ||
16478 | ||
16479 | helpdir=`( | |
16480 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16481 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16482 | eval echo \""$helpdir"\" | |
16483 | )` | |
16484 | ||
16485 | ||
16486 | ||
212380e3 | 16487 | |
7083c021 AC |
16488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
16489 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 16490 | |
631ef239 | 16491 | # Check whether --with-moduledir was given. |
7083c021 | 16492 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 16493 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16495 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
16496 | else |
16497 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16498 | moduledir='${pkglibdir}/modules' | |
16499 | else | |
16500 | moduledir='${prefix}/modules' | |
16501 | fi | |
16502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16503 | $as_echo "no" >&6; } | |
16504 | ||
16505 | fi | |
16506 | ||
212380e3 AC |
16507 | |
16508 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16509 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16510 | last_ac_define_dir=`eval echo $moduledir` |
16511 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16512 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16513 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16514 | last_ac_define_dir="$ac_define_dir" | |
16515 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16516 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16517 | if test "x$ac_define_dir_counter" = x128; then : | |
16518 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
16519 | break | |
16520 | fi | |
9f9b7042 | 16521 | done |
212380e3 AC |
16522 | MODULE_DIR="$ac_define_dir" |
16523 | ||
16524 | ||
16525 | cat >>confdefs.h <<_ACEOF | |
16526 | #define MODULE_DIR "$ac_define_dir" | |
16527 | _ACEOF | |
16528 | ||
16529 | ||
16530 | ||
16531 | ||
16532 | moduledir=`( | |
16533 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16534 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16535 | eval echo \""$moduledir"\" | |
16536 | )` | |
16537 | ||
16538 | ||
9f9b7042 NPB |
16539 | |
16540 | ||
16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
16542 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
16543 | ||
16544 | # Check whether --with-rundir was given. | |
16545 | if test "${with_rundir+set}" = set; then : | |
16546 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16547 | $as_echo "yes" >&6; } | |
16548 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 16549 | else |
9f9b7042 | 16550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 16551 | $as_echo "no" >&6; } |
9f9b7042 NPB |
16552 | if test "x$enable_fhs_paths" = "xyes"; then : |
16553 | rundir='${prefix}/run' | |
16554 | else | |
16555 | rundir='${sysconfdir}' | |
16556 | fi | |
16557 | fi | |
16558 | ||
16559 | ||
212380e3 AC |
16560 | |
16561 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16562 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16563 | last_ac_define_dir=`eval echo $pkgrundir` |
16564 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16565 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16566 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16567 | last_ac_define_dir="$ac_define_dir" | |
16568 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16569 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16570 | if test "x$ac_define_dir_counter" = x128; then : | |
16571 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
16572 | break | |
16573 | fi | |
9f9b7042 NPB |
16574 | done |
16575 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
16576 | |
16577 | ||
16578 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 16579 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
16580 | _ACEOF |
16581 | ||
16582 | ||
16583 | ||
9f9b7042 NPB |
16584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
16585 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 16586 | |
9f9b7042 NPB |
16587 | # Check whether --with-program-prefix was given. |
16588 | if test "${with_program_prefix+set}" = set; then : | |
16589 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
16590 | else | |
16591 | with_program_prefix= | |
16592 | fi | |
212380e3 | 16593 | |
9f9b7042 NPB |
16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
16595 | $as_echo "\"$with_program_prefix\"" >&6; } | |
16596 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
16597 | |
16598 | ||
9f9b7042 NPB |
16599 | cat >>confdefs.h <<_ACEOF |
16600 | #define PROGRAM_PREFIX "$with_program_prefix" | |
16601 | _ACEOF | |
631ef239 | 16602 | |
7083c021 | 16603 | |
b6d0720c AC |
16604 | |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
16606 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
16607 | ||
16608 | # Check whether --with-custom-branding was given. | |
16609 | if test "${with_custom_branding+set}" = set; then : | |
16610 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16612 | $as_echo "yes" >&6; } | |
16613 | else | |
16614 | BRANDING_NAME=$PACKAGE_NAME | |
16615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16616 | $as_echo "no" >&6; } | |
16617 | ||
16618 | fi | |
16619 | ||
16620 | ||
16621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
16622 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
16623 | ||
16624 | # Check whether --with-custom-version was given. | |
16625 | if test "${with_custom_version+set}" = set; then : | |
16626 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
16627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16628 | $as_echo "yes" >&6; } | |
16629 | else | |
16630 | BRANDING_VERSION=$PACKAGE_VERSION | |
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16632 | $as_echo "no" >&6; } | |
16633 | ||
16634 | fi | |
16635 | ||
16636 | ||
16637 | ||
16638 | cat >>confdefs.h <<_ACEOF | |
16639 | #define BRANDING_NAME "$BRANDING_NAME" | |
16640 | _ACEOF | |
16641 | ||
16642 | ||
16643 | cat >>confdefs.h <<_ACEOF | |
16644 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
16645 | _ACEOF | |
16646 | ||
16647 | ||
f5493691 AC |
16648 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
16649 | ||
16650 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
16651 | ||
16652 | fi | |
16653 | ||
7083c021 AC |
16654 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
16655 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
16656 | echo "Forcing $SELECT_TYPE to be enabled" | |
16657 | else | |
16658 | ||
16659 | if test ! "x$use_ports" = "xno"; then | |
16660 | for ac_func in port_getn | |
16661 | do : | |
16662 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b6d0720c | 16663 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 16664 | cat >>confdefs.h <<_ACEOF |
7083c021 | 16665 | #define HAVE_PORT_GETN 1 |
212380e3 | 16666 | _ACEOF |
7083c021 | 16667 | haveports=yes |
212380e3 | 16668 | else |
7083c021 | 16669 | haveports=no |
212380e3 AC |
16670 | fi |
16671 | done | |
16672 | ||
7083c021 AC |
16673 | if test "x$haveports" = "xyes" ; then |
16674 | SELECT_TYPE="ports" | |
212380e3 AC |
16675 | fi |
16676 | fi | |
16677 | ||
7083c021 AC |
16678 | if test ! "x$use_select" = "xno"; then |
16679 | for ac_func in select | |
16680 | do : | |
16681 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b6d0720c | 16682 | if test "x$ac_cv_func_select" = xyes; then : |
7083c021 AC |
16683 | cat >>confdefs.h <<_ACEOF |
16684 | #define HAVE_SELECT 1 | |
212380e3 | 16685 | _ACEOF |
7083c021 AC |
16686 | haveselect=yes |
16687 | else | |
16688 | haveselect=no | |
16689 | fi | |
16690 | done | |
212380e3 | 16691 | |
7083c021 AC |
16692 | if test "x$haveselect" = "xyes" ; then |
16693 | SELECT_TYPE="select" | |
16694 | fi | |
16695 | fi | |
212380e3 | 16696 | |
7083c021 AC |
16697 | if test ! "x$use_poll" = "xno"; then |
16698 | for ac_func in poll | |
16699 | do : | |
16700 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b6d0720c | 16701 | if test "x$ac_cv_func_poll" = xyes; then : |
7083c021 AC |
16702 | cat >>confdefs.h <<_ACEOF |
16703 | #define HAVE_POLL 1 | |
212380e3 | 16704 | _ACEOF |
7083c021 | 16705 | havepoll=yes |
212380e3 | 16706 | else |
7083c021 | 16707 | havepoll=no |
212380e3 | 16708 | fi |
7083c021 | 16709 | done |
631ef239 | 16710 | |
7083c021 AC |
16711 | if test "x$havepoll" = "xyes" ; then |
16712 | SELECT_TYPE="poll" | |
16713 | fi | |
212380e3 | 16714 | fi |
7083c021 AC |
16715 | |
16716 | if test ! "x$use_kqueue" = "xno"; then | |
16717 | for ac_func in kevent | |
16718 | do : | |
16719 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b6d0720c | 16720 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 16721 | cat >>confdefs.h <<_ACEOF |
7083c021 | 16722 | #define HAVE_KEVENT 1 |
212380e3 AC |
16723 | _ACEOF |
16724 | havekqueue=yes | |
16725 | else | |
16726 | havekqueue=no | |
16727 | fi | |
16728 | done | |
16729 | ||
16730 | if test "x$havekqueue" = "xyes" ; then | |
16731 | SELECT_TYPE="kqueue" | |
16732 | fi | |
16733 | fi | |
16734 | ||
16735 | if test ! "x$use_epoll" = "xno"; then | |
7083c021 AC |
16736 | for ac_func in epoll_ctl |
16737 | do : | |
16738 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 16739 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 16740 | cat >>confdefs.h <<_ACEOF |
7083c021 | 16741 | #define HAVE_EPOLL_CTL 1 |
212380e3 AC |
16742 | _ACEOF |
16743 | haveepoll=yes | |
16744 | else | |
16745 | haveepoll=no | |
16746 | fi | |
16747 | done | |
16748 | ||
16749 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
16750 | if test "x$haveepoll" = "xyes" ; then | |
7083c021 AC |
16751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
16752 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
16753 | if test "$cross_compiling" = yes; then : | |
16754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16755 | $as_echo "no" >&6; } | |
212380e3 | 16756 | else |
7083c021 | 16757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16758 | /* end confdefs.h. */ |
16759 | #include <stdint.h> | |
16760 | #include <sys/param.h> | |
16761 | #include <sys/types.h> | |
16762 | #include <sys/epoll.h> | |
16763 | #include <sys/syscall.h> | |
16764 | #include <unistd.h> | |
16765 | ||
16766 | int | |
16767 | main(int argc, char **argv) | |
16768 | { | |
16769 | int epfd; | |
16770 | ||
16771 | epfd = epoll_create(256); | |
b676ea3b | 16772 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
16773 | } |
16774 | _ACEOF | |
7083c021 AC |
16775 | if ac_fn_c_try_run "$LINENO"; then : |
16776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16777 | $as_echo "yes" >&6; } | |
212380e3 | 16778 | |
7083c021 | 16779 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
16780 | |
16781 | SELECT_TYPE="epoll" | |
16782 | else | |
7083c021 AC |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16784 | $as_echo "no" >&6; } | |
212380e3 | 16785 | fi |
7083c021 AC |
16786 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16787 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 16788 | fi |
631ef239 | 16789 | |
212380e3 AC |
16790 | fi |
16791 | fi | |
16792 | ||
16793 | haveepollsyscall=no | |
16794 | ||
16795 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
16796 | if test "x$haveepoll" = "xno" ; then | |
7083c021 AC |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
16798 | $as_echo_n "checking for epoll system call... " >&6; } | |
16799 | if test "$cross_compiling" = yes; then : | |
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16801 | $as_echo "no" >&6; } | |
212380e3 | 16802 | else |
7083c021 | 16803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16804 | /* end confdefs.h. */ |
16805 | #include <stdint.h> | |
16806 | #include <sys/param.h> | |
16807 | #include <sys/types.h> | |
16808 | #include <sys/epoll.h> | |
16809 | #include <sys/syscall.h> | |
16810 | #include <unistd.h> | |
16811 | ||
16812 | int | |
16813 | epoll_create(int size) | |
16814 | { | |
16815 | return (syscall(__NR_epoll_create, size)); | |
16816 | } | |
16817 | ||
16818 | int | |
16819 | main(int argc, char **argv) | |
16820 | { | |
16821 | int epfd; | |
16822 | ||
16823 | epfd = epoll_create(256); | |
16824 | exit (epfd == -1 ? 1 : 0); | |
16825 | } | |
16826 | _ACEOF | |
7083c021 AC |
16827 | if ac_fn_c_try_run "$LINENO"; then : |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16829 | $as_echo "yes" >&6; } | |
212380e3 | 16830 | |
7083c021 | 16831 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
16832 | |
16833 | SELECT_TYPE="epoll" | |
16834 | else | |
7083c021 AC |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16836 | $as_echo "no" >&6; } | |
212380e3 | 16837 | fi |
7083c021 AC |
16838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16839 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 16840 | fi |
631ef239 | 16841 | |
212380e3 AC |
16842 | fi |
16843 | fi | |
16844 | ||
16845 | fi | |
16846 | ||
16847 | fi | |
16848 | ||
16849 | if test -z "$SELECT_TYPE"; then | |
b6d0720c | 16850 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 AC |
16851 | fi |
16852 | ||
16853 | echo "Using $SELECT_TYPE for select loop." | |
16854 | ||
16855 | ||
16856 | cat >>confdefs.h <<_ACEOF | |
16857 | #define SELECT_TYPE "$SELECT_TYPE" | |
16858 | _ACEOF | |
16859 | ||
16860 | ||
16861 | ||
16862 | ||
16863 | ||
631ef239 | 16864 | # Check whether --enable-assert was given. |
7083c021 | 16865 | if test "${enable_assert+set}" = set; then : |
631ef239 | 16866 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
16867 | else |
16868 | assert=no | |
631ef239 AC |
16869 | fi |
16870 | ||
212380e3 AC |
16871 | |
16872 | if test "$assert" = no; then | |
16873 | ||
7083c021 | 16874 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16875 | |
16876 | elif test "$assert" = soft; then | |
16877 | ||
7083c021 | 16878 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
16879 | |
16880 | ||
7083c021 | 16881 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16882 | |
16883 | elif test "$assert" = yes; then | |
16884 | assert = "hard"; | |
16885 | fi | |
16886 | ||
7083c021 AC |
16887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
16888 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 16889 | # Check whether --enable-iodebug was given. |
7083c021 | 16890 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 16891 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
16892 | else |
16893 | iodebug=no | |
631ef239 AC |
16894 | fi |
16895 | ||
212380e3 AC |
16896 | |
16897 | if test "$iodebug" = yes; then | |
16898 | ||
7083c021 | 16899 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 16900 | |
7083c021 AC |
16901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16902 | $as_echo "yes" >&6; } | |
212380e3 | 16903 | else |
7083c021 AC |
16904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16905 | $as_echo "no" >&6; } | |
212380e3 AC |
16906 | fi |
16907 | ||
16908 | ||
7083c021 AC |
16909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
16910 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 16911 | # Check whether --enable-profile was given. |
7083c021 | 16912 | if test "${enable_profile+set}" = set; then : |
631ef239 | 16913 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
16914 | else |
16915 | profile=no | |
631ef239 AC |
16916 | fi |
16917 | ||
212380e3 AC |
16918 | |
16919 | if test "$profile" = yes; then | |
16920 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16921 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
16922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
16923 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 16924 | |
7083c021 | 16925 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
16926 | |
16927 | else | |
7083c021 AC |
16928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
16929 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
16930 | fi |
16931 | else | |
7083c021 AC |
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16933 | $as_echo "no" >&6; } | |
212380e3 AC |
16934 | fi |
16935 | ||
631ef239 | 16936 | # Check whether --enable-balloc was given. |
7083c021 | 16937 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 16938 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
16939 | else |
16940 | balloc=yes | |
631ef239 AC |
16941 | fi |
16942 | ||
212380e3 AC |
16943 | |
16944 | if test "$balloc" = no; then | |
16945 | ||
7083c021 | 16946 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
16947 | |
16948 | fi | |
16949 | ||
631ef239 | 16950 | # Check whether --enable-small-net was given. |
7083c021 | 16951 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 16952 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
16953 | else |
16954 | small_net=no | |
631ef239 AC |
16955 | fi |
16956 | ||
212380e3 AC |
16957 | |
16958 | if test "$small_net" = yes; then | |
16959 | ||
7083c021 | 16960 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
16961 | |
16962 | ||
7083c021 | 16963 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16964 | |
16965 | ||
7083c021 | 16966 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16967 | |
16968 | ||
7083c021 | 16969 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16970 | |
16971 | ||
7083c021 | 16972 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16973 | |
16974 | ||
7083c021 | 16975 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
16976 | |
16977 | ||
7083c021 | 16978 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16979 | |
16980 | ||
7083c021 | 16981 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16982 | |
16983 | ||
7083c021 | 16984 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16985 | |
16986 | ||
7083c021 | 16987 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16988 | |
16989 | ||
7083c021 | 16990 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16991 | |
16992 | ||
7083c021 | 16993 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16994 | |
16995 | ||
7083c021 | 16996 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16997 | |
16998 | ||
7083c021 | 16999 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 17000 | |
f589ec6f | 17001 | |
7083c021 | 17002 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
17003 | |
17004 | ||
7083c021 | 17005 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 17006 | |
212380e3 AC |
17007 | else |
17008 | ||
7083c021 | 17009 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
17010 | |
17011 | ||
7083c021 | 17012 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17013 | |
17014 | ||
7083c021 | 17015 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
17016 | |
17017 | ||
7083c021 | 17018 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17019 | |
17020 | ||
7083c021 | 17021 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
17022 | |
17023 | ||
7083c021 | 17024 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17025 | |
17026 | ||
7083c021 | 17027 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17028 | |
17029 | ||
7083c021 | 17030 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
17031 | |
17032 | ||
7083c021 | 17033 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
17034 | |
17035 | ||
7083c021 | 17036 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
17037 | |
17038 | ||
7083c021 | 17039 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
17040 | |
17041 | ||
7083c021 | 17042 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
17043 | |
17044 | ||
7083c021 | 17045 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
17046 | |
17047 | ||
7083c021 | 17048 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 17049 | |
f589ec6f | 17050 | |
7083c021 | 17051 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
17052 | |
17053 | ||
7083c021 | 17054 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 17055 | |
212380e3 AC |
17056 | fi |
17057 | ||
17058 | ||
631ef239 | 17059 | # Check whether --with-nicklen was given. |
7083c021 | 17060 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 17061 | withval=$with_nicklen; |
aa769893 | 17062 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 17063 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 17064 | fi |
cf533739 | 17065 | if test $withval -gt 50; then |
212380e3 | 17066 | NICKLEN=50 |
7083c021 AC |
17067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
17068 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
17069 | elif test $withval -lt 9; then |
17070 | NICKLEN=9 | |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
17072 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
17073 | else |
17074 | NICKLEN="$withval" | |
17075 | fi | |
17076 | ||
17077 | else | |
cf533739 | 17078 | NICKLEN=31 |
631ef239 | 17079 | fi |
212380e3 AC |
17080 | |
17081 | ||
212380e3 | 17082 | |
631ef239 | 17083 | # Check whether --with-topiclen was given. |
7083c021 | 17084 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 17085 | withval=$with_topiclen; |
212380e3 AC |
17086 | if test $withval -ge 390; then |
17087 | TOPICLEN=390 | |
7083c021 AC |
17088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
17089 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
17090 | else |
17091 | TOPICLEN=$withval | |
17092 | fi | |
17093 | ||
17094 | else | |
17095 | TOPICLEN=390 | |
212380e3 AC |
17096 | fi |
17097 | ||
212380e3 AC |
17098 | |
17099 | ||
17100 | cat >>confdefs.h <<_ACEOF | |
17101 | #define TOPICLEN ${TOPICLEN} | |
17102 | _ACEOF | |
17103 | ||
17104 | ||
17105 | cat >>confdefs.h <<_ACEOF | |
17106 | #define NICKLEN (${NICKLEN}+1) | |
17107 | _ACEOF | |
17108 | ||
17109 | ||
1a82970f JT |
17110 | # rpath, for finding libratbox.so at run time |
17111 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
17112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
17113 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 17114 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 17115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
17116 | /* end confdefs.h. */ |
17117 | ||
17118 | int | |
17119 | main () | |
17120 | { | |
17121 | int i; | |
17122 | ; | |
17123 | return 0; | |
17124 | } | |
17125 | _ACEOF | |
7083c021 | 17126 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
17127 | found=yes |
17128 | else | |
7083c021 | 17129 | found=no |
1a82970f | 17130 | fi |
7083c021 AC |
17131 | rm -f core conftest.err conftest.$ac_objext \ |
17132 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 17133 | LDFLAGS=$hold_ldflags |
7083c021 AC |
17134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
17135 | $as_echo "$found" >&6; } | |
1a82970f JT |
17136 | if test "$found" = yes; then |
17137 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
17138 | fi | |
17139 | ||
212380e3 AC |
17140 | # This must be down here, or it will mess up checks like the ones |
17141 | # for -Wl,-export-dynamic | |
17142 | # -- jilles | |
d2c5159a | 17143 | CWARNS="" |
631ef239 | 17144 | # Check whether --enable-warnings was given. |
7083c021 | 17145 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 17146 | enableval=$enable_warnings; |
212380e3 AC |
17147 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
17148 | CFLAGS="$IRC_CFLAGS" | |
17149 | ||
17150 | ||
7083c021 AC |
17151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
17152 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
17153 | if test "${GCC-no}" = yes |
17154 | then | |
b6d0720c | 17155 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 17156 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17157 | else |
17158 | ||
17159 | oldcflags="${CFLAGS-}" | |
17160 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 17161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17162 | /* end confdefs.h. */ |
17163 | ||
17164 | #include <string.h> | |
17165 | #include <stdio.h> | |
17166 | int main(void); | |
17167 | ||
17168 | int | |
17169 | main () | |
17170 | { | |
17171 | ||
b1fc1658 | 17172 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17173 | |
17174 | ; | |
17175 | return 0; | |
17176 | } | |
17177 | _ACEOF | |
7083c021 | 17178 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17179 | charybdis_cv_c_gcc_w_all=yes |
17180 | else | |
7083c021 | 17181 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 17182 | fi |
631ef239 | 17183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17184 | CFLAGS="${oldcflags}" |
17185 | fi | |
17186 | ||
17187 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
17188 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
17189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17190 | $as_echo "ok" >&6; } | |
212380e3 AC |
17191 | else |
17192 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
17193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17194 | $as_echo "no" >&6; } | |
212380e3 AC |
17195 | fi |
17196 | else | |
7083c021 AC |
17197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17198 | $as_echo "no" >&6; } | |
212380e3 AC |
17199 | fi |
17200 | ||
17201 | ||
7083c021 AC |
17202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
17203 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
17204 | if test "${GCC-no}" = yes |
17205 | then | |
b6d0720c | 17206 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 17207 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17208 | else |
17209 | ||
17210 | oldcflags="${CFLAGS-}" | |
17211 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 17212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17213 | /* end confdefs.h. */ |
17214 | ||
17215 | #include <string.h> | |
17216 | #include <stdio.h> | |
17217 | int main(void); | |
17218 | ||
17219 | int | |
17220 | main () | |
17221 | { | |
17222 | ||
b1fc1658 | 17223 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17224 | |
17225 | ; | |
17226 | return 0; | |
17227 | } | |
17228 | _ACEOF | |
7083c021 | 17229 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17230 | charybdis_cv_c_gcc_w_pointer_arith=yes |
17231 | else | |
7083c021 | 17232 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 17233 | fi |
631ef239 | 17234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17235 | CFLAGS="${oldcflags}" |
17236 | fi | |
17237 | ||
17238 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
17239 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
17240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17241 | $as_echo "ok" >&6; } | |
212380e3 AC |
17242 | else |
17243 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17245 | $as_echo "no" >&6; } | |
212380e3 AC |
17246 | fi |
17247 | else | |
7083c021 AC |
17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17249 | $as_echo "no" >&6; } | |
212380e3 AC |
17250 | fi |
17251 | ||
17252 | ||
7083c021 AC |
17253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
17254 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
17255 | if test "${GCC-no}" = yes |
17256 | then | |
b6d0720c | 17257 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 17258 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17259 | else |
17260 | ||
17261 | oldcflags="${CFLAGS-}" | |
17262 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 17263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17264 | /* end confdefs.h. */ |
17265 | ||
17266 | #include <string.h> | |
17267 | #include <stdio.h> | |
17268 | int main(void); | |
17269 | ||
17270 | int | |
17271 | main () | |
17272 | { | |
17273 | ||
b1fc1658 | 17274 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17275 | |
17276 | ; | |
17277 | return 0; | |
17278 | } | |
17279 | _ACEOF | |
7083c021 | 17280 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17281 | charybdis_cv_c_gcc_w_implicit=yes |
17282 | else | |
7083c021 | 17283 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 17284 | fi |
631ef239 | 17285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17286 | CFLAGS="${oldcflags}" |
17287 | fi | |
17288 | ||
17289 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
17290 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
17291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17292 | $as_echo "ok" >&6; } | |
212380e3 AC |
17293 | else |
17294 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17296 | $as_echo "no" >&6; } | |
212380e3 AC |
17297 | fi |
17298 | else | |
7083c021 AC |
17299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17300 | $as_echo "no" >&6; } | |
212380e3 AC |
17301 | fi |
17302 | ||
17303 | ||
7083c021 AC |
17304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
17305 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
17306 | if test "${GCC-no}" = yes |
17307 | then | |
b6d0720c | 17308 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 17309 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17310 | else |
17311 | ||
17312 | oldcflags="${CFLAGS-}" | |
17313 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 17314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17315 | /* end confdefs.h. */ |
17316 | ||
17317 | #include <string.h> | |
17318 | #include <stdio.h> | |
17319 | int main(void); | |
17320 | ||
17321 | int | |
17322 | main () | |
17323 | { | |
17324 | ||
b1fc1658 | 17325 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
17326 | |
17327 | ; | |
17328 | return 0; | |
17329 | } | |
17330 | _ACEOF | |
17331 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
17332 | charybdis_cv_c_gcc_w_cast_align=yes |
17333 | else | |
7083c021 | 17334 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 17335 | fi |
631ef239 | 17336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17337 | CFLAGS="${oldcflags}" |
17338 | fi | |
17339 | ||
17340 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
17341 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
17342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17343 | $as_echo "ok" >&6; } | |
212380e3 AC |
17344 | else |
17345 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17347 | $as_echo "no" >&6; } | |
212380e3 AC |
17348 | fi |
17349 | else | |
7083c021 AC |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17351 | $as_echo "no" >&6; } | |
212380e3 AC |
17352 | fi |
17353 | ||
17354 | ||
7083c021 AC |
17355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
17356 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
17357 | if test "${GCC-no}" = yes |
17358 | then | |
b6d0720c | 17359 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 17360 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17361 | else |
17362 | ||
17363 | oldcflags="${CFLAGS-}" | |
17364 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 17365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17366 | /* end confdefs.h. */ |
17367 | ||
17368 | #include <string.h> | |
17369 | #include <stdio.h> | |
17370 | int main(void); | |
17371 | ||
17372 | int | |
17373 | main () | |
17374 | { | |
17375 | ||
b1fc1658 | 17376 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17377 | |
17378 | ; | |
17379 | return 0; | |
17380 | } | |
17381 | _ACEOF | |
7083c021 | 17382 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17383 | charybdis_cv_c_gcc_w_cast_qual=yes |
17384 | else | |
7083c021 | 17385 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 17386 | fi |
631ef239 | 17387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17388 | CFLAGS="${oldcflags}" |
17389 | fi | |
17390 | ||
17391 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
17392 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
17393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17394 | $as_echo "ok" >&6; } | |
212380e3 AC |
17395 | else |
17396 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
17397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17398 | $as_echo "no" >&6; } | |
212380e3 AC |
17399 | fi |
17400 | else | |
7083c021 AC |
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17402 | $as_echo "no" >&6; } | |
212380e3 AC |
17403 | fi |
17404 | ||
17405 | ||
7083c021 AC |
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
17407 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
17408 | if test "${GCC-no}" = yes |
17409 | then | |
b6d0720c | 17410 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 17411 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
17412 | else |
17413 | ||
17414 | oldcflags="${CFLAGS-}" | |
17415 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 17416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
17417 | /* end confdefs.h. */ |
17418 | ||
17419 | #include <string.h> | |
17420 | #include <stdio.h> | |
17421 | int main(void); | |
17422 | ||
17423 | int | |
17424 | main () | |
17425 | { | |
17426 | ||
17427 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17428 | ||
17429 | ; | |
17430 | return 0; | |
17431 | } | |
17432 | _ACEOF | |
7083c021 | 17433 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 17434 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 17435 | else |
7083c021 | 17436 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 17437 | fi |
d2c5159a JT |
17438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17439 | CFLAGS="${oldcflags}" | |
17440 | fi | |
17441 | ||
bbe58888 | 17442 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 17443 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
17444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17445 | $as_echo "ok" >&6; } | |
d2c5159a | 17446 | else |
bbe58888 | 17447 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
17448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17449 | $as_echo "no" >&6; } | |
bbe58888 VY |
17450 | fi |
17451 | else | |
7083c021 AC |
17452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17453 | $as_echo "no" >&6; } | |
bbe58888 VY |
17454 | fi |
17455 | ||
17456 | ||
7083c021 AC |
17457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
17458 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
17459 | if test "${GCC-no}" = yes |
17460 | then | |
b6d0720c | 17461 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 17462 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
17463 | else |
17464 | ||
17465 | oldcflags="${CFLAGS-}" | |
17466 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 17467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
17468 | /* end confdefs.h. */ |
17469 | ||
17470 | #include <string.h> | |
17471 | #include <stdio.h> | |
17472 | int main(void); | |
17473 | ||
17474 | int | |
17475 | main () | |
17476 | { | |
17477 | ||
17478 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17479 | ||
17480 | ; | |
17481 | return 0; | |
17482 | } | |
17483 | _ACEOF | |
7083c021 | 17484 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
17485 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
17486 | else | |
7083c021 | 17487 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 17488 | fi |
bbe58888 VY |
17489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17490 | CFLAGS="${oldcflags}" | |
17491 | fi | |
17492 | ||
17493 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
17494 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17496 | $as_echo "ok" >&6; } | |
bbe58888 VY |
17497 | else |
17498 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
17499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17500 | $as_echo "no" >&6; } | |
d2c5159a JT |
17501 | fi |
17502 | else | |
7083c021 AC |
17503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17504 | $as_echo "no" >&6; } | |
d2c5159a JT |
17505 | fi |
17506 | ||
17507 | ||
7083c021 AC |
17508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
17509 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
17510 | if test "${GCC-no}" = yes |
17511 | then | |
b6d0720c | 17512 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 17513 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17514 | else |
17515 | ||
17516 | oldcflags="${CFLAGS-}" | |
17517 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 17518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17519 | /* end confdefs.h. */ |
17520 | ||
17521 | #include <string.h> | |
17522 | #include <stdio.h> | |
17523 | int main(void); | |
17524 | ||
17525 | int | |
17526 | main () | |
17527 | { | |
17528 | ||
b1fc1658 | 17529 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17530 | |
17531 | ; | |
17532 | return 0; | |
17533 | } | |
17534 | _ACEOF | |
7083c021 | 17535 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17536 | charybdis_cv_c_gcc_prototypes=yes |
17537 | else | |
7083c021 | 17538 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 17539 | fi |
631ef239 | 17540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17541 | CFLAGS="${oldcflags}" |
17542 | fi | |
17543 | ||
17544 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
17545 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
17546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17547 | $as_echo "ok" >&6; } | |
212380e3 AC |
17548 | else |
17549 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
17550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17551 | $as_echo "no" >&6; } | |
212380e3 AC |
17552 | fi |
17553 | else | |
7083c021 AC |
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17555 | $as_echo "no" >&6; } | |
212380e3 AC |
17556 | fi |
17557 | ||
17558 | ||
7083c021 AC |
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
17560 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
17561 | if test "${GCC-no}" = yes |
17562 | then | |
b6d0720c | 17563 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 17564 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17565 | else |
17566 | ||
17567 | oldcflags="${CFLAGS-}" | |
17568 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 17569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17570 | /* end confdefs.h. */ |
17571 | ||
17572 | #include <string.h> | |
17573 | #include <stdio.h> | |
17574 | int main(void); | |
17575 | ||
17576 | int | |
17577 | main () | |
17578 | { | |
17579 | ||
b1fc1658 | 17580 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17581 | |
17582 | ; | |
17583 | return 0; | |
17584 | } | |
17585 | _ACEOF | |
7083c021 | 17586 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17587 | charybdis_cv_c_gcc_parenthesis=yes |
17588 | else | |
7083c021 | 17589 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 17590 | fi |
631ef239 | 17591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17592 | CFLAGS="${oldcflags}" |
17593 | fi | |
17594 | ||
17595 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
17596 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
17597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17598 | $as_echo "ok" >&6; } | |
212380e3 AC |
17599 | else |
17600 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
17601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17602 | $as_echo "no" >&6; } | |
212380e3 AC |
17603 | fi |
17604 | else | |
7083c021 AC |
17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17606 | $as_echo "no" >&6; } | |
212380e3 AC |
17607 | fi |
17608 | ||
17609 | ||
7083c021 AC |
17610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
17611 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
17612 | if test "${GCC-no}" = yes |
17613 | then | |
b6d0720c | 17614 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 17615 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17616 | else |
17617 | ||
17618 | oldcflags="${CFLAGS-}" | |
17619 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 17620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17621 | /* end confdefs.h. */ |
17622 | ||
17623 | #include <string.h> | |
17624 | #include <stdio.h> | |
17625 | int main(void); | |
17626 | ||
17627 | int | |
17628 | main () | |
17629 | { | |
17630 | ||
b1fc1658 | 17631 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17632 | |
17633 | ; | |
17634 | return 0; | |
17635 | } | |
17636 | _ACEOF | |
7083c021 | 17637 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17638 | charybdis_cv_c_gcc_w=yes |
17639 | else | |
7083c021 | 17640 | charybdis_cv_c_gcc_w=no |
212380e3 | 17641 | fi |
631ef239 | 17642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17643 | CFLAGS="${oldcflags}" |
17644 | fi | |
17645 | ||
17646 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
17647 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17649 | $as_echo "ok" >&6; } | |
212380e3 AC |
17650 | else |
17651 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
17652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17653 | $as_echo "no" >&6; } | |
212380e3 AC |
17654 | fi |
17655 | else | |
7083c021 AC |
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17657 | $as_echo "no" >&6; } | |
212380e3 AC |
17658 | fi |
17659 | ||
17660 | ||
7083c021 AC |
17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
17662 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
17663 | if test "${GCC-no}" = yes |
17664 | then | |
b6d0720c | 17665 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 17666 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17667 | else |
17668 | ||
17669 | oldcflags="${CFLAGS-}" | |
17670 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 17671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17672 | /* end confdefs.h. */ |
17673 | ||
17674 | #include <string.h> | |
17675 | #include <stdio.h> | |
17676 | int main(void); | |
17677 | ||
17678 | int | |
17679 | main () | |
17680 | { | |
17681 | ||
b1fc1658 | 17682 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17683 | |
17684 | ; | |
17685 | return 0; | |
17686 | } | |
17687 | _ACEOF | |
7083c021 | 17688 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17689 | charybdis_cv_c_gcc_w_extra=yes |
17690 | else | |
7083c021 | 17691 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 17692 | fi |
631ef239 | 17693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17694 | CFLAGS="${oldcflags}" |
17695 | fi | |
17696 | ||
17697 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
17698 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17700 | $as_echo "ok" >&6; } | |
212380e3 AC |
17701 | else |
17702 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
17703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17704 | $as_echo "no" >&6; } | |
212380e3 AC |
17705 | fi |
17706 | else | |
7083c021 AC |
17707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17708 | $as_echo "no" >&6; } | |
212380e3 AC |
17709 | fi |
17710 | ||
17711 | ||
7083c021 AC |
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
17713 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
17714 | if test "${GCC-no}" = yes |
17715 | then | |
b6d0720c | 17716 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 17717 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17718 | else |
17719 | ||
17720 | oldcflags="${CFLAGS-}" | |
17721 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 17722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17723 | /* end confdefs.h. */ |
17724 | ||
17725 | #include <string.h> | |
17726 | #include <stdio.h> | |
17727 | int main(void); | |
17728 | ||
17729 | int | |
17730 | main () | |
17731 | { | |
17732 | ||
b1fc1658 | 17733 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17734 | |
17735 | ; | |
17736 | return 0; | |
17737 | } | |
17738 | _ACEOF | |
7083c021 | 17739 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17740 | charybdis_cv_c_gcc_w_shadow=yes |
17741 | else | |
7083c021 | 17742 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 17743 | fi |
631ef239 | 17744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17745 | CFLAGS="${oldcflags}" |
17746 | fi | |
17747 | ||
17748 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
17749 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
17750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17751 | $as_echo "ok" >&6; } | |
212380e3 AC |
17752 | else |
17753 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
17754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17755 | $as_echo "no" >&6; } | |
212380e3 AC |
17756 | fi |
17757 | else | |
7083c021 AC |
17758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17759 | $as_echo "no" >&6; } | |
212380e3 AC |
17760 | fi |
17761 | ||
17762 | ||
7083c021 AC |
17763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
17764 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
17765 | if test "${GCC-no}" = yes |
17766 | then | |
b6d0720c | 17767 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 17768 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17769 | else |
17770 | ||
17771 | oldcflags="${CFLAGS-}" | |
17772 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 17773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17774 | /* end confdefs.h. */ |
17775 | ||
17776 | #include <string.h> | |
17777 | #include <stdio.h> | |
17778 | int main(void); | |
17779 | ||
17780 | int | |
17781 | main () | |
17782 | { | |
17783 | ||
b1fc1658 | 17784 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17785 | |
17786 | ; | |
17787 | return 0; | |
17788 | } | |
17789 | _ACEOF | |
7083c021 | 17790 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17791 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
17792 | else | |
7083c021 | 17793 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 17794 | fi |
631ef239 | 17795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17796 | CFLAGS="${oldcflags}" |
17797 | fi | |
17798 | ||
17799 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
17800 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
17801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17802 | $as_echo "ok" >&6; } | |
212380e3 AC |
17803 | else |
17804 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17806 | $as_echo "no" >&6; } | |
212380e3 AC |
17807 | fi |
17808 | else | |
7083c021 AC |
17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17810 | $as_echo "no" >&6; } | |
212380e3 AC |
17811 | fi |
17812 | ||
17813 | ||
7083c021 AC |
17814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
17815 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
17816 | if test "${GCC-no}" = yes |
17817 | then | |
b6d0720c | 17818 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 17819 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17820 | else |
17821 | ||
17822 | oldcflags="${CFLAGS-}" | |
17823 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 17824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17825 | /* end confdefs.h. */ |
17826 | ||
17827 | #include <string.h> | |
17828 | #include <stdio.h> | |
17829 | int main(void); | |
17830 | ||
17831 | int | |
17832 | main () | |
17833 | { | |
17834 | ||
b1fc1658 | 17835 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17836 | |
17837 | ; | |
17838 | return 0; | |
17839 | } | |
17840 | _ACEOF | |
7083c021 | 17841 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17842 | charybdis_cv_c_gcc_w_undef=yes |
17843 | else | |
7083c021 | 17844 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 17845 | fi |
631ef239 | 17846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17847 | CFLAGS="${oldcflags}" |
17848 | fi | |
17849 | ||
17850 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
17851 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17853 | $as_echo "ok" >&6; } | |
212380e3 AC |
17854 | else |
17855 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17857 | $as_echo "no" >&6; } | |
212380e3 AC |
17858 | fi |
17859 | else | |
7083c021 AC |
17860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17861 | $as_echo "no" >&6; } | |
212380e3 AC |
17862 | fi |
17863 | ||
17864 | ||
7083c021 AC |
17865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
17866 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
17867 | if test "${GCC-no}" = yes |
17868 | then | |
b6d0720c | 17869 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 17870 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17871 | else |
17872 | ||
17873 | oldcflags="${CFLAGS-}" | |
17874 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 17875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17876 | /* end confdefs.h. */ |
17877 | ||
17878 | #include <string.h> | |
17879 | #include <stdio.h> | |
17880 | int main(void); | |
17881 | ||
17882 | int | |
17883 | main () | |
17884 | { | |
17885 | ||
b1fc1658 | 17886 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17887 | |
17888 | ; | |
17889 | return 0; | |
17890 | } | |
17891 | _ACEOF | |
7083c021 | 17892 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17893 | charybdis_cv_c_gcc_w_packed=yes |
17894 | else | |
7083c021 | 17895 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 17896 | fi |
631ef239 | 17897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17898 | CFLAGS="${oldcflags}" |
17899 | fi | |
17900 | ||
17901 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
17902 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17904 | $as_echo "ok" >&6; } | |
212380e3 AC |
17905 | else |
17906 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
17907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17908 | $as_echo "no" >&6; } | |
212380e3 AC |
17909 | fi |
17910 | else | |
7083c021 AC |
17911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17912 | $as_echo "no" >&6; } | |
212380e3 AC |
17913 | fi |
17914 | ||
17915 | ||
7083c021 AC |
17916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
17917 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
17918 | if test "${GCC-no}" = yes |
17919 | then | |
b6d0720c | 17920 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 17921 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17922 | else |
17923 | ||
17924 | oldcflags="${CFLAGS-}" | |
17925 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 17926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17927 | /* end confdefs.h. */ |
17928 | ||
17929 | #include <string.h> | |
17930 | #include <stdio.h> | |
17931 | int main(void); | |
17932 | ||
17933 | int | |
17934 | main () | |
17935 | { | |
17936 | ||
b1fc1658 | 17937 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17938 | |
17939 | ; | |
17940 | return 0; | |
17941 | } | |
17942 | _ACEOF | |
7083c021 | 17943 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17944 | charybdis_cv_c_gcc_w_nested_externs=yes |
17945 | else | |
7083c021 | 17946 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 17947 | fi |
631ef239 | 17948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17949 | CFLAGS="${oldcflags}" |
17950 | fi | |
17951 | ||
17952 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
17953 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17955 | $as_echo "ok" >&6; } | |
212380e3 AC |
17956 | else |
17957 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
17958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17959 | $as_echo "no" >&6; } | |
212380e3 AC |
17960 | fi |
17961 | else | |
7083c021 AC |
17962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17963 | $as_echo "no" >&6; } | |
212380e3 AC |
17964 | fi |
17965 | ||
17966 | ||
7083c021 AC |
17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
17968 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
17969 | if test "${GCC-no}" = yes |
17970 | then | |
b6d0720c | 17971 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 17972 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17973 | else |
17974 | ||
17975 | oldcflags="${CFLAGS-}" | |
17976 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 17977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17978 | /* end confdefs.h. */ |
17979 | ||
17980 | #include <string.h> | |
17981 | #include <stdio.h> | |
17982 | int main(void); | |
17983 | ||
17984 | int | |
17985 | main () | |
17986 | { | |
17987 | ||
b1fc1658 | 17988 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17989 | |
17990 | ; | |
17991 | return 0; | |
17992 | } | |
17993 | _ACEOF | |
7083c021 | 17994 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17995 | charybdis_cv_c_gcc_w_unused=yes |
17996 | else | |
7083c021 | 17997 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 17998 | fi |
631ef239 | 17999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18000 | CFLAGS="${oldcflags}" |
18001 | fi | |
18002 | ||
18003 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
18004 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
18005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18006 | $as_echo "ok" >&6; } | |
212380e3 AC |
18007 | else |
18008 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
18009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18010 | $as_echo "no" >&6; } | |
212380e3 AC |
18011 | fi |
18012 | else | |
7083c021 AC |
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18014 | $as_echo "no" >&6; } | |
212380e3 AC |
18015 | fi |
18016 | ||
18017 | ||
7083c021 AC |
18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
18019 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
18020 | if test "${GCC-no}" = yes |
18021 | then | |
b6d0720c | 18022 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 18023 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18024 | else |
18025 | ||
18026 | oldcflags="${CFLAGS-}" | |
18027 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 18028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18029 | /* end confdefs.h. */ |
18030 | ||
18031 | #include <string.h> | |
18032 | #include <stdio.h> | |
18033 | int main(void); | |
18034 | ||
18035 | int | |
18036 | main () | |
18037 | { | |
18038 | ||
b1fc1658 | 18039 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18040 | |
18041 | ; | |
18042 | return 0; | |
18043 | } | |
18044 | _ACEOF | |
7083c021 | 18045 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18046 | charybdis_cv_c_gcc_w_redundant_decls=yes |
18047 | else | |
7083c021 | 18048 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 18049 | fi |
631ef239 | 18050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18051 | CFLAGS="${oldcflags}" |
18052 | fi | |
18053 | ||
18054 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
18055 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
18056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18057 | $as_echo "ok" >&6; } | |
212380e3 AC |
18058 | else |
18059 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18061 | $as_echo "no" >&6; } | |
212380e3 AC |
18062 | fi |
18063 | else | |
7083c021 AC |
18064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18065 | $as_echo "no" >&6; } | |
212380e3 AC |
18066 | fi |
18067 | ||
18068 | ||
7083c021 AC |
18069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
18070 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
18071 | if test "${GCC-no}" = yes |
18072 | then | |
b6d0720c | 18073 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 18074 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18075 | else |
18076 | ||
18077 | oldcflags="${CFLAGS-}" | |
18078 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 18079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18080 | /* end confdefs.h. */ |
18081 | ||
18082 | #include <string.h> | |
18083 | #include <stdio.h> | |
18084 | int main(void); | |
18085 | ||
18086 | int | |
18087 | main () | |
18088 | { | |
18089 | ||
b1fc1658 | 18090 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
18091 | |
18092 | ; | |
18093 | return 0; | |
18094 | } | |
18095 | _ACEOF | |
7083c021 | 18096 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
18097 | charybdis_cv_c_gcc_w_float_equal=yes |
18098 | else | |
7083c021 | 18099 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 18100 | fi |
631ef239 | 18101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
18102 | CFLAGS="${oldcflags}" |
18103 | fi | |
18104 | ||
18105 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
18106 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
18108 | $as_echo "ok" >&6; } | |
212380e3 AC |
18109 | else |
18110 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
18111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18112 | $as_echo "no" >&6; } | |
212380e3 AC |
18113 | fi |
18114 | else | |
7083c021 AC |
18115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18116 | $as_echo "no" >&6; } | |
212380e3 AC |
18117 | fi |
18118 | ||
18119 | ||
7083c021 AC |
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
18121 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
18122 | if test "${GCC-no}" = yes |
18123 | then | |
b6d0720c | 18124 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 18125 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
18126 | else |
18127 | ||
18128 | oldcflags="${CFLAGS-}" | |
4a584d41 | 18129 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 18130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
18131 | /* end confdefs.h. */ |
18132 | ||
18133 | #include <string.h> | |
18134 | #include <stdio.h> | |
18135 | int main(void); | |
18136 | ||
18137 | int | |
18138 | main () | |
18139 | { | |
7083c021 AC |
18140 | |
18141 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18142 | ||
212380e3 AC |
18143 | ; |
18144 | return 0; | |
18145 | } | |
18146 | _ACEOF | |
7083c021 AC |
18147 | if ac_fn_c_try_compile "$LINENO"; then : |
18148 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 18149 | else |
7083c021 AC |
18150 | charybdis_cv_c_gcc_w_format=no |
18151 | fi | |
18152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18153 | CFLAGS="${oldcflags}" | |
18154 | fi | |
18155 | ||
18156 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
18157 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18159 | $as_echo "ok" >&6; } | |
18160 | else | |
18161 | charybdis_cv_c_gcc_w_format='' | |
18162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18163 | $as_echo "no" >&6; } | |
18164 | fi | |
18165 | else | |
18166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18167 | $as_echo "no" >&6; } | |
18168 | fi | |
18169 | ||
18170 | ||
18171 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 18172 | |
212380e3 | 18173 | fi |
631ef239 | 18174 | |
7083c021 | 18175 | |
d2c5159a JT |
18176 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
18177 | ||
212380e3 AC |
18178 | |
18179 | ||
18180 | ||
18181 | ||
18182 | ||
18183 | ||
18184 | ||
18185 | ||
18186 | ||
18187 | ||
18188 | ||
18189 | ||
18190 | ||
18191 | if test "$prefix" = "NONE"; then | |
18192 | ||
18193 | cat >>confdefs.h <<_ACEOF | |
18194 | #define IRCD_PREFIX "$ac_default_prefix" | |
18195 | _ACEOF | |
18196 | ||
18197 | ||
18198 | else | |
18199 | ||
18200 | ||
18201 | prefix=`echo $prefix | sed 's/\/$//'` | |
18202 | ||
18203 | cat >>confdefs.h <<_ACEOF | |
18204 | #define IRCD_PREFIX "$prefix" | |
18205 | _ACEOF | |
18206 | ||
18207 | ||
18208 | fi | |
18209 | ||
0d73e7db | 18210 | 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 | 18211 | |
2eff3833 | 18212 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
18213 | |
18214 | ||
18215 | cat >confcache <<\_ACEOF | |
18216 | # This file is a shell script that caches the results of configure | |
18217 | # tests run on this system so they can be shared between configure | |
18218 | # scripts and configure runs, see configure's option --config-cache. | |
18219 | # It is not useful on other systems. If it contains results you don't | |
18220 | # want to keep, you may remove or edit it. | |
18221 | # | |
18222 | # config.status only pays attention to the cache file if you give it | |
18223 | # the --recheck option to rerun configure. | |
18224 | # | |
18225 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18226 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18227 | # following values. | |
18228 | ||
18229 | _ACEOF | |
18230 | ||
18231 | # The following way of writing the cache mishandles newlines in values, | |
18232 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 18233 | # So, we kill variables containing newlines. |
212380e3 AC |
18234 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18235 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
18236 | ( |
18237 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18238 | eval ac_val=\$$ac_var | |
18239 | case $ac_val in #( | |
18240 | *${as_nl}*) | |
18241 | case $ac_var in #( | |
7083c021 AC |
18242 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
18243 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
18244 | esac |
18245 | case $ac_var in #( | |
18246 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
18247 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
18248 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
18249 | esac ;; |
18250 | esac | |
18251 | done | |
18252 | ||
212380e3 | 18253 | (set) 2>&1 | |
631ef239 AC |
18254 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18255 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
18256 | # `set' does not quote correctly, so add quotes: double-quote |
18257 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
18258 | sed -n \ |
18259 | "s/'/'\\\\''/g; | |
18260 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 18261 | ;; #( |
212380e3 AC |
18262 | *) |
18263 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 18264 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 18265 | ;; |
631ef239 AC |
18266 | esac | |
18267 | sort | |
18268 | ) | | |
212380e3 | 18269 | sed ' |
631ef239 | 18270 | /^ac_cv_env_/b end |
212380e3 | 18271 | t clear |
631ef239 | 18272 | :clear |
212380e3 AC |
18273 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18274 | t end | |
631ef239 AC |
18275 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18276 | :end' >>confcache | |
18277 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18278 | if test -w "$cache_file"; then | |
b6d0720c | 18279 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
18280 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18281 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
18282 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18283 | cat confcache >"$cache_file" | |
18284 | else | |
18285 | case $cache_file in #( | |
18286 | */* | ?:*) | |
18287 | mv -f confcache "$cache_file"$$ && | |
18288 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18289 | *) | |
18290 | mv -f confcache "$cache_file" ;; | |
18291 | esac | |
18292 | fi | |
18293 | fi | |
212380e3 | 18294 | else |
7083c021 AC |
18295 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18296 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
18297 | fi |
18298 | fi | |
18299 | rm -f confcache | |
18300 | ||
18301 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18302 | # Let make expand exec_prefix. | |
18303 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18304 | ||
212380e3 AC |
18305 | DEFS=-DHAVE_CONFIG_H |
18306 | ||
18307 | ac_libobjs= | |
18308 | ac_ltlibobjs= | |
b6d0720c | 18309 | U= |
212380e3 AC |
18310 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18311 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 18312 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 18313 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
18314 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18315 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
18316 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
18317 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
18318 | done |
18319 | LIBOBJS=$ac_libobjs | |
18320 | ||
18321 | LTLIBOBJS=$ac_ltlibobjs | |
18322 | ||
18323 | ||
c52df125 AC |
18324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
18325 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
18326 | if test -n "$am_sleep_pid"; then | |
18327 | # Hide warnings about reused PIDs. | |
18328 | wait $am_sleep_pid 2>/dev/null | |
18329 | fi | |
18330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
18331 | $as_echo "done" >&6; } | |
c52df125 AC |
18332 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
18333 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
18334 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18335 | fi | |
18336 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
18337 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
18338 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18339 | fi | |
eec2776c AJ |
18340 | if test -n "$EXEEXT"; then |
18341 | am__EXEEXT_TRUE= | |
18342 | am__EXEEXT_FALSE='#' | |
18343 | else | |
18344 | am__EXEEXT_TRUE='#' | |
18345 | am__EXEEXT_FALSE= | |
18346 | fi | |
18347 | ||
c52df125 AC |
18348 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
18349 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
18350 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18351 | fi | |
18352 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
18353 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
18354 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18355 | fi | |
18356 | LT_CONFIG_H=include/setup.h | |
18357 | ||
18358 | _ltdl_libobjs= | |
18359 | _ltdl_ltlibobjs= | |
18360 | if test -n "$_LT_LIBOBJS"; then | |
18361 | # Remove the extension. | |
18362 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
18363 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
18364 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
18365 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
18366 | done | |
18367 | fi | |
18368 | ltdl_LIBOBJS=$_ltdl_libobjs | |
18369 | ||
18370 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
18371 | ||
18372 | ||
18373 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
18374 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
18375 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18376 | fi | |
212380e3 | 18377 | |
7083c021 AC |
18378 | |
18379 | ||
b6d0720c | 18380 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 18381 | ac_write_fail=0 |
212380e3 AC |
18382 | ac_clean_files_save=$ac_clean_files |
18383 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18385 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18386 | as_write_fail=0 | |
18387 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
18388 | #! $SHELL |
18389 | # Generated by $as_me. | |
18390 | # Run this file to recreate the current configuration. | |
18391 | # Compiler output produced by configure, useful for debugging | |
18392 | # configure, is in config.log if it exists. | |
18393 | ||
18394 | debug=false | |
18395 | ac_cs_recheck=false | |
18396 | ac_cs_silent=false | |
212380e3 | 18397 | |
7083c021 AC |
18398 | SHELL=\${CONFIG_SHELL-$SHELL} |
18399 | export SHELL | |
18400 | _ASEOF | |
18401 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18402 | ## -------------------- ## | |
18403 | ## M4sh Initialization. ## | |
18404 | ## -------------------- ## | |
212380e3 | 18405 | |
631ef239 AC |
18406 | # Be more Bourne compatible |
18407 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 18408 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
18409 | emulate sh |
18410 | NULLCMD=: | |
7083c021 | 18411 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
18412 | # is contrary to our usage. Disable this feature. |
18413 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 18414 | setopt NO_GLOB_SUBST |
212380e3 | 18415 | else |
7083c021 AC |
18416 | case `(set -o) 2>/dev/null` in #( |
18417 | *posix*) : | |
18418 | set -o posix ;; #( | |
18419 | *) : | |
18420 | ;; | |
631ef239 | 18421 | esac |
212380e3 AC |
18422 | fi |
18423 | ||
18424 | ||
7083c021 AC |
18425 | as_nl=' |
18426 | ' | |
18427 | export as_nl | |
18428 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18429 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18430 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18431 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18432 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18433 | # but without wasting forks for bash or zsh. | |
18434 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18435 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18436 | as_echo='print -r --' | |
18437 | as_echo_n='print -rn --' | |
18438 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18439 | as_echo='printf %s\n' | |
18440 | as_echo_n='printf %s' | |
18441 | else | |
18442 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18443 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18444 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 18445 | else |
7083c021 AC |
18446 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18447 | as_echo_n_body='eval | |
18448 | arg=$1; | |
18449 | case $arg in #( | |
18450 | *"$as_nl"*) | |
18451 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18452 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18453 | esac; | |
18454 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18455 | ' | |
18456 | export as_echo_n_body | |
18457 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 18458 | fi |
7083c021 AC |
18459 | export as_echo_body |
18460 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
18461 | fi |
18462 | ||
7083c021 AC |
18463 | # The user is always right. |
18464 | if test "${PATH_SEPARATOR+set}" != set; then | |
18465 | PATH_SEPARATOR=: | |
18466 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18467 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18468 | PATH_SEPARATOR=';' | |
18469 | } | |
631ef239 AC |
18470 | fi |
18471 | ||
18472 | ||
18473 | # IFS | |
18474 | # We need space, tab and new line, in precisely that order. Quoting is | |
18475 | # there to prevent editors from complaining about space-tab. | |
18476 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18477 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
18478 | IFS=" "" $as_nl" |
18479 | ||
18480 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 18481 | as_myself= |
7083c021 | 18482 | case $0 in #(( |
631ef239 AC |
18483 | *[\\/]* ) as_myself=$0 ;; |
18484 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18485 | for as_dir in $PATH | |
18486 | do | |
18487 | IFS=$as_save_IFS | |
18488 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
18489 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
18490 | done | |
631ef239 AC |
18491 | IFS=$as_save_IFS |
18492 | ||
18493 | ;; | |
18494 | esac | |
18495 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18496 | # in which case we are not to be found in the path. | |
18497 | if test "x$as_myself" = x; then | |
18498 | as_myself=$0 | |
18499 | fi | |
18500 | if test ! -f "$as_myself"; then | |
7083c021 AC |
18501 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
18502 | exit 1 | |
631ef239 AC |
18503 | fi |
18504 | ||
7083c021 AC |
18505 | # Unset variables that we do not need and which cause bugs (e.g. in |
18506 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18507 | # suppresses any "Segmentation fault" message there. '((' could | |
18508 | # trigger a bug in pdksh 5.2.14. | |
18509 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18510 | do eval test x\${$as_var+set} = xset \ | |
18511 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 18512 | done |
212380e3 AC |
18513 | PS1='$ ' |
18514 | PS2='> ' | |
18515 | PS4='+ ' | |
18516 | ||
7083c021 AC |
18517 | # NLS nuisances. |
18518 | LC_ALL=C | |
18519 | export LC_ALL | |
18520 | LANGUAGE=C | |
18521 | export LANGUAGE | |
18522 | ||
18523 | # CDPATH. | |
18524 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18525 | ||
18526 | ||
b6d0720c AC |
18527 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18528 | # ---------------------------------------- | |
7083c021 AC |
18529 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18530 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 18531 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
18532 | as_fn_error () |
18533 | { | |
b6d0720c AC |
18534 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18535 | if test "$4"; then | |
18536 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18537 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 18538 | fi |
b6d0720c | 18539 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
18540 | as_fn_exit $as_status |
18541 | } # as_fn_error | |
18542 | ||
18543 | ||
18544 | # as_fn_set_status STATUS | |
18545 | # ----------------------- | |
18546 | # Set $? to STATUS, without forking. | |
18547 | as_fn_set_status () | |
18548 | { | |
18549 | return $1 | |
18550 | } # as_fn_set_status | |
18551 | ||
18552 | # as_fn_exit STATUS | |
18553 | # ----------------- | |
18554 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18555 | as_fn_exit () | |
18556 | { | |
18557 | set +e | |
18558 | as_fn_set_status $1 | |
18559 | exit $1 | |
18560 | } # as_fn_exit | |
18561 | ||
18562 | # as_fn_unset VAR | |
18563 | # --------------- | |
18564 | # Portably unset VAR. | |
18565 | as_fn_unset () | |
18566 | { | |
18567 | { eval $1=; unset $1;} | |
18568 | } | |
18569 | as_unset=as_fn_unset | |
18570 | # as_fn_append VAR VALUE | |
18571 | # ---------------------- | |
18572 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18573 | # advantage of any shell optimizations that allow amortized linear growth over | |
18574 | # repeated appends, instead of the typical quadratic growth present in naive | |
18575 | # implementations. | |
18576 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18577 | eval 'as_fn_append () | |
18578 | { | |
18579 | eval $1+=\$2 | |
18580 | }' | |
18581 | else | |
18582 | as_fn_append () | |
18583 | { | |
18584 | eval $1=\$$1\$2 | |
18585 | } | |
18586 | fi # as_fn_append | |
18587 | ||
18588 | # as_fn_arith ARG... | |
18589 | # ------------------ | |
18590 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18591 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18592 | # must be portable across $(()) and expr. | |
18593 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18594 | eval 'as_fn_arith () | |
18595 | { | |
18596 | as_val=$(( $* )) | |
18597 | }' | |
18598 | else | |
18599 | as_fn_arith () | |
18600 | { | |
18601 | as_val=`expr "$@" || test $? -eq 1` | |
18602 | } | |
18603 | fi # as_fn_arith | |
18604 | ||
212380e3 | 18605 | |
631ef239 AC |
18606 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18607 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
18608 | as_expr=expr |
18609 | else | |
18610 | as_expr=false | |
18611 | fi | |
18612 | ||
631ef239 | 18613 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
18614 | as_basename=basename |
18615 | else | |
18616 | as_basename=false | |
18617 | fi | |
18618 | ||
7083c021 AC |
18619 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18620 | as_dirname=dirname | |
18621 | else | |
18622 | as_dirname=false | |
18623 | fi | |
212380e3 | 18624 | |
631ef239 | 18625 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
18626 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18627 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 18628 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 18629 | $as_echo X/"$0" | |
631ef239 AC |
18630 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18631 | s//\1/ | |
18632 | q | |
18633 | } | |
18634 | /^X\/\(\/\/\)$/{ | |
18635 | s//\1/ | |
18636 | q | |
18637 | } | |
18638 | /^X\/\(\/\).*/{ | |
18639 | s//\1/ | |
18640 | q | |
18641 | } | |
18642 | s/.*/./; q'` | |
212380e3 | 18643 | |
7083c021 AC |
18644 | # Avoid depending upon Character Ranges. |
18645 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18646 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18647 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18648 | as_cr_digits='0123456789' | |
18649 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
18650 | |
18651 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 18652 | case `echo -n x` in #((((( |
631ef239 | 18653 | -n*) |
7083c021 | 18654 | case `echo 'xy\c'` in |
631ef239 | 18655 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
18656 | xy) ECHO_C='\c';; |
18657 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18658 | ECHO_T=' ';; | |
631ef239 AC |
18659 | esac;; |
18660 | *) | |
18661 | ECHO_N='-n';; | |
212380e3 AC |
18662 | esac |
18663 | ||
212380e3 | 18664 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
18665 | if test -d conf$$.dir; then |
18666 | rm -f conf$$.dir/conf$$.file | |
18667 | else | |
18668 | rm -f conf$$.dir | |
7083c021 AC |
18669 | mkdir conf$$.dir 2>/dev/null |
18670 | fi | |
18671 | if (echo >conf$$.file) 2>/dev/null; then | |
18672 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18673 | as_ln_s='ln -s' | |
18674 | # ... but there are two gotchas: | |
18675 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18676 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 18677 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 18678 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 18679 | as_ln_s='cp -pR' |
7083c021 AC |
18680 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18681 | as_ln_s=ln | |
18682 | else | |
2eff3833 | 18683 | as_ln_s='cp -pR' |
7083c021 | 18684 | fi |
212380e3 | 18685 | else |
2eff3833 | 18686 | as_ln_s='cp -pR' |
212380e3 | 18687 | fi |
631ef239 AC |
18688 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18689 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 18690 | |
7083c021 AC |
18691 | |
18692 | # as_fn_mkdir_p | |
18693 | # ------------- | |
18694 | # Create "$as_dir" as a directory, including parents if necessary. | |
18695 | as_fn_mkdir_p () | |
18696 | { | |
18697 | ||
18698 | case $as_dir in #( | |
18699 | -*) as_dir=./$as_dir;; | |
18700 | esac | |
18701 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18702 | as_dirs= | |
18703 | while :; do | |
18704 | case $as_dir in #( | |
18705 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18706 | *) as_qdir=$as_dir;; | |
18707 | esac | |
18708 | as_dirs="'$as_qdir' $as_dirs" | |
18709 | as_dir=`$as_dirname -- "$as_dir" || | |
18710 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18711 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18712 | X"$as_dir" : 'X\(//\)$' \| \ | |
18713 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18714 | $as_echo X"$as_dir" | | |
18715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18716 | s//\1/ | |
18717 | q | |
18718 | } | |
18719 | /^X\(\/\/\)[^/].*/{ | |
18720 | s//\1/ | |
18721 | q | |
18722 | } | |
18723 | /^X\(\/\/\)$/{ | |
18724 | s//\1/ | |
18725 | q | |
18726 | } | |
18727 | /^X\(\/\).*/{ | |
18728 | s//\1/ | |
18729 | q | |
18730 | } | |
18731 | s/.*/./; q'` | |
18732 | test -d "$as_dir" && break | |
18733 | done | |
18734 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 18735 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
18736 | |
18737 | ||
18738 | } # as_fn_mkdir_p | |
212380e3 | 18739 | if mkdir -p . 2>/dev/null; then |
7083c021 | 18740 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
18741 | else |
18742 | test -d ./-p && rmdir ./-p | |
18743 | as_mkdir_p=false | |
18744 | fi | |
18745 | ||
2eff3833 JT |
18746 | |
18747 | # as_fn_executable_p FILE | |
18748 | # ----------------------- | |
18749 | # Test if FILE is an executable regular file. | |
18750 | as_fn_executable_p () | |
18751 | { | |
18752 | test -f "$1" && test -x "$1" | |
18753 | } # as_fn_executable_p | |
18754 | as_test_x='test -x' | |
18755 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
18756 | |
18757 | # Sed expression to map a string onto a valid CPP name. | |
18758 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18759 | ||
18760 | # Sed expression to map a string onto a valid variable name. | |
18761 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18762 | ||
18763 | ||
212380e3 | 18764 | exec 6>&1 |
7083c021 AC |
18765 | ## ----------------------------------- ## |
18766 | ## Main body of $CONFIG_STATUS script. ## | |
18767 | ## ----------------------------------- ## | |
18768 | _ASEOF | |
18769 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 18770 | |
7083c021 AC |
18771 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18772 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 18773 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
18774 | # values after options handling. |
18775 | ac_log=" | |
c52df125 | 18776 | This file was extended by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 18777 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
18778 | |
18779 | CONFIG_FILES = $CONFIG_FILES | |
18780 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18781 | CONFIG_LINKS = $CONFIG_LINKS | |
18782 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18783 | $ $0 $@ | |
18784 | ||
631ef239 AC |
18785 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18786 | " | |
18787 | ||
212380e3 AC |
18788 | _ACEOF |
18789 | ||
7083c021 AC |
18790 | case $ac_config_files in *" |
18791 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18792 | esac | |
18793 | ||
18794 | case $ac_config_headers in *" | |
18795 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18796 | esac | |
18797 | ||
18798 | ||
18799 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 18800 | # Files that config.status was made for. |
631ef239 AC |
18801 | config_files="$ac_config_files" |
18802 | config_headers="$ac_config_headers" | |
9f9b7042 | 18803 | config_commands="$ac_config_commands" |
212380e3 | 18804 | |
631ef239 | 18805 | _ACEOF |
212380e3 | 18806 | |
7083c021 | 18807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 18808 | ac_cs_usage="\ |
7083c021 AC |
18809 | \`$as_me' instantiates files and other configuration actions |
18810 | from templates according to the current configuration. Unless the files | |
18811 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 18812 | |
7083c021 | 18813 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
18814 | |
18815 | -h, --help print this help, then exit | |
631ef239 | 18816 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 18817 | --config print configuration, then exit |
7083c021 AC |
18818 | -q, --quiet, --silent |
18819 | do not print progress messages | |
212380e3 AC |
18820 | -d, --debug don't remove temporary files |
18821 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
18822 | --file=FILE[:TEMPLATE] |
18823 | instantiate the configuration file FILE | |
18824 | --header=FILE[:TEMPLATE] | |
18825 | instantiate the configuration header FILE | |
212380e3 AC |
18826 | |
18827 | Configuration files: | |
18828 | $config_files | |
18829 | ||
18830 | Configuration headers: | |
18831 | $config_headers | |
18832 | ||
9f9b7042 NPB |
18833 | Configuration commands: |
18834 | $config_commands | |
18835 | ||
7083c021 | 18836 | Report bugs to the package provider." |
212380e3 | 18837 | |
631ef239 | 18838 | _ACEOF |
7083c021 | 18839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 18840 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 18841 | ac_cs_version="\\ |
c52df125 | 18842 | charybdis config.status 3.6.0-dev |
2eff3833 | 18843 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 18844 | with options \\"\$ac_cs_config\\" |
212380e3 | 18845 | |
2eff3833 | 18846 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
18847 | This config.status script is free software; the Free Software Foundation |
18848 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
18849 | |
18850 | ac_pwd='$ac_pwd' | |
18851 | srcdir='$srcdir' | |
18852 | INSTALL='$INSTALL' | |
c52df125 AC |
18853 | MKDIR_P='$MKDIR_P' |
18854 | AWK='$AWK' | |
7083c021 | 18855 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
18856 | _ACEOF |
18857 | ||
7083c021 AC |
18858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18859 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
18860 | ac_need_defaults=: |
18861 | while test $# != 0 | |
18862 | do | |
18863 | case $1 in | |
b6d0720c | 18864 | --*=?*) |
631ef239 AC |
18865 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18866 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
18867 | ac_shift=: |
18868 | ;; | |
b6d0720c AC |
18869 | --*=) |
18870 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18871 | ac_optarg= | |
18872 | ac_shift=: | |
18873 | ;; | |
631ef239 | 18874 | *) |
212380e3 AC |
18875 | ac_option=$1 |
18876 | ac_optarg=$2 | |
18877 | ac_shift=shift | |
18878 | ;; | |
212380e3 AC |
18879 | esac |
18880 | ||
18881 | case $ac_option in | |
18882 | # Handling of the options. | |
212380e3 AC |
18883 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18884 | ac_cs_recheck=: ;; | |
631ef239 | 18885 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 18886 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
18887 | --config | --confi | --conf | --con | --co | --c ) |
18888 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 18889 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
18890 | debug=: ;; |
18891 | --file | --fil | --fi | --f ) | |
18892 | $ac_shift | |
7083c021 AC |
18893 | case $ac_optarg in |
18894 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 18895 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
18896 | esac |
18897 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
18898 | ac_need_defaults=false;; |
18899 | --header | --heade | --head | --hea ) | |
18900 | $ac_shift | |
7083c021 AC |
18901 | case $ac_optarg in |
18902 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18903 | esac | |
18904 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 18905 | ac_need_defaults=false;; |
631ef239 AC |
18906 | --he | --h) |
18907 | # Conflict between --help and --header | |
b6d0720c | 18908 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 18909 | Try \`$0 --help' for more information.";; |
631ef239 | 18910 | --help | --hel | -h ) |
7083c021 | 18911 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
18912 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18913 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18914 | ac_cs_silent=: ;; | |
18915 | ||
18916 | # This is an error. | |
b6d0720c | 18917 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 18918 | Try \`$0 --help' for more information." ;; |
212380e3 | 18919 | |
7083c021 | 18920 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 18921 | ac_need_defaults=false ;; |
212380e3 AC |
18922 | |
18923 | esac | |
18924 | shift | |
18925 | done | |
18926 | ||
18927 | ac_configure_extra_args= | |
18928 | ||
18929 | if $ac_cs_silent; then | |
18930 | exec 6>/dev/null | |
18931 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18932 | fi | |
18933 | ||
18934 | _ACEOF | |
7083c021 | 18935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 18936 | if \$ac_cs_recheck; then |
2eff3833 | 18937 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
18938 | shift |
18939 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18940 | CONFIG_SHELL='$SHELL' | |
631ef239 | 18941 | export CONFIG_SHELL |
7083c021 | 18942 | exec "\$@" |
212380e3 AC |
18943 | fi |
18944 | ||
18945 | _ACEOF | |
7083c021 | 18946 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18947 | exec 5>>config.log |
18948 | { | |
18949 | echo | |
18950 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18951 | ## Running $as_me. ## | |
18952 | _ASBOX | |
7083c021 | 18953 | $as_echo "$ac_log" |
631ef239 | 18954 | } >&5 |
212380e3 | 18955 | |
631ef239 | 18956 | _ACEOF |
7083c021 | 18957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c52df125 AC |
18958 | # |
18959 | # INIT-COMMANDS | |
18960 | # | |
18961 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18962 | ||
18963 | ||
18964 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18965 | # if CDPATH is set. | |
18966 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18967 | ||
18968 | sed_quote_subst='$sed_quote_subst' | |
18969 | double_quote_subst='$double_quote_subst' | |
18970 | delay_variable_subst='$delay_variable_subst' | |
18971 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18972 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18973 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18974 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18975 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18976 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18977 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18978 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18979 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18980 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18981 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18982 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18983 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18984 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18985 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18986 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18987 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18988 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18989 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18990 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18991 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18992 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18993 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18994 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18995 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18996 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18997 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18998 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18999 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
19000 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19001 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19002 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
19003 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
19004 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
19005 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
19006 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
19007 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
19008 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
19009 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
19010 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
19011 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
19012 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
19013 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
19014 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
19015 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
19016 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19017 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19018 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19019 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
19020 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
19021 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
19022 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
19023 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
19024 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
19025 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
19026 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
19027 | 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"`' | |
19028 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19029 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
19030 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
19031 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
19032 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
19033 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
19034 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
19035 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
19036 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
19037 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
19038 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
19039 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
19040 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
19041 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
19042 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
19043 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
19044 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
19045 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
19046 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19047 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
19048 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
19049 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19050 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19051 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
19052 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
19053 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19054 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19055 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19056 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
19057 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19058 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
19059 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19060 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19061 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19062 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
19063 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
19064 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
19065 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
19066 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19067 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
19068 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
19069 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
19070 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
19071 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
19072 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
19073 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
19074 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
19075 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
19076 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19077 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
19078 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
19079 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
19080 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
19081 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
19082 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19083 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
19084 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
19085 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
19086 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
19087 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
19088 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19089 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19090 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
19091 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
19092 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
19093 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
19094 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
19095 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
19096 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
19097 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
19098 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
19099 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
19100 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
19101 | ||
19102 | LTCC='$LTCC' | |
19103 | LTCFLAGS='$LTCFLAGS' | |
19104 | compiler='$compiler_DEFAULT' | |
19105 | ||
19106 | # A function that is used when there is no print builtin or printf. | |
19107 | func_fallback_echo () | |
19108 | { | |
19109 | eval 'cat <<_LTECHO_EOF | |
19110 | \$1 | |
19111 | _LTECHO_EOF' | |
19112 | } | |
19113 | ||
19114 | # Quote evaled strings. | |
19115 | for var in SHELL \ | |
19116 | ECHO \ | |
19117 | PATH_SEPARATOR \ | |
19118 | SED \ | |
19119 | GREP \ | |
19120 | EGREP \ | |
19121 | FGREP \ | |
19122 | LD \ | |
19123 | NM \ | |
19124 | LN_S \ | |
19125 | lt_SP2NL \ | |
19126 | lt_NL2SP \ | |
19127 | reload_flag \ | |
19128 | OBJDUMP \ | |
19129 | deplibs_check_method \ | |
19130 | file_magic_cmd \ | |
19131 | file_magic_glob \ | |
19132 | want_nocaseglob \ | |
19133 | DLLTOOL \ | |
19134 | sharedlib_from_linklib_cmd \ | |
19135 | AR \ | |
19136 | AR_FLAGS \ | |
19137 | archiver_list_spec \ | |
19138 | STRIP \ | |
19139 | RANLIB \ | |
19140 | CC \ | |
19141 | CFLAGS \ | |
19142 | compiler \ | |
19143 | lt_cv_sys_global_symbol_pipe \ | |
19144 | lt_cv_sys_global_symbol_to_cdecl \ | |
19145 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19146 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19147 | nm_file_list_spec \ | |
19148 | lt_prog_compiler_no_builtin_flag \ | |
19149 | lt_prog_compiler_pic \ | |
19150 | lt_prog_compiler_wl \ | |
19151 | lt_prog_compiler_static \ | |
19152 | lt_cv_prog_compiler_c_o \ | |
19153 | need_locks \ | |
19154 | MANIFEST_TOOL \ | |
19155 | DSYMUTIL \ | |
19156 | NMEDIT \ | |
19157 | LIPO \ | |
19158 | OTOOL \ | |
19159 | OTOOL64 \ | |
19160 | shrext_cmds \ | |
19161 | export_dynamic_flag_spec \ | |
19162 | whole_archive_flag_spec \ | |
19163 | compiler_needs_object \ | |
19164 | with_gnu_ld \ | |
19165 | allow_undefined_flag \ | |
19166 | no_undefined_flag \ | |
19167 | hardcode_libdir_flag_spec \ | |
19168 | hardcode_libdir_separator \ | |
19169 | exclude_expsyms \ | |
19170 | include_expsyms \ | |
19171 | file_list_spec \ | |
19172 | variables_saved_for_relink \ | |
19173 | libname_spec \ | |
19174 | library_names_spec \ | |
19175 | soname_spec \ | |
19176 | install_override_mode \ | |
19177 | finish_eval \ | |
19178 | old_striplib \ | |
19179 | striplib; do | |
19180 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19181 | *[\\\\\\\`\\"\\\$]*) | |
19182 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19183 | ;; | |
19184 | *) | |
19185 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19186 | ;; | |
19187 | esac | |
19188 | done | |
19189 | ||
19190 | # Double-quote double-evaled strings. | |
19191 | for var in reload_cmds \ | |
19192 | old_postinstall_cmds \ | |
19193 | old_postuninstall_cmds \ | |
19194 | old_archive_cmds \ | |
19195 | extract_expsyms_cmds \ | |
19196 | old_archive_from_new_cmds \ | |
19197 | old_archive_from_expsyms_cmds \ | |
19198 | archive_cmds \ | |
19199 | archive_expsym_cmds \ | |
19200 | module_cmds \ | |
19201 | module_expsym_cmds \ | |
19202 | export_symbols_cmds \ | |
19203 | prelink_cmds \ | |
19204 | postlink_cmds \ | |
19205 | postinstall_cmds \ | |
19206 | postuninstall_cmds \ | |
19207 | finish_cmds \ | |
19208 | sys_lib_search_path_spec \ | |
19209 | sys_lib_dlsearch_path_spec; do | |
19210 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19211 | *[\\\\\\\`\\"\\\$]*) | |
19212 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19213 | ;; | |
19214 | *) | |
19215 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19216 | ;; | |
19217 | esac | |
19218 | done | |
19219 | ||
19220 | ac_aux_dir='$ac_aux_dir' | |
19221 | xsi_shell='$xsi_shell' | |
19222 | lt_shell_append='$lt_shell_append' | |
19223 | ||
19224 | # See if we are running on zsh, and set the options which allow our | |
19225 | # commands through without removal of \ escapes INIT. | |
19226 | if test -n "\${ZSH_VERSION+set}" ; then | |
19227 | setopt NO_GLOB_SUBST | |
19228 | fi | |
19229 | ||
19230 | ||
19231 | PACKAGE='$PACKAGE' | |
19232 | VERSION='$VERSION' | |
19233 | TIMESTAMP='$TIMESTAMP' | |
19234 | RM='$RM' | |
19235 | ofile='$ofile' | |
19236 | ||
19237 | ||
19238 | ||
19239 | ||
631ef239 | 19240 | _ACEOF |
212380e3 | 19241 | |
7083c021 | 19242 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19243 | |
19244 | # Handling of arguments. | |
212380e3 AC |
19245 | for ac_config_target in $ac_config_targets |
19246 | do | |
631ef239 AC |
19247 | case $ac_config_target in |
19248 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
c52df125 AC |
19249 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
19250 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
631ef239 | 19251 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
0d73e7db | 19252 | "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;; |
7083c021 | 19253 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 19254 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 19255 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
46fded53 | 19256 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; |
631ef239 AC |
19257 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
19258 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 19259 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
19260 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
19261 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 19262 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 19263 | |
b6d0720c | 19264 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
19265 | esac |
19266 | done | |
19267 | ||
631ef239 | 19268 | |
212380e3 AC |
19269 | # If the user did not use the arguments to specify the items to instantiate, |
19270 | # then the envvar interface is used. Set only those that are not. | |
19271 | # We use the long form for the default assignment because of an extremely | |
19272 | # bizarre bug on SunOS 4.1.3. | |
19273 | if $ac_need_defaults; then | |
19274 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19275 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 19276 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
19277 | fi |
19278 | ||
19279 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 19280 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 19281 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
19282 | # Hook for its removal unless debugging. |
19283 | # Note that there is a small window in which the directory will not be cleaned: | |
19284 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
19285 | $debug || |
19286 | { | |
b6d0720c | 19287 | tmp= ac_tmp= |
631ef239 | 19288 | trap 'exit_status=$? |
b6d0720c AC |
19289 | : "${ac_tmp:=$tmp}" |
19290 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 19291 | ' 0 |
7083c021 | 19292 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 19293 | } |
212380e3 AC |
19294 | # Create a (secure) tmp directory for tmp files. |
19295 | ||
19296 | { | |
631ef239 | 19297 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 19298 | test -d "$tmp" |
212380e3 AC |
19299 | } || |
19300 | { | |
631ef239 AC |
19301 | tmp=./conf$$-$RANDOM |
19302 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
19303 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19304 | ac_tmp=$tmp | |
212380e3 | 19305 | |
7083c021 AC |
19306 | # Set up the scripts for CONFIG_FILES section. |
19307 | # No need to generate them if there are no CONFIG_FILES. | |
19308 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
19309 | if test -n "$CONFIG_FILES"; then |
19310 | ||
631ef239 | 19311 | |
7083c021 AC |
19312 | ac_cr=`echo X | tr X '\015'` |
19313 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19314 | # But we know of no other shell where ac_cr would be empty at this | |
19315 | # point, so we can use a bashism as a fallback. | |
19316 | if test "x$ac_cr" = x; then | |
19317 | eval ac_cr=\$\'\\r\' | |
19318 | fi | |
19319 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19320 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 19321 | ac_cs_awk_cr='\\r' |
7083c021 AC |
19322 | else |
19323 | ac_cs_awk_cr=$ac_cr | |
19324 | fi | |
19325 | ||
b6d0720c | 19326 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 19327 | _ACEOF |
631ef239 AC |
19328 | |
19329 | ||
7083c021 AC |
19330 | { |
19331 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19332 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19333 | echo "_ACEOF" | |
19334 | } >conf$$subs.sh || | |
b6d0720c AC |
19335 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19336 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
19337 | ac_delim='%!_!# ' |
19338 | for ac_last_try in false false false false false :; do | |
7083c021 | 19339 | . ./conf$$subs.sh || |
b6d0720c | 19340 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
19341 | |
19342 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19343 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
19344 | break |
19345 | elif $ac_last_try; then | |
b6d0720c | 19346 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
19347 | else |
19348 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 19349 | fi |
631ef239 | 19350 | done |
7083c021 AC |
19351 | rm -f conf$$subs.sh |
19352 | ||
19353 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 19354 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
19355 | _ACEOF |
19356 | sed -n ' | |
19357 | h | |
19358 | s/^/S["/; s/!.*/"]=/ | |
19359 | p | |
19360 | g | |
19361 | s/^[^!]*!// | |
19362 | :repl | |
19363 | t repl | |
19364 | s/'"$ac_delim"'$// | |
19365 | t delim | |
19366 | :nl | |
19367 | h | |
6fb6bd15 | 19368 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
19369 | t more1 |
19370 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19371 | p | |
19372 | n | |
19373 | b repl | |
19374 | :more1 | |
19375 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19376 | p | |
19377 | g | |
19378 | s/.\{148\}// | |
19379 | t nl | |
19380 | :delim | |
19381 | h | |
6fb6bd15 | 19382 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
19383 | t more2 |
19384 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19385 | p | |
19386 | b | |
19387 | :more2 | |
19388 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19389 | p | |
19390 | g | |
19391 | s/.\{148\}// | |
19392 | t delim | |
19393 | ' <conf$$subs.awk | sed ' | |
19394 | /^[^""]/{ | |
19395 | N | |
19396 | s/\n// | |
19397 | } | |
19398 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19399 | rm -f conf$$subs.awk | |
19400 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19401 | _ACAWK | |
b6d0720c | 19402 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
19403 | for (key in S) S_is_set[key] = 1 |
19404 | FS = "\a" | |
212380e3 | 19405 | |
7083c021 AC |
19406 | } |
19407 | { | |
19408 | line = $ 0 | |
19409 | nfields = split(line, field, "@") | |
19410 | substed = 0 | |
19411 | len = length(field[1]) | |
19412 | for (i = 2; i < nfields; i++) { | |
19413 | key = field[i] | |
19414 | keylen = length(key) | |
19415 | if (S_is_set[key]) { | |
19416 | value = S[key] | |
19417 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19418 | len += length(value) + length(field[++i]) | |
19419 | substed = 1 | |
19420 | } else | |
19421 | len += 1 + keylen | |
19422 | } | |
631ef239 | 19423 | |
7083c021 AC |
19424 | print line |
19425 | } | |
19426 | ||
19427 | _ACAWK | |
631ef239 | 19428 | _ACEOF |
7083c021 AC |
19429 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19430 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19431 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19432 | else | |
19433 | cat | |
b6d0720c AC |
19434 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19435 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 19436 | _ACEOF |
631ef239 | 19437 | |
b6d0720c AC |
19438 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19439 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
19440 | # trailing colons and then remove the whole line if VPATH becomes empty |
19441 | # (actually we leave an empty line to preserve line numbers). | |
19442 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
19443 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19444 | h | |
19445 | s/// | |
19446 | s/^/:/ | |
19447 | s/[ ]*$/:/ | |
19448 | s/:\$(srcdir):/:/g | |
19449 | s/:\${srcdir}:/:/g | |
19450 | s/:@srcdir@:/:/g | |
19451 | s/^:*// | |
631ef239 | 19452 | s/:*$// |
b6d0720c AC |
19453 | x |
19454 | s/\(=[ ]*\).*/\1/ | |
19455 | G | |
19456 | s/\n// | |
631ef239 AC |
19457 | s/^[^=]*=[ ]*$// |
19458 | }' | |
19459 | fi | |
19460 | ||
7083c021 | 19461 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19462 | fi # test -n "$CONFIG_FILES" |
19463 | ||
7083c021 AC |
19464 | # Set up the scripts for CONFIG_HEADERS section. |
19465 | # No need to generate them if there are no CONFIG_HEADERS. | |
19466 | # This happens for instance with `./config.status Makefile'. | |
19467 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 19468 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
19469 | BEGIN { |
19470 | _ACEOF | |
19471 | ||
19472 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19473 | # here-document in config.status, that substitutes the proper values into | |
19474 | # config.h.in to produce config.h. | |
19475 | ||
19476 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19477 | # handling of long lines. | |
19478 | ac_delim='%!_!# ' | |
19479 | for ac_last_try in false false :; do | |
b6d0720c AC |
19480 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
19481 | if test -z "$ac_tt"; then | |
7083c021 AC |
19482 | break |
19483 | elif $ac_last_try; then | |
b6d0720c | 19484 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
19485 | else |
19486 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19487 | fi | |
19488 | done | |
19489 | ||
19490 | # For the awk script, D is an array of macro values keyed by name, | |
19491 | # likewise P contains macro parameters if any. Preserve backslash | |
19492 | # newline sequences. | |
19493 | ||
19494 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19495 | sed -n ' | |
19496 | s/.\{148\}/&'"$ac_delim"'/g | |
19497 | t rset | |
19498 | :rset | |
19499 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19500 | t def | |
19501 | d | |
19502 | :def | |
19503 | s/\\$// | |
19504 | t bsnl | |
19505 | s/["\\]/\\&/g | |
19506 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19507 | D["\1"]=" \3"/p | |
19508 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19509 | d | |
19510 | :bsnl | |
19511 | s/["\\]/\\&/g | |
19512 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19513 | D["\1"]=" \3\\\\\\n"\\/p | |
19514 | t cont | |
19515 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19516 | t cont | |
19517 | d | |
19518 | :cont | |
19519 | n | |
19520 | s/.\{148\}/&'"$ac_delim"'/g | |
19521 | t clear | |
19522 | :clear | |
19523 | s/\\$// | |
19524 | t bsnlc | |
19525 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19526 | d | |
19527 | :bsnlc | |
19528 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19529 | b cont | |
19530 | ' <confdefs.h | sed ' | |
19531 | s/'"$ac_delim"'/"\\\ | |
19532 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19533 | ||
19534 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19535 | for (key in D) D_is_set[key] = 1 | |
19536 | FS = "\a" | |
19537 | } | |
19538 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19539 | line = \$ 0 | |
19540 | split(line, arg, " ") | |
19541 | if (arg[1] == "#") { | |
19542 | defundef = arg[2] | |
19543 | mac1 = arg[3] | |
19544 | } else { | |
19545 | defundef = substr(arg[1], 2) | |
19546 | mac1 = arg[2] | |
19547 | } | |
19548 | split(mac1, mac2, "(") #) | |
19549 | macro = mac2[1] | |
19550 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19551 | if (D_is_set[macro]) { | |
19552 | # Preserve the white space surrounding the "#". | |
19553 | print prefix "define", macro P[macro] D[macro] | |
19554 | next | |
19555 | } else { | |
19556 | # Replace #undef with comments. This is necessary, for example, | |
19557 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19558 | # on some systems where configure will not decide to define it. | |
19559 | if (defundef == "undef") { | |
19560 | print "/*", prefix defundef, macro, "*/" | |
19561 | next | |
19562 | } | |
19563 | } | |
19564 | } | |
19565 | { print } | |
19566 | _ACAWK | |
19567 | _ACEOF | |
19568 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 19569 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
19570 | fi # test -n "$CONFIG_HEADERS" |
19571 | ||
631ef239 | 19572 | |
9f9b7042 | 19573 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
19574 | shift |
19575 | for ac_tag | |
631ef239 AC |
19576 | do |
19577 | case $ac_tag in | |
19578 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19579 | esac | |
19580 | case $ac_mode$ac_tag in | |
19581 | :[FHL]*:*);; | |
b6d0720c | 19582 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
19583 | :[FH]-) ac_tag=-:-;; |
19584 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 19585 | esac |
631ef239 AC |
19586 | ac_save_IFS=$IFS |
19587 | IFS=: | |
19588 | set x $ac_tag | |
19589 | IFS=$ac_save_IFS | |
19590 | shift | |
19591 | ac_file=$1 | |
19592 | shift | |
212380e3 | 19593 | |
631ef239 AC |
19594 | case $ac_mode in |
19595 | :L) ac_source=$1;; | |
19596 | :[FH]) | |
19597 | ac_file_inputs= | |
19598 | for ac_f | |
19599 | do | |
19600 | case $ac_f in | |
b6d0720c | 19601 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
19602 | *) # Look for the file first in the build tree, then in the source tree |
19603 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19604 | # because $ac_f cannot contain `:'. | |
19605 | test -f "$ac_f" || | |
19606 | case $ac_f in | |
19607 | [\\/$]*) false;; | |
19608 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19609 | esac || | |
b6d0720c | 19610 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 19611 | esac |
7083c021 AC |
19612 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19613 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
19614 | done |
19615 | ||
19616 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19617 | # use $as_me), people would be surprised to read: | |
19618 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
19619 | configure_input='Generated from '` |
19620 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19621 | `' by configure.' | |
631ef239 AC |
19622 | if test x"$ac_file" != x-; then |
19623 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
19624 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
19625 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 19626 | fi |
7083c021 AC |
19627 | # Neutralize special characters interpreted by sed in replacement strings. |
19628 | case $configure_input in #( | |
19629 | *\&* | *\|* | *\\* ) | |
19630 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19631 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19632 | *) ac_sed_conf_input=$configure_input;; | |
19633 | esac | |
631ef239 AC |
19634 | |
19635 | case $ac_tag in | |
b6d0720c AC |
19636 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19637 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
19638 | esac |
19639 | ;; | |
19640 | esac | |
19641 | ||
19642 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
19643 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19644 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19645 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 19646 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 19647 | $as_echo X"$ac_file" | |
631ef239 AC |
19648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19649 | s//\1/ | |
19650 | q | |
19651 | } | |
19652 | /^X\(\/\/\)[^/].*/{ | |
19653 | s//\1/ | |
19654 | q | |
19655 | } | |
19656 | /^X\(\/\/\)$/{ | |
19657 | s//\1/ | |
19658 | q | |
19659 | } | |
19660 | /^X\(\/\).*/{ | |
19661 | s//\1/ | |
19662 | q | |
19663 | } | |
19664 | s/.*/./; q'` | |
7083c021 | 19665 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
19666 | ac_builddir=. |
19667 | ||
631ef239 AC |
19668 | case "$ac_dir" in |
19669 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19670 | *) | |
7083c021 | 19671 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 19672 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 19673 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
19674 | case $ac_top_builddir_sub in |
19675 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19676 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19677 | esac ;; | |
19678 | esac | |
19679 | ac_abs_top_builddir=$ac_pwd | |
19680 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19681 | # for backward compatibility: | |
19682 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
19683 | |
19684 | case $srcdir in | |
631ef239 | 19685 | .) # We are building in place. |
212380e3 | 19686 | ac_srcdir=. |
631ef239 AC |
19687 | ac_top_srcdir=$ac_top_builddir_sub |
19688 | ac_abs_top_srcdir=$ac_pwd ;; | |
19689 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 19690 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
19691 | ac_top_srcdir=$srcdir |
19692 | ac_abs_top_srcdir=$srcdir ;; | |
19693 | *) # Relative name. | |
19694 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19695 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19696 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 19697 | esac |
631ef239 | 19698 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 19699 | |
212380e3 | 19700 | |
631ef239 AC |
19701 | case $ac_mode in |
19702 | :F) | |
19703 | # | |
19704 | # CONFIG_FILE | |
19705 | # | |
212380e3 AC |
19706 | |
19707 | case $INSTALL in | |
19708 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 19709 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 19710 | esac |
c52df125 AC |
19711 | ac_MKDIR_P=$MKDIR_P |
19712 | case $MKDIR_P in | |
19713 | [\\/$]* | ?:[\\/]* ) ;; | |
19714 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19715 | esac | |
631ef239 | 19716 | _ACEOF |
212380e3 | 19717 | |
7083c021 | 19718 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19719 | # If the template does not know about datarootdir, expand it. |
19720 | # FIXME: This hack should be removed a few years after 2.60. | |
19721 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
19722 | ac_sed_dataroot=' |
19723 | /datarootdir/ { | |
631ef239 AC |
19724 | p |
19725 | q | |
19726 | } | |
19727 | /@datadir@/p | |
19728 | /@docdir@/p | |
19729 | /@infodir@/p | |
19730 | /@localedir@/p | |
7083c021 AC |
19731 | /@mandir@/p' |
19732 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
19733 | *datarootdir*) ac_datarootdir_seen=yes;; |
19734 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
19735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19736 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 19737 | _ACEOF |
7083c021 | 19738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
19739 | ac_datarootdir_hack=' |
19740 | s&@datadir@&$datadir&g | |
19741 | s&@docdir@&$docdir&g | |
19742 | s&@infodir@&$infodir&g | |
19743 | s&@localedir@&$localedir&g | |
19744 | s&@mandir@&$mandir&g | |
7083c021 | 19745 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 19746 | esac |
212380e3 | 19747 | _ACEOF |
631ef239 AC |
19748 | |
19749 | # Neutralize VPATH when `$srcdir' = `.'. | |
19750 | # Shell code in configure.ac might set extrasub. | |
19751 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
19752 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19753 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
19754 | $extrasub |
19755 | _ACEOF | |
7083c021 | 19756 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
19757 | :t |
19758 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 19759 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 19760 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 19761 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
19762 | s&@srcdir@&$ac_srcdir&;t t |
19763 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19764 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19765 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19766 | s&@builddir@&$ac_builddir&;t t | |
19767 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19768 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19769 | s&@INSTALL@&$ac_INSTALL&;t t | |
c52df125 | 19770 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
631ef239 | 19771 | $ac_datarootdir_hack |
7083c021 | 19772 | " |
b6d0720c AC |
19773 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19774 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
19775 | |
19776 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
19777 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19778 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19779 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 19780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19781 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 19782 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19783 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 19784 | |
b6d0720c | 19785 | rm -f "$ac_tmp/stdin" |
212380e3 | 19786 | case $ac_file in |
b6d0720c AC |
19787 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19788 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 19789 | esac \ |
b6d0720c | 19790 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
19791 | ;; |
19792 | :H) | |
19793 | # | |
19794 | # CONFIG_HEADER | |
19795 | # | |
212380e3 | 19796 | if test x"$ac_file" != x-; then |
7083c021 AC |
19797 | { |
19798 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
19799 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19800 | } >"$ac_tmp/config.h" \ | |
19801 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19802 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
19803 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19804 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 19805 | else |
7083c021 | 19806 | rm -f "$ac_file" |
b6d0720c AC |
19807 | mv "$ac_tmp/config.h" "$ac_file" \ |
19808 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
19809 | fi |
19810 | else | |
7083c021 | 19811 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
19812 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19813 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 19814 | fi |
c52df125 AC |
19815 | # Compute "$ac_file"'s index in $config_headers. |
19816 | _am_arg="$ac_file" | |
19817 | _am_stamp_count=1 | |
19818 | for _am_header in $config_headers :; do | |
19819 | case $_am_header in | |
19820 | $_am_arg | $_am_arg:* ) | |
19821 | break ;; | |
19822 | * ) | |
19823 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19824 | esac | |
19825 | done | |
19826 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19827 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19828 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19829 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19830 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19831 | $as_echo X"$_am_arg" | | |
19832 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19833 | s//\1/ | |
19834 | q | |
19835 | } | |
19836 | /^X\(\/\/\)[^/].*/{ | |
19837 | s//\1/ | |
19838 | q | |
19839 | } | |
19840 | /^X\(\/\/\)$/{ | |
19841 | s//\1/ | |
19842 | q | |
19843 | } | |
19844 | /^X\(\/\).*/{ | |
19845 | s//\1/ | |
19846 | q | |
19847 | } | |
19848 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
631ef239 AC |
19849 | ;; |
19850 | ||
9f9b7042 NPB |
19851 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19852 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19853 | ;; | |
631ef239 AC |
19854 | esac |
19855 | ||
9f9b7042 NPB |
19856 | |
19857 | case $ac_file$ac_mode in | |
c52df125 AC |
19858 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
19859 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19860 | # are listed without --file. Let's play safe and only enable the eval | |
19861 | # if we detect the quoting. | |
19862 | case $CONFIG_FILES in | |
19863 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19864 | *) set x $CONFIG_FILES ;; | |
19865 | esac | |
19866 | shift | |
19867 | for mf | |
19868 | do | |
19869 | # Strip MF so we end up with the name of the file. | |
19870 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19871 | # Check whether this is an Automake generated Makefile or not. | |
19872 | # We used to match only the files named 'Makefile.in', but | |
19873 | # some people rename them; so instead we look at the file content. | |
19874 | # Grep'ing the first line is not enough: some people post-process | |
19875 | # each Makefile.in and add a new line on top of each file to say so. | |
19876 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19877 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19878 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19879 | dirpart=`$as_dirname -- "$mf" || | |
19880 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19881 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19882 | X"$mf" : 'X\(//\)$' \| \ | |
19883 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19884 | $as_echo X"$mf" | | |
19885 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19886 | s//\1/ | |
19887 | q | |
19888 | } | |
19889 | /^X\(\/\/\)[^/].*/{ | |
19890 | s//\1/ | |
19891 | q | |
19892 | } | |
19893 | /^X\(\/\/\)$/{ | |
19894 | s//\1/ | |
19895 | q | |
19896 | } | |
19897 | /^X\(\/\).*/{ | |
19898 | s//\1/ | |
19899 | q | |
19900 | } | |
19901 | s/.*/./; q'` | |
19902 | else | |
19903 | continue | |
19904 | fi | |
19905 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19906 | # from the Makefile without running 'make'. | |
19907 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19908 | test -z "$DEPDIR" && continue | |
19909 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19910 | test -z "$am__include" && continue | |
19911 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19912 | # Find all dependency output files, they are included files with | |
19913 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19914 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19915 | # expansion. | |
19916 | for file in `sed -n " | |
19917 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19918 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19919 | # Make sure the directory exists. | |
19920 | test -f "$dirpart/$file" && continue | |
19921 | fdir=`$as_dirname -- "$file" || | |
19922 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19923 | X"$file" : 'X\(//\)[^/]' \| \ | |
19924 | X"$file" : 'X\(//\)$' \| \ | |
19925 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19926 | $as_echo X"$file" | | |
19927 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19928 | s//\1/ | |
19929 | q | |
19930 | } | |
19931 | /^X\(\/\/\)[^/].*/{ | |
19932 | s//\1/ | |
19933 | q | |
19934 | } | |
19935 | /^X\(\/\/\)$/{ | |
19936 | s//\1/ | |
19937 | q | |
19938 | } | |
19939 | /^X\(\/\).*/{ | |
19940 | s//\1/ | |
19941 | q | |
19942 | } | |
19943 | s/.*/./; q'` | |
19944 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19945 | # echo "creating $dirpart/$file" | |
19946 | echo '# dummy' > "$dirpart/$file" | |
19947 | done | |
19948 | done | |
19949 | } | |
19950 | ;; | |
19951 | "libtool":C) | |
19952 | ||
19953 | # See if we are running on zsh, and set the options which allow our | |
19954 | # commands through without removal of \ escapes. | |
19955 | if test -n "${ZSH_VERSION+set}" ; then | |
19956 | setopt NO_GLOB_SUBST | |
19957 | fi | |
19958 | ||
19959 | cfgfile="${ofile}T" | |
19960 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19961 | $RM "$cfgfile" | |
19962 | ||
19963 | cat <<_LT_EOF >> "$cfgfile" | |
19964 | #! $SHELL | |
19965 | ||
19966 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19967 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19968 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19969 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19970 | # | |
19971 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19972 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
19973 | # Foundation, Inc. | |
19974 | # Written by Gordon Matzigkeit, 1996 | |
19975 | # | |
19976 | # This file is part of GNU Libtool. | |
19977 | # | |
19978 | # GNU Libtool is free software; you can redistribute it and/or | |
19979 | # modify it under the terms of the GNU General Public License as | |
19980 | # published by the Free Software Foundation; either version 2 of | |
19981 | # the License, or (at your option) any later version. | |
19982 | # | |
19983 | # As a special exception to the GNU General Public License, | |
19984 | # if you distribute this file as part of a program or library that | |
19985 | # is built using GNU Libtool, you may include this file under the | |
19986 | # same distribution terms that you use for the rest of that program. | |
19987 | # | |
19988 | # GNU Libtool is distributed in the hope that it will be useful, | |
19989 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19990 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19991 | # GNU General Public License for more details. | |
19992 | # | |
19993 | # You should have received a copy of the GNU General Public License | |
19994 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19995 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19996 | # obtained by writing to the Free Software Foundation, Inc., | |
19997 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19998 | ||
19999 | ||
20000 | # The names of the tagged configurations supported by this script. | |
20001 | available_tags="" | |
20002 | ||
20003 | # ### BEGIN LIBTOOL CONFIG | |
20004 | ||
20005 | # Which release of libtool.m4 was used? | |
20006 | macro_version=$macro_version | |
20007 | macro_revision=$macro_revision | |
20008 | ||
20009 | # Whether or not to build static libraries. | |
20010 | build_old_libs=$enable_static | |
20011 | ||
20012 | # Whether or not to build shared libraries. | |
20013 | build_libtool_libs=$enable_shared | |
20014 | ||
20015 | # What type of objects to build. | |
20016 | pic_mode=$pic_mode | |
20017 | ||
20018 | # Whether or not to optimize for fast installation. | |
20019 | fast_install=$enable_fast_install | |
20020 | ||
20021 | # Shell to use when invoking shell scripts. | |
20022 | SHELL=$lt_SHELL | |
20023 | ||
20024 | # An echo program that protects backslashes. | |
20025 | ECHO=$lt_ECHO | |
20026 | ||
20027 | # The PATH separator for the build system. | |
20028 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
20029 | ||
20030 | # The host system. | |
20031 | host_alias=$host_alias | |
20032 | host=$host | |
20033 | host_os=$host_os | |
20034 | ||
20035 | # The build system. | |
20036 | build_alias=$build_alias | |
20037 | build=$build | |
20038 | build_os=$build_os | |
20039 | ||
20040 | # A sed program that does not truncate output. | |
20041 | SED=$lt_SED | |
20042 | ||
20043 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
20044 | Xsed="\$SED -e 1s/^X//" | |
20045 | ||
20046 | # A grep program that handles long lines. | |
20047 | GREP=$lt_GREP | |
20048 | ||
20049 | # An ERE matcher. | |
20050 | EGREP=$lt_EGREP | |
20051 | ||
20052 | # A literal string matcher. | |
20053 | FGREP=$lt_FGREP | |
20054 | ||
20055 | # A BSD- or MS-compatible name lister. | |
20056 | NM=$lt_NM | |
20057 | ||
20058 | # Whether we need soft or hard links. | |
20059 | LN_S=$lt_LN_S | |
20060 | ||
20061 | # What is the maximum length of a command? | |
20062 | max_cmd_len=$max_cmd_len | |
20063 | ||
20064 | # Object file suffix (normally "o"). | |
20065 | objext=$ac_objext | |
20066 | ||
20067 | # Executable file suffix (normally ""). | |
20068 | exeext=$exeext | |
20069 | ||
20070 | # whether the shell understands "unset". | |
20071 | lt_unset=$lt_unset | |
20072 | ||
20073 | # turn spaces into newlines. | |
20074 | SP2NL=$lt_lt_SP2NL | |
20075 | ||
20076 | # turn newlines into spaces. | |
20077 | NL2SP=$lt_lt_NL2SP | |
20078 | ||
20079 | # convert \$build file names to \$host format. | |
20080 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
20081 | ||
20082 | # convert \$build files to toolchain format. | |
20083 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
20084 | ||
20085 | # An object symbol dumper. | |
20086 | OBJDUMP=$lt_OBJDUMP | |
20087 | ||
20088 | # Method to check whether dependent libraries are shared objects. | |
20089 | deplibs_check_method=$lt_deplibs_check_method | |
20090 | ||
20091 | # Command to use when deplibs_check_method = "file_magic". | |
20092 | file_magic_cmd=$lt_file_magic_cmd | |
20093 | ||
20094 | # How to find potential files when deplibs_check_method = "file_magic". | |
20095 | file_magic_glob=$lt_file_magic_glob | |
20096 | ||
20097 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
20098 | want_nocaseglob=$lt_want_nocaseglob | |
20099 | ||
20100 | # DLL creation program. | |
20101 | DLLTOOL=$lt_DLLTOOL | |
20102 | ||
20103 | # Command to associate shared and link libraries. | |
20104 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
20105 | ||
20106 | # The archiver. | |
20107 | AR=$lt_AR | |
20108 | ||
20109 | # Flags to create an archive. | |
20110 | AR_FLAGS=$lt_AR_FLAGS | |
20111 | ||
20112 | # How to feed a file listing to the archiver. | |
20113 | archiver_list_spec=$lt_archiver_list_spec | |
20114 | ||
20115 | # A symbol stripping program. | |
20116 | STRIP=$lt_STRIP | |
20117 | ||
20118 | # Commands used to install an old-style archive. | |
20119 | RANLIB=$lt_RANLIB | |
20120 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20121 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20122 | ||
20123 | # Whether to use a lock for old archive extraction. | |
20124 | lock_old_archive_extraction=$lock_old_archive_extraction | |
20125 | ||
20126 | # A C compiler. | |
20127 | LTCC=$lt_CC | |
20128 | ||
20129 | # LTCC compiler flags. | |
20130 | LTCFLAGS=$lt_CFLAGS | |
20131 | ||
20132 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20133 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20134 | ||
20135 | # Transform the output of nm in a proper C declaration. | |
20136 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20137 | ||
20138 | # Transform the output of nm in a C name address pair. | |
20139 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20140 | ||
20141 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20142 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20143 | ||
20144 | # Specify filename containing input files for \$NM. | |
20145 | nm_file_list_spec=$lt_nm_file_list_spec | |
20146 | ||
20147 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
20148 | lt_sysroot=$lt_sysroot | |
20149 | ||
20150 | # The name of the directory that contains temporary libtool files. | |
20151 | objdir=$objdir | |
20152 | ||
20153 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20154 | MAGIC_CMD=$MAGIC_CMD | |
20155 | ||
20156 | # Must we lock files when doing compilation? | |
20157 | need_locks=$lt_need_locks | |
20158 | ||
20159 | # Manifest tool. | |
20160 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
20161 | ||
20162 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20163 | DSYMUTIL=$lt_DSYMUTIL | |
20164 | ||
20165 | # Tool to change global to local symbols on Mac OS X. | |
20166 | NMEDIT=$lt_NMEDIT | |
20167 | ||
20168 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20169 | LIPO=$lt_LIPO | |
20170 | ||
20171 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20172 | OTOOL=$lt_OTOOL | |
20173 | ||
20174 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20175 | OTOOL64=$lt_OTOOL64 | |
20176 | ||
20177 | # Old archive suffix (normally "a"). | |
20178 | libext=$libext | |
20179 | ||
20180 | # Shared library suffix (normally ".so"). | |
20181 | shrext_cmds=$lt_shrext_cmds | |
20182 | ||
20183 | # The commands to extract the exported symbol list from a shared archive. | |
20184 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20185 | ||
20186 | # Variables whose values should be saved in libtool wrapper scripts and | |
20187 | # restored at link time. | |
20188 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
20189 | ||
20190 | # Do we need the "lib" prefix for modules? | |
20191 | need_lib_prefix=$need_lib_prefix | |
20192 | ||
20193 | # Do we need a version for libraries? | |
20194 | need_version=$need_version | |
20195 | ||
20196 | # Library versioning type. | |
20197 | version_type=$version_type | |
20198 | ||
20199 | # Shared library runtime path variable. | |
20200 | runpath_var=$runpath_var | |
20201 | ||
20202 | # Shared library path variable. | |
20203 | shlibpath_var=$shlibpath_var | |
20204 | ||
20205 | # Is shlibpath searched before the hard-coded library search path? | |
20206 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20207 | ||
20208 | # Format of library name prefix. | |
20209 | libname_spec=$lt_libname_spec | |
20210 | ||
20211 | # List of archive names. First name is the real one, the rest are links. | |
20212 | # The last name is the one that the linker finds with -lNAME | |
20213 | library_names_spec=$lt_library_names_spec | |
20214 | ||
20215 | # The coded name of the library, if different from the real name. | |
20216 | soname_spec=$lt_soname_spec | |
20217 | ||
20218 | # Permission mode override for installation of shared libraries. | |
20219 | install_override_mode=$lt_install_override_mode | |
20220 | ||
20221 | # Command to use after installation of a shared archive. | |
20222 | postinstall_cmds=$lt_postinstall_cmds | |
20223 | ||
20224 | # Command to use after uninstallation of a shared archive. | |
20225 | postuninstall_cmds=$lt_postuninstall_cmds | |
20226 | ||
20227 | # Commands used to finish a libtool library installation in a directory. | |
20228 | finish_cmds=$lt_finish_cmds | |
20229 | ||
20230 | # As "finish_cmds", except a single script fragment to be evaled but | |
20231 | # not shown. | |
20232 | finish_eval=$lt_finish_eval | |
20233 | ||
20234 | # Whether we should hardcode library paths into libraries. | |
20235 | hardcode_into_libs=$hardcode_into_libs | |
20236 | ||
20237 | # Compile-time system search path for libraries. | |
20238 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20239 | ||
20240 | # Run-time system search path for libraries. | |
20241 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20242 | ||
20243 | # Whether dlopen is supported. | |
20244 | dlopen_support=$enable_dlopen | |
20245 | ||
20246 | # Whether dlopen of programs is supported. | |
20247 | dlopen_self=$enable_dlopen_self | |
20248 | ||
20249 | # Whether dlopen of statically linked programs is supported. | |
20250 | dlopen_self_static=$enable_dlopen_self_static | |
20251 | ||
20252 | # Commands to strip libraries. | |
20253 | old_striplib=$lt_old_striplib | |
20254 | striplib=$lt_striplib | |
20255 | ||
20256 | ||
20257 | # The linker used to build libraries. | |
20258 | LD=$lt_LD | |
20259 | ||
20260 | # How to create reloadable object files. | |
20261 | reload_flag=$lt_reload_flag | |
20262 | reload_cmds=$lt_reload_cmds | |
20263 | ||
20264 | # Commands used to build an old-style archive. | |
20265 | old_archive_cmds=$lt_old_archive_cmds | |
20266 | ||
20267 | # A language specific compiler. | |
20268 | CC=$lt_compiler | |
20269 | ||
20270 | # Is the compiler the GNU compiler? | |
20271 | with_gcc=$GCC | |
20272 | ||
20273 | # Compiler flag to turn off builtin functions. | |
20274 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
20275 | ||
20276 | # Additional compiler flags for building library objects. | |
20277 | pic_flag=$lt_lt_prog_compiler_pic | |
20278 | ||
20279 | # How to pass a linker flag through the compiler. | |
20280 | wl=$lt_lt_prog_compiler_wl | |
20281 | ||
20282 | # Compiler flag to prevent dynamic linking. | |
20283 | link_static_flag=$lt_lt_prog_compiler_static | |
20284 | ||
20285 | # Does compiler simultaneously support -c and -o options? | |
20286 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
20287 | ||
20288 | # Whether or not to add -lc for building shared libraries. | |
20289 | build_libtool_need_lc=$archive_cmds_need_lc | |
20290 | ||
20291 | # Whether or not to disallow shared libs when runtime libs are static. | |
20292 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
20293 | ||
20294 | # Compiler flag to allow reflexive dlopens. | |
20295 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
20296 | ||
20297 | # Compiler flag to generate shared objects directly from archives. | |
20298 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
20299 | ||
20300 | # Whether the compiler copes with passing no objects directly. | |
20301 | compiler_needs_object=$lt_compiler_needs_object | |
20302 | ||
20303 | # Create an old-style archive from a shared archive. | |
20304 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
20305 | ||
20306 | # Create a temporary old-style archive to link instead of a shared archive. | |
20307 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
20308 | ||
20309 | # Commands used to build a shared archive. | |
20310 | archive_cmds=$lt_archive_cmds | |
20311 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
20312 | ||
20313 | # Commands used to build a loadable module if different from building | |
20314 | # a shared archive. | |
20315 | module_cmds=$lt_module_cmds | |
20316 | module_expsym_cmds=$lt_module_expsym_cmds | |
20317 | ||
20318 | # Whether we are building with GNU ld or not. | |
20319 | with_gnu_ld=$lt_with_gnu_ld | |
20320 | ||
20321 | # Flag that allows shared libraries with undefined symbols to be built. | |
20322 | allow_undefined_flag=$lt_allow_undefined_flag | |
20323 | ||
20324 | # Flag that enforces no undefined symbols. | |
20325 | no_undefined_flag=$lt_no_undefined_flag | |
20326 | ||
20327 | # Flag to hardcode \$libdir into a binary during linking. | |
20328 | # This must work even if \$libdir does not exist | |
20329 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
20330 | ||
20331 | # Whether we need a single "-rpath" flag with a separated argument. | |
20332 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
20333 | ||
20334 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20335 | # DIR into the resulting binary. | |
20336 | hardcode_direct=$hardcode_direct | |
20337 | ||
20338 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20339 | # DIR into the resulting binary and the resulting library dependency is | |
20340 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20341 | # library is relocated. | |
20342 | hardcode_direct_absolute=$hardcode_direct_absolute | |
20343 | ||
20344 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20345 | # into the resulting binary. | |
20346 | hardcode_minus_L=$hardcode_minus_L | |
20347 | ||
20348 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20349 | # into the resulting binary. | |
20350 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
20351 | ||
20352 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20353 | # into the library and all subsequent libraries and executables linked | |
20354 | # against it. | |
20355 | hardcode_automatic=$hardcode_automatic | |
20356 | ||
20357 | # Set to yes if linker adds runtime paths of dependent libraries | |
20358 | # to runtime path list. | |
20359 | inherit_rpath=$inherit_rpath | |
20360 | ||
20361 | # Whether libtool must link a program against all its dependency libraries. | |
20362 | link_all_deplibs=$link_all_deplibs | |
20363 | ||
20364 | # Set to "yes" if exported symbols are required. | |
20365 | always_export_symbols=$always_export_symbols | |
20366 | ||
20367 | # The commands to list exported symbols. | |
20368 | export_symbols_cmds=$lt_export_symbols_cmds | |
20369 | ||
20370 | # Symbols that should not be listed in the preloaded symbols. | |
20371 | exclude_expsyms=$lt_exclude_expsyms | |
20372 | ||
20373 | # Symbols that must always be exported. | |
20374 | include_expsyms=$lt_include_expsyms | |
20375 | ||
20376 | # Commands necessary for linking programs (against libraries) with templates. | |
20377 | prelink_cmds=$lt_prelink_cmds | |
20378 | ||
20379 | # Commands necessary for finishing linking programs. | |
20380 | postlink_cmds=$lt_postlink_cmds | |
20381 | ||
20382 | # Specify filename containing input files. | |
20383 | file_list_spec=$lt_file_list_spec | |
20384 | ||
20385 | # How to hardcode a shared library path into an executable. | |
20386 | hardcode_action=$hardcode_action | |
20387 | ||
20388 | # ### END LIBTOOL CONFIG | |
20389 | ||
20390 | _LT_EOF | |
20391 | ||
20392 | case $host_os in | |
20393 | aix3*) | |
20394 | cat <<\_LT_EOF >> "$cfgfile" | |
20395 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20396 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20397 | # vanish in a puff of smoke. | |
20398 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20399 | COLLECT_NAMES= | |
20400 | export COLLECT_NAMES | |
20401 | fi | |
20402 | _LT_EOF | |
20403 | ;; | |
20404 | esac | |
20405 | ||
20406 | ||
20407 | ltmain="$ac_aux_dir/ltmain.sh" | |
20408 | ||
20409 | ||
20410 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20411 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20412 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20413 | # is reportedly fixed, but why not run on old versions too? | |
20414 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
20415 | || (rm -f "$cfgfile"; exit 1) | |
20416 | ||
20417 | if test x"$xsi_shell" = xyes; then | |
20418 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
20419 | func_dirname ()\ | |
20420 | {\ | |
20421 | \ case ${1} in\ | |
20422 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
20423 | \ * ) func_dirname_result="${3}" ;;\ | |
20424 | \ esac\ | |
20425 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
20426 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20427 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20428 | test 0 -eq $? || _lt_function_replace_fail=: | |
20429 | ||
20430 | ||
20431 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
20432 | func_basename ()\ | |
20433 | {\ | |
20434 | \ func_basename_result="${1##*/}"\ | |
20435 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
20436 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20437 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20438 | test 0 -eq $? || _lt_function_replace_fail=: | |
20439 | ||
20440 | ||
20441 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
20442 | func_dirname_and_basename ()\ | |
20443 | {\ | |
20444 | \ case ${1} in\ | |
20445 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
20446 | \ * ) func_dirname_result="${3}" ;;\ | |
20447 | \ esac\ | |
20448 | \ func_basename_result="${1##*/}"\ | |
20449 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
20450 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20451 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20452 | test 0 -eq $? || _lt_function_replace_fail=: | |
20453 | ||
20454 | ||
20455 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
20456 | func_stripname ()\ | |
20457 | {\ | |
20458 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
20459 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
20460 | \ func_stripname_result=${3}\ | |
20461 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
20462 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
20463 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
20464 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20465 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20466 | test 0 -eq $? || _lt_function_replace_fail=: | |
20467 | ||
20468 | ||
20469 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
20470 | func_split_long_opt ()\ | |
20471 | {\ | |
20472 | \ func_split_long_opt_name=${1%%=*}\ | |
20473 | \ func_split_long_opt_arg=${1#*=}\ | |
20474 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20475 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20476 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20477 | test 0 -eq $? || _lt_function_replace_fail=: | |
20478 | ||
20479 | ||
20480 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
20481 | func_split_short_opt ()\ | |
20482 | {\ | |
20483 | \ func_split_short_opt_arg=${1#??}\ | |
20484 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
20485 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20486 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20487 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20488 | test 0 -eq $? || _lt_function_replace_fail=: | |
20489 | ||
20490 | ||
20491 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
20492 | func_lo2o ()\ | |
20493 | {\ | |
20494 | \ case ${1} in\ | |
20495 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
20496 | \ *) func_lo2o_result=${1} ;;\ | |
20497 | \ esac\ | |
20498 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
20499 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20500 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20501 | test 0 -eq $? || _lt_function_replace_fail=: | |
20502 | ||
20503 | ||
20504 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
20505 | func_xform ()\ | |
20506 | {\ | |
20507 | func_xform_result=${1%.*}.lo\ | |
20508 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
20509 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20510 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20511 | test 0 -eq $? || _lt_function_replace_fail=: | |
20512 | ||
20513 | ||
20514 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
20515 | func_arith ()\ | |
20516 | {\ | |
20517 | func_arith_result=$(( $* ))\ | |
20518 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
20519 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20520 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20521 | test 0 -eq $? || _lt_function_replace_fail=: | |
20522 | ||
20523 | ||
20524 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
20525 | func_len ()\ | |
20526 | {\ | |
20527 | func_len_result=${#1}\ | |
20528 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
20529 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20530 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20531 | test 0 -eq $? || _lt_function_replace_fail=: | |
20532 | ||
20533 | fi | |
20534 | ||
20535 | if test x"$lt_shell_append" = xyes; then | |
20536 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
20537 | func_append ()\ | |
20538 | {\ | |
20539 | eval "${1}+=\\${2}"\ | |
20540 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
20541 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20542 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20543 | test 0 -eq $? || _lt_function_replace_fail=: | |
20544 | ||
20545 | ||
20546 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
20547 | func_append_quoted ()\ | |
20548 | {\ | |
20549 | \ func_quote_for_eval "${2}"\ | |
20550 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
20551 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
20552 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20553 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20554 | test 0 -eq $? || _lt_function_replace_fail=: | |
20555 | ||
20556 | ||
20557 | # Save a `func_append' function call where possible by direct use of '+=' | |
20558 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
20559 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20560 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20561 | test 0 -eq $? || _lt_function_replace_fail=: | |
20562 | else | |
20563 | # Save a `func_append' function call even when '+=' is not available | |
20564 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
20565 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20566 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20567 | test 0 -eq $? || _lt_function_replace_fail=: | |
20568 | fi | |
20569 | ||
20570 | if test x"$_lt_function_replace_fail" = x":"; then | |
20571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
20572 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
20573 | fi | |
20574 | ||
20575 | ||
20576 | mv -f "$cfgfile" "$ofile" || | |
20577 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20578 | chmod +x "$ofile" | |
20579 | ||
20580 | ;; | |
2eff3833 | 20581 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
20582 | |
20583 | esac | |
631ef239 | 20584 | done # for ac_tag |
212380e3 | 20585 | |
212380e3 | 20586 | |
7083c021 | 20587 | as_fn_exit 0 |
212380e3 | 20588 | _ACEOF |
212380e3 AC |
20589 | ac_clean_files=$ac_clean_files_save |
20590 | ||
7083c021 | 20591 | test $ac_write_fail = 0 || |
b6d0720c | 20592 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 20593 | |
212380e3 AC |
20594 | |
20595 | # configure is writing to config.log, and then calls config.status. | |
20596 | # config.status does its own redirection, appending to config.log. | |
20597 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20598 | # by configure, so config.status won't be able to write to it; its | |
20599 | # output is simply discarded. So we exec the FD to /dev/null, | |
20600 | # effectively closing config.log, so it can be properly (re)opened and | |
20601 | # appended to by config.status. When coming back to configure, we | |
20602 | # need to make the FD available again. | |
20603 | if test "$no_create" != yes; then | |
20604 | ac_cs_success=: | |
20605 | ac_config_status_args= | |
20606 | test "$silent" = yes && | |
20607 | ac_config_status_args="$ac_config_status_args --quiet" | |
20608 | exec 5>/dev/null | |
20609 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20610 | exec 5>>config.log | |
20611 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20612 | # would make configure fail if this is the last instruction. | |
b6d0720c | 20613 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 20614 | fi |
1db8e007 JT |
20615 | |
20616 | # | |
20617 | # CONFIG_SUBDIRS section. | |
20618 | # | |
20619 | if test "$no_recursion" != yes; then | |
20620 | ||
20621 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
20622 | # so they do not pile up. | |
20623 | ac_sub_configure_args= | |
20624 | ac_prev= | |
20625 | eval "set x $ac_configure_args" | |
20626 | shift | |
20627 | for ac_arg | |
20628 | do | |
20629 | if test -n "$ac_prev"; then | |
20630 | ac_prev= | |
20631 | continue | |
20632 | fi | |
20633 | case $ac_arg in | |
20634 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
20635 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20636 | ac_prev=cache_file ;; | |
20637 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
20638 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
20639 | | --c=*) | |
20640 | ;; | |
20641 | --config-cache | -C) | |
20642 | ;; | |
20643 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20644 | ac_prev=srcdir ;; | |
20645 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20646 | ;; | |
20647 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
20648 | ac_prev=prefix ;; | |
20649 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
20650 | ;; | |
20651 | --disable-option-checking) | |
20652 | ;; | |
20653 | *) | |
20654 | case $ac_arg in | |
20655 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20656 | esac | |
20657 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
20658 | esac | |
20659 | done | |
20660 | ||
20661 | # Always prepend --prefix to ensure using the same prefix | |
20662 | # in subdir configurations. | |
20663 | ac_arg="--prefix=$prefix" | |
20664 | case $ac_arg in | |
20665 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20666 | esac | |
20667 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
20668 | ||
20669 | # Pass --silent | |
20670 | if test "$silent" = yes; then | |
20671 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
20672 | fi | |
20673 | ||
20674 | # Always prepend --disable-option-checking to silence warnings, since | |
20675 | # different subdirs can have different --enable and --with options. | |
20676 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
20677 | ||
20678 | ac_popdir=`pwd` | |
20679 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
20680 | ||
20681 | # Do not complain, so a configure script can configure whichever | |
20682 | # parts of a large source tree are present. | |
20683 | test -d "$srcdir/$ac_dir" || continue | |
20684 | ||
20685 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
20686 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
20687 | $as_echo "$ac_msg" >&6 | |
20688 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20689 | ac_builddir=. | |
20690 | ||
20691 | case "$ac_dir" in | |
20692 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20693 | *) | |
20694 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20695 | # A ".." for each directory in $ac_dir_suffix. | |
20696 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20697 | case $ac_top_builddir_sub in | |
20698 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20699 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20700 | esac ;; | |
20701 | esac | |
20702 | ac_abs_top_builddir=$ac_pwd | |
20703 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20704 | # for backward compatibility: | |
20705 | ac_top_builddir=$ac_top_build_prefix | |
20706 | ||
20707 | case $srcdir in | |
20708 | .) # We are building in place. | |
20709 | ac_srcdir=. | |
20710 | ac_top_srcdir=$ac_top_builddir_sub | |
20711 | ac_abs_top_srcdir=$ac_pwd ;; | |
20712 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20713 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20714 | ac_top_srcdir=$srcdir | |
20715 | ac_abs_top_srcdir=$srcdir ;; | |
20716 | *) # Relative name. | |
20717 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20718 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20719 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20720 | esac | |
20721 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20722 | ||
20723 | ||
20724 | cd "$ac_dir" | |
20725 | ||
20726 | # Check for guested configure; otherwise get Cygnus style configure. | |
20727 | if test -f "$ac_srcdir/configure.gnu"; then | |
20728 | ac_sub_configure=$ac_srcdir/configure.gnu | |
20729 | elif test -f "$ac_srcdir/configure"; then | |
20730 | ac_sub_configure=$ac_srcdir/configure | |
20731 | elif test -f "$ac_srcdir/configure.in"; then | |
20732 | # This should be Cygnus configure. | |
20733 | ac_sub_configure=$ac_aux_dir/configure | |
20734 | else | |
20735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
20736 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
20737 | ac_sub_configure= | |
20738 | fi | |
20739 | ||
20740 | # The recursion is here. | |
20741 | if test -n "$ac_sub_configure"; then | |
20742 | # Make the cache file name correct relative to the subdirectory. | |
20743 | case $cache_file in | |
20744 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
20745 | *) # Relative name. | |
20746 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
20747 | esac | |
20748 | ||
20749 | { $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 | |
20750 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
20751 | # The eval makes quoting arguments work. | |
20752 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
20753 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
20754 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
20755 | fi | |
20756 | ||
20757 | cd "$ac_popdir" | |
20758 | done | |
20759 | fi | |
7083c021 AC |
20760 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20762 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20763 | fi | |
b676ea3b | 20764 | |
212380e3 AC |
20765 | |
20766 | if test "$cf_openssl_version_ok" = yes; then | |
20767 | openssl="yes" | |
20768 | else | |
20769 | openssl="no" | |
20770 | fi | |
20771 | ||
212380e3 | 20772 | echo " |
b6d0720c | 20773 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
20774 | Install directory : $prefix |
20775 | ||
20776 | Ziplinks : $zlib | |
20777 | OpenSSL : $openssl | |
212380e3 AC |
20778 | Socket Engine : $SELECT_TYPE |
20779 | Small network : $small_net | |
20780 | Block allocator : $balloc | |
212380e3 AC |
20781 | |
20782 | Nickname length : $NICKLEN | |
20783 | Topic length : $TOPICLEN | |
20784 | ||
b6d0720c | 20785 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 20786 | " |